54a04a1ed511cdfc9ce2087df6fdd5cbf3d5c403
[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 2.3.1.
4 #
5 # Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://github.com/harfbuzz/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='2.3.1'
594 PACKAGE_STRING='HarfBuzz 2.3.1'
595 PACKAGE_BUGREPORT='https://github.com/harfbuzz/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
597
598 ac_unique_file="src/harfbuzz.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_CORETEXT_FALSE
640 HAVE_CORETEXT_TRUE
641 CORETEXT_LIBS
642 CORETEXT_CFLAGS
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
645 DIRECTWRITE_LIBS
646 DIRECTWRITE_CXXFLAGS
647 HAVE_UNISCRIBE_FALSE
648 HAVE_UNISCRIBE_TRUE
649 UNISCRIBE_LIBS
650 UNISCRIBE_CFLAGS
651 HAVE_FREETYPE_FALSE
652 HAVE_FREETYPE_TRUE
653 FREETYPE_LIBS
654 FREETYPE_CFLAGS
655 FREETYPE_DEPS
656 HAVE_GRAPHITE2_FALSE
657 HAVE_GRAPHITE2_TRUE
658 GRAPHITE2_LIBS
659 GRAPHITE2_CFLAGS
660 GRAPHITE2_DEPS
661 HAVE_UCDN_FALSE
662 HAVE_UCDN_TRUE
663 HAVE_ICU_BUILTIN_FALSE
664 HAVE_ICU_BUILTIN_TRUE
665 HAVE_ICU_FALSE
666 HAVE_ICU_TRUE
667 ICU_CONFIG
668 ICU_LIBS
669 ICU_CFLAGS
670 HAVE_FONTCONFIG_FALSE
671 HAVE_FONTCONFIG_TRUE
672 FONTCONFIG_LIBS
673 FONTCONFIG_CFLAGS
674 HAVE_CAIRO_FT_FALSE
675 HAVE_CAIRO_FT_TRUE
676 CAIRO_FT_LIBS
677 CAIRO_FT_CFLAGS
678 HAVE_CAIRO_FALSE
679 HAVE_CAIRO_TRUE
680 CAIRO_LIBS
681 CAIRO_CFLAGS
682 HAVE_INTROSPECTION_FALSE
683 HAVE_INTROSPECTION_TRUE
684 INTROSPECTION_MAKEFILE
685 INTROSPECTION_LIBS
686 INTROSPECTION_CFLAGS
687 INTROSPECTION_TYPELIBDIR
688 INTROSPECTION_GIRDIR
689 INTROSPECTION_GENERATE
690 INTROSPECTION_COMPILER
691 INTROSPECTION_SCANNER
692 have_gobject
693 HAVE_GOBJECT_FALSE
694 HAVE_GOBJECT_TRUE
695 GLIB_MKENUMS
696 GOBJECT_LIBS
697 GOBJECT_CFLAGS
698 HAVE_GLIB_FALSE
699 HAVE_GLIB_TRUE
700 GLIB_LIBS
701 GLIB_CFLAGS
702 GLIB_DEPS
703 HAVE_FALLBACK_FALSE
704 HAVE_FALLBACK_TRUE
705 HAVE_PTHREAD_FALSE
706 HAVE_PTHREAD_TRUE
707 PTHREAD_CFLAGS
708 PTHREAD_LIBS
709 PTHREAD_CC
710 ax_pthread_config
711 OS_WIN32_FALSE
712 OS_WIN32_TRUE
713 HAVE_GCC_FALSE
714 HAVE_GCC_TRUE
715 GTK_DOC_USE_REBASE_FALSE
716 GTK_DOC_USE_REBASE_TRUE
717 GTK_DOC_USE_LIBTOOL_FALSE
718 GTK_DOC_USE_LIBTOOL_TRUE
719 GTK_DOC_BUILD_PDF_FALSE
720 GTK_DOC_BUILD_PDF_TRUE
721 GTK_DOC_BUILD_HTML_FALSE
722 GTK_DOC_BUILD_HTML_TRUE
723 ENABLE_GTK_DOC_FALSE
724 ENABLE_GTK_DOC_TRUE
725 HAVE_GTK_DOC_FALSE
726 HAVE_GTK_DOC_TRUE
727 GTKDOC_DEPS_LIBS
728 GTKDOC_DEPS_CFLAGS
729 HTML_DIR
730 GTKDOC_MKPDF
731 GTKDOC_REBASE
732 GTKDOC_CHECK_PATH
733 GTKDOC_CHECK
734 WITH_LIBSTDCXX_FALSE
735 WITH_LIBSTDCXX_TRUE
736 HB_LIBTOOL_VERSION_INFO
737 HB_VERSION
738 HB_VERSION_MICRO
739 HB_VERSION_MINOR
740 HB_VERSION_MAJOR
741 GIT
742 RAGEL
743 PKG_CONFIG_LIBDIR
744 PKG_CONFIG_PATH
745 PKG_CONFIG
746 CXXCPP
747 am__fastdepCXX_FALSE
748 am__fastdepCXX_TRUE
749 CXXDEPMODE
750 ac_ct_CXX
751 CXXFLAGS
752 CXX
753 CPP
754 LT_SYS_LIBRARY_PATH
755 OTOOL64
756 OTOOL
757 LIPO
758 NMEDIT
759 DSYMUTIL
760 MANIFEST_TOOL
761 RANLIB
762 DLLTOOL
763 OBJDUMP
764 LN_S
765 NM
766 ac_ct_DUMPBIN
767 DUMPBIN
768 LD
769 FGREP
770 EGREP
771 GREP
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 LIBTOOL
781 am__fastdepCC_FALSE
782 am__fastdepCC_TRUE
783 CCDEPMODE
784 am__nodep
785 AMDEPBACKSLASH
786 AMDEP_FALSE
787 AMDEP_TRUE
788 am__quote
789 am__include
790 DEPDIR
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 ac_ct_AR
799 AR
800 CODE_COVERAGE_RULES
801 CODE_COVERAGE_LDFLAGS
802 CODE_COVERAGE_LIBS
803 CODE_COVERAGE_CXXFLAGS
804 CODE_COVERAGE_CFLAGS
805 CODE_COVERAGE_CPPFLAGS
806 GENHTML
807 LCOV
808 GCOV
809 CODE_COVERAGE_ENABLED
810 CODE_COVERAGE_ENABLED_FALSE
811 CODE_COVERAGE_ENABLED_TRUE
812 SED
813 AM_BACKSLASH
814 AM_DEFAULT_VERBOSITY
815 AM_DEFAULT_V
816 AM_V
817 am__untar
818 am__tar
819 AMTAR
820 am__leading_dot
821 SET_MAKE
822 AWK
823 mkdir_p
824 MKDIR_P
825 INSTALL_STRIP_PROGRAM
826 STRIP
827 install_sh
828 MAKEINFO
829 AUTOHEADER
830 AUTOMAKE
831 AUTOCONF
832 ACLOCAL
833 VERSION
834 PACKAGE
835 CYGPATH_W
836 am__isrc
837 INSTALL_DATA
838 INSTALL_SCRIPT
839 INSTALL_PROGRAM
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 runstatedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files=''
880 ac_user_opts='
881 enable_option_checking
882 enable_silent_rules
883 with_gcov
884 enable_code_coverage
885 enable_dependency_tracking
886 enable_static
887 enable_shared
888 with_pic
889 enable_fast_install
890 with_aix_soname
891 with_gnu_ld
892 with_sysroot
893 enable_libtool_lock
894 enable_largefile
895 with_libstdc__
896 with_html_dir
897 enable_gtk_doc
898 enable_gtk_doc_html
899 enable_gtk_doc_pdf
900 with_glib
901 with_gobject
902 enable_introspection
903 with_cairo
904 with_fontconfig
905 with_icu
906 with_ucdn
907 with_graphite2
908 with_freetype
909 with_uniscribe
910 with_directwrite
911 with_coretext
912 '
913       ac_precious_vars='build_alias
914 host_alias
915 target_alias
916 CC
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
921 LT_SYS_LIBRARY_PATH
922 CPP
923 CXX
924 CXXFLAGS
925 CCC
926 CXXCPP
927 PKG_CONFIG
928 PKG_CONFIG_PATH
929 PKG_CONFIG_LIBDIR
930 GTKDOC_DEPS_CFLAGS
931 GTKDOC_DEPS_LIBS
932 GLIB_CFLAGS
933 GLIB_LIBS
934 GOBJECT_CFLAGS
935 GOBJECT_LIBS
936 CAIRO_CFLAGS
937 CAIRO_LIBS
938 CAIRO_FT_CFLAGS
939 CAIRO_FT_LIBS
940 FONTCONFIG_CFLAGS
941 FONTCONFIG_LIBS
942 ICU_CFLAGS
943 ICU_LIBS
944 GRAPHITE2_CFLAGS
945 GRAPHITE2_LIBS
946 FREETYPE_CFLAGS
947 FREETYPE_LIBS'
948
949
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
971
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 runstatedir='${localstatedir}/run'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
991 htmldir='${docdir}'
992 dvidir='${docdir}'
993 pdfdir='${docdir}'
994 psdir='${docdir}'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
998
999 ac_prev=
1000 ac_dashdash=
1001 for ac_option
1002 do
1003   # If the previous option needs an argument, assign it.
1004   if test -n "$ac_prev"; then
1005     eval $ac_prev=\$ac_option
1006     ac_prev=
1007     continue
1008   fi
1009
1010   case $ac_option in
1011   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012   *=)   ac_optarg= ;;
1013   *)    ac_optarg=yes ;;
1014   esac
1015
1016   # Accept the important Cygnus configure options, so we can diagnose typos.
1017
1018   case $ac_dashdash$ac_option in
1019   --)
1020     ac_dashdash=yes ;;
1021
1022   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023     ac_prev=bindir ;;
1024   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025     bindir=$ac_optarg ;;
1026
1027   -build | --build | --buil | --bui | --bu)
1028     ac_prev=build_alias ;;
1029   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030     build_alias=$ac_optarg ;;
1031
1032   -cache-file | --cache-file | --cache-fil | --cache-fi \
1033   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034     ac_prev=cache_file ;;
1035   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037     cache_file=$ac_optarg ;;
1038
1039   --config-cache | -C)
1040     cache_file=config.cache ;;
1041
1042   -datadir | --datadir | --datadi | --datad)
1043     ac_prev=datadir ;;
1044   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045     datadir=$ac_optarg ;;
1046
1047   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048   | --dataroo | --dataro | --datar)
1049     ac_prev=datarootdir ;;
1050   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052     datarootdir=$ac_optarg ;;
1053
1054   -disable-* | --disable-*)
1055     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056     # Reject names that are not valid shell variable names.
1057     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058       as_fn_error $? "invalid feature name: $ac_useropt"
1059     ac_useropt_orig=$ac_useropt
1060     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061     case $ac_user_opts in
1062       *"
1063 "enable_$ac_useropt"
1064 "*) ;;
1065       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066          ac_unrecognized_sep=', ';;
1067     esac
1068     eval enable_$ac_useropt=no ;;
1069
1070   -docdir | --docdir | --docdi | --doc | --do)
1071     ac_prev=docdir ;;
1072   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073     docdir=$ac_optarg ;;
1074
1075   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076     ac_prev=dvidir ;;
1077   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078     dvidir=$ac_optarg ;;
1079
1080   -enable-* | --enable-*)
1081     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082     # Reject names that are not valid shell variable names.
1083     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084       as_fn_error $? "invalid feature name: $ac_useropt"
1085     ac_useropt_orig=$ac_useropt
1086     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087     case $ac_user_opts in
1088       *"
1089 "enable_$ac_useropt"
1090 "*) ;;
1091       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092          ac_unrecognized_sep=', ';;
1093     esac
1094     eval enable_$ac_useropt=\$ac_optarg ;;
1095
1096   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098   | --exec | --exe | --ex)
1099     ac_prev=exec_prefix ;;
1100   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102   | --exec=* | --exe=* | --ex=*)
1103     exec_prefix=$ac_optarg ;;
1104
1105   -gas | --gas | --ga | --g)
1106     # Obsolete; use --with-gas.
1107     with_gas=yes ;;
1108
1109   -help | --help | --hel | --he | -h)
1110     ac_init_help=long ;;
1111   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112     ac_init_help=recursive ;;
1113   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114     ac_init_help=short ;;
1115
1116   -host | --host | --hos | --ho)
1117     ac_prev=host_alias ;;
1118   -host=* | --host=* | --hos=* | --ho=*)
1119     host_alias=$ac_optarg ;;
1120
1121   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122     ac_prev=htmldir ;;
1123   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124   | --ht=*)
1125     htmldir=$ac_optarg ;;
1126
1127   -includedir | --includedir | --includedi | --included | --include \
1128   | --includ | --inclu | --incl | --inc)
1129     ac_prev=includedir ;;
1130   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131   | --includ=* | --inclu=* | --incl=* | --inc=*)
1132     includedir=$ac_optarg ;;
1133
1134   -infodir | --infodir | --infodi | --infod | --info | --inf)
1135     ac_prev=infodir ;;
1136   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137     infodir=$ac_optarg ;;
1138
1139   -libdir | --libdir | --libdi | --libd)
1140     ac_prev=libdir ;;
1141   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142     libdir=$ac_optarg ;;
1143
1144   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145   | --libexe | --libex | --libe)
1146     ac_prev=libexecdir ;;
1147   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148   | --libexe=* | --libex=* | --libe=*)
1149     libexecdir=$ac_optarg ;;
1150
1151   -localedir | --localedir | --localedi | --localed | --locale)
1152     ac_prev=localedir ;;
1153   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154     localedir=$ac_optarg ;;
1155
1156   -localstatedir | --localstatedir | --localstatedi | --localstated \
1157   | --localstate | --localstat | --localsta | --localst | --locals)
1158     ac_prev=localstatedir ;;
1159   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161     localstatedir=$ac_optarg ;;
1162
1163   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164     ac_prev=mandir ;;
1165   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166     mandir=$ac_optarg ;;
1167
1168   -nfp | --nfp | --nf)
1169     # Obsolete; use --without-fp.
1170     with_fp=no ;;
1171
1172   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173   | --no-cr | --no-c | -n)
1174     no_create=yes ;;
1175
1176   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178     no_recursion=yes ;;
1179
1180   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182   | --oldin | --oldi | --old | --ol | --o)
1183     ac_prev=oldincludedir ;;
1184   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187     oldincludedir=$ac_optarg ;;
1188
1189   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190     ac_prev=prefix ;;
1191   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192     prefix=$ac_optarg ;;
1193
1194   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195   | --program-pre | --program-pr | --program-p)
1196     ac_prev=program_prefix ;;
1197   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199     program_prefix=$ac_optarg ;;
1200
1201   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202   | --program-suf | --program-su | --program-s)
1203     ac_prev=program_suffix ;;
1204   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206     program_suffix=$ac_optarg ;;
1207
1208   -program-transform-name | --program-transform-name \
1209   | --program-transform-nam | --program-transform-na \
1210   | --program-transform-n | --program-transform- \
1211   | --program-transform | --program-transfor \
1212   | --program-transfo | --program-transf \
1213   | --program-trans | --program-tran \
1214   | --progr-tra | --program-tr | --program-t)
1215     ac_prev=program_transform_name ;;
1216   -program-transform-name=* | --program-transform-name=* \
1217   | --program-transform-nam=* | --program-transform-na=* \
1218   | --program-transform-n=* | --program-transform-=* \
1219   | --program-transform=* | --program-transfor=* \
1220   | --program-transfo=* | --program-transf=* \
1221   | --program-trans=* | --program-tran=* \
1222   | --progr-tra=* | --program-tr=* | --program-t=*)
1223     program_transform_name=$ac_optarg ;;
1224
1225   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226     ac_prev=pdfdir ;;
1227   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228     pdfdir=$ac_optarg ;;
1229
1230   -psdir | --psdir | --psdi | --psd | --ps)
1231     ac_prev=psdir ;;
1232   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233     psdir=$ac_optarg ;;
1234
1235   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236   | -silent | --silent | --silen | --sile | --sil)
1237     silent=yes ;;
1238
1239   -runstatedir | --runstatedir | --runstatedi | --runstated \
1240   | --runstate | --runstat | --runsta | --runst | --runs \
1241   | --run | --ru | --r)
1242     ac_prev=runstatedir ;;
1243   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1244   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1245   | --run=* | --ru=* | --r=*)
1246     runstatedir=$ac_optarg ;;
1247
1248   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249     ac_prev=sbindir ;;
1250   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251   | --sbi=* | --sb=*)
1252     sbindir=$ac_optarg ;;
1253
1254   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256   | --sharedst | --shareds | --shared | --share | --shar \
1257   | --sha | --sh)
1258     ac_prev=sharedstatedir ;;
1259   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262   | --sha=* | --sh=*)
1263     sharedstatedir=$ac_optarg ;;
1264
1265   -site | --site | --sit)
1266     ac_prev=site ;;
1267   -site=* | --site=* | --sit=*)
1268     site=$ac_optarg ;;
1269
1270   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271     ac_prev=srcdir ;;
1272   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273     srcdir=$ac_optarg ;;
1274
1275   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276   | --syscon | --sysco | --sysc | --sys | --sy)
1277     ac_prev=sysconfdir ;;
1278   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280     sysconfdir=$ac_optarg ;;
1281
1282   -target | --target | --targe | --targ | --tar | --ta | --t)
1283     ac_prev=target_alias ;;
1284   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285     target_alias=$ac_optarg ;;
1286
1287   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288     verbose=yes ;;
1289
1290   -version | --version | --versio | --versi | --vers | -V)
1291     ac_init_version=: ;;
1292
1293   -with-* | --with-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       as_fn_error $? "invalid package name: $ac_useropt"
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval with_$ac_useropt=\$ac_optarg ;;
1308
1309   -without-* | --without-*)
1310     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311     # Reject names that are not valid shell variable names.
1312     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313       as_fn_error $? "invalid package name: $ac_useropt"
1314     ac_useropt_orig=$ac_useropt
1315     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316     case $ac_user_opts in
1317       *"
1318 "with_$ac_useropt"
1319 "*) ;;
1320       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321          ac_unrecognized_sep=', ';;
1322     esac
1323     eval with_$ac_useropt=no ;;
1324
1325   --x)
1326     # Obsolete; use --with-x.
1327     with_x=yes ;;
1328
1329   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330   | --x-incl | --x-inc | --x-in | --x-i)
1331     ac_prev=x_includes ;;
1332   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334     x_includes=$ac_optarg ;;
1335
1336   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1337   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338     ac_prev=x_libraries ;;
1339   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341     x_libraries=$ac_optarg ;;
1342
1343   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information"
1345     ;;
1346
1347   *=*)
1348     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349     # Reject names that are not valid shell variable names.
1350     case $ac_envvar in #(
1351       '' | [0-9]* | *[!_$as_cr_alnum]* )
1352       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1353     esac
1354     eval $ac_envvar=\$ac_optarg
1355     export $ac_envvar ;;
1356
1357   *)
1358     # FIXME: should be removed in autoconf 3.0.
1359     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1363     ;;
1364
1365   esac
1366 done
1367
1368 if test -n "$ac_prev"; then
1369   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370   as_fn_error $? "missing argument to $ac_option"
1371 fi
1372
1373 if test -n "$ac_unrecognized_opts"; then
1374   case $enable_option_checking in
1375     no) ;;
1376     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1377     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378   esac
1379 fi
1380
1381 # Check all directory arguments for consistency.
1382 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383                 datadir sysconfdir sharedstatedir localstatedir includedir \
1384                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385                 libdir localedir mandir runstatedir
1386 do
1387   eval ac_val=\$$ac_var
1388   # Remove trailing slashes.
1389   case $ac_val in
1390     */ )
1391       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392       eval $ac_var=\$ac_val;;
1393   esac
1394   # Be sure to have absolute directory names.
1395   case $ac_val in
1396     [\\/$]* | ?:[\\/]* )  continue;;
1397     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398   esac
1399   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1400 done
1401
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1405 build=$build_alias
1406 host=$host_alias
1407 target=$target_alias
1408
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411   if test "x$build_alias" = x; then
1412     cross_compiling=maybe
1413   elif test "x$build_alias" != "x$host_alias"; then
1414     cross_compiling=yes
1415   fi
1416 fi
1417
1418 ac_tool_prefix=
1419 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420
1421 test "$silent" = yes && exec 6>/dev/null
1422
1423
1424 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di=`ls -di .` &&
1426 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427   as_fn_error $? "working directory cannot be determined"
1428 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429   as_fn_error $? "pwd does not report name of working directory"
1430
1431
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434   ac_srcdir_defaulted=yes
1435   # Try the directory containing this script, then the parent directory.
1436   ac_confdir=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438          X"$as_myself" : 'X\(//\)[^/]' \| \
1439          X"$as_myself" : 'X\(//\)$' \| \
1440          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443             s//\1/
1444             q
1445           }
1446           /^X\(\/\/\)[^/].*/{
1447             s//\1/
1448             q
1449           }
1450           /^X\(\/\/\)$/{
1451             s//\1/
1452             q
1453           }
1454           /^X\(\/\).*/{
1455             s//\1/
1456             q
1457           }
1458           s/.*/./; q'`
1459   srcdir=$ac_confdir
1460   if test ! -r "$srcdir/$ac_unique_file"; then
1461     srcdir=..
1462   fi
1463 else
1464   ac_srcdir_defaulted=no
1465 fi
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1469 fi
1470 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 ac_abs_confdir=`(
1472         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1473         pwd)`
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476   srcdir=.
1477 fi
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1481 case $srcdir in
1482 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483 esac
1484 for ac_var in $ac_precious_vars; do
1485   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486   eval ac_env_${ac_var}_value=\$${ac_var}
1487   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489 done
1490
1491 #
1492 # Report the --help message.
1493 #
1494 if test "$ac_init_help" = "long"; then
1495   # Omit some internal or obsolete options to make the list less imposing.
1496   # This message is too long to be a string in the A/UX 3.1 sh.
1497   cat <<_ACEOF
1498 \`configure' configures HarfBuzz 2.3.1 to adapt to many kinds of systems.
1499
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1501
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE.  See below for descriptions of some of the useful variables.
1504
1505 Defaults for the options are specified in brackets.
1506
1507 Configuration:
1508   -h, --help              display this help and exit
1509       --help=short        display options specific to this package
1510       --help=recursive    display the short help of all the included packages
1511   -V, --version           display version information and exit
1512   -q, --quiet, --silent   do not print \`checking ...' messages
1513       --cache-file=FILE   cache test results in FILE [disabled]
1514   -C, --config-cache      alias for \`--cache-file=config.cache'
1515   -n, --no-create         do not create output files
1516       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1517
1518 Installation directories:
1519   --prefix=PREFIX         install architecture-independent files in PREFIX
1520                           [$ac_default_prefix]
1521   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1522                           [PREFIX]
1523
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1528
1529 For better control, use the options below.
1530
1531 Fine tuning of the installation directories:
1532   --bindir=DIR            user executables [EPREFIX/bin]
1533   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1534   --libexecdir=DIR        program executables [EPREFIX/libexec]
1535   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1536   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1537   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1538   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1539   --libdir=DIR            object code libraries [EPREFIX/lib]
1540   --includedir=DIR        C header files [PREFIX/include]
1541   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1542   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1543   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1544   --infodir=DIR           info documentation [DATAROOTDIR/info]
1545   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1546   --mandir=DIR            man documentation [DATAROOTDIR/man]
1547   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1548   --htmldir=DIR           html documentation [DOCDIR]
1549   --dvidir=DIR            dvi documentation [DOCDIR]
1550   --pdfdir=DIR            pdf documentation [DOCDIR]
1551   --psdir=DIR             ps documentation [DOCDIR]
1552 _ACEOF
1553
1554   cat <<\_ACEOF
1555
1556 Program names:
1557   --program-prefix=PREFIX            prepend PREFIX to installed program names
1558   --program-suffix=SUFFIX            append SUFFIX to installed program names
1559   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1560
1561 System types:
1562   --build=BUILD     configure for building on BUILD [guessed]
1563   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1564 _ACEOF
1565 fi
1566
1567 if test -n "$ac_init_help"; then
1568   case $ac_init_help in
1569      short | recursive ) echo "Configuration of HarfBuzz 2.3.1:";;
1570    esac
1571   cat <<\_ACEOF
1572
1573 Optional Features:
1574   --disable-option-checking  ignore unrecognized --enable/--with options
1575   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1576   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1577   --enable-silent-rules   less verbose build output (undo: "make V=1")
1578   --disable-silent-rules  verbose build output (undo: "make V=0")
1579   --enable-code-coverage  Whether to enable code coverage support
1580   --enable-dependency-tracking
1581                           do not reject slow dependency extractors
1582   --disable-dependency-tracking
1583                           speeds up one-time build
1584   --enable-static[=PKGS]  build static libraries [default=no]
1585   --enable-shared[=PKGS]  build shared libraries [default=yes]
1586   --enable-fast-install[=PKGS]
1587                           optimize for fast installation [default=yes]
1588   --disable-libtool-lock  avoid locking (might break parallel builds)
1589   --disable-largefile     omit support for large files
1590   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1591   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1592   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1593   --enable-introspection=[no/auto/yes]
1594                           Enable introspection for this build
1595
1596 Optional Packages:
1597   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1598   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1599   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1600   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1601                           both]
1602   --with-aix-soname=aix|svr4|both
1603                           shared library versioning (aka "SONAME") variant to
1604                           provide on AIX, [default=aix].
1605   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1606   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1607                           compiler's sysroot if not specified).
1608   --with-libstdc++=[yes/no]
1609                           Allow linking with libstdc++ [default=no]
1610   --with-html-dir=PATH    path to installed docs
1611   --with-glib=[yes/no/auto]
1612                           Use glib [default=auto]
1613   --with-gobject=[yes/no/auto]
1614                           Use gobject [default=no]
1615   --with-cairo=[yes/no/auto]
1616                           Use cairo [default=auto]
1617   --with-fontconfig=[yes/no/auto]
1618                           Use fontconfig [default=auto]
1619   --with-icu=[yes/no/builtin/auto]
1620                           Use ICU [default=auto]
1621   --with-ucdn=[yes/no]    Use builtin UCDN library [default=yes]
1622   --with-graphite2=[yes/no/auto]
1623                           Use the graphite2 library [default=no]
1624   --with-freetype=[yes/no/auto]
1625                           Use the FreeType library [default=auto]
1626   --with-uniscribe=[yes/no/auto]
1627                           Use the Uniscribe library [default=no]
1628   --with-directwrite=[yes/no/auto]
1629                           Use the DirectWrite library (experimental)
1630                           [default=no]
1631   --with-coretext=[yes/no/auto]
1632                           Use CoreText [default=no]
1633
1634 Some influential environment variables:
1635   CC          C compiler command
1636   CFLAGS      C compiler flags
1637   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1638               nonstandard directory <lib dir>
1639   LIBS        libraries to pass to the linker, e.g. -l<library>
1640   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1641               you have headers in a nonstandard directory <include dir>
1642   LT_SYS_LIBRARY_PATH
1643               User-defined run-time library search path.
1644   CPP         C preprocessor
1645   CXX         C++ compiler command
1646   CXXFLAGS    C++ compiler flags
1647   CXXCPP      C++ preprocessor
1648   PKG_CONFIG  path to pkg-config utility
1649   PKG_CONFIG_PATH
1650               directories to add to pkg-config's search path
1651   PKG_CONFIG_LIBDIR
1652               path overriding pkg-config's built-in search path
1653   GTKDOC_DEPS_CFLAGS
1654               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1655   GTKDOC_DEPS_LIBS
1656               linker flags for GTKDOC_DEPS, overriding pkg-config
1657   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1658   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1659   GOBJECT_CFLAGS
1660               C compiler flags for GOBJECT, overriding pkg-config
1661   GOBJECT_LIBS
1662               linker flags for GOBJECT, overriding pkg-config
1663   CAIRO_CFLAGS
1664               C compiler flags for CAIRO, overriding pkg-config
1665   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1666   CAIRO_FT_CFLAGS
1667               C compiler flags for CAIRO_FT, overriding pkg-config
1668   CAIRO_FT_LIBS
1669               linker flags for CAIRO_FT, overriding pkg-config
1670   FONTCONFIG_CFLAGS
1671               C compiler flags for FONTCONFIG, overriding pkg-config
1672   FONTCONFIG_LIBS
1673               linker flags for FONTCONFIG, overriding pkg-config
1674   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1675   ICU_LIBS    linker flags for ICU, overriding pkg-config
1676   GRAPHITE2_CFLAGS
1677               C compiler flags for GRAPHITE2, overriding pkg-config
1678   GRAPHITE2_LIBS
1679               linker flags for GRAPHITE2, overriding pkg-config
1680   FREETYPE_CFLAGS
1681               C compiler flags for FREETYPE, overriding pkg-config
1682   FREETYPE_LIBS
1683               linker flags for FREETYPE, overriding pkg-config
1684
1685 Use these variables to override the choices made by `configure' or to help
1686 it to find libraries and programs with nonstandard names/locations.
1687
1688 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1689 HarfBuzz home page: <http://harfbuzz.org/>.
1690 _ACEOF
1691 ac_status=$?
1692 fi
1693
1694 if test "$ac_init_help" = "recursive"; then
1695   # If there are subdirs, report their specific --help.
1696   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697     test -d "$ac_dir" ||
1698       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699       continue
1700     ac_builddir=.
1701
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *)
1705   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706   # A ".." for each directory in $ac_dir_suffix.
1707   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708   case $ac_top_builddir_sub in
1709   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711   esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1717
1718 case $srcdir in
1719   .)  # We are building in place.
1720     ac_srcdir=.
1721     ac_top_srcdir=$ac_top_builddir_sub
1722     ac_abs_top_srcdir=$ac_pwd ;;
1723   [\\/]* | ?:[\\/]* )  # Absolute name.
1724     ac_srcdir=$srcdir$ac_dir_suffix;
1725     ac_top_srcdir=$srcdir
1726     ac_abs_top_srcdir=$srcdir ;;
1727   *) # Relative name.
1728     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729     ac_top_srcdir=$ac_top_build_prefix$srcdir
1730     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734     cd "$ac_dir" || { ac_status=$?; continue; }
1735     # Check for guested configure.
1736     if test -f "$ac_srcdir/configure.gnu"; then
1737       echo &&
1738       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739     elif test -f "$ac_srcdir/configure"; then
1740       echo &&
1741       $SHELL "$ac_srcdir/configure" --help=recursive
1742     else
1743       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744     fi || ac_status=$?
1745     cd "$ac_pwd" || { ac_status=$?; break; }
1746   done
1747 fi
1748
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751   cat <<\_ACEOF
1752 HarfBuzz configure 2.3.1
1753 generated by GNU Autoconf 2.69
1754
1755 Copyright (C) 2012 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1758 _ACEOF
1759   exit
1760 fi
1761
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1765
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   rm -f conftest.$ac_objext
1773   if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_compile") 2>conftest.err
1781   ac_status=$?
1782   if test -s conftest.err; then
1783     grep -v '^ *+' conftest.err >conftest.er1
1784     cat conftest.er1 >&5
1785     mv -f conftest.er1 conftest.err
1786   fi
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } && {
1789          test -z "$ac_c_werror_flag" ||
1790          test ! -s conftest.err
1791        } && test -s conftest.$ac_objext; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800   as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_compile
1803
1804 # ac_fn_c_try_link LINENO
1805 # -----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_link ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   rm -f conftest.$ac_objext conftest$ac_exeext
1811   if { { ac_try="$ac_link"
1812 case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_link") 2>conftest.err
1819   ac_status=$?
1820   if test -s conftest.err; then
1821     grep -v '^ *+' conftest.err >conftest.er1
1822     cat conftest.er1 >&5
1823     mv -f conftest.er1 conftest.err
1824   fi
1825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826   test $ac_status = 0; } && {
1827          test -z "$ac_c_werror_flag" ||
1828          test ! -s conftest.err
1829        } && test -s conftest$ac_exeext && {
1830          test "$cross_compiling" = yes ||
1831          test -x conftest$ac_exeext
1832        }; then :
1833   ac_retval=0
1834 else
1835   $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838         ac_retval=1
1839 fi
1840   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842   # interfere with the next link command; also delete a directory that is
1843   # left behind by Apple's compiler.  We do this before executing the actions.
1844   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846   as_fn_set_status $ac_retval
1847
1848 } # ac_fn_c_try_link
1849
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860   $as_echo_n "(cached) " >&6
1861 else
1862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h.  */
1864 $4
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868   eval "$3=yes"
1869 else
1870   eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_header_compile
1880
1881 # ac_fn_c_try_cpp LINENO
1882 # ----------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_c_try_cpp ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 case "(($ac_try" in
1889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890   *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895   ac_status=$?
1896   if test -s conftest.err; then
1897     grep -v '^ *+' conftest.err >conftest.er1
1898     cat conftest.er1 >&5
1899     mv -f conftest.er1 conftest.err
1900   fi
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; } > conftest.i && {
1903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1904          test ! -s conftest.err
1905        }; then :
1906   ac_retval=0
1907 else
1908   $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911     ac_retval=1
1912 fi
1913   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914   as_fn_set_status $ac_retval
1915
1916 } # ac_fn_c_try_cpp
1917
1918 # ac_fn_c_try_run LINENO
1919 # ----------------------
1920 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1921 # that executables *can* be run.
1922 ac_fn_c_try_run ()
1923 {
1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925   if { { ac_try="$ac_link"
1926 case "(($ac_try" in
1927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928   *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932   (eval "$ac_link") 2>&5
1933   ac_status=$?
1934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1936   { { case "(($ac_try" in
1937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938   *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942   (eval "$ac_try") 2>&5
1943   ac_status=$?
1944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945   test $ac_status = 0; }; }; then :
1946   ac_retval=0
1947 else
1948   $as_echo "$as_me: program exited with status $ac_status" >&5
1949        $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952        ac_retval=$ac_status
1953 fi
1954   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956   as_fn_set_status $ac_retval
1957
1958 } # ac_fn_c_try_run
1959
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969   $as_echo_n "(cached) " >&6
1970 else
1971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h.  */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1975 #define $2 innocuous_$2
1976
1977 /* System header to define __stub macros and hopefully few prototypes,
1978     which can conflict with char $2 (); below.
1979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980     <limits.h> exists even on freestanding compilers.  */
1981
1982 #ifdef __STDC__
1983 # include <limits.h>
1984 #else
1985 # include <assert.h>
1986 #endif
1987
1988 #undef $2
1989
1990 /* Override any GCC internal prototype to avoid an error.
1991    Use char because int might match the return type of a GCC
1992    builtin and then its argument prototype would still apply.  */
1993 #ifdef __cplusplus
1994 extern "C"
1995 #endif
1996 char $2 ();
1997 /* The GNU C library defines this for functions which it implements
1998     to always fail with ENOSYS.  Some functions are actually named
1999     something starting with __ and the normal name is an alias.  */
2000 #if defined __stub_$2 || defined __stub___$2
2001 choke me
2002 #endif
2003
2004 int
2005 main ()
2006 {
2007 return $2 ();
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_link "$LINENO"; then :
2013   eval "$3=yes"
2014 else
2015   eval "$3=no"
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext \
2018     conftest$ac_exeext conftest.$ac_ext
2019 fi
2020 eval ac_res=\$$3
2021                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025 } # ac_fn_c_check_func
2026
2027 # ac_fn_cxx_try_compile LINENO
2028 # ----------------------------
2029 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2030 ac_fn_cxx_try_compile ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   rm -f conftest.$ac_objext
2034   if { { ac_try="$ac_compile"
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_compile") 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_objext; then :
2053   ac_retval=0
2054 else
2055   $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2057
2058         ac_retval=1
2059 fi
2060   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061   as_fn_set_status $ac_retval
2062
2063 } # ac_fn_cxx_try_compile
2064
2065 # ac_fn_cxx_try_cpp LINENO
2066 # ------------------------
2067 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2068 ac_fn_cxx_try_cpp ()
2069 {
2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071   if { { ac_try="$ac_cpp conftest.$ac_ext"
2072 case "(($ac_try" in
2073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074   *) ac_try_echo=$ac_try;;
2075 esac
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2079   ac_status=$?
2080   if test -s conftest.err; then
2081     grep -v '^ *+' conftest.err >conftest.er1
2082     cat conftest.er1 >&5
2083     mv -f conftest.er1 conftest.err
2084   fi
2085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086   test $ac_status = 0; } > conftest.i && {
2087          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2088          test ! -s conftest.err
2089        }; then :
2090   ac_retval=0
2091 else
2092   $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095     ac_retval=1
2096 fi
2097   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098   as_fn_set_status $ac_retval
2099
2100 } # ac_fn_cxx_try_cpp
2101
2102 # ac_fn_cxx_try_link LINENO
2103 # -------------------------
2104 # Try to link conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_cxx_try_link ()
2106 {
2107   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108   rm -f conftest.$ac_objext conftest$ac_exeext
2109   if { { ac_try="$ac_link"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116   (eval "$ac_link") 2>conftest.err
2117   ac_status=$?
2118   if test -s conftest.err; then
2119     grep -v '^ *+' conftest.err >conftest.er1
2120     cat conftest.er1 >&5
2121     mv -f conftest.er1 conftest.err
2122   fi
2123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124   test $ac_status = 0; } && {
2125          test -z "$ac_cxx_werror_flag" ||
2126          test ! -s conftest.err
2127        } && test -s conftest$ac_exeext && {
2128          test "$cross_compiling" = yes ||
2129          test -x conftest$ac_exeext
2130        }; then :
2131   ac_retval=0
2132 else
2133   $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2135
2136         ac_retval=1
2137 fi
2138   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2139   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2140   # interfere with the next link command; also delete a directory that is
2141   # left behind by Apple's compiler.  We do this before executing the actions.
2142   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2143   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144   as_fn_set_status $ac_retval
2145
2146 } # ac_fn_cxx_try_link
2147
2148 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2149 # ---------------------------------------------
2150 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2151 # accordingly.
2152 ac_fn_c_check_decl ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   as_decl_name=`echo $2|sed 's/ *(.*//'`
2156   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2158 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2159 if eval \${$3+:} false; then :
2160   $as_echo_n "(cached) " >&6
2161 else
2162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 int
2166 main ()
2167 {
2168 #ifndef $as_decl_name
2169 #ifdef __cplusplus
2170   (void) $as_decl_use;
2171 #else
2172   (void) $as_decl_name;
2173 #endif
2174 #endif
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181   eval "$3=yes"
2182 else
2183   eval "$3=no"
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 fi
2187 eval ac_res=\$$3
2188                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191
2192 } # ac_fn_c_check_decl
2193
2194 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2195 # -------------------------------------------------------
2196 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2197 # the include files in INCLUDES and setting the cache variable VAR
2198 # accordingly.
2199 ac_fn_c_check_header_mongrel ()
2200 {
2201   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202   if eval \${$3+:} false; then :
2203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if eval \${$3+:} false; then :
2206   $as_echo_n "(cached) " >&6
2207 fi
2208 eval ac_res=\$$3
2209                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2211 else
2212   # Is the header compilable?
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2214 $as_echo_n "checking $2 usability... " >&6; }
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 $4
2218 #include <$2>
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221   ac_header_compiler=yes
2222 else
2223   ac_header_compiler=no
2224 fi
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2227 $as_echo "$ac_header_compiler" >&6; }
2228
2229 # Is the header present?
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2231 $as_echo_n "checking $2 presence... " >&6; }
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 #include <$2>
2235 _ACEOF
2236 if ac_fn_c_try_cpp "$LINENO"; then :
2237   ac_header_preproc=yes
2238 else
2239   ac_header_preproc=no
2240 fi
2241 rm -f conftest.err conftest.i conftest.$ac_ext
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2243 $as_echo "$ac_header_preproc" >&6; }
2244
2245 # So?  What about this header?
2246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2247   yes:no: )
2248     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2249 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2250     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2251 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2252     ;;
2253   no:yes:* )
2254     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2255 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2256     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2257 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2258     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2259 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2260     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2261 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2262     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2263 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2264 ( $as_echo "## -------------------------------------------------------------- ##
2265 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2266 ## -------------------------------------------------------------- ##"
2267      ) | sed "s/^/$as_me: WARNING:     /" >&2
2268     ;;
2269 esac
2270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if eval \${$3+:} false; then :
2273   $as_echo_n "(cached) " >&6
2274 else
2275   eval "$3=\$ac_header_compiler"
2276 fi
2277 eval ac_res=\$$3
2278                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 fi
2281   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282
2283 } # ac_fn_c_check_header_mongrel
2284
2285 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2286 # --------------------------------------------
2287 # Tries to find the compile-time value of EXPR in a program that includes
2288 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2289 # computed
2290 ac_fn_c_compute_int ()
2291 {
2292   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293   if test "$cross_compiling" = yes; then
2294     # Depending upon the size, compute the lo and hi bounds.
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 $4
2298 int
2299 main ()
2300 {
2301 static int test_array [1 - 2 * !(($2) >= 0)];
2302 test_array [0] = 0;
2303 return test_array [0];
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310   ac_lo=0 ac_mid=0
2311   while :; do
2312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h.  */
2314 $4
2315 int
2316 main ()
2317 {
2318 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2319 test_array [0] = 0;
2320 return test_array [0];
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327   ac_hi=$ac_mid; break
2328 else
2329   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2330                         if test $ac_lo -le $ac_mid; then
2331                           ac_lo= ac_hi=
2332                           break
2333                         fi
2334                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337   done
2338 else
2339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h.  */
2341 $4
2342 int
2343 main ()
2344 {
2345 static int test_array [1 - 2 * !(($2) < 0)];
2346 test_array [0] = 0;
2347 return test_array [0];
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354   ac_hi=-1 ac_mid=-1
2355   while :; do
2356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h.  */
2358 $4
2359 int
2360 main ()
2361 {
2362 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2363 test_array [0] = 0;
2364 return test_array [0];
2365
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371   ac_lo=$ac_mid; break
2372 else
2373   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2374                         if test $ac_mid -le $ac_hi; then
2375                           ac_lo= ac_hi=
2376                           break
2377                         fi
2378                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 fi
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381   done
2382 else
2383   ac_lo= ac_hi=
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 fi
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 # Binary search between lo and hi bounds.
2389 while test "x$ac_lo" != "x$ac_hi"; do
2390   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h.  */
2393 $4
2394 int
2395 main ()
2396 {
2397 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2398 test_array [0] = 0;
2399 return test_array [0];
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406   ac_hi=$ac_mid
2407 else
2408   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 done
2412 case $ac_lo in #((
2413 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2414 '') ac_retval=1 ;;
2415 esac
2416   else
2417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h.  */
2419 $4
2420 static long int longval () { return $2; }
2421 static unsigned long int ulongval () { return $2; }
2422 #include <stdio.h>
2423 #include <stdlib.h>
2424 int
2425 main ()
2426 {
2427
2428   FILE *f = fopen ("conftest.val", "w");
2429   if (! f)
2430     return 1;
2431   if (($2) < 0)
2432     {
2433       long int i = longval ();
2434       if (i != ($2))
2435         return 1;
2436       fprintf (f, "%ld", i);
2437     }
2438   else
2439     {
2440       unsigned long int i = ulongval ();
2441       if (i != ($2))
2442         return 1;
2443       fprintf (f, "%lu", i);
2444     }
2445   /* Do not output a trailing newline, as this causes \r\n confusion
2446      on some platforms.  */
2447   return ferror (f) || fclose (f) != 0;
2448
2449   ;
2450   return 0;
2451 }
2452 _ACEOF
2453 if ac_fn_c_try_run "$LINENO"; then :
2454   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2455 else
2456   ac_retval=1
2457 fi
2458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2459   conftest.$ac_objext conftest.beam conftest.$ac_ext
2460 rm -f conftest.val
2461
2462   fi
2463   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2464   as_fn_set_status $ac_retval
2465
2466 } # ac_fn_c_compute_int
2467
2468 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2469 # ---------------------------------------------------------
2470 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2471 # the include files in INCLUDES and setting the cache variable VAR
2472 # accordingly.
2473 ac_fn_cxx_check_header_mongrel ()
2474 {
2475   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476   if eval \${$3+:} false; then :
2477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478 $as_echo_n "checking for $2... " >&6; }
2479 if eval \${$3+:} false; then :
2480   $as_echo_n "(cached) " >&6
2481 fi
2482 eval ac_res=\$$3
2483                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 else
2486   # Is the header compilable?
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2488 $as_echo_n "checking $2 usability... " >&6; }
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h.  */
2491 $4
2492 #include <$2>
2493 _ACEOF
2494 if ac_fn_cxx_try_compile "$LINENO"; then :
2495   ac_header_compiler=yes
2496 else
2497   ac_header_compiler=no
2498 fi
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2501 $as_echo "$ac_header_compiler" >&6; }
2502
2503 # Is the header present?
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2505 $as_echo_n "checking $2 presence... " >&6; }
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h.  */
2508 #include <$2>
2509 _ACEOF
2510 if ac_fn_cxx_try_cpp "$LINENO"; then :
2511   ac_header_preproc=yes
2512 else
2513   ac_header_preproc=no
2514 fi
2515 rm -f conftest.err conftest.i conftest.$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2517 $as_echo "$ac_header_preproc" >&6; }
2518
2519 # So?  What about this header?
2520 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2521   yes:no: )
2522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2523 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2524     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2525 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2526     ;;
2527   no:yes:* )
2528     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2529 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2531 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2532     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2533 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2534     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2535 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2536     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2537 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2538 ( $as_echo "## -------------------------------------------------------------- ##
2539 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2540 ## -------------------------------------------------------------- ##"
2541      ) | sed "s/^/$as_me: WARNING:     /" >&2
2542     ;;
2543 esac
2544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if eval \${$3+:} false; then :
2547   $as_echo_n "(cached) " >&6
2548 else
2549   eval "$3=\$ac_header_compiler"
2550 fi
2551 eval ac_res=\$$3
2552                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553 $as_echo "$ac_res" >&6; }
2554 fi
2555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556
2557 } # ac_fn_cxx_check_header_mongrel
2558
2559 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2560 # -------------------------------------------
2561 # Tests whether TYPE exists after having included INCLUDES, setting cache
2562 # variable VAR accordingly.
2563 ac_fn_c_check_type ()
2564 {
2565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2567 $as_echo_n "checking for $2... " >&6; }
2568 if eval \${$3+:} false; then :
2569   $as_echo_n "(cached) " >&6
2570 else
2571   eval "$3=no"
2572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h.  */
2574 $4
2575 int
2576 main ()
2577 {
2578 if (sizeof ($2))
2579          return 0;
2580   ;
2581   return 0;
2582 }
2583 _ACEOF
2584 if ac_fn_c_try_compile "$LINENO"; then :
2585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h.  */
2587 $4
2588 int
2589 main ()
2590 {
2591 if (sizeof (($2)))
2592             return 0;
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 if ac_fn_c_try_compile "$LINENO"; then :
2598
2599 else
2600   eval "$3=yes"
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 eval ac_res=\$$3
2607                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2610
2611 } # ac_fn_c_check_type
2612 cat >config.log <<_ACEOF
2613 This file contains any messages produced by compilers while
2614 running configure, to aid debugging if configure makes a mistake.
2615
2616 It was created by HarfBuzz $as_me 2.3.1, which was
2617 generated by GNU Autoconf 2.69.  Invocation command line was
2618
2619   $ $0 $@
2620
2621 _ACEOF
2622 exec 5>>config.log
2623 {
2624 cat <<_ASUNAME
2625 ## --------- ##
2626 ## Platform. ##
2627 ## --------- ##
2628
2629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2634
2635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2636 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2637
2638 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2639 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2641 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2642 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2643 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2644 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2645
2646 _ASUNAME
2647
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653     $as_echo "PATH: $as_dir"
2654   done
2655 IFS=$as_save_IFS
2656
2657 } >&5
2658
2659 cat >&5 <<_ACEOF
2660
2661
2662 ## ----------- ##
2663 ## Core tests. ##
2664 ## ----------- ##
2665
2666 _ACEOF
2667
2668
2669 # Keep a trace of the command line.
2670 # Strip out --no-create and --no-recursion so they do not pile up.
2671 # Strip out --silent because we don't want to record it for future runs.
2672 # Also quote any args containing shell meta-characters.
2673 # Make two passes to allow for proper duplicate-argument suppression.
2674 ac_configure_args=
2675 ac_configure_args0=
2676 ac_configure_args1=
2677 ac_must_keep_next=false
2678 for ac_pass in 1 2
2679 do
2680   for ac_arg
2681   do
2682     case $ac_arg in
2683     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2684     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2685     | -silent | --silent | --silen | --sile | --sil)
2686       continue ;;
2687     *\'*)
2688       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2689     esac
2690     case $ac_pass in
2691     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2692     2)
2693       as_fn_append ac_configure_args1 " '$ac_arg'"
2694       if test $ac_must_keep_next = true; then
2695         ac_must_keep_next=false # Got value, back to normal.
2696       else
2697         case $ac_arg in
2698           *=* | --config-cache | -C | -disable-* | --disable-* \
2699           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2700           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2701           | -with-* | --with-* | -without-* | --without-* | --x)
2702             case "$ac_configure_args0 " in
2703               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2704             esac
2705             ;;
2706           -* ) ac_must_keep_next=true ;;
2707         esac
2708       fi
2709       as_fn_append ac_configure_args " '$ac_arg'"
2710       ;;
2711     esac
2712   done
2713 done
2714 { ac_configure_args0=; unset ac_configure_args0;}
2715 { ac_configure_args1=; unset ac_configure_args1;}
2716
2717 # When interrupted or exit'd, cleanup temporary files, and complete
2718 # config.log.  We remove comments because anyway the quotes in there
2719 # would cause problems or look ugly.
2720 # WARNING: Use '\'' to represent an apostrophe within the trap.
2721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2722 trap 'exit_status=$?
2723   # Save into config.log some information that might help in debugging.
2724   {
2725     echo
2726
2727     $as_echo "## ---------------- ##
2728 ## Cache variables. ##
2729 ## ---------------- ##"
2730     echo
2731     # The following way of writing the cache mishandles newlines in values,
2732 (
2733   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2734     eval ac_val=\$$ac_var
2735     case $ac_val in #(
2736     *${as_nl}*)
2737       case $ac_var in #(
2738       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2740       esac
2741       case $ac_var in #(
2742       _ | IFS | as_nl) ;; #(
2743       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744       *) { eval $ac_var=; unset $ac_var;} ;;
2745       esac ;;
2746     esac
2747   done
2748   (set) 2>&1 |
2749     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2750     *${as_nl}ac_space=\ *)
2751       sed -n \
2752         "s/'\''/'\''\\\\'\'''\''/g;
2753           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2754       ;; #(
2755     *)
2756       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2757       ;;
2758     esac |
2759     sort
2760 )
2761     echo
2762
2763     $as_echo "## ----------------- ##
2764 ## Output variables. ##
2765 ## ----------------- ##"
2766     echo
2767     for ac_var in $ac_subst_vars
2768     do
2769       eval ac_val=\$$ac_var
2770       case $ac_val in
2771       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2772       esac
2773       $as_echo "$ac_var='\''$ac_val'\''"
2774     done | sort
2775     echo
2776
2777     if test -n "$ac_subst_files"; then
2778       $as_echo "## ------------------- ##
2779 ## File substitutions. ##
2780 ## ------------------- ##"
2781       echo
2782       for ac_var in $ac_subst_files
2783       do
2784         eval ac_val=\$$ac_var
2785         case $ac_val in
2786         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2787         esac
2788         $as_echo "$ac_var='\''$ac_val'\''"
2789       done | sort
2790       echo
2791     fi
2792
2793     if test -s confdefs.h; then
2794       $as_echo "## ----------- ##
2795 ## confdefs.h. ##
2796 ## ----------- ##"
2797       echo
2798       cat confdefs.h
2799       echo
2800     fi
2801     test "$ac_signal" != 0 &&
2802       $as_echo "$as_me: caught signal $ac_signal"
2803     $as_echo "$as_me: exit $exit_status"
2804   } >&5
2805   rm -f core *.core core.conftest.* &&
2806     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2807     exit $exit_status
2808 ' 0
2809 for ac_signal in 1 2 13 15; do
2810   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2811 done
2812 ac_signal=0
2813
2814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2815 rm -f -r conftest* confdefs.h
2816
2817 $as_echo "/* confdefs.h */" > confdefs.h
2818
2819 # Predefined preprocessor variables.
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_NAME "$PACKAGE_NAME"
2823 _ACEOF
2824
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2827 _ACEOF
2828
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2831 _ACEOF
2832
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_STRING "$PACKAGE_STRING"
2835 _ACEOF
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2839 _ACEOF
2840
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_URL "$PACKAGE_URL"
2843 _ACEOF
2844
2845
2846 # Let the site file select an alternate cache file if it wants to.
2847 # Prefer an explicitly selected file to automatically selected ones.
2848 ac_site_file1=NONE
2849 ac_site_file2=NONE
2850 if test -n "$CONFIG_SITE"; then
2851   # We do not want a PATH search for config.site.
2852   case $CONFIG_SITE in #((
2853     -*)  ac_site_file1=./$CONFIG_SITE;;
2854     */*) ac_site_file1=$CONFIG_SITE;;
2855     *)   ac_site_file1=./$CONFIG_SITE;;
2856   esac
2857 elif test "x$prefix" != xNONE; then
2858   ac_site_file1=$prefix/share/config.site
2859   ac_site_file2=$prefix/etc/config.site
2860 else
2861   ac_site_file1=$ac_default_prefix/share/config.site
2862   ac_site_file2=$ac_default_prefix/etc/config.site
2863 fi
2864 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2865 do
2866   test "x$ac_site_file" = xNONE && continue
2867   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2868     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2869 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2870     sed 's/^/| /' "$ac_site_file" >&5
2871     . "$ac_site_file" \
2872       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 as_fn_error $? "failed to load site script $ac_site_file
2875 See \`config.log' for more details" "$LINENO" 5; }
2876   fi
2877 done
2878
2879 if test -r "$cache_file"; then
2880   # Some versions of bash will fail to source /dev/null (special files
2881   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2882   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2883     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2884 $as_echo "$as_me: loading cache $cache_file" >&6;}
2885     case $cache_file in
2886       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2887       *)                      . "./$cache_file";;
2888     esac
2889   fi
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2892 $as_echo "$as_me: creating cache $cache_file" >&6;}
2893   >$cache_file
2894 fi
2895
2896 # Check that the precious variables saved in the cache have kept the same
2897 # value.
2898 ac_cache_corrupted=false
2899 for ac_var in $ac_precious_vars; do
2900   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2901   eval ac_new_set=\$ac_env_${ac_var}_set
2902   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2903   eval ac_new_val=\$ac_env_${ac_var}_value
2904   case $ac_old_set,$ac_new_set in
2905     set,)
2906       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2907 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2908       ac_cache_corrupted=: ;;
2909     ,set)
2910       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2911 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2912       ac_cache_corrupted=: ;;
2913     ,);;
2914     *)
2915       if test "x$ac_old_val" != "x$ac_new_val"; then
2916         # differences in whitespace do not lead to failure.
2917         ac_old_val_w=`echo x $ac_old_val`
2918         ac_new_val_w=`echo x $ac_new_val`
2919         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2920           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2921 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2922           ac_cache_corrupted=:
2923         else
2924           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2925 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2926           eval $ac_var=\$ac_old_val
2927         fi
2928         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2929 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2930         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2931 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2932       fi;;
2933   esac
2934   # Pass precious variables to config.status.
2935   if test "$ac_new_set" = set; then
2936     case $ac_new_val in
2937     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2938     *) ac_arg=$ac_var=$ac_new_val ;;
2939     esac
2940     case " $ac_configure_args " in
2941       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2942       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2943     esac
2944   fi
2945 done
2946 if $ac_cache_corrupted; then
2947   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2951   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2952 fi
2953 ## -------------------- ##
2954 ## Main body of script. ##
2955 ## -------------------- ##
2956
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962
2963
2964
2965
2966
2967 ac_config_headers="$ac_config_headers config.h"
2968
2969
2970 am__api_version='1.15'
2971
2972 ac_aux_dir=
2973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2974   if test -f "$ac_dir/install-sh"; then
2975     ac_aux_dir=$ac_dir
2976     ac_install_sh="$ac_aux_dir/install-sh -c"
2977     break
2978   elif test -f "$ac_dir/install.sh"; then
2979     ac_aux_dir=$ac_dir
2980     ac_install_sh="$ac_aux_dir/install.sh -c"
2981     break
2982   elif test -f "$ac_dir/shtool"; then
2983     ac_aux_dir=$ac_dir
2984     ac_install_sh="$ac_aux_dir/shtool install -c"
2985     break
2986   fi
2987 done
2988 if test -z "$ac_aux_dir"; then
2989   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2990 fi
2991
2992 # These three variables are undocumented and unsupported,
2993 # and are intended to be withdrawn in a future Autoconf release.
2994 # They can cause serious problems if a builder's source tree is in a directory
2995 # whose full name contains unusual characters.
2996 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2997 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2998 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2999
3000
3001 # Find a good install program.  We prefer a C program (faster),
3002 # so one script is as good as another.  But avoid the broken or
3003 # incompatible versions:
3004 # SysV /etc/install, /usr/sbin/install
3005 # SunOS /usr/etc/install
3006 # IRIX /sbin/install
3007 # AIX /bin/install
3008 # AmigaOS /C/install, which installs bootblocks on floppy discs
3009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3012 # OS/2's system install, which has a completely different semantic
3013 # ./install, which can be erroneously created by make from ./install.sh.
3014 # Reject install programs that cannot install multiple files.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3016 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3017 if test -z "$INSTALL"; then
3018 if ${ac_cv_path_install+:} false; then :
3019   $as_echo_n "(cached) " >&6
3020 else
3021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024   IFS=$as_save_IFS
3025   test -z "$as_dir" && as_dir=.
3026     # Account for people who put trailing slashes in PATH elements.
3027 case $as_dir/ in #((
3028   ./ | .// | /[cC]/* | \
3029   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3030   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3031   /usr/ucb/* ) ;;
3032   *)
3033     # OSF1 and SCO ODT 3.0 have their own names for install.
3034     # Don't use installbsd from OSF since it installs stuff as root
3035     # by default.
3036     for ac_prog in ginstall scoinst install; do
3037       for ac_exec_ext in '' $ac_executable_extensions; do
3038         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3039           if test $ac_prog = install &&
3040             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3041             # AIX install.  It has an incompatible calling convention.
3042             :
3043           elif test $ac_prog = install &&
3044             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3045             # program-specific install script used by HP pwplus--don't use.
3046             :
3047           else
3048             rm -rf conftest.one conftest.two conftest.dir
3049             echo one > conftest.one
3050             echo two > conftest.two
3051             mkdir conftest.dir
3052             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3053               test -s conftest.one && test -s conftest.two &&
3054               test -s conftest.dir/conftest.one &&
3055               test -s conftest.dir/conftest.two
3056             then
3057               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3058               break 3
3059             fi
3060           fi
3061         fi
3062       done
3063     done
3064     ;;
3065 esac
3066
3067   done
3068 IFS=$as_save_IFS
3069
3070 rm -rf conftest.one conftest.two conftest.dir
3071
3072 fi
3073   if test "${ac_cv_path_install+set}" = set; then
3074     INSTALL=$ac_cv_path_install
3075   else
3076     # As a last resort, use the slow shell script.  Don't cache a
3077     # value for INSTALL within a source directory, because that will
3078     # break other packages using the cache if that directory is
3079     # removed, or if the value is a relative name.
3080     INSTALL=$ac_install_sh
3081   fi
3082 fi
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3084 $as_echo "$INSTALL" >&6; }
3085
3086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3087 # It thinks the first close brace ends the variable substitution.
3088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3089
3090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3091
3092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3093
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3095 $as_echo_n "checking whether build environment is sane... " >&6; }
3096 # Reject unsafe characters in $srcdir or the absolute working directory
3097 # name.  Accept space and tab only in the latter.
3098 am_lf='
3099 '
3100 case `pwd` in
3101   *[\\\"\#\$\&\'\`$am_lf]*)
3102     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3103 esac
3104 case $srcdir in
3105   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3106     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3107 esac
3108
3109 # Do 'set' in a subshell so we don't clobber the current shell's
3110 # arguments.  Must try -L first in case configure is actually a
3111 # symlink; some systems play weird games with the mod time of symlinks
3112 # (eg FreeBSD returns the mod time of the symlink's containing
3113 # directory).
3114 if (
3115    am_has_slept=no
3116    for am_try in 1 2; do
3117      echo "timestamp, slept: $am_has_slept" > conftest.file
3118      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3119      if test "$*" = "X"; then
3120         # -L didn't work.
3121         set X `ls -t "$srcdir/configure" conftest.file`
3122      fi
3123      if test "$*" != "X $srcdir/configure conftest.file" \
3124         && test "$*" != "X conftest.file $srcdir/configure"; then
3125
3126         # If neither matched, then we have a broken ls.  This can happen
3127         # if, for instance, CONFIG_SHELL is bash and it inherits a
3128         # broken ls alias from the environment.  This has actually
3129         # happened.  Such a system could not be considered "sane".
3130         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3131   alias in your environment" "$LINENO" 5
3132      fi
3133      if test "$2" = conftest.file || test $am_try -eq 2; then
3134        break
3135      fi
3136      # Just in case.
3137      sleep 1
3138      am_has_slept=yes
3139    done
3140    test "$2" = conftest.file
3141    )
3142 then
3143    # Ok.
3144    :
3145 else
3146    as_fn_error $? "newly created file is older than distributed files!
3147 Check your system clock" "$LINENO" 5
3148 fi
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3151 # If we didn't sleep, we still need to ensure time stamps of config.status and
3152 # generated files are strictly newer.
3153 am_sleep_pid=
3154 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3155   ( sleep 1 ) &
3156   am_sleep_pid=$!
3157 fi
3158
3159 rm -f conftest.file
3160
3161 test "$program_prefix" != NONE &&
3162   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3166 # Double any \ or $.
3167 # By default was `s,x,x', remove it if useless.
3168 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3169 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3170
3171 # Expand $ac_aux_dir to an absolute path.
3172 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3173
3174 if test x"${MISSING+set}" != xset; then
3175   case $am_aux_dir in
3176   *\ * | *\     *)
3177     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3178   *)
3179     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3180   esac
3181 fi
3182 # Use eval to expand $SHELL
3183 if eval "$MISSING --is-lightweight"; then
3184   am_missing_run="$MISSING "
3185 else
3186   am_missing_run=
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3188 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3189 fi
3190
3191 if test x"${install_sh+set}" != xset; then
3192   case $am_aux_dir in
3193   *\ * | *\     *)
3194     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3195   *)
3196     install_sh="\${SHELL} $am_aux_dir/install-sh"
3197   esac
3198 fi
3199
3200 # Installed binaries are usually stripped using 'strip' when the user
3201 # run "make install-strip".  However 'strip' might not be the right
3202 # tool to use in cross-compilation environments, therefore Automake
3203 # will honor the 'STRIP' environment variable to overrule this program.
3204 if test "$cross_compiling" != no; then
3205   if test -n "$ac_tool_prefix"; then
3206   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3207 set dummy ${ac_tool_prefix}strip; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if ${ac_cv_prog_STRIP+:} false; then :
3211   $as_echo_n "(cached) " >&6
3212 else
3213   if test -n "$STRIP"; then
3214   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221     for ac_exec_ext in '' $ac_executable_extensions; do
3222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228   done
3229 IFS=$as_save_IFS
3230
3231 fi
3232 fi
3233 STRIP=$ac_cv_prog_STRIP
3234 if test -n "$STRIP"; then
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3236 $as_echo "$STRIP" >&6; }
3237 else
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242
3243 fi
3244 if test -z "$ac_cv_prog_STRIP"; then
3245   ac_ct_STRIP=$STRIP
3246   # Extract the first word of "strip", so it can be a program name with args.
3247 set dummy strip; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3251   $as_echo_n "(cached) " >&6
3252 else
3253   if test -n "$ac_ct_STRIP"; then
3254   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261     for ac_exec_ext in '' $ac_executable_extensions; do
3262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263     ac_cv_prog_ac_ct_STRIP="strip"
3264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265     break 2
3266   fi
3267 done
3268   done
3269 IFS=$as_save_IFS
3270
3271 fi
3272 fi
3273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3274 if test -n "$ac_ct_STRIP"; then
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3276 $as_echo "$ac_ct_STRIP" >&6; }
3277 else
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3280 fi
3281
3282   if test "x$ac_ct_STRIP" = x; then
3283     STRIP=":"
3284   else
3285     case $cross_compiling:$ac_tool_warned in
3286 yes:)
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3289 ac_tool_warned=yes ;;
3290 esac
3291     STRIP=$ac_ct_STRIP
3292   fi
3293 else
3294   STRIP="$ac_cv_prog_STRIP"
3295 fi
3296
3297 fi
3298 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3299
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3301 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3302 if test -z "$MKDIR_P"; then
3303   if ${ac_cv_path_mkdir+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311     for ac_prog in mkdir gmkdir; do
3312          for ac_exec_ext in '' $ac_executable_extensions; do
3313            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3314            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3315              'mkdir (GNU coreutils) '* | \
3316              'mkdir (coreutils) '* | \
3317              'mkdir (fileutils) '4.1*)
3318                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3319                break 3;;
3320            esac
3321          done
3322        done
3323   done
3324 IFS=$as_save_IFS
3325
3326 fi
3327
3328   test -d ./--version && rmdir ./--version
3329   if test "${ac_cv_path_mkdir+set}" = set; then
3330     MKDIR_P="$ac_cv_path_mkdir -p"
3331   else
3332     # As a last resort, use the slow shell script.  Don't cache a
3333     # value for MKDIR_P within a source directory, because that will
3334     # break other packages using the cache if that directory is
3335     # removed, or if the value is a relative name.
3336     MKDIR_P="$ac_install_sh -d"
3337   fi
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3340 $as_echo "$MKDIR_P" >&6; }
3341
3342 for ac_prog in gawk mawk nawk awk
3343 do
3344   # Extract the first word of "$ac_prog", so it can be a program name with args.
3345 set dummy $ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_AWK+:} false; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   if test -n "$AWK"; then
3352   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357   IFS=$as_save_IFS
3358   test -z "$as_dir" && as_dir=.
3359     for ac_exec_ext in '' $ac_executable_extensions; do
3360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361     ac_cv_prog_AWK="$ac_prog"
3362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363     break 2
3364   fi
3365 done
3366   done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 AWK=$ac_cv_prog_AWK
3372 if test -n "$AWK"; then
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3374 $as_echo "$AWK" >&6; }
3375 else
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380
3381   test -n "$AWK" && break
3382 done
3383
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3385 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3386 set x ${MAKE-make}
3387 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3388 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3389   $as_echo_n "(cached) " >&6
3390 else
3391   cat >conftest.make <<\_ACEOF
3392 SHELL = /bin/sh
3393 all:
3394         @echo '@@@%%%=$(MAKE)=@@@%%%'
3395 _ACEOF
3396 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3397 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3398   *@@@%%%=?*=@@@%%%*)
3399     eval ac_cv_prog_make_${ac_make}_set=yes;;
3400   *)
3401     eval ac_cv_prog_make_${ac_make}_set=no;;
3402 esac
3403 rm -f conftest.make
3404 fi
3405 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3407 $as_echo "yes" >&6; }
3408   SET_MAKE=
3409 else
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412   SET_MAKE="MAKE=${MAKE-make}"
3413 fi
3414
3415 rm -rf .tst 2>/dev/null
3416 mkdir .tst 2>/dev/null
3417 if test -d .tst; then
3418   am__leading_dot=.
3419 else
3420   am__leading_dot=_
3421 fi
3422 rmdir .tst 2>/dev/null
3423
3424 # Check whether --enable-silent-rules was given.
3425 if test "${enable_silent_rules+set}" = set; then :
3426   enableval=$enable_silent_rules;
3427 fi
3428
3429 case $enable_silent_rules in # (((
3430   yes) AM_DEFAULT_VERBOSITY=0;;
3431    no) AM_DEFAULT_VERBOSITY=1;;
3432     *) AM_DEFAULT_VERBOSITY=1;;
3433 esac
3434 am_make=${MAKE-make}
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3436 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3437 if ${am_cv_make_support_nested_variables+:} false; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   if $as_echo 'TRUE=$(BAR$(V))
3441 BAR0=false
3442 BAR1=true
3443 V=1
3444 am__doit:
3445         @$(TRUE)
3446 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3447   am_cv_make_support_nested_variables=yes
3448 else
3449   am_cv_make_support_nested_variables=no
3450 fi
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3453 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3454 if test $am_cv_make_support_nested_variables = yes; then
3455     AM_V='$(V)'
3456   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3457 else
3458   AM_V=$AM_DEFAULT_VERBOSITY
3459   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3460 fi
3461 AM_BACKSLASH='\'
3462
3463 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3464   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3465   # is not polluted with repeated "-I."
3466   am__isrc=' -I$(srcdir)'
3467   # test to see if srcdir already configured
3468   if test -f $srcdir/config.status; then
3469     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3470   fi
3471 fi
3472
3473 # test whether we have cygpath
3474 if test -z "$CYGPATH_W"; then
3475   if (cygpath --version) >/dev/null 2>/dev/null; then
3476     CYGPATH_W='cygpath -w'
3477   else
3478     CYGPATH_W=echo
3479   fi
3480 fi
3481
3482
3483 # Define the identity of the package.
3484  PACKAGE='harfbuzz'
3485  VERSION='2.3.1'
3486
3487
3488 # Some tools Automake needs.
3489
3490 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3491
3492
3493 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3494
3495
3496 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3497
3498
3499 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3500
3501
3502 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3503
3504 # For better backward compatibility.  To be removed once Automake 1.9.x
3505 # dies out for good.  For more background, see:
3506 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3507 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3508 mkdir_p='$(MKDIR_P)'
3509
3510 # We need awk for the "check" target (and possibly the TAP driver).  The
3511 # system "awk" is bad on some platforms.
3512 # Always define AMTAR for backward compatibility.  Yes, it's still used
3513 # in the wild :-(  We should find a proper way to deprecate it ...
3514 AMTAR='$${TAR-tar}'
3515
3516
3517 # We'll loop over all known methods to create a tar archive until one works.
3518 _am_tools='gnutar plaintar pax cpio none'
3519
3520 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3521       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3522       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3523       # and bug#13588).
3524       am_max_uid=2097151 # 2^21 - 1
3525       am_max_gid=$am_max_uid
3526       # The $UID and $GID variables are not portable, so we need to resort
3527       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3528       # below are definitely unexpected, so allow the users to see them
3529       # (that is, avoid stderr redirection).
3530       am_uid=`id -u || echo unknown`
3531       am_gid=`id -g || echo unknown`
3532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3533 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3534       if test $am_uid -le $am_max_uid; then
3535          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3536 $as_echo "yes" >&6; }
3537       else
3538          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540          _am_tools=none
3541       fi
3542       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3543 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3544       if test $am_gid -le $am_max_gid; then
3545          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3547       else
3548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3550         _am_tools=none
3551       fi
3552
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3554 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3555
3556   # Go ahead even if we have the value already cached.  We do so because we
3557   # need to set the values for the 'am__tar' and 'am__untar' variables.
3558   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3559
3560   for _am_tool in $_am_tools; do
3561     case $_am_tool in
3562     gnutar)
3563       for _am_tar in tar gnutar gtar; do
3564         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3565    ($_am_tar --version) >&5 2>&5
3566    ac_status=$?
3567    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568    (exit $ac_status); } && break
3569       done
3570       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3571       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3572       am__untar="$_am_tar -xf -"
3573       ;;
3574     plaintar)
3575       # Must skip GNU tar: if it does not support --format= it doesn't create
3576       # ustar tarball either.
3577       (tar --version) >/dev/null 2>&1 && continue
3578       am__tar='tar chf - "$$tardir"'
3579       am__tar_='tar chf - "$tardir"'
3580       am__untar='tar xf -'
3581       ;;
3582     pax)
3583       am__tar='pax -L -x ustar -w "$$tardir"'
3584       am__tar_='pax -L -x ustar -w "$tardir"'
3585       am__untar='pax -r'
3586       ;;
3587     cpio)
3588       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3589       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3590       am__untar='cpio -i -H ustar -d'
3591       ;;
3592     none)
3593       am__tar=false
3594       am__tar_=false
3595       am__untar=false
3596       ;;
3597     esac
3598
3599     # If the value was cached, stop now.  We just wanted to have am__tar
3600     # and am__untar set.
3601     test -n "${am_cv_prog_tar_ustar}" && break
3602
3603     # tar/untar a dummy directory, and stop if the command works.
3604     rm -rf conftest.dir
3605     mkdir conftest.dir
3606     echo GrepMe > conftest.dir/file
3607     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3608    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3609    ac_status=$?
3610    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611    (exit $ac_status); }
3612     rm -rf conftest.dir
3613     if test -s conftest.tar; then
3614       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3615    ($am__untar <conftest.tar) >&5 2>&5
3616    ac_status=$?
3617    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618    (exit $ac_status); }
3619       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3620    (cat conftest.dir/file) >&5 2>&5
3621    ac_status=$?
3622    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623    (exit $ac_status); }
3624       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3625     fi
3626   done
3627   rm -rf conftest.dir
3628
3629   if ${am_cv_prog_tar_ustar+:} false; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   am_cv_prog_tar_ustar=$_am_tool
3633 fi
3634
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3636 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3637
3638
3639
3640
3641
3642
3643 # POSIX will say in a future version that running "rm -f" with no argument
3644 # is OK; and we want to be able to make that assumption in our Makefile
3645 # recipes.  So use an aggressive probe to check that the usage we want is
3646 # actually supported "in the wild" to an acceptable degree.
3647 # See automake bug#10828.
3648 # To make any issue more visible, cause the running configure to be aborted
3649 # by default if the 'rm' program in use doesn't match our expectations; the
3650 # user can still override this though.
3651 if rm -f && rm -fr && rm -rf; then : OK; else
3652   cat >&2 <<'END'
3653 Oops!
3654
3655 Your 'rm' program seems unable to run without file operands specified
3656 on the command line, even when the '-f' option is present.  This is contrary
3657 to the behaviour of most rm programs out there, and not conforming with
3658 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3659
3660 Please tell bug-automake@gnu.org about your system, including the value
3661 of your $PATH and any error possibly output before this message.  This
3662 can help us improve future automake versions.
3663
3664 END
3665   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3666     echo 'Configuration will proceed anyway, since you have set the' >&2
3667     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3668     echo >&2
3669   else
3670     cat >&2 <<'END'
3671 Aborting the configuration process, to ensure you take notice of the issue.
3672
3673 You can download and install GNU coreutils to get an 'rm' implementation
3674 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3675
3676 If you want to complete the configuration process using your problematic
3677 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3678 to "yes", and re-run configure.
3679
3680 END
3681     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3682   fi
3683 fi
3684
3685 # Check whether --enable-silent-rules was given.
3686 if test "${enable_silent_rules+set}" = set; then :
3687   enableval=$enable_silent_rules;
3688 fi
3689
3690 case $enable_silent_rules in # (((
3691   yes) AM_DEFAULT_VERBOSITY=0;;
3692    no) AM_DEFAULT_VERBOSITY=1;;
3693     *) AM_DEFAULT_VERBOSITY=0;;
3694 esac
3695 am_make=${MAKE-make}
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3697 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3698 if ${am_cv_make_support_nested_variables+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if $as_echo 'TRUE=$(BAR$(V))
3702 BAR0=false
3703 BAR1=true
3704 V=1
3705 am__doit:
3706         @$(TRUE)
3707 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3708   am_cv_make_support_nested_variables=yes
3709 else
3710   am_cv_make_support_nested_variables=no
3711 fi
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3714 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3715 if test $am_cv_make_support_nested_variables = yes; then
3716     AM_V='$(V)'
3717   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3718 else
3719   AM_V=$AM_DEFAULT_VERBOSITY
3720   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3721 fi
3722 AM_BACKSLASH='\'
3723
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3725 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3726 if ${ac_cv_path_SED+:} false; then :
3727   $as_echo_n "(cached) " >&6
3728 else
3729             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3730      for ac_i in 1 2 3 4 5 6 7; do
3731        ac_script="$ac_script$as_nl$ac_script"
3732      done
3733      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3734      { ac_script=; unset ac_script;}
3735      if test -z "$SED"; then
3736   ac_path_SED_found=false
3737   # Loop through the user's path and test for each of PROGNAME-LIST
3738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741   IFS=$as_save_IFS
3742   test -z "$as_dir" && as_dir=.
3743     for ac_prog in sed gsed; do
3744     for ac_exec_ext in '' $ac_executable_extensions; do
3745       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3746       as_fn_executable_p "$ac_path_SED" || continue
3747 # Check for GNU ac_path_SED and select it if it is found.
3748   # Check for GNU $ac_path_SED
3749 case `"$ac_path_SED" --version 2>&1` in
3750 *GNU*)
3751   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3752 *)
3753   ac_count=0
3754   $as_echo_n 0123456789 >"conftest.in"
3755   while :
3756   do
3757     cat "conftest.in" "conftest.in" >"conftest.tmp"
3758     mv "conftest.tmp" "conftest.in"
3759     cp "conftest.in" "conftest.nl"
3760     $as_echo '' >> "conftest.nl"
3761     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3762     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3763     as_fn_arith $ac_count + 1 && ac_count=$as_val
3764     if test $ac_count -gt ${ac_path_SED_max-0}; then
3765       # Best one so far, save it but keep looking for a better one
3766       ac_cv_path_SED="$ac_path_SED"
3767       ac_path_SED_max=$ac_count
3768     fi
3769     # 10*(2^10) chars as input seems more than enough
3770     test $ac_count -gt 10 && break
3771   done
3772   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3773 esac
3774
3775       $ac_path_SED_found && break 3
3776     done
3777   done
3778   done
3779 IFS=$as_save_IFS
3780   if test -z "$ac_cv_path_SED"; then
3781     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3782   fi
3783 else
3784   ac_cv_path_SED=$SED
3785 fi
3786
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3789 $as_echo "$ac_cv_path_SED" >&6; }
3790  SED="$ac_cv_path_SED"
3791   rm -f conftest.sed
3792
3793
3794
3795
3796         # allow to override gcov location
3797
3798 # Check whether --with-gcov was given.
3799 if test "${with_gcov+set}" = set; then :
3800   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3801 else
3802   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3803 fi
3804
3805
3806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3807 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3808         # Check whether --enable-code-coverage was given.
3809 if test "${enable_code_coverage+set}" = set; then :
3810   enableval=$enable_code_coverage;
3811 else
3812   enable_code_coverage=no
3813 fi
3814
3815
3816          if test x$enable_code_coverage = xyes; then
3817   CODE_COVERAGE_ENABLED_TRUE=
3818   CODE_COVERAGE_ENABLED_FALSE='#'
3819 else
3820   CODE_COVERAGE_ENABLED_TRUE='#'
3821   CODE_COVERAGE_ENABLED_FALSE=
3822 fi
3823
3824         CODE_COVERAGE_ENABLED=$enable_code_coverage
3825
3826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3827 $as_echo "$enable_code_coverage" >&6; }
3828
3829         if  test "$enable_code_coverage" = "yes" ; then :
3830
3831                 # check for gcov
3832                 if test -n "$ac_tool_prefix"; then
3833   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_GCOV+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   if test -n "$GCOV"; then
3841   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848     for ac_exec_ext in '' $ac_executable_extensions; do
3849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852     break 2
3853   fi
3854 done
3855   done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 GCOV=$ac_cv_prog_GCOV
3861 if test -n "$GCOV"; then
3862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3863 $as_echo "$GCOV" >&6; }
3864 else
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 fi
3868
3869
3870 fi
3871 if test -z "$ac_cv_prog_GCOV"; then
3872   ac_ct_GCOV=$GCOV
3873   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3874 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3878   $as_echo_n "(cached) " >&6
3879 else
3880   if test -n "$ac_ct_GCOV"; then
3881   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886   IFS=$as_save_IFS
3887   test -z "$as_dir" && as_dir=.
3888     for ac_exec_ext in '' $ac_executable_extensions; do
3889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892     break 2
3893   fi
3894 done
3895   done
3896 IFS=$as_save_IFS
3897
3898 fi
3899 fi
3900 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3901 if test -n "$ac_ct_GCOV"; then
3902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3903 $as_echo "$ac_ct_GCOV" >&6; }
3904 else
3905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3907 fi
3908
3909   if test "x$ac_ct_GCOV" = x; then
3910     GCOV=":"
3911   else
3912     case $cross_compiling:$ac_tool_warned in
3913 yes:)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916 ac_tool_warned=yes ;;
3917 esac
3918     GCOV=$ac_ct_GCOV
3919   fi
3920 else
3921   GCOV="$ac_cv_prog_GCOV"
3922 fi
3923
3924                 if test "X$GCOV" = "X:"; then :
3925   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3926 fi
3927
3928
3929                                 if  test "$GCC" = "no" ; then :
3930
3931                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3932
3933 fi
3934
3935                 # Extract the first word of "lcov", so it can be a program name with args.
3936 set dummy lcov; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_LCOV+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   if test -n "$LCOV"; then
3943   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950     for ac_exec_ext in '' $ac_executable_extensions; do
3951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952     ac_cv_prog_LCOV="lcov"
3953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954     break 2
3955   fi
3956 done
3957   done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 LCOV=$ac_cv_prog_LCOV
3963 if test -n "$LCOV"; then
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3965 $as_echo "$LCOV" >&6; }
3966 else
3967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972                 # Extract the first word of "genhtml", so it can be a program name with args.
3973 set dummy genhtml; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if ${ac_cv_prog_GENHTML+:} false; then :
3977   $as_echo_n "(cached) " >&6
3978 else
3979   if test -n "$GENHTML"; then
3980   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987     for ac_exec_ext in '' $ac_executable_extensions; do
3988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989     ac_cv_prog_GENHTML="genhtml"
3990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991     break 2
3992   fi
3993 done
3994   done
3995 IFS=$as_save_IFS
3996
3997 fi
3998 fi
3999 GENHTML=$ac_cv_prog_GENHTML
4000 if test -n "$GENHTML"; then
4001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
4002 $as_echo "$GENHTML" >&6; }
4003 else
4004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 fi
4007
4008
4009
4010                 if  test -z "$LCOV" ; then :
4011
4012                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
4013
4014 fi
4015
4016                 if  test -z "$GENHTML" ; then :
4017
4018                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
4019
4020 fi
4021
4022                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
4023                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4024                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4025                 CODE_COVERAGE_LIBS="-lgcov"
4026                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
4027
4028
4029
4030
4031
4032
4033
4034                 CODE_COVERAGE_RULES_CHECK='
4035         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
4036         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
4037 '
4038                 CODE_COVERAGE_RULES_CAPTURE='
4039         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
4040         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
4041         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
4042         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
4043         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4044 '
4045                 CODE_COVERAGE_RULES_CLEAN='
4046 clean: code-coverage-clean
4047 distclean: code-coverage-clean
4048 code-coverage-clean:
4049         -$(LCOV) --directory $(top_builddir) -z
4050         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4051         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4052 '
4053
4054 else
4055
4056                 CODE_COVERAGE_RULES_CHECK='
4057         @echo "Need to reconfigure with --enable-code-coverage"
4058 '
4059                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4060                 CODE_COVERAGE_RULES_CLEAN=''
4061
4062 fi
4063
4064 CODE_COVERAGE_RULES='
4065 # Code coverage
4066 #
4067 # Optional:
4068 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4069 #    Multiple directories may be specified, separated by whitespace.
4070 #    (Default: $(top_builddir))
4071 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4072 #    by lcov for code coverage. (Default:
4073 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4074 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4075 #    reports to be created. (Default:
4076 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4077 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4078 #    set to 0 to disable it and leave empty to stay with the default.
4079 #    (Default: empty)
4080 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4081 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4082 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4083 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4084 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4085 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4086 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4087 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4088 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4089 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4090 #    lcov instance. (Default: empty)
4091 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4092 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4093 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4094 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4095 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4096 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4097 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4098 #
4099 # The generated report will be titled using the $(PACKAGE_NAME) and
4100 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4101 # use the git-version-gen script, available online.
4102
4103 # Optional variables
4104 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4105 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4106 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4107 CODE_COVERAGE_BRANCH_COVERAGE ?=
4108 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4109 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4110 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4111 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4112 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4113 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4114 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4115 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4116 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4117 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4118 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4119 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4120 CODE_COVERAGE_IGNORE_PATTERN ?=
4121
4122 GITIGNOREFILES ?=
4123 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4124
4125 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4126 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4127 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
4128  $(CODE_COVERAGE_OUTPUT_FILE);
4129 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4130 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4131 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
4132  $(CODE_COVERAGE_IGNORE_PATTERN);
4133 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4134 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4135 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4136 code_coverage_quiet = $(code_coverage_quiet_$(V))
4137 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4138 code_coverage_quiet_0 = --quiet
4139
4140 # sanitizes the test-name: replaces with underscores: dashes and dots
4141 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4142
4143 # Use recursive makes in order to ignore errors during check
4144 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4145
4146 # Capture code coverage data
4147 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4148
4149 # Hook rule executed before code-coverage-capture, overridable by the user
4150 code-coverage-capture-hook:
4151
4152 '"$CODE_COVERAGE_RULES_CLEAN"'
4153
4154 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4155 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4156
4157 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4158 '
4159
4160
4161
4162
4163
4164 # Initialize libtool
4165 DEPDIR="${am__leading_dot}deps"
4166
4167 ac_config_commands="$ac_config_commands depfiles"
4168
4169
4170 am_make=${MAKE-make}
4171 cat > confinc << 'END'
4172 am__doit:
4173         @echo this is the am__doit target
4174 .PHONY: am__doit
4175 END
4176 # If we don't find an include directive, just comment out the code.
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4178 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4179 am__include="#"
4180 am__quote=
4181 _am_result=none
4182 # First try GNU make style include.
4183 echo "include confinc" > confmf
4184 # Ignore all kinds of additional output from 'make'.
4185 case `$am_make -s -f confmf 2> /dev/null` in #(
4186 *the\ am__doit\ target*)
4187   am__include=include
4188   am__quote=
4189   _am_result=GNU
4190   ;;
4191 esac
4192 # Now try BSD make style include.
4193 if test "$am__include" = "#"; then
4194    echo '.include "confinc"' > confmf
4195    case `$am_make -s -f confmf 2> /dev/null` in #(
4196    *the\ am__doit\ target*)
4197      am__include=.include
4198      am__quote="\""
4199      _am_result=BSD
4200      ;;
4201    esac
4202 fi
4203
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4206 $as_echo "$_am_result" >&6; }
4207 rm -f confinc confmf
4208
4209 # Check whether --enable-dependency-tracking was given.
4210 if test "${enable_dependency_tracking+set}" = set; then :
4211   enableval=$enable_dependency_tracking;
4212 fi
4213
4214 if test "x$enable_dependency_tracking" != xno; then
4215   am_depcomp="$ac_aux_dir/depcomp"
4216   AMDEPBACKSLASH='\'
4217   am__nodep='_no'
4218 fi
4219  if test "x$enable_dependency_tracking" != xno; then
4220   AMDEP_TRUE=
4221   AMDEP_FALSE='#'
4222 else
4223   AMDEP_TRUE='#'
4224   AMDEP_FALSE=
4225 fi
4226
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 if test -n "$ac_tool_prefix"; then
4234   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false; then :
4239   $as_echo_n "(cached) " >&6
4240 else
4241   if test -n "$CC"; then
4242   ac_cv_prog_CC="$CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249     for ac_exec_ext in '' $ac_executable_extensions; do
4250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253     break 2
4254   fi
4255 done
4256   done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4265 else
4266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271 fi
4272 if test -z "$ac_cv_prog_CC"; then
4273   ac_ct_CC=$CC
4274   # Extract the first word of "gcc", so it can be a program name with args.
4275 set dummy gcc; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4279   $as_echo_n "(cached) " >&6
4280 else
4281   if test -n "$ac_ct_CC"; then
4282   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289     for ac_exec_ext in '' $ac_executable_extensions; do
4290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     ac_cv_prog_ac_ct_CC="gcc"
4292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293     break 2
4294   fi
4295 done
4296   done
4297 IFS=$as_save_IFS
4298
4299 fi
4300 fi
4301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4302 if test -n "$ac_ct_CC"; then
4303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4304 $as_echo "$ac_ct_CC" >&6; }
4305 else
4306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4308 fi
4309
4310   if test "x$ac_ct_CC" = x; then
4311     CC=""
4312   else
4313     case $cross_compiling:$ac_tool_warned in
4314 yes:)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319     CC=$ac_ct_CC
4320   fi
4321 else
4322   CC="$ac_cv_prog_CC"
4323 fi
4324
4325 if test -z "$CC"; then
4326           if test -n "$ac_tool_prefix"; then
4327     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}cc; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_prog_CC+:} false; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   if test -n "$CC"; then
4335   ac_cv_prog_CC="$CC" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342     for ac_exec_ext in '' $ac_executable_extensions; do
4343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344     ac_cv_prog_CC="${ac_tool_prefix}cc"
4345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346     break 2
4347   fi
4348 done
4349   done
4350 IFS=$as_save_IFS
4351
4352 fi
4353 fi
4354 CC=$ac_cv_prog_CC
4355 if test -n "$CC"; then
4356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4357 $as_echo "$CC" >&6; }
4358 else
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 fi
4362
4363
4364   fi
4365 fi
4366 if test -z "$CC"; then
4367   # Extract the first word of "cc", so it can be a program name with args.
4368 set dummy cc; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_CC+:} false; then :
4372   $as_echo_n "(cached) " >&6
4373 else
4374   if test -n "$CC"; then
4375   ac_cv_prog_CC="$CC" # Let the user override the test.
4376 else
4377   ac_prog_rejected=no
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383     for ac_exec_ext in '' $ac_executable_extensions; do
4384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4386        ac_prog_rejected=yes
4387        continue
4388      fi
4389     ac_cv_prog_CC="cc"
4390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391     break 2
4392   fi
4393 done
4394   done
4395 IFS=$as_save_IFS
4396
4397 if test $ac_prog_rejected = yes; then
4398   # We found a bogon in the path, so make sure we never use it.
4399   set dummy $ac_cv_prog_CC
4400   shift
4401   if test $# != 0; then
4402     # We chose a different compiler from the bogus one.
4403     # However, it has the same basename, so the bogon will be chosen
4404     # first if we set CC to just the basename; use the full file name.
4405     shift
4406     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4407   fi
4408 fi
4409 fi
4410 fi
4411 CC=$ac_cv_prog_CC
4412 if test -n "$CC"; then
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4414 $as_echo "$CC" >&6; }
4415 else
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421 fi
4422 if test -z "$CC"; then
4423   if test -n "$ac_tool_prefix"; then
4424   for ac_prog in cl.exe
4425   do
4426     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_CC+:} false; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   if test -n "$CC"; then
4434   ac_cv_prog_CC="$CC" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441     for ac_exec_ext in '' $ac_executable_extensions; do
4442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448   done
4449 IFS=$as_save_IFS
4450
4451 fi
4452 fi
4453 CC=$ac_cv_prog_CC
4454 if test -n "$CC"; then
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4456 $as_echo "$CC" >&6; }
4457 else
4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4461
4462
4463     test -n "$CC" && break
4464   done
4465 fi
4466 if test -z "$CC"; then
4467   ac_ct_CC=$CC
4468   for ac_prog in cl.exe
4469 do
4470   # Extract the first word of "$ac_prog", so it can be a program name with args.
4471 set dummy $ac_prog; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   if test -n "$ac_ct_CC"; then
4478   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_prog_ac_ct_CC="$ac_prog"
4488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492   done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4498 if test -n "$ac_ct_CC"; then
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4500 $as_echo "$ac_ct_CC" >&6; }
4501 else
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4504 fi
4505
4506
4507   test -n "$ac_ct_CC" && break
4508 done
4509
4510   if test "x$ac_ct_CC" = x; then
4511     CC=""
4512   else
4513     case $cross_compiling:$ac_tool_warned in
4514 yes:)
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517 ac_tool_warned=yes ;;
4518 esac
4519     CC=$ac_ct_CC
4520   fi
4521 fi
4522
4523 fi
4524
4525
4526 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4528 as_fn_error $? "no acceptable C compiler found in \$PATH
4529 See \`config.log' for more details" "$LINENO" 5; }
4530
4531 # Provide some information about the compiler.
4532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4533 set X $ac_compile
4534 ac_compiler=$2
4535 for ac_option in --version -v -V -qversion; do
4536   { { ac_try="$ac_compiler $ac_option >&5"
4537 case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4542 $as_echo "$ac_try_echo"; } >&5
4543   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4544   ac_status=$?
4545   if test -s conftest.err; then
4546     sed '10a\
4547 ... rest of stderr output deleted ...
4548          10q' conftest.err >conftest.er1
4549     cat conftest.er1 >&5
4550   fi
4551   rm -f conftest.er1 conftest.err
4552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4553   test $ac_status = 0; }
4554 done
4555
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558
4559 int
4560 main ()
4561 {
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 ac_clean_files_save=$ac_clean_files
4568 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4569 # Try to create an executable without -o first, disregard a.out.
4570 # It will help us diagnose broken compilers, and finding out an intuition
4571 # of exeext.
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4573 $as_echo_n "checking whether the C compiler works... " >&6; }
4574 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4575
4576 # The possible output files:
4577 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4578
4579 ac_rmfiles=
4580 for ac_file in $ac_files
4581 do
4582   case $ac_file in
4583     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4584     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4585   esac
4586 done
4587 rm -f $ac_rmfiles
4588
4589 if { { ac_try="$ac_link_default"
4590 case "(($ac_try" in
4591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592   *) ac_try_echo=$ac_try;;
4593 esac
4594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595 $as_echo "$ac_try_echo"; } >&5
4596   (eval "$ac_link_default") 2>&5
4597   ac_status=$?
4598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599   test $ac_status = 0; }; then :
4600   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4601 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4602 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4603 # so that the user can short-circuit this test for compilers unknown to
4604 # Autoconf.
4605 for ac_file in $ac_files ''
4606 do
4607   test -f "$ac_file" || continue
4608   case $ac_file in
4609     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4610         ;;
4611     [ab].out )
4612         # We found the default executable, but exeext='' is most
4613         # certainly right.
4614         break;;
4615     *.* )
4616         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4617         then :; else
4618            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4619         fi
4620         # We set ac_cv_exeext here because the later test for it is not
4621         # safe: cross compilers may not add the suffix if given an `-o'
4622         # argument, so we may need to know it at that point already.
4623         # Even if this section looks crufty: it has the advantage of
4624         # actually working.
4625         break;;
4626     * )
4627         break;;
4628   esac
4629 done
4630 test "$ac_cv_exeext" = no && ac_cv_exeext=
4631
4632 else
4633   ac_file=''
4634 fi
4635 if test -z "$ac_file"; then :
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4640
4641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4643 as_fn_error 77 "C compiler cannot create executables
4644 See \`config.log' for more details" "$LINENO" 5; }
4645 else
4646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4647 $as_echo "yes" >&6; }
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4650 $as_echo_n "checking for C compiler default output file name... " >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4652 $as_echo "$ac_file" >&6; }
4653 ac_exeext=$ac_cv_exeext
4654
4655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4656 ac_clean_files=$ac_clean_files_save
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4658 $as_echo_n "checking for suffix of executables... " >&6; }
4659 if { { ac_try="$ac_link"
4660 case "(($ac_try" in
4661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662   *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666   (eval "$ac_link") 2>&5
4667   ac_status=$?
4668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669   test $ac_status = 0; }; then :
4670   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4671 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4672 # work properly (i.e., refer to `conftest.exe'), while it won't with
4673 # `rm'.
4674 for ac_file in conftest.exe conftest conftest.*; do
4675   test -f "$ac_file" || continue
4676   case $ac_file in
4677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4678     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4679           break;;
4680     * ) break;;
4681   esac
4682 done
4683 else
4684   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4686 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4687 See \`config.log' for more details" "$LINENO" 5; }
4688 fi
4689 rm -f conftest conftest$ac_cv_exeext
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4691 $as_echo "$ac_cv_exeext" >&6; }
4692
4693 rm -f conftest.$ac_ext
4694 EXEEXT=$ac_cv_exeext
4695 ac_exeext=$EXEEXT
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h.  */
4698 #include <stdio.h>
4699 int
4700 main ()
4701 {
4702 FILE *f = fopen ("conftest.out", "w");
4703  return ferror (f) || fclose (f) != 0;
4704
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 ac_clean_files="$ac_clean_files conftest.out"
4710 # Check that the compiler produces executables we can run.  If not, either
4711 # the compiler is broken, or we cross compile.
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4713 $as_echo_n "checking whether we are cross compiling... " >&6; }
4714 if test "$cross_compiling" != yes; then
4715   { { ac_try="$ac_link"
4716 case "(($ac_try" in
4717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718   *) ac_try_echo=$ac_try;;
4719 esac
4720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721 $as_echo "$ac_try_echo"; } >&5
4722   (eval "$ac_link") 2>&5
4723   ac_status=$?
4724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725   test $ac_status = 0; }
4726   if { ac_try='./conftest$ac_cv_exeext'
4727   { { case "(($ac_try" in
4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729   *) ac_try_echo=$ac_try;;
4730 esac
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 $as_echo "$ac_try_echo"; } >&5
4733   (eval "$ac_try") 2>&5
4734   ac_status=$?
4735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736   test $ac_status = 0; }; }; then
4737     cross_compiling=no
4738   else
4739     if test "$cross_compiling" = maybe; then
4740         cross_compiling=yes
4741     else
4742         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error $? "cannot run C compiled programs.
4745 If you meant to cross compile, use \`--host'.
4746 See \`config.log' for more details" "$LINENO" 5; }
4747     fi
4748   fi
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4751 $as_echo "$cross_compiling" >&6; }
4752
4753 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4754 ac_clean_files=$ac_clean_files_save
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4756 $as_echo_n "checking for suffix of object files... " >&6; }
4757 if ${ac_cv_objext+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h.  */
4762
4763 int
4764 main ()
4765 {
4766
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 rm -f conftest.o conftest.obj
4772 if { { ac_try="$ac_compile"
4773 case "(($ac_try" in
4774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775   *) ac_try_echo=$ac_try;;
4776 esac
4777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4778 $as_echo "$ac_try_echo"; } >&5
4779   (eval "$ac_compile") 2>&5
4780   ac_status=$?
4781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4782   test $ac_status = 0; }; then :
4783   for ac_file in conftest.o conftest.obj conftest.*; do
4784   test -f "$ac_file" || continue;
4785   case $ac_file in
4786     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4787     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4788        break;;
4789   esac
4790 done
4791 else
4792   $as_echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4797 as_fn_error $? "cannot compute suffix of object files: cannot compile
4798 See \`config.log' for more details" "$LINENO" 5; }
4799 fi
4800 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4803 $as_echo "$ac_cv_objext" >&6; }
4804 OBJEXT=$ac_cv_objext
4805 ac_objext=$OBJEXT
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4808 if ${ac_cv_c_compiler_gnu+:} false; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h.  */
4813
4814 int
4815 main ()
4816 {
4817 #ifndef __GNUC__
4818        choke me
4819 #endif
4820
4821   ;
4822   return 0;
4823 }
4824 _ACEOF
4825 if ac_fn_c_try_compile "$LINENO"; then :
4826   ac_compiler_gnu=yes
4827 else
4828   ac_compiler_gnu=no
4829 fi
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4832
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4836 if test $ac_compiler_gnu = yes; then
4837   GCC=yes
4838 else
4839   GCC=
4840 fi
4841 ac_test_CFLAGS=${CFLAGS+set}
4842 ac_save_CFLAGS=$CFLAGS
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4845 if ${ac_cv_prog_cc_g+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   ac_save_c_werror_flag=$ac_c_werror_flag
4849    ac_c_werror_flag=yes
4850    ac_cv_prog_cc_g=no
4851    CFLAGS="-g"
4852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h.  */
4854
4855 int
4856 main ()
4857 {
4858
4859   ;
4860   return 0;
4861 }
4862 _ACEOF
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864   ac_cv_prog_cc_g=yes
4865 else
4866   CFLAGS=""
4867       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h.  */
4869
4870 int
4871 main ()
4872 {
4873
4874   ;
4875   return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879
4880 else
4881   ac_c_werror_flag=$ac_save_c_werror_flag
4882          CFLAGS="-g"
4883          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h.  */
4885
4886 int
4887 main ()
4888 {
4889
4890   ;
4891   return 0;
4892 }
4893 _ACEOF
4894 if ac_fn_c_try_compile "$LINENO"; then :
4895   ac_cv_prog_cc_g=yes
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902    ac_c_werror_flag=$ac_save_c_werror_flag
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4905 $as_echo "$ac_cv_prog_cc_g" >&6; }
4906 if test "$ac_test_CFLAGS" = set; then
4907   CFLAGS=$ac_save_CFLAGS
4908 elif test $ac_cv_prog_cc_g = yes; then
4909   if test "$GCC" = yes; then
4910     CFLAGS="-g -O2"
4911   else
4912     CFLAGS="-g"
4913   fi
4914 else
4915   if test "$GCC" = yes; then
4916     CFLAGS="-O2"
4917   else
4918     CFLAGS=
4919   fi
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4922 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4923 if ${ac_cv_prog_cc_c89+:} false; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   ac_cv_prog_cc_c89=no
4927 ac_save_CC=$CC
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h.  */
4930 #include <stdarg.h>
4931 #include <stdio.h>
4932 struct stat;
4933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4934 struct buf { int x; };
4935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4936 static char *e (p, i)
4937      char **p;
4938      int i;
4939 {
4940   return p[i];
4941 }
4942 static char *f (char * (*g) (char **, int), char **p, ...)
4943 {
4944   char *s;
4945   va_list v;
4946   va_start (v,p);
4947   s = g (p, va_arg (v,int));
4948   va_end (v);
4949   return s;
4950 }
4951
4952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4953    function prototypes and stuff, but not '\xHH' hex character constants.
4954    These don't provoke an error unfortunately, instead are silently treated
4955    as 'x'.  The following induces an error, until -std is added to get
4956    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4957    array size at least.  It's necessary to write '\x00'==0 to get something
4958    that's true only with -std.  */
4959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4960
4961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4962    inside strings and character constants.  */
4963 #define FOO(x) 'x'
4964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4965
4966 int test (int i, double x);
4967 struct s1 {int (*f) (int a);};
4968 struct s2 {int (*f) (double a);};
4969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4970 int argc;
4971 char **argv;
4972 int
4973 main ()
4974 {
4975 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4976   ;
4977   return 0;
4978 }
4979 _ACEOF
4980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4981         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4982 do
4983   CC="$ac_save_CC $ac_arg"
4984   if ac_fn_c_try_compile "$LINENO"; then :
4985   ac_cv_prog_cc_c89=$ac_arg
4986 fi
4987 rm -f core conftest.err conftest.$ac_objext
4988   test "x$ac_cv_prog_cc_c89" != "xno" && break
4989 done
4990 rm -f conftest.$ac_ext
4991 CC=$ac_save_CC
4992
4993 fi
4994 # AC_CACHE_VAL
4995 case "x$ac_cv_prog_cc_c89" in
4996   x)
4997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4998 $as_echo "none needed" >&6; } ;;
4999   xno)
5000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5001 $as_echo "unsupported" >&6; } ;;
5002   *)
5003     CC="$CC $ac_cv_prog_cc_c89"
5004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5006 esac
5007 if test "x$ac_cv_prog_cc_c89" != xno; then :
5008
5009 fi
5010
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016
5017 ac_ext=c
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5023 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5024 if ${am_cv_prog_cc_c_o+:} false; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h.  */
5029
5030 int
5031 main ()
5032 {
5033
5034   ;
5035   return 0;
5036 }
5037 _ACEOF
5038   # Make sure it works both with $CC and with simple cc.
5039   # Following AC_PROG_CC_C_O, we do the test twice because some
5040   # compilers refuse to overwrite an existing .o file with -o,
5041   # though they will create one.
5042   am_cv_prog_cc_c_o=yes
5043   for am_i in 1 2; do
5044     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5045    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5046    ac_status=$?
5047    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048    (exit $ac_status); } \
5049          && test -f conftest2.$ac_objext; then
5050       : OK
5051     else
5052       am_cv_prog_cc_c_o=no
5053       break
5054     fi
5055   done
5056   rm -f core conftest*
5057   unset am_i
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5060 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5061 if test "$am_cv_prog_cc_c_o" != yes; then
5062    # Losing compiler, so override with the script.
5063    # FIXME: It is wrong to rewrite CC.
5064    # But if we don't then we get into trouble of one sort or another.
5065    # A longer-term fix would be to have automake use am__CC in this case,
5066    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5067    CC="$am_aux_dir/compile $CC"
5068 fi
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075
5076 depcc="$CC"   am_compiler_list=
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5079 $as_echo_n "checking dependency style of $depcc... " >&6; }
5080 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5084   # We make a subdir and do the tests there.  Otherwise we can end up
5085   # making bogus files that we don't know about and never remove.  For
5086   # instance it was reported that on HP-UX the gcc test will end up
5087   # making a dummy file named 'D' -- because '-MD' means "put the output
5088   # in D".
5089   rm -rf conftest.dir
5090   mkdir conftest.dir
5091   # Copy depcomp to subdir because otherwise we won't find it if we're
5092   # using a relative directory.
5093   cp "$am_depcomp" conftest.dir
5094   cd conftest.dir
5095   # We will build objects and dependencies in a subdirectory because
5096   # it helps to detect inapplicable dependency modes.  For instance
5097   # both Tru64's cc and ICC support -MD to output dependencies as a
5098   # side effect of compilation, but ICC will put the dependencies in
5099   # the current directory while Tru64 will put them in the object
5100   # directory.
5101   mkdir sub
5102
5103   am_cv_CC_dependencies_compiler_type=none
5104   if test "$am_compiler_list" = ""; then
5105      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5106   fi
5107   am__universal=false
5108   case " $depcc " in #(
5109      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5110      esac
5111
5112   for depmode in $am_compiler_list; do
5113     # Setup a source with many dependencies, because some compilers
5114     # like to wrap large dependency lists on column 80 (with \), and
5115     # we should not choose a depcomp mode which is confused by this.
5116     #
5117     # We need to recreate these files for each test, as the compiler may
5118     # overwrite some of them when testing with obscure command lines.
5119     # This happens at least with the AIX C compiler.
5120     : > sub/conftest.c
5121     for i in 1 2 3 4 5 6; do
5122       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5123       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5124       # Solaris 10 /bin/sh.
5125       echo '/* dummy */' > sub/conftst$i.h
5126     done
5127     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5128
5129     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5130     # mode.  It turns out that the SunPro C++ compiler does not properly
5131     # handle '-M -o', and we need to detect this.  Also, some Intel
5132     # versions had trouble with output in subdirs.
5133     am__obj=sub/conftest.${OBJEXT-o}
5134     am__minus_obj="-o $am__obj"
5135     case $depmode in
5136     gcc)
5137       # This depmode causes a compiler race in universal mode.
5138       test "$am__universal" = false || continue
5139       ;;
5140     nosideeffect)
5141       # After this tag, mechanisms are not by side-effect, so they'll
5142       # only be used when explicitly requested.
5143       if test "x$enable_dependency_tracking" = xyes; then
5144         continue
5145       else
5146         break
5147       fi
5148       ;;
5149     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5150       # This compiler won't grok '-c -o', but also, the minuso test has
5151       # not run yet.  These depmodes are late enough in the game, and
5152       # so weak that their functioning should not be impacted.
5153       am__obj=conftest.${OBJEXT-o}
5154       am__minus_obj=
5155       ;;
5156     none) break ;;
5157     esac
5158     if depmode=$depmode \
5159        source=sub/conftest.c object=$am__obj \
5160        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5161        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5162          >/dev/null 2>conftest.err &&
5163        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5164        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5165        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5166        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5167       # icc doesn't choke on unknown options, it will just issue warnings
5168       # or remarks (even with -Werror).  So we grep stderr for any message
5169       # that says an option was ignored or not supported.
5170       # When given -MP, icc 7.0 and 7.1 complain thusly:
5171       #   icc: Command line warning: ignoring option '-M'; no argument required
5172       # The diagnosis changed in icc 8.0:
5173       #   icc: Command line remark: option '-MP' not supported
5174       if (grep 'ignoring option' conftest.err ||
5175           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5176         am_cv_CC_dependencies_compiler_type=$depmode
5177         break
5178       fi
5179     fi
5180   done
5181
5182   cd ..
5183   rm -rf conftest.dir
5184 else
5185   am_cv_CC_dependencies_compiler_type=none
5186 fi
5187
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5190 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5192
5193  if
5194   test "x$enable_dependency_tracking" != xno \
5195   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5196   am__fastdepCC_TRUE=
5197   am__fastdepCC_FALSE='#'
5198 else
5199   am__fastdepCC_TRUE='#'
5200   am__fastdepCC_FALSE=
5201 fi
5202
5203
5204
5205 if test -n "$ac_tool_prefix"; then
5206   for ac_prog in ar lib "link -lib"
5207   do
5208     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_AR+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -n "$AR"; then
5216   ac_cv_prog_AR="$AR" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230   done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 AR=$ac_cv_prog_AR
5236 if test -n "$AR"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5238 $as_echo "$AR" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245     test -n "$AR" && break
5246   done
5247 fi
5248 if test -z "$AR"; then
5249   ac_ct_AR=$AR
5250   for ac_prog in ar lib "link -lib"
5251 do
5252   # Extract the first word of "$ac_prog", so it can be a program name with args.
5253 set dummy $ac_prog; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   if test -n "$ac_ct_AR"; then
5260   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265   IFS=$as_save_IFS
5266   test -z "$as_dir" && as_dir=.
5267     for ac_exec_ext in '' $ac_executable_extensions; do
5268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269     ac_cv_prog_ac_ct_AR="$ac_prog"
5270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271     break 2
5272   fi
5273 done
5274   done
5275 IFS=$as_save_IFS
5276
5277 fi
5278 fi
5279 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5280 if test -n "$ac_ct_AR"; then
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5282 $as_echo "$ac_ct_AR" >&6; }
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287
5288
5289   test -n "$ac_ct_AR" && break
5290 done
5291
5292   if test "x$ac_ct_AR" = x; then
5293     AR="false"
5294   else
5295     case $cross_compiling:$ac_tool_warned in
5296 yes:)
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5300 esac
5301     AR=$ac_ct_AR
5302   fi
5303 fi
5304
5305 : ${AR=ar}
5306
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5308 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5309 if ${am_cv_ar_interface+:} false; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   ac_ext=c
5313 ac_cpp='$CPP $CPPFLAGS'
5314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317
5318    am_cv_ar_interface=ar
5319    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h.  */
5321 int some_variable = 0;
5322 _ACEOF
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5325       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5326   (eval $am_ar_try) 2>&5
5327   ac_status=$?
5328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5329   test $ac_status = 0; }
5330       if test "$ac_status" -eq 0; then
5331         am_cv_ar_interface=ar
5332       else
5333         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5334         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5335   (eval $am_ar_try) 2>&5
5336   ac_status=$?
5337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5338   test $ac_status = 0; }
5339         if test "$ac_status" -eq 0; then
5340           am_cv_ar_interface=lib
5341         else
5342           am_cv_ar_interface=unknown
5343         fi
5344       fi
5345       rm -f conftest.lib libconftest.a
5346
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349    ac_ext=c
5350 ac_cpp='$CPP $CPPFLAGS'
5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5357 $as_echo "$am_cv_ar_interface" >&6; }
5358
5359 case $am_cv_ar_interface in
5360 ar)
5361   ;;
5362 lib)
5363   # Microsoft lib, so override with the ar-lib wrapper script.
5364   # FIXME: It is wrong to rewrite AR.
5365   # But if we don't then we get into trouble of one sort or another.
5366   # A longer-term fix would be to have automake use am__AR in this case,
5367   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5368   # similar.
5369   AR="$am_aux_dir/ar-lib $AR"
5370   ;;
5371 unknown)
5372   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5373   ;;
5374 esac
5375
5376
5377 case `pwd` in
5378   *\ * | *\     *)
5379     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5380 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5381 esac
5382
5383
5384
5385 macro_version='2.4.6'
5386 macro_revision='2.4.6'
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 ltmain=$ac_aux_dir/ltmain.sh
5401
5402 # Make sure we can run config.sub.
5403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5404   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5407 $as_echo_n "checking build system type... " >&6; }
5408 if ${ac_cv_build+:} false; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   ac_build_alias=$build_alias
5412 test "x$ac_build_alias" = x &&
5413   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5414 test "x$ac_build_alias" = x &&
5415   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5416 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5417   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5418
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5421 $as_echo "$ac_cv_build" >&6; }
5422 case $ac_cv_build in
5423 *-*-*) ;;
5424 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5425 esac
5426 build=$ac_cv_build
5427 ac_save_IFS=$IFS; IFS='-'
5428 set x $ac_cv_build
5429 shift
5430 build_cpu=$1
5431 build_vendor=$2
5432 shift; shift
5433 # Remember, the first character of IFS is used to create $*,
5434 # except with old shells:
5435 build_os=$*
5436 IFS=$ac_save_IFS
5437 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5438
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5441 $as_echo_n "checking host system type... " >&6; }
5442 if ${ac_cv_host+:} false; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445   if test "x$host_alias" = x; then
5446   ac_cv_host=$ac_cv_build
5447 else
5448   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5449     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5450 fi
5451
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5454 $as_echo "$ac_cv_host" >&6; }
5455 case $ac_cv_host in
5456 *-*-*) ;;
5457 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5458 esac
5459 host=$ac_cv_host
5460 ac_save_IFS=$IFS; IFS='-'
5461 set x $ac_cv_host
5462 shift
5463 host_cpu=$1
5464 host_vendor=$2
5465 shift; shift
5466 # Remember, the first character of IFS is used to create $*,
5467 # except with old shells:
5468 host_os=$*
5469 IFS=$ac_save_IFS
5470 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5471
5472
5473 # Backslashify metacharacters that are still active within
5474 # double-quoted strings.
5475 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5476
5477 # Same as above, but do not quote variable references.
5478 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5479
5480 # Sed substitution to delay expansion of an escaped shell variable in a
5481 # double_quote_subst'ed string.
5482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5483
5484 # Sed substitution to delay expansion of an escaped single quote.
5485 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5486
5487 # Sed substitution to avoid accidental globbing in evaled expressions
5488 no_glob_subst='s/\*/\\\*/g'
5489
5490 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5491 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5495 $as_echo_n "checking how to print strings... " >&6; }
5496 # Test print first, because it will be a builtin if present.
5497 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5498    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5499   ECHO='print -r --'
5500 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5501   ECHO='printf %s\n'
5502 else
5503   # Use this function as a fallback that always works.
5504   func_fallback_echo ()
5505   {
5506     eval 'cat <<_LTECHO_EOF
5507 $1
5508 _LTECHO_EOF'
5509   }
5510   ECHO='func_fallback_echo'
5511 fi
5512
5513 # func_echo_all arg...
5514 # Invoke $ECHO with all args, space-separated.
5515 func_echo_all ()
5516 {
5517     $ECHO ""
5518 }
5519
5520 case $ECHO in
5521   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5522 $as_echo "printf" >&6; } ;;
5523   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5524 $as_echo "print -r" >&6; } ;;
5525   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5526 $as_echo "cat" >&6; } ;;
5527 esac
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5543 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5544 if ${ac_cv_path_SED+:} false; then :
5545   $as_echo_n "(cached) " >&6
5546 else
5547             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5548      for ac_i in 1 2 3 4 5 6 7; do
5549        ac_script="$ac_script$as_nl$ac_script"
5550      done
5551      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5552      { ac_script=; unset ac_script;}
5553      if test -z "$SED"; then
5554   ac_path_SED_found=false
5555   # Loop through the user's path and test for each of PROGNAME-LIST
5556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561     for ac_prog in sed gsed; do
5562     for ac_exec_ext in '' $ac_executable_extensions; do
5563       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5564       as_fn_executable_p "$ac_path_SED" || continue
5565 # Check for GNU ac_path_SED and select it if it is found.
5566   # Check for GNU $ac_path_SED
5567 case `"$ac_path_SED" --version 2>&1` in
5568 *GNU*)
5569   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5570 *)
5571   ac_count=0
5572   $as_echo_n 0123456789 >"conftest.in"
5573   while :
5574   do
5575     cat "conftest.in" "conftest.in" >"conftest.tmp"
5576     mv "conftest.tmp" "conftest.in"
5577     cp "conftest.in" "conftest.nl"
5578     $as_echo '' >> "conftest.nl"
5579     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581     as_fn_arith $ac_count + 1 && ac_count=$as_val
5582     if test $ac_count -gt ${ac_path_SED_max-0}; then
5583       # Best one so far, save it but keep looking for a better one
5584       ac_cv_path_SED="$ac_path_SED"
5585       ac_path_SED_max=$ac_count
5586     fi
5587     # 10*(2^10) chars as input seems more than enough
5588     test $ac_count -gt 10 && break
5589   done
5590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 esac
5592
5593       $ac_path_SED_found && break 3
5594     done
5595   done
5596   done
5597 IFS=$as_save_IFS
5598   if test -z "$ac_cv_path_SED"; then
5599     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5600   fi
5601 else
5602   ac_cv_path_SED=$SED
5603 fi
5604
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5607 $as_echo "$ac_cv_path_SED" >&6; }
5608  SED="$ac_cv_path_SED"
5609   rm -f conftest.sed
5610
5611 test -z "$SED" && SED=sed
5612 Xsed="$SED -e 1s/^X//"
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5626 if ${ac_cv_path_GREP+:} false; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   if test -z "$GREP"; then
5630   ac_path_GREP_found=false
5631   # Loop through the user's path and test for each of PROGNAME-LIST
5632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637     for ac_prog in grep ggrep; do
5638     for ac_exec_ext in '' $ac_executable_extensions; do
5639       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5640       as_fn_executable_p "$ac_path_GREP" || continue
5641 # Check for GNU ac_path_GREP and select it if it is found.
5642   # Check for GNU $ac_path_GREP
5643 case `"$ac_path_GREP" --version 2>&1` in
5644 *GNU*)
5645   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5646 *)
5647   ac_count=0
5648   $as_echo_n 0123456789 >"conftest.in"
5649   while :
5650   do
5651     cat "conftest.in" "conftest.in" >"conftest.tmp"
5652     mv "conftest.tmp" "conftest.in"
5653     cp "conftest.in" "conftest.nl"
5654     $as_echo 'GREP' >> "conftest.nl"
5655     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5656     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5657     as_fn_arith $ac_count + 1 && ac_count=$as_val
5658     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5659       # Best one so far, save it but keep looking for a better one
5660       ac_cv_path_GREP="$ac_path_GREP"
5661       ac_path_GREP_max=$ac_count
5662     fi
5663     # 10*(2^10) chars as input seems more than enough
5664     test $ac_count -gt 10 && break
5665   done
5666   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 esac
5668
5669       $ac_path_GREP_found && break 3
5670     done
5671   done
5672   done
5673 IFS=$as_save_IFS
5674   if test -z "$ac_cv_path_GREP"; then
5675     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5676   fi
5677 else
5678   ac_cv_path_GREP=$GREP
5679 fi
5680
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5683 $as_echo "$ac_cv_path_GREP" >&6; }
5684  GREP="$ac_cv_path_GREP"
5685
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5688 $as_echo_n "checking for egrep... " >&6; }
5689 if ${ac_cv_path_EGREP+:} false; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5693    then ac_cv_path_EGREP="$GREP -E"
5694    else
5695      if test -z "$EGREP"; then
5696   ac_path_EGREP_found=false
5697   # Loop through the user's path and test for each of PROGNAME-LIST
5698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703     for ac_prog in egrep; do
5704     for ac_exec_ext in '' $ac_executable_extensions; do
5705       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5706       as_fn_executable_p "$ac_path_EGREP" || continue
5707 # Check for GNU ac_path_EGREP and select it if it is found.
5708   # Check for GNU $ac_path_EGREP
5709 case `"$ac_path_EGREP" --version 2>&1` in
5710 *GNU*)
5711   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5712 *)
5713   ac_count=0
5714   $as_echo_n 0123456789 >"conftest.in"
5715   while :
5716   do
5717     cat "conftest.in" "conftest.in" >"conftest.tmp"
5718     mv "conftest.tmp" "conftest.in"
5719     cp "conftest.in" "conftest.nl"
5720     $as_echo 'EGREP' >> "conftest.nl"
5721     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723     as_fn_arith $ac_count + 1 && ac_count=$as_val
5724     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5725       # Best one so far, save it but keep looking for a better one
5726       ac_cv_path_EGREP="$ac_path_EGREP"
5727       ac_path_EGREP_max=$ac_count
5728     fi
5729     # 10*(2^10) chars as input seems more than enough
5730     test $ac_count -gt 10 && break
5731   done
5732   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5733 esac
5734
5735       $ac_path_EGREP_found && break 3
5736     done
5737   done
5738   done
5739 IFS=$as_save_IFS
5740   if test -z "$ac_cv_path_EGREP"; then
5741     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5742   fi
5743 else
5744   ac_cv_path_EGREP=$EGREP
5745 fi
5746
5747    fi
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5750 $as_echo "$ac_cv_path_EGREP" >&6; }
5751  EGREP="$ac_cv_path_EGREP"
5752
5753
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5755 $as_echo_n "checking for fgrep... " >&6; }
5756 if ${ac_cv_path_FGREP+:} false; then :
5757   $as_echo_n "(cached) " >&6
5758 else
5759   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5760    then ac_cv_path_FGREP="$GREP -F"
5761    else
5762      if test -z "$FGREP"; then
5763   ac_path_FGREP_found=false
5764   # Loop through the user's path and test for each of PROGNAME-LIST
5765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5767 do
5768   IFS=$as_save_IFS
5769   test -z "$as_dir" && as_dir=.
5770     for ac_prog in fgrep; do
5771     for ac_exec_ext in '' $ac_executable_extensions; do
5772       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5773       as_fn_executable_p "$ac_path_FGREP" || continue
5774 # Check for GNU ac_path_FGREP and select it if it is found.
5775   # Check for GNU $ac_path_FGREP
5776 case `"$ac_path_FGREP" --version 2>&1` in
5777 *GNU*)
5778   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5779 *)
5780   ac_count=0
5781   $as_echo_n 0123456789 >"conftest.in"
5782   while :
5783   do
5784     cat "conftest.in" "conftest.in" >"conftest.tmp"
5785     mv "conftest.tmp" "conftest.in"
5786     cp "conftest.in" "conftest.nl"
5787     $as_echo 'FGREP' >> "conftest.nl"
5788     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5789     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5790     as_fn_arith $ac_count + 1 && ac_count=$as_val
5791     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5792       # Best one so far, save it but keep looking for a better one
5793       ac_cv_path_FGREP="$ac_path_FGREP"
5794       ac_path_FGREP_max=$ac_count
5795     fi
5796     # 10*(2^10) chars as input seems more than enough
5797     test $ac_count -gt 10 && break
5798   done
5799   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5800 esac
5801
5802       $ac_path_FGREP_found && break 3
5803     done
5804   done
5805   done
5806 IFS=$as_save_IFS
5807   if test -z "$ac_cv_path_FGREP"; then
5808     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5809   fi
5810 else
5811   ac_cv_path_FGREP=$FGREP
5812 fi
5813
5814    fi
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5817 $as_echo "$ac_cv_path_FGREP" >&6; }
5818  FGREP="$ac_cv_path_FGREP"
5819
5820
5821 test -z "$GREP" && GREP=grep
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 # Check whether --with-gnu-ld was given.
5842 if test "${with_gnu_ld+set}" = set; then :
5843   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5844 else
5845   with_gnu_ld=no
5846 fi
5847
5848 ac_prog=ld
5849 if test yes = "$GCC"; then
5850   # Check if gcc -print-prog-name=ld gives a path.
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5852 $as_echo_n "checking for ld used by $CC... " >&6; }
5853   case $host in
5854   *-*-mingw*)
5855     # gcc leaves a trailing carriage return, which upsets mingw
5856     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5857   *)
5858     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5859   esac
5860   case $ac_prog in
5861     # Accept absolute paths.
5862     [\\/]* | ?:[\\/]*)
5863       re_direlt='/[^/][^/]*/\.\./'
5864       # Canonicalize the pathname of ld
5865       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5866       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5867         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5868       done
5869       test -z "$LD" && LD=$ac_prog
5870       ;;
5871   "")
5872     # If it fails, then pretend we aren't using GCC.
5873     ac_prog=ld
5874     ;;
5875   *)
5876     # If it is relative, then search for the first ld in PATH.
5877     with_gnu_ld=unknown
5878     ;;
5879   esac
5880 elif test yes = "$with_gnu_ld"; then
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5882 $as_echo_n "checking for GNU ld... " >&6; }
5883 else
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5885 $as_echo_n "checking for non-GNU ld... " >&6; }
5886 fi
5887 if ${lt_cv_path_LD+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   if test -z "$LD"; then
5891   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5892   for ac_dir in $PATH; do
5893     IFS=$lt_save_ifs
5894     test -z "$ac_dir" && ac_dir=.
5895     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5896       lt_cv_path_LD=$ac_dir/$ac_prog
5897       # Check to see if the program is GNU ld.  I'd rather use --version,
5898       # but apparently some variants of GNU ld only accept -v.
5899       # Break only if it was the GNU/non-GNU ld that we prefer.
5900       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5901       *GNU* | *'with BFD'*)
5902         test no != "$with_gnu_ld" && break
5903         ;;
5904       *)
5905         test yes != "$with_gnu_ld" && break
5906         ;;
5907       esac
5908     fi
5909   done
5910   IFS=$lt_save_ifs
5911 else
5912   lt_cv_path_LD=$LD # Let the user override the test with a path.
5913 fi
5914 fi
5915
5916 LD=$lt_cv_path_LD
5917 if test -n "$LD"; then
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5919 $as_echo "$LD" >&6; }
5920 else
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5926 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5927 if ${lt_cv_prog_gnu_ld+:} false; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5931 case `$LD -v 2>&1 </dev/null` in
5932 *GNU* | *'with BFD'*)
5933   lt_cv_prog_gnu_ld=yes
5934   ;;
5935 *)
5936   lt_cv_prog_gnu_ld=no
5937   ;;
5938 esac
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5942 with_gnu_ld=$lt_cv_prog_gnu_ld
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5953 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5954 if ${lt_cv_path_NM+:} false; then :
5955   $as_echo_n "(cached) " >&6
5956 else
5957   if test -n "$NM"; then
5958   # Let the user override the test.
5959   lt_cv_path_NM=$NM
5960 else
5961   lt_nm_to_check=${ac_tool_prefix}nm
5962   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5963     lt_nm_to_check="$lt_nm_to_check nm"
5964   fi
5965   for lt_tmp_nm in $lt_nm_to_check; do
5966     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5967     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5968       IFS=$lt_save_ifs
5969       test -z "$ac_dir" && ac_dir=.
5970       tmp_nm=$ac_dir/$lt_tmp_nm
5971       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5972         # Check to see if the nm accepts a BSD-compat flag.
5973         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5974         #   nm: unknown option "B" ignored
5975         # Tru64's nm complains that /dev/null is an invalid object file
5976         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5977         case $build_os in
5978         mingw*) lt_bad_file=conftest.nm/nofile ;;
5979         *) lt_bad_file=/dev/null ;;
5980         esac
5981         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5982         *$lt_bad_file* | *'Invalid file or object type'*)
5983           lt_cv_path_NM="$tmp_nm -B"
5984           break 2
5985           ;;
5986         *)
5987           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5988           */dev/null*)
5989             lt_cv_path_NM="$tmp_nm -p"
5990             break 2
5991             ;;
5992           *)
5993             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5994             continue # so that we can try to find one that supports BSD flags
5995             ;;
5996           esac
5997           ;;
5998         esac
5999       fi
6000     done
6001     IFS=$lt_save_ifs
6002   done
6003   : ${lt_cv_path_NM=no}
6004 fi
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6007 $as_echo "$lt_cv_path_NM" >&6; }
6008 if test no != "$lt_cv_path_NM"; then
6009   NM=$lt_cv_path_NM
6010 else
6011   # Didn't find any BSD compatible name lister, look for dumpbin.
6012   if test -n "$DUMPBIN"; then :
6013     # Let the user override the test.
6014   else
6015     if test -n "$ac_tool_prefix"; then
6016   for ac_prog in dumpbin "link -dump"
6017   do
6018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_prog_DUMPBIN+:} false; then :
6023   $as_echo_n "(cached) " >&6
6024 else
6025   if test -n "$DUMPBIN"; then
6026   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031   IFS=$as_save_IFS
6032   test -z "$as_dir" && as_dir=.
6033     for ac_exec_ext in '' $ac_executable_extensions; do
6034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037     break 2
6038   fi
6039 done
6040   done
6041 IFS=$as_save_IFS
6042
6043 fi
6044 fi
6045 DUMPBIN=$ac_cv_prog_DUMPBIN
6046 if test -n "$DUMPBIN"; then
6047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6048 $as_echo "$DUMPBIN" >&6; }
6049 else
6050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6052 fi
6053
6054
6055     test -n "$DUMPBIN" && break
6056   done
6057 fi
6058 if test -z "$DUMPBIN"; then
6059   ac_ct_DUMPBIN=$DUMPBIN
6060   for ac_prog in dumpbin "link -dump"
6061 do
6062   # Extract the first word of "$ac_prog", so it can be a program name with args.
6063 set dummy $ac_prog; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   if test -n "$ac_ct_DUMPBIN"; then
6070   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075   IFS=$as_save_IFS
6076   test -z "$as_dir" && as_dir=.
6077     for ac_exec_ext in '' $ac_executable_extensions; do
6078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081     break 2
6082   fi
6083 done
6084   done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6090 if test -n "$ac_ct_DUMPBIN"; then
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6092 $as_echo "$ac_ct_DUMPBIN" >&6; }
6093 else
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098
6099   test -n "$ac_ct_DUMPBIN" && break
6100 done
6101
6102   if test "x$ac_ct_DUMPBIN" = x; then
6103     DUMPBIN=":"
6104   else
6105     case $cross_compiling:$ac_tool_warned in
6106 yes:)
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6109 ac_tool_warned=yes ;;
6110 esac
6111     DUMPBIN=$ac_ct_DUMPBIN
6112   fi
6113 fi
6114
6115     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6116     *COFF*)
6117       DUMPBIN="$DUMPBIN -symbols -headers"
6118       ;;
6119     *)
6120       DUMPBIN=:
6121       ;;
6122     esac
6123   fi
6124
6125   if test : != "$DUMPBIN"; then
6126     NM=$DUMPBIN
6127   fi
6128 fi
6129 test -z "$NM" && NM=nm
6130
6131
6132
6133
6134
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6137 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6138 if ${lt_cv_nm_interface+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   lt_cv_nm_interface="BSD nm"
6142   echo "int some_variable = 0;" > conftest.$ac_ext
6143   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6144   (eval "$ac_compile" 2>conftest.err)
6145   cat conftest.err >&5
6146   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6147   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6148   cat conftest.err >&5
6149   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6150   cat conftest.out >&5
6151   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6152     lt_cv_nm_interface="MS dumpbin"
6153   fi
6154   rm -f conftest*
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6157 $as_echo "$lt_cv_nm_interface" >&6; }
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6160 $as_echo_n "checking whether ln -s works... " >&6; }
6161 LN_S=$as_ln_s
6162 if test "$LN_S" = "ln -s"; then
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6164 $as_echo "yes" >&6; }
6165 else
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6167 $as_echo "no, using $LN_S" >&6; }
6168 fi
6169
6170 # find the maximum length of command line arguments
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6172 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6173 if ${lt_cv_sys_max_cmd_len+:} false; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176     i=0
6177   teststring=ABCD
6178
6179   case $build_os in
6180   msdosdjgpp*)
6181     # On DJGPP, this test can blow up pretty badly due to problems in libc
6182     # (any single argument exceeding 2000 bytes causes a buffer overrun
6183     # during glob expansion).  Even if it were fixed, the result of this
6184     # check would be larger than it should be.
6185     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6186     ;;
6187
6188   gnu*)
6189     # Under GNU Hurd, this test is not required because there is
6190     # no limit to the length of command line arguments.
6191     # Libtool will interpret -1 as no limit whatsoever
6192     lt_cv_sys_max_cmd_len=-1;
6193     ;;
6194
6195   cygwin* | mingw* | cegcc*)
6196     # On Win9x/ME, this test blows up -- it succeeds, but takes
6197     # about 5 minutes as the teststring grows exponentially.
6198     # Worse, since 9x/ME are not pre-emptively multitasking,
6199     # you end up with a "frozen" computer, even though with patience
6200     # the test eventually succeeds (with a max line length of 256k).
6201     # Instead, let's just punt: use the minimum linelength reported by
6202     # all of the supported platforms: 8192 (on NT/2K/XP).
6203     lt_cv_sys_max_cmd_len=8192;
6204     ;;
6205
6206   mint*)
6207     # On MiNT this can take a long time and run out of memory.
6208     lt_cv_sys_max_cmd_len=8192;
6209     ;;
6210
6211   amigaos*)
6212     # On AmigaOS with pdksh, this test takes hours, literally.
6213     # So we just punt and use a minimum line length of 8192.
6214     lt_cv_sys_max_cmd_len=8192;
6215     ;;
6216
6217   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6218     # This has been around since 386BSD, at least.  Likely further.
6219     if test -x /sbin/sysctl; then
6220       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6221     elif test -x /usr/sbin/sysctl; then
6222       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6223     else
6224       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6225     fi
6226     # And add a safety zone
6227     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6228     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6229     ;;
6230
6231   interix*)
6232     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6233     lt_cv_sys_max_cmd_len=196608
6234     ;;
6235
6236   os2*)
6237     # The test takes a long time on OS/2.
6238     lt_cv_sys_max_cmd_len=8192
6239     ;;
6240
6241   osf*)
6242     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6243     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6244     # nice to cause kernel panics so lets avoid the loop below.
6245     # First set a reasonable default.
6246     lt_cv_sys_max_cmd_len=16384
6247     #
6248     if test -x /sbin/sysconfig; then
6249       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6250         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6251       esac
6252     fi
6253     ;;
6254   sco3.2v5*)
6255     lt_cv_sys_max_cmd_len=102400
6256     ;;
6257   sysv5* | sco5v6* | sysv4.2uw2*)
6258     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6259     if test -n "$kargmax"; then
6260       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6261     else
6262       lt_cv_sys_max_cmd_len=32768
6263     fi
6264     ;;
6265   *)
6266     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6267     if test -n "$lt_cv_sys_max_cmd_len" && \
6268        test undefined != "$lt_cv_sys_max_cmd_len"; then
6269       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6270       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6271     else
6272       # Make teststring a little bigger before we do anything with it.
6273       # a 1K string should be a reasonable start.
6274       for i in 1 2 3 4 5 6 7 8; do
6275         teststring=$teststring$teststring
6276       done
6277       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6278       # If test is not a shell built-in, we'll probably end up computing a
6279       # maximum length that is only half of the actual maximum length, but
6280       # we can't tell.
6281       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6282                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6283               test 17 != "$i" # 1/2 MB should be enough
6284       do
6285         i=`expr $i + 1`
6286         teststring=$teststring$teststring
6287       done
6288       # Only check the string length outside the loop.
6289       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6290       teststring=
6291       # Add a significant safety factor because C++ compilers can tack on
6292       # massive amounts of additional arguments before passing them to the
6293       # linker.  It appears as though 1/2 is a usable value.
6294       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6295     fi
6296     ;;
6297   esac
6298
6299 fi
6300
6301 if test -n "$lt_cv_sys_max_cmd_len"; then
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6303 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6304 else
6305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6306 $as_echo "none" >&6; }
6307 fi
6308 max_cmd_len=$lt_cv_sys_max_cmd_len
6309
6310
6311
6312
6313
6314
6315 : ${CP="cp -f"}
6316 : ${MV="mv -f"}
6317 : ${RM="rm -f"}
6318
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6320   lt_unset=unset
6321 else
6322   lt_unset=false
6323 fi
6324
6325
6326
6327
6328
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331  A) # ASCII based system
6332     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333   lt_SP2NL='tr \040 \012'
6334   lt_NL2SP='tr \015\012 \040\040'
6335   ;;
6336  *) # EBCDIC based system
6337   lt_SP2NL='tr \100 \n'
6338   lt_NL2SP='tr \r\n \100\100'
6339   ;;
6340 esac
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6351 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6352 if ${lt_cv_to_host_file_cmd+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   case $host in
6356   *-*-mingw* )
6357     case $build in
6358       *-*-mingw* ) # actually msys
6359         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6360         ;;
6361       *-*-cygwin* )
6362         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6363         ;;
6364       * ) # otherwise, assume *nix
6365         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6366         ;;
6367     esac
6368     ;;
6369   *-*-cygwin* )
6370     case $build in
6371       *-*-mingw* ) # actually msys
6372         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6373         ;;
6374       *-*-cygwin* )
6375         lt_cv_to_host_file_cmd=func_convert_file_noop
6376         ;;
6377       * ) # otherwise, assume *nix
6378         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6379         ;;
6380     esac
6381     ;;
6382   * ) # unhandled hosts (and "normal" native builds)
6383     lt_cv_to_host_file_cmd=func_convert_file_noop
6384     ;;
6385 esac
6386
6387 fi
6388
6389 to_host_file_cmd=$lt_cv_to_host_file_cmd
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6391 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6392
6393
6394
6395
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6398 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6399 if ${lt_cv_to_tool_file_cmd+:} false; then :
6400   $as_echo_n "(cached) " >&6
6401 else
6402   #assume ordinary cross tools, or native build.
6403 lt_cv_to_tool_file_cmd=func_convert_file_noop
6404 case $host in
6405   *-*-mingw* )
6406     case $build in
6407       *-*-mingw* ) # actually msys
6408         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6409         ;;
6410     esac
6411     ;;
6412 esac
6413
6414 fi
6415
6416 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6418 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6419
6420
6421
6422
6423
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6425 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6426 if ${lt_cv_ld_reload_flag+:} false; then :
6427   $as_echo_n "(cached) " >&6
6428 else
6429   lt_cv_ld_reload_flag='-r'
6430 fi
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6432 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6433 reload_flag=$lt_cv_ld_reload_flag
6434 case $reload_flag in
6435 "" | " "*) ;;
6436 *) reload_flag=" $reload_flag" ;;
6437 esac
6438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6439 case $host_os in
6440   cygwin* | mingw* | pw32* | cegcc*)
6441     if test yes != "$GCC"; then
6442       reload_cmds=false
6443     fi
6444     ;;
6445   darwin*)
6446     if test yes = "$GCC"; then
6447       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6448     else
6449       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6450     fi
6451     ;;
6452 esac
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462 if test -n "$ac_tool_prefix"; then
6463   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if ${ac_cv_prog_OBJDUMP+:} false; then :
6468   $as_echo_n "(cached) " >&6
6469 else
6470   if test -n "$OBJDUMP"; then
6471   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478     for ac_exec_ext in '' $ac_executable_extensions; do
6479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485   done
6486 IFS=$as_save_IFS
6487
6488 fi
6489 fi
6490 OBJDUMP=$ac_cv_prog_OBJDUMP
6491 if test -n "$OBJDUMP"; then
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6493 $as_echo "$OBJDUMP" >&6; }
6494 else
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6497 fi
6498
6499
6500 fi
6501 if test -z "$ac_cv_prog_OBJDUMP"; then
6502   ac_ct_OBJDUMP=$OBJDUMP
6503   # Extract the first word of "objdump", so it can be a program name with args.
6504 set dummy objdump; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6508   $as_echo_n "(cached) " >&6
6509 else
6510   if test -n "$ac_ct_OBJDUMP"; then
6511   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518     for ac_exec_ext in '' $ac_executable_extensions; do
6519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525   done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6531 if test -n "$ac_ct_OBJDUMP"; then
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6533 $as_echo "$ac_ct_OBJDUMP" >&6; }
6534 else
6535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539   if test "x$ac_ct_OBJDUMP" = x; then
6540     OBJDUMP="false"
6541   else
6542     case $cross_compiling:$ac_tool_warned in
6543 yes:)
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6547 esac
6548     OBJDUMP=$ac_ct_OBJDUMP
6549   fi
6550 else
6551   OBJDUMP="$ac_cv_prog_OBJDUMP"
6552 fi
6553
6554 test -z "$OBJDUMP" && OBJDUMP=objdump
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6565 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6566 if ${lt_cv_deplibs_check_method+:} false; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   lt_cv_file_magic_cmd='$MAGIC_CMD'
6570 lt_cv_file_magic_test_file=
6571 lt_cv_deplibs_check_method='unknown'
6572 # Need to set the preceding variable on all platforms that support
6573 # interlibrary dependencies.
6574 # 'none' -- dependencies not supported.
6575 # 'unknown' -- same as none, but documents that we really don't know.
6576 # 'pass_all' -- all dependencies passed with no checks.
6577 # 'test_compile' -- check by making test program.
6578 # 'file_magic [[regex]]' -- check by looking for files in library path
6579 # that responds to the $file_magic_cmd with a given extended regex.
6580 # If you have 'file' or equivalent on your system and you're not sure
6581 # whether 'pass_all' will *always* work, you probably want this one.
6582
6583 case $host_os in
6584 aix[4-9]*)
6585   lt_cv_deplibs_check_method=pass_all
6586   ;;
6587
6588 beos*)
6589   lt_cv_deplibs_check_method=pass_all
6590   ;;
6591
6592 bsdi[45]*)
6593   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6594   lt_cv_file_magic_cmd='/usr/bin/file -L'
6595   lt_cv_file_magic_test_file=/shlib/libc.so
6596   ;;
6597
6598 cygwin*)
6599   # func_win32_libid is a shell function defined in ltmain.sh
6600   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6601   lt_cv_file_magic_cmd='func_win32_libid'
6602   ;;
6603
6604 mingw* | pw32*)
6605   # Base MSYS/MinGW do not provide the 'file' command needed by
6606   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6607   # unless we find 'file', for example because we are cross-compiling.
6608   if ( file / ) >/dev/null 2>&1; then
6609     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6610     lt_cv_file_magic_cmd='func_win32_libid'
6611   else
6612     # Keep this pattern in sync with the one in func_win32_libid.
6613     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6614     lt_cv_file_magic_cmd='$OBJDUMP -f'
6615   fi
6616   ;;
6617
6618 cegcc*)
6619   # use the weaker test based on 'objdump'. See mingw*.
6620   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6621   lt_cv_file_magic_cmd='$OBJDUMP -f'
6622   ;;
6623
6624 darwin* | rhapsody*)
6625   lt_cv_deplibs_check_method=pass_all
6626   ;;
6627
6628 freebsd* | dragonfly*)
6629   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6630     case $host_cpu in
6631     i*86 )
6632       # Not sure whether the presence of OpenBSD here was a mistake.
6633       # Let's accept both of them until this is cleared up.
6634       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6635       lt_cv_file_magic_cmd=/usr/bin/file
6636       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6637       ;;
6638     esac
6639   else
6640     lt_cv_deplibs_check_method=pass_all
6641   fi
6642   ;;
6643
6644 haiku*)
6645   lt_cv_deplibs_check_method=pass_all
6646   ;;
6647
6648 hpux10.20* | hpux11*)
6649   lt_cv_file_magic_cmd=/usr/bin/file
6650   case $host_cpu in
6651   ia64*)
6652     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6653     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6654     ;;
6655   hppa*64*)
6656     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]'
6657     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6658     ;;
6659   *)
6660     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6661     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6662     ;;
6663   esac
6664   ;;
6665
6666 interix[3-9]*)
6667   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6668   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6669   ;;
6670
6671 irix5* | irix6* | nonstopux*)
6672   case $LD in
6673   *-32|*"-32 ") libmagic=32-bit;;
6674   *-n32|*"-n32 ") libmagic=N32;;
6675   *-64|*"-64 ") libmagic=64-bit;;
6676   *) libmagic=never-match;;
6677   esac
6678   lt_cv_deplibs_check_method=pass_all
6679   ;;
6680
6681 # This must be glibc/ELF.
6682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6683   lt_cv_deplibs_check_method=pass_all
6684   ;;
6685
6686 netbsd* | netbsdelf*-gnu)
6687   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6688     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6689   else
6690     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6691   fi
6692   ;;
6693
6694 newos6*)
6695   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6696   lt_cv_file_magic_cmd=/usr/bin/file
6697   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6698   ;;
6699
6700 *nto* | *qnx*)
6701   lt_cv_deplibs_check_method=pass_all
6702   ;;
6703
6704 openbsd* | bitrig*)
6705   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6706     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6707   else
6708     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6709   fi
6710   ;;
6711
6712 osf3* | osf4* | osf5*)
6713   lt_cv_deplibs_check_method=pass_all
6714   ;;
6715
6716 rdos*)
6717   lt_cv_deplibs_check_method=pass_all
6718   ;;
6719
6720 solaris*)
6721   lt_cv_deplibs_check_method=pass_all
6722   ;;
6723
6724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6725   lt_cv_deplibs_check_method=pass_all
6726   ;;
6727
6728 sysv4 | sysv4.3*)
6729   case $host_vendor in
6730   motorola)
6731     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]'
6732     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6733     ;;
6734   ncr)
6735     lt_cv_deplibs_check_method=pass_all
6736     ;;
6737   sequent)
6738     lt_cv_file_magic_cmd='/bin/file'
6739     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6740     ;;
6741   sni)
6742     lt_cv_file_magic_cmd='/bin/file'
6743     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6744     lt_cv_file_magic_test_file=/lib/libc.so
6745     ;;
6746   siemens)
6747     lt_cv_deplibs_check_method=pass_all
6748     ;;
6749   pc)
6750     lt_cv_deplibs_check_method=pass_all
6751     ;;
6752   esac
6753   ;;
6754
6755 tpf*)
6756   lt_cv_deplibs_check_method=pass_all
6757   ;;
6758 os2*)
6759   lt_cv_deplibs_check_method=pass_all
6760   ;;
6761 esac
6762
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6765 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6766
6767 file_magic_glob=
6768 want_nocaseglob=no
6769 if test "$build" = "$host"; then
6770   case $host_os in
6771   mingw* | pw32*)
6772     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6773       want_nocaseglob=yes
6774     else
6775       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6776     fi
6777     ;;
6778   esac
6779 fi
6780
6781 file_magic_cmd=$lt_cv_file_magic_cmd
6782 deplibs_check_method=$lt_cv_deplibs_check_method
6783 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806 if test -n "$ac_tool_prefix"; then
6807   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_DLLTOOL+:} false; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   if test -n "$DLLTOOL"; then
6815   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822     for ac_exec_ext in '' $ac_executable_extensions; do
6823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829   done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 DLLTOOL=$ac_cv_prog_DLLTOOL
6835 if test -n "$DLLTOOL"; then
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6837 $as_echo "$DLLTOOL" >&6; }
6838 else
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843
6844 fi
6845 if test -z "$ac_cv_prog_DLLTOOL"; then
6846   ac_ct_DLLTOOL=$DLLTOOL
6847   # Extract the first word of "dlltool", so it can be a program name with args.
6848 set dummy dlltool; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6852   $as_echo_n "(cached) " >&6
6853 else
6854   if test -n "$ac_ct_DLLTOOL"; then
6855   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862     for ac_exec_ext in '' $ac_executable_extensions; do
6863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866     break 2
6867   fi
6868 done
6869   done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6875 if test -n "$ac_ct_DLLTOOL"; then
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6877 $as_echo "$ac_ct_DLLTOOL" >&6; }
6878 else
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883   if test "x$ac_ct_DLLTOOL" = x; then
6884     DLLTOOL="false"
6885   else
6886     case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892     DLLTOOL=$ac_ct_DLLTOOL
6893   fi
6894 else
6895   DLLTOOL="$ac_cv_prog_DLLTOOL"
6896 fi
6897
6898 test -z "$DLLTOOL" && DLLTOOL=dlltool
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6910 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6911 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6912   $as_echo_n "(cached) " >&6
6913 else
6914   lt_cv_sharedlib_from_linklib_cmd='unknown'
6915
6916 case $host_os in
6917 cygwin* | mingw* | pw32* | cegcc*)
6918   # two different shell functions defined in ltmain.sh;
6919   # decide which one to use based on capabilities of $DLLTOOL
6920   case `$DLLTOOL --help 2>&1` in
6921   *--identify-strict*)
6922     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6923     ;;
6924   *)
6925     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6926     ;;
6927   esac
6928   ;;
6929 *)
6930   # fallback: assume linklib IS sharedlib
6931   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6932   ;;
6933 esac
6934
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6937 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6938 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6939 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6940
6941
6942
6943
6944
6945
6946
6947 if test -n "$ac_tool_prefix"; then
6948   for ac_prog in ar
6949   do
6950     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_AR+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   if test -n "$AR"; then
6958   ac_cv_prog_AR="$AR" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965     for ac_exec_ext in '' $ac_executable_extensions; do
6966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972   done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 AR=$ac_cv_prog_AR
6978 if test -n "$AR"; then
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6980 $as_echo "$AR" >&6; }
6981 else
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986
6987     test -n "$AR" && break
6988   done
6989 fi
6990 if test -z "$AR"; then
6991   ac_ct_AR=$AR
6992   for ac_prog in ar
6993 do
6994   # Extract the first word of "$ac_prog", so it can be a program name with args.
6995 set dummy $ac_prog; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6999   $as_echo_n "(cached) " >&6
7000 else
7001   if test -n "$ac_ct_AR"; then
7002   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007   IFS=$as_save_IFS
7008   test -z "$as_dir" && as_dir=.
7009     for ac_exec_ext in '' $ac_executable_extensions; do
7010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011     ac_cv_prog_ac_ct_AR="$ac_prog"
7012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013     break 2
7014   fi
7015 done
7016   done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7022 if test -n "$ac_ct_AR"; then
7023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7024 $as_echo "$ac_ct_AR" >&6; }
7025 else
7026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030
7031   test -n "$ac_ct_AR" && break
7032 done
7033
7034   if test "x$ac_ct_AR" = x; then
7035     AR="false"
7036   else
7037     case $cross_compiling:$ac_tool_warned in
7038 yes:)
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7041 ac_tool_warned=yes ;;
7042 esac
7043     AR=$ac_ct_AR
7044   fi
7045 fi
7046
7047 : ${AR=ar}
7048 : ${AR_FLAGS=cru}
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7061 $as_echo_n "checking for archiver @FILE support... " >&6; }
7062 if ${lt_cv_ar_at_file+:} false; then :
7063   $as_echo_n "(cached) " >&6
7064 else
7065   lt_cv_ar_at_file=no
7066    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068
7069 int
7070 main ()
7071 {
7072
7073   ;
7074   return 0;
7075 }
7076 _ACEOF
7077 if ac_fn_c_try_compile "$LINENO"; then :
7078   echo conftest.$ac_objext > conftest.lst
7079       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7080       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7081   (eval $lt_ar_try) 2>&5
7082   ac_status=$?
7083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084   test $ac_status = 0; }
7085       if test 0 -eq "$ac_status"; then
7086         # Ensure the archiver fails upon bogus file names.
7087         rm -f conftest.$ac_objext libconftest.a
7088         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7089   (eval $lt_ar_try) 2>&5
7090   ac_status=$?
7091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092   test $ac_status = 0; }
7093         if test 0 -ne "$ac_status"; then
7094           lt_cv_ar_at_file=@
7095         fi
7096       fi
7097       rm -f conftest.* libconftest.a
7098
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7104 $as_echo "$lt_cv_ar_at_file" >&6; }
7105
7106 if test no = "$lt_cv_ar_at_file"; then
7107   archiver_list_spec=
7108 else
7109   archiver_list_spec=$lt_cv_ar_at_file
7110 fi
7111
7112
7113
7114
7115
7116
7117
7118 if test -n "$ac_tool_prefix"; then
7119   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}strip; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_STRIP+:} false; then :
7124   $as_echo_n "(cached) " >&6
7125 else
7126   if test -n "$STRIP"; then
7127   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134     for ac_exec_ext in '' $ac_executable_extensions; do
7135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141   done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 STRIP=$ac_cv_prog_STRIP
7147 if test -n "$STRIP"; then
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7149 $as_echo "$STRIP" >&6; }
7150 else
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7153 fi
7154
7155
7156 fi
7157 if test -z "$ac_cv_prog_STRIP"; then
7158   ac_ct_STRIP=$STRIP
7159   # Extract the first word of "strip", so it can be a program name with args.
7160 set dummy strip; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7164   $as_echo_n "(cached) " >&6
7165 else
7166   if test -n "$ac_ct_STRIP"; then
7167   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174     for ac_exec_ext in '' $ac_executable_extensions; do
7175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176     ac_cv_prog_ac_ct_STRIP="strip"
7177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181   done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7187 if test -n "$ac_ct_STRIP"; then
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7189 $as_echo "$ac_ct_STRIP" >&6; }
7190 else
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195   if test "x$ac_ct_STRIP" = x; then
7196     STRIP=":"
7197   else
7198     case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204     STRIP=$ac_ct_STRIP
7205   fi
7206 else
7207   STRIP="$ac_cv_prog_STRIP"
7208 fi
7209
7210 test -z "$STRIP" && STRIP=:
7211
7212
7213
7214
7215
7216
7217 if test -n "$ac_tool_prefix"; then
7218   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_RANLIB+:} false; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   if test -n "$RANLIB"; then
7226   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233     for ac_exec_ext in '' $ac_executable_extensions; do
7234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240   done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 RANLIB=$ac_cv_prog_RANLIB
7246 if test -n "$RANLIB"; then
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7248 $as_echo "$RANLIB" >&6; }
7249 else
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_RANLIB"; then
7257   ac_ct_RANLIB=$RANLIB
7258   # Extract the first word of "ranlib", so it can be a program name with args.
7259 set dummy ranlib; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   if test -n "$ac_ct_RANLIB"; then
7266   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273     for ac_exec_ext in '' $ac_executable_extensions; do
7274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275     ac_cv_prog_ac_ct_RANLIB="ranlib"
7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280   done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7286 if test -n "$ac_ct_RANLIB"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7288 $as_echo "$ac_ct_RANLIB" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294   if test "x$ac_ct_RANLIB" = x; then
7295     RANLIB=":"
7296   else
7297     case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303     RANLIB=$ac_ct_RANLIB
7304   fi
7305 else
7306   RANLIB="$ac_cv_prog_RANLIB"
7307 fi
7308
7309 test -z "$RANLIB" && RANLIB=:
7310
7311
7312
7313
7314
7315
7316 # Determine commands to create old-style static archives.
7317 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7318 old_postinstall_cmds='chmod 644 $oldlib'
7319 old_postuninstall_cmds=
7320
7321 if test -n "$RANLIB"; then
7322   case $host_os in
7323   bitrig* | openbsd*)
7324     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7325     ;;
7326   *)
7327     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7328     ;;
7329   esac
7330   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7331 fi
7332
7333 case $host_os in
7334   darwin*)
7335     lock_old_archive_extraction=yes ;;
7336   *)
7337     lock_old_archive_extraction=no ;;
7338 esac
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 # If no C compiler was specified, use CC.
7379 LTCC=${LTCC-"$CC"}
7380
7381 # If no C compiler flags were specified, use CFLAGS.
7382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7383
7384 # Allow CC to be a program name with arguments.
7385 compiler=$CC
7386
7387
7388 # Check for command to grab the raw symbol name followed by C symbol from nm.
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7390 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7391 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394
7395 # These are sane defaults that work on at least a few old systems.
7396 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7397
7398 # Character class describing NM global symbol codes.
7399 symcode='[BCDEGRST]'
7400
7401 # Regexp to match symbols that can be accessed directly from C.
7402 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7403
7404 # Define system-specific variables.
7405 case $host_os in
7406 aix*)
7407   symcode='[BCDT]'
7408   ;;
7409 cygwin* | mingw* | pw32* | cegcc*)
7410   symcode='[ABCDGISTW]'
7411   ;;
7412 hpux*)
7413   if test ia64 = "$host_cpu"; then
7414     symcode='[ABCDEGRST]'
7415   fi
7416   ;;
7417 irix* | nonstopux*)
7418   symcode='[BCDEGRST]'
7419   ;;
7420 osf*)
7421   symcode='[BCDEGQRST]'
7422   ;;
7423 solaris*)
7424   symcode='[BDRT]'
7425   ;;
7426 sco3.2v5*)
7427   symcode='[DT]'
7428   ;;
7429 sysv4.2uw2*)
7430   symcode='[DT]'
7431   ;;
7432 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7433   symcode='[ABDT]'
7434   ;;
7435 sysv4)
7436   symcode='[DFNSTU]'
7437   ;;
7438 esac
7439
7440 # If we're using GNU nm, then use its standard symbol codes.
7441 case `$NM -V 2>&1` in
7442 *GNU* | *'with BFD'*)
7443   symcode='[ABCDGIRSTW]' ;;
7444 esac
7445
7446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7447   # Gets list of data symbols to import.
7448   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7449   # Adjust the below global symbol transforms to fixup imported variables.
7450   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7451   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7452   lt_c_name_lib_hook="\
7453   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7454   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7455 else
7456   # Disable hooks by default.
7457   lt_cv_sys_global_symbol_to_import=
7458   lt_cdecl_hook=
7459   lt_c_name_hook=
7460   lt_c_name_lib_hook=
7461 fi
7462
7463 # Transform an extracted symbol line into a proper C declaration.
7464 # Some systems (esp. on ia64) link data and code symbols differently,
7465 # so use this general approach.
7466 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7467 $lt_cdecl_hook\
7468 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7469 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7470
7471 # Transform an extracted symbol line into symbol name and symbol address
7472 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7473 $lt_c_name_hook\
7474 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7475 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7476
7477 # Transform an extracted symbol line into symbol name with lib prefix and
7478 # symbol address.
7479 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7480 $lt_c_name_lib_hook\
7481 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7482 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7483 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7484
7485 # Handle CRLF in mingw tool chain
7486 opt_cr=
7487 case $build_os in
7488 mingw*)
7489   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7490   ;;
7491 esac
7492
7493 # Try without a prefix underscore, then with it.
7494 for ac_symprfx in "" "_"; do
7495
7496   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7497   symxfrm="\\1 $ac_symprfx\\2 \\2"
7498
7499   # Write the raw and C identifiers.
7500   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7501     # Fake it for dumpbin and say T for any non-static function,
7502     # D for any global variable and I for any imported variable.
7503     # Also find C++ and __fastcall symbols from MSVC++,
7504     # which start with @ or ?.
7505     lt_cv_sys_global_symbol_pipe="$AWK '"\
7506 "     {last_section=section; section=\$ 3};"\
7507 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7508 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7509 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7510 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7511 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7512 "     \$ 0!~/External *\|/{next};"\
7513 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7514 "     {if(hide[section]) next};"\
7515 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7516 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7517 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7518 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7519 "     ' prfx=^$ac_symprfx"
7520   else
7521     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7522   fi
7523   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7524
7525   # Check to see that the pipe works correctly.
7526   pipe_works=no
7527
7528   rm -f conftest*
7529   cat > conftest.$ac_ext <<_LT_EOF
7530 #ifdef __cplusplus
7531 extern "C" {
7532 #endif
7533 char nm_test_var;
7534 void nm_test_func(void);
7535 void nm_test_func(void){}
7536 #ifdef __cplusplus
7537 }
7538 #endif
7539 int main(){nm_test_var='a';nm_test_func();return(0);}
7540 _LT_EOF
7541
7542   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7543   (eval $ac_compile) 2>&5
7544   ac_status=$?
7545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546   test $ac_status = 0; }; then
7547     # Now try to grab the symbols.
7548     nlist=conftest.nm
7549     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7550   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7551   ac_status=$?
7552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553   test $ac_status = 0; } && test -s "$nlist"; then
7554       # Try sorting and uniquifying the output.
7555       if sort "$nlist" | uniq > "$nlist"T; then
7556         mv -f "$nlist"T "$nlist"
7557       else
7558         rm -f "$nlist"T
7559       fi
7560
7561       # Make sure that we snagged all the symbols we need.
7562       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7563         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7564           cat <<_LT_EOF > conftest.$ac_ext
7565 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7566 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7567 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7568    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7569 # define LT_DLSYM_CONST
7570 #elif defined __osf__
7571 /* This system does not cope well with relocations in const data.  */
7572 # define LT_DLSYM_CONST
7573 #else
7574 # define LT_DLSYM_CONST const
7575 #endif
7576
7577 #ifdef __cplusplus
7578 extern "C" {
7579 #endif
7580
7581 _LT_EOF
7582           # Now generate the symbol file.
7583           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7584
7585           cat <<_LT_EOF >> conftest.$ac_ext
7586
7587 /* The mapping between symbol names and symbols.  */
7588 LT_DLSYM_CONST struct {
7589   const char *name;
7590   void       *address;
7591 }
7592 lt__PROGRAM__LTX_preloaded_symbols[] =
7593 {
7594   { "@PROGRAM@", (void *) 0 },
7595 _LT_EOF
7596           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7597           cat <<\_LT_EOF >> conftest.$ac_ext
7598   {0, (void *) 0}
7599 };
7600
7601 /* This works around a problem in FreeBSD linker */
7602 #ifdef FREEBSD_WORKAROUND
7603 static const void *lt_preloaded_setup() {
7604   return lt__PROGRAM__LTX_preloaded_symbols;
7605 }
7606 #endif
7607
7608 #ifdef __cplusplus
7609 }
7610 #endif
7611 _LT_EOF
7612           # Now try linking the two files.
7613           mv conftest.$ac_objext conftstm.$ac_objext
7614           lt_globsym_save_LIBS=$LIBS
7615           lt_globsym_save_CFLAGS=$CFLAGS
7616           LIBS=conftstm.$ac_objext
7617           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7618           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7619   (eval $ac_link) 2>&5
7620   ac_status=$?
7621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7622   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7623             pipe_works=yes
7624           fi
7625           LIBS=$lt_globsym_save_LIBS
7626           CFLAGS=$lt_globsym_save_CFLAGS
7627         else
7628           echo "cannot find nm_test_func in $nlist" >&5
7629         fi
7630       else
7631         echo "cannot find nm_test_var in $nlist" >&5
7632       fi
7633     else
7634       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7635     fi
7636   else
7637     echo "$progname: failed program was:" >&5
7638     cat conftest.$ac_ext >&5
7639   fi
7640   rm -rf conftest* conftst*
7641
7642   # Do not use the global_symbol_pipe unless it works.
7643   if test yes = "$pipe_works"; then
7644     break
7645   else
7646     lt_cv_sys_global_symbol_pipe=
7647   fi
7648 done
7649
7650 fi
7651
7652 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7653   lt_cv_sys_global_symbol_to_cdecl=
7654 fi
7655 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7657 $as_echo "failed" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7660 $as_echo "ok" >&6; }
7661 fi
7662
7663 # Response file support.
7664 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7665   nm_file_list_spec='@'
7666 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7667   nm_file_list_spec='@'
7668 fi
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7707 $as_echo_n "checking for sysroot... " >&6; }
7708
7709 # Check whether --with-sysroot was given.
7710 if test "${with_sysroot+set}" = set; then :
7711   withval=$with_sysroot;
7712 else
7713   with_sysroot=no
7714 fi
7715
7716
7717 lt_sysroot=
7718 case $with_sysroot in #(
7719  yes)
7720    if test yes = "$GCC"; then
7721      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7722    fi
7723    ;; #(
7724  /*)
7725    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7726    ;; #(
7727  no|'')
7728    ;; #(
7729  *)
7730    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7731 $as_echo "$with_sysroot" >&6; }
7732    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7733    ;;
7734 esac
7735
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7737 $as_echo "${lt_sysroot:-no}" >&6; }
7738
7739
7740
7741
7742
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7744 $as_echo_n "checking for a working dd... " >&6; }
7745 if ${ac_cv_path_lt_DD+:} false; then :
7746   $as_echo_n "(cached) " >&6
7747 else
7748   printf 0123456789abcdef0123456789abcdef >conftest.i
7749 cat conftest.i conftest.i >conftest2.i
7750 : ${lt_DD:=$DD}
7751 if test -z "$lt_DD"; then
7752   ac_path_lt_DD_found=false
7753   # Loop through the user's path and test for each of PROGNAME-LIST
7754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759     for ac_prog in dd; do
7760     for ac_exec_ext in '' $ac_executable_extensions; do
7761       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7762       as_fn_executable_p "$ac_path_lt_DD" || continue
7763 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7764   cmp -s conftest.i conftest.out \
7765   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7766 fi
7767       $ac_path_lt_DD_found && break 3
7768     done
7769   done
7770   done
7771 IFS=$as_save_IFS
7772   if test -z "$ac_cv_path_lt_DD"; then
7773     :
7774   fi
7775 else
7776   ac_cv_path_lt_DD=$lt_DD
7777 fi
7778
7779 rm -f conftest.i conftest2.i conftest.out
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7782 $as_echo "$ac_cv_path_lt_DD" >&6; }
7783
7784
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7786 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7787 if ${lt_cv_truncate_bin+:} false; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   printf 0123456789abcdef0123456789abcdef >conftest.i
7791 cat conftest.i conftest.i >conftest2.i
7792 lt_cv_truncate_bin=
7793 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7794   cmp -s conftest.i conftest.out \
7795   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7796 fi
7797 rm -f conftest.i conftest2.i conftest.out
7798 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7801 $as_echo "$lt_cv_truncate_bin" >&6; }
7802
7803
7804
7805
7806
7807
7808
7809 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7810 func_cc_basename ()
7811 {
7812     for cc_temp in $*""; do
7813       case $cc_temp in
7814         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7815         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7816         \-*) ;;
7817         *) break;;
7818       esac
7819     done
7820     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7821 }
7822
7823 # Check whether --enable-libtool-lock was given.
7824 if test "${enable_libtool_lock+set}" = set; then :
7825   enableval=$enable_libtool_lock;
7826 fi
7827
7828 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7829
7830 # Some flags need to be propagated to the compiler or linker for good
7831 # libtool support.
7832 case $host in
7833 ia64-*-hpux*)
7834   # Find out what ABI is being produced by ac_compile, and set mode
7835   # options accordingly.
7836   echo 'int i;' > conftest.$ac_ext
7837   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7838   (eval $ac_compile) 2>&5
7839   ac_status=$?
7840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7841   test $ac_status = 0; }; then
7842     case `/usr/bin/file conftest.$ac_objext` in
7843       *ELF-32*)
7844         HPUX_IA64_MODE=32
7845         ;;
7846       *ELF-64*)
7847         HPUX_IA64_MODE=64
7848         ;;
7849     esac
7850   fi
7851   rm -rf conftest*
7852   ;;
7853 *-*-irix6*)
7854   # Find out what ABI is being produced by ac_compile, and set linker
7855   # options accordingly.
7856   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7857   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7858   (eval $ac_compile) 2>&5
7859   ac_status=$?
7860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861   test $ac_status = 0; }; then
7862     if test yes = "$lt_cv_prog_gnu_ld"; then
7863       case `/usr/bin/file conftest.$ac_objext` in
7864         *32-bit*)
7865           LD="${LD-ld} -melf32bsmip"
7866           ;;
7867         *N32*)
7868           LD="${LD-ld} -melf32bmipn32"
7869           ;;
7870         *64-bit*)
7871           LD="${LD-ld} -melf64bmip"
7872         ;;
7873       esac
7874     else
7875       case `/usr/bin/file conftest.$ac_objext` in
7876         *32-bit*)
7877           LD="${LD-ld} -32"
7878           ;;
7879         *N32*)
7880           LD="${LD-ld} -n32"
7881           ;;
7882         *64-bit*)
7883           LD="${LD-ld} -64"
7884           ;;
7885       esac
7886     fi
7887   fi
7888   rm -rf conftest*
7889   ;;
7890
7891 mips64*-*linux*)
7892   # Find out what ABI is being produced by ac_compile, and set linker
7893   # options accordingly.
7894   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7895   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7896   (eval $ac_compile) 2>&5
7897   ac_status=$?
7898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899   test $ac_status = 0; }; then
7900     emul=elf
7901     case `/usr/bin/file conftest.$ac_objext` in
7902       *32-bit*)
7903         emul="${emul}32"
7904         ;;
7905       *64-bit*)
7906         emul="${emul}64"
7907         ;;
7908     esac
7909     case `/usr/bin/file conftest.$ac_objext` in
7910       *MSB*)
7911         emul="${emul}btsmip"
7912         ;;
7913       *LSB*)
7914         emul="${emul}ltsmip"
7915         ;;
7916     esac
7917     case `/usr/bin/file conftest.$ac_objext` in
7918       *N32*)
7919         emul="${emul}n32"
7920         ;;
7921     esac
7922     LD="${LD-ld} -m $emul"
7923   fi
7924   rm -rf conftest*
7925   ;;
7926
7927 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7928 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7929   # Find out what ABI is being produced by ac_compile, and set linker
7930   # options accordingly.  Note that the listed cases only cover the
7931   # situations where additional linker options are needed (such as when
7932   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7933   # vice versa); the common cases where no linker options are needed do
7934   # not appear in the list.
7935   echo 'int i;' > conftest.$ac_ext
7936   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7937   (eval $ac_compile) 2>&5
7938   ac_status=$?
7939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940   test $ac_status = 0; }; then
7941     case `/usr/bin/file conftest.o` in
7942       *32-bit*)
7943         case $host in
7944           x86_64-*kfreebsd*-gnu)
7945             LD="${LD-ld} -m elf_i386_fbsd"
7946             ;;
7947           x86_64-*linux*)
7948             case `/usr/bin/file conftest.o` in
7949               *x86-64*)
7950                 LD="${LD-ld} -m elf32_x86_64"
7951                 ;;
7952               *)
7953                 LD="${LD-ld} -m elf_i386"
7954                 ;;
7955             esac
7956             ;;
7957           powerpc64le-*linux*)
7958             LD="${LD-ld} -m elf32lppclinux"
7959             ;;
7960           powerpc64-*linux*)
7961             LD="${LD-ld} -m elf32ppclinux"
7962             ;;
7963           s390x-*linux*)
7964             LD="${LD-ld} -m elf_s390"
7965             ;;
7966           sparc64-*linux*)
7967             LD="${LD-ld} -m elf32_sparc"
7968             ;;
7969         esac
7970         ;;
7971       *64-bit*)
7972         case $host in
7973           x86_64-*kfreebsd*-gnu)
7974             LD="${LD-ld} -m elf_x86_64_fbsd"
7975             ;;
7976           x86_64-*linux*)
7977             LD="${LD-ld} -m elf_x86_64"
7978             ;;
7979           powerpcle-*linux*)
7980             LD="${LD-ld} -m elf64lppc"
7981             ;;
7982           powerpc-*linux*)
7983             LD="${LD-ld} -m elf64ppc"
7984             ;;
7985           s390*-*linux*|s390*-*tpf*)
7986             LD="${LD-ld} -m elf64_s390"
7987             ;;
7988           sparc*-*linux*)
7989             LD="${LD-ld} -m elf64_sparc"
7990             ;;
7991         esac
7992         ;;
7993     esac
7994   fi
7995   rm -rf conftest*
7996   ;;
7997
7998 *-*-sco3.2v5*)
7999   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8000   SAVE_CFLAGS=$CFLAGS
8001   CFLAGS="$CFLAGS -belf"
8002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8003 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8004 if ${lt_cv_cc_needs_belf+:} false; then :
8005   $as_echo_n "(cached) " >&6
8006 else
8007   ac_ext=c
8008 ac_cpp='$CPP $CPPFLAGS'
8009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8012
8013      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h.  */
8015
8016 int
8017 main ()
8018 {
8019
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 if ac_fn_c_try_link "$LINENO"; then :
8025   lt_cv_cc_needs_belf=yes
8026 else
8027   lt_cv_cc_needs_belf=no
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext \
8030     conftest$ac_exeext conftest.$ac_ext
8031      ac_ext=c
8032 ac_cpp='$CPP $CPPFLAGS'
8033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036
8037 fi
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8039 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8040   if test yes != "$lt_cv_cc_needs_belf"; then
8041     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8042     CFLAGS=$SAVE_CFLAGS
8043   fi
8044   ;;
8045 *-*solaris*)
8046   # Find out what ABI is being produced by ac_compile, and set linker
8047   # options accordingly.
8048   echo 'int i;' > conftest.$ac_ext
8049   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8050   (eval $ac_compile) 2>&5
8051   ac_status=$?
8052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8053   test $ac_status = 0; }; then
8054     case `/usr/bin/file conftest.o` in
8055     *64-bit*)
8056       case $lt_cv_prog_gnu_ld in
8057       yes*)
8058         case $host in
8059         i?86-*-solaris*|x86_64-*-solaris*)
8060           LD="${LD-ld} -m elf_x86_64"
8061           ;;
8062         sparc*-*-solaris*)
8063           LD="${LD-ld} -m elf64_sparc"
8064           ;;
8065         esac
8066         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8067         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8068           LD=${LD-ld}_sol2
8069         fi
8070         ;;
8071       *)
8072         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8073           LD="${LD-ld} -64"
8074         fi
8075         ;;
8076       esac
8077       ;;
8078     esac
8079   fi
8080   rm -rf conftest*
8081   ;;
8082 esac
8083
8084 need_locks=$enable_libtool_lock
8085
8086 if test -n "$ac_tool_prefix"; then
8087   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8088 set dummy ${ac_tool_prefix}mt; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   if test -n "$MANIFEST_TOOL"; then
8095   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8099 do
8100   IFS=$as_save_IFS
8101   test -z "$as_dir" && as_dir=.
8102     for ac_exec_ext in '' $ac_executable_extensions; do
8103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106     break 2
8107   fi
8108 done
8109   done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8115 if test -n "$MANIFEST_TOOL"; then
8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8117 $as_echo "$MANIFEST_TOOL" >&6; }
8118 else
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8121 fi
8122
8123
8124 fi
8125 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8126   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8127   # Extract the first word of "mt", so it can be a program name with args.
8128 set dummy mt; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   if test -n "$ac_ct_MANIFEST_TOOL"; then
8135   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8139 do
8140   IFS=$as_save_IFS
8141   test -z "$as_dir" && as_dir=.
8142     for ac_exec_ext in '' $ac_executable_extensions; do
8143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146     break 2
8147   fi
8148 done
8149   done
8150 IFS=$as_save_IFS
8151
8152 fi
8153 fi
8154 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8155 if test -n "$ac_ct_MANIFEST_TOOL"; then
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8157 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8158 else
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8161 fi
8162
8163   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8164     MANIFEST_TOOL=":"
8165   else
8166     case $cross_compiling:$ac_tool_warned in
8167 yes:)
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8170 ac_tool_warned=yes ;;
8171 esac
8172     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8173   fi
8174 else
8175   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8176 fi
8177
8178 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8180 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8181 if ${lt_cv_path_mainfest_tool+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   lt_cv_path_mainfest_tool=no
8185   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8186   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8187   cat conftest.err >&5
8188   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8189     lt_cv_path_mainfest_tool=yes
8190   fi
8191   rm -f conftest*
8192 fi
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8194 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8195 if test yes != "$lt_cv_path_mainfest_tool"; then
8196   MANIFEST_TOOL=:
8197 fi
8198
8199
8200
8201
8202
8203
8204   case $host_os in
8205     rhapsody* | darwin*)
8206     if test -n "$ac_tool_prefix"; then
8207   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   if test -n "$DSYMUTIL"; then
8215   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8219 do
8220   IFS=$as_save_IFS
8221   test -z "$as_dir" && as_dir=.
8222     for ac_exec_ext in '' $ac_executable_extensions; do
8223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226     break 2
8227   fi
8228 done
8229   done
8230 IFS=$as_save_IFS
8231
8232 fi
8233 fi
8234 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8235 if test -n "$DSYMUTIL"; then
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8237 $as_echo "$DSYMUTIL" >&6; }
8238 else
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242
8243
8244 fi
8245 if test -z "$ac_cv_prog_DSYMUTIL"; then
8246   ac_ct_DSYMUTIL=$DSYMUTIL
8247   # Extract the first word of "dsymutil", so it can be a program name with args.
8248 set dummy dsymutil; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   if test -n "$ac_ct_DSYMUTIL"; then
8255   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260   IFS=$as_save_IFS
8261   test -z "$as_dir" && as_dir=.
8262     for ac_exec_ext in '' $ac_executable_extensions; do
8263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266     break 2
8267   fi
8268 done
8269   done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8275 if test -n "$ac_ct_DSYMUTIL"; then
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8277 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8278 else
8279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283   if test "x$ac_ct_DSYMUTIL" = x; then
8284     DSYMUTIL=":"
8285   else
8286     case $cross_compiling:$ac_tool_warned in
8287 yes:)
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8291 esac
8292     DSYMUTIL=$ac_ct_DSYMUTIL
8293   fi
8294 else
8295   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8296 fi
8297
8298     if test -n "$ac_tool_prefix"; then
8299   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8300 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if ${ac_cv_prog_NMEDIT+:} false; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   if test -n "$NMEDIT"; then
8307   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312   IFS=$as_save_IFS
8313   test -z "$as_dir" && as_dir=.
8314     for ac_exec_ext in '' $ac_executable_extensions; do
8315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318     break 2
8319   fi
8320 done
8321   done
8322 IFS=$as_save_IFS
8323
8324 fi
8325 fi
8326 NMEDIT=$ac_cv_prog_NMEDIT
8327 if test -n "$NMEDIT"; then
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8329 $as_echo "$NMEDIT" >&6; }
8330 else
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334
8335
8336 fi
8337 if test -z "$ac_cv_prog_NMEDIT"; then
8338   ac_ct_NMEDIT=$NMEDIT
8339   # Extract the first word of "nmedit", so it can be a program name with args.
8340 set dummy nmedit; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   if test -n "$ac_ct_NMEDIT"; then
8347   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352   IFS=$as_save_IFS
8353   test -z "$as_dir" && as_dir=.
8354     for ac_exec_ext in '' $ac_executable_extensions; do
8355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358     break 2
8359   fi
8360 done
8361   done
8362 IFS=$as_save_IFS
8363
8364 fi
8365 fi
8366 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8367 if test -n "$ac_ct_NMEDIT"; then
8368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8369 $as_echo "$ac_ct_NMEDIT" >&6; }
8370 else
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374
8375   if test "x$ac_ct_NMEDIT" = x; then
8376     NMEDIT=":"
8377   else
8378     case $cross_compiling:$ac_tool_warned in
8379 yes:)
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8382 ac_tool_warned=yes ;;
8383 esac
8384     NMEDIT=$ac_ct_NMEDIT
8385   fi
8386 else
8387   NMEDIT="$ac_cv_prog_NMEDIT"
8388 fi
8389
8390     if test -n "$ac_tool_prefix"; then
8391   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_LIPO+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   if test -n "$LIPO"; then
8399   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8403 do
8404   IFS=$as_save_IFS
8405   test -z "$as_dir" && as_dir=.
8406     for ac_exec_ext in '' $ac_executable_extensions; do
8407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410     break 2
8411   fi
8412 done
8413   done
8414 IFS=$as_save_IFS
8415
8416 fi
8417 fi
8418 LIPO=$ac_cv_prog_LIPO
8419 if test -n "$LIPO"; then
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8421 $as_echo "$LIPO" >&6; }
8422 else
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8425 fi
8426
8427
8428 fi
8429 if test -z "$ac_cv_prog_LIPO"; then
8430   ac_ct_LIPO=$LIPO
8431   # Extract the first word of "lipo", so it can be a program name with args.
8432 set dummy lipo; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   if test -n "$ac_ct_LIPO"; then
8439   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444   IFS=$as_save_IFS
8445   test -z "$as_dir" && as_dir=.
8446     for ac_exec_ext in '' $ac_executable_extensions; do
8447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448     ac_cv_prog_ac_ct_LIPO="lipo"
8449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450     break 2
8451   fi
8452 done
8453   done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8459 if test -n "$ac_ct_LIPO"; then
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8461 $as_echo "$ac_ct_LIPO" >&6; }
8462 else
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467   if test "x$ac_ct_LIPO" = x; then
8468     LIPO=":"
8469   else
8470     case $cross_compiling:$ac_tool_warned in
8471 yes:)
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8475 esac
8476     LIPO=$ac_ct_LIPO
8477   fi
8478 else
8479   LIPO="$ac_cv_prog_LIPO"
8480 fi
8481
8482     if test -n "$ac_tool_prefix"; then
8483   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}otool; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_OTOOL+:} false; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490   if test -n "$OTOOL"; then
8491   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498     for ac_exec_ext in '' $ac_executable_extensions; do
8499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505   done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 OTOOL=$ac_cv_prog_OTOOL
8511 if test -n "$OTOOL"; then
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8513 $as_echo "$OTOOL" >&6; }
8514 else
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8517 fi
8518
8519
8520 fi
8521 if test -z "$ac_cv_prog_OTOOL"; then
8522   ac_ct_OTOOL=$OTOOL
8523   # Extract the first word of "otool", so it can be a program name with args.
8524 set dummy otool; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8528   $as_echo_n "(cached) " >&6
8529 else
8530   if test -n "$ac_ct_OTOOL"; then
8531   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8532 else
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 for as_dir in $PATH
8535 do
8536   IFS=$as_save_IFS
8537   test -z "$as_dir" && as_dir=.
8538     for ac_exec_ext in '' $ac_executable_extensions; do
8539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540     ac_cv_prog_ac_ct_OTOOL="otool"
8541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542     break 2
8543   fi
8544 done
8545   done
8546 IFS=$as_save_IFS
8547
8548 fi
8549 fi
8550 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8551 if test -n "$ac_ct_OTOOL"; then
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8553 $as_echo "$ac_ct_OTOOL" >&6; }
8554 else
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558
8559   if test "x$ac_ct_OTOOL" = x; then
8560     OTOOL=":"
8561   else
8562     case $cross_compiling:$ac_tool_warned in
8563 yes:)
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566 ac_tool_warned=yes ;;
8567 esac
8568     OTOOL=$ac_ct_OTOOL
8569   fi
8570 else
8571   OTOOL="$ac_cv_prog_OTOOL"
8572 fi
8573
8574     if test -n "$ac_tool_prefix"; then
8575   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8576 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_OTOOL64+:} false; then :
8580   $as_echo_n "(cached) " >&6
8581 else
8582   if test -n "$OTOOL64"; then
8583   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588   IFS=$as_save_IFS
8589   test -z "$as_dir" && as_dir=.
8590     for ac_exec_ext in '' $ac_executable_extensions; do
8591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594     break 2
8595   fi
8596 done
8597   done
8598 IFS=$as_save_IFS
8599
8600 fi
8601 fi
8602 OTOOL64=$ac_cv_prog_OTOOL64
8603 if test -n "$OTOOL64"; then
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8605 $as_echo "$OTOOL64" >&6; }
8606 else
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 fi
8610
8611
8612 fi
8613 if test -z "$ac_cv_prog_OTOOL64"; then
8614   ac_ct_OTOOL64=$OTOOL64
8615   # Extract the first word of "otool64", so it can be a program name with args.
8616 set dummy otool64; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   if test -n "$ac_ct_OTOOL64"; then
8623   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8624 else
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8627 do
8628   IFS=$as_save_IFS
8629   test -z "$as_dir" && as_dir=.
8630     for ac_exec_ext in '' $ac_executable_extensions; do
8631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632     ac_cv_prog_ac_ct_OTOOL64="otool64"
8633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634     break 2
8635   fi
8636 done
8637   done
8638 IFS=$as_save_IFS
8639
8640 fi
8641 fi
8642 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8643 if test -n "$ac_ct_OTOOL64"; then
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8645 $as_echo "$ac_ct_OTOOL64" >&6; }
8646 else
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650
8651   if test "x$ac_ct_OTOOL64" = x; then
8652     OTOOL64=":"
8653   else
8654     case $cross_compiling:$ac_tool_warned in
8655 yes:)
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8658 ac_tool_warned=yes ;;
8659 esac
8660     OTOOL64=$ac_ct_OTOOL64
8661   fi
8662 else
8663   OTOOL64="$ac_cv_prog_OTOOL64"
8664 fi
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8693 $as_echo_n "checking for -single_module linker flag... " >&6; }
8694 if ${lt_cv_apple_cc_single_mod+:} false; then :
8695   $as_echo_n "(cached) " >&6
8696 else
8697   lt_cv_apple_cc_single_mod=no
8698       if test -z "$LT_MULTI_MODULE"; then
8699         # By default we will add the -single_module flag. You can override
8700         # by either setting the environment variable LT_MULTI_MODULE
8701         # non-empty at configure time, or by adding -multi_module to the
8702         # link flags.
8703         rm -rf libconftest.dylib*
8704         echo "int foo(void){return 1;}" > conftest.c
8705         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8706 -dynamiclib -Wl,-single_module conftest.c" >&5
8707         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8708           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8709         _lt_result=$?
8710         # If there is a non-empty error log, and "single_module"
8711         # appears in it, assume the flag caused a linker warning
8712         if test -s conftest.err && $GREP single_module conftest.err; then
8713           cat conftest.err >&5
8714         # Otherwise, if the output was created with a 0 exit code from
8715         # the compiler, it worked.
8716         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8717           lt_cv_apple_cc_single_mod=yes
8718         else
8719           cat conftest.err >&5
8720         fi
8721         rm -rf libconftest.dylib*
8722         rm -f conftest.*
8723       fi
8724 fi
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8726 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8727
8728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8729 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8730 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8731   $as_echo_n "(cached) " >&6
8732 else
8733   lt_cv_ld_exported_symbols_list=no
8734       save_LDFLAGS=$LDFLAGS
8735       echo "_main" > conftest.sym
8736       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8737       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h.  */
8739
8740 int
8741 main ()
8742 {
8743
8744   ;
8745   return 0;
8746 }
8747 _ACEOF
8748 if ac_fn_c_try_link "$LINENO"; then :
8749   lt_cv_ld_exported_symbols_list=yes
8750 else
8751   lt_cv_ld_exported_symbols_list=no
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext \
8754     conftest$ac_exeext conftest.$ac_ext
8755         LDFLAGS=$save_LDFLAGS
8756
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8759 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8760
8761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8762 $as_echo_n "checking for -force_load linker flag... " >&6; }
8763 if ${lt_cv_ld_force_load+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   lt_cv_ld_force_load=no
8767       cat > conftest.c << _LT_EOF
8768 int forced_loaded() { return 2;}
8769 _LT_EOF
8770       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8771       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8772       echo "$AR cru libconftest.a conftest.o" >&5
8773       $AR cru libconftest.a conftest.o 2>&5
8774       echo "$RANLIB libconftest.a" >&5
8775       $RANLIB libconftest.a 2>&5
8776       cat > conftest.c << _LT_EOF
8777 int main() { return 0;}
8778 _LT_EOF
8779       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8780       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8781       _lt_result=$?
8782       if test -s conftest.err && $GREP force_load conftest.err; then
8783         cat conftest.err >&5
8784       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8785         lt_cv_ld_force_load=yes
8786       else
8787         cat conftest.err >&5
8788       fi
8789         rm -f conftest.err libconftest.a conftest conftest.c
8790         rm -rf conftest.dSYM
8791
8792 fi
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8794 $as_echo "$lt_cv_ld_force_load" >&6; }
8795     case $host_os in
8796     rhapsody* | darwin1.[012])
8797       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8798     darwin1.*)
8799       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8800     darwin*) # darwin 5.x on
8801       # if running on 10.5 or later, the deployment target defaults
8802       # to the OS version, if on x86, and 10.4, the deployment
8803       # target defaults to 10.4. Don't you love it?
8804       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8805         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8806           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8807         10.[012][,.]*)
8808           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8809         10.*)
8810           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8811       esac
8812     ;;
8813   esac
8814     if test yes = "$lt_cv_apple_cc_single_mod"; then
8815       _lt_dar_single_mod='$single_module'
8816     fi
8817     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8818       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8819     else
8820       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8821     fi
8822     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8823       _lt_dsymutil='~$DSYMUTIL $lib || :'
8824     else
8825       _lt_dsymutil=
8826     fi
8827     ;;
8828   esac
8829
8830 # func_munge_path_list VARIABLE PATH
8831 # -----------------------------------
8832 # VARIABLE is name of variable containing _space_ separated list of
8833 # directories to be munged by the contents of PATH, which is string
8834 # having a format:
8835 # "DIR[:DIR]:"
8836 #       string "DIR[ DIR]" will be prepended to VARIABLE
8837 # ":DIR[:DIR]"
8838 #       string "DIR[ DIR]" will be appended to VARIABLE
8839 # "DIRP[:DIRP]::[DIRA:]DIRA"
8840 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8841 #       "DIRA[ DIRA]" will be appended to VARIABLE
8842 # "DIR[:DIR]"
8843 #       VARIABLE will be replaced by "DIR[ DIR]"
8844 func_munge_path_list ()
8845 {
8846     case x$2 in
8847     x)
8848         ;;
8849     *:)
8850         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8851         ;;
8852     x:*)
8853         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8854         ;;
8855     *::*)
8856         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8857         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8858         ;;
8859     *)
8860         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8861         ;;
8862     esac
8863 }
8864
8865 ac_ext=c
8866 ac_cpp='$CPP $CPPFLAGS'
8867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8871 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8872 # On Suns, sometimes $CPP names a directory.
8873 if test -n "$CPP" && test -d "$CPP"; then
8874   CPP=
8875 fi
8876 if test -z "$CPP"; then
8877   if ${ac_cv_prog_CPP+:} false; then :
8878   $as_echo_n "(cached) " >&6
8879 else
8880       # Double quotes because CPP needs to be expanded
8881     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8882     do
8883       ac_preproc_ok=false
8884 for ac_c_preproc_warn_flag in '' yes
8885 do
8886   # Use a header file that comes with gcc, so configuring glibc
8887   # with a fresh cross-compiler works.
8888   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8889   # <limits.h> exists even on freestanding compilers.
8890   # On the NeXT, cc -E runs the code through the compiler's parser,
8891   # not just through cpp. "Syntax error" is here to catch this case.
8892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h.  */
8894 #ifdef __STDC__
8895 # include <limits.h>
8896 #else
8897 # include <assert.h>
8898 #endif
8899                      Syntax error
8900 _ACEOF
8901 if ac_fn_c_try_cpp "$LINENO"; then :
8902
8903 else
8904   # Broken: fails on valid input.
8905 continue
8906 fi
8907 rm -f conftest.err conftest.i conftest.$ac_ext
8908
8909   # OK, works on sane cases.  Now check whether nonexistent headers
8910   # can be detected and how.
8911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h.  */
8913 #include <ac_nonexistent.h>
8914 _ACEOF
8915 if ac_fn_c_try_cpp "$LINENO"; then :
8916   # Broken: success on invalid input.
8917 continue
8918 else
8919   # Passes both tests.
8920 ac_preproc_ok=:
8921 break
8922 fi
8923 rm -f conftest.err conftest.i conftest.$ac_ext
8924
8925 done
8926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8927 rm -f conftest.i conftest.err conftest.$ac_ext
8928 if $ac_preproc_ok; then :
8929   break
8930 fi
8931
8932     done
8933     ac_cv_prog_CPP=$CPP
8934
8935 fi
8936   CPP=$ac_cv_prog_CPP
8937 else
8938   ac_cv_prog_CPP=$CPP
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8941 $as_echo "$CPP" >&6; }
8942 ac_preproc_ok=false
8943 for ac_c_preproc_warn_flag in '' yes
8944 do
8945   # Use a header file that comes with gcc, so configuring glibc
8946   # with a fresh cross-compiler works.
8947   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8948   # <limits.h> exists even on freestanding compilers.
8949   # On the NeXT, cc -E runs the code through the compiler's parser,
8950   # not just through cpp. "Syntax error" is here to catch this case.
8951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h.  */
8953 #ifdef __STDC__
8954 # include <limits.h>
8955 #else
8956 # include <assert.h>
8957 #endif
8958                      Syntax error
8959 _ACEOF
8960 if ac_fn_c_try_cpp "$LINENO"; then :
8961
8962 else
8963   # Broken: fails on valid input.
8964 continue
8965 fi
8966 rm -f conftest.err conftest.i conftest.$ac_ext
8967
8968   # OK, works on sane cases.  Now check whether nonexistent headers
8969   # can be detected and how.
8970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h.  */
8972 #include <ac_nonexistent.h>
8973 _ACEOF
8974 if ac_fn_c_try_cpp "$LINENO"; then :
8975   # Broken: success on invalid input.
8976 continue
8977 else
8978   # Passes both tests.
8979 ac_preproc_ok=:
8980 break
8981 fi
8982 rm -f conftest.err conftest.i conftest.$ac_ext
8983
8984 done
8985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8986 rm -f conftest.i conftest.err conftest.$ac_ext
8987 if $ac_preproc_ok; then :
8988
8989 else
8990   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8992 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8993 See \`config.log' for more details" "$LINENO" 5; }
8994 fi
8995
8996 ac_ext=c
8997 ac_cpp='$CPP $CPPFLAGS'
8998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9001
9002
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9004 $as_echo_n "checking for ANSI C header files... " >&6; }
9005 if ${ac_cv_header_stdc+:} false; then :
9006   $as_echo_n "(cached) " >&6
9007 else
9008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h.  */
9010 #include <stdlib.h>
9011 #include <stdarg.h>
9012 #include <string.h>
9013 #include <float.h>
9014
9015 int
9016 main ()
9017 {
9018
9019   ;
9020   return 0;
9021 }
9022 _ACEOF
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024   ac_cv_header_stdc=yes
9025 else
9026   ac_cv_header_stdc=no
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029
9030 if test $ac_cv_header_stdc = yes; then
9031   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h.  */
9034 #include <string.h>
9035
9036 _ACEOF
9037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038   $EGREP "memchr" >/dev/null 2>&1; then :
9039
9040 else
9041   ac_cv_header_stdc=no
9042 fi
9043 rm -f conftest*
9044
9045 fi
9046
9047 if test $ac_cv_header_stdc = yes; then
9048   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h.  */
9051 #include <stdlib.h>
9052
9053 _ACEOF
9054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9055   $EGREP "free" >/dev/null 2>&1; then :
9056
9057 else
9058   ac_cv_header_stdc=no
9059 fi
9060 rm -f conftest*
9061
9062 fi
9063
9064 if test $ac_cv_header_stdc = yes; then
9065   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9066   if test "$cross_compiling" = yes; then :
9067   :
9068 else
9069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h.  */
9071 #include <ctype.h>
9072 #include <stdlib.h>
9073 #if ((' ' & 0x0FF) == 0x020)
9074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9076 #else
9077 # define ISLOWER(c) \
9078                    (('a' <= (c) && (c) <= 'i') \
9079                      || ('j' <= (c) && (c) <= 'r') \
9080                      || ('s' <= (c) && (c) <= 'z'))
9081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9082 #endif
9083
9084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9085 int
9086 main ()
9087 {
9088   int i;
9089   for (i = 0; i < 256; i++)
9090     if (XOR (islower (i), ISLOWER (i))
9091         || toupper (i) != TOUPPER (i))
9092       return 2;
9093   return 0;
9094 }
9095 _ACEOF
9096 if ac_fn_c_try_run "$LINENO"; then :
9097
9098 else
9099   ac_cv_header_stdc=no
9100 fi
9101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9102   conftest.$ac_objext conftest.beam conftest.$ac_ext
9103 fi
9104
9105 fi
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9108 $as_echo "$ac_cv_header_stdc" >&6; }
9109 if test $ac_cv_header_stdc = yes; then
9110
9111 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9112
9113 fi
9114
9115 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9117                   inttypes.h stdint.h unistd.h
9118 do :
9119   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9120 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9121 "
9122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9123   cat >>confdefs.h <<_ACEOF
9124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9125 _ACEOF
9126
9127 fi
9128
9129 done
9130
9131
9132 for ac_header in dlfcn.h
9133 do :
9134   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9135 "
9136 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9137   cat >>confdefs.h <<_ACEOF
9138 #define HAVE_DLFCN_H 1
9139 _ACEOF
9140
9141 fi
9142
9143 done
9144
9145
9146
9147
9148
9149 # Set options
9150 # Check whether --enable-static was given.
9151 if test "${enable_static+set}" = set; then :
9152   enableval=$enable_static; p=${PACKAGE-default}
9153     case $enableval in
9154     yes) enable_static=yes ;;
9155     no) enable_static=no ;;
9156     *)
9157      enable_static=no
9158       # Look at the argument we got.  We use all the common list separators.
9159       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9160       for pkg in $enableval; do
9161         IFS=$lt_save_ifs
9162         if test "X$pkg" = "X$p"; then
9163           enable_static=yes
9164         fi
9165       done
9166       IFS=$lt_save_ifs
9167       ;;
9168     esac
9169 else
9170   enable_static=no
9171 fi
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182         enable_dlopen=no
9183
9184
9185   enable_win32_dll=no
9186
9187
9188             # Check whether --enable-shared was given.
9189 if test "${enable_shared+set}" = set; then :
9190   enableval=$enable_shared; p=${PACKAGE-default}
9191     case $enableval in
9192     yes) enable_shared=yes ;;
9193     no) enable_shared=no ;;
9194     *)
9195       enable_shared=no
9196       # Look at the argument we got.  We use all the common list separators.
9197       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9198       for pkg in $enableval; do
9199         IFS=$lt_save_ifs
9200         if test "X$pkg" = "X$p"; then
9201           enable_shared=yes
9202         fi
9203       done
9204       IFS=$lt_save_ifs
9205       ;;
9206     esac
9207 else
9208   enable_shared=yes
9209 fi
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221 # Check whether --with-pic was given.
9222 if test "${with_pic+set}" = set; then :
9223   withval=$with_pic; lt_p=${PACKAGE-default}
9224     case $withval in
9225     yes|no) pic_mode=$withval ;;
9226     *)
9227       pic_mode=default
9228       # Look at the argument we got.  We use all the common list separators.
9229       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9230       for lt_pkg in $withval; do
9231         IFS=$lt_save_ifs
9232         if test "X$lt_pkg" = "X$lt_p"; then
9233           pic_mode=yes
9234         fi
9235       done
9236       IFS=$lt_save_ifs
9237       ;;
9238     esac
9239 else
9240   pic_mode=default
9241 fi
9242
9243
9244
9245
9246
9247
9248
9249
9250   # Check whether --enable-fast-install was given.
9251 if test "${enable_fast_install+set}" = set; then :
9252   enableval=$enable_fast_install; p=${PACKAGE-default}
9253     case $enableval in
9254     yes) enable_fast_install=yes ;;
9255     no) enable_fast_install=no ;;
9256     *)
9257       enable_fast_install=no
9258       # Look at the argument we got.  We use all the common list separators.
9259       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9260       for pkg in $enableval; do
9261         IFS=$lt_save_ifs
9262         if test "X$pkg" = "X$p"; then
9263           enable_fast_install=yes
9264         fi
9265       done
9266       IFS=$lt_save_ifs
9267       ;;
9268     esac
9269 else
9270   enable_fast_install=yes
9271 fi
9272
9273
9274
9275
9276
9277
9278
9279
9280   shared_archive_member_spec=
9281 case $host,$enable_shared in
9282 power*-*-aix[5-9]*,yes)
9283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9284 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9285
9286 # Check whether --with-aix-soname was given.
9287 if test "${with_aix_soname+set}" = set; then :
9288   withval=$with_aix_soname; case $withval in
9289     aix|svr4|both)
9290       ;;
9291     *)
9292       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9293       ;;
9294     esac
9295     lt_cv_with_aix_soname=$with_aix_soname
9296 else
9297   if ${lt_cv_with_aix_soname+:} false; then :
9298   $as_echo_n "(cached) " >&6
9299 else
9300   lt_cv_with_aix_soname=aix
9301 fi
9302
9303     with_aix_soname=$lt_cv_with_aix_soname
9304 fi
9305
9306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9307 $as_echo "$with_aix_soname" >&6; }
9308   if test aix != "$with_aix_soname"; then
9309     # For the AIX way of multilib, we name the shared archive member
9310     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9311     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9312     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9313     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9314     if test 64 = "${OBJECT_MODE-32}"; then
9315       shared_archive_member_spec=shr_64
9316     else
9317       shared_archive_member_spec=shr
9318     fi
9319   fi
9320   ;;
9321 *)
9322   with_aix_soname=aix
9323   ;;
9324 esac
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335 # This can be used to rebuild libtool when needed
9336 LIBTOOL_DEPS=$ltmain
9337
9338 # Always use our own libtool.
9339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370 test -z "$LN_S" && LN_S="ln -s"
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385 if test -n "${ZSH_VERSION+set}"; then
9386    setopt NO_GLOB_SUBST
9387 fi
9388
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9390 $as_echo_n "checking for objdir... " >&6; }
9391 if ${lt_cv_objdir+:} false; then :
9392   $as_echo_n "(cached) " >&6
9393 else
9394   rm -f .libs 2>/dev/null
9395 mkdir .libs 2>/dev/null
9396 if test -d .libs; then
9397   lt_cv_objdir=.libs
9398 else
9399   # MS-DOS does not allow filenames that begin with a dot.
9400   lt_cv_objdir=_libs
9401 fi
9402 rmdir .libs 2>/dev/null
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9405 $as_echo "$lt_cv_objdir" >&6; }
9406 objdir=$lt_cv_objdir
9407
9408
9409
9410
9411
9412 cat >>confdefs.h <<_ACEOF
9413 #define LT_OBJDIR "$lt_cv_objdir/"
9414 _ACEOF
9415
9416
9417
9418
9419 case $host_os in
9420 aix3*)
9421   # AIX sometimes has problems with the GCC collect2 program.  For some
9422   # reason, if we set the COLLECT_NAMES environment variable, the problems
9423   # vanish in a puff of smoke.
9424   if test set != "${COLLECT_NAMES+set}"; then
9425     COLLECT_NAMES=
9426     export COLLECT_NAMES
9427   fi
9428   ;;
9429 esac
9430
9431 # Global variables:
9432 ofile=libtool
9433 can_build_shared=yes
9434
9435 # All known linkers require a '.a' archive for static linking (except MSVC,
9436 # which needs '.lib').
9437 libext=a
9438
9439 with_gnu_ld=$lt_cv_prog_gnu_ld
9440
9441 old_CC=$CC
9442 old_CFLAGS=$CFLAGS
9443
9444 # Set sane defaults for various variables
9445 test -z "$CC" && CC=cc
9446 test -z "$LTCC" && LTCC=$CC
9447 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9448 test -z "$LD" && LD=ld
9449 test -z "$ac_objext" && ac_objext=o
9450
9451 func_cc_basename $compiler
9452 cc_basename=$func_cc_basename_result
9453
9454
9455 # Only perform the check for file, if the check method requires it
9456 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9457 case $deplibs_check_method in
9458 file_magic*)
9459   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9461 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9462 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   case $MAGIC_CMD in
9466 [\\/*] |  ?:[\\/]*)
9467   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9468   ;;
9469 *)
9470   lt_save_MAGIC_CMD=$MAGIC_CMD
9471   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9472   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9473   for ac_dir in $ac_dummy; do
9474     IFS=$lt_save_ifs
9475     test -z "$ac_dir" && ac_dir=.
9476     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9477       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9478       if test -n "$file_magic_test_file"; then
9479         case $deplibs_check_method in
9480         "file_magic "*)
9481           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9482           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9483           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9484             $EGREP "$file_magic_regex" > /dev/null; then
9485             :
9486           else
9487             cat <<_LT_EOF 1>&2
9488
9489 *** Warning: the command libtool uses to detect shared libraries,
9490 *** $file_magic_cmd, produces output that libtool cannot recognize.
9491 *** The result is that libtool may fail to recognize shared libraries
9492 *** as such.  This will affect the creation of libtool libraries that
9493 *** depend on shared libraries, but programs linked with such libtool
9494 *** libraries will work regardless of this problem.  Nevertheless, you
9495 *** may want to report the problem to your system manager and/or to
9496 *** bug-libtool@gnu.org
9497
9498 _LT_EOF
9499           fi ;;
9500         esac
9501       fi
9502       break
9503     fi
9504   done
9505   IFS=$lt_save_ifs
9506   MAGIC_CMD=$lt_save_MAGIC_CMD
9507   ;;
9508 esac
9509 fi
9510
9511 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9512 if test -n "$MAGIC_CMD"; then
9513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9514 $as_echo "$MAGIC_CMD" >&6; }
9515 else
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9518 fi
9519
9520
9521
9522
9523
9524 if test -z "$lt_cv_path_MAGIC_CMD"; then
9525   if test -n "$ac_tool_prefix"; then
9526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9527 $as_echo_n "checking for file... " >&6; }
9528 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9529   $as_echo_n "(cached) " >&6
9530 else
9531   case $MAGIC_CMD in
9532 [\\/*] |  ?:[\\/]*)
9533   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9534   ;;
9535 *)
9536   lt_save_MAGIC_CMD=$MAGIC_CMD
9537   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9538   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9539   for ac_dir in $ac_dummy; do
9540     IFS=$lt_save_ifs
9541     test -z "$ac_dir" && ac_dir=.
9542     if test -f "$ac_dir/file"; then
9543       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9544       if test -n "$file_magic_test_file"; then
9545         case $deplibs_check_method in
9546         "file_magic "*)
9547           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9548           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9549           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9550             $EGREP "$file_magic_regex" > /dev/null; then
9551             :
9552           else
9553             cat <<_LT_EOF 1>&2
9554
9555 *** Warning: the command libtool uses to detect shared libraries,
9556 *** $file_magic_cmd, produces output that libtool cannot recognize.
9557 *** The result is that libtool may fail to recognize shared libraries
9558 *** as such.  This will affect the creation of libtool libraries that
9559 *** depend on shared libraries, but programs linked with such libtool
9560 *** libraries will work regardless of this problem.  Nevertheless, you
9561 *** may want to report the problem to your system manager and/or to
9562 *** bug-libtool@gnu.org
9563
9564 _LT_EOF
9565           fi ;;
9566         esac
9567       fi
9568       break
9569     fi
9570   done
9571   IFS=$lt_save_ifs
9572   MAGIC_CMD=$lt_save_MAGIC_CMD
9573   ;;
9574 esac
9575 fi
9576
9577 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9578 if test -n "$MAGIC_CMD"; then
9579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9580 $as_echo "$MAGIC_CMD" >&6; }
9581 else
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9584 fi
9585
9586
9587   else
9588     MAGIC_CMD=:
9589   fi
9590 fi
9591
9592   fi
9593   ;;
9594 esac
9595
9596 # Use C for the default configuration in the libtool script
9597
9598 lt_save_CC=$CC
9599 ac_ext=c
9600 ac_cpp='$CPP $CPPFLAGS'
9601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9604
9605
9606 # Source file extension for C test sources.
9607 ac_ext=c
9608
9609 # Object file extension for compiled C test sources.
9610 objext=o
9611 objext=$objext
9612
9613 # Code to be used in simple compile tests
9614 lt_simple_compile_test_code="int some_variable = 0;"
9615
9616 # Code to be used in simple link tests
9617 lt_simple_link_test_code='int main(){return(0);}'
9618
9619
9620
9621
9622
9623
9624
9625 # If no C compiler was specified, use CC.
9626 LTCC=${LTCC-"$CC"}
9627
9628 # If no C compiler flags were specified, use CFLAGS.
9629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9630
9631 # Allow CC to be a program name with arguments.
9632 compiler=$CC
9633
9634 # Save the default compiler, since it gets overwritten when the other
9635 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9636 compiler_DEFAULT=$CC
9637
9638 # save warnings/boilerplate of simple test code
9639 ac_outfile=conftest.$ac_objext
9640 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9642 _lt_compiler_boilerplate=`cat conftest.err`
9643 $RM conftest*
9644
9645 ac_outfile=conftest.$ac_objext
9646 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9648 _lt_linker_boilerplate=`cat conftest.err`
9649 $RM -r conftest*
9650
9651
9652 ## CAVEAT EMPTOR:
9653 ## There is no encapsulation within the following macros, do not change
9654 ## the running order or otherwise move them around unless you know exactly
9655 ## what you are doing...
9656 if test -n "$compiler"; then
9657
9658 lt_prog_compiler_no_builtin_flag=
9659
9660 if test yes = "$GCC"; then
9661   case $cc_basename in
9662   nvcc*)
9663     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9664   *)
9665     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9666   esac
9667
9668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9669 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9670 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   lt_cv_prog_compiler_rtti_exceptions=no
9674    ac_outfile=conftest.$ac_objext
9675    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9676    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9677    # Insert the option either (1) after the last *FLAGS variable, or
9678    # (2) before a word containing "conftest.", or (3) at the end.
9679    # Note that $ac_compile itself does not contain backslashes and begins
9680    # with a dollar sign (not a hyphen), so the echo should work correctly.
9681    # The option is referenced via a variable to avoid confusing sed.
9682    lt_compile=`echo "$ac_compile" | $SED \
9683    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9684    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9685    -e 's:$: $lt_compiler_flag:'`
9686    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9687    (eval "$lt_compile" 2>conftest.err)
9688    ac_status=$?
9689    cat conftest.err >&5
9690    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691    if (exit $ac_status) && test -s "$ac_outfile"; then
9692      # The compiler can only warn and ignore the option if not recognized
9693      # So say no if there are warnings other than the usual output.
9694      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9695      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9696      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9697        lt_cv_prog_compiler_rtti_exceptions=yes
9698      fi
9699    fi
9700    $RM conftest*
9701
9702 fi
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9704 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9705
9706 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9707     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9708 else
9709     :
9710 fi
9711
9712 fi
9713
9714
9715
9716
9717
9718
9719   lt_prog_compiler_wl=
9720 lt_prog_compiler_pic=
9721 lt_prog_compiler_static=
9722
9723
9724   if test yes = "$GCC"; then
9725     lt_prog_compiler_wl='-Wl,'
9726     lt_prog_compiler_static='-static'
9727
9728     case $host_os in
9729       aix*)
9730       # All AIX code is PIC.
9731       if test ia64 = "$host_cpu"; then
9732         # AIX 5 now supports IA64 processor
9733         lt_prog_compiler_static='-Bstatic'
9734       fi
9735       lt_prog_compiler_pic='-fPIC'
9736       ;;
9737
9738     amigaos*)
9739       case $host_cpu in
9740       powerpc)
9741             # see comment about AmigaOS4 .so support
9742             lt_prog_compiler_pic='-fPIC'
9743         ;;
9744       m68k)
9745             # FIXME: we need at least 68020 code to build shared libraries, but
9746             # adding the '-m68020' flag to GCC prevents building anything better,
9747             # like '-m68040'.
9748             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9749         ;;
9750       esac
9751       ;;
9752
9753     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9754       # PIC is the default for these OSes.
9755       ;;
9756
9757     mingw* | cygwin* | pw32* | os2* | cegcc*)
9758       # This hack is so that the source file can tell whether it is being
9759       # built for inclusion in a dll (and should export symbols for example).
9760       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9761       # (--disable-auto-import) libraries
9762       lt_prog_compiler_pic='-DDLL_EXPORT'
9763       case $host_os in
9764       os2*)
9765         lt_prog_compiler_static='$wl-static'
9766         ;;
9767       esac
9768       ;;
9769
9770     darwin* | rhapsody*)
9771       # PIC is the default on this platform
9772       # Common symbols not allowed in MH_DYLIB files
9773       lt_prog_compiler_pic='-fno-common'
9774       ;;
9775
9776     haiku*)
9777       # PIC is the default for Haiku.
9778       # The "-static" flag exists, but is broken.
9779       lt_prog_compiler_static=
9780       ;;
9781
9782     hpux*)
9783       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9784       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9785       # sets the default TLS model and affects inlining.
9786       case $host_cpu in
9787       hppa*64*)
9788         # +Z the default
9789         ;;
9790       *)
9791         lt_prog_compiler_pic='-fPIC'
9792         ;;
9793       esac
9794       ;;
9795
9796     interix[3-9]*)
9797       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9798       # Instead, we relocate shared libraries at runtime.
9799       ;;
9800
9801     msdosdjgpp*)
9802       # Just because we use GCC doesn't mean we suddenly get shared libraries
9803       # on systems that don't support them.
9804       lt_prog_compiler_can_build_shared=no
9805       enable_shared=no
9806       ;;
9807
9808     *nto* | *qnx*)
9809       # QNX uses GNU C++, but need to define -shared option too, otherwise
9810       # it will coredump.
9811       lt_prog_compiler_pic='-fPIC -shared'
9812       ;;
9813
9814     sysv4*MP*)
9815       if test -d /usr/nec; then
9816         lt_prog_compiler_pic=-Kconform_pic
9817       fi
9818       ;;
9819
9820     *)
9821       lt_prog_compiler_pic='-fPIC'
9822       ;;
9823     esac
9824
9825     case $cc_basename in
9826     nvcc*) # Cuda Compiler Driver 2.2
9827       lt_prog_compiler_wl='-Xlinker '
9828       if test -n "$lt_prog_compiler_pic"; then
9829         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9830       fi
9831       ;;
9832     esac
9833   else
9834     # PORTME Check for flag to pass linker flags through the system compiler.
9835     case $host_os in
9836     aix*)
9837       lt_prog_compiler_wl='-Wl,'
9838       if test ia64 = "$host_cpu"; then
9839         # AIX 5 now supports IA64 processor
9840         lt_prog_compiler_static='-Bstatic'
9841       else
9842         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9843       fi
9844       ;;
9845
9846     darwin* | rhapsody*)
9847       # PIC is the default on this platform
9848       # Common symbols not allowed in MH_DYLIB files
9849       lt_prog_compiler_pic='-fno-common'
9850       case $cc_basename in
9851       nagfor*)
9852         # NAG Fortran compiler
9853         lt_prog_compiler_wl='-Wl,-Wl,,'
9854         lt_prog_compiler_pic='-PIC'
9855         lt_prog_compiler_static='-Bstatic'
9856         ;;
9857       esac
9858       ;;
9859
9860     mingw* | cygwin* | pw32* | os2* | cegcc*)
9861       # This hack is so that the source file can tell whether it is being
9862       # built for inclusion in a dll (and should export symbols for example).
9863       lt_prog_compiler_pic='-DDLL_EXPORT'
9864       case $host_os in
9865       os2*)
9866         lt_prog_compiler_static='$wl-static'
9867         ;;
9868       esac
9869       ;;
9870
9871     hpux9* | hpux10* | hpux11*)
9872       lt_prog_compiler_wl='-Wl,'
9873       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9874       # not for PA HP-UX.
9875       case $host_cpu in
9876       hppa*64*|ia64*)
9877         # +Z the default
9878         ;;
9879       *)
9880         lt_prog_compiler_pic='+Z'
9881         ;;
9882       esac
9883       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9884       lt_prog_compiler_static='$wl-a ${wl}archive'
9885       ;;
9886
9887     irix5* | irix6* | nonstopux*)
9888       lt_prog_compiler_wl='-Wl,'
9889       # PIC (with -KPIC) is the default.
9890       lt_prog_compiler_static='-non_shared'
9891       ;;
9892
9893     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9894       case $cc_basename in
9895       # old Intel for x86_64, which still supported -KPIC.
9896       ecc*)
9897         lt_prog_compiler_wl='-Wl,'
9898         lt_prog_compiler_pic='-KPIC'
9899         lt_prog_compiler_static='-static'
9900         ;;
9901       # icc used to be incompatible with GCC.
9902       # ICC 10 doesn't accept -KPIC any more.
9903       icc* | ifort*)
9904         lt_prog_compiler_wl='-Wl,'
9905         lt_prog_compiler_pic='-fPIC'
9906         lt_prog_compiler_static='-static'
9907         ;;
9908       # Lahey Fortran 8.1.
9909       lf95*)
9910         lt_prog_compiler_wl='-Wl,'
9911         lt_prog_compiler_pic='--shared'
9912         lt_prog_compiler_static='--static'
9913         ;;
9914       nagfor*)
9915         # NAG Fortran compiler
9916         lt_prog_compiler_wl='-Wl,-Wl,,'
9917         lt_prog_compiler_pic='-PIC'
9918         lt_prog_compiler_static='-Bstatic'
9919         ;;
9920       tcc*)
9921         # Fabrice Bellard et al's Tiny C Compiler
9922         lt_prog_compiler_wl='-Wl,'
9923         lt_prog_compiler_pic='-fPIC'
9924         lt_prog_compiler_static='-static'
9925         ;;
9926       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9927         # Portland Group compilers (*not* the Pentium gcc compiler,
9928         # which looks to be a dead project)
9929         lt_prog_compiler_wl='-Wl,'
9930         lt_prog_compiler_pic='-fpic'
9931         lt_prog_compiler_static='-Bstatic'
9932         ;;
9933       ccc*)
9934         lt_prog_compiler_wl='-Wl,'
9935         # All Alpha code is PIC.
9936         lt_prog_compiler_static='-non_shared'
9937         ;;
9938       xl* | bgxl* | bgf* | mpixl*)
9939         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9940         lt_prog_compiler_wl='-Wl,'
9941         lt_prog_compiler_pic='-qpic'
9942         lt_prog_compiler_static='-qstaticlink'
9943         ;;
9944       *)
9945         case `$CC -V 2>&1 | sed 5q` in
9946         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9947           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9948           lt_prog_compiler_pic='-KPIC'
9949           lt_prog_compiler_static='-Bstatic'
9950           lt_prog_compiler_wl=''
9951           ;;
9952         *Sun\ F* | *Sun*Fortran*)
9953           lt_prog_compiler_pic='-KPIC'
9954           lt_prog_compiler_static='-Bstatic'
9955           lt_prog_compiler_wl='-Qoption ld '
9956           ;;
9957         *Sun\ C*)
9958           # Sun C 5.9
9959           lt_prog_compiler_pic='-KPIC'
9960           lt_prog_compiler_static='-Bstatic'
9961           lt_prog_compiler_wl='-Wl,'
9962           ;;
9963         *Intel*\ [CF]*Compiler*)
9964           lt_prog_compiler_wl='-Wl,'
9965           lt_prog_compiler_pic='-fPIC'
9966           lt_prog_compiler_static='-static'
9967           ;;
9968         *Portland\ Group*)
9969           lt_prog_compiler_wl='-Wl,'
9970           lt_prog_compiler_pic='-fpic'
9971           lt_prog_compiler_static='-Bstatic'
9972           ;;
9973         esac
9974         ;;
9975       esac
9976       ;;
9977
9978     newsos6)
9979       lt_prog_compiler_pic='-KPIC'
9980       lt_prog_compiler_static='-Bstatic'
9981       ;;
9982
9983     *nto* | *qnx*)
9984       # QNX uses GNU C++, but need to define -shared option too, otherwise
9985       # it will coredump.
9986       lt_prog_compiler_pic='-fPIC -shared'
9987       ;;
9988
9989     osf3* | osf4* | osf5*)
9990       lt_prog_compiler_wl='-Wl,'
9991       # All OSF/1 code is PIC.
9992       lt_prog_compiler_static='-non_shared'
9993       ;;
9994
9995     rdos*)
9996       lt_prog_compiler_static='-non_shared'
9997       ;;
9998
9999     solaris*)
10000       lt_prog_compiler_pic='-KPIC'
10001       lt_prog_compiler_static='-Bstatic'
10002       case $cc_basename in
10003       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10004         lt_prog_compiler_wl='-Qoption ld ';;
10005       *)
10006         lt_prog_compiler_wl='-Wl,';;
10007       esac
10008       ;;
10009
10010     sunos4*)
10011       lt_prog_compiler_wl='-Qoption ld '
10012       lt_prog_compiler_pic='-PIC'
10013       lt_prog_compiler_static='-Bstatic'
10014       ;;
10015
10016     sysv4 | sysv4.2uw2* | sysv4.3*)
10017       lt_prog_compiler_wl='-Wl,'
10018       lt_prog_compiler_pic='-KPIC'
10019       lt_prog_compiler_static='-Bstatic'
10020       ;;
10021
10022     sysv4*MP*)
10023       if test -d /usr/nec; then
10024         lt_prog_compiler_pic='-Kconform_pic'
10025         lt_prog_compiler_static='-Bstatic'
10026       fi
10027       ;;
10028
10029     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10030       lt_prog_compiler_wl='-Wl,'
10031       lt_prog_compiler_pic='-KPIC'
10032       lt_prog_compiler_static='-Bstatic'
10033       ;;
10034
10035     unicos*)
10036       lt_prog_compiler_wl='-Wl,'
10037       lt_prog_compiler_can_build_shared=no
10038       ;;
10039
10040     uts4*)
10041       lt_prog_compiler_pic='-pic'
10042       lt_prog_compiler_static='-Bstatic'
10043       ;;
10044
10045     *)
10046       lt_prog_compiler_can_build_shared=no
10047       ;;
10048     esac
10049   fi
10050
10051 case $host_os in
10052   # For platforms that do not support PIC, -DPIC is meaningless:
10053   *djgpp*)
10054     lt_prog_compiler_pic=
10055     ;;
10056   *)
10057     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10058     ;;
10059 esac
10060
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10062 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10063 if ${lt_cv_prog_compiler_pic+:} false; then :
10064   $as_echo_n "(cached) " >&6
10065 else
10066   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10069 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10070 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10071
10072 #
10073 # Check to make sure the PIC flag actually works.
10074 #
10075 if test -n "$lt_prog_compiler_pic"; then
10076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10077 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10078 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10079   $as_echo_n "(cached) " >&6
10080 else
10081   lt_cv_prog_compiler_pic_works=no
10082    ac_outfile=conftest.$ac_objext
10083    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10084    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10085    # Insert the option either (1) after the last *FLAGS variable, or
10086    # (2) before a word containing "conftest.", or (3) at the end.
10087    # Note that $ac_compile itself does not contain backslashes and begins
10088    # with a dollar sign (not a hyphen), so the echo should work correctly.
10089    # The option is referenced via a variable to avoid confusing sed.
10090    lt_compile=`echo "$ac_compile" | $SED \
10091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10093    -e 's:$: $lt_compiler_flag:'`
10094    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10095    (eval "$lt_compile" 2>conftest.err)
10096    ac_status=$?
10097    cat conftest.err >&5
10098    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099    if (exit $ac_status) && test -s "$ac_outfile"; then
10100      # The compiler can only warn and ignore the option if not recognized
10101      # So say no if there are warnings other than the usual output.
10102      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10103      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10104      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10105        lt_cv_prog_compiler_pic_works=yes
10106      fi
10107    fi
10108    $RM conftest*
10109
10110 fi
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10112 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10113
10114 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10115     case $lt_prog_compiler_pic in
10116      "" | " "*) ;;
10117      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10118      esac
10119 else
10120     lt_prog_compiler_pic=
10121      lt_prog_compiler_can_build_shared=no
10122 fi
10123
10124 fi
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136 #
10137 # Check to make sure the static flag actually works.
10138 #
10139 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10141 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10142 if ${lt_cv_prog_compiler_static_works+:} false; then :
10143   $as_echo_n "(cached) " >&6
10144 else
10145   lt_cv_prog_compiler_static_works=no
10146    save_LDFLAGS=$LDFLAGS
10147    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10148    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10149    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10150      # The linker can only warn and ignore the option if not recognized
10151      # So say no if there are warnings
10152      if test -s conftest.err; then
10153        # Append any errors to the config.log.
10154        cat conftest.err 1>&5
10155        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10156        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10157        if diff conftest.exp conftest.er2 >/dev/null; then
10158          lt_cv_prog_compiler_static_works=yes
10159        fi
10160      else
10161        lt_cv_prog_compiler_static_works=yes
10162      fi
10163    fi
10164    $RM -r conftest*
10165    LDFLAGS=$save_LDFLAGS
10166
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10169 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10170
10171 if test yes = "$lt_cv_prog_compiler_static_works"; then
10172     :
10173 else
10174     lt_prog_compiler_static=
10175 fi
10176
10177
10178
10179
10180
10181
10182
10183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10185 if ${lt_cv_prog_compiler_c_o+:} false; then :
10186   $as_echo_n "(cached) " >&6
10187 else
10188   lt_cv_prog_compiler_c_o=no
10189    $RM -r conftest 2>/dev/null
10190    mkdir conftest
10191    cd conftest
10192    mkdir out
10193    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10194
10195    lt_compiler_flag="-o out/conftest2.$ac_objext"
10196    # Insert the option either (1) after the last *FLAGS variable, or
10197    # (2) before a word containing "conftest.", or (3) at the end.
10198    # Note that $ac_compile itself does not contain backslashes and begins
10199    # with a dollar sign (not a hyphen), so the echo should work correctly.
10200    lt_compile=`echo "$ac_compile" | $SED \
10201    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10202    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10203    -e 's:$: $lt_compiler_flag:'`
10204    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10205    (eval "$lt_compile" 2>out/conftest.err)
10206    ac_status=$?
10207    cat out/conftest.err >&5
10208    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10210    then
10211      # The compiler can only warn and ignore the option if not recognized
10212      # So say no if there are warnings
10213      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10214      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10215      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10216        lt_cv_prog_compiler_c_o=yes
10217      fi
10218    fi
10219    chmod u+w . 2>&5
10220    $RM conftest*
10221    # SGI C++ compiler will create directory out/ii_files/ for
10222    # template instantiation
10223    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10224    $RM out/* && rmdir out
10225    cd ..
10226    $RM -r conftest
10227    $RM conftest*
10228
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10231 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10232
10233
10234
10235
10236
10237
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10239 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10240 if ${lt_cv_prog_compiler_c_o+:} false; then :
10241   $as_echo_n "(cached) " >&6
10242 else
10243   lt_cv_prog_compiler_c_o=no
10244    $RM -r conftest 2>/dev/null
10245    mkdir conftest
10246    cd conftest
10247    mkdir out
10248    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10249
10250    lt_compiler_flag="-o out/conftest2.$ac_objext"
10251    # Insert the option either (1) after the last *FLAGS variable, or
10252    # (2) before a word containing "conftest.", or (3) at the end.
10253    # Note that $ac_compile itself does not contain backslashes and begins
10254    # with a dollar sign (not a hyphen), so the echo should work correctly.
10255    lt_compile=`echo "$ac_compile" | $SED \
10256    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10257    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10258    -e 's:$: $lt_compiler_flag:'`
10259    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10260    (eval "$lt_compile" 2>out/conftest.err)
10261    ac_status=$?
10262    cat out/conftest.err >&5
10263    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10265    then
10266      # The compiler can only warn and ignore the option if not recognized
10267      # So say no if there are warnings
10268      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10269      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10270      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10271        lt_cv_prog_compiler_c_o=yes
10272      fi
10273    fi
10274    chmod u+w . 2>&5
10275    $RM conftest*
10276    # SGI C++ compiler will create directory out/ii_files/ for
10277    # template instantiation
10278    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10279    $RM out/* && rmdir out
10280    cd ..
10281    $RM -r conftest
10282    $RM conftest*
10283
10284 fi
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10286 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10287
10288
10289
10290
10291 hard_links=nottested
10292 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10293   # do not overwrite the value of need_locks provided by the user
10294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10295 $as_echo_n "checking if we can lock with hard links... " >&6; }
10296   hard_links=yes
10297   $RM conftest*
10298   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10299   touch conftest.a
10300   ln conftest.a conftest.b 2>&5 || hard_links=no
10301   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10303 $as_echo "$hard_links" >&6; }
10304   if test no = "$hard_links"; then
10305     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10306 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10307     need_locks=warn
10308   fi
10309 else
10310   need_locks=no
10311 fi
10312
10313
10314
10315
10316
10317
10318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10319 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10320
10321   runpath_var=
10322   allow_undefined_flag=
10323   always_export_symbols=no
10324   archive_cmds=
10325   archive_expsym_cmds=
10326   compiler_needs_object=no
10327   enable_shared_with_static_runtimes=no
10328   export_dynamic_flag_spec=
10329   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10330   hardcode_automatic=no
10331   hardcode_direct=no
10332   hardcode_direct_absolute=no
10333   hardcode_libdir_flag_spec=
10334   hardcode_libdir_separator=
10335   hardcode_minus_L=no
10336   hardcode_shlibpath_var=unsupported
10337   inherit_rpath=no
10338   link_all_deplibs=unknown
10339   module_cmds=
10340   module_expsym_cmds=
10341   old_archive_from_new_cmds=
10342   old_archive_from_expsyms_cmds=
10343   thread_safe_flag_spec=
10344   whole_archive_flag_spec=
10345   # include_expsyms should be a list of space-separated symbols to be *always*
10346   # included in the symbol list
10347   include_expsyms=
10348   # exclude_expsyms can be an extended regexp of symbols to exclude
10349   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10350   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10351   # as well as any symbol that contains 'd'.
10352   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10353   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10354   # platforms (ab)use it in PIC code, but their linkers get confused if
10355   # the symbol is explicitly referenced.  Since portable code cannot
10356   # rely on this symbol name, it's probably fine to never include it in
10357   # preloaded symbol tables.
10358   # Exclude shared library initialization/finalization symbols.
10359   extract_expsyms_cmds=
10360
10361   case $host_os in
10362   cygwin* | mingw* | pw32* | cegcc*)
10363     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10364     # When not using gcc, we currently assume that we are using
10365     # Microsoft Visual C++.
10366     if test yes != "$GCC"; then
10367       with_gnu_ld=no
10368     fi
10369     ;;
10370   interix*)
10371     # we just hope/assume this is gcc and not c89 (= MSVC++)
10372     with_gnu_ld=yes
10373     ;;
10374   openbsd* | bitrig*)
10375     with_gnu_ld=no
10376     ;;
10377   linux* | k*bsd*-gnu | gnu*)
10378     link_all_deplibs=no
10379     ;;
10380   esac
10381
10382   ld_shlibs=yes
10383
10384   # On some targets, GNU ld is compatible enough with the native linker
10385   # that we're better off using the native interface for both.
10386   lt_use_gnu_ld_interface=no
10387   if test yes = "$with_gnu_ld"; then
10388     case $host_os in
10389       aix*)
10390         # The AIX port of GNU ld has always aspired to compatibility
10391         # with the native linker.  However, as the warning in the GNU ld
10392         # block says, versions before 2.19.5* couldn't really create working
10393         # shared libraries, regardless of the interface used.
10394         case `$LD -v 2>&1` in
10395           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10396           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10397           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10398           *)
10399             lt_use_gnu_ld_interface=yes
10400             ;;
10401         esac
10402         ;;
10403       *)
10404         lt_use_gnu_ld_interface=yes
10405         ;;
10406     esac
10407   fi
10408
10409   if test yes = "$lt_use_gnu_ld_interface"; then
10410     # If archive_cmds runs LD, not CC, wlarc should be empty
10411     wlarc='$wl'
10412
10413     # Set some defaults for GNU ld with shared library support. These
10414     # are reset later if shared libraries are not supported. Putting them
10415     # here allows them to be overridden if necessary.
10416     runpath_var=LD_RUN_PATH
10417     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10418     export_dynamic_flag_spec='$wl--export-dynamic'
10419     # ancient GNU ld didn't support --whole-archive et. al.
10420     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10421       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10422     else
10423       whole_archive_flag_spec=
10424     fi
10425     supports_anon_versioning=no
10426     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10427       *GNU\ gold*) supports_anon_versioning=yes ;;
10428       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10429       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10430       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10431       *\ 2.11.*) ;; # other 2.11 versions
10432       *) supports_anon_versioning=yes ;;
10433     esac
10434
10435     # See if GNU ld supports shared libraries.
10436     case $host_os in
10437     aix[3-9]*)
10438       # On AIX/PPC, the GNU linker is very broken
10439       if test ia64 != "$host_cpu"; then
10440         ld_shlibs=no
10441         cat <<_LT_EOF 1>&2
10442
10443 *** Warning: the GNU linker, at least up to release 2.19, is reported
10444 *** to be unable to reliably create shared libraries on AIX.
10445 *** Therefore, libtool is disabling shared libraries support.  If you
10446 *** really care for shared libraries, you may want to install binutils
10447 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10448 *** You will then need to restart the configuration process.
10449
10450 _LT_EOF
10451       fi
10452       ;;
10453
10454     amigaos*)
10455       case $host_cpu in
10456       powerpc)
10457             # see comment about AmigaOS4 .so support
10458             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10459             archive_expsym_cmds=''
10460         ;;
10461       m68k)
10462             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)'
10463             hardcode_libdir_flag_spec='-L$libdir'
10464             hardcode_minus_L=yes
10465         ;;
10466       esac
10467       ;;
10468
10469     beos*)
10470       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10471         allow_undefined_flag=unsupported
10472         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10473         # support --undefined.  This deserves some investigation.  FIXME
10474         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10475       else
10476         ld_shlibs=no
10477       fi
10478       ;;
10479
10480     cygwin* | mingw* | pw32* | cegcc*)
10481       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10482       # as there is no search path for DLLs.
10483       hardcode_libdir_flag_spec='-L$libdir'
10484       export_dynamic_flag_spec='$wl--export-all-symbols'
10485       allow_undefined_flag=unsupported
10486       always_export_symbols=no
10487       enable_shared_with_static_runtimes=yes
10488       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'
10489       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10490
10491       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10492         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10493         # If the export-symbols file already is a .def file, use it as
10494         # is; otherwise, prepend EXPORTS...
10495         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10496           cp $export_symbols $output_objdir/$soname.def;
10497         else
10498           echo EXPORTS > $output_objdir/$soname.def;
10499           cat $export_symbols >> $output_objdir/$soname.def;
10500         fi~
10501         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10502       else
10503         ld_shlibs=no
10504       fi
10505       ;;
10506
10507     haiku*)
10508       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10509       link_all_deplibs=yes
10510       ;;
10511
10512     os2*)
10513       hardcode_libdir_flag_spec='-L$libdir'
10514       hardcode_minus_L=yes
10515       allow_undefined_flag=unsupported
10516       shrext_cmds=.dll
10517       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10518         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10519         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10520         $ECHO EXPORTS >> $output_objdir/$libname.def~
10521         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10522         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10523         emximp -o $lib $output_objdir/$libname.def'
10524       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10525         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10526         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10527         $ECHO EXPORTS >> $output_objdir/$libname.def~
10528         prefix_cmds="$SED"~
10529         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10530           prefix_cmds="$prefix_cmds -e 1d";
10531         fi~
10532         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10533         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10534         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10535         emximp -o $lib $output_objdir/$libname.def'
10536       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10537       enable_shared_with_static_runtimes=yes
10538       ;;
10539
10540     interix[3-9]*)
10541       hardcode_direct=no
10542       hardcode_shlibpath_var=no
10543       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10544       export_dynamic_flag_spec='$wl-E'
10545       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10546       # Instead, shared libraries are loaded at an image base (0x10000000 by
10547       # default) and relocated if they conflict, which is a slow very memory
10548       # consuming and fragmenting process.  To avoid this, we pick a random,
10549       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10550       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10551       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10552       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'
10553       ;;
10554
10555     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10556       tmp_diet=no
10557       if test linux-dietlibc = "$host_os"; then
10558         case $cc_basename in
10559           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10560         esac
10561       fi
10562       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10563          && test no = "$tmp_diet"
10564       then
10565         tmp_addflag=' $pic_flag'
10566         tmp_sharedflag='-shared'
10567         case $cc_basename,$host_cpu in
10568         pgcc*)                          # Portland Group C compiler
10569           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'
10570           tmp_addflag=' $pic_flag'
10571           ;;
10572         pgf77* | pgf90* | pgf95* | pgfortran*)
10573                                         # Portland Group f77 and f90 compilers
10574           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'
10575           tmp_addflag=' $pic_flag -Mnomain' ;;
10576         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10577           tmp_addflag=' -i_dynamic' ;;
10578         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10579           tmp_addflag=' -i_dynamic -nofor_main' ;;
10580         ifc* | ifort*)                  # Intel Fortran compiler
10581           tmp_addflag=' -nofor_main' ;;
10582         lf95*)                          # Lahey Fortran 8.1
10583           whole_archive_flag_spec=
10584           tmp_sharedflag='--shared' ;;
10585         nagfor*)                        # NAGFOR 5.3
10586           tmp_sharedflag='-Wl,-shared' ;;
10587         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10588           tmp_sharedflag='-qmkshrobj'
10589           tmp_addflag= ;;
10590         nvcc*)  # Cuda Compiler Driver 2.2
10591           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'
10592           compiler_needs_object=yes
10593           ;;
10594         esac
10595         case `$CC -V 2>&1 | sed 5q` in
10596         *Sun\ C*)                       # Sun C 5.9
10597           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'
10598           compiler_needs_object=yes
10599           tmp_sharedflag='-G' ;;
10600         *Sun\ F*)                       # Sun Fortran 8.3
10601           tmp_sharedflag='-G' ;;
10602         esac
10603         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10604
10605         if test yes = "$supports_anon_versioning"; then
10606           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10607             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10608             echo "local: *; };" >> $output_objdir/$libname.ver~
10609             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10610         fi
10611
10612         case $cc_basename in
10613         tcc*)
10614           export_dynamic_flag_spec='-rdynamic'
10615           ;;
10616         xlf* | bgf* | bgxlf* | mpixlf*)
10617           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10618           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10619           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10620           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10621           if test yes = "$supports_anon_versioning"; then
10622             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10623               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10624               echo "local: *; };" >> $output_objdir/$libname.ver~
10625               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10626           fi
10627           ;;
10628         esac
10629       else
10630         ld_shlibs=no
10631       fi
10632       ;;
10633
10634     netbsd* | netbsdelf*-gnu)
10635       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10636         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10637         wlarc=
10638       else
10639         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10640         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10641       fi
10642       ;;
10643
10644     solaris*)
10645       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10646         ld_shlibs=no
10647         cat <<_LT_EOF 1>&2
10648
10649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10650 *** create shared libraries on Solaris systems.  Therefore, libtool
10651 *** is disabling shared libraries support.  We urge you to upgrade GNU
10652 *** binutils to release 2.9.1 or newer.  Another option is to modify
10653 *** your PATH or compiler configuration so that the native linker is
10654 *** used, and then restart.
10655
10656 _LT_EOF
10657       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10658         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10659         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10660       else
10661         ld_shlibs=no
10662       fi
10663       ;;
10664
10665     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10666       case `$LD -v 2>&1` in
10667         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10668         ld_shlibs=no
10669         cat <<_LT_EOF 1>&2
10670
10671 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10672 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10673 *** is disabling shared libraries support.  We urge you to upgrade GNU
10674 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10675 *** your PATH or compiler configuration so that the native linker is
10676 *** used, and then restart.
10677
10678 _LT_EOF
10679         ;;
10680         *)
10681           # For security reasons, it is highly recommended that you always
10682           # use absolute paths for naming shared libraries, and exclude the
10683           # DT_RUNPATH tag from executables and libraries.  But doing so
10684           # requires that you compile everything twice, which is a pain.
10685           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10686             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10687             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10688             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10689           else
10690             ld_shlibs=no
10691           fi
10692         ;;
10693       esac
10694       ;;
10695
10696     sunos4*)
10697       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10698       wlarc=
10699       hardcode_direct=yes
10700       hardcode_shlibpath_var=no
10701       ;;
10702
10703     *)
10704       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10705         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10706         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10707       else
10708         ld_shlibs=no
10709       fi
10710       ;;
10711     esac
10712
10713     if test no = "$ld_shlibs"; then
10714       runpath_var=
10715       hardcode_libdir_flag_spec=
10716       export_dynamic_flag_spec=
10717       whole_archive_flag_spec=
10718     fi
10719   else
10720     # PORTME fill in a description of your system's linker (not GNU ld)
10721     case $host_os in
10722     aix3*)
10723       allow_undefined_flag=unsupported
10724       always_export_symbols=yes
10725       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'
10726       # Note: this linker hardcodes the directories in LIBPATH if there
10727       # are no directories specified by -L.
10728       hardcode_minus_L=yes
10729       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10730         # Neither direct hardcoding nor static linking is supported with a
10731         # broken collect2.
10732         hardcode_direct=unsupported
10733       fi
10734       ;;
10735
10736     aix[4-9]*)
10737       if test ia64 = "$host_cpu"; then
10738         # On IA64, the linker does run time linking by default, so we don't
10739         # have to do anything special.
10740         aix_use_runtimelinking=no
10741         exp_sym_flag='-Bexport'
10742         no_entry_flag=
10743       else
10744         # If we're using GNU nm, then we don't want the "-C" option.
10745         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10746         # Without the "-l" option, or with the "-B" option, AIX nm treats
10747         # weak defined symbols like other global defined symbols, whereas
10748         # GNU nm marks them as "W".
10749         # While the 'weak' keyword is ignored in the Export File, we need
10750         # it in the Import File for the 'aix-soname' feature, so we have
10751         # to replace the "-B" option with "-P" for AIX nm.
10752         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10753           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10754         else
10755           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10756         fi
10757         aix_use_runtimelinking=no
10758
10759         # Test if we are trying to use run time linking or normal
10760         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10761         # have runtime linking enabled, and use it for executables.
10762         # For shared libraries, we enable/disable runtime linking
10763         # depending on the kind of the shared library created -
10764         # when "with_aix_soname,aix_use_runtimelinking" is:
10765         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10766         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10767         #            lib.a           static archive
10768         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10769         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10770         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10771         #            lib.a(lib.so.V) shared, rtl:no
10772         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10773         #            lib.a           static archive
10774         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10775           for ld_flag in $LDFLAGS; do
10776           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10777             aix_use_runtimelinking=yes
10778             break
10779           fi
10780           done
10781           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10782             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10783             # so we don't have lib.a shared libs to link our executables.
10784             # We have to force runtime linking in this case.
10785             aix_use_runtimelinking=yes
10786             LDFLAGS="$LDFLAGS -Wl,-brtl"
10787           fi
10788           ;;
10789         esac
10790
10791         exp_sym_flag='-bexport'
10792         no_entry_flag='-bnoentry'
10793       fi
10794
10795       # When large executables or shared objects are built, AIX ld can
10796       # have problems creating the table of contents.  If linking a library
10797       # or program results in "error TOC overflow" add -mminimal-toc to
10798       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10799       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10800
10801       archive_cmds=''
10802       hardcode_direct=yes
10803       hardcode_direct_absolute=yes
10804       hardcode_libdir_separator=':'
10805       link_all_deplibs=yes
10806       file_list_spec='$wl-f,'
10807       case $with_aix_soname,$aix_use_runtimelinking in
10808       aix,*) ;; # traditional, no import file
10809       svr4,* | *,yes) # use import file
10810         # The Import File defines what to hardcode.
10811         hardcode_direct=no
10812         hardcode_direct_absolute=no
10813         ;;
10814       esac
10815
10816       if test yes = "$GCC"; then
10817         case $host_os in aix4.[012]|aix4.[012].*)
10818         # We only want to do this on AIX 4.2 and lower, the check
10819         # below for broken collect2 doesn't work under 4.3+
10820           collect2name=`$CC -print-prog-name=collect2`
10821           if test -f "$collect2name" &&
10822            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10823           then
10824           # We have reworked collect2
10825           :
10826           else
10827           # We have old collect2
10828           hardcode_direct=unsupported
10829           # It fails to find uninstalled libraries when the uninstalled
10830           # path is not listed in the libpath.  Setting hardcode_minus_L
10831           # to unsupported forces relinking
10832           hardcode_minus_L=yes
10833           hardcode_libdir_flag_spec='-L$libdir'
10834           hardcode_libdir_separator=
10835           fi
10836           ;;
10837         esac
10838         shared_flag='-shared'
10839         if test yes = "$aix_use_runtimelinking"; then
10840           shared_flag="$shared_flag "'$wl-G'
10841         fi
10842         # Need to ensure runtime linking is disabled for the traditional
10843         # shared library, or the linker may eventually find shared libraries
10844         # /with/ Import File - we do not want to mix them.
10845         shared_flag_aix='-shared'
10846         shared_flag_svr4='-shared $wl-G'
10847       else
10848         # not using gcc
10849         if test ia64 = "$host_cpu"; then
10850         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10851         # chokes on -Wl,-G. The following line is correct:
10852           shared_flag='-G'
10853         else
10854           if test yes = "$aix_use_runtimelinking"; then
10855             shared_flag='$wl-G'
10856           else
10857             shared_flag='$wl-bM:SRE'
10858           fi
10859           shared_flag_aix='$wl-bM:SRE'
10860           shared_flag_svr4='$wl-G'
10861         fi
10862       fi
10863
10864       export_dynamic_flag_spec='$wl-bexpall'
10865       # It seems that -bexpall does not export symbols beginning with
10866       # underscore (_), so it is better to generate a list of symbols to export.
10867       always_export_symbols=yes
10868       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10869         # Warning - without using the other runtime loading flags (-brtl),
10870         # -berok will link without error, but may produce a broken library.
10871         allow_undefined_flag='-berok'
10872         # Determine the default libpath from the value encoded in an
10873         # empty executable.
10874         if test set = "${lt_cv_aix_libpath+set}"; then
10875   aix_libpath=$lt_cv_aix_libpath
10876 else
10877   if ${lt_cv_aix_libpath_+:} false; then :
10878   $as_echo_n "(cached) " >&6
10879 else
10880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h.  */
10882
10883 int
10884 main ()
10885 {
10886
10887   ;
10888   return 0;
10889 }
10890 _ACEOF
10891 if ac_fn_c_try_link "$LINENO"; then :
10892
10893   lt_aix_libpath_sed='
10894       /Import File Strings/,/^$/ {
10895           /^0/ {
10896               s/^0  *\([^ ]*\) *$/\1/
10897               p
10898           }
10899       }'
10900   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10901   # Check for a 64-bit object if we didn't find anything.
10902   if test -z "$lt_cv_aix_libpath_"; then
10903     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10904   fi
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext \
10907     conftest$ac_exeext conftest.$ac_ext
10908   if test -z "$lt_cv_aix_libpath_"; then
10909     lt_cv_aix_libpath_=/usr/lib:/lib
10910   fi
10911
10912 fi
10913
10914   aix_libpath=$lt_cv_aix_libpath_
10915 fi
10916
10917         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10918         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
10919       else
10920         if test ia64 = "$host_cpu"; then
10921           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10922           allow_undefined_flag="-z nodefs"
10923           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"
10924         else
10925          # Determine the default libpath from the value encoded in an
10926          # empty executable.
10927          if test set = "${lt_cv_aix_libpath+set}"; then
10928   aix_libpath=$lt_cv_aix_libpath
10929 else
10930   if ${lt_cv_aix_libpath_+:} false; then :
10931   $as_echo_n "(cached) " >&6
10932 else
10933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h.  */
10935
10936 int
10937 main ()
10938 {
10939
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 if ac_fn_c_try_link "$LINENO"; then :
10945
10946   lt_aix_libpath_sed='
10947       /Import File Strings/,/^$/ {
10948           /^0/ {
10949               s/^0  *\([^ ]*\) *$/\1/
10950               p
10951           }
10952       }'
10953   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10954   # Check for a 64-bit object if we didn't find anything.
10955   if test -z "$lt_cv_aix_libpath_"; then
10956     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10957   fi
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext \
10960     conftest$ac_exeext conftest.$ac_ext
10961   if test -z "$lt_cv_aix_libpath_"; then
10962     lt_cv_aix_libpath_=/usr/lib:/lib
10963   fi
10964
10965 fi
10966
10967   aix_libpath=$lt_cv_aix_libpath_
10968 fi
10969
10970          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10971           # Warning - without using the other run time loading flags,
10972           # -berok will link without error, but may produce a broken library.
10973           no_undefined_flag=' $wl-bernotok'
10974           allow_undefined_flag=' $wl-berok'
10975           if test yes = "$with_gnu_ld"; then
10976             # We only use this code for GNU lds that support --whole-archive.
10977             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10978           else
10979             # Exported symbols can be pulled into shared objects from archives
10980             whole_archive_flag_spec='$convenience'
10981           fi
10982           archive_cmds_need_lc=yes
10983           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10984           # -brtl affects multiple linker settings, -berok does not and is overridden later
10985           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10986           if test svr4 != "$with_aix_soname"; then
10987             # This is similar to how AIX traditionally builds its shared libraries.
10988             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10989           fi
10990           if test aix != "$with_aix_soname"; then
10991             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10992           else
10993             # used by -dlpreopen to get the symbols
10994             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10995           fi
10996           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10997         fi
10998       fi
10999       ;;
11000
11001     amigaos*)
11002       case $host_cpu in
11003       powerpc)
11004             # see comment about AmigaOS4 .so support
11005             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11006             archive_expsym_cmds=''
11007         ;;
11008       m68k)
11009             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)'
11010             hardcode_libdir_flag_spec='-L$libdir'
11011             hardcode_minus_L=yes
11012         ;;
11013       esac
11014       ;;
11015
11016     bsdi[45]*)
11017       export_dynamic_flag_spec=-rdynamic
11018       ;;
11019
11020     cygwin* | mingw* | pw32* | cegcc*)
11021       # When not using gcc, we currently assume that we are using
11022       # Microsoft Visual C++.
11023       # hardcode_libdir_flag_spec is actually meaningless, as there is
11024       # no search path for DLLs.
11025       case $cc_basename in
11026       cl*)
11027         # Native MSVC
11028         hardcode_libdir_flag_spec=' '
11029         allow_undefined_flag=unsupported
11030         always_export_symbols=yes
11031         file_list_spec='@'
11032         # Tell ltmain to make .lib files, not .a files.
11033         libext=lib
11034         # Tell ltmain to make .dll files, not .so files.
11035         shrext_cmds=.dll
11036         # FIXME: Setting linknames here is a bad hack.
11037         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11038         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11039             cp "$export_symbols" "$output_objdir/$soname.def";
11040             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11041           else
11042             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11043           fi~
11044           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11045           linknames='
11046         # The linker will not automatically build a static lib if we build a DLL.
11047         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11048         enable_shared_with_static_runtimes=yes
11049         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11050         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11051         # Don't use ranlib
11052         old_postinstall_cmds='chmod 644 $oldlib'
11053         postlink_cmds='lt_outputfile="@OUTPUT@"~
11054           lt_tool_outputfile="@TOOL_OUTPUT@"~
11055           case $lt_outputfile in
11056             *.exe|*.EXE) ;;
11057             *)
11058               lt_outputfile=$lt_outputfile.exe
11059               lt_tool_outputfile=$lt_tool_outputfile.exe
11060               ;;
11061           esac~
11062           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11063             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11064             $RM "$lt_outputfile.manifest";
11065           fi'
11066         ;;
11067       *)
11068         # Assume MSVC wrapper
11069         hardcode_libdir_flag_spec=' '
11070         allow_undefined_flag=unsupported
11071         # Tell ltmain to make .lib files, not .a files.
11072         libext=lib
11073         # Tell ltmain to make .dll files, not .so files.
11074         shrext_cmds=.dll
11075         # FIXME: Setting linknames here is a bad hack.
11076         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11077         # The linker will automatically build a .lib file if we build a DLL.
11078         old_archive_from_new_cmds='true'
11079         # FIXME: Should let the user specify the lib program.
11080         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11081         enable_shared_with_static_runtimes=yes
11082         ;;
11083       esac
11084       ;;
11085
11086     darwin* | rhapsody*)
11087
11088
11089   archive_cmds_need_lc=no
11090   hardcode_direct=no
11091   hardcode_automatic=yes
11092   hardcode_shlibpath_var=unsupported
11093   if test yes = "$lt_cv_ld_force_load"; then
11094     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\"`'
11095
11096   else
11097     whole_archive_flag_spec=''
11098   fi
11099   link_all_deplibs=yes
11100   allow_undefined_flag=$_lt_dar_allow_undefined
11101   case $cc_basename in
11102      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11103      *) _lt_dar_can_shared=$GCC ;;
11104   esac
11105   if test yes = "$_lt_dar_can_shared"; then
11106     output_verbose_link_cmd=func_echo_all
11107     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11108     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11109     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"
11110     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"
11111
11112   else
11113   ld_shlibs=no
11114   fi
11115
11116       ;;
11117
11118     dgux*)
11119       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11120       hardcode_libdir_flag_spec='-L$libdir'
11121       hardcode_shlibpath_var=no
11122       ;;
11123
11124     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11125     # support.  Future versions do this automatically, but an explicit c++rt0.o
11126     # does not break anything, and helps significantly (at the cost of a little
11127     # extra space).
11128     freebsd2.2*)
11129       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11130       hardcode_libdir_flag_spec='-R$libdir'
11131       hardcode_direct=yes
11132       hardcode_shlibpath_var=no
11133       ;;
11134
11135     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11136     freebsd2.*)
11137       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11138       hardcode_direct=yes
11139       hardcode_minus_L=yes
11140       hardcode_shlibpath_var=no
11141       ;;
11142
11143     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11144     freebsd* | dragonfly*)
11145       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11146       hardcode_libdir_flag_spec='-R$libdir'
11147       hardcode_direct=yes
11148       hardcode_shlibpath_var=no
11149       ;;
11150
11151     hpux9*)
11152       if test yes = "$GCC"; then
11153         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'
11154       else
11155         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'
11156       fi
11157       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11158       hardcode_libdir_separator=:
11159       hardcode_direct=yes
11160
11161       # hardcode_minus_L: Not really in the search PATH,
11162       # but as the default location of the library.
11163       hardcode_minus_L=yes
11164       export_dynamic_flag_spec='$wl-E'
11165       ;;
11166
11167     hpux10*)
11168       if test yes,no = "$GCC,$with_gnu_ld"; then
11169         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11170       else
11171         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11172       fi
11173       if test no = "$with_gnu_ld"; then
11174         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11175         hardcode_libdir_separator=:
11176         hardcode_direct=yes
11177         hardcode_direct_absolute=yes
11178         export_dynamic_flag_spec='$wl-E'
11179         # hardcode_minus_L: Not really in the search PATH,
11180         # but as the default location of the library.
11181         hardcode_minus_L=yes
11182       fi
11183       ;;
11184
11185     hpux11*)
11186       if test yes,no = "$GCC,$with_gnu_ld"; then
11187         case $host_cpu in
11188         hppa*64*)
11189           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11190           ;;
11191         ia64*)
11192           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11193           ;;
11194         *)
11195           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11196           ;;
11197         esac
11198       else
11199         case $host_cpu in
11200         hppa*64*)
11201           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11202           ;;
11203         ia64*)
11204           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11205           ;;
11206         *)
11207
11208           # Older versions of the 11.00 compiler do not understand -b yet
11209           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11210           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11211 $as_echo_n "checking if $CC understands -b... " >&6; }
11212 if ${lt_cv_prog_compiler__b+:} false; then :
11213   $as_echo_n "(cached) " >&6
11214 else
11215   lt_cv_prog_compiler__b=no
11216    save_LDFLAGS=$LDFLAGS
11217    LDFLAGS="$LDFLAGS -b"
11218    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11219    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11220      # The linker can only warn and ignore the option if not recognized
11221      # So say no if there are warnings
11222      if test -s conftest.err; then
11223        # Append any errors to the config.log.
11224        cat conftest.err 1>&5
11225        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11226        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11227        if diff conftest.exp conftest.er2 >/dev/null; then
11228          lt_cv_prog_compiler__b=yes
11229        fi
11230      else
11231        lt_cv_prog_compiler__b=yes
11232      fi
11233    fi
11234    $RM -r conftest*
11235    LDFLAGS=$save_LDFLAGS
11236
11237 fi
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11239 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11240
11241 if test yes = "$lt_cv_prog_compiler__b"; then
11242     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11243 else
11244     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11245 fi
11246
11247           ;;
11248         esac
11249       fi
11250       if test no = "$with_gnu_ld"; then
11251         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11252         hardcode_libdir_separator=:
11253
11254         case $host_cpu in
11255         hppa*64*|ia64*)
11256           hardcode_direct=no
11257           hardcode_shlibpath_var=no
11258           ;;
11259         *)
11260           hardcode_direct=yes
11261           hardcode_direct_absolute=yes
11262           export_dynamic_flag_spec='$wl-E'
11263
11264           # hardcode_minus_L: Not really in the search PATH,
11265           # but as the default location of the library.
11266           hardcode_minus_L=yes
11267           ;;
11268         esac
11269       fi
11270       ;;
11271
11272     irix5* | irix6* | nonstopux*)
11273       if test yes = "$GCC"; then
11274         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'
11275         # Try to use the -exported_symbol ld option, if it does not
11276         # work, assume that -exports_file does not work either and
11277         # implicitly export all symbols.
11278         # This should be the same for all languages, so no per-tag cache variable.
11279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11280 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11281 if ${lt_cv_irix_exported_symbol+:} false; then :
11282   $as_echo_n "(cached) " >&6
11283 else
11284   save_LDFLAGS=$LDFLAGS
11285            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11286            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h.  */
11288 int foo (void) { return 0; }
11289 _ACEOF
11290 if ac_fn_c_try_link "$LINENO"; then :
11291   lt_cv_irix_exported_symbol=yes
11292 else
11293   lt_cv_irix_exported_symbol=no
11294 fi
11295 rm -f core conftest.err conftest.$ac_objext \
11296     conftest$ac_exeext conftest.$ac_ext
11297            LDFLAGS=$save_LDFLAGS
11298 fi
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11300 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11301         if test yes = "$lt_cv_irix_exported_symbol"; then
11302           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'
11303         fi
11304         link_all_deplibs=no
11305       else
11306         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'
11307         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'
11308       fi
11309       archive_cmds_need_lc='no'
11310       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11311       hardcode_libdir_separator=:
11312       inherit_rpath=yes
11313       link_all_deplibs=yes
11314       ;;
11315
11316     linux*)
11317       case $cc_basename in
11318       tcc*)
11319         # Fabrice Bellard et al's Tiny C Compiler
11320         ld_shlibs=yes
11321         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11322         ;;
11323       esac
11324       ;;
11325
11326     netbsd* | netbsdelf*-gnu)
11327       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11328         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11329       else
11330         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11331       fi
11332       hardcode_libdir_flag_spec='-R$libdir'
11333       hardcode_direct=yes
11334       hardcode_shlibpath_var=no
11335       ;;
11336
11337     newsos6)
11338       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11339       hardcode_direct=yes
11340       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11341       hardcode_libdir_separator=:
11342       hardcode_shlibpath_var=no
11343       ;;
11344
11345     *nto* | *qnx*)
11346       ;;
11347
11348     openbsd* | bitrig*)
11349       if test -f /usr/libexec/ld.so; then
11350         hardcode_direct=yes
11351         hardcode_shlibpath_var=no
11352         hardcode_direct_absolute=yes
11353         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11354           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11355           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11356           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11357           export_dynamic_flag_spec='$wl-E'
11358         else
11359           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11360           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11361         fi
11362       else
11363         ld_shlibs=no
11364       fi
11365       ;;
11366
11367     os2*)
11368       hardcode_libdir_flag_spec='-L$libdir'
11369       hardcode_minus_L=yes
11370       allow_undefined_flag=unsupported
11371       shrext_cmds=.dll
11372       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11373         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11374         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11375         $ECHO EXPORTS >> $output_objdir/$libname.def~
11376         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11377         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11378         emximp -o $lib $output_objdir/$libname.def'
11379       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11380         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11381         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11382         $ECHO EXPORTS >> $output_objdir/$libname.def~
11383         prefix_cmds="$SED"~
11384         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11385           prefix_cmds="$prefix_cmds -e 1d";
11386         fi~
11387         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11388         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11389         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11390         emximp -o $lib $output_objdir/$libname.def'
11391       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11392       enable_shared_with_static_runtimes=yes
11393       ;;
11394
11395     osf3*)
11396       if test yes = "$GCC"; then
11397         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11398         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'
11399       else
11400         allow_undefined_flag=' -expect_unresolved \*'
11401         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'
11402       fi
11403       archive_cmds_need_lc='no'
11404       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11405       hardcode_libdir_separator=:
11406       ;;
11407
11408     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11409       if test yes = "$GCC"; then
11410         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11411         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'
11412         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11413       else
11414         allow_undefined_flag=' -expect_unresolved \*'
11415         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'
11416         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~
11417           $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'
11418
11419         # Both c and cxx compiler support -rpath directly
11420         hardcode_libdir_flag_spec='-rpath $libdir'
11421       fi
11422       archive_cmds_need_lc='no'
11423       hardcode_libdir_separator=:
11424       ;;
11425
11426     solaris*)
11427       no_undefined_flag=' -z defs'
11428       if test yes = "$GCC"; then
11429         wlarc='$wl'
11430         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11431         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11432           $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'
11433       else
11434         case `$CC -V 2>&1` in
11435         *"Compilers 5.0"*)
11436           wlarc=''
11437           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11438           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11439             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11440           ;;
11441         *)
11442           wlarc='$wl'
11443           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11444           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11445             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11446           ;;
11447         esac
11448       fi
11449       hardcode_libdir_flag_spec='-R$libdir'
11450       hardcode_shlibpath_var=no
11451       case $host_os in
11452       solaris2.[0-5] | solaris2.[0-5].*) ;;
11453       *)
11454         # The compiler driver will combine and reorder linker options,
11455         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11456         # but is careful enough not to reorder.
11457         # Supported since Solaris 2.6 (maybe 2.5.1?)
11458         if test yes = "$GCC"; then
11459           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11460         else
11461           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11462         fi
11463         ;;
11464       esac
11465       link_all_deplibs=yes
11466       ;;
11467
11468     sunos4*)
11469       if test sequent = "$host_vendor"; then
11470         # Use $CC to link under sequent, because it throws in some extra .o
11471         # files that make .init and .fini sections work.
11472         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11473       else
11474         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11475       fi
11476       hardcode_libdir_flag_spec='-L$libdir'
11477       hardcode_direct=yes
11478       hardcode_minus_L=yes
11479       hardcode_shlibpath_var=no
11480       ;;
11481
11482     sysv4)
11483       case $host_vendor in
11484         sni)
11485           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11486           hardcode_direct=yes # is this really true???
11487         ;;
11488         siemens)
11489           ## LD is ld it makes a PLAMLIB
11490           ## CC just makes a GrossModule.
11491           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11492           reload_cmds='$CC -r -o $output$reload_objs'
11493           hardcode_direct=no
11494         ;;
11495         motorola)
11496           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11497           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11498         ;;
11499       esac
11500       runpath_var='LD_RUN_PATH'
11501       hardcode_shlibpath_var=no
11502       ;;
11503
11504     sysv4.3*)
11505       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11506       hardcode_shlibpath_var=no
11507       export_dynamic_flag_spec='-Bexport'
11508       ;;
11509
11510     sysv4*MP*)
11511       if test -d /usr/nec; then
11512         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11513         hardcode_shlibpath_var=no
11514         runpath_var=LD_RUN_PATH
11515         hardcode_runpath_var=yes
11516         ld_shlibs=yes
11517       fi
11518       ;;
11519
11520     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11521       no_undefined_flag='$wl-z,text'
11522       archive_cmds_need_lc=no
11523       hardcode_shlibpath_var=no
11524       runpath_var='LD_RUN_PATH'
11525
11526       if test yes = "$GCC"; then
11527         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11528         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11529       else
11530         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11531         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11532       fi
11533       ;;
11534
11535     sysv5* | sco3.2v5* | sco5v6*)
11536       # Note: We CANNOT use -z defs as we might desire, because we do not
11537       # link with -lc, and that would cause any symbols used from libc to
11538       # always be unresolved, which means just about no library would
11539       # ever link correctly.  If we're not using GNU ld we use -z text
11540       # though, which does catch some bad symbols but isn't as heavy-handed
11541       # as -z defs.
11542       no_undefined_flag='$wl-z,text'
11543       allow_undefined_flag='$wl-z,nodefs'
11544       archive_cmds_need_lc=no
11545       hardcode_shlibpath_var=no
11546       hardcode_libdir_flag_spec='$wl-R,$libdir'
11547       hardcode_libdir_separator=':'
11548       link_all_deplibs=yes
11549       export_dynamic_flag_spec='$wl-Bexport'
11550       runpath_var='LD_RUN_PATH'
11551
11552       if test yes = "$GCC"; then
11553         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11554         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11555       else
11556         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11557         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11558       fi
11559       ;;
11560
11561     uts4*)
11562       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11563       hardcode_libdir_flag_spec='-L$libdir'
11564       hardcode_shlibpath_var=no
11565       ;;
11566
11567     *)
11568       ld_shlibs=no
11569       ;;
11570     esac
11571
11572     if test sni = "$host_vendor"; then
11573       case $host in
11574       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11575         export_dynamic_flag_spec='$wl-Blargedynsym'
11576         ;;
11577       esac
11578     fi
11579   fi
11580
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11582 $as_echo "$ld_shlibs" >&6; }
11583 test no = "$ld_shlibs" && can_build_shared=no
11584
11585 with_gnu_ld=$with_gnu_ld
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601 #
11602 # Do we need to explicitly link libc?
11603 #
11604 case "x$archive_cmds_need_lc" in
11605 x|xyes)
11606   # Assume -lc should be added
11607   archive_cmds_need_lc=yes
11608
11609   if test yes,yes = "$GCC,$enable_shared"; then
11610     case $archive_cmds in
11611     *'~'*)
11612       # FIXME: we may have to deal with multi-command sequences.
11613       ;;
11614     '$CC '*)
11615       # Test whether the compiler implicitly links with -lc since on some
11616       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11617       # to ld, don't add -lc before -lgcc.
11618       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11619 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11620 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623   $RM conftest*
11624         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11625
11626         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11627   (eval $ac_compile) 2>&5
11628   ac_status=$?
11629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630   test $ac_status = 0; } 2>conftest.err; then
11631           soname=conftest
11632           lib=conftest
11633           libobjs=conftest.$ac_objext
11634           deplibs=
11635           wl=$lt_prog_compiler_wl
11636           pic_flag=$lt_prog_compiler_pic
11637           compiler_flags=-v
11638           linker_flags=-v
11639           verstring=
11640           output_objdir=.
11641           libname=conftest
11642           lt_save_allow_undefined_flag=$allow_undefined_flag
11643           allow_undefined_flag=
11644           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11645   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11646   ac_status=$?
11647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11648   test $ac_status = 0; }
11649           then
11650             lt_cv_archive_cmds_need_lc=no
11651           else
11652             lt_cv_archive_cmds_need_lc=yes
11653           fi
11654           allow_undefined_flag=$lt_save_allow_undefined_flag
11655         else
11656           cat conftest.err 1>&5
11657         fi
11658         $RM conftest*
11659
11660 fi
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11662 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11663       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11664       ;;
11665     esac
11666   fi
11667   ;;
11668 esac
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
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11822 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11823
11824 if test yes = "$GCC"; then
11825   case $host_os in
11826     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11827     *) lt_awk_arg='/^libraries:/' ;;
11828   esac
11829   case $host_os in
11830     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11831     *) lt_sed_strip_eq='s|=/|/|g' ;;
11832   esac
11833   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11834   case $lt_search_path_spec in
11835   *\;*)
11836     # if the path contains ";" then we assume it to be the separator
11837     # otherwise default to the standard path separator (i.e. ":") - it is
11838     # assumed that no part of a normal pathname contains ";" but that should
11839     # okay in the real world where ";" in dirpaths is itself problematic.
11840     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11841     ;;
11842   *)
11843     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11844     ;;
11845   esac
11846   # Ok, now we have the path, separated by spaces, we can step through it
11847   # and add multilib dir if necessary...
11848   lt_tmp_lt_search_path_spec=
11849   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11850   # ...but if some path component already ends with the multilib dir we assume
11851   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11852   case "$lt_multi_os_dir; $lt_search_path_spec " in
11853   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11854     lt_multi_os_dir=
11855     ;;
11856   esac
11857   for lt_sys_path in $lt_search_path_spec; do
11858     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11859       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11860     elif test -n "$lt_multi_os_dir"; then
11861       test -d "$lt_sys_path" && \
11862         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11863     fi
11864   done
11865   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11866 BEGIN {RS = " "; FS = "/|\n";} {
11867   lt_foo = "";
11868   lt_count = 0;
11869   for (lt_i = NF; lt_i > 0; lt_i--) {
11870     if ($lt_i != "" && $lt_i != ".") {
11871       if ($lt_i == "..") {
11872         lt_count++;
11873       } else {
11874         if (lt_count == 0) {
11875           lt_foo = "/" $lt_i lt_foo;
11876         } else {
11877           lt_count--;
11878         }
11879       }
11880     }
11881   }
11882   if (lt_foo != "") { lt_freq[lt_foo]++; }
11883   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11884 }'`
11885   # AWK program above erroneously prepends '/' to C:/dos/paths
11886   # for these hosts.
11887   case $host_os in
11888     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11889       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11890   esac
11891   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11892 else
11893   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11894 fi
11895 library_names_spec=
11896 libname_spec='lib$name'
11897 soname_spec=
11898 shrext_cmds=.so
11899 postinstall_cmds=
11900 postuninstall_cmds=
11901 finish_cmds=
11902 finish_eval=
11903 shlibpath_var=
11904 shlibpath_overrides_runpath=unknown
11905 version_type=none
11906 dynamic_linker="$host_os ld.so"
11907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11908 need_lib_prefix=unknown
11909 hardcode_into_libs=no
11910
11911 # when you set need_version to no, make sure it does not cause -set_version
11912 # flags to be left without arguments
11913 need_version=unknown
11914
11915
11916
11917 case $host_os in
11918 aix3*)
11919   version_type=linux # correct to gnu/linux during the next big refactor
11920   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11921   shlibpath_var=LIBPATH
11922
11923   # AIX 3 has no versioning support, so we append a major version to the name.
11924   soname_spec='$libname$release$shared_ext$major'
11925   ;;
11926
11927 aix[4-9]*)
11928   version_type=linux # correct to gnu/linux during the next big refactor
11929   need_lib_prefix=no
11930   need_version=no
11931   hardcode_into_libs=yes
11932   if test ia64 = "$host_cpu"; then
11933     # AIX 5 supports IA64
11934     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11935     shlibpath_var=LD_LIBRARY_PATH
11936   else
11937     # With GCC up to 2.95.x, collect2 would create an import file
11938     # for dependence libraries.  The import file would start with
11939     # the line '#! .'.  This would cause the generated library to
11940     # depend on '.', always an invalid library.  This was fixed in
11941     # development snapshots of GCC prior to 3.0.
11942     case $host_os in
11943       aix4 | aix4.[01] | aix4.[01].*)
11944       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11945            echo ' yes '
11946            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11947         :
11948       else
11949         can_build_shared=no
11950       fi
11951       ;;
11952     esac
11953     # Using Import Files as archive members, it is possible to support
11954     # filename-based versioning of shared library archives on AIX. While
11955     # this would work for both with and without runtime linking, it will
11956     # prevent static linking of such archives. So we do filename-based
11957     # shared library versioning with .so extension only, which is used
11958     # when both runtime linking and shared linking is enabled.
11959     # Unfortunately, runtime linking may impact performance, so we do
11960     # not want this to be the default eventually. Also, we use the
11961     # versioned .so libs for executables only if there is the -brtl
11962     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11963     # To allow for filename-based versioning support, we need to create
11964     # libNAME.so.V as an archive file, containing:
11965     # *) an Import File, referring to the versioned filename of the
11966     #    archive as well as the shared archive member, telling the
11967     #    bitwidth (32 or 64) of that shared object, and providing the
11968     #    list of exported symbols of that shared object, eventually
11969     #    decorated with the 'weak' keyword
11970     # *) the shared object with the F_LOADONLY flag set, to really avoid
11971     #    it being seen by the linker.
11972     # At run time we better use the real file rather than another symlink,
11973     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11974
11975     case $with_aix_soname,$aix_use_runtimelinking in
11976     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11977     # soname into executable. Probably we can add versioning support to
11978     # collect2, so additional links can be useful in future.
11979     aix,yes) # traditional libtool
11980       dynamic_linker='AIX unversionable lib.so'
11981       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11982       # instead of lib<name>.a to let people know that these are not
11983       # typical AIX shared libraries.
11984       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11985       ;;
11986     aix,no) # traditional AIX only
11987       dynamic_linker='AIX lib.a(lib.so.V)'
11988       # We preserve .a as extension for shared libraries through AIX4.2
11989       # and later when we are not doing run time linking.
11990       library_names_spec='$libname$release.a $libname.a'
11991       soname_spec='$libname$release$shared_ext$major'
11992       ;;
11993     svr4,*) # full svr4 only
11994       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11995       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11996       # We do not specify a path in Import Files, so LIBPATH fires.
11997       shlibpath_overrides_runpath=yes
11998       ;;
11999     *,yes) # both, prefer svr4
12000       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12001       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12002       # unpreferred sharedlib libNAME.a needs extra handling
12003       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12004       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12005       # We do not specify a path in Import Files, so LIBPATH fires.
12006       shlibpath_overrides_runpath=yes
12007       ;;
12008     *,no) # both, prefer aix
12009       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12010       library_names_spec='$libname$release.a $libname.a'
12011       soname_spec='$libname$release$shared_ext$major'
12012       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12013       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12014       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12015       ;;
12016     esac
12017     shlibpath_var=LIBPATH
12018   fi
12019   ;;
12020
12021 amigaos*)
12022   case $host_cpu in
12023   powerpc)
12024     # Since July 2007 AmigaOS4 officially supports .so libraries.
12025     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12026     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12027     ;;
12028   m68k)
12029     library_names_spec='$libname.ixlibrary $libname.a'
12030     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12031     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'
12032     ;;
12033   esac
12034   ;;
12035
12036 beos*)
12037   library_names_spec='$libname$shared_ext'
12038   dynamic_linker="$host_os ld.so"
12039   shlibpath_var=LIBRARY_PATH
12040   ;;
12041
12042 bsdi[45]*)
12043   version_type=linux # correct to gnu/linux during the next big refactor
12044   need_version=no
12045   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046   soname_spec='$libname$release$shared_ext$major'
12047   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12048   shlibpath_var=LD_LIBRARY_PATH
12049   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12050   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12051   # the default ld.so.conf also contains /usr/contrib/lib and
12052   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12053   # libtool to hard-code these into programs
12054   ;;
12055
12056 cygwin* | mingw* | pw32* | cegcc*)
12057   version_type=windows
12058   shrext_cmds=.dll
12059   need_version=no
12060   need_lib_prefix=no
12061
12062   case $GCC,$cc_basename in
12063   yes,*)
12064     # gcc
12065     library_names_spec='$libname.dll.a'
12066     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12067     postinstall_cmds='base_file=`basename \$file`~
12068       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12069       dldir=$destdir/`dirname \$dlpath`~
12070       test -d \$dldir || mkdir -p \$dldir~
12071       $install_prog $dir/$dlname \$dldir/$dlname~
12072       chmod a+x \$dldir/$dlname~
12073       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12074         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12075       fi'
12076     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12077       dlpath=$dir/\$dldll~
12078        $RM \$dlpath'
12079     shlibpath_overrides_runpath=yes
12080
12081     case $host_os in
12082     cygwin*)
12083       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12084       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12085
12086       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12087       ;;
12088     mingw* | cegcc*)
12089       # MinGW DLLs use traditional 'lib' prefix
12090       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12091       ;;
12092     pw32*)
12093       # pw32 DLLs use 'pw' prefix rather than 'lib'
12094       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12095       ;;
12096     esac
12097     dynamic_linker='Win32 ld.exe'
12098     ;;
12099
12100   *,cl*)
12101     # Native MSVC
12102     libname_spec='$name'
12103     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12104     library_names_spec='$libname.dll.lib'
12105
12106     case $build_os in
12107     mingw*)
12108       sys_lib_search_path_spec=
12109       lt_save_ifs=$IFS
12110       IFS=';'
12111       for lt_path in $LIB
12112       do
12113         IFS=$lt_save_ifs
12114         # Let DOS variable expansion print the short 8.3 style file name.
12115         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12116         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12117       done
12118       IFS=$lt_save_ifs
12119       # Convert to MSYS style.
12120       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12121       ;;
12122     cygwin*)
12123       # Convert to unix form, then to dos form, then back to unix form
12124       # but this time dos style (no spaces!) so that the unix form looks
12125       # like /cygdrive/c/PROGRA~1:/cygdr...
12126       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12127       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12128       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12129       ;;
12130     *)
12131       sys_lib_search_path_spec=$LIB
12132       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12133         # It is most probably a Windows format PATH.
12134         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12135       else
12136         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12137       fi
12138       # FIXME: find the short name or the path components, as spaces are
12139       # common. (e.g. "Program Files" -> "PROGRA~1")
12140       ;;
12141     esac
12142
12143     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12144     postinstall_cmds='base_file=`basename \$file`~
12145       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12146       dldir=$destdir/`dirname \$dlpath`~
12147       test -d \$dldir || mkdir -p \$dldir~
12148       $install_prog $dir/$dlname \$dldir/$dlname'
12149     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12150       dlpath=$dir/\$dldll~
12151        $RM \$dlpath'
12152     shlibpath_overrides_runpath=yes
12153     dynamic_linker='Win32 link.exe'
12154     ;;
12155
12156   *)
12157     # Assume MSVC wrapper
12158     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12159     dynamic_linker='Win32 ld.exe'
12160     ;;
12161   esac
12162   # FIXME: first we should search . and the directory the executable is in
12163   shlibpath_var=PATH
12164   ;;
12165
12166 darwin* | rhapsody*)
12167   dynamic_linker="$host_os dyld"
12168   version_type=darwin
12169   need_lib_prefix=no
12170   need_version=no
12171   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12172   soname_spec='$libname$release$major$shared_ext'
12173   shlibpath_overrides_runpath=yes
12174   shlibpath_var=DYLD_LIBRARY_PATH
12175   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12176
12177   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12178   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12179   ;;
12180
12181 dgux*)
12182   version_type=linux # correct to gnu/linux during the next big refactor
12183   need_lib_prefix=no
12184   need_version=no
12185   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12186   soname_spec='$libname$release$shared_ext$major'
12187   shlibpath_var=LD_LIBRARY_PATH
12188   ;;
12189
12190 freebsd* | dragonfly*)
12191   # DragonFly does not have aout.  When/if they implement a new
12192   # versioning mechanism, adjust this.
12193   if test -x /usr/bin/objformat; then
12194     objformat=`/usr/bin/objformat`
12195   else
12196     case $host_os in
12197     freebsd[23].*) objformat=aout ;;
12198     *) objformat=elf ;;
12199     esac
12200   fi
12201   version_type=freebsd-$objformat
12202   case $version_type in
12203     freebsd-elf*)
12204       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12205       soname_spec='$libname$release$shared_ext$major'
12206       need_version=no
12207       need_lib_prefix=no
12208       ;;
12209     freebsd-*)
12210       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12211       need_version=yes
12212       ;;
12213   esac
12214   shlibpath_var=LD_LIBRARY_PATH
12215   case $host_os in
12216   freebsd2.*)
12217     shlibpath_overrides_runpath=yes
12218     ;;
12219   freebsd3.[01]* | freebsdelf3.[01]*)
12220     shlibpath_overrides_runpath=yes
12221     hardcode_into_libs=yes
12222     ;;
12223   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12224   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12225     shlibpath_overrides_runpath=no
12226     hardcode_into_libs=yes
12227     ;;
12228   *) # from 4.6 on, and DragonFly
12229     shlibpath_overrides_runpath=yes
12230     hardcode_into_libs=yes
12231     ;;
12232   esac
12233   ;;
12234
12235 haiku*)
12236   version_type=linux # correct to gnu/linux during the next big refactor
12237   need_lib_prefix=no
12238   need_version=no
12239   dynamic_linker="$host_os runtime_loader"
12240   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12241   soname_spec='$libname$release$shared_ext$major'
12242   shlibpath_var=LIBRARY_PATH
12243   shlibpath_overrides_runpath=no
12244   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12245   hardcode_into_libs=yes
12246   ;;
12247
12248 hpux9* | hpux10* | hpux11*)
12249   # Give a soname corresponding to the major version so that dld.sl refuses to
12250   # link against other versions.
12251   version_type=sunos
12252   need_lib_prefix=no
12253   need_version=no
12254   case $host_cpu in
12255   ia64*)
12256     shrext_cmds='.so'
12257     hardcode_into_libs=yes
12258     dynamic_linker="$host_os dld.so"
12259     shlibpath_var=LD_LIBRARY_PATH
12260     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12261     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12262     soname_spec='$libname$release$shared_ext$major'
12263     if test 32 = "$HPUX_IA64_MODE"; then
12264       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12265       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12266     else
12267       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12268       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12269     fi
12270     ;;
12271   hppa*64*)
12272     shrext_cmds='.sl'
12273     hardcode_into_libs=yes
12274     dynamic_linker="$host_os dld.sl"
12275     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12276     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12277     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12278     soname_spec='$libname$release$shared_ext$major'
12279     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12280     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12281     ;;
12282   *)
12283     shrext_cmds='.sl'
12284     dynamic_linker="$host_os dld.sl"
12285     shlibpath_var=SHLIB_PATH
12286     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12287     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12288     soname_spec='$libname$release$shared_ext$major'
12289     ;;
12290   esac
12291   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12292   postinstall_cmds='chmod 555 $lib'
12293   # or fails outright, so override atomically:
12294   install_override_mode=555
12295   ;;
12296
12297 interix[3-9]*)
12298   version_type=linux # correct to gnu/linux during the next big refactor
12299   need_lib_prefix=no
12300   need_version=no
12301   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12302   soname_spec='$libname$release$shared_ext$major'
12303   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12304   shlibpath_var=LD_LIBRARY_PATH
12305   shlibpath_overrides_runpath=no
12306   hardcode_into_libs=yes
12307   ;;
12308
12309 irix5* | irix6* | nonstopux*)
12310   case $host_os in
12311     nonstopux*) version_type=nonstopux ;;
12312     *)
12313         if test yes = "$lt_cv_prog_gnu_ld"; then
12314                 version_type=linux # correct to gnu/linux during the next big refactor
12315         else
12316                 version_type=irix
12317         fi ;;
12318   esac
12319   need_lib_prefix=no
12320   need_version=no
12321   soname_spec='$libname$release$shared_ext$major'
12322   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12323   case $host_os in
12324   irix5* | nonstopux*)
12325     libsuff= shlibsuff=
12326     ;;
12327   *)
12328     case $LD in # libtool.m4 will add one of these switches to LD
12329     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12330       libsuff= shlibsuff= libmagic=32-bit;;
12331     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12332       libsuff=32 shlibsuff=N32 libmagic=N32;;
12333     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12334       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12335     *) libsuff= shlibsuff= libmagic=never-match;;
12336     esac
12337     ;;
12338   esac
12339   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12340   shlibpath_overrides_runpath=no
12341   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12342   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12343   hardcode_into_libs=yes
12344   ;;
12345
12346 # No shared lib support for Linux oldld, aout, or coff.
12347 linux*oldld* | linux*aout* | linux*coff*)
12348   dynamic_linker=no
12349   ;;
12350
12351 linux*android*)
12352   version_type=none # Android doesn't support versioned libraries.
12353   need_lib_prefix=no
12354   need_version=no
12355   library_names_spec='$libname$release$shared_ext'
12356   soname_spec='$libname$release$shared_ext'
12357   finish_cmds=
12358   shlibpath_var=LD_LIBRARY_PATH
12359   shlibpath_overrides_runpath=yes
12360
12361   # This implies no fast_install, which is unacceptable.
12362   # Some rework will be needed to allow for fast_install
12363   # before this can be enabled.
12364   hardcode_into_libs=yes
12365
12366   dynamic_linker='Android linker'
12367   # Don't embed -rpath directories since the linker doesn't support them.
12368   hardcode_libdir_flag_spec='-L$libdir'
12369   ;;
12370
12371 # This must be glibc/ELF.
12372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12373   version_type=linux # correct to gnu/linux during the next big refactor
12374   need_lib_prefix=no
12375   need_version=no
12376   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12377   soname_spec='$libname$release$shared_ext$major'
12378   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12379   shlibpath_var=LD_LIBRARY_PATH
12380   shlibpath_overrides_runpath=no
12381
12382   # Some binutils ld are patched to set DT_RUNPATH
12383   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12384   $as_echo_n "(cached) " >&6
12385 else
12386   lt_cv_shlibpath_overrides_runpath=no
12387     save_LDFLAGS=$LDFLAGS
12388     save_libdir=$libdir
12389     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12390          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h.  */
12393
12394 int
12395 main ()
12396 {
12397
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 if ac_fn_c_try_link "$LINENO"; then :
12403   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12404   lt_cv_shlibpath_overrides_runpath=yes
12405 fi
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext \
12408     conftest$ac_exeext conftest.$ac_ext
12409     LDFLAGS=$save_LDFLAGS
12410     libdir=$save_libdir
12411
12412 fi
12413
12414   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12415
12416   # This implies no fast_install, which is unacceptable.
12417   # Some rework will be needed to allow for fast_install
12418   # before this can be enabled.
12419   hardcode_into_libs=yes
12420
12421   # Ideally, we could use ldconfig to report *all* directores which are
12422   # searched for libraries, however this is still not possible.  Aside from not
12423   # being certain /sbin/ldconfig is available, command
12424   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12425   # even though it is searched at run-time.  Try to do the best guess by
12426   # appending ld.so.conf contents (and includes) to the search path.
12427   if test -f /etc/ld.so.conf; then
12428     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' ' '`
12429     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12430   fi
12431
12432   # We used to test for /lib/ld.so.1 and disable shared libraries on
12433   # powerpc, because MkLinux only supported shared libraries with the
12434   # GNU dynamic linker.  Since this was broken with cross compilers,
12435   # most powerpc-linux boxes support dynamic linking these days and
12436   # people can always --disable-shared, the test was removed, and we
12437   # assume the GNU/Linux dynamic linker is in use.
12438   dynamic_linker='GNU/Linux ld.so'
12439   ;;
12440
12441 netbsdelf*-gnu)
12442   version_type=linux
12443   need_lib_prefix=no
12444   need_version=no
12445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12446   soname_spec='${libname}${release}${shared_ext}$major'
12447   shlibpath_var=LD_LIBRARY_PATH
12448   shlibpath_overrides_runpath=no
12449   hardcode_into_libs=yes
12450   dynamic_linker='NetBSD ld.elf_so'
12451   ;;
12452
12453 netbsd*)
12454   version_type=sunos
12455   need_lib_prefix=no
12456   need_version=no
12457   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12458     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12459     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12460     dynamic_linker='NetBSD (a.out) ld.so'
12461   else
12462     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12463     soname_spec='$libname$release$shared_ext$major'
12464     dynamic_linker='NetBSD ld.elf_so'
12465   fi
12466   shlibpath_var=LD_LIBRARY_PATH
12467   shlibpath_overrides_runpath=yes
12468   hardcode_into_libs=yes
12469   ;;
12470
12471 newsos6)
12472   version_type=linux # correct to gnu/linux during the next big refactor
12473   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12474   shlibpath_var=LD_LIBRARY_PATH
12475   shlibpath_overrides_runpath=yes
12476   ;;
12477
12478 *nto* | *qnx*)
12479   version_type=qnx
12480   need_lib_prefix=no
12481   need_version=no
12482   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483   soname_spec='$libname$release$shared_ext$major'
12484   shlibpath_var=LD_LIBRARY_PATH
12485   shlibpath_overrides_runpath=no
12486   hardcode_into_libs=yes
12487   dynamic_linker='ldqnx.so'
12488   ;;
12489
12490 openbsd* | bitrig*)
12491   version_type=sunos
12492   sys_lib_dlsearch_path_spec=/usr/lib
12493   need_lib_prefix=no
12494   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12495     need_version=no
12496   else
12497     need_version=yes
12498   fi
12499   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12500   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12501   shlibpath_var=LD_LIBRARY_PATH
12502   shlibpath_overrides_runpath=yes
12503   ;;
12504
12505 os2*)
12506   libname_spec='$name'
12507   version_type=windows
12508   shrext_cmds=.dll
12509   need_version=no
12510   need_lib_prefix=no
12511   # OS/2 can only load a DLL with a base name of 8 characters or less.
12512   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12513     v=$($ECHO $release$versuffix | tr -d .-);
12514     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12515     $ECHO $n$v`$shared_ext'
12516   library_names_spec='${libname}_dll.$libext'
12517   dynamic_linker='OS/2 ld.exe'
12518   shlibpath_var=BEGINLIBPATH
12519   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12520   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12521   postinstall_cmds='base_file=`basename \$file`~
12522     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12523     dldir=$destdir/`dirname \$dlpath`~
12524     test -d \$dldir || mkdir -p \$dldir~
12525     $install_prog $dir/$dlname \$dldir/$dlname~
12526     chmod a+x \$dldir/$dlname~
12527     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12528       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12529     fi'
12530   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12531     dlpath=$dir/\$dldll~
12532     $RM \$dlpath'
12533   ;;
12534
12535 osf3* | osf4* | osf5*)
12536   version_type=osf
12537   need_lib_prefix=no
12538   need_version=no
12539   soname_spec='$libname$release$shared_ext$major'
12540   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12541   shlibpath_var=LD_LIBRARY_PATH
12542   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12543   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12544   ;;
12545
12546 rdos*)
12547   dynamic_linker=no
12548   ;;
12549
12550 solaris*)
12551   version_type=linux # correct to gnu/linux during the next big refactor
12552   need_lib_prefix=no
12553   need_version=no
12554   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12555   soname_spec='$libname$release$shared_ext$major'
12556   shlibpath_var=LD_LIBRARY_PATH
12557   shlibpath_overrides_runpath=yes
12558   hardcode_into_libs=yes
12559   # ldd complains unless libraries are executable
12560   postinstall_cmds='chmod +x $lib'
12561   ;;
12562
12563 sunos4*)
12564   version_type=sunos
12565   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12566   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12567   shlibpath_var=LD_LIBRARY_PATH
12568   shlibpath_overrides_runpath=yes
12569   if test yes = "$with_gnu_ld"; then
12570     need_lib_prefix=no
12571   fi
12572   need_version=yes
12573   ;;
12574
12575 sysv4 | sysv4.3*)
12576   version_type=linux # correct to gnu/linux during the next big refactor
12577   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12578   soname_spec='$libname$release$shared_ext$major'
12579   shlibpath_var=LD_LIBRARY_PATH
12580   case $host_vendor in
12581     sni)
12582       shlibpath_overrides_runpath=no
12583       need_lib_prefix=no
12584       runpath_var=LD_RUN_PATH
12585       ;;
12586     siemens)
12587       need_lib_prefix=no
12588       ;;
12589     motorola)
12590       need_lib_prefix=no
12591       need_version=no
12592       shlibpath_overrides_runpath=no
12593       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12594       ;;
12595   esac
12596   ;;
12597
12598 sysv4*MP*)
12599   if test -d /usr/nec; then
12600     version_type=linux # correct to gnu/linux during the next big refactor
12601     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12602     soname_spec='$libname$shared_ext.$major'
12603     shlibpath_var=LD_LIBRARY_PATH
12604   fi
12605   ;;
12606
12607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12608   version_type=sco
12609   need_lib_prefix=no
12610   need_version=no
12611   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12612   soname_spec='$libname$release$shared_ext$major'
12613   shlibpath_var=LD_LIBRARY_PATH
12614   shlibpath_overrides_runpath=yes
12615   hardcode_into_libs=yes
12616   if test yes = "$with_gnu_ld"; then
12617     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12618   else
12619     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12620     case $host_os in
12621       sco3.2v5*)
12622         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12623         ;;
12624     esac
12625   fi
12626   sys_lib_dlsearch_path_spec='/usr/lib'
12627   ;;
12628
12629 tpf*)
12630   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12631   version_type=linux # correct to gnu/linux during the next big refactor
12632   need_lib_prefix=no
12633   need_version=no
12634   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12635   shlibpath_var=LD_LIBRARY_PATH
12636   shlibpath_overrides_runpath=no
12637   hardcode_into_libs=yes
12638   ;;
12639
12640 uts4*)
12641   version_type=linux # correct to gnu/linux during the next big refactor
12642   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12643   soname_spec='$libname$release$shared_ext$major'
12644   shlibpath_var=LD_LIBRARY_PATH
12645   ;;
12646
12647 *)
12648   dynamic_linker=no
12649   ;;
12650 esac
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12652 $as_echo "$dynamic_linker" >&6; }
12653 test no = "$dynamic_linker" && can_build_shared=no
12654
12655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12656 if test yes = "$GCC"; then
12657   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12658 fi
12659
12660 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12661   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12662 fi
12663
12664 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12665   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12666 fi
12667
12668 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12669 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12670
12671 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12672 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12673
12674 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12675 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12775 hardcode_action=
12776 if test -n "$hardcode_libdir_flag_spec" ||
12777    test -n "$runpath_var" ||
12778    test yes = "$hardcode_automatic"; then
12779
12780   # We can hardcode non-existent directories.
12781   if test no != "$hardcode_direct" &&
12782      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12783      # have to relink, otherwise we might link with an installed library
12784      # when we should be linking with a yet-to-be-installed one
12785      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12786      test no != "$hardcode_minus_L"; then
12787     # Linking always hardcodes the temporary library directory.
12788     hardcode_action=relink
12789   else
12790     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12791     hardcode_action=immediate
12792   fi
12793 else
12794   # We cannot hardcode anything, or else we can only hardcode existing
12795   # directories.
12796   hardcode_action=unsupported
12797 fi
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12799 $as_echo "$hardcode_action" >&6; }
12800
12801 if test relink = "$hardcode_action" ||
12802    test yes = "$inherit_rpath"; then
12803   # Fast installation is not supported
12804   enable_fast_install=no
12805 elif test yes = "$shlibpath_overrides_runpath" ||
12806      test no = "$enable_shared"; then
12807   # Fast installation is not necessary
12808   enable_fast_install=needless
12809 fi
12810
12811
12812
12813
12814
12815
12816   if test yes != "$enable_dlopen"; then
12817   enable_dlopen=unknown
12818   enable_dlopen_self=unknown
12819   enable_dlopen_self_static=unknown
12820 else
12821   lt_cv_dlopen=no
12822   lt_cv_dlopen_libs=
12823
12824   case $host_os in
12825   beos*)
12826     lt_cv_dlopen=load_add_on
12827     lt_cv_dlopen_libs=
12828     lt_cv_dlopen_self=yes
12829     ;;
12830
12831   mingw* | pw32* | cegcc*)
12832     lt_cv_dlopen=LoadLibrary
12833     lt_cv_dlopen_libs=
12834     ;;
12835
12836   cygwin*)
12837     lt_cv_dlopen=dlopen
12838     lt_cv_dlopen_libs=
12839     ;;
12840
12841   darwin*)
12842     # if libdl is installed we need to link against it
12843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12845 if ${ac_cv_lib_dl_dlopen+:} false; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-ldl  $LIBS"
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h.  */
12852
12853 /* Override any GCC internal prototype to avoid an error.
12854    Use char because int might match the return type of a GCC
12855    builtin and then its argument prototype would still apply.  */
12856 #ifdef __cplusplus
12857 extern "C"
12858 #endif
12859 char dlopen ();
12860 int
12861 main ()
12862 {
12863 return dlopen ();
12864   ;
12865   return 0;
12866 }
12867 _ACEOF
12868 if ac_fn_c_try_link "$LINENO"; then :
12869   ac_cv_lib_dl_dlopen=yes
12870 else
12871   ac_cv_lib_dl_dlopen=no
12872 fi
12873 rm -f core conftest.err conftest.$ac_objext \
12874     conftest$ac_exeext conftest.$ac_ext
12875 LIBS=$ac_check_lib_save_LIBS
12876 fi
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12879 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12880   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12881 else
12882
12883     lt_cv_dlopen=dyld
12884     lt_cv_dlopen_libs=
12885     lt_cv_dlopen_self=yes
12886
12887 fi
12888
12889     ;;
12890
12891   tpf*)
12892     # Don't try to run any link tests for TPF.  We know it's impossible
12893     # because TPF is a cross-compiler, and we know how we open DSOs.
12894     lt_cv_dlopen=dlopen
12895     lt_cv_dlopen_libs=
12896     lt_cv_dlopen_self=no
12897     ;;
12898
12899   *)
12900     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12901 if test "x$ac_cv_func_shl_load" = xyes; then :
12902   lt_cv_dlopen=shl_load
12903 else
12904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12905 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12906 if ${ac_cv_lib_dld_shl_load+:} false; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909   ac_check_lib_save_LIBS=$LIBS
12910 LIBS="-ldld  $LIBS"
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h.  */
12913
12914 /* Override any GCC internal prototype to avoid an error.
12915    Use char because int might match the return type of a GCC
12916    builtin and then its argument prototype would still apply.  */
12917 #ifdef __cplusplus
12918 extern "C"
12919 #endif
12920 char shl_load ();
12921 int
12922 main ()
12923 {
12924 return shl_load ();
12925   ;
12926   return 0;
12927 }
12928 _ACEOF
12929 if ac_fn_c_try_link "$LINENO"; then :
12930   ac_cv_lib_dld_shl_load=yes
12931 else
12932   ac_cv_lib_dld_shl_load=no
12933 fi
12934 rm -f core conftest.err conftest.$ac_objext \
12935     conftest$ac_exeext conftest.$ac_ext
12936 LIBS=$ac_check_lib_save_LIBS
12937 fi
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12939 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12940 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12941   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12942 else
12943   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12944 if test "x$ac_cv_func_dlopen" = xyes; then :
12945   lt_cv_dlopen=dlopen
12946 else
12947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12948 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12949 if ${ac_cv_lib_dl_dlopen+:} false; then :
12950   $as_echo_n "(cached) " >&6
12951 else
12952   ac_check_lib_save_LIBS=$LIBS
12953 LIBS="-ldl  $LIBS"
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h.  */
12956
12957 /* Override any GCC internal prototype to avoid an error.
12958    Use char because int might match the return type of a GCC
12959    builtin and then its argument prototype would still apply.  */
12960 #ifdef __cplusplus
12961 extern "C"
12962 #endif
12963 char dlopen ();
12964 int
12965 main ()
12966 {
12967 return dlopen ();
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 if ac_fn_c_try_link "$LINENO"; then :
12973   ac_cv_lib_dl_dlopen=yes
12974 else
12975   ac_cv_lib_dl_dlopen=no
12976 fi
12977 rm -f core conftest.err conftest.$ac_objext \
12978     conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12982 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12983 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12984   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12985 else
12986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12987 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12988 if ${ac_cv_lib_svld_dlopen+:} false; then :
12989   $as_echo_n "(cached) " >&6
12990 else
12991   ac_check_lib_save_LIBS=$LIBS
12992 LIBS="-lsvld  $LIBS"
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h.  */
12995
12996 /* Override any GCC internal prototype to avoid an error.
12997    Use char because int might match the return type of a GCC
12998    builtin and then its argument prototype would still apply.  */
12999 #ifdef __cplusplus
13000 extern "C"
13001 #endif
13002 char dlopen ();
13003 int
13004 main ()
13005 {
13006 return dlopen ();
13007   ;
13008   return 0;
13009 }
13010 _ACEOF
13011 if ac_fn_c_try_link "$LINENO"; then :
13012   ac_cv_lib_svld_dlopen=yes
13013 else
13014   ac_cv_lib_svld_dlopen=no
13015 fi
13016 rm -f core conftest.err conftest.$ac_objext \
13017     conftest$ac_exeext conftest.$ac_ext
13018 LIBS=$ac_check_lib_save_LIBS
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13021 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13022 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13023   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13024 else
13025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13026 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13027 if ${ac_cv_lib_dld_dld_link+:} false; then :
13028   $as_echo_n "(cached) " >&6
13029 else
13030   ac_check_lib_save_LIBS=$LIBS
13031 LIBS="-ldld  $LIBS"
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h.  */
13034
13035 /* Override any GCC internal prototype to avoid an error.
13036    Use char because int might match the return type of a GCC
13037    builtin and then its argument prototype would still apply.  */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char dld_link ();
13042 int
13043 main ()
13044 {
13045 return dld_link ();
13046   ;
13047   return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"; then :
13051   ac_cv_lib_dld_dld_link=yes
13052 else
13053   ac_cv_lib_dld_dld_link=no
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext \
13056     conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13060 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13061 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13062   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13063 fi
13064
13065
13066 fi
13067
13068
13069 fi
13070
13071
13072 fi
13073
13074
13075 fi
13076
13077
13078 fi
13079
13080     ;;
13081   esac
13082
13083   if test no = "$lt_cv_dlopen"; then
13084     enable_dlopen=no
13085   else
13086     enable_dlopen=yes
13087   fi
13088
13089   case $lt_cv_dlopen in
13090   dlopen)
13091     save_CPPFLAGS=$CPPFLAGS
13092     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13093
13094     save_LDFLAGS=$LDFLAGS
13095     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13096
13097     save_LIBS=$LIBS
13098     LIBS="$lt_cv_dlopen_libs $LIBS"
13099
13100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13101 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13102 if ${lt_cv_dlopen_self+:} false; then :
13103   $as_echo_n "(cached) " >&6
13104 else
13105           if test yes = "$cross_compiling"; then :
13106   lt_cv_dlopen_self=cross
13107 else
13108   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13109   lt_status=$lt_dlunknown
13110   cat > conftest.$ac_ext <<_LT_EOF
13111 #line $LINENO "configure"
13112 #include "confdefs.h"
13113
13114 #if HAVE_DLFCN_H
13115 #include <dlfcn.h>
13116 #endif
13117
13118 #include <stdio.h>
13119
13120 #ifdef RTLD_GLOBAL
13121 #  define LT_DLGLOBAL           RTLD_GLOBAL
13122 #else
13123 #  ifdef DL_GLOBAL
13124 #    define LT_DLGLOBAL         DL_GLOBAL
13125 #  else
13126 #    define LT_DLGLOBAL         0
13127 #  endif
13128 #endif
13129
13130 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13131    find out it does not work in some platform. */
13132 #ifndef LT_DLLAZY_OR_NOW
13133 #  ifdef RTLD_LAZY
13134 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13135 #  else
13136 #    ifdef DL_LAZY
13137 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13138 #    else
13139 #      ifdef RTLD_NOW
13140 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13141 #      else
13142 #        ifdef DL_NOW
13143 #          define LT_DLLAZY_OR_NOW      DL_NOW
13144 #        else
13145 #          define LT_DLLAZY_OR_NOW      0
13146 #        endif
13147 #      endif
13148 #    endif
13149 #  endif
13150 #endif
13151
13152 /* When -fvisibility=hidden is used, assume the code has been annotated
13153    correspondingly for the symbols needed.  */
13154 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13155 int fnord () __attribute__((visibility("default")));
13156 #endif
13157
13158 int fnord () { return 42; }
13159 int main ()
13160 {
13161   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13162   int status = $lt_dlunknown;
13163
13164   if (self)
13165     {
13166       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13167       else
13168         {
13169           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13170           else puts (dlerror ());
13171         }
13172       /* dlclose (self); */
13173     }
13174   else
13175     puts (dlerror ());
13176
13177   return status;
13178 }
13179 _LT_EOF
13180   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13181   (eval $ac_link) 2>&5
13182   ac_status=$?
13183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13185     (./conftest; exit; ) >&5 2>/dev/null
13186     lt_status=$?
13187     case x$lt_status in
13188       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13189       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13190       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13191     esac
13192   else :
13193     # compilation failed
13194     lt_cv_dlopen_self=no
13195   fi
13196 fi
13197 rm -fr conftest*
13198
13199
13200 fi
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13202 $as_echo "$lt_cv_dlopen_self" >&6; }
13203
13204     if test yes = "$lt_cv_dlopen_self"; then
13205       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13206       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13207 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13208 if ${lt_cv_dlopen_self_static+:} false; then :
13209   $as_echo_n "(cached) " >&6
13210 else
13211           if test yes = "$cross_compiling"; then :
13212   lt_cv_dlopen_self_static=cross
13213 else
13214   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13215   lt_status=$lt_dlunknown
13216   cat > conftest.$ac_ext <<_LT_EOF
13217 #line $LINENO "configure"
13218 #include "confdefs.h"
13219
13220 #if HAVE_DLFCN_H
13221 #include <dlfcn.h>
13222 #endif
13223
13224 #include <stdio.h>
13225
13226 #ifdef RTLD_GLOBAL
13227 #  define LT_DLGLOBAL           RTLD_GLOBAL
13228 #else
13229 #  ifdef DL_GLOBAL
13230 #    define LT_DLGLOBAL         DL_GLOBAL
13231 #  else
13232 #    define LT_DLGLOBAL         0
13233 #  endif
13234 #endif
13235
13236 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13237    find out it does not work in some platform. */
13238 #ifndef LT_DLLAZY_OR_NOW
13239 #  ifdef RTLD_LAZY
13240 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13241 #  else
13242 #    ifdef DL_LAZY
13243 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13244 #    else
13245 #      ifdef RTLD_NOW
13246 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13247 #      else
13248 #        ifdef DL_NOW
13249 #          define LT_DLLAZY_OR_NOW      DL_NOW
13250 #        else
13251 #          define LT_DLLAZY_OR_NOW      0
13252 #        endif
13253 #      endif
13254 #    endif
13255 #  endif
13256 #endif
13257
13258 /* When -fvisibility=hidden is used, assume the code has been annotated
13259    correspondingly for the symbols needed.  */
13260 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13261 int fnord () __attribute__((visibility("default")));
13262 #endif
13263
13264 int fnord () { return 42; }
13265 int main ()
13266 {
13267   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13268   int status = $lt_dlunknown;
13269
13270   if (self)
13271     {
13272       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13273       else
13274         {
13275           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13276           else puts (dlerror ());
13277         }
13278       /* dlclose (self); */
13279     }
13280   else
13281     puts (dlerror ());
13282
13283   return status;
13284 }
13285 _LT_EOF
13286   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13287   (eval $ac_link) 2>&5
13288   ac_status=$?
13289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13290   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13291     (./conftest; exit; ) >&5 2>/dev/null
13292     lt_status=$?
13293     case x$lt_status in
13294       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13295       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13296       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13297     esac
13298   else :
13299     # compilation failed
13300     lt_cv_dlopen_self_static=no
13301   fi
13302 fi
13303 rm -fr conftest*
13304
13305
13306 fi
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13308 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13309     fi
13310
13311     CPPFLAGS=$save_CPPFLAGS
13312     LDFLAGS=$save_LDFLAGS
13313     LIBS=$save_LIBS
13314     ;;
13315   esac
13316
13317   case $lt_cv_dlopen_self in
13318   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13319   *) enable_dlopen_self=unknown ;;
13320   esac
13321
13322   case $lt_cv_dlopen_self_static in
13323   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13324   *) enable_dlopen_self_static=unknown ;;
13325   esac
13326 fi
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344 striplib=
13345 old_striplib=
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13347 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13348 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13349   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13350   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13352 $as_echo "yes" >&6; }
13353 else
13354 # FIXME - insert some real tests, host_os isn't really good enough
13355   case $host_os in
13356   darwin*)
13357     if test -n "$STRIP"; then
13358       striplib="$STRIP -x"
13359       old_striplib="$STRIP -S"
13360       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361 $as_echo "yes" >&6; }
13362     else
13363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13365     fi
13366     ;;
13367   *)
13368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13370     ;;
13371   esac
13372 fi
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385   # Report what library types will actually be built
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13387 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13389 $as_echo "$can_build_shared" >&6; }
13390
13391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13392 $as_echo_n "checking whether to build shared libraries... " >&6; }
13393   test no = "$can_build_shared" && enable_shared=no
13394
13395   # On AIX, shared libraries and static libraries use the same namespace, and
13396   # are all built from PIC.
13397   case $host_os in
13398   aix3*)
13399     test yes = "$enable_shared" && enable_static=no
13400     if test -n "$RANLIB"; then
13401       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13402       postinstall_cmds='$RANLIB $lib'
13403     fi
13404     ;;
13405
13406   aix[4-9]*)
13407     if test ia64 != "$host_cpu"; then
13408       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13409       yes,aix,yes) ;;                   # shared object as lib.so file only
13410       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13411       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13412       esac
13413     fi
13414     ;;
13415   esac
13416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13417 $as_echo "$enable_shared" >&6; }
13418
13419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13420 $as_echo_n "checking whether to build static libraries... " >&6; }
13421   # Make sure either enable_shared or enable_static is yes.
13422   test yes = "$enable_shared" || enable_static=yes
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13424 $as_echo "$enable_static" >&6; }
13425
13426
13427
13428
13429 fi
13430 ac_ext=c
13431 ac_cpp='$CPP $CPPFLAGS'
13432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13435
13436 CC=$lt_save_CC
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452         ac_config_commands="$ac_config_commands libtool"
13453
13454
13455
13456
13457 # Only expand once:
13458
13459
13460
13461 # Check for programs
13462 ac_ext=c
13463 ac_cpp='$CPP $CPPFLAGS'
13464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13467 if test -n "$ac_tool_prefix"; then
13468   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471 $as_echo_n "checking for $ac_word... " >&6; }
13472 if ${ac_cv_prog_CC+:} false; then :
13473   $as_echo_n "(cached) " >&6
13474 else
13475   if test -n "$CC"; then
13476   ac_cv_prog_CC="$CC" # Let the user override the test.
13477 else
13478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13479 for as_dir in $PATH
13480 do
13481   IFS=$as_save_IFS
13482   test -z "$as_dir" && as_dir=.
13483     for ac_exec_ext in '' $ac_executable_extensions; do
13484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13485     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13487     break 2
13488   fi
13489 done
13490   done
13491 IFS=$as_save_IFS
13492
13493 fi
13494 fi
13495 CC=$ac_cv_prog_CC
13496 if test -n "$CC"; then
13497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13498 $as_echo "$CC" >&6; }
13499 else
13500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13502 fi
13503
13504
13505 fi
13506 if test -z "$ac_cv_prog_CC"; then
13507   ac_ct_CC=$CC
13508   # Extract the first word of "gcc", so it can be a program name with args.
13509 set dummy gcc; ac_word=$2
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13511 $as_echo_n "checking for $ac_word... " >&6; }
13512 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13513   $as_echo_n "(cached) " >&6
13514 else
13515   if test -n "$ac_ct_CC"; then
13516   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13517 else
13518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13519 for as_dir in $PATH
13520 do
13521   IFS=$as_save_IFS
13522   test -z "$as_dir" && as_dir=.
13523     for ac_exec_ext in '' $ac_executable_extensions; do
13524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13525     ac_cv_prog_ac_ct_CC="gcc"
13526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13527     break 2
13528   fi
13529 done
13530   done
13531 IFS=$as_save_IFS
13532
13533 fi
13534 fi
13535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13536 if test -n "$ac_ct_CC"; then
13537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13538 $as_echo "$ac_ct_CC" >&6; }
13539 else
13540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 $as_echo "no" >&6; }
13542 fi
13543
13544   if test "x$ac_ct_CC" = x; then
13545     CC=""
13546   else
13547     case $cross_compiling:$ac_tool_warned in
13548 yes:)
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13551 ac_tool_warned=yes ;;
13552 esac
13553     CC=$ac_ct_CC
13554   fi
13555 else
13556   CC="$ac_cv_prog_CC"
13557 fi
13558
13559 if test -z "$CC"; then
13560           if test -n "$ac_tool_prefix"; then
13561     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13562 set dummy ${ac_tool_prefix}cc; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if ${ac_cv_prog_CC+:} false; then :
13566   $as_echo_n "(cached) " >&6
13567 else
13568   if test -n "$CC"; then
13569   ac_cv_prog_CC="$CC" # Let the user override the test.
13570 else
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576     for ac_exec_ext in '' $ac_executable_extensions; do
13577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578     ac_cv_prog_CC="${ac_tool_prefix}cc"
13579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13580     break 2
13581   fi
13582 done
13583   done
13584 IFS=$as_save_IFS
13585
13586 fi
13587 fi
13588 CC=$ac_cv_prog_CC
13589 if test -n "$CC"; then
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13591 $as_echo "$CC" >&6; }
13592 else
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13595 fi
13596
13597
13598   fi
13599 fi
13600 if test -z "$CC"; then
13601   # Extract the first word of "cc", so it can be a program name with args.
13602 set dummy cc; ac_word=$2
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604 $as_echo_n "checking for $ac_word... " >&6; }
13605 if ${ac_cv_prog_CC+:} false; then :
13606   $as_echo_n "(cached) " >&6
13607 else
13608   if test -n "$CC"; then
13609   ac_cv_prog_CC="$CC" # Let the user override the test.
13610 else
13611   ac_prog_rejected=no
13612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13614 do
13615   IFS=$as_save_IFS
13616   test -z "$as_dir" && as_dir=.
13617     for ac_exec_ext in '' $ac_executable_extensions; do
13618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13619     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13620        ac_prog_rejected=yes
13621        continue
13622      fi
13623     ac_cv_prog_CC="cc"
13624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13625     break 2
13626   fi
13627 done
13628   done
13629 IFS=$as_save_IFS
13630
13631 if test $ac_prog_rejected = yes; then
13632   # We found a bogon in the path, so make sure we never use it.
13633   set dummy $ac_cv_prog_CC
13634   shift
13635   if test $# != 0; then
13636     # We chose a different compiler from the bogus one.
13637     # However, it has the same basename, so the bogon will be chosen
13638     # first if we set CC to just the basename; use the full file name.
13639     shift
13640     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13641   fi
13642 fi
13643 fi
13644 fi
13645 CC=$ac_cv_prog_CC
13646 if test -n "$CC"; then
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13648 $as_echo "$CC" >&6; }
13649 else
13650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 $as_echo "no" >&6; }
13652 fi
13653
13654
13655 fi
13656 if test -z "$CC"; then
13657   if test -n "$ac_tool_prefix"; then
13658   for ac_prog in cl.exe
13659   do
13660     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13663 $as_echo_n "checking for $ac_word... " >&6; }
13664 if ${ac_cv_prog_CC+:} false; then :
13665   $as_echo_n "(cached) " >&6
13666 else
13667   if test -n "$CC"; then
13668   ac_cv_prog_CC="$CC" # Let the user override the test.
13669 else
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $PATH
13672 do
13673   IFS=$as_save_IFS
13674   test -z "$as_dir" && as_dir=.
13675     for ac_exec_ext in '' $ac_executable_extensions; do
13676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13677     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13679     break 2
13680   fi
13681 done
13682   done
13683 IFS=$as_save_IFS
13684
13685 fi
13686 fi
13687 CC=$ac_cv_prog_CC
13688 if test -n "$CC"; then
13689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13690 $as_echo "$CC" >&6; }
13691 else
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13694 fi
13695
13696
13697     test -n "$CC" && break
13698   done
13699 fi
13700 if test -z "$CC"; then
13701   ac_ct_CC=$CC
13702   for ac_prog in cl.exe
13703 do
13704   # Extract the first word of "$ac_prog", so it can be a program name with args.
13705 set dummy $ac_prog; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13709   $as_echo_n "(cached) " >&6
13710 else
13711   if test -n "$ac_ct_CC"; then
13712   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13713 else
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13716 do
13717   IFS=$as_save_IFS
13718   test -z "$as_dir" && as_dir=.
13719     for ac_exec_ext in '' $ac_executable_extensions; do
13720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13721     ac_cv_prog_ac_ct_CC="$ac_prog"
13722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13723     break 2
13724   fi
13725 done
13726   done
13727 IFS=$as_save_IFS
13728
13729 fi
13730 fi
13731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13732 if test -n "$ac_ct_CC"; then
13733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13734 $as_echo "$ac_ct_CC" >&6; }
13735 else
13736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13738 fi
13739
13740
13741   test -n "$ac_ct_CC" && break
13742 done
13743
13744   if test "x$ac_ct_CC" = x; then
13745     CC=""
13746   else
13747     case $cross_compiling:$ac_tool_warned in
13748 yes:)
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13751 ac_tool_warned=yes ;;
13752 esac
13753     CC=$ac_ct_CC
13754   fi
13755 fi
13756
13757 fi
13758
13759
13760 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13762 as_fn_error $? "no acceptable C compiler found in \$PATH
13763 See \`config.log' for more details" "$LINENO" 5; }
13764
13765 # Provide some information about the compiler.
13766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13767 set X $ac_compile
13768 ac_compiler=$2
13769 for ac_option in --version -v -V -qversion; do
13770   { { ac_try="$ac_compiler $ac_option >&5"
13771 case "(($ac_try" in
13772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773   *) ac_try_echo=$ac_try;;
13774 esac
13775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13776 $as_echo "$ac_try_echo"; } >&5
13777   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13778   ac_status=$?
13779   if test -s conftest.err; then
13780     sed '10a\
13781 ... rest of stderr output deleted ...
13782          10q' conftest.err >conftest.er1
13783     cat conftest.er1 >&5
13784   fi
13785   rm -f conftest.er1 conftest.err
13786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13787   test $ac_status = 0; }
13788 done
13789
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13791 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13792 if ${ac_cv_c_compiler_gnu+:} false; then :
13793   $as_echo_n "(cached) " >&6
13794 else
13795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h.  */
13797
13798 int
13799 main ()
13800 {
13801 #ifndef __GNUC__
13802        choke me
13803 #endif
13804
13805   ;
13806   return 0;
13807 }
13808 _ACEOF
13809 if ac_fn_c_try_compile "$LINENO"; then :
13810   ac_compiler_gnu=yes
13811 else
13812   ac_compiler_gnu=no
13813 fi
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13816
13817 fi
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13819 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13820 if test $ac_compiler_gnu = yes; then
13821   GCC=yes
13822 else
13823   GCC=
13824 fi
13825 ac_test_CFLAGS=${CFLAGS+set}
13826 ac_save_CFLAGS=$CFLAGS
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13828 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13829 if ${ac_cv_prog_cc_g+:} false; then :
13830   $as_echo_n "(cached) " >&6
13831 else
13832   ac_save_c_werror_flag=$ac_c_werror_flag
13833    ac_c_werror_flag=yes
13834    ac_cv_prog_cc_g=no
13835    CFLAGS="-g"
13836    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h.  */
13838
13839 int
13840 main ()
13841 {
13842
13843   ;
13844   return 0;
13845 }
13846 _ACEOF
13847 if ac_fn_c_try_compile "$LINENO"; then :
13848   ac_cv_prog_cc_g=yes
13849 else
13850   CFLAGS=""
13851       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h.  */
13853
13854 int
13855 main ()
13856 {
13857
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 if ac_fn_c_try_compile "$LINENO"; then :
13863
13864 else
13865   ac_c_werror_flag=$ac_save_c_werror_flag
13866          CFLAGS="-g"
13867          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h.  */
13869
13870 int
13871 main ()
13872 {
13873
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 if ac_fn_c_try_compile "$LINENO"; then :
13879   ac_cv_prog_cc_g=yes
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 fi
13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886    ac_c_werror_flag=$ac_save_c_werror_flag
13887 fi
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13889 $as_echo "$ac_cv_prog_cc_g" >&6; }
13890 if test "$ac_test_CFLAGS" = set; then
13891   CFLAGS=$ac_save_CFLAGS
13892 elif test $ac_cv_prog_cc_g = yes; then
13893   if test "$GCC" = yes; then
13894     CFLAGS="-g -O2"
13895   else
13896     CFLAGS="-g"
13897   fi
13898 else
13899   if test "$GCC" = yes; then
13900     CFLAGS="-O2"
13901   else
13902     CFLAGS=
13903   fi
13904 fi
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13906 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13907 if ${ac_cv_prog_cc_c89+:} false; then :
13908   $as_echo_n "(cached) " >&6
13909 else
13910   ac_cv_prog_cc_c89=no
13911 ac_save_CC=$CC
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h.  */
13914 #include <stdarg.h>
13915 #include <stdio.h>
13916 struct stat;
13917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13918 struct buf { int x; };
13919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13920 static char *e (p, i)
13921      char **p;
13922      int i;
13923 {
13924   return p[i];
13925 }
13926 static char *f (char * (*g) (char **, int), char **p, ...)
13927 {
13928   char *s;
13929   va_list v;
13930   va_start (v,p);
13931   s = g (p, va_arg (v,int));
13932   va_end (v);
13933   return s;
13934 }
13935
13936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13937    function prototypes and stuff, but not '\xHH' hex character constants.
13938    These don't provoke an error unfortunately, instead are silently treated
13939    as 'x'.  The following induces an error, until -std is added to get
13940    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13941    array size at least.  It's necessary to write '\x00'==0 to get something
13942    that's true only with -std.  */
13943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13944
13945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13946    inside strings and character constants.  */
13947 #define FOO(x) 'x'
13948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13949
13950 int test (int i, double x);
13951 struct s1 {int (*f) (int a);};
13952 struct s2 {int (*f) (double a);};
13953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13954 int argc;
13955 char **argv;
13956 int
13957 main ()
13958 {
13959 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13960   ;
13961   return 0;
13962 }
13963 _ACEOF
13964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13965         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13966 do
13967   CC="$ac_save_CC $ac_arg"
13968   if ac_fn_c_try_compile "$LINENO"; then :
13969   ac_cv_prog_cc_c89=$ac_arg
13970 fi
13971 rm -f core conftest.err conftest.$ac_objext
13972   test "x$ac_cv_prog_cc_c89" != "xno" && break
13973 done
13974 rm -f conftest.$ac_ext
13975 CC=$ac_save_CC
13976
13977 fi
13978 # AC_CACHE_VAL
13979 case "x$ac_cv_prog_cc_c89" in
13980   x)
13981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13982 $as_echo "none needed" >&6; } ;;
13983   xno)
13984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13985 $as_echo "unsupported" >&6; } ;;
13986   *)
13987     CC="$CC $ac_cv_prog_cc_c89"
13988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13989 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13990 esac
13991 if test "x$ac_cv_prog_cc_c89" != xno; then :
13992
13993 fi
13994
13995 ac_ext=c
13996 ac_cpp='$CPP $CPPFLAGS'
13997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14000
14001 ac_ext=c
14002 ac_cpp='$CPP $CPPFLAGS'
14003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14007 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14008 if ${am_cv_prog_cc_c_o+:} false; then :
14009   $as_echo_n "(cached) " >&6
14010 else
14011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h.  */
14013
14014 int
14015 main ()
14016 {
14017
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022   # Make sure it works both with $CC and with simple cc.
14023   # Following AC_PROG_CC_C_O, we do the test twice because some
14024   # compilers refuse to overwrite an existing .o file with -o,
14025   # though they will create one.
14026   am_cv_prog_cc_c_o=yes
14027   for am_i in 1 2; do
14028     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14029    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14030    ac_status=$?
14031    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032    (exit $ac_status); } \
14033          && test -f conftest2.$ac_objext; then
14034       : OK
14035     else
14036       am_cv_prog_cc_c_o=no
14037       break
14038     fi
14039   done
14040   rm -f core conftest*
14041   unset am_i
14042 fi
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14044 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14045 if test "$am_cv_prog_cc_c_o" != yes; then
14046    # Losing compiler, so override with the script.
14047    # FIXME: It is wrong to rewrite CC.
14048    # But if we don't then we get into trouble of one sort or another.
14049    # A longer-term fix would be to have automake use am__CC in this case,
14050    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14051    CC="$am_aux_dir/compile $CC"
14052 fi
14053 ac_ext=c
14054 ac_cpp='$CPP $CPPFLAGS'
14055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14058
14059
14060 depcc="$CC"   am_compiler_list=
14061
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14063 $as_echo_n "checking dependency style of $depcc... " >&6; }
14064 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14065   $as_echo_n "(cached) " >&6
14066 else
14067   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14068   # We make a subdir and do the tests there.  Otherwise we can end up
14069   # making bogus files that we don't know about and never remove.  For
14070   # instance it was reported that on HP-UX the gcc test will end up
14071   # making a dummy file named 'D' -- because '-MD' means "put the output
14072   # in D".
14073   rm -rf conftest.dir
14074   mkdir conftest.dir
14075   # Copy depcomp to subdir because otherwise we won't find it if we're
14076   # using a relative directory.
14077   cp "$am_depcomp" conftest.dir
14078   cd conftest.dir
14079   # We will build objects and dependencies in a subdirectory because
14080   # it helps to detect inapplicable dependency modes.  For instance
14081   # both Tru64's cc and ICC support -MD to output dependencies as a
14082   # side effect of compilation, but ICC will put the dependencies in
14083   # the current directory while Tru64 will put them in the object
14084   # directory.
14085   mkdir sub
14086
14087   am_cv_CC_dependencies_compiler_type=none
14088   if test "$am_compiler_list" = ""; then
14089      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14090   fi
14091   am__universal=false
14092   case " $depcc " in #(
14093      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14094      esac
14095
14096   for depmode in $am_compiler_list; do
14097     # Setup a source with many dependencies, because some compilers
14098     # like to wrap large dependency lists on column 80 (with \), and
14099     # we should not choose a depcomp mode which is confused by this.
14100     #
14101     # We need to recreate these files for each test, as the compiler may
14102     # overwrite some of them when testing with obscure command lines.
14103     # This happens at least with the AIX C compiler.
14104     : > sub/conftest.c
14105     for i in 1 2 3 4 5 6; do
14106       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14107       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14108       # Solaris 10 /bin/sh.
14109       echo '/* dummy */' > sub/conftst$i.h
14110     done
14111     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14112
14113     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14114     # mode.  It turns out that the SunPro C++ compiler does not properly
14115     # handle '-M -o', and we need to detect this.  Also, some Intel
14116     # versions had trouble with output in subdirs.
14117     am__obj=sub/conftest.${OBJEXT-o}
14118     am__minus_obj="-o $am__obj"
14119     case $depmode in
14120     gcc)
14121       # This depmode causes a compiler race in universal mode.
14122       test "$am__universal" = false || continue
14123       ;;
14124     nosideeffect)
14125       # After this tag, mechanisms are not by side-effect, so they'll
14126       # only be used when explicitly requested.
14127       if test "x$enable_dependency_tracking" = xyes; then
14128         continue
14129       else
14130         break
14131       fi
14132       ;;
14133     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14134       # This compiler won't grok '-c -o', but also, the minuso test has
14135       # not run yet.  These depmodes are late enough in the game, and
14136       # so weak that their functioning should not be impacted.
14137       am__obj=conftest.${OBJEXT-o}
14138       am__minus_obj=
14139       ;;
14140     none) break ;;
14141     esac
14142     if depmode=$depmode \
14143        source=sub/conftest.c object=$am__obj \
14144        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14145        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14146          >/dev/null 2>conftest.err &&
14147        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14148        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14149        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14150        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14151       # icc doesn't choke on unknown options, it will just issue warnings
14152       # or remarks (even with -Werror).  So we grep stderr for any message
14153       # that says an option was ignored or not supported.
14154       # When given -MP, icc 7.0 and 7.1 complain thusly:
14155       #   icc: Command line warning: ignoring option '-M'; no argument required
14156       # The diagnosis changed in icc 8.0:
14157       #   icc: Command line remark: option '-MP' not supported
14158       if (grep 'ignoring option' conftest.err ||
14159           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14160         am_cv_CC_dependencies_compiler_type=$depmode
14161         break
14162       fi
14163     fi
14164   done
14165
14166   cd ..
14167   rm -rf conftest.dir
14168 else
14169   am_cv_CC_dependencies_compiler_type=none
14170 fi
14171
14172 fi
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14174 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14175 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14176
14177  if
14178   test "x$enable_dependency_tracking" != xno \
14179   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14180   am__fastdepCC_TRUE=
14181   am__fastdepCC_FALSE='#'
14182 else
14183   am__fastdepCC_TRUE='#'
14184   am__fastdepCC_FALSE=
14185 fi
14186
14187
14188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14189 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14190 if ${ac_cv_prog_cc_c99+:} false; then :
14191   $as_echo_n "(cached) " >&6
14192 else
14193   ac_cv_prog_cc_c99=no
14194 ac_save_CC=$CC
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h.  */
14197 #include <stdarg.h>
14198 #include <stdbool.h>
14199 #include <stdlib.h>
14200 #include <wchar.h>
14201 #include <stdio.h>
14202
14203 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14204 #define debug(...) fprintf (stderr, __VA_ARGS__)
14205 #define showlist(...) puts (#__VA_ARGS__)
14206 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14207 static void
14208 test_varargs_macros (void)
14209 {
14210   int x = 1234;
14211   int y = 5678;
14212   debug ("Flag");
14213   debug ("X = %d\n", x);
14214   showlist (The first, second, and third items.);
14215   report (x>y, "x is %d but y is %d", x, y);
14216 }
14217
14218 // Check long long types.
14219 #define BIG64 18446744073709551615ull
14220 #define BIG32 4294967295ul
14221 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14222 #if !BIG_OK
14223   your preprocessor is broken;
14224 #endif
14225 #if BIG_OK
14226 #else
14227   your preprocessor is broken;
14228 #endif
14229 static long long int bignum = -9223372036854775807LL;
14230 static unsigned long long int ubignum = BIG64;
14231
14232 struct incomplete_array
14233 {
14234   int datasize;
14235   double data[];
14236 };
14237
14238 struct named_init {
14239   int number;
14240   const wchar_t *name;
14241   double average;
14242 };
14243
14244 typedef const char *ccp;
14245
14246 static inline int
14247 test_restrict (ccp restrict text)
14248 {
14249   // See if C++-style comments work.
14250   // Iterate through items via the restricted pointer.
14251   // Also check for declarations in for loops.
14252   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14253     continue;
14254   return 0;
14255 }
14256
14257 // Check varargs and va_copy.
14258 static void
14259 test_varargs (const char *format, ...)
14260 {
14261   va_list args;
14262   va_start (args, format);
14263   va_list args_copy;
14264   va_copy (args_copy, args);
14265
14266   const char *str;
14267   int number;
14268   float fnumber;
14269
14270   while (*format)
14271     {
14272       switch (*format++)
14273         {
14274         case 's': // string
14275           str = va_arg (args_copy, const char *);
14276           break;
14277         case 'd': // int
14278           number = va_arg (args_copy, int);
14279           break;
14280         case 'f': // float
14281           fnumber = va_arg (args_copy, double);
14282           break;
14283         default:
14284           break;
14285         }
14286     }
14287   va_end (args_copy);
14288   va_end (args);
14289 }
14290
14291 int
14292 main ()
14293 {
14294
14295   // Check bool.
14296   _Bool success = false;
14297
14298   // Check restrict.
14299   if (test_restrict ("String literal") == 0)
14300     success = true;
14301   char *restrict newvar = "Another string";
14302
14303   // Check varargs.
14304   test_varargs ("s, d' f .", "string", 65, 34.234);
14305   test_varargs_macros ();
14306
14307   // Check flexible array members.
14308   struct incomplete_array *ia =
14309     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14310   ia->datasize = 10;
14311   for (int i = 0; i < ia->datasize; ++i)
14312     ia->data[i] = i * 1.234;
14313
14314   // Check named initializers.
14315   struct named_init ni = {
14316     .number = 34,
14317     .name = L"Test wide string",
14318     .average = 543.34343,
14319   };
14320
14321   ni.number = 58;
14322
14323   int dynamic_array[ni.number];
14324   dynamic_array[ni.number - 1] = 543;
14325
14326   // work around unused variable warnings
14327   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14328           || dynamic_array[ni.number - 1] != 543);
14329
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14335 do
14336   CC="$ac_save_CC $ac_arg"
14337   if ac_fn_c_try_compile "$LINENO"; then :
14338   ac_cv_prog_cc_c99=$ac_arg
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext
14341   test "x$ac_cv_prog_cc_c99" != "xno" && break
14342 done
14343 rm -f conftest.$ac_ext
14344 CC=$ac_save_CC
14345
14346 fi
14347 # AC_CACHE_VAL
14348 case "x$ac_cv_prog_cc_c99" in
14349   x)
14350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14351 $as_echo "none needed" >&6; } ;;
14352   xno)
14353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14354 $as_echo "unsupported" >&6; } ;;
14355   *)
14356     CC="$CC $ac_cv_prog_cc_c99"
14357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14358 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14359 esac
14360 if test "x$ac_cv_prog_cc_c99" != xno; then :
14361
14362 fi
14363
14364
14365
14366 ac_ext=cpp
14367 ac_cpp='$CXXCPP $CPPFLAGS'
14368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14371 if test -z "$CXX"; then
14372   if test -n "$CCC"; then
14373     CXX=$CCC
14374   else
14375     if test -n "$ac_tool_prefix"; then
14376   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14377   do
14378     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 $as_echo_n "checking for $ac_word... " >&6; }
14382 if ${ac_cv_prog_CXX+:} false; then :
14383   $as_echo_n "(cached) " >&6
14384 else
14385   if test -n "$CXX"; then
14386   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14387 else
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14390 do
14391   IFS=$as_save_IFS
14392   test -z "$as_dir" && as_dir=.
14393     for ac_exec_ext in '' $ac_executable_extensions; do
14394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14395     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397     break 2
14398   fi
14399 done
14400   done
14401 IFS=$as_save_IFS
14402
14403 fi
14404 fi
14405 CXX=$ac_cv_prog_CXX
14406 if test -n "$CXX"; then
14407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14408 $as_echo "$CXX" >&6; }
14409 else
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14412 fi
14413
14414
14415     test -n "$CXX" && break
14416   done
14417 fi
14418 if test -z "$CXX"; then
14419   ac_ct_CXX=$CXX
14420   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14421 do
14422   # Extract the first word of "$ac_prog", so it can be a program name with args.
14423 set dummy $ac_prog; ac_word=$2
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14425 $as_echo_n "checking for $ac_word... " >&6; }
14426 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14427   $as_echo_n "(cached) " >&6
14428 else
14429   if test -n "$ac_ct_CXX"; then
14430   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14431 else
14432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14433 for as_dir in $PATH
14434 do
14435   IFS=$as_save_IFS
14436   test -z "$as_dir" && as_dir=.
14437     for ac_exec_ext in '' $ac_executable_extensions; do
14438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14439     ac_cv_prog_ac_ct_CXX="$ac_prog"
14440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14441     break 2
14442   fi
14443 done
14444   done
14445 IFS=$as_save_IFS
14446
14447 fi
14448 fi
14449 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14450 if test -n "$ac_ct_CXX"; then
14451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14452 $as_echo "$ac_ct_CXX" >&6; }
14453 else
14454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455 $as_echo "no" >&6; }
14456 fi
14457
14458
14459   test -n "$ac_ct_CXX" && break
14460 done
14461
14462   if test "x$ac_ct_CXX" = x; then
14463     CXX="g++"
14464   else
14465     case $cross_compiling:$ac_tool_warned in
14466 yes:)
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14469 ac_tool_warned=yes ;;
14470 esac
14471     CXX=$ac_ct_CXX
14472   fi
14473 fi
14474
14475   fi
14476 fi
14477 # Provide some information about the compiler.
14478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14479 set X $ac_compile
14480 ac_compiler=$2
14481 for ac_option in --version -v -V -qversion; do
14482   { { ac_try="$ac_compiler $ac_option >&5"
14483 case "(($ac_try" in
14484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485   *) ac_try_echo=$ac_try;;
14486 esac
14487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14488 $as_echo "$ac_try_echo"; } >&5
14489   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14490   ac_status=$?
14491   if test -s conftest.err; then
14492     sed '10a\
14493 ... rest of stderr output deleted ...
14494          10q' conftest.err >conftest.er1
14495     cat conftest.er1 >&5
14496   fi
14497   rm -f conftest.er1 conftest.err
14498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14499   test $ac_status = 0; }
14500 done
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14503 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14504 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14505   $as_echo_n "(cached) " >&6
14506 else
14507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h.  */
14509
14510 int
14511 main ()
14512 {
14513 #ifndef __GNUC__
14514        choke me
14515 #endif
14516
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 if ac_fn_cxx_try_compile "$LINENO"; then :
14522   ac_compiler_gnu=yes
14523 else
14524   ac_compiler_gnu=no
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14528
14529 fi
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14531 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14532 if test $ac_compiler_gnu = yes; then
14533   GXX=yes
14534 else
14535   GXX=
14536 fi
14537 ac_test_CXXFLAGS=${CXXFLAGS+set}
14538 ac_save_CXXFLAGS=$CXXFLAGS
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14540 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14541 if ${ac_cv_prog_cxx_g+:} false; then :
14542   $as_echo_n "(cached) " >&6
14543 else
14544   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14545    ac_cxx_werror_flag=yes
14546    ac_cv_prog_cxx_g=no
14547    CXXFLAGS="-g"
14548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h.  */
14550
14551 int
14552 main ()
14553 {
14554
14555   ;
14556   return 0;
14557 }
14558 _ACEOF
14559 if ac_fn_cxx_try_compile "$LINENO"; then :
14560   ac_cv_prog_cxx_g=yes
14561 else
14562   CXXFLAGS=""
14563       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h.  */
14565
14566 int
14567 main ()
14568 {
14569
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 if ac_fn_cxx_try_compile "$LINENO"; then :
14575
14576 else
14577   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14578          CXXFLAGS="-g"
14579          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h.  */
14581
14582 int
14583 main ()
14584 {
14585
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 if ac_fn_cxx_try_compile "$LINENO"; then :
14591   ac_cv_prog_cxx_g=yes
14592 fi
14593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14594 fi
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596 fi
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14601 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14602 if test "$ac_test_CXXFLAGS" = set; then
14603   CXXFLAGS=$ac_save_CXXFLAGS
14604 elif test $ac_cv_prog_cxx_g = yes; then
14605   if test "$GXX" = yes; then
14606     CXXFLAGS="-g -O2"
14607   else
14608     CXXFLAGS="-g"
14609   fi
14610 else
14611   if test "$GXX" = yes; then
14612     CXXFLAGS="-O2"
14613   else
14614     CXXFLAGS=
14615   fi
14616 fi
14617 ac_ext=c
14618 ac_cpp='$CPP $CPPFLAGS'
14619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14622
14623 depcc="$CXX"  am_compiler_list=
14624
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14626 $as_echo_n "checking dependency style of $depcc... " >&6; }
14627 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14628   $as_echo_n "(cached) " >&6
14629 else
14630   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14631   # We make a subdir and do the tests there.  Otherwise we can end up
14632   # making bogus files that we don't know about and never remove.  For
14633   # instance it was reported that on HP-UX the gcc test will end up
14634   # making a dummy file named 'D' -- because '-MD' means "put the output
14635   # in D".
14636   rm -rf conftest.dir
14637   mkdir conftest.dir
14638   # Copy depcomp to subdir because otherwise we won't find it if we're
14639   # using a relative directory.
14640   cp "$am_depcomp" conftest.dir
14641   cd conftest.dir
14642   # We will build objects and dependencies in a subdirectory because
14643   # it helps to detect inapplicable dependency modes.  For instance
14644   # both Tru64's cc and ICC support -MD to output dependencies as a
14645   # side effect of compilation, but ICC will put the dependencies in
14646   # the current directory while Tru64 will put them in the object
14647   # directory.
14648   mkdir sub
14649
14650   am_cv_CXX_dependencies_compiler_type=none
14651   if test "$am_compiler_list" = ""; then
14652      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14653   fi
14654   am__universal=false
14655   case " $depcc " in #(
14656      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14657      esac
14658
14659   for depmode in $am_compiler_list; do
14660     # Setup a source with many dependencies, because some compilers
14661     # like to wrap large dependency lists on column 80 (with \), and
14662     # we should not choose a depcomp mode which is confused by this.
14663     #
14664     # We need to recreate these files for each test, as the compiler may
14665     # overwrite some of them when testing with obscure command lines.
14666     # This happens at least with the AIX C compiler.
14667     : > sub/conftest.c
14668     for i in 1 2 3 4 5 6; do
14669       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14670       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14671       # Solaris 10 /bin/sh.
14672       echo '/* dummy */' > sub/conftst$i.h
14673     done
14674     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14675
14676     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14677     # mode.  It turns out that the SunPro C++ compiler does not properly
14678     # handle '-M -o', and we need to detect this.  Also, some Intel
14679     # versions had trouble with output in subdirs.
14680     am__obj=sub/conftest.${OBJEXT-o}
14681     am__minus_obj="-o $am__obj"
14682     case $depmode in
14683     gcc)
14684       # This depmode causes a compiler race in universal mode.
14685       test "$am__universal" = false || continue
14686       ;;
14687     nosideeffect)
14688       # After this tag, mechanisms are not by side-effect, so they'll
14689       # only be used when explicitly requested.
14690       if test "x$enable_dependency_tracking" = xyes; then
14691         continue
14692       else
14693         break
14694       fi
14695       ;;
14696     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14697       # This compiler won't grok '-c -o', but also, the minuso test has
14698       # not run yet.  These depmodes are late enough in the game, and
14699       # so weak that their functioning should not be impacted.
14700       am__obj=conftest.${OBJEXT-o}
14701       am__minus_obj=
14702       ;;
14703     none) break ;;
14704     esac
14705     if depmode=$depmode \
14706        source=sub/conftest.c object=$am__obj \
14707        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14708        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14709          >/dev/null 2>conftest.err &&
14710        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14711        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14712        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14713        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14714       # icc doesn't choke on unknown options, it will just issue warnings
14715       # or remarks (even with -Werror).  So we grep stderr for any message
14716       # that says an option was ignored or not supported.
14717       # When given -MP, icc 7.0 and 7.1 complain thusly:
14718       #   icc: Command line warning: ignoring option '-M'; no argument required
14719       # The diagnosis changed in icc 8.0:
14720       #   icc: Command line remark: option '-MP' not supported
14721       if (grep 'ignoring option' conftest.err ||
14722           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14723         am_cv_CXX_dependencies_compiler_type=$depmode
14724         break
14725       fi
14726     fi
14727   done
14728
14729   cd ..
14730   rm -rf conftest.dir
14731 else
14732   am_cv_CXX_dependencies_compiler_type=none
14733 fi
14734
14735 fi
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14737 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14738 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14739
14740  if
14741   test "x$enable_dependency_tracking" != xno \
14742   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14743   am__fastdepCXX_TRUE=
14744   am__fastdepCXX_FALSE='#'
14745 else
14746   am__fastdepCXX_TRUE='#'
14747   am__fastdepCXX_FALSE=
14748 fi
14749
14750
14751
14752
14753 func_stripname_cnf ()
14754 {
14755   case $2 in
14756   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14757   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14758   esac
14759 } # func_stripname_cnf
14760
14761       if test -n "$CXX" && ( test no != "$CXX" &&
14762     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14763     (test g++ != "$CXX"))); then
14764   ac_ext=cpp
14765 ac_cpp='$CXXCPP $CPPFLAGS'
14766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14770 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14771 if test -z "$CXXCPP"; then
14772   if ${ac_cv_prog_CXXCPP+:} false; then :
14773   $as_echo_n "(cached) " >&6
14774 else
14775       # Double quotes because CXXCPP needs to be expanded
14776     for CXXCPP in "$CXX -E" "/lib/cpp"
14777     do
14778       ac_preproc_ok=false
14779 for ac_cxx_preproc_warn_flag in '' yes
14780 do
14781   # Use a header file that comes with gcc, so configuring glibc
14782   # with a fresh cross-compiler works.
14783   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14784   # <limits.h> exists even on freestanding compilers.
14785   # On the NeXT, cc -E runs the code through the compiler's parser,
14786   # not just through cpp. "Syntax error" is here to catch this case.
14787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h.  */
14789 #ifdef __STDC__
14790 # include <limits.h>
14791 #else
14792 # include <assert.h>
14793 #endif
14794                      Syntax error
14795 _ACEOF
14796 if ac_fn_cxx_try_cpp "$LINENO"; then :
14797
14798 else
14799   # Broken: fails on valid input.
14800 continue
14801 fi
14802 rm -f conftest.err conftest.i conftest.$ac_ext
14803
14804   # OK, works on sane cases.  Now check whether nonexistent headers
14805   # can be detected and how.
14806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h.  */
14808 #include <ac_nonexistent.h>
14809 _ACEOF
14810 if ac_fn_cxx_try_cpp "$LINENO"; then :
14811   # Broken: success on invalid input.
14812 continue
14813 else
14814   # Passes both tests.
14815 ac_preproc_ok=:
14816 break
14817 fi
14818 rm -f conftest.err conftest.i conftest.$ac_ext
14819
14820 done
14821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14822 rm -f conftest.i conftest.err conftest.$ac_ext
14823 if $ac_preproc_ok; then :
14824   break
14825 fi
14826
14827     done
14828     ac_cv_prog_CXXCPP=$CXXCPP
14829
14830 fi
14831   CXXCPP=$ac_cv_prog_CXXCPP
14832 else
14833   ac_cv_prog_CXXCPP=$CXXCPP
14834 fi
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14836 $as_echo "$CXXCPP" >&6; }
14837 ac_preproc_ok=false
14838 for ac_cxx_preproc_warn_flag in '' yes
14839 do
14840   # Use a header file that comes with gcc, so configuring glibc
14841   # with a fresh cross-compiler works.
14842   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14843   # <limits.h> exists even on freestanding compilers.
14844   # On the NeXT, cc -E runs the code through the compiler's parser,
14845   # not just through cpp. "Syntax error" is here to catch this case.
14846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h.  */
14848 #ifdef __STDC__
14849 # include <limits.h>
14850 #else
14851 # include <assert.h>
14852 #endif
14853                      Syntax error
14854 _ACEOF
14855 if ac_fn_cxx_try_cpp "$LINENO"; then :
14856
14857 else
14858   # Broken: fails on valid input.
14859 continue
14860 fi
14861 rm -f conftest.err conftest.i conftest.$ac_ext
14862
14863   # OK, works on sane cases.  Now check whether nonexistent headers
14864   # can be detected and how.
14865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h.  */
14867 #include <ac_nonexistent.h>
14868 _ACEOF
14869 if ac_fn_cxx_try_cpp "$LINENO"; then :
14870   # Broken: success on invalid input.
14871 continue
14872 else
14873   # Passes both tests.
14874 ac_preproc_ok=:
14875 break
14876 fi
14877 rm -f conftest.err conftest.i conftest.$ac_ext
14878
14879 done
14880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14881 rm -f conftest.i conftest.err conftest.$ac_ext
14882 if $ac_preproc_ok; then :
14883
14884 else
14885   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14887 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14888 See \`config.log' for more details" "$LINENO" 5; }
14889 fi
14890
14891 ac_ext=c
14892 ac_cpp='$CPP $CPPFLAGS'
14893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14896
14897 else
14898   _lt_caught_CXX_error=yes
14899 fi
14900
14901 ac_ext=cpp
14902 ac_cpp='$CXXCPP $CPPFLAGS'
14903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14906
14907 archive_cmds_need_lc_CXX=no
14908 allow_undefined_flag_CXX=
14909 always_export_symbols_CXX=no
14910 archive_expsym_cmds_CXX=
14911 compiler_needs_object_CXX=no
14912 export_dynamic_flag_spec_CXX=
14913 hardcode_direct_CXX=no
14914 hardcode_direct_absolute_CXX=no
14915 hardcode_libdir_flag_spec_CXX=
14916 hardcode_libdir_separator_CXX=
14917 hardcode_minus_L_CXX=no
14918 hardcode_shlibpath_var_CXX=unsupported
14919 hardcode_automatic_CXX=no
14920 inherit_rpath_CXX=no
14921 module_cmds_CXX=
14922 module_expsym_cmds_CXX=
14923 link_all_deplibs_CXX=unknown
14924 old_archive_cmds_CXX=$old_archive_cmds
14925 reload_flag_CXX=$reload_flag
14926 reload_cmds_CXX=$reload_cmds
14927 no_undefined_flag_CXX=
14928 whole_archive_flag_spec_CXX=
14929 enable_shared_with_static_runtimes_CXX=no
14930
14931 # Source file extension for C++ test sources.
14932 ac_ext=cpp
14933
14934 # Object file extension for compiled C++ test sources.
14935 objext=o
14936 objext_CXX=$objext
14937
14938 # No sense in running all these tests if we already determined that
14939 # the CXX compiler isn't working.  Some variables (like enable_shared)
14940 # are currently assumed to apply to all compilers on this platform,
14941 # and will be corrupted by setting them based on a non-working compiler.
14942 if test yes != "$_lt_caught_CXX_error"; then
14943   # Code to be used in simple compile tests
14944   lt_simple_compile_test_code="int some_variable = 0;"
14945
14946   # Code to be used in simple link tests
14947   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14948
14949   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14950
14951
14952
14953
14954
14955
14956 # If no C compiler was specified, use CC.
14957 LTCC=${LTCC-"$CC"}
14958
14959 # If no C compiler flags were specified, use CFLAGS.
14960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14961
14962 # Allow CC to be a program name with arguments.
14963 compiler=$CC
14964
14965
14966   # save warnings/boilerplate of simple test code
14967   ac_outfile=conftest.$ac_objext
14968 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14970 _lt_compiler_boilerplate=`cat conftest.err`
14971 $RM conftest*
14972
14973   ac_outfile=conftest.$ac_objext
14974 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14976 _lt_linker_boilerplate=`cat conftest.err`
14977 $RM -r conftest*
14978
14979
14980   # Allow CC to be a program name with arguments.
14981   lt_save_CC=$CC
14982   lt_save_CFLAGS=$CFLAGS
14983   lt_save_LD=$LD
14984   lt_save_GCC=$GCC
14985   GCC=$GXX
14986   lt_save_with_gnu_ld=$with_gnu_ld
14987   lt_save_path_LD=$lt_cv_path_LD
14988   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14989     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14990   else
14991     $as_unset lt_cv_prog_gnu_ld
14992   fi
14993   if test -n "${lt_cv_path_LDCXX+set}"; then
14994     lt_cv_path_LD=$lt_cv_path_LDCXX
14995   else
14996     $as_unset lt_cv_path_LD
14997   fi
14998   test -z "${LDCXX+set}" || LD=$LDCXX
14999   CC=${CXX-"c++"}
15000   CFLAGS=$CXXFLAGS
15001   compiler=$CC
15002   compiler_CXX=$CC
15003   func_cc_basename $compiler
15004 cc_basename=$func_cc_basename_result
15005
15006
15007   if test -n "$compiler"; then
15008     # We don't want -fno-exception when compiling C++ code, so set the
15009     # no_builtin_flag separately
15010     if test yes = "$GXX"; then
15011       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15012     else
15013       lt_prog_compiler_no_builtin_flag_CXX=
15014     fi
15015
15016     if test yes = "$GXX"; then
15017       # Set up default GNU C++ configuration
15018
15019
15020
15021 # Check whether --with-gnu-ld was given.
15022 if test "${with_gnu_ld+set}" = set; then :
15023   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15024 else
15025   with_gnu_ld=no
15026 fi
15027
15028 ac_prog=ld
15029 if test yes = "$GCC"; then
15030   # Check if gcc -print-prog-name=ld gives a path.
15031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15032 $as_echo_n "checking for ld used by $CC... " >&6; }
15033   case $host in
15034   *-*-mingw*)
15035     # gcc leaves a trailing carriage return, which upsets mingw
15036     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15037   *)
15038     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15039   esac
15040   case $ac_prog in
15041     # Accept absolute paths.
15042     [\\/]* | ?:[\\/]*)
15043       re_direlt='/[^/][^/]*/\.\./'
15044       # Canonicalize the pathname of ld
15045       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15046       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15047         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15048       done
15049       test -z "$LD" && LD=$ac_prog
15050       ;;
15051   "")
15052     # If it fails, then pretend we aren't using GCC.
15053     ac_prog=ld
15054     ;;
15055   *)
15056     # If it is relative, then search for the first ld in PATH.
15057     with_gnu_ld=unknown
15058     ;;
15059   esac
15060 elif test yes = "$with_gnu_ld"; then
15061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15062 $as_echo_n "checking for GNU ld... " >&6; }
15063 else
15064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15065 $as_echo_n "checking for non-GNU ld... " >&6; }
15066 fi
15067 if ${lt_cv_path_LD+:} false; then :
15068   $as_echo_n "(cached) " >&6
15069 else
15070   if test -z "$LD"; then
15071   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15072   for ac_dir in $PATH; do
15073     IFS=$lt_save_ifs
15074     test -z "$ac_dir" && ac_dir=.
15075     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15076       lt_cv_path_LD=$ac_dir/$ac_prog
15077       # Check to see if the program is GNU ld.  I'd rather use --version,
15078       # but apparently some variants of GNU ld only accept -v.
15079       # Break only if it was the GNU/non-GNU ld that we prefer.
15080       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15081       *GNU* | *'with BFD'*)
15082         test no != "$with_gnu_ld" && break
15083         ;;
15084       *)
15085         test yes != "$with_gnu_ld" && break
15086         ;;
15087       esac
15088     fi
15089   done
15090   IFS=$lt_save_ifs
15091 else
15092   lt_cv_path_LD=$LD # Let the user override the test with a path.
15093 fi
15094 fi
15095
15096 LD=$lt_cv_path_LD
15097 if test -n "$LD"; then
15098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15099 $as_echo "$LD" >&6; }
15100 else
15101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15103 fi
15104 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15106 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15107 if ${lt_cv_prog_gnu_ld+:} false; then :
15108   $as_echo_n "(cached) " >&6
15109 else
15110   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15111 case `$LD -v 2>&1 </dev/null` in
15112 *GNU* | *'with BFD'*)
15113   lt_cv_prog_gnu_ld=yes
15114   ;;
15115 *)
15116   lt_cv_prog_gnu_ld=no
15117   ;;
15118 esac
15119 fi
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15121 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15122 with_gnu_ld=$lt_cv_prog_gnu_ld
15123
15124
15125
15126
15127
15128
15129
15130       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15131       # archiving commands below assume that GNU ld is being used.
15132       if test yes = "$with_gnu_ld"; then
15133         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15134         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'
15135
15136         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15137         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15138
15139         # If archive_cmds runs LD, not CC, wlarc should be empty
15140         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15141         #     investigate it a little bit more. (MM)
15142         wlarc='$wl'
15143
15144         # ancient GNU ld didn't support --whole-archive et. al.
15145         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15146           $GREP 'no-whole-archive' > /dev/null; then
15147           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15148         else
15149           whole_archive_flag_spec_CXX=
15150         fi
15151       else
15152         with_gnu_ld=no
15153         wlarc=
15154
15155         # A generic and very simple default shared library creation
15156         # command for GNU C++ for the case where it uses the native
15157         # linker, instead of GNU ld.  If possible, this setting should
15158         # overridden to take advantage of the native linker features on
15159         # the platform it is being used on.
15160         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15161       fi
15162
15163       # Commands to make compiler produce verbose output that lists
15164       # what "hidden" libraries, object files and flags are used when
15165       # linking a shared library.
15166       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15167
15168     else
15169       GXX=no
15170       with_gnu_ld=no
15171       wlarc=
15172     fi
15173
15174     # PORTME: fill in a description of your system's C++ link characteristics
15175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15176 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15177     ld_shlibs_CXX=yes
15178     case $host_os in
15179       aix3*)
15180         # FIXME: insert proper C++ library support
15181         ld_shlibs_CXX=no
15182         ;;
15183       aix[4-9]*)
15184         if test ia64 = "$host_cpu"; then
15185           # On IA64, the linker does run time linking by default, so we don't
15186           # have to do anything special.
15187           aix_use_runtimelinking=no
15188           exp_sym_flag='-Bexport'
15189           no_entry_flag=
15190         else
15191           aix_use_runtimelinking=no
15192
15193           # Test if we are trying to use run time linking or normal
15194           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15195           # have runtime linking enabled, and use it for executables.
15196           # For shared libraries, we enable/disable runtime linking
15197           # depending on the kind of the shared library created -
15198           # when "with_aix_soname,aix_use_runtimelinking" is:
15199           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15200           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15201           #            lib.a           static archive
15202           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15203           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15204           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15205           #            lib.a(lib.so.V) shared, rtl:no
15206           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15207           #            lib.a           static archive
15208           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15209             for ld_flag in $LDFLAGS; do
15210               case $ld_flag in
15211               *-brtl*)
15212                 aix_use_runtimelinking=yes
15213                 break
15214                 ;;
15215               esac
15216             done
15217             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15218               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15219               # so we don't have lib.a shared libs to link our executables.
15220               # We have to force runtime linking in this case.
15221               aix_use_runtimelinking=yes
15222               LDFLAGS="$LDFLAGS -Wl,-brtl"
15223             fi
15224             ;;
15225           esac
15226
15227           exp_sym_flag='-bexport'
15228           no_entry_flag='-bnoentry'
15229         fi
15230
15231         # When large executables or shared objects are built, AIX ld can
15232         # have problems creating the table of contents.  If linking a library
15233         # or program results in "error TOC overflow" add -mminimal-toc to
15234         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15235         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15236
15237         archive_cmds_CXX=''
15238         hardcode_direct_CXX=yes
15239         hardcode_direct_absolute_CXX=yes
15240         hardcode_libdir_separator_CXX=':'
15241         link_all_deplibs_CXX=yes
15242         file_list_spec_CXX='$wl-f,'
15243         case $with_aix_soname,$aix_use_runtimelinking in
15244         aix,*) ;;       # no import file
15245         svr4,* | *,yes) # use import file
15246           # The Import File defines what to hardcode.
15247           hardcode_direct_CXX=no
15248           hardcode_direct_absolute_CXX=no
15249           ;;
15250         esac
15251
15252         if test yes = "$GXX"; then
15253           case $host_os in aix4.[012]|aix4.[012].*)
15254           # We only want to do this on AIX 4.2 and lower, the check
15255           # below for broken collect2 doesn't work under 4.3+
15256           collect2name=`$CC -print-prog-name=collect2`
15257           if test -f "$collect2name" &&
15258              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15259           then
15260             # We have reworked collect2
15261             :
15262           else
15263             # We have old collect2
15264             hardcode_direct_CXX=unsupported
15265             # It fails to find uninstalled libraries when the uninstalled
15266             # path is not listed in the libpath.  Setting hardcode_minus_L
15267             # to unsupported forces relinking
15268             hardcode_minus_L_CXX=yes
15269             hardcode_libdir_flag_spec_CXX='-L$libdir'
15270             hardcode_libdir_separator_CXX=
15271           fi
15272           esac
15273           shared_flag='-shared'
15274           if test yes = "$aix_use_runtimelinking"; then
15275             shared_flag=$shared_flag' $wl-G'
15276           fi
15277           # Need to ensure runtime linking is disabled for the traditional
15278           # shared library, or the linker may eventually find shared libraries
15279           # /with/ Import File - we do not want to mix them.
15280           shared_flag_aix='-shared'
15281           shared_flag_svr4='-shared $wl-G'
15282         else
15283           # not using gcc
15284           if test ia64 = "$host_cpu"; then
15285           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15286           # chokes on -Wl,-G. The following line is correct:
15287           shared_flag='-G'
15288           else
15289             if test yes = "$aix_use_runtimelinking"; then
15290               shared_flag='$wl-G'
15291             else
15292               shared_flag='$wl-bM:SRE'
15293             fi
15294             shared_flag_aix='$wl-bM:SRE'
15295             shared_flag_svr4='$wl-G'
15296           fi
15297         fi
15298
15299         export_dynamic_flag_spec_CXX='$wl-bexpall'
15300         # It seems that -bexpall does not export symbols beginning with
15301         # underscore (_), so it is better to generate a list of symbols to
15302         # export.
15303         always_export_symbols_CXX=yes
15304         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15305           # Warning - without using the other runtime loading flags (-brtl),
15306           # -berok will link without error, but may produce a broken library.
15307           # The "-G" linker flag allows undefined symbols.
15308           no_undefined_flag_CXX='-bernotok'
15309           # Determine the default libpath from the value encoded in an empty
15310           # executable.
15311           if test set = "${lt_cv_aix_libpath+set}"; then
15312   aix_libpath=$lt_cv_aix_libpath
15313 else
15314   if ${lt_cv_aix_libpath__CXX+:} false; then :
15315   $as_echo_n "(cached) " >&6
15316 else
15317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h.  */
15319
15320 int
15321 main ()
15322 {
15323
15324   ;
15325   return 0;
15326 }
15327 _ACEOF
15328 if ac_fn_cxx_try_link "$LINENO"; then :
15329
15330   lt_aix_libpath_sed='
15331       /Import File Strings/,/^$/ {
15332           /^0/ {
15333               s/^0  *\([^ ]*\) *$/\1/
15334               p
15335           }
15336       }'
15337   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15338   # Check for a 64-bit object if we didn't find anything.
15339   if test -z "$lt_cv_aix_libpath__CXX"; then
15340     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15341   fi
15342 fi
15343 rm -f core conftest.err conftest.$ac_objext \
15344     conftest$ac_exeext conftest.$ac_ext
15345   if test -z "$lt_cv_aix_libpath__CXX"; then
15346     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15347   fi
15348
15349 fi
15350
15351   aix_libpath=$lt_cv_aix_libpath__CXX
15352 fi
15353
15354           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15355
15356           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
15357         else
15358           if test ia64 = "$host_cpu"; then
15359             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15360             allow_undefined_flag_CXX="-z nodefs"
15361             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"
15362           else
15363             # Determine the default libpath from the value encoded in an
15364             # empty executable.
15365             if test set = "${lt_cv_aix_libpath+set}"; then
15366   aix_libpath=$lt_cv_aix_libpath
15367 else
15368   if ${lt_cv_aix_libpath__CXX+:} false; then :
15369   $as_echo_n "(cached) " >&6
15370 else
15371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h.  */
15373
15374 int
15375 main ()
15376 {
15377
15378   ;
15379   return 0;
15380 }
15381 _ACEOF
15382 if ac_fn_cxx_try_link "$LINENO"; then :
15383
15384   lt_aix_libpath_sed='
15385       /Import File Strings/,/^$/ {
15386           /^0/ {
15387               s/^0  *\([^ ]*\) *$/\1/
15388               p
15389           }
15390       }'
15391   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15392   # Check for a 64-bit object if we didn't find anything.
15393   if test -z "$lt_cv_aix_libpath__CXX"; then
15394     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15395   fi
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext \
15398     conftest$ac_exeext conftest.$ac_ext
15399   if test -z "$lt_cv_aix_libpath__CXX"; then
15400     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15401   fi
15402
15403 fi
15404
15405   aix_libpath=$lt_cv_aix_libpath__CXX
15406 fi
15407
15408             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15409             # Warning - without using the other run time loading flags,
15410             # -berok will link without error, but may produce a broken library.
15411             no_undefined_flag_CXX=' $wl-bernotok'
15412             allow_undefined_flag_CXX=' $wl-berok'
15413             if test yes = "$with_gnu_ld"; then
15414               # We only use this code for GNU lds that support --whole-archive.
15415               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15416             else
15417               # Exported symbols can be pulled into shared objects from archives
15418               whole_archive_flag_spec_CXX='$convenience'
15419             fi
15420             archive_cmds_need_lc_CXX=yes
15421             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15422             # -brtl affects multiple linker settings, -berok does not and is overridden later
15423             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15424             if test svr4 != "$with_aix_soname"; then
15425               # This is similar to how AIX traditionally builds its shared
15426               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15427               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15428             fi
15429             if test aix != "$with_aix_soname"; then
15430               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15431             else
15432               # used by -dlpreopen to get the symbols
15433               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15434             fi
15435             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15436           fi
15437         fi
15438         ;;
15439
15440       beos*)
15441         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15442           allow_undefined_flag_CXX=unsupported
15443           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15444           # support --undefined.  This deserves some investigation.  FIXME
15445           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15446         else
15447           ld_shlibs_CXX=no
15448         fi
15449         ;;
15450
15451       chorus*)
15452         case $cc_basename in
15453           *)
15454           # FIXME: insert proper C++ library support
15455           ld_shlibs_CXX=no
15456           ;;
15457         esac
15458         ;;
15459
15460       cygwin* | mingw* | pw32* | cegcc*)
15461         case $GXX,$cc_basename in
15462         ,cl* | no,cl*)
15463           # Native MSVC
15464           # hardcode_libdir_flag_spec is actually meaningless, as there is
15465           # no search path for DLLs.
15466           hardcode_libdir_flag_spec_CXX=' '
15467           allow_undefined_flag_CXX=unsupported
15468           always_export_symbols_CXX=yes
15469           file_list_spec_CXX='@'
15470           # Tell ltmain to make .lib files, not .a files.
15471           libext=lib
15472           # Tell ltmain to make .dll files, not .so files.
15473           shrext_cmds=.dll
15474           # FIXME: Setting linknames here is a bad hack.
15475           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15476           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15477               cp "$export_symbols" "$output_objdir/$soname.def";
15478               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15479             else
15480               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15481             fi~
15482             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15483             linknames='
15484           # The linker will not automatically build a static lib if we build a DLL.
15485           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15486           enable_shared_with_static_runtimes_CXX=yes
15487           # Don't use ranlib
15488           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15489           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15490             lt_tool_outputfile="@TOOL_OUTPUT@"~
15491             case $lt_outputfile in
15492               *.exe|*.EXE) ;;
15493               *)
15494                 lt_outputfile=$lt_outputfile.exe
15495                 lt_tool_outputfile=$lt_tool_outputfile.exe
15496                 ;;
15497             esac~
15498             func_to_tool_file "$lt_outputfile"~
15499             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15500               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15501               $RM "$lt_outputfile.manifest";
15502             fi'
15503           ;;
15504         *)
15505           # g++
15506           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15507           # as there is no search path for DLLs.
15508           hardcode_libdir_flag_spec_CXX='-L$libdir'
15509           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15510           allow_undefined_flag_CXX=unsupported
15511           always_export_symbols_CXX=no
15512           enable_shared_with_static_runtimes_CXX=yes
15513
15514           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15515             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'
15516             # If the export-symbols file already is a .def file, use it as
15517             # is; otherwise, prepend EXPORTS...
15518             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15519               cp $export_symbols $output_objdir/$soname.def;
15520             else
15521               echo EXPORTS > $output_objdir/$soname.def;
15522               cat $export_symbols >> $output_objdir/$soname.def;
15523             fi~
15524             $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'
15525           else
15526             ld_shlibs_CXX=no
15527           fi
15528           ;;
15529         esac
15530         ;;
15531       darwin* | rhapsody*)
15532
15533
15534   archive_cmds_need_lc_CXX=no
15535   hardcode_direct_CXX=no
15536   hardcode_automatic_CXX=yes
15537   hardcode_shlibpath_var_CXX=unsupported
15538   if test yes = "$lt_cv_ld_force_load"; then
15539     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\"`'
15540
15541   else
15542     whole_archive_flag_spec_CXX=''
15543   fi
15544   link_all_deplibs_CXX=yes
15545   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15546   case $cc_basename in
15547      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15548      *) _lt_dar_can_shared=$GCC ;;
15549   esac
15550   if test yes = "$_lt_dar_can_shared"; then
15551     output_verbose_link_cmd=func_echo_all
15552     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"
15553     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15554     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"
15555     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"
15556        if test yes != "$lt_cv_apple_cc_single_mod"; then
15557       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"
15558       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"
15559     fi
15560
15561   else
15562   ld_shlibs_CXX=no
15563   fi
15564
15565         ;;
15566
15567       os2*)
15568         hardcode_libdir_flag_spec_CXX='-L$libdir'
15569         hardcode_minus_L_CXX=yes
15570         allow_undefined_flag_CXX=unsupported
15571         shrext_cmds=.dll
15572         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15573           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15574           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15575           $ECHO EXPORTS >> $output_objdir/$libname.def~
15576           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15577           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15578           emximp -o $lib $output_objdir/$libname.def'
15579         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15580           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15581           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15582           $ECHO EXPORTS >> $output_objdir/$libname.def~
15583           prefix_cmds="$SED"~
15584           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15585             prefix_cmds="$prefix_cmds -e 1d";
15586           fi~
15587           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15588           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15589           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15590           emximp -o $lib $output_objdir/$libname.def'
15591         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15592         enable_shared_with_static_runtimes_CXX=yes
15593         ;;
15594
15595       dgux*)
15596         case $cc_basename in
15597           ec++*)
15598             # FIXME: insert proper C++ library support
15599             ld_shlibs_CXX=no
15600             ;;
15601           ghcx*)
15602             # Green Hills C++ Compiler
15603             # FIXME: insert proper C++ library support
15604             ld_shlibs_CXX=no
15605             ;;
15606           *)
15607             # FIXME: insert proper C++ library support
15608             ld_shlibs_CXX=no
15609             ;;
15610         esac
15611         ;;
15612
15613       freebsd2.*)
15614         # C++ shared libraries reported to be fairly broken before
15615         # switch to ELF
15616         ld_shlibs_CXX=no
15617         ;;
15618
15619       freebsd-elf*)
15620         archive_cmds_need_lc_CXX=no
15621         ;;
15622
15623       freebsd* | dragonfly*)
15624         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15625         # conventions
15626         ld_shlibs_CXX=yes
15627         ;;
15628
15629       haiku*)
15630         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15631         link_all_deplibs_CXX=yes
15632         ;;
15633
15634       hpux9*)
15635         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15636         hardcode_libdir_separator_CXX=:
15637         export_dynamic_flag_spec_CXX='$wl-E'
15638         hardcode_direct_CXX=yes
15639         hardcode_minus_L_CXX=yes # Not in the search PATH,
15640                                              # but as the default
15641                                              # location of the library.
15642
15643         case $cc_basename in
15644           CC*)
15645             # FIXME: insert proper C++ library support
15646             ld_shlibs_CXX=no
15647             ;;
15648           aCC*)
15649             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'
15650             # Commands to make compiler produce verbose output that lists
15651             # what "hidden" libraries, object files and flags are used when
15652             # linking a shared library.
15653             #
15654             # There doesn't appear to be a way to prevent this compiler from
15655             # explicitly linking system object files so we need to strip them
15656             # from the output so that they don't get included in the library
15657             # dependencies.
15658             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"'
15659             ;;
15660           *)
15661             if test yes = "$GXX"; then
15662               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'
15663             else
15664               # FIXME: insert proper C++ library support
15665               ld_shlibs_CXX=no
15666             fi
15667             ;;
15668         esac
15669         ;;
15670
15671       hpux10*|hpux11*)
15672         if test no = "$with_gnu_ld"; then
15673           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15674           hardcode_libdir_separator_CXX=:
15675
15676           case $host_cpu in
15677             hppa*64*|ia64*)
15678               ;;
15679             *)
15680               export_dynamic_flag_spec_CXX='$wl-E'
15681               ;;
15682           esac
15683         fi
15684         case $host_cpu in
15685           hppa*64*|ia64*)
15686             hardcode_direct_CXX=no
15687             hardcode_shlibpath_var_CXX=no
15688             ;;
15689           *)
15690             hardcode_direct_CXX=yes
15691             hardcode_direct_absolute_CXX=yes
15692             hardcode_minus_L_CXX=yes # Not in the search PATH,
15693                                                  # but as the default
15694                                                  # location of the library.
15695             ;;
15696         esac
15697
15698         case $cc_basename in
15699           CC*)
15700             # FIXME: insert proper C++ library support
15701             ld_shlibs_CXX=no
15702             ;;
15703           aCC*)
15704             case $host_cpu in
15705               hppa*64*)
15706                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15707                 ;;
15708               ia64*)
15709                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15710                 ;;
15711               *)
15712                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15713                 ;;
15714             esac
15715             # Commands to make compiler produce verbose output that lists
15716             # what "hidden" libraries, object files and flags are used when
15717             # linking a shared library.
15718             #
15719             # There doesn't appear to be a way to prevent this compiler from
15720             # explicitly linking system object files so we need to strip them
15721             # from the output so that they don't get included in the library
15722             # dependencies.
15723             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"'
15724             ;;
15725           *)
15726             if test yes = "$GXX"; then
15727               if test no = "$with_gnu_ld"; then
15728                 case $host_cpu in
15729                   hppa*64*)
15730                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15731                     ;;
15732                   ia64*)
15733                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15734                     ;;
15735                   *)
15736                     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'
15737                     ;;
15738                 esac
15739               fi
15740             else
15741               # FIXME: insert proper C++ library support
15742               ld_shlibs_CXX=no
15743             fi
15744             ;;
15745         esac
15746         ;;
15747
15748       interix[3-9]*)
15749         hardcode_direct_CXX=no
15750         hardcode_shlibpath_var_CXX=no
15751         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15752         export_dynamic_flag_spec_CXX='$wl-E'
15753         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15754         # Instead, shared libraries are loaded at an image base (0x10000000 by
15755         # default) and relocated if they conflict, which is a slow very memory
15756         # consuming and fragmenting process.  To avoid this, we pick a random,
15757         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15758         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15759         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'
15760         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'
15761         ;;
15762       irix5* | irix6*)
15763         case $cc_basename in
15764           CC*)
15765             # SGI C++
15766             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'
15767
15768             # Archives containing C++ object files must be created using
15769             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15770             # necessary to make sure instantiated templates are included
15771             # in the archive.
15772             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15773             ;;
15774           *)
15775             if test yes = "$GXX"; then
15776               if test no = "$with_gnu_ld"; then
15777                 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'
15778               else
15779                 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'
15780               fi
15781             fi
15782             link_all_deplibs_CXX=yes
15783             ;;
15784         esac
15785         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15786         hardcode_libdir_separator_CXX=:
15787         inherit_rpath_CXX=yes
15788         ;;
15789
15790       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15791         case $cc_basename in
15792           KCC*)
15793             # Kuck and Associates, Inc. (KAI) C++ Compiler
15794
15795             # KCC will only create a shared library if the output file
15796             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15797             # to its proper name (with version) after linking.
15798             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'
15799             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'
15800             # Commands to make compiler produce verbose output that lists
15801             # what "hidden" libraries, object files and flags are used when
15802             # linking a shared library.
15803             #
15804             # There doesn't appear to be a way to prevent this compiler from
15805             # explicitly linking system object files so we need to strip them
15806             # from the output so that they don't get included in the library
15807             # dependencies.
15808             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"'
15809
15810             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15811             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15812
15813             # Archives containing C++ object files must be created using
15814             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15815             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15816             ;;
15817           icpc* | ecpc* )
15818             # Intel C++
15819             with_gnu_ld=yes
15820             # version 8.0 and above of icpc choke on multiply defined symbols
15821             # if we add $predep_objects and $postdep_objects, however 7.1 and
15822             # earlier do not add the objects themselves.
15823             case `$CC -V 2>&1` in
15824               *"Version 7."*)
15825                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15826                 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'
15827                 ;;
15828               *)  # Version 8.0 or newer
15829                 tmp_idyn=
15830                 case $host_cpu in
15831                   ia64*) tmp_idyn=' -i_dynamic';;
15832                 esac
15833                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15834                 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'
15835                 ;;
15836             esac
15837             archive_cmds_need_lc_CXX=no
15838             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15839             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15840             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15841             ;;
15842           pgCC* | pgcpp*)
15843             # Portland Group C++ compiler
15844             case `$CC -V` in
15845             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15846               prelink_cmds_CXX='tpldir=Template.dir~
15847                rm -rf $tpldir~
15848                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15849                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15850               old_archive_cmds_CXX='tpldir=Template.dir~
15851                 rm -rf $tpldir~
15852                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15853                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15854                 $RANLIB $oldlib'
15855               archive_cmds_CXX='tpldir=Template.dir~
15856                 rm -rf $tpldir~
15857                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15858                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15859               archive_expsym_cmds_CXX='tpldir=Template.dir~
15860                 rm -rf $tpldir~
15861                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15862                 $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'
15863               ;;
15864             *) # Version 6 and above use weak symbols
15865               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15866               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'
15867               ;;
15868             esac
15869
15870             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15871             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15872             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'
15873             ;;
15874           cxx*)
15875             # Compaq C++
15876             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15877             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'
15878
15879             runpath_var=LD_RUN_PATH
15880             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15881             hardcode_libdir_separator_CXX=:
15882
15883             # Commands to make compiler produce verbose output that lists
15884             # what "hidden" libraries, object files and flags are used when
15885             # linking a shared library.
15886             #
15887             # There doesn't appear to be a way to prevent this compiler from
15888             # explicitly linking system object files so we need to strip them
15889             # from the output so that they don't get included in the library
15890             # dependencies.
15891             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'
15892             ;;
15893           xl* | mpixl* | bgxl*)
15894             # IBM XL 8.0 on PPC, with GNU ld
15895             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15896             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15897             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15898             if test yes = "$supports_anon_versioning"; then
15899               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15900                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15901                 echo "local: *; };" >> $output_objdir/$libname.ver~
15902                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15903             fi
15904             ;;
15905           *)
15906             case `$CC -V 2>&1 | sed 5q` in
15907             *Sun\ C*)
15908               # Sun C++ 5.9
15909               no_undefined_flag_CXX=' -zdefs'
15910               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15911               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'
15912               hardcode_libdir_flag_spec_CXX='-R$libdir'
15913               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'
15914               compiler_needs_object_CXX=yes
15915
15916               # Not sure whether something based on
15917               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15918               # would be better.
15919               output_verbose_link_cmd='func_echo_all'
15920
15921               # Archives containing C++ object files must be created using
15922               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15923               # necessary to make sure instantiated templates are included
15924               # in the archive.
15925               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15926               ;;
15927             esac
15928             ;;
15929         esac
15930         ;;
15931
15932       lynxos*)
15933         # FIXME: insert proper C++ library support
15934         ld_shlibs_CXX=no
15935         ;;
15936
15937       m88k*)
15938         # FIXME: insert proper C++ library support
15939         ld_shlibs_CXX=no
15940         ;;
15941
15942       mvs*)
15943         case $cc_basename in
15944           cxx*)
15945             # FIXME: insert proper C++ library support
15946             ld_shlibs_CXX=no
15947             ;;
15948           *)
15949             # FIXME: insert proper C++ library support
15950             ld_shlibs_CXX=no
15951             ;;
15952         esac
15953         ;;
15954
15955       netbsd*)
15956         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15957           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15958           wlarc=
15959           hardcode_libdir_flag_spec_CXX='-R$libdir'
15960           hardcode_direct_CXX=yes
15961           hardcode_shlibpath_var_CXX=no
15962         fi
15963         # Workaround some broken pre-1.5 toolchains
15964         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15965         ;;
15966
15967       *nto* | *qnx*)
15968         ld_shlibs_CXX=yes
15969         ;;
15970
15971       openbsd* | bitrig*)
15972         if test -f /usr/libexec/ld.so; then
15973           hardcode_direct_CXX=yes
15974           hardcode_shlibpath_var_CXX=no
15975           hardcode_direct_absolute_CXX=yes
15976           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15977           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15978           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15979             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15980             export_dynamic_flag_spec_CXX='$wl-E'
15981             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15982           fi
15983           output_verbose_link_cmd=func_echo_all
15984         else
15985           ld_shlibs_CXX=no
15986         fi
15987         ;;
15988
15989       osf3* | osf4* | osf5*)
15990         case $cc_basename in
15991           KCC*)
15992             # Kuck and Associates, Inc. (KAI) C++ Compiler
15993
15994             # KCC will only create a shared library if the output file
15995             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15996             # to its proper name (with version) after linking.
15997             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'
15998
15999             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16000             hardcode_libdir_separator_CXX=:
16001
16002             # Archives containing C++ object files must be created using
16003             # the KAI C++ compiler.
16004             case $host in
16005               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16006               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16007             esac
16008             ;;
16009           RCC*)
16010             # Rational C++ 2.4.1
16011             # FIXME: insert proper C++ library support
16012             ld_shlibs_CXX=no
16013             ;;
16014           cxx*)
16015             case $host in
16016               osf3*)
16017                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16018                 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'
16019                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16020                 ;;
16021               *)
16022                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16023                 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'
16024                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16025                   echo "-hidden">> $lib.exp~
16026                   $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~
16027                   $RM $lib.exp'
16028                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16029                 ;;
16030             esac
16031
16032             hardcode_libdir_separator_CXX=:
16033
16034             # Commands to make compiler produce verbose output that lists
16035             # what "hidden" libraries, object files and flags are used when
16036             # linking a shared library.
16037             #
16038             # There doesn't appear to be a way to prevent this compiler from
16039             # explicitly linking system object files so we need to strip them
16040             # from the output so that they don't get included in the library
16041             # dependencies.
16042             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"'
16043             ;;
16044           *)
16045             if test yes,no = "$GXX,$with_gnu_ld"; then
16046               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16047               case $host in
16048                 osf3*)
16049                   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'
16050                   ;;
16051                 *)
16052                   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'
16053                   ;;
16054               esac
16055
16056               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16057               hardcode_libdir_separator_CXX=:
16058
16059               # Commands to make compiler produce verbose output that lists
16060               # what "hidden" libraries, object files and flags are used when
16061               # linking a shared library.
16062               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16063
16064             else
16065               # FIXME: insert proper C++ library support
16066               ld_shlibs_CXX=no
16067             fi
16068             ;;
16069         esac
16070         ;;
16071
16072       psos*)
16073         # FIXME: insert proper C++ library support
16074         ld_shlibs_CXX=no
16075         ;;
16076
16077       sunos4*)
16078         case $cc_basename in
16079           CC*)
16080             # Sun C++ 4.x
16081             # FIXME: insert proper C++ library support
16082             ld_shlibs_CXX=no
16083             ;;
16084           lcc*)
16085             # Lucid
16086             # FIXME: insert proper C++ library support
16087             ld_shlibs_CXX=no
16088             ;;
16089           *)
16090             # FIXME: insert proper C++ library support
16091             ld_shlibs_CXX=no
16092             ;;
16093         esac
16094         ;;
16095
16096       solaris*)
16097         case $cc_basename in
16098           CC* | sunCC*)
16099             # Sun C++ 4.2, 5.x and Centerline C++
16100             archive_cmds_need_lc_CXX=yes
16101             no_undefined_flag_CXX=' -zdefs'
16102             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16103             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16104               $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'
16105
16106             hardcode_libdir_flag_spec_CXX='-R$libdir'
16107             hardcode_shlibpath_var_CXX=no
16108             case $host_os in
16109               solaris2.[0-5] | solaris2.[0-5].*) ;;
16110               *)
16111                 # The compiler driver will combine and reorder linker options,
16112                 # but understands '-z linker_flag'.
16113                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16114                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16115                 ;;
16116             esac
16117             link_all_deplibs_CXX=yes
16118
16119             output_verbose_link_cmd='func_echo_all'
16120
16121             # Archives containing C++ object files must be created using
16122             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16123             # necessary to make sure instantiated templates are included
16124             # in the archive.
16125             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16126             ;;
16127           gcx*)
16128             # Green Hills C++ Compiler
16129             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16130
16131             # The C++ compiler must be used to create the archive.
16132             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16133             ;;
16134           *)
16135             # GNU C++ compiler with Solaris linker
16136             if test yes,no = "$GXX,$with_gnu_ld"; then
16137               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16138               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16139                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16140                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16141                   $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'
16142
16143                 # Commands to make compiler produce verbose output that lists
16144                 # what "hidden" libraries, object files and flags are used when
16145                 # linking a shared library.
16146                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16147               else
16148                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16149                 # platform.
16150                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16151                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16152                   $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'
16153
16154                 # Commands to make compiler produce verbose output that lists
16155                 # what "hidden" libraries, object files and flags are used when
16156                 # linking a shared library.
16157                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16158               fi
16159
16160               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16161               case $host_os in
16162                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16163                 *)
16164                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16165                   ;;
16166               esac
16167             fi
16168             ;;
16169         esac
16170         ;;
16171
16172     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16173       no_undefined_flag_CXX='$wl-z,text'
16174       archive_cmds_need_lc_CXX=no
16175       hardcode_shlibpath_var_CXX=no
16176       runpath_var='LD_RUN_PATH'
16177
16178       case $cc_basename in
16179         CC*)
16180           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16181           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16182           ;;
16183         *)
16184           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16185           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16186           ;;
16187       esac
16188       ;;
16189
16190       sysv5* | sco3.2v5* | sco5v6*)
16191         # Note: We CANNOT use -z defs as we might desire, because we do not
16192         # link with -lc, and that would cause any symbols used from libc to
16193         # always be unresolved, which means just about no library would
16194         # ever link correctly.  If we're not using GNU ld we use -z text
16195         # though, which does catch some bad symbols but isn't as heavy-handed
16196         # as -z defs.
16197         no_undefined_flag_CXX='$wl-z,text'
16198         allow_undefined_flag_CXX='$wl-z,nodefs'
16199         archive_cmds_need_lc_CXX=no
16200         hardcode_shlibpath_var_CXX=no
16201         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16202         hardcode_libdir_separator_CXX=':'
16203         link_all_deplibs_CXX=yes
16204         export_dynamic_flag_spec_CXX='$wl-Bexport'
16205         runpath_var='LD_RUN_PATH'
16206
16207         case $cc_basename in
16208           CC*)
16209             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16210             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16211             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16212               '"$old_archive_cmds_CXX"
16213             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16214               '"$reload_cmds_CXX"
16215             ;;
16216           *)
16217             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16218             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16219             ;;
16220         esac
16221       ;;
16222
16223       tandem*)
16224         case $cc_basename in
16225           NCC*)
16226             # NonStop-UX NCC 3.20
16227             # FIXME: insert proper C++ library support
16228             ld_shlibs_CXX=no
16229             ;;
16230           *)
16231             # FIXME: insert proper C++ library support
16232             ld_shlibs_CXX=no
16233             ;;
16234         esac
16235         ;;
16236
16237       vxworks*)
16238         # FIXME: insert proper C++ library support
16239         ld_shlibs_CXX=no
16240         ;;
16241
16242       *)
16243         # FIXME: insert proper C++ library support
16244         ld_shlibs_CXX=no
16245         ;;
16246     esac
16247
16248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16249 $as_echo "$ld_shlibs_CXX" >&6; }
16250     test no = "$ld_shlibs_CXX" && can_build_shared=no
16251
16252     GCC_CXX=$GXX
16253     LD_CXX=$LD
16254
16255     ## CAVEAT EMPTOR:
16256     ## There is no encapsulation within the following macros, do not change
16257     ## the running order or otherwise move them around unless you know exactly
16258     ## what you are doing...
16259     # Dependencies to place before and after the object being linked:
16260 predep_objects_CXX=
16261 postdep_objects_CXX=
16262 predeps_CXX=
16263 postdeps_CXX=
16264 compiler_lib_search_path_CXX=
16265
16266 cat > conftest.$ac_ext <<_LT_EOF
16267 class Foo
16268 {
16269 public:
16270   Foo (void) { a = 0; }
16271 private:
16272   int a;
16273 };
16274 _LT_EOF
16275
16276
16277 _lt_libdeps_save_CFLAGS=$CFLAGS
16278 case "$CC $CFLAGS " in #(
16279 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16280 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16281 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16282 esac
16283
16284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16285   (eval $ac_compile) 2>&5
16286   ac_status=$?
16287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16288   test $ac_status = 0; }; then
16289   # Parse the compiler output and extract the necessary
16290   # objects, libraries and library flags.
16291
16292   # Sentinel used to keep track of whether or not we are before
16293   # the conftest object file.
16294   pre_test_object_deps_done=no
16295
16296   for p in `eval "$output_verbose_link_cmd"`; do
16297     case $prev$p in
16298
16299     -L* | -R* | -l*)
16300        # Some compilers place space between "-{L,R}" and the path.
16301        # Remove the space.
16302        if test x-L = "$p" ||
16303           test x-R = "$p"; then
16304          prev=$p
16305          continue
16306        fi
16307
16308        # Expand the sysroot to ease extracting the directories later.
16309        if test -z "$prev"; then
16310          case $p in
16311          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16312          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16313          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16314          esac
16315        fi
16316        case $p in
16317        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16318        esac
16319        if test no = "$pre_test_object_deps_done"; then
16320          case $prev in
16321          -L | -R)
16322            # Internal compiler library paths should come after those
16323            # provided the user.  The postdeps already come after the
16324            # user supplied libs so there is no need to process them.
16325            if test -z "$compiler_lib_search_path_CXX"; then
16326              compiler_lib_search_path_CXX=$prev$p
16327            else
16328              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16329            fi
16330            ;;
16331          # The "-l" case would never come before the object being
16332          # linked, so don't bother handling this case.
16333          esac
16334        else
16335          if test -z "$postdeps_CXX"; then
16336            postdeps_CXX=$prev$p
16337          else
16338            postdeps_CXX="${postdeps_CXX} $prev$p"
16339          fi
16340        fi
16341        prev=
16342        ;;
16343
16344     *.lto.$objext) ;; # Ignore GCC LTO objects
16345     *.$objext)
16346        # This assumes that the test object file only shows up
16347        # once in the compiler output.
16348        if test "$p" = "conftest.$objext"; then
16349          pre_test_object_deps_done=yes
16350          continue
16351        fi
16352
16353        if test no = "$pre_test_object_deps_done"; then
16354          if test -z "$predep_objects_CXX"; then
16355            predep_objects_CXX=$p
16356          else
16357            predep_objects_CXX="$predep_objects_CXX $p"
16358          fi
16359        else
16360          if test -z "$postdep_objects_CXX"; then
16361            postdep_objects_CXX=$p
16362          else
16363            postdep_objects_CXX="$postdep_objects_CXX $p"
16364          fi
16365        fi
16366        ;;
16367
16368     *) ;; # Ignore the rest.
16369
16370     esac
16371   done
16372
16373   # Clean up.
16374   rm -f a.out a.exe
16375 else
16376   echo "libtool.m4: error: problem compiling CXX test program"
16377 fi
16378
16379 $RM -f confest.$objext
16380 CFLAGS=$_lt_libdeps_save_CFLAGS
16381
16382 # PORTME: override above test on systems where it is broken
16383 case $host_os in
16384 interix[3-9]*)
16385   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16386   # hack all around it, let's just trust "g++" to DTRT.
16387   predep_objects_CXX=
16388   postdep_objects_CXX=
16389   postdeps_CXX=
16390   ;;
16391 esac
16392
16393
16394 case " $postdeps_CXX " in
16395 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16396 esac
16397  compiler_lib_search_dirs_CXX=
16398 if test -n "${compiler_lib_search_path_CXX}"; then
16399  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16400 fi
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432     lt_prog_compiler_wl_CXX=
16433 lt_prog_compiler_pic_CXX=
16434 lt_prog_compiler_static_CXX=
16435
16436
16437   # C++ specific cases for pic, static, wl, etc.
16438   if test yes = "$GXX"; then
16439     lt_prog_compiler_wl_CXX='-Wl,'
16440     lt_prog_compiler_static_CXX='-static'
16441
16442     case $host_os in
16443     aix*)
16444       # All AIX code is PIC.
16445       if test ia64 = "$host_cpu"; then
16446         # AIX 5 now supports IA64 processor
16447         lt_prog_compiler_static_CXX='-Bstatic'
16448       fi
16449       lt_prog_compiler_pic_CXX='-fPIC'
16450       ;;
16451
16452     amigaos*)
16453       case $host_cpu in
16454       powerpc)
16455             # see comment about AmigaOS4 .so support
16456             lt_prog_compiler_pic_CXX='-fPIC'
16457         ;;
16458       m68k)
16459             # FIXME: we need at least 68020 code to build shared libraries, but
16460             # adding the '-m68020' flag to GCC prevents building anything better,
16461             # like '-m68040'.
16462             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16463         ;;
16464       esac
16465       ;;
16466
16467     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16468       # PIC is the default for these OSes.
16469       ;;
16470     mingw* | cygwin* | os2* | pw32* | cegcc*)
16471       # This hack is so that the source file can tell whether it is being
16472       # built for inclusion in a dll (and should export symbols for example).
16473       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16474       # (--disable-auto-import) libraries
16475       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16476       case $host_os in
16477       os2*)
16478         lt_prog_compiler_static_CXX='$wl-static'
16479         ;;
16480       esac
16481       ;;
16482     darwin* | rhapsody*)
16483       # PIC is the default on this platform
16484       # Common symbols not allowed in MH_DYLIB files
16485       lt_prog_compiler_pic_CXX='-fno-common'
16486       ;;
16487     *djgpp*)
16488       # DJGPP does not support shared libraries at all
16489       lt_prog_compiler_pic_CXX=
16490       ;;
16491     haiku*)
16492       # PIC is the default for Haiku.
16493       # The "-static" flag exists, but is broken.
16494       lt_prog_compiler_static_CXX=
16495       ;;
16496     interix[3-9]*)
16497       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16498       # Instead, we relocate shared libraries at runtime.
16499       ;;
16500     sysv4*MP*)
16501       if test -d /usr/nec; then
16502         lt_prog_compiler_pic_CXX=-Kconform_pic
16503       fi
16504       ;;
16505     hpux*)
16506       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16507       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16508       # sets the default TLS model and affects inlining.
16509       case $host_cpu in
16510       hppa*64*)
16511         ;;
16512       *)
16513         lt_prog_compiler_pic_CXX='-fPIC'
16514         ;;
16515       esac
16516       ;;
16517     *qnx* | *nto*)
16518       # QNX uses GNU C++, but need to define -shared option too, otherwise
16519       # it will coredump.
16520       lt_prog_compiler_pic_CXX='-fPIC -shared'
16521       ;;
16522     *)
16523       lt_prog_compiler_pic_CXX='-fPIC'
16524       ;;
16525     esac
16526   else
16527     case $host_os in
16528       aix[4-9]*)
16529         # All AIX code is PIC.
16530         if test ia64 = "$host_cpu"; then
16531           # AIX 5 now supports IA64 processor
16532           lt_prog_compiler_static_CXX='-Bstatic'
16533         else
16534           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16535         fi
16536         ;;
16537       chorus*)
16538         case $cc_basename in
16539         cxch68*)
16540           # Green Hills C++ Compiler
16541           # _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"
16542           ;;
16543         esac
16544         ;;
16545       mingw* | cygwin* | os2* | pw32* | cegcc*)
16546         # This hack is so that the source file can tell whether it is being
16547         # built for inclusion in a dll (and should export symbols for example).
16548         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16549         ;;
16550       dgux*)
16551         case $cc_basename in
16552           ec++*)
16553             lt_prog_compiler_pic_CXX='-KPIC'
16554             ;;
16555           ghcx*)
16556             # Green Hills C++ Compiler
16557             lt_prog_compiler_pic_CXX='-pic'
16558             ;;
16559           *)
16560             ;;
16561         esac
16562         ;;
16563       freebsd* | dragonfly*)
16564         # FreeBSD uses GNU C++
16565         ;;
16566       hpux9* | hpux10* | hpux11*)
16567         case $cc_basename in
16568           CC*)
16569             lt_prog_compiler_wl_CXX='-Wl,'
16570             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16571             if test ia64 != "$host_cpu"; then
16572               lt_prog_compiler_pic_CXX='+Z'
16573             fi
16574             ;;
16575           aCC*)
16576             lt_prog_compiler_wl_CXX='-Wl,'
16577             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16578             case $host_cpu in
16579             hppa*64*|ia64*)
16580               # +Z the default
16581               ;;
16582             *)
16583               lt_prog_compiler_pic_CXX='+Z'
16584               ;;
16585             esac
16586             ;;
16587           *)
16588             ;;
16589         esac
16590         ;;
16591       interix*)
16592         # This is c89, which is MS Visual C++ (no shared libs)
16593         # Anyone wants to do a port?
16594         ;;
16595       irix5* | irix6* | nonstopux*)
16596         case $cc_basename in
16597           CC*)
16598             lt_prog_compiler_wl_CXX='-Wl,'
16599             lt_prog_compiler_static_CXX='-non_shared'
16600             # CC pic flag -KPIC is the default.
16601             ;;
16602           *)
16603             ;;
16604         esac
16605         ;;
16606       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16607         case $cc_basename in
16608           KCC*)
16609             # KAI C++ Compiler
16610             lt_prog_compiler_wl_CXX='--backend -Wl,'
16611             lt_prog_compiler_pic_CXX='-fPIC'
16612             ;;
16613           ecpc* )
16614             # old Intel C++ for x86_64, which still supported -KPIC.
16615             lt_prog_compiler_wl_CXX='-Wl,'
16616             lt_prog_compiler_pic_CXX='-KPIC'
16617             lt_prog_compiler_static_CXX='-static'
16618             ;;
16619           icpc* )
16620             # Intel C++, used to be incompatible with GCC.
16621             # ICC 10 doesn't accept -KPIC any more.
16622             lt_prog_compiler_wl_CXX='-Wl,'
16623             lt_prog_compiler_pic_CXX='-fPIC'
16624             lt_prog_compiler_static_CXX='-static'
16625             ;;
16626           pgCC* | pgcpp*)
16627             # Portland Group C++ compiler
16628             lt_prog_compiler_wl_CXX='-Wl,'
16629             lt_prog_compiler_pic_CXX='-fpic'
16630             lt_prog_compiler_static_CXX='-Bstatic'
16631             ;;
16632           cxx*)
16633             # Compaq C++
16634             # Make sure the PIC flag is empty.  It appears that all Alpha
16635             # Linux and Compaq Tru64 Unix objects are PIC.
16636             lt_prog_compiler_pic_CXX=
16637             lt_prog_compiler_static_CXX='-non_shared'
16638             ;;
16639           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16640             # IBM XL 8.0, 9.0 on PPC and BlueGene
16641             lt_prog_compiler_wl_CXX='-Wl,'
16642             lt_prog_compiler_pic_CXX='-qpic'
16643             lt_prog_compiler_static_CXX='-qstaticlink'
16644             ;;
16645           *)
16646             case `$CC -V 2>&1 | sed 5q` in
16647             *Sun\ C*)
16648               # Sun C++ 5.9
16649               lt_prog_compiler_pic_CXX='-KPIC'
16650               lt_prog_compiler_static_CXX='-Bstatic'
16651               lt_prog_compiler_wl_CXX='-Qoption ld '
16652               ;;
16653             esac
16654             ;;
16655         esac
16656         ;;
16657       lynxos*)
16658         ;;
16659       m88k*)
16660         ;;
16661       mvs*)
16662         case $cc_basename in
16663           cxx*)
16664             lt_prog_compiler_pic_CXX='-W c,exportall'
16665             ;;
16666           *)
16667             ;;
16668         esac
16669         ;;
16670       netbsd* | netbsdelf*-gnu)
16671         ;;
16672       *qnx* | *nto*)
16673         # QNX uses GNU C++, but need to define -shared option too, otherwise
16674         # it will coredump.
16675         lt_prog_compiler_pic_CXX='-fPIC -shared'
16676         ;;
16677       osf3* | osf4* | osf5*)
16678         case $cc_basename in
16679           KCC*)
16680             lt_prog_compiler_wl_CXX='--backend -Wl,'
16681             ;;
16682           RCC*)
16683             # Rational C++ 2.4.1
16684             lt_prog_compiler_pic_CXX='-pic'
16685             ;;
16686           cxx*)
16687             # Digital/Compaq C++
16688             lt_prog_compiler_wl_CXX='-Wl,'
16689             # Make sure the PIC flag is empty.  It appears that all Alpha
16690             # Linux and Compaq Tru64 Unix objects are PIC.
16691             lt_prog_compiler_pic_CXX=
16692             lt_prog_compiler_static_CXX='-non_shared'
16693             ;;
16694           *)
16695             ;;
16696         esac
16697         ;;
16698       psos*)
16699         ;;
16700       solaris*)
16701         case $cc_basename in
16702           CC* | sunCC*)
16703             # Sun C++ 4.2, 5.x and Centerline C++
16704             lt_prog_compiler_pic_CXX='-KPIC'
16705             lt_prog_compiler_static_CXX='-Bstatic'
16706             lt_prog_compiler_wl_CXX='-Qoption ld '
16707             ;;
16708           gcx*)
16709             # Green Hills C++ Compiler
16710             lt_prog_compiler_pic_CXX='-PIC'
16711             ;;
16712           *)
16713             ;;
16714         esac
16715         ;;
16716       sunos4*)
16717         case $cc_basename in
16718           CC*)
16719             # Sun C++ 4.x
16720             lt_prog_compiler_pic_CXX='-pic'
16721             lt_prog_compiler_static_CXX='-Bstatic'
16722             ;;
16723           lcc*)
16724             # Lucid
16725             lt_prog_compiler_pic_CXX='-pic'
16726             ;;
16727           *)
16728             ;;
16729         esac
16730         ;;
16731       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16732         case $cc_basename in
16733           CC*)
16734             lt_prog_compiler_wl_CXX='-Wl,'
16735             lt_prog_compiler_pic_CXX='-KPIC'
16736             lt_prog_compiler_static_CXX='-Bstatic'
16737             ;;
16738         esac
16739         ;;
16740       tandem*)
16741         case $cc_basename in
16742           NCC*)
16743             # NonStop-UX NCC 3.20
16744             lt_prog_compiler_pic_CXX='-KPIC'
16745             ;;
16746           *)
16747             ;;
16748         esac
16749         ;;
16750       vxworks*)
16751         ;;
16752       *)
16753         lt_prog_compiler_can_build_shared_CXX=no
16754         ;;
16755     esac
16756   fi
16757
16758 case $host_os in
16759   # For platforms that do not support PIC, -DPIC is meaningless:
16760   *djgpp*)
16761     lt_prog_compiler_pic_CXX=
16762     ;;
16763   *)
16764     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16765     ;;
16766 esac
16767
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16769 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16770 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16771   $as_echo_n "(cached) " >&6
16772 else
16773   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16774 fi
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16776 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16777 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16778
16779 #
16780 # Check to make sure the PIC flag actually works.
16781 #
16782 if test -n "$lt_prog_compiler_pic_CXX"; then
16783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16784 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16785 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16786   $as_echo_n "(cached) " >&6
16787 else
16788   lt_cv_prog_compiler_pic_works_CXX=no
16789    ac_outfile=conftest.$ac_objext
16790    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16791    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16792    # Insert the option either (1) after the last *FLAGS variable, or
16793    # (2) before a word containing "conftest.", or (3) at the end.
16794    # Note that $ac_compile itself does not contain backslashes and begins
16795    # with a dollar sign (not a hyphen), so the echo should work correctly.
16796    # The option is referenced via a variable to avoid confusing sed.
16797    lt_compile=`echo "$ac_compile" | $SED \
16798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16800    -e 's:$: $lt_compiler_flag:'`
16801    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16802    (eval "$lt_compile" 2>conftest.err)
16803    ac_status=$?
16804    cat conftest.err >&5
16805    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806    if (exit $ac_status) && test -s "$ac_outfile"; then
16807      # The compiler can only warn and ignore the option if not recognized
16808      # So say no if there are warnings other than the usual output.
16809      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16810      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16811      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16812        lt_cv_prog_compiler_pic_works_CXX=yes
16813      fi
16814    fi
16815    $RM conftest*
16816
16817 fi
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16819 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16820
16821 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16822     case $lt_prog_compiler_pic_CXX in
16823      "" | " "*) ;;
16824      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16825      esac
16826 else
16827     lt_prog_compiler_pic_CXX=
16828      lt_prog_compiler_can_build_shared_CXX=no
16829 fi
16830
16831 fi
16832
16833
16834
16835
16836
16837 #
16838 # Check to make sure the static flag actually works.
16839 #
16840 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16842 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16843 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16844   $as_echo_n "(cached) " >&6
16845 else
16846   lt_cv_prog_compiler_static_works_CXX=no
16847    save_LDFLAGS=$LDFLAGS
16848    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16849    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16850    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16851      # The linker can only warn and ignore the option if not recognized
16852      # So say no if there are warnings
16853      if test -s conftest.err; then
16854        # Append any errors to the config.log.
16855        cat conftest.err 1>&5
16856        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16857        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16858        if diff conftest.exp conftest.er2 >/dev/null; then
16859          lt_cv_prog_compiler_static_works_CXX=yes
16860        fi
16861      else
16862        lt_cv_prog_compiler_static_works_CXX=yes
16863      fi
16864    fi
16865    $RM -r conftest*
16866    LDFLAGS=$save_LDFLAGS
16867
16868 fi
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16870 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16871
16872 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16873     :
16874 else
16875     lt_prog_compiler_static_CXX=
16876 fi
16877
16878
16879
16880
16881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16882 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16883 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16884   $as_echo_n "(cached) " >&6
16885 else
16886   lt_cv_prog_compiler_c_o_CXX=no
16887    $RM -r conftest 2>/dev/null
16888    mkdir conftest
16889    cd conftest
16890    mkdir out
16891    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16892
16893    lt_compiler_flag="-o out/conftest2.$ac_objext"
16894    # Insert the option either (1) after the last *FLAGS variable, or
16895    # (2) before a word containing "conftest.", or (3) at the end.
16896    # Note that $ac_compile itself does not contain backslashes and begins
16897    # with a dollar sign (not a hyphen), so the echo should work correctly.
16898    lt_compile=`echo "$ac_compile" | $SED \
16899    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16901    -e 's:$: $lt_compiler_flag:'`
16902    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16903    (eval "$lt_compile" 2>out/conftest.err)
16904    ac_status=$?
16905    cat out/conftest.err >&5
16906    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16908    then
16909      # The compiler can only warn and ignore the option if not recognized
16910      # So say no if there are warnings
16911      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16912      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16913      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16914        lt_cv_prog_compiler_c_o_CXX=yes
16915      fi
16916    fi
16917    chmod u+w . 2>&5
16918    $RM conftest*
16919    # SGI C++ compiler will create directory out/ii_files/ for
16920    # template instantiation
16921    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16922    $RM out/* && rmdir out
16923    cd ..
16924    $RM -r conftest
16925    $RM conftest*
16926
16927 fi
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16929 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16930
16931
16932
16933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16934 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16935 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16936   $as_echo_n "(cached) " >&6
16937 else
16938   lt_cv_prog_compiler_c_o_CXX=no
16939    $RM -r conftest 2>/dev/null
16940    mkdir conftest
16941    cd conftest
16942    mkdir out
16943    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16944
16945    lt_compiler_flag="-o out/conftest2.$ac_objext"
16946    # Insert the option either (1) after the last *FLAGS variable, or
16947    # (2) before a word containing "conftest.", or (3) at the end.
16948    # Note that $ac_compile itself does not contain backslashes and begins
16949    # with a dollar sign (not a hyphen), so the echo should work correctly.
16950    lt_compile=`echo "$ac_compile" | $SED \
16951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16953    -e 's:$: $lt_compiler_flag:'`
16954    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16955    (eval "$lt_compile" 2>out/conftest.err)
16956    ac_status=$?
16957    cat out/conftest.err >&5
16958    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16960    then
16961      # The compiler can only warn and ignore the option if not recognized
16962      # So say no if there are warnings
16963      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16964      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16965      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16966        lt_cv_prog_compiler_c_o_CXX=yes
16967      fi
16968    fi
16969    chmod u+w . 2>&5
16970    $RM conftest*
16971    # SGI C++ compiler will create directory out/ii_files/ for
16972    # template instantiation
16973    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16974    $RM out/* && rmdir out
16975    cd ..
16976    $RM -r conftest
16977    $RM conftest*
16978
16979 fi
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16981 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16982
16983
16984
16985
16986 hard_links=nottested
16987 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16988   # do not overwrite the value of need_locks provided by the user
16989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16990 $as_echo_n "checking if we can lock with hard links... " >&6; }
16991   hard_links=yes
16992   $RM conftest*
16993   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16994   touch conftest.a
16995   ln conftest.a conftest.b 2>&5 || hard_links=no
16996   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16998 $as_echo "$hard_links" >&6; }
16999   if test no = "$hard_links"; then
17000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17001 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17002     need_locks=warn
17003   fi
17004 else
17005   need_locks=no
17006 fi
17007
17008
17009
17010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17011 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17012
17013   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17014   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17015   case $host_os in
17016   aix[4-9]*)
17017     # If we're using GNU nm, then we don't want the "-C" option.
17018     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17019     # Without the "-l" option, or with the "-B" option, AIX nm treats
17020     # weak defined symbols like other global defined symbols, whereas
17021     # GNU nm marks them as "W".
17022     # While the 'weak' keyword is ignored in the Export File, we need
17023     # it in the Import File for the 'aix-soname' feature, so we have
17024     # to replace the "-B" option with "-P" for AIX nm.
17025     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17026       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17027     else
17028       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17029     fi
17030     ;;
17031   pw32*)
17032     export_symbols_cmds_CXX=$ltdll_cmds
17033     ;;
17034   cygwin* | mingw* | cegcc*)
17035     case $cc_basename in
17036     cl*)
17037       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17038       ;;
17039     *)
17040       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'
17041       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17042       ;;
17043     esac
17044     ;;
17045   linux* | k*bsd*-gnu | gnu*)
17046     link_all_deplibs_CXX=no
17047     ;;
17048   *)
17049     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17050     ;;
17051   esac
17052
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17054 $as_echo "$ld_shlibs_CXX" >&6; }
17055 test no = "$ld_shlibs_CXX" && can_build_shared=no
17056
17057 with_gnu_ld_CXX=$with_gnu_ld
17058
17059
17060
17061
17062
17063
17064 #
17065 # Do we need to explicitly link libc?
17066 #
17067 case "x$archive_cmds_need_lc_CXX" in
17068 x|xyes)
17069   # Assume -lc should be added
17070   archive_cmds_need_lc_CXX=yes
17071
17072   if test yes,yes = "$GCC,$enable_shared"; then
17073     case $archive_cmds_CXX in
17074     *'~'*)
17075       # FIXME: we may have to deal with multi-command sequences.
17076       ;;
17077     '$CC '*)
17078       # Test whether the compiler implicitly links with -lc since on some
17079       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17080       # to ld, don't add -lc before -lgcc.
17081       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17082 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17083 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17084   $as_echo_n "(cached) " >&6
17085 else
17086   $RM conftest*
17087         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17088
17089         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17090   (eval $ac_compile) 2>&5
17091   ac_status=$?
17092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17093   test $ac_status = 0; } 2>conftest.err; then
17094           soname=conftest
17095           lib=conftest
17096           libobjs=conftest.$ac_objext
17097           deplibs=
17098           wl=$lt_prog_compiler_wl_CXX
17099           pic_flag=$lt_prog_compiler_pic_CXX
17100           compiler_flags=-v
17101           linker_flags=-v
17102           verstring=
17103           output_objdir=.
17104           libname=conftest
17105           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17106           allow_undefined_flag_CXX=
17107           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17108   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17109   ac_status=$?
17110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17111   test $ac_status = 0; }
17112           then
17113             lt_cv_archive_cmds_need_lc_CXX=no
17114           else
17115             lt_cv_archive_cmds_need_lc_CXX=yes
17116           fi
17117           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17118         else
17119           cat conftest.err 1>&5
17120         fi
17121         $RM conftest*
17122
17123 fi
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17125 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17126       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17127       ;;
17128     esac
17129   fi
17130   ;;
17131 esac
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17196
17197 library_names_spec=
17198 libname_spec='lib$name'
17199 soname_spec=
17200 shrext_cmds=.so
17201 postinstall_cmds=
17202 postuninstall_cmds=
17203 finish_cmds=
17204 finish_eval=
17205 shlibpath_var=
17206 shlibpath_overrides_runpath=unknown
17207 version_type=none
17208 dynamic_linker="$host_os ld.so"
17209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17210 need_lib_prefix=unknown
17211 hardcode_into_libs=no
17212
17213 # when you set need_version to no, make sure it does not cause -set_version
17214 # flags to be left without arguments
17215 need_version=unknown
17216
17217
17218
17219 case $host_os in
17220 aix3*)
17221   version_type=linux # correct to gnu/linux during the next big refactor
17222   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17223   shlibpath_var=LIBPATH
17224
17225   # AIX 3 has no versioning support, so we append a major version to the name.
17226   soname_spec='$libname$release$shared_ext$major'
17227   ;;
17228
17229 aix[4-9]*)
17230   version_type=linux # correct to gnu/linux during the next big refactor
17231   need_lib_prefix=no
17232   need_version=no
17233   hardcode_into_libs=yes
17234   if test ia64 = "$host_cpu"; then
17235     # AIX 5 supports IA64
17236     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17237     shlibpath_var=LD_LIBRARY_PATH
17238   else
17239     # With GCC up to 2.95.x, collect2 would create an import file
17240     # for dependence libraries.  The import file would start with
17241     # the line '#! .'.  This would cause the generated library to
17242     # depend on '.', always an invalid library.  This was fixed in
17243     # development snapshots of GCC prior to 3.0.
17244     case $host_os in
17245       aix4 | aix4.[01] | aix4.[01].*)
17246       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17247            echo ' yes '
17248            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17249         :
17250       else
17251         can_build_shared=no
17252       fi
17253       ;;
17254     esac
17255     # Using Import Files as archive members, it is possible to support
17256     # filename-based versioning of shared library archives on AIX. While
17257     # this would work for both with and without runtime linking, it will
17258     # prevent static linking of such archives. So we do filename-based
17259     # shared library versioning with .so extension only, which is used
17260     # when both runtime linking and shared linking is enabled.
17261     # Unfortunately, runtime linking may impact performance, so we do
17262     # not want this to be the default eventually. Also, we use the
17263     # versioned .so libs for executables only if there is the -brtl
17264     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17265     # To allow for filename-based versioning support, we need to create
17266     # libNAME.so.V as an archive file, containing:
17267     # *) an Import File, referring to the versioned filename of the
17268     #    archive as well as the shared archive member, telling the
17269     #    bitwidth (32 or 64) of that shared object, and providing the
17270     #    list of exported symbols of that shared object, eventually
17271     #    decorated with the 'weak' keyword
17272     # *) the shared object with the F_LOADONLY flag set, to really avoid
17273     #    it being seen by the linker.
17274     # At run time we better use the real file rather than another symlink,
17275     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17276
17277     case $with_aix_soname,$aix_use_runtimelinking in
17278     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17279     # soname into executable. Probably we can add versioning support to
17280     # collect2, so additional links can be useful in future.
17281     aix,yes) # traditional libtool
17282       dynamic_linker='AIX unversionable lib.so'
17283       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17284       # instead of lib<name>.a to let people know that these are not
17285       # typical AIX shared libraries.
17286       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17287       ;;
17288     aix,no) # traditional AIX only
17289       dynamic_linker='AIX lib.a(lib.so.V)'
17290       # We preserve .a as extension for shared libraries through AIX4.2
17291       # and later when we are not doing run time linking.
17292       library_names_spec='$libname$release.a $libname.a'
17293       soname_spec='$libname$release$shared_ext$major'
17294       ;;
17295     svr4,*) # full svr4 only
17296       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17297       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17298       # We do not specify a path in Import Files, so LIBPATH fires.
17299       shlibpath_overrides_runpath=yes
17300       ;;
17301     *,yes) # both, prefer svr4
17302       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17303       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17304       # unpreferred sharedlib libNAME.a needs extra handling
17305       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17306       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17307       # We do not specify a path in Import Files, so LIBPATH fires.
17308       shlibpath_overrides_runpath=yes
17309       ;;
17310     *,no) # both, prefer aix
17311       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17312       library_names_spec='$libname$release.a $libname.a'
17313       soname_spec='$libname$release$shared_ext$major'
17314       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17315       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17316       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17317       ;;
17318     esac
17319     shlibpath_var=LIBPATH
17320   fi
17321   ;;
17322
17323 amigaos*)
17324   case $host_cpu in
17325   powerpc)
17326     # Since July 2007 AmigaOS4 officially supports .so libraries.
17327     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17328     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17329     ;;
17330   m68k)
17331     library_names_spec='$libname.ixlibrary $libname.a'
17332     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17333     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'
17334     ;;
17335   esac
17336   ;;
17337
17338 beos*)
17339   library_names_spec='$libname$shared_ext'
17340   dynamic_linker="$host_os ld.so"
17341   shlibpath_var=LIBRARY_PATH
17342   ;;
17343
17344 bsdi[45]*)
17345   version_type=linux # correct to gnu/linux during the next big refactor
17346   need_version=no
17347   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17348   soname_spec='$libname$release$shared_ext$major'
17349   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17350   shlibpath_var=LD_LIBRARY_PATH
17351   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17352   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17353   # the default ld.so.conf also contains /usr/contrib/lib and
17354   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17355   # libtool to hard-code these into programs
17356   ;;
17357
17358 cygwin* | mingw* | pw32* | cegcc*)
17359   version_type=windows
17360   shrext_cmds=.dll
17361   need_version=no
17362   need_lib_prefix=no
17363
17364   case $GCC,$cc_basename in
17365   yes,*)
17366     # gcc
17367     library_names_spec='$libname.dll.a'
17368     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17369     postinstall_cmds='base_file=`basename \$file`~
17370       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17371       dldir=$destdir/`dirname \$dlpath`~
17372       test -d \$dldir || mkdir -p \$dldir~
17373       $install_prog $dir/$dlname \$dldir/$dlname~
17374       chmod a+x \$dldir/$dlname~
17375       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17376         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17377       fi'
17378     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17379       dlpath=$dir/\$dldll~
17380        $RM \$dlpath'
17381     shlibpath_overrides_runpath=yes
17382
17383     case $host_os in
17384     cygwin*)
17385       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17386       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17387
17388       ;;
17389     mingw* | cegcc*)
17390       # MinGW DLLs use traditional 'lib' prefix
17391       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17392       ;;
17393     pw32*)
17394       # pw32 DLLs use 'pw' prefix rather than 'lib'
17395       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17396       ;;
17397     esac
17398     dynamic_linker='Win32 ld.exe'
17399     ;;
17400
17401   *,cl*)
17402     # Native MSVC
17403     libname_spec='$name'
17404     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17405     library_names_spec='$libname.dll.lib'
17406
17407     case $build_os in
17408     mingw*)
17409       sys_lib_search_path_spec=
17410       lt_save_ifs=$IFS
17411       IFS=';'
17412       for lt_path in $LIB
17413       do
17414         IFS=$lt_save_ifs
17415         # Let DOS variable expansion print the short 8.3 style file name.
17416         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17417         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17418       done
17419       IFS=$lt_save_ifs
17420       # Convert to MSYS style.
17421       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17422       ;;
17423     cygwin*)
17424       # Convert to unix form, then to dos form, then back to unix form
17425       # but this time dos style (no spaces!) so that the unix form looks
17426       # like /cygdrive/c/PROGRA~1:/cygdr...
17427       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17428       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17429       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17430       ;;
17431     *)
17432       sys_lib_search_path_spec=$LIB
17433       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17434         # It is most probably a Windows format PATH.
17435         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17436       else
17437         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17438       fi
17439       # FIXME: find the short name or the path components, as spaces are
17440       # common. (e.g. "Program Files" -> "PROGRA~1")
17441       ;;
17442     esac
17443
17444     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17445     postinstall_cmds='base_file=`basename \$file`~
17446       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17447       dldir=$destdir/`dirname \$dlpath`~
17448       test -d \$dldir || mkdir -p \$dldir~
17449       $install_prog $dir/$dlname \$dldir/$dlname'
17450     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17451       dlpath=$dir/\$dldll~
17452        $RM \$dlpath'
17453     shlibpath_overrides_runpath=yes
17454     dynamic_linker='Win32 link.exe'
17455     ;;
17456
17457   *)
17458     # Assume MSVC wrapper
17459     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17460     dynamic_linker='Win32 ld.exe'
17461     ;;
17462   esac
17463   # FIXME: first we should search . and the directory the executable is in
17464   shlibpath_var=PATH
17465   ;;
17466
17467 darwin* | rhapsody*)
17468   dynamic_linker="$host_os dyld"
17469   version_type=darwin
17470   need_lib_prefix=no
17471   need_version=no
17472   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17473   soname_spec='$libname$release$major$shared_ext'
17474   shlibpath_overrides_runpath=yes
17475   shlibpath_var=DYLD_LIBRARY_PATH
17476   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17477
17478   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17479   ;;
17480
17481 dgux*)
17482   version_type=linux # correct to gnu/linux during the next big refactor
17483   need_lib_prefix=no
17484   need_version=no
17485   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17486   soname_spec='$libname$release$shared_ext$major'
17487   shlibpath_var=LD_LIBRARY_PATH
17488   ;;
17489
17490 freebsd* | dragonfly*)
17491   # DragonFly does not have aout.  When/if they implement a new
17492   # versioning mechanism, adjust this.
17493   if test -x /usr/bin/objformat; then
17494     objformat=`/usr/bin/objformat`
17495   else
17496     case $host_os in
17497     freebsd[23].*) objformat=aout ;;
17498     *) objformat=elf ;;
17499     esac
17500   fi
17501   version_type=freebsd-$objformat
17502   case $version_type in
17503     freebsd-elf*)
17504       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17505       soname_spec='$libname$release$shared_ext$major'
17506       need_version=no
17507       need_lib_prefix=no
17508       ;;
17509     freebsd-*)
17510       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17511       need_version=yes
17512       ;;
17513   esac
17514   shlibpath_var=LD_LIBRARY_PATH
17515   case $host_os in
17516   freebsd2.*)
17517     shlibpath_overrides_runpath=yes
17518     ;;
17519   freebsd3.[01]* | freebsdelf3.[01]*)
17520     shlibpath_overrides_runpath=yes
17521     hardcode_into_libs=yes
17522     ;;
17523   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17524   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17525     shlibpath_overrides_runpath=no
17526     hardcode_into_libs=yes
17527     ;;
17528   *) # from 4.6 on, and DragonFly
17529     shlibpath_overrides_runpath=yes
17530     hardcode_into_libs=yes
17531     ;;
17532   esac
17533   ;;
17534
17535 haiku*)
17536   version_type=linux # correct to gnu/linux during the next big refactor
17537   need_lib_prefix=no
17538   need_version=no
17539   dynamic_linker="$host_os runtime_loader"
17540   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17541   soname_spec='$libname$release$shared_ext$major'
17542   shlibpath_var=LIBRARY_PATH
17543   shlibpath_overrides_runpath=no
17544   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17545   hardcode_into_libs=yes
17546   ;;
17547
17548 hpux9* | hpux10* | hpux11*)
17549   # Give a soname corresponding to the major version so that dld.sl refuses to
17550   # link against other versions.
17551   version_type=sunos
17552   need_lib_prefix=no
17553   need_version=no
17554   case $host_cpu in
17555   ia64*)
17556     shrext_cmds='.so'
17557     hardcode_into_libs=yes
17558     dynamic_linker="$host_os dld.so"
17559     shlibpath_var=LD_LIBRARY_PATH
17560     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17561     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17562     soname_spec='$libname$release$shared_ext$major'
17563     if test 32 = "$HPUX_IA64_MODE"; then
17564       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17565       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17566     else
17567       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17568       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17569     fi
17570     ;;
17571   hppa*64*)
17572     shrext_cmds='.sl'
17573     hardcode_into_libs=yes
17574     dynamic_linker="$host_os dld.sl"
17575     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17576     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17577     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17578     soname_spec='$libname$release$shared_ext$major'
17579     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17580     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17581     ;;
17582   *)
17583     shrext_cmds='.sl'
17584     dynamic_linker="$host_os dld.sl"
17585     shlibpath_var=SHLIB_PATH
17586     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17587     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17588     soname_spec='$libname$release$shared_ext$major'
17589     ;;
17590   esac
17591   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17592   postinstall_cmds='chmod 555 $lib'
17593   # or fails outright, so override atomically:
17594   install_override_mode=555
17595   ;;
17596
17597 interix[3-9]*)
17598   version_type=linux # correct to gnu/linux during the next big refactor
17599   need_lib_prefix=no
17600   need_version=no
17601   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17602   soname_spec='$libname$release$shared_ext$major'
17603   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17604   shlibpath_var=LD_LIBRARY_PATH
17605   shlibpath_overrides_runpath=no
17606   hardcode_into_libs=yes
17607   ;;
17608
17609 irix5* | irix6* | nonstopux*)
17610   case $host_os in
17611     nonstopux*) version_type=nonstopux ;;
17612     *)
17613         if test yes = "$lt_cv_prog_gnu_ld"; then
17614                 version_type=linux # correct to gnu/linux during the next big refactor
17615         else
17616                 version_type=irix
17617         fi ;;
17618   esac
17619   need_lib_prefix=no
17620   need_version=no
17621   soname_spec='$libname$release$shared_ext$major'
17622   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17623   case $host_os in
17624   irix5* | nonstopux*)
17625     libsuff= shlibsuff=
17626     ;;
17627   *)
17628     case $LD in # libtool.m4 will add one of these switches to LD
17629     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17630       libsuff= shlibsuff= libmagic=32-bit;;
17631     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17632       libsuff=32 shlibsuff=N32 libmagic=N32;;
17633     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17634       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17635     *) libsuff= shlibsuff= libmagic=never-match;;
17636     esac
17637     ;;
17638   esac
17639   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17640   shlibpath_overrides_runpath=no
17641   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17642   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17643   hardcode_into_libs=yes
17644   ;;
17645
17646 # No shared lib support for Linux oldld, aout, or coff.
17647 linux*oldld* | linux*aout* | linux*coff*)
17648   dynamic_linker=no
17649   ;;
17650
17651 linux*android*)
17652   version_type=none # Android doesn't support versioned libraries.
17653   need_lib_prefix=no
17654   need_version=no
17655   library_names_spec='$libname$release$shared_ext'
17656   soname_spec='$libname$release$shared_ext'
17657   finish_cmds=
17658   shlibpath_var=LD_LIBRARY_PATH
17659   shlibpath_overrides_runpath=yes
17660
17661   # This implies no fast_install, which is unacceptable.
17662   # Some rework will be needed to allow for fast_install
17663   # before this can be enabled.
17664   hardcode_into_libs=yes
17665
17666   dynamic_linker='Android linker'
17667   # Don't embed -rpath directories since the linker doesn't support them.
17668   hardcode_libdir_flag_spec_CXX='-L$libdir'
17669   ;;
17670
17671 # This must be glibc/ELF.
17672 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17673   version_type=linux # correct to gnu/linux during the next big refactor
17674   need_lib_prefix=no
17675   need_version=no
17676   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17677   soname_spec='$libname$release$shared_ext$major'
17678   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17679   shlibpath_var=LD_LIBRARY_PATH
17680   shlibpath_overrides_runpath=no
17681
17682   # Some binutils ld are patched to set DT_RUNPATH
17683   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17684   $as_echo_n "(cached) " >&6
17685 else
17686   lt_cv_shlibpath_overrides_runpath=no
17687     save_LDFLAGS=$LDFLAGS
17688     save_libdir=$libdir
17689     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17690          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17691     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h.  */
17693
17694 int
17695 main ()
17696 {
17697
17698   ;
17699   return 0;
17700 }
17701 _ACEOF
17702 if ac_fn_cxx_try_link "$LINENO"; then :
17703   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17704   lt_cv_shlibpath_overrides_runpath=yes
17705 fi
17706 fi
17707 rm -f core conftest.err conftest.$ac_objext \
17708     conftest$ac_exeext conftest.$ac_ext
17709     LDFLAGS=$save_LDFLAGS
17710     libdir=$save_libdir
17711
17712 fi
17713
17714   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17715
17716   # This implies no fast_install, which is unacceptable.
17717   # Some rework will be needed to allow for fast_install
17718   # before this can be enabled.
17719   hardcode_into_libs=yes
17720
17721   # Ideally, we could use ldconfig to report *all* directores which are
17722   # searched for libraries, however this is still not possible.  Aside from not
17723   # being certain /sbin/ldconfig is available, command
17724   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17725   # even though it is searched at run-time.  Try to do the best guess by
17726   # appending ld.so.conf contents (and includes) to the search path.
17727   if test -f /etc/ld.so.conf; then
17728     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' ' '`
17729     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17730   fi
17731
17732   # We used to test for /lib/ld.so.1 and disable shared libraries on
17733   # powerpc, because MkLinux only supported shared libraries with the
17734   # GNU dynamic linker.  Since this was broken with cross compilers,
17735   # most powerpc-linux boxes support dynamic linking these days and
17736   # people can always --disable-shared, the test was removed, and we
17737   # assume the GNU/Linux dynamic linker is in use.
17738   dynamic_linker='GNU/Linux ld.so'
17739   ;;
17740
17741 netbsdelf*-gnu)
17742   version_type=linux
17743   need_lib_prefix=no
17744   need_version=no
17745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17746   soname_spec='${libname}${release}${shared_ext}$major'
17747   shlibpath_var=LD_LIBRARY_PATH
17748   shlibpath_overrides_runpath=no
17749   hardcode_into_libs=yes
17750   dynamic_linker='NetBSD ld.elf_so'
17751   ;;
17752
17753 netbsd*)
17754   version_type=sunos
17755   need_lib_prefix=no
17756   need_version=no
17757   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17758     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17759     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17760     dynamic_linker='NetBSD (a.out) ld.so'
17761   else
17762     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17763     soname_spec='$libname$release$shared_ext$major'
17764     dynamic_linker='NetBSD ld.elf_so'
17765   fi
17766   shlibpath_var=LD_LIBRARY_PATH
17767   shlibpath_overrides_runpath=yes
17768   hardcode_into_libs=yes
17769   ;;
17770
17771 newsos6)
17772   version_type=linux # correct to gnu/linux during the next big refactor
17773   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17774   shlibpath_var=LD_LIBRARY_PATH
17775   shlibpath_overrides_runpath=yes
17776   ;;
17777
17778 *nto* | *qnx*)
17779   version_type=qnx
17780   need_lib_prefix=no
17781   need_version=no
17782   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17783   soname_spec='$libname$release$shared_ext$major'
17784   shlibpath_var=LD_LIBRARY_PATH
17785   shlibpath_overrides_runpath=no
17786   hardcode_into_libs=yes
17787   dynamic_linker='ldqnx.so'
17788   ;;
17789
17790 openbsd* | bitrig*)
17791   version_type=sunos
17792   sys_lib_dlsearch_path_spec=/usr/lib
17793   need_lib_prefix=no
17794   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17795     need_version=no
17796   else
17797     need_version=yes
17798   fi
17799   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17800   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17801   shlibpath_var=LD_LIBRARY_PATH
17802   shlibpath_overrides_runpath=yes
17803   ;;
17804
17805 os2*)
17806   libname_spec='$name'
17807   version_type=windows
17808   shrext_cmds=.dll
17809   need_version=no
17810   need_lib_prefix=no
17811   # OS/2 can only load a DLL with a base name of 8 characters or less.
17812   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17813     v=$($ECHO $release$versuffix | tr -d .-);
17814     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17815     $ECHO $n$v`$shared_ext'
17816   library_names_spec='${libname}_dll.$libext'
17817   dynamic_linker='OS/2 ld.exe'
17818   shlibpath_var=BEGINLIBPATH
17819   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17820   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17821   postinstall_cmds='base_file=`basename \$file`~
17822     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17823     dldir=$destdir/`dirname \$dlpath`~
17824     test -d \$dldir || mkdir -p \$dldir~
17825     $install_prog $dir/$dlname \$dldir/$dlname~
17826     chmod a+x \$dldir/$dlname~
17827     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17828       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17829     fi'
17830   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17831     dlpath=$dir/\$dldll~
17832     $RM \$dlpath'
17833   ;;
17834
17835 osf3* | osf4* | osf5*)
17836   version_type=osf
17837   need_lib_prefix=no
17838   need_version=no
17839   soname_spec='$libname$release$shared_ext$major'
17840   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17841   shlibpath_var=LD_LIBRARY_PATH
17842   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17843   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17844   ;;
17845
17846 rdos*)
17847   dynamic_linker=no
17848   ;;
17849
17850 solaris*)
17851   version_type=linux # correct to gnu/linux during the next big refactor
17852   need_lib_prefix=no
17853   need_version=no
17854   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17855   soname_spec='$libname$release$shared_ext$major'
17856   shlibpath_var=LD_LIBRARY_PATH
17857   shlibpath_overrides_runpath=yes
17858   hardcode_into_libs=yes
17859   # ldd complains unless libraries are executable
17860   postinstall_cmds='chmod +x $lib'
17861   ;;
17862
17863 sunos4*)
17864   version_type=sunos
17865   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17866   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17867   shlibpath_var=LD_LIBRARY_PATH
17868   shlibpath_overrides_runpath=yes
17869   if test yes = "$with_gnu_ld"; then
17870     need_lib_prefix=no
17871   fi
17872   need_version=yes
17873   ;;
17874
17875 sysv4 | sysv4.3*)
17876   version_type=linux # correct to gnu/linux during the next big refactor
17877   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17878   soname_spec='$libname$release$shared_ext$major'
17879   shlibpath_var=LD_LIBRARY_PATH
17880   case $host_vendor in
17881     sni)
17882       shlibpath_overrides_runpath=no
17883       need_lib_prefix=no
17884       runpath_var=LD_RUN_PATH
17885       ;;
17886     siemens)
17887       need_lib_prefix=no
17888       ;;
17889     motorola)
17890       need_lib_prefix=no
17891       need_version=no
17892       shlibpath_overrides_runpath=no
17893       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17894       ;;
17895   esac
17896   ;;
17897
17898 sysv4*MP*)
17899   if test -d /usr/nec; then
17900     version_type=linux # correct to gnu/linux during the next big refactor
17901     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17902     soname_spec='$libname$shared_ext.$major'
17903     shlibpath_var=LD_LIBRARY_PATH
17904   fi
17905   ;;
17906
17907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17908   version_type=sco
17909   need_lib_prefix=no
17910   need_version=no
17911   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17912   soname_spec='$libname$release$shared_ext$major'
17913   shlibpath_var=LD_LIBRARY_PATH
17914   shlibpath_overrides_runpath=yes
17915   hardcode_into_libs=yes
17916   if test yes = "$with_gnu_ld"; then
17917     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17918   else
17919     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17920     case $host_os in
17921       sco3.2v5*)
17922         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17923         ;;
17924     esac
17925   fi
17926   sys_lib_dlsearch_path_spec='/usr/lib'
17927   ;;
17928
17929 tpf*)
17930   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17931   version_type=linux # correct to gnu/linux during the next big refactor
17932   need_lib_prefix=no
17933   need_version=no
17934   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17935   shlibpath_var=LD_LIBRARY_PATH
17936   shlibpath_overrides_runpath=no
17937   hardcode_into_libs=yes
17938   ;;
17939
17940 uts4*)
17941   version_type=linux # correct to gnu/linux during the next big refactor
17942   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17943   soname_spec='$libname$release$shared_ext$major'
17944   shlibpath_var=LD_LIBRARY_PATH
17945   ;;
17946
17947 *)
17948   dynamic_linker=no
17949   ;;
17950 esac
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17952 $as_echo "$dynamic_linker" >&6; }
17953 test no = "$dynamic_linker" && can_build_shared=no
17954
17955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17956 if test yes = "$GCC"; then
17957   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17958 fi
17959
17960 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17961   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17962 fi
17963
17964 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17965   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17966 fi
17967
17968 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17969 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17970
17971 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17972 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17973
17974 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17975 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18017 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18018 hardcode_action_CXX=
18019 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18020    test -n "$runpath_var_CXX" ||
18021    test yes = "$hardcode_automatic_CXX"; then
18022
18023   # We can hardcode non-existent directories.
18024   if test no != "$hardcode_direct_CXX" &&
18025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18026      # have to relink, otherwise we might link with an installed library
18027      # when we should be linking with a yet-to-be-installed one
18028      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18029      test no != "$hardcode_minus_L_CXX"; then
18030     # Linking always hardcodes the temporary library directory.
18031     hardcode_action_CXX=relink
18032   else
18033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18034     hardcode_action_CXX=immediate
18035   fi
18036 else
18037   # We cannot hardcode anything, or else we can only hardcode existing
18038   # directories.
18039   hardcode_action_CXX=unsupported
18040 fi
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18042 $as_echo "$hardcode_action_CXX" >&6; }
18043
18044 if test relink = "$hardcode_action_CXX" ||
18045    test yes = "$inherit_rpath_CXX"; then
18046   # Fast installation is not supported
18047   enable_fast_install=no
18048 elif test yes = "$shlibpath_overrides_runpath" ||
18049      test no = "$enable_shared"; then
18050   # Fast installation is not necessary
18051   enable_fast_install=needless
18052 fi
18053
18054
18055
18056
18057
18058
18059
18060   fi # test -n "$compiler"
18061
18062   CC=$lt_save_CC
18063   CFLAGS=$lt_save_CFLAGS
18064   LDCXX=$LD
18065   LD=$lt_save_LD
18066   GCC=$lt_save_GCC
18067   with_gnu_ld=$lt_save_with_gnu_ld
18068   lt_cv_path_LDCXX=$lt_cv_path_LD
18069   lt_cv_path_LD=$lt_save_path_LD
18070   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18071   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18072 fi # test yes != "$_lt_caught_CXX_error"
18073
18074 ac_ext=c
18075 ac_cpp='$CPP $CPPFLAGS'
18076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18079
18080
18081 # Check whether --enable-largefile was given.
18082 if test "${enable_largefile+set}" = set; then :
18083   enableval=$enable_largefile;
18084 fi
18085
18086 if test "$enable_largefile" != no; then
18087
18088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18089 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18090 if ${ac_cv_sys_largefile_CC+:} false; then :
18091   $as_echo_n "(cached) " >&6
18092 else
18093   ac_cv_sys_largefile_CC=no
18094      if test "$GCC" != yes; then
18095        ac_save_CC=$CC
18096        while :; do
18097          # IRIX 6.2 and later do not support large files by default,
18098          # so use the C compiler's -n32 option if that helps.
18099          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h.  */
18101 #include <sys/types.h>
18102  /* Check that off_t can represent 2**63 - 1 correctly.
18103     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18104     since some C++ compilers masquerading as C compilers
18105     incorrectly reject 9223372036854775807.  */
18106 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18107   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18108                        && LARGE_OFF_T % 2147483647 == 1)
18109                       ? 1 : -1];
18110 int
18111 main ()
18112 {
18113
18114   ;
18115   return 0;
18116 }
18117 _ACEOF
18118          if ac_fn_c_try_compile "$LINENO"; then :
18119   break
18120 fi
18121 rm -f core conftest.err conftest.$ac_objext
18122          CC="$CC -n32"
18123          if ac_fn_c_try_compile "$LINENO"; then :
18124   ac_cv_sys_largefile_CC=' -n32'; break
18125 fi
18126 rm -f core conftest.err conftest.$ac_objext
18127          break
18128        done
18129        CC=$ac_save_CC
18130        rm -f conftest.$ac_ext
18131     fi
18132 fi
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18134 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18135   if test "$ac_cv_sys_largefile_CC" != no; then
18136     CC=$CC$ac_cv_sys_largefile_CC
18137   fi
18138
18139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18140 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18141 if ${ac_cv_sys_file_offset_bits+:} false; then :
18142   $as_echo_n "(cached) " >&6
18143 else
18144   while :; do
18145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h.  */
18147 #include <sys/types.h>
18148  /* Check that off_t can represent 2**63 - 1 correctly.
18149     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18150     since some C++ compilers masquerading as C compilers
18151     incorrectly reject 9223372036854775807.  */
18152 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18153   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18154                        && LARGE_OFF_T % 2147483647 == 1)
18155                       ? 1 : -1];
18156 int
18157 main ()
18158 {
18159
18160   ;
18161   return 0;
18162 }
18163 _ACEOF
18164 if ac_fn_c_try_compile "$LINENO"; then :
18165   ac_cv_sys_file_offset_bits=no; break
18166 fi
18167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169 /* end confdefs.h.  */
18170 #define _FILE_OFFSET_BITS 64
18171 #include <sys/types.h>
18172  /* Check that off_t can represent 2**63 - 1 correctly.
18173     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18174     since some C++ compilers masquerading as C compilers
18175     incorrectly reject 9223372036854775807.  */
18176 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18177   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18178                        && LARGE_OFF_T % 2147483647 == 1)
18179                       ? 1 : -1];
18180 int
18181 main ()
18182 {
18183
18184   ;
18185   return 0;
18186 }
18187 _ACEOF
18188 if ac_fn_c_try_compile "$LINENO"; then :
18189   ac_cv_sys_file_offset_bits=64; break
18190 fi
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192   ac_cv_sys_file_offset_bits=unknown
18193   break
18194 done
18195 fi
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18197 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18198 case $ac_cv_sys_file_offset_bits in #(
18199   no | unknown) ;;
18200   *)
18201 cat >>confdefs.h <<_ACEOF
18202 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18203 _ACEOF
18204 ;;
18205 esac
18206 rm -rf conftest*
18207   if test $ac_cv_sys_file_offset_bits = unknown; then
18208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18209 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18210 if ${ac_cv_sys_large_files+:} false; then :
18211   $as_echo_n "(cached) " >&6
18212 else
18213   while :; do
18214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h.  */
18216 #include <sys/types.h>
18217  /* Check that off_t can represent 2**63 - 1 correctly.
18218     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18219     since some C++ compilers masquerading as C compilers
18220     incorrectly reject 9223372036854775807.  */
18221 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18222   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18223                        && LARGE_OFF_T % 2147483647 == 1)
18224                       ? 1 : -1];
18225 int
18226 main ()
18227 {
18228
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 if ac_fn_c_try_compile "$LINENO"; then :
18234   ac_cv_sys_large_files=no; break
18235 fi
18236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h.  */
18239 #define _LARGE_FILES 1
18240 #include <sys/types.h>
18241  /* Check that off_t can represent 2**63 - 1 correctly.
18242     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18243     since some C++ compilers masquerading as C compilers
18244     incorrectly reject 9223372036854775807.  */
18245 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18246   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18247                        && LARGE_OFF_T % 2147483647 == 1)
18248                       ? 1 : -1];
18249 int
18250 main ()
18251 {
18252
18253   ;
18254   return 0;
18255 }
18256 _ACEOF
18257 if ac_fn_c_try_compile "$LINENO"; then :
18258   ac_cv_sys_large_files=1; break
18259 fi
18260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18261   ac_cv_sys_large_files=unknown
18262   break
18263 done
18264 fi
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18266 $as_echo "$ac_cv_sys_large_files" >&6; }
18267 case $ac_cv_sys_large_files in #(
18268   no | unknown) ;;
18269   *)
18270 cat >>confdefs.h <<_ACEOF
18271 #define _LARGE_FILES $ac_cv_sys_large_files
18272 _ACEOF
18273 ;;
18274 esac
18275 rm -rf conftest*
18276   fi
18277
18278
18279 fi
18280
18281
18282
18283
18284
18285
18286
18287
18288 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18289         if test -n "$ac_tool_prefix"; then
18290   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18291 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18293 $as_echo_n "checking for $ac_word... " >&6; }
18294 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18295   $as_echo_n "(cached) " >&6
18296 else
18297   case $PKG_CONFIG in
18298   [\\/]* | ?:[\\/]*)
18299   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18300   ;;
18301   *)
18302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18303 for as_dir in $PATH
18304 do
18305   IFS=$as_save_IFS
18306   test -z "$as_dir" && as_dir=.
18307     for ac_exec_ext in '' $ac_executable_extensions; do
18308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18309     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18311     break 2
18312   fi
18313 done
18314   done
18315 IFS=$as_save_IFS
18316
18317   ;;
18318 esac
18319 fi
18320 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18321 if test -n "$PKG_CONFIG"; then
18322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18323 $as_echo "$PKG_CONFIG" >&6; }
18324 else
18325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18326 $as_echo "no" >&6; }
18327 fi
18328
18329
18330 fi
18331 if test -z "$ac_cv_path_PKG_CONFIG"; then
18332   ac_pt_PKG_CONFIG=$PKG_CONFIG
18333   # Extract the first word of "pkg-config", so it can be a program name with args.
18334 set dummy pkg-config; ac_word=$2
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18336 $as_echo_n "checking for $ac_word... " >&6; }
18337 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18338   $as_echo_n "(cached) " >&6
18339 else
18340   case $ac_pt_PKG_CONFIG in
18341   [\\/]* | ?:[\\/]*)
18342   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18343   ;;
18344   *)
18345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18346 for as_dir in $PATH
18347 do
18348   IFS=$as_save_IFS
18349   test -z "$as_dir" && as_dir=.
18350     for ac_exec_ext in '' $ac_executable_extensions; do
18351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18352     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18354     break 2
18355   fi
18356 done
18357   done
18358 IFS=$as_save_IFS
18359
18360   ;;
18361 esac
18362 fi
18363 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18364 if test -n "$ac_pt_PKG_CONFIG"; then
18365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18366 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18367 else
18368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18369 $as_echo "no" >&6; }
18370 fi
18371
18372   if test "x$ac_pt_PKG_CONFIG" = x; then
18373     PKG_CONFIG=""
18374   else
18375     case $cross_compiling:$ac_tool_warned in
18376 yes:)
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18379 ac_tool_warned=yes ;;
18380 esac
18381     PKG_CONFIG=$ac_pt_PKG_CONFIG
18382   fi
18383 else
18384   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18385 fi
18386
18387 fi
18388 if test -n "$PKG_CONFIG"; then
18389         _pkg_min_version=0.20
18390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18391 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18392         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18393                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18394 $as_echo "yes" >&6; }
18395         else
18396                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18397 $as_echo "no" >&6; }
18398                 PKG_CONFIG=""
18399         fi
18400 fi
18401
18402 RAGEL=${RAGEL-"${am_missing_run}ragel"}
18403
18404
18405 GIT=${GIT-"${am_missing_run}git"}
18406
18407
18408 # Version
18409
18410
18411
18412
18413 HB_VERSION_MAJOR=2
18414 HB_VERSION_MINOR=3
18415 HB_VERSION_MICRO=1
18416 HB_VERSION=2.3.1
18417
18418
18419
18420
18421
18422 # Libtool version
18423
18424
18425
18426
18427 HB_LIBTOOL_VERSION_INFO=20301:0:20301
18428
18429
18430
18431 # Check whether --with-libstdc++ was given.
18432 if test "${with_libstdc__+set}" = set; then :
18433   withval=$with_libstdc__; with_libstdcxx=$withval
18434 else
18435   with_libstdcxx=no
18436 fi
18437
18438  if test "x$with_libstdcxx" = "xyes"; then
18439   WITH_LIBSTDCXX_TRUE=
18440   WITH_LIBSTDCXX_FALSE='#'
18441 else
18442   WITH_LIBSTDCXX_TRUE='#'
18443   WITH_LIBSTDCXX_FALSE=
18444 fi
18445
18446
18447 # Documentation
18448 have_gtk_doc=false
18449
18450
18451
18452
18453   gtk_doc_requires="gtk-doc >= 1.15"
18454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
18455 $as_echo_n "checking for gtk-doc... " >&6; }
18456   if test -n "$PKG_CONFIG" && \
18457     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
18458   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
18459   ac_status=$?
18460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18461   test $ac_status = 0; }; then
18462   have_gtk_doc=yes
18463 else
18464   have_gtk_doc=no
18465 fi
18466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
18467 $as_echo "$have_gtk_doc" >&6; }
18468
18469   if test "$have_gtk_doc" = "no"; then
18470       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18471   You will not be able to create source packages with 'make dist'
18472   because $gtk_doc_requires is not found." >&5
18473 $as_echo "$as_me: WARNING:
18474   You will not be able to create source packages with 'make dist'
18475   because $gtk_doc_requires is not found." >&2;}
18476   fi
18477
18478             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18479 set dummy gtkdoc-check; ac_word=$2
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18481 $as_echo_n "checking for $ac_word... " >&6; }
18482 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
18483   $as_echo_n "(cached) " >&6
18484 else
18485   if test -n "$GTKDOC_CHECK"; then
18486   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
18487 else
18488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18489 for as_dir in $PATH
18490 do
18491   IFS=$as_save_IFS
18492   test -z "$as_dir" && as_dir=.
18493     for ac_exec_ext in '' $ac_executable_extensions; do
18494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18495     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
18496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18497     break 2
18498   fi
18499 done
18500   done
18501 IFS=$as_save_IFS
18502
18503 fi
18504 fi
18505 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
18506 if test -n "$GTKDOC_CHECK"; then
18507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18508 $as_echo "$GTKDOC_CHECK" >&6; }
18509 else
18510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18511 $as_echo "no" >&6; }
18512 fi
18513
18514
18515   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18516 set dummy gtkdoc-check; ac_word=$2
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18518 $as_echo_n "checking for $ac_word... " >&6; }
18519 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
18520   $as_echo_n "(cached) " >&6
18521 else
18522   case $GTKDOC_CHECK_PATH in
18523   [\\/]* | ?:[\\/]*)
18524   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
18525   ;;
18526   *)
18527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18528 for as_dir in $PATH
18529 do
18530   IFS=$as_save_IFS
18531   test -z "$as_dir" && as_dir=.
18532     for ac_exec_ext in '' $ac_executable_extensions; do
18533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18534     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
18535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18536     break 2
18537   fi
18538 done
18539   done
18540 IFS=$as_save_IFS
18541
18542   ;;
18543 esac
18544 fi
18545 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
18546 if test -n "$GTKDOC_CHECK_PATH"; then
18547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
18548 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
18549 else
18550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18551 $as_echo "no" >&6; }
18552 fi
18553
18554
18555   for ac_prog in gtkdoc-rebase
18556 do
18557   # Extract the first word of "$ac_prog", so it can be a program name with args.
18558 set dummy $ac_prog; ac_word=$2
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18560 $as_echo_n "checking for $ac_word... " >&6; }
18561 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
18562   $as_echo_n "(cached) " >&6
18563 else
18564   case $GTKDOC_REBASE in
18565   [\\/]* | ?:[\\/]*)
18566   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18567   ;;
18568   *)
18569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18570 for as_dir in $PATH
18571 do
18572   IFS=$as_save_IFS
18573   test -z "$as_dir" && as_dir=.
18574     for ac_exec_ext in '' $ac_executable_extensions; do
18575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18576     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18578     break 2
18579   fi
18580 done
18581   done
18582 IFS=$as_save_IFS
18583
18584   ;;
18585 esac
18586 fi
18587 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18588 if test -n "$GTKDOC_REBASE"; then
18589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18590 $as_echo "$GTKDOC_REBASE" >&6; }
18591 else
18592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18593 $as_echo "no" >&6; }
18594 fi
18595
18596
18597   test -n "$GTKDOC_REBASE" && break
18598 done
18599 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18600
18601   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18602 set dummy gtkdoc-mkpdf; ac_word=$2
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18604 $as_echo_n "checking for $ac_word... " >&6; }
18605 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
18606   $as_echo_n "(cached) " >&6
18607 else
18608   case $GTKDOC_MKPDF in
18609   [\\/]* | ?:[\\/]*)
18610   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18611   ;;
18612   *)
18613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614 for as_dir in $PATH
18615 do
18616   IFS=$as_save_IFS
18617   test -z "$as_dir" && as_dir=.
18618     for ac_exec_ext in '' $ac_executable_extensions; do
18619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18620     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18622     break 2
18623   fi
18624 done
18625   done
18626 IFS=$as_save_IFS
18627
18628   ;;
18629 esac
18630 fi
18631 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18632 if test -n "$GTKDOC_MKPDF"; then
18633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18634 $as_echo "$GTKDOC_MKPDF" >&6; }
18635 else
18636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18637 $as_echo "no" >&6; }
18638 fi
18639
18640
18641
18642
18643 # Check whether --with-html-dir was given.
18644 if test "${with_html_dir+set}" = set; then :
18645   withval=$with_html_dir;
18646 else
18647   with_html_dir='${datadir}/gtk-doc/html'
18648 fi
18649
18650   HTML_DIR="$with_html_dir"
18651
18652
18653     # Check whether --enable-gtk-doc was given.
18654 if test "${enable_gtk_doc+set}" = set; then :
18655   enableval=$enable_gtk_doc;
18656 else
18657   enable_gtk_doc=no
18658 fi
18659
18660
18661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18662 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18664 $as_echo "$enable_gtk_doc" >&6; }
18665
18666   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
18667     as_fn_error $? "
18668   You must have $gtk_doc_requires installed to build documentation for
18669   $PACKAGE_NAME. Please install gtk-doc or disable building the
18670   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
18671   fi
18672
18673     if test "x$PACKAGE_NAME" != "xglib"; then
18674
18675 pkg_failed=no
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
18677 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
18678
18679 if test -n "$GTKDOC_DEPS_CFLAGS"; then
18680     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
18681  elif test -n "$PKG_CONFIG"; then
18682     if test -n "$PKG_CONFIG" && \
18683     { { $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
18684   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
18685   ac_status=$?
18686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18687   test $ac_status = 0; }; then
18688   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
18689                       test "x$?" != "x0" && pkg_failed=yes
18690 else
18691   pkg_failed=yes
18692 fi
18693  else
18694     pkg_failed=untried
18695 fi
18696 if test -n "$GTKDOC_DEPS_LIBS"; then
18697     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
18698  elif test -n "$PKG_CONFIG"; then
18699     if test -n "$PKG_CONFIG" && \
18700     { { $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
18701   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
18702   ac_status=$?
18703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18704   test $ac_status = 0; }; then
18705   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
18706                       test "x$?" != "x0" && pkg_failed=yes
18707 else
18708   pkg_failed=yes
18709 fi
18710  else
18711     pkg_failed=untried
18712 fi
18713
18714
18715
18716 if test $pkg_failed = yes; then
18717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718 $as_echo "no" >&6; }
18719
18720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18721         _pkg_short_errors_supported=yes
18722 else
18723         _pkg_short_errors_supported=no
18724 fi
18725         if test $_pkg_short_errors_supported = yes; then
18726                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
18727         else
18728                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
18729         fi
18730         # Put the nasty error message in config.log where it belongs
18731         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
18732
18733         :
18734 elif test $pkg_failed = untried; then
18735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18736 $as_echo "no" >&6; }
18737         :
18738 else
18739         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
18740         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
18741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18742 $as_echo "yes" >&6; }
18743
18744 fi
18745   fi
18746
18747     # Check whether --enable-gtk-doc-html was given.
18748 if test "${enable_gtk_doc_html+set}" = set; then :
18749   enableval=$enable_gtk_doc_html;
18750 else
18751   enable_gtk_doc_html=yes
18752 fi
18753
18754     # Check whether --enable-gtk-doc-pdf was given.
18755 if test "${enable_gtk_doc_pdf+set}" = set; then :
18756   enableval=$enable_gtk_doc_pdf;
18757 else
18758   enable_gtk_doc_pdf=no
18759 fi
18760
18761
18762   if test -z "$GTKDOC_MKPDF"; then
18763     enable_gtk_doc_pdf=no
18764   fi
18765
18766   if test -z "$AM_DEFAULT_VERBOSITY"; then
18767     AM_DEFAULT_VERBOSITY=1
18768   fi
18769
18770
18771    if test x$have_gtk_doc = xyes; then
18772   HAVE_GTK_DOC_TRUE=
18773   HAVE_GTK_DOC_FALSE='#'
18774 else
18775   HAVE_GTK_DOC_TRUE='#'
18776   HAVE_GTK_DOC_FALSE=
18777 fi
18778
18779    if test x$enable_gtk_doc = xyes; then
18780   ENABLE_GTK_DOC_TRUE=
18781   ENABLE_GTK_DOC_FALSE='#'
18782 else
18783   ENABLE_GTK_DOC_TRUE='#'
18784   ENABLE_GTK_DOC_FALSE=
18785 fi
18786
18787    if test x$enable_gtk_doc_html = xyes; then
18788   GTK_DOC_BUILD_HTML_TRUE=
18789   GTK_DOC_BUILD_HTML_FALSE='#'
18790 else
18791   GTK_DOC_BUILD_HTML_TRUE='#'
18792   GTK_DOC_BUILD_HTML_FALSE=
18793 fi
18794
18795    if test x$enable_gtk_doc_pdf = xyes; then
18796   GTK_DOC_BUILD_PDF_TRUE=
18797   GTK_DOC_BUILD_PDF_FALSE='#'
18798 else
18799   GTK_DOC_BUILD_PDF_TRUE='#'
18800   GTK_DOC_BUILD_PDF_FALSE=
18801 fi
18802
18803    if test -n "$LIBTOOL"; then
18804   GTK_DOC_USE_LIBTOOL_TRUE=
18805   GTK_DOC_USE_LIBTOOL_FALSE='#'
18806 else
18807   GTK_DOC_USE_LIBTOOL_TRUE='#'
18808   GTK_DOC_USE_LIBTOOL_FALSE=
18809 fi
18810
18811    if test -n "$GTKDOC_REBASE"; then
18812   GTK_DOC_USE_REBASE_TRUE=
18813   GTK_DOC_USE_REBASE_FALSE='#'
18814 else
18815   GTK_DOC_USE_REBASE_TRUE='#'
18816   GTK_DOC_USE_REBASE_FALSE=
18817 fi
18818
18819
18820         if test "x$enable_gtk_doc" = xyes; then
18821                 have_gtk_doc=true
18822         fi
18823
18824
18825 # Functions and headers
18826 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l posix_memalign
18827 do :
18828   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18830 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18831   cat >>confdefs.h <<_ACEOF
18832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18833 _ACEOF
18834
18835 fi
18836 done
18837
18838
18839 save_libs="$LIBS"
18840 LIBS="$LIBS -lm"
18841 for ac_func in round
18842 do :
18843   ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
18844 if test "x$ac_cv_func_round" = xyes; then :
18845   cat >>confdefs.h <<_ACEOF
18846 #define HAVE_ROUND 1
18847 _ACEOF
18848
18849 else
18850   ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h>
18851 "
18852 if test "x$ac_cv_have_decl_round" = xyes; then :
18853   ac_have_decl=1
18854 else
18855   ac_have_decl=0
18856 fi
18857
18858 cat >>confdefs.h <<_ACEOF
18859 #define HAVE_DECL_ROUND $ac_have_decl
18860 _ACEOF
18861
18862 fi
18863 done
18864
18865 LIBS="$save_libs"
18866
18867 for ac_header in unistd.h sys/mman.h xlocale.h stdbool.h
18868 do :
18869   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18870 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18872   cat >>confdefs.h <<_ACEOF
18873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18874 _ACEOF
18875
18876 fi
18877
18878 done
18879
18880
18881 # Compiler flags
18882
18883 # The cast to long int works around a bug in the HP C Compiler,
18884 # see AC_CHECK_SIZEOF for more information.
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
18886 $as_echo_n "checking alignment of struct{char;}... " >&6; }
18887 if ${ac_cv_alignof_struct_char__+:} false; then :
18888   $as_echo_n "(cached) " >&6
18889 else
18890   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
18891 #ifndef offsetof
18892 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18893 #endif
18894 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
18895
18896 else
18897   if test "$ac_cv_type_struct_char__" = yes; then
18898      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18900 as_fn_error 77 "cannot compute alignment of struct{char;}
18901 See \`config.log' for more details" "$LINENO" 5; }
18902    else
18903      ac_cv_alignof_struct_char__=0
18904    fi
18905 fi
18906
18907 fi
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
18909 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
18910
18911
18912
18913 cat >>confdefs.h <<_ACEOF
18914 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
18915 _ACEOF
18916
18917
18918 if test "x$GCC" = "xyes"; then
18919
18920         # Make symbols link locally
18921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
18922 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
18923 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
18924   $as_echo_n "(cached) " >&6
18925 else
18926
18927   ax_check_save_flags=$LDFLAGS
18928   LDFLAGS="$LDFLAGS  -Bsymbolic-functions"
18929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h.  */
18931
18932 int
18933 main ()
18934 {
18935
18936   ;
18937   return 0;
18938 }
18939 _ACEOF
18940 if ac_fn_c_try_link "$LINENO"; then :
18941   ax_cv_check_ldflags___Bsymbolic_functions=yes
18942 else
18943   ax_cv_check_ldflags___Bsymbolic_functions=no
18944 fi
18945 rm -f core conftest.err conftest.$ac_objext \
18946     conftest$ac_exeext conftest.$ac_ext
18947   LDFLAGS=$ax_check_save_flags
18948 fi
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
18950 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
18951 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
18952   LDFLAGS="$LDFLAGS -Bsymbolic-functions"
18953 else
18954   :
18955 fi
18956
18957
18958         # Make it possible to not link to libstdc++
18959         # No threadsafe statics in C++ as we do it ourselves.
18960         # We don't use these features, so it's safe to disable them
18961         # even in the cases where we DO link to libstdc++.
18962         # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
18963         # by overriding CXXFLAGS.
18964         CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
18965
18966         case "$host" in
18967                 *-*-mingw*)
18968                 ;;
18969                 *)
18970                         # Hide inline methods
18971                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
18972                 ;;
18973         esac
18974
18975         case "$host" in
18976                 arm-*-*)
18977                         if test "x$ac_cv_alignof_struct_char__" != x1; then
18978                                 # Request byte alignment
18979                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
18980                         fi
18981                 ;;
18982         esac
18983 fi
18984
18985  if test "x$GCC" = "xyes"; then
18986   HAVE_GCC_TRUE=
18987   HAVE_GCC_FALSE='#'
18988 else
18989   HAVE_GCC_TRUE='#'
18990   HAVE_GCC_FALSE=
18991 fi
18992
18993
18994 hb_os_win32=no
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
18996 $as_echo_n "checking for native Win32... " >&6; }
18997 case "$host" in
18998   *-*-mingw*)
18999     hb_os_win32=yes
19000     ;;
19001 esac
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19003 $as_echo "$hb_os_win32" >&6; }
19004  if test "$hb_os_win32" = "yes"; then
19005   OS_WIN32_TRUE=
19006   OS_WIN32_FALSE='#'
19007 else
19008   OS_WIN32_TRUE='#'
19009   OS_WIN32_FALSE=
19010 fi
19011
19012
19013 have_pthread=false
19014 if test "$hb_os_win32" = no; then
19015
19016
19017
19018
19019 ac_ext=c
19020 ac_cpp='$CPP $CPPFLAGS'
19021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19024
19025 ax_pthread_ok=no
19026
19027 # We used to check for pthread.h first, but this fails if pthread.h
19028 # requires special compiler flags (e.g. on Tru64 or Sequent).
19029 # It gets checked for in the link test anyway.
19030
19031 # First of all, check if the user has set any of the PTHREAD_LIBS,
19032 # etcetera environment variables, and if threads linking works using
19033 # them:
19034 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19035         ax_pthread_save_CC="$CC"
19036         ax_pthread_save_CFLAGS="$CFLAGS"
19037         ax_pthread_save_LIBS="$LIBS"
19038         if test "x$PTHREAD_CC" != "x"; then :
19039   CC="$PTHREAD_CC"
19040 fi
19041         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19042         LIBS="$PTHREAD_LIBS $LIBS"
19043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19044 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19045         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h.  */
19047
19048 /* Override any GCC internal prototype to avoid an error.
19049    Use char because int might match the return type of a GCC
19050    builtin and then its argument prototype would still apply.  */
19051 #ifdef __cplusplus
19052 extern "C"
19053 #endif
19054 char pthread_join ();
19055 int
19056 main ()
19057 {
19058 return pthread_join ();
19059   ;
19060   return 0;
19061 }
19062 _ACEOF
19063 if ac_fn_c_try_link "$LINENO"; then :
19064   ax_pthread_ok=yes
19065 fi
19066 rm -f core conftest.err conftest.$ac_objext \
19067     conftest$ac_exeext conftest.$ac_ext
19068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19069 $as_echo "$ax_pthread_ok" >&6; }
19070         if test "x$ax_pthread_ok" = "xno"; then
19071                 PTHREAD_LIBS=""
19072                 PTHREAD_CFLAGS=""
19073         fi
19074         CC="$ax_pthread_save_CC"
19075         CFLAGS="$ax_pthread_save_CFLAGS"
19076         LIBS="$ax_pthread_save_LIBS"
19077 fi
19078
19079 # We must check for the threads library under a number of different
19080 # names; the ordering is very important because some systems
19081 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19082 # libraries is broken (non-POSIX).
19083
19084 # Create a list of thread flags to try.  Items starting with a "-" are
19085 # C compiler flags, and other items are library names, except for "none"
19086 # which indicates that we try without any flags at all, and "pthread-config"
19087 # which is a program returning the flags for the Pth emulation library.
19088
19089 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19090
19091 # The ordering *is* (sometimes) important.  Some notes on the
19092 # individual items follow:
19093
19094 # pthreads: AIX (must check this before -lpthread)
19095 # none: in case threads are in libc; should be tried before -Kthread and
19096 #       other compiler flags to prevent continual compiler warnings
19097 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19098 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19099 #           (Note: HP C rejects this with "bad form for `-t' option")
19100 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19101 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19102 #      doesn't hurt to check since this sometimes defines pthreads and
19103 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
19104 #      is present but should not be used directly; and before -mthreads,
19105 #      because the compiler interprets this as "-mt" + "-hreads")
19106 # -mthreads: Mingw32/gcc, Lynx/gcc
19107 # pthread: Linux, etcetera
19108 # --thread-safe: KAI C++
19109 # pthread-config: use pthread-config program (for GNU Pth library)
19110
19111 case $host_os in
19112
19113         freebsd*)
19114
19115         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19116         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19117
19118         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19119         ;;
19120
19121         hpux*)
19122
19123         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19124         # multi-threading and also sets -lpthread."
19125
19126         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19127         ;;
19128
19129         openedition*)
19130
19131         # IBM z/OS requires a feature-test macro to be defined in order to
19132         # enable POSIX threads at all, so give the user a hint if this is
19133         # not set. (We don't define these ourselves, as they can affect
19134         # other portions of the system API in unpredictable ways.)
19135
19136         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137 /* end confdefs.h.  */
19138
19139 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19140              AX_PTHREAD_ZOS_MISSING
19141 #            endif
19142
19143 _ACEOF
19144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19145   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19146   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19147 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19148 fi
19149 rm -f conftest*
19150
19151         ;;
19152
19153         solaris*)
19154
19155         # On Solaris (at least, for some versions), libc contains stubbed
19156         # (non-functional) versions of the pthreads routines, so link-based
19157         # tests will erroneously succeed. (N.B.: The stubs are missing
19158         # pthread_cleanup_push, or rather a function called by this macro,
19159         # so we could check for that, but who knows whether they'll stub
19160         # that too in a future libc.)  So we'll check first for the
19161         # standard Solaris way of linking pthreads (-mt -lpthread).
19162
19163         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
19164         ;;
19165 esac
19166
19167 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19168
19169 if test "x$GCC" = "xyes"; then :
19170   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
19171 fi
19172
19173 # The presence of a feature test macro requesting re-entrant function
19174 # definitions is, on some systems, a strong hint that pthreads support is
19175 # correctly enabled
19176
19177 case $host_os in
19178         darwin* | hpux* | linux* | osf* | solaris*)
19179         ax_pthread_check_macro="_REENTRANT"
19180         ;;
19181
19182         aix*)
19183         ax_pthread_check_macro="_THREAD_SAFE"
19184         ;;
19185
19186         *)
19187         ax_pthread_check_macro="--"
19188         ;;
19189 esac
19190 if test "x$ax_pthread_check_macro" = "x--"; then :
19191   ax_pthread_check_cond=0
19192 else
19193   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19194 fi
19195
19196 # Are we compiling with Clang?
19197
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19199 $as_echo_n "checking whether $CC is Clang... " >&6; }
19200 if ${ax_cv_PTHREAD_CLANG+:} false; then :
19201   $as_echo_n "(cached) " >&6
19202 else
19203   ax_cv_PTHREAD_CLANG=no
19204      # Note that Autoconf sets GCC=yes for Clang as well as GCC
19205      if test "x$GCC" = "xyes"; then
19206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h.  */
19208 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19209 #            if defined(__clang__) && defined(__llvm__)
19210              AX_PTHREAD_CC_IS_CLANG
19211 #            endif
19212
19213 _ACEOF
19214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19215   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
19216   ax_cv_PTHREAD_CLANG=yes
19217 fi
19218 rm -f conftest*
19219
19220      fi
19221
19222 fi
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19224 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
19225 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19226
19227 ax_pthread_clang_warning=no
19228
19229 # Clang needs special handling, because older versions handle the -pthread
19230 # option in a rather... idiosyncratic way
19231
19232 if test "x$ax_pthread_clang" = "xyes"; then
19233
19234         # Clang takes -pthread; it has never supported any other flag
19235
19236         # (Note 1: This will need to be revisited if a system that Clang
19237         # supports has POSIX threads in a separate library.  This tends not
19238         # to be the way of modern systems, but it's conceivable.)
19239
19240         # (Note 2: On some systems, notably Darwin, -pthread is not needed
19241         # to get POSIX threads support; the API is always present and
19242         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
19243         # -pthread does define _REENTRANT, and while the Darwin headers
19244         # ignore this macro, third-party headers might not.)
19245
19246         PTHREAD_CFLAGS="-pthread"
19247         PTHREAD_LIBS=
19248
19249         ax_pthread_ok=yes
19250
19251         # However, older versions of Clang make a point of warning the user
19252         # that, in an invocation where only linking and no compilation is
19253         # taking place, the -pthread option has no effect ("argument unused
19254         # during compilation").  They expect -pthread to be passed in only
19255         # when source code is being compiled.
19256         #
19257         # Problem is, this is at odds with the way Automake and most other
19258         # C build frameworks function, which is that the same flags used in
19259         # compilation (CFLAGS) are also used in linking.  Many systems
19260         # supported by AX_PTHREAD require exactly this for POSIX threads
19261         # support, and in fact it is often not straightforward to specify a
19262         # flag that is used only in the compilation phase and not in
19263         # linking.  Such a scenario is extremely rare in practice.
19264         #
19265         # Even though use of the -pthread flag in linking would only print
19266         # a warning, this can be a nuisance for well-run software projects
19267         # that build with -Werror.  So if the active version of Clang has
19268         # this misfeature, we search for an option to squash it.
19269
19270         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
19271 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
19272 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
19273   $as_echo_n "(cached) " >&6
19274 else
19275   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
19276              # Create an alternate version of $ac_link that compiles and
19277              # links in two steps (.c -> .o, .o -> exe) instead of one
19278              # (.c -> exe), because the warning occurs only in the second
19279              # step
19280              ax_pthread_save_ac_link="$ac_link"
19281              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
19282              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
19283              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
19284              ax_pthread_save_CFLAGS="$CFLAGS"
19285              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
19286                 if test "x$ax_pthread_try" = "xunknown"; then :
19287   break
19288 fi
19289                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
19290                 ac_link="$ax_pthread_save_ac_link"
19291                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292 /* end confdefs.h.  */
19293 int main(void){return 0;}
19294 _ACEOF
19295 if ac_fn_c_try_link "$LINENO"; then :
19296   ac_link="$ax_pthread_2step_ac_link"
19297                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h.  */
19299 int main(void){return 0;}
19300 _ACEOF
19301 if ac_fn_c_try_link "$LINENO"; then :
19302   break
19303 fi
19304 rm -f core conftest.err conftest.$ac_objext \
19305     conftest$ac_exeext conftest.$ac_ext
19306
19307 fi
19308 rm -f core conftest.err conftest.$ac_objext \
19309     conftest$ac_exeext conftest.$ac_ext
19310              done
19311              ac_link="$ax_pthread_save_ac_link"
19312              CFLAGS="$ax_pthread_save_CFLAGS"
19313              if test "x$ax_pthread_try" = "x"; then :
19314   ax_pthread_try=no
19315 fi
19316              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
19317
19318 fi
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
19320 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
19321
19322         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
19323                 no | unknown) ;;
19324                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
19325         esac
19326
19327 fi # $ax_pthread_clang = yes
19328
19329 if test "x$ax_pthread_ok" = "xno"; then
19330 for ax_pthread_try_flag in $ax_pthread_flags; do
19331
19332         case $ax_pthread_try_flag in
19333                 none)
19334                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19335 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19336                 ;;
19337
19338                 -mt,pthread)
19339                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19340 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19341                 PTHREAD_CFLAGS="-mt"
19342                 PTHREAD_LIBS="-lpthread"
19343                 ;;
19344
19345                 -*)
19346                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19347 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19348                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
19349                 ;;
19350
19351                 pthread-config)
19352                 # Extract the first word of "pthread-config", so it can be a program name with args.
19353 set dummy pthread-config; ac_word=$2
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19355 $as_echo_n "checking for $ac_word... " >&6; }
19356 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19357   $as_echo_n "(cached) " >&6
19358 else
19359   if test -n "$ax_pthread_config"; then
19360   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19361 else
19362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19363 for as_dir in $PATH
19364 do
19365   IFS=$as_save_IFS
19366   test -z "$as_dir" && as_dir=.
19367     for ac_exec_ext in '' $ac_executable_extensions; do
19368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19369     ac_cv_prog_ax_pthread_config="yes"
19370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19371     break 2
19372   fi
19373 done
19374   done
19375 IFS=$as_save_IFS
19376
19377   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19378 fi
19379 fi
19380 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19381 if test -n "$ax_pthread_config"; then
19382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19383 $as_echo "$ax_pthread_config" >&6; }
19384 else
19385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19386 $as_echo "no" >&6; }
19387 fi
19388
19389
19390                 if test "x$ax_pthread_config" = "xno"; then :
19391   continue
19392 fi
19393                 PTHREAD_CFLAGS="`pthread-config --cflags`"
19394                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19395                 ;;
19396
19397                 *)
19398                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19399 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19400                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
19401                 ;;
19402         esac
19403
19404         ax_pthread_save_CFLAGS="$CFLAGS"
19405         ax_pthread_save_LIBS="$LIBS"
19406         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19407         LIBS="$PTHREAD_LIBS $LIBS"
19408
19409         # Check for various functions.  We must include pthread.h,
19410         # since some functions may be macros.  (On the Sequent, we
19411         # need a special flag -Kthread to make this header compile.)
19412         # We check for pthread_join because it is in -lpthread on IRIX
19413         # while pthread_create is in libc.  We check for pthread_attr_init
19414         # due to DEC craziness with -lpthreads.  We check for
19415         # pthread_cleanup_push because it is one of the few pthread
19416         # functions on Solaris that doesn't have a non-functional libc stub.
19417         # We try pthread_create on general principles.
19418
19419         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h.  */
19421 #include <pthread.h>
19422 #                       if $ax_pthread_check_cond
19423 #                        error "$ax_pthread_check_macro must be defined"
19424 #                       endif
19425                         static void routine(void *a) { a = 0; }
19426                         static void *start_routine(void *a) { return a; }
19427 int
19428 main ()
19429 {
19430 pthread_t th; pthread_attr_t attr;
19431                         pthread_create(&th, 0, start_routine, 0);
19432                         pthread_join(th, 0);
19433                         pthread_attr_init(&attr);
19434                         pthread_cleanup_push(routine, 0);
19435                         pthread_cleanup_pop(0) /* ; */
19436   ;
19437   return 0;
19438 }
19439 _ACEOF
19440 if ac_fn_c_try_link "$LINENO"; then :
19441   ax_pthread_ok=yes
19442 fi
19443 rm -f core conftest.err conftest.$ac_objext \
19444     conftest$ac_exeext conftest.$ac_ext
19445
19446         CFLAGS="$ax_pthread_save_CFLAGS"
19447         LIBS="$ax_pthread_save_LIBS"
19448
19449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19450 $as_echo "$ax_pthread_ok" >&6; }
19451         if test "x$ax_pthread_ok" = "xyes"; then :
19452   break
19453 fi
19454
19455         PTHREAD_LIBS=""
19456         PTHREAD_CFLAGS=""
19457 done
19458 fi
19459
19460 # Various other checks:
19461 if test "x$ax_pthread_ok" = "xyes"; then
19462         ax_pthread_save_CFLAGS="$CFLAGS"
19463         ax_pthread_save_LIBS="$LIBS"
19464         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19465         LIBS="$PTHREAD_LIBS $LIBS"
19466
19467         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19469 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19470 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19471   $as_echo_n "(cached) " >&6
19472 else
19473   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19474              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19475                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19476 /* end confdefs.h.  */
19477 #include <pthread.h>
19478 int
19479 main ()
19480 {
19481 int attr = $ax_pthread_attr; return attr /* ; */
19482   ;
19483   return 0;
19484 }
19485 _ACEOF
19486 if ac_fn_c_try_link "$LINENO"; then :
19487   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
19488 fi
19489 rm -f core conftest.err conftest.$ac_objext \
19490     conftest$ac_exeext conftest.$ac_ext
19491              done
19492
19493 fi
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19495 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19496         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
19497                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
19498                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
19499
19500 cat >>confdefs.h <<_ACEOF
19501 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19502 _ACEOF
19503
19504                ax_pthread_joinable_attr_defined=yes
19505
19506 fi
19507
19508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
19509 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
19510 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19511   $as_echo_n "(cached) " >&6
19512 else
19513   ax_cv_PTHREAD_SPECIAL_FLAGS=no
19514              case $host_os in
19515              solaris*)
19516              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
19517              ;;
19518              esac
19519
19520 fi
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19522 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19523         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19524                test "x$ax_pthread_special_flags_added" != "xyes"; then :
19525   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19526                ax_pthread_special_flags_added=yes
19527 fi
19528
19529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19530 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19531 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19532   $as_echo_n "(cached) " >&6
19533 else
19534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h.  */
19536 #include <pthread.h>
19537 int
19538 main ()
19539 {
19540 int i = PTHREAD_PRIO_INHERIT;
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 if ac_fn_c_try_link "$LINENO"; then :
19546   ax_cv_PTHREAD_PRIO_INHERIT=yes
19547 else
19548   ax_cv_PTHREAD_PRIO_INHERIT=no
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext \
19551     conftest$ac_exeext conftest.$ac_ext
19552
19553 fi
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19555 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19556         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
19557                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
19558
19559 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19560
19561                ax_pthread_prio_inherit_defined=yes
19562
19563 fi
19564
19565         CFLAGS="$ax_pthread_save_CFLAGS"
19566         LIBS="$ax_pthread_save_LIBS"
19567
19568         # More AIX lossage: compile with *_r variant
19569         if test "x$GCC" != "xyes"; then
19570             case $host_os in
19571                 aix*)
19572                 case "x/$CC" in #(
19573   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19574     #handle absolute path differently from PATH based program lookup
19575                      case "x$CC" in #(
19576   x/*) :
19577     if as_fn_executable_p ${CC}_r; then :
19578   PTHREAD_CC="${CC}_r"
19579 fi ;; #(
19580   *) :
19581     for ac_prog in ${CC}_r
19582 do
19583   # Extract the first word of "$ac_prog", so it can be a program name with args.
19584 set dummy $ac_prog; ac_word=$2
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19586 $as_echo_n "checking for $ac_word... " >&6; }
19587 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19588   $as_echo_n "(cached) " >&6
19589 else
19590   if test -n "$PTHREAD_CC"; then
19591   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19592 else
19593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19594 for as_dir in $PATH
19595 do
19596   IFS=$as_save_IFS
19597   test -z "$as_dir" && as_dir=.
19598     for ac_exec_ext in '' $ac_executable_extensions; do
19599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19600     ac_cv_prog_PTHREAD_CC="$ac_prog"
19601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19602     break 2
19603   fi
19604 done
19605   done
19606 IFS=$as_save_IFS
19607
19608 fi
19609 fi
19610 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19611 if test -n "$PTHREAD_CC"; then
19612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19613 $as_echo "$PTHREAD_CC" >&6; }
19614 else
19615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19616 $as_echo "no" >&6; }
19617 fi
19618
19619
19620   test -n "$PTHREAD_CC" && break
19621 done
19622 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19623  ;;
19624 esac ;; #(
19625   *) :
19626      ;;
19627 esac
19628                 ;;
19629             esac
19630         fi
19631 fi
19632
19633 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19634
19635
19636
19637
19638
19639 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19640 if test "x$ax_pthread_ok" = "xyes"; then
19641         have_pthread=true
19642         :
19643 else
19644         ax_pthread_ok=no
19645
19646 fi
19647 ac_ext=c
19648 ac_cpp='$CPP $CPPFLAGS'
19649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19652
19653
19654 fi
19655 if $have_pthread; then
19656
19657 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19658
19659 fi
19660  if $have_pthread; then
19661   HAVE_PTHREAD_TRUE=
19662   HAVE_PTHREAD_FALSE='#'
19663 else
19664   HAVE_PTHREAD_TRUE='#'
19665   HAVE_PTHREAD_FALSE=
19666 fi
19667
19668
19669
19670 have_fallback=true
19671 if $have_fallback; then
19672
19673 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
19674
19675 fi
19676  if $have_fallback; then
19677   HAVE_FALLBACK_TRUE=
19678   HAVE_FALLBACK_FALSE='#'
19679 else
19680   HAVE_FALLBACK_TRUE='#'
19681   HAVE_FALLBACK_FALSE=
19682 fi
19683
19684
19685
19686
19687 # Check whether --with-glib was given.
19688 if test "${with_glib+set}" = set; then :
19689   withval=$with_glib;
19690 else
19691   with_glib=auto
19692 fi
19693
19694 have_glib=false
19695 GLIB_DEPS="glib-2.0 >= 2.19.1"
19696
19697 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
19698
19699 pkg_failed=no
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19701 $as_echo_n "checking for GLIB... " >&6; }
19702
19703 if test -n "$GLIB_CFLAGS"; then
19704     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19705  elif test -n "$PKG_CONFIG"; then
19706     if test -n "$PKG_CONFIG" && \
19707     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19708   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19709   ac_status=$?
19710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19711   test $ac_status = 0; }; then
19712   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
19713                       test "x$?" != "x0" && pkg_failed=yes
19714 else
19715   pkg_failed=yes
19716 fi
19717  else
19718     pkg_failed=untried
19719 fi
19720 if test -n "$GLIB_LIBS"; then
19721     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19722  elif test -n "$PKG_CONFIG"; then
19723     if test -n "$PKG_CONFIG" && \
19724     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19725   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19726   ac_status=$?
19727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19728   test $ac_status = 0; }; then
19729   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
19730                       test "x$?" != "x0" && pkg_failed=yes
19731 else
19732   pkg_failed=yes
19733 fi
19734  else
19735     pkg_failed=untried
19736 fi
19737
19738
19739
19740 if test $pkg_failed = yes; then
19741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19742 $as_echo "no" >&6; }
19743
19744 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19745         _pkg_short_errors_supported=yes
19746 else
19747         _pkg_short_errors_supported=no
19748 fi
19749         if test $_pkg_short_errors_supported = yes; then
19750                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
19751         else
19752                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
19753         fi
19754         # Put the nasty error message in config.log where it belongs
19755         echo "$GLIB_PKG_ERRORS" >&5
19756
19757         :
19758 elif test $pkg_failed = untried; then
19759         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19761         :
19762 else
19763         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19764         GLIB_LIBS=$pkg_cv_GLIB_LIBS
19765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19766 $as_echo "yes" >&6; }
19767         have_glib=true
19768 fi
19769 fi
19770 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
19771         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
19772 fi
19773 if $have_glib; then
19774
19775 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
19776
19777 fi
19778  if $have_glib; then
19779   HAVE_GLIB_TRUE=
19780   HAVE_GLIB_FALSE='#'
19781 else
19782   HAVE_GLIB_TRUE='#'
19783   HAVE_GLIB_FALSE=
19784 fi
19785
19786
19787
19788
19789 # Check whether --with-gobject was given.
19790 if test "${with_gobject+set}" = set; then :
19791   withval=$with_gobject;
19792 else
19793   with_gobject=no
19794 fi
19795
19796 have_gobject=false
19797 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
19798
19799 pkg_failed=no
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
19801 $as_echo_n "checking for GOBJECT... " >&6; }
19802
19803 if test -n "$GOBJECT_CFLAGS"; then
19804     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
19805  elif test -n "$PKG_CONFIG"; then
19806     if test -n "$PKG_CONFIG" && \
19807     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19808   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19809   ac_status=$?
19810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19811   test $ac_status = 0; }; then
19812   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
19813                       test "x$?" != "x0" && pkg_failed=yes
19814 else
19815   pkg_failed=yes
19816 fi
19817  else
19818     pkg_failed=untried
19819 fi
19820 if test -n "$GOBJECT_LIBS"; then
19821     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
19822  elif test -n "$PKG_CONFIG"; then
19823     if test -n "$PKG_CONFIG" && \
19824     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19825   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19826   ac_status=$?
19827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19828   test $ac_status = 0; }; then
19829   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
19830                       test "x$?" != "x0" && pkg_failed=yes
19831 else
19832   pkg_failed=yes
19833 fi
19834  else
19835     pkg_failed=untried
19836 fi
19837
19838
19839
19840 if test $pkg_failed = yes; then
19841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19842 $as_echo "no" >&6; }
19843
19844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19845         _pkg_short_errors_supported=yes
19846 else
19847         _pkg_short_errors_supported=no
19848 fi
19849         if test $_pkg_short_errors_supported = yes; then
19850                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
19851         else
19852                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
19853         fi
19854         # Put the nasty error message in config.log where it belongs
19855         echo "$GOBJECT_PKG_ERRORS" >&5
19856
19857         :
19858 elif test $pkg_failed = untried; then
19859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19860 $as_echo "no" >&6; }
19861         :
19862 else
19863         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
19864         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
19865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19866 $as_echo "yes" >&6; }
19867         have_gobject=true
19868 fi
19869 fi
19870 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
19871         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
19872 fi
19873 if $have_gobject; then
19874
19875 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
19876
19877         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
19878
19879 fi
19880  if $have_gobject; then
19881   HAVE_GOBJECT_TRUE=
19882   HAVE_GOBJECT_FALSE='#'
19883 else
19884   HAVE_GOBJECT_TRUE='#'
19885   HAVE_GOBJECT_FALSE=
19886 fi
19887
19888
19889
19890
19891
19892 # Gobject-Introspection
19893 have_introspection=false
19894
19895         if $have_gobject; then
19896
19897
19898
19899                 # Check whether --enable-introspection was given.
19900 if test "${enable_introspection+set}" = set; then :
19901   enableval=$enable_introspection;
19902 else
19903   enable_introspection=auto
19904 fi
19905
19906
19907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
19908 $as_echo_n "checking for gobject-introspection... " >&6; }
19909
19910         case $enable_introspection in #(
19911   no) :
19912             found_introspection="no (disabled, use --enable-introspection to enable)"
19913      ;; #(
19914       yes) :
19915             if test -n "$PKG_CONFIG" && \
19916     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
19917   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
19918   ac_status=$?
19919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19920   test $ac_status = 0; }; then
19921   :
19922 else
19923   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
19924 fi
19925         if test -n "$PKG_CONFIG" && \
19926     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19927   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19928   ac_status=$?
19929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19930   test $ac_status = 0; }; then
19931   found_introspection=yes
19932 else
19933   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
19934 fi
19935      ;; #(
19936       auto) :
19937             if test -n "$PKG_CONFIG" && \
19938     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19939   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19940   ac_status=$?
19941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19942   test $ac_status = 0; }; then
19943   found_introspection=yes
19944 else
19945   found_introspection=no
19946 fi
19947                 enable_introspection=$found_introspection
19948      ;; #(
19949   *) :
19950                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
19951      ;;
19952 esac
19953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
19954 $as_echo "$found_introspection" >&6; }
19955
19956     INTROSPECTION_SCANNER=
19957     INTROSPECTION_COMPILER=
19958     INTROSPECTION_GENERATE=
19959     INTROSPECTION_GIRDIR=
19960     INTROSPECTION_TYPELIBDIR=
19961     if test "x$found_introspection" = "xyes"; then
19962        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
19963        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
19964        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
19965        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
19966        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
19967        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
19968        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
19969        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
19970     fi
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980      if test "x$found_introspection" = "xyes"; then
19981   HAVE_INTROSPECTION_TRUE=
19982   HAVE_INTROSPECTION_FALSE='#'
19983 else
19984   HAVE_INTROSPECTION_TRUE='#'
19985   HAVE_INTROSPECTION_FALSE=
19986 fi
19987
19988
19989
19990                 if test "x$found_introspection" = xyes; then
19991                         have_introspection=true
19992                 fi
19993         else
19994                  if false; then
19995   HAVE_INTROSPECTION_TRUE=
19996   HAVE_INTROSPECTION_FALSE='#'
19997 else
19998   HAVE_INTROSPECTION_TRUE='#'
19999   HAVE_INTROSPECTION_FALSE=
20000 fi
20001
20002         fi
20003
20004
20005
20006
20007 # Check whether --with-cairo was given.
20008 if test "${with_cairo+set}" = set; then :
20009   withval=$with_cairo;
20010 else
20011   with_cairo=auto
20012 fi
20013
20014 have_cairo=false
20015 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20016
20017 pkg_failed=no
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20019 $as_echo_n "checking for CAIRO... " >&6; }
20020
20021 if test -n "$CAIRO_CFLAGS"; then
20022     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20023  elif test -n "$PKG_CONFIG"; then
20024     if test -n "$PKG_CONFIG" && \
20025     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20026   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20027   ac_status=$?
20028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20029   test $ac_status = 0; }; then
20030   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20031                       test "x$?" != "x0" && pkg_failed=yes
20032 else
20033   pkg_failed=yes
20034 fi
20035  else
20036     pkg_failed=untried
20037 fi
20038 if test -n "$CAIRO_LIBS"; then
20039     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20040  elif test -n "$PKG_CONFIG"; then
20041     if test -n "$PKG_CONFIG" && \
20042     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20043   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20044   ac_status=$?
20045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20046   test $ac_status = 0; }; then
20047   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20048                       test "x$?" != "x0" && pkg_failed=yes
20049 else
20050   pkg_failed=yes
20051 fi
20052  else
20053     pkg_failed=untried
20054 fi
20055
20056
20057
20058 if test $pkg_failed = yes; then
20059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20060 $as_echo "no" >&6; }
20061
20062 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20063         _pkg_short_errors_supported=yes
20064 else
20065         _pkg_short_errors_supported=no
20066 fi
20067         if test $_pkg_short_errors_supported = yes; then
20068                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20069         else
20070                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20071         fi
20072         # Put the nasty error message in config.log where it belongs
20073         echo "$CAIRO_PKG_ERRORS" >&5
20074
20075         :
20076 elif test $pkg_failed = untried; then
20077         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20078 $as_echo "no" >&6; }
20079         :
20080 else
20081         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20082         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20083         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084 $as_echo "yes" >&6; }
20085         have_cairo=true
20086 fi
20087 fi
20088 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20089         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20090 fi
20091 if $have_cairo; then
20092
20093 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20094
20095 fi
20096  if $have_cairo; then
20097   HAVE_CAIRO_TRUE=
20098   HAVE_CAIRO_FALSE='#'
20099 else
20100   HAVE_CAIRO_TRUE='#'
20101   HAVE_CAIRO_FALSE=
20102 fi
20103
20104
20105 have_cairo_ft=false
20106 if $have_cairo; then
20107
20108 pkg_failed=no
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20110 $as_echo_n "checking for CAIRO_FT... " >&6; }
20111
20112 if test -n "$CAIRO_FT_CFLAGS"; then
20113     pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20114  elif test -n "$PKG_CONFIG"; then
20115     if test -n "$PKG_CONFIG" && \
20116     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20117   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20118   ac_status=$?
20119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20120   test $ac_status = 0; }; then
20121   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20122                       test "x$?" != "x0" && pkg_failed=yes
20123 else
20124   pkg_failed=yes
20125 fi
20126  else
20127     pkg_failed=untried
20128 fi
20129 if test -n "$CAIRO_FT_LIBS"; then
20130     pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20131  elif test -n "$PKG_CONFIG"; then
20132     if test -n "$PKG_CONFIG" && \
20133     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20134   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20135   ac_status=$?
20136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20137   test $ac_status = 0; }; then
20138   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20139                       test "x$?" != "x0" && pkg_failed=yes
20140 else
20141   pkg_failed=yes
20142 fi
20143  else
20144     pkg_failed=untried
20145 fi
20146
20147
20148
20149 if test $pkg_failed = yes; then
20150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20151 $as_echo "no" >&6; }
20152
20153 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20154         _pkg_short_errors_supported=yes
20155 else
20156         _pkg_short_errors_supported=no
20157 fi
20158         if test $_pkg_short_errors_supported = yes; then
20159                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
20160         else
20161                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
20162         fi
20163         # Put the nasty error message in config.log where it belongs
20164         echo "$CAIRO_FT_PKG_ERRORS" >&5
20165
20166         :
20167 elif test $pkg_failed = untried; then
20168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169 $as_echo "no" >&6; }
20170         :
20171 else
20172         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
20173         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
20174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20175 $as_echo "yes" >&6; }
20176         have_cairo_ft=true
20177 fi
20178 fi
20179 if $have_cairo_ft; then
20180
20181 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
20182
20183 fi
20184  if $have_cairo_ft; then
20185   HAVE_CAIRO_FT_TRUE=
20186   HAVE_CAIRO_FT_FALSE='#'
20187 else
20188   HAVE_CAIRO_FT_TRUE='#'
20189   HAVE_CAIRO_FT_FALSE=
20190 fi
20191
20192
20193
20194
20195 # Check whether --with-fontconfig was given.
20196 if test "${with_fontconfig+set}" = set; then :
20197   withval=$with_fontconfig;
20198 else
20199   with_fontconfig=auto
20200 fi
20201
20202 have_fontconfig=false
20203 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
20204
20205 pkg_failed=no
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
20207 $as_echo_n "checking for FONTCONFIG... " >&6; }
20208
20209 if test -n "$FONTCONFIG_CFLAGS"; then
20210     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
20211  elif test -n "$PKG_CONFIG"; then
20212     if test -n "$PKG_CONFIG" && \
20213     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20214   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20215   ac_status=$?
20216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20217   test $ac_status = 0; }; then
20218   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
20219                       test "x$?" != "x0" && pkg_failed=yes
20220 else
20221   pkg_failed=yes
20222 fi
20223  else
20224     pkg_failed=untried
20225 fi
20226 if test -n "$FONTCONFIG_LIBS"; then
20227     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
20228  elif test -n "$PKG_CONFIG"; then
20229     if test -n "$PKG_CONFIG" && \
20230     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20231   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20232   ac_status=$?
20233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20234   test $ac_status = 0; }; then
20235   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
20236                       test "x$?" != "x0" && pkg_failed=yes
20237 else
20238   pkg_failed=yes
20239 fi
20240  else
20241     pkg_failed=untried
20242 fi
20243
20244
20245
20246 if test $pkg_failed = yes; then
20247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20248 $as_echo "no" >&6; }
20249
20250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20251         _pkg_short_errors_supported=yes
20252 else
20253         _pkg_short_errors_supported=no
20254 fi
20255         if test $_pkg_short_errors_supported = yes; then
20256                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
20257         else
20258                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
20259         fi
20260         # Put the nasty error message in config.log where it belongs
20261         echo "$FONTCONFIG_PKG_ERRORS" >&5
20262
20263         :
20264 elif test $pkg_failed = untried; then
20265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20266 $as_echo "no" >&6; }
20267         :
20268 else
20269         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20270         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20272 $as_echo "yes" >&6; }
20273         have_fontconfig=true
20274 fi
20275 fi
20276 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
20277         as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
20278 fi
20279 if $have_fontconfig; then
20280
20281 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
20282
20283 fi
20284  if $have_fontconfig; then
20285   HAVE_FONTCONFIG_TRUE=
20286   HAVE_FONTCONFIG_FALSE='#'
20287 else
20288   HAVE_FONTCONFIG_TRUE='#'
20289   HAVE_FONTCONFIG_FALSE=
20290 fi
20291
20292
20293
20294
20295 # Check whether --with-icu was given.
20296 if test "${with_icu+set}" = set; then :
20297   withval=$with_icu;
20298 else
20299   with_icu=auto
20300 fi
20301
20302 have_icu=false
20303 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
20304
20305 pkg_failed=no
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20307 $as_echo_n "checking for ICU... " >&6; }
20308
20309 if test -n "$ICU_CFLAGS"; then
20310     pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20311  elif test -n "$PKG_CONFIG"; then
20312     if test -n "$PKG_CONFIG" && \
20313     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20314   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20315   ac_status=$?
20316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20317   test $ac_status = 0; }; then
20318   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
20319                       test "x$?" != "x0" && pkg_failed=yes
20320 else
20321   pkg_failed=yes
20322 fi
20323  else
20324     pkg_failed=untried
20325 fi
20326 if test -n "$ICU_LIBS"; then
20327     pkg_cv_ICU_LIBS="$ICU_LIBS"
20328  elif test -n "$PKG_CONFIG"; then
20329     if test -n "$PKG_CONFIG" && \
20330     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20331   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20332   ac_status=$?
20333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20334   test $ac_status = 0; }; then
20335   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
20336                       test "x$?" != "x0" && pkg_failed=yes
20337 else
20338   pkg_failed=yes
20339 fi
20340  else
20341     pkg_failed=untried
20342 fi
20343
20344
20345
20346 if test $pkg_failed = yes; then
20347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20348 $as_echo "no" >&6; }
20349
20350 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20351         _pkg_short_errors_supported=yes
20352 else
20353         _pkg_short_errors_supported=no
20354 fi
20355         if test $_pkg_short_errors_supported = yes; then
20356                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
20357         else
20358                 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
20359         fi
20360         # Put the nasty error message in config.log where it belongs
20361         echo "$ICU_PKG_ERRORS" >&5
20362
20363         :
20364 elif test $pkg_failed = untried; then
20365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20366 $as_echo "no" >&6; }
20367         :
20368 else
20369         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20370         ICU_LIBS=$pkg_cv_ICU_LIBS
20371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20372 $as_echo "yes" >&6; }
20373         have_icu=true
20374 fi
20375
20376                 if test "$have_icu" != "true"; then
20377                 if test -n "$ac_tool_prefix"; then
20378   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
20379 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20381 $as_echo_n "checking for $ac_word... " >&6; }
20382 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
20383   $as_echo_n "(cached) " >&6
20384 else
20385   if test -n "$ICU_CONFIG"; then
20386   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
20387 else
20388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20389 for as_dir in $PATH
20390 do
20391   IFS=$as_save_IFS
20392   test -z "$as_dir" && as_dir=.
20393     for ac_exec_ext in '' $ac_executable_extensions; do
20394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20395     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
20396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20397     break 2
20398   fi
20399 done
20400   done
20401 IFS=$as_save_IFS
20402
20403 fi
20404 fi
20405 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
20406 if test -n "$ICU_CONFIG"; then
20407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
20408 $as_echo "$ICU_CONFIG" >&6; }
20409 else
20410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20411 $as_echo "no" >&6; }
20412 fi
20413
20414
20415 fi
20416 if test -z "$ac_cv_prog_ICU_CONFIG"; then
20417   ac_ct_ICU_CONFIG=$ICU_CONFIG
20418   # Extract the first word of "icu-config", so it can be a program name with args.
20419 set dummy icu-config; ac_word=$2
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20421 $as_echo_n "checking for $ac_word... " >&6; }
20422 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
20423   $as_echo_n "(cached) " >&6
20424 else
20425   if test -n "$ac_ct_ICU_CONFIG"; then
20426   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
20427 else
20428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20429 for as_dir in $PATH
20430 do
20431   IFS=$as_save_IFS
20432   test -z "$as_dir" && as_dir=.
20433     for ac_exec_ext in '' $ac_executable_extensions; do
20434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20435     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
20436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20437     break 2
20438   fi
20439 done
20440   done
20441 IFS=$as_save_IFS
20442
20443 fi
20444 fi
20445 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
20446 if test -n "$ac_ct_ICU_CONFIG"; then
20447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
20448 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
20449 else
20450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20451 $as_echo "no" >&6; }
20452 fi
20453
20454   if test "x$ac_ct_ICU_CONFIG" = x; then
20455     ICU_CONFIG="no"
20456   else
20457     case $cross_compiling:$ac_tool_warned in
20458 yes:)
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20461 ac_tool_warned=yes ;;
20462 esac
20463     ICU_CONFIG=$ac_ct_ICU_CONFIG
20464   fi
20465 else
20466   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
20467 fi
20468
20469                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
20470 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
20471                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
20472                         have_icu=true
20473                         # We don't use --cflags as this gives us a lot of things that we don't
20474                         # necessarily want, like debugging and optimization flags
20475                         # See man (1) icu-config for more info.
20476                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
20477                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
20478
20479
20480                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20481 $as_echo "yes" >&6; }
20482                 else
20483                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20484 $as_echo "no" >&6; }
20485                 fi
20486         fi
20487 fi
20488 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
20489         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
20490 fi
20491
20492 if $have_icu; then
20493         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
20494
20495 $as_echo "#define HAVE_ICU 1" >>confdefs.h
20496
20497         if test "x$with_icu" = "xbuiltin"; then
20498
20499 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
20500
20501         fi
20502 fi
20503  if $have_icu; then
20504   HAVE_ICU_TRUE=
20505   HAVE_ICU_FALSE='#'
20506 else
20507   HAVE_ICU_TRUE='#'
20508   HAVE_ICU_FALSE=
20509 fi
20510
20511  if $have_icu && test "x$with_icu" = "xbuiltin"; then
20512   HAVE_ICU_BUILTIN_TRUE=
20513   HAVE_ICU_BUILTIN_FALSE='#'
20514 else
20515   HAVE_ICU_BUILTIN_TRUE='#'
20516   HAVE_ICU_BUILTIN_FALSE=
20517 fi
20518
20519
20520
20521
20522 # Check whether --with-ucdn was given.
20523 if test "${with_ucdn+set}" = set; then :
20524   withval=$with_ucdn;
20525 else
20526   with_ucdn=yes
20527 fi
20528
20529 have_ucdn=false
20530 if test "x$with_ucdn" = "xyes"; then
20531         have_ucdn=true
20532 fi
20533 if $have_ucdn; then
20534
20535 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
20536
20537 fi
20538  if $have_ucdn; then
20539   HAVE_UCDN_TRUE=
20540   HAVE_UCDN_FALSE='#'
20541 else
20542   HAVE_UCDN_TRUE='#'
20543   HAVE_UCDN_FALSE=
20544 fi
20545
20546
20547
20548
20549 # Check whether --with-graphite2 was given.
20550 if test "${with_graphite2+set}" = set; then :
20551   withval=$with_graphite2;
20552 else
20553   with_graphite2=no
20554 fi
20555
20556 have_graphite2=false
20557 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
20558
20559 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
20560
20561 pkg_failed=no
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
20563 $as_echo_n "checking for GRAPHITE2... " >&6; }
20564
20565 if test -n "$GRAPHITE2_CFLAGS"; then
20566     pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
20567  elif test -n "$PKG_CONFIG"; then
20568     if test -n "$PKG_CONFIG" && \
20569     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20570   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20571   ac_status=$?
20572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20573   test $ac_status = 0; }; then
20574   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
20575                       test "x$?" != "x0" && pkg_failed=yes
20576 else
20577   pkg_failed=yes
20578 fi
20579  else
20580     pkg_failed=untried
20581 fi
20582 if test -n "$GRAPHITE2_LIBS"; then
20583     pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
20584  elif test -n "$PKG_CONFIG"; then
20585     if test -n "$PKG_CONFIG" && \
20586     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20587   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20588   ac_status=$?
20589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20590   test $ac_status = 0; }; then
20591   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
20592                       test "x$?" != "x0" && pkg_failed=yes
20593 else
20594   pkg_failed=yes
20595 fi
20596  else
20597     pkg_failed=untried
20598 fi
20599
20600
20601
20602 if test $pkg_failed = yes; then
20603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20604 $as_echo "no" >&6; }
20605
20606 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20607         _pkg_short_errors_supported=yes
20608 else
20609         _pkg_short_errors_supported=no
20610 fi
20611         if test $_pkg_short_errors_supported = yes; then
20612                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
20613         else
20614                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
20615         fi
20616         # Put the nasty error message in config.log where it belongs
20617         echo "$GRAPHITE2_PKG_ERRORS" >&5
20618
20619         :
20620 elif test $pkg_failed = untried; then
20621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20622 $as_echo "no" >&6; }
20623         :
20624 else
20625         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
20626         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
20627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20628 $as_echo "yes" >&6; }
20629         have_graphite2=true
20630 fi
20631         if test "x$have_graphite2" != "xtrue"; then
20632                 # If pkg-config is not available, graphite2 can still be there
20633                 ac_save_CFLAGS="$CFLAGS"
20634                 ac_save_CPPFLAGS="$CPPFLAGS"
20635                 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
20636                 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
20637                 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
20638 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
20639   have_graphite2=true
20640 else
20641   :
20642 fi
20643
20644
20645                 CPPFLAGS="$ac_save_CPPFLAGS"
20646                 CFLAGS="$ac_save_CFLAGS"
20647         fi
20648 fi
20649 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
20650         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
20651 fi
20652 if $have_graphite2; then
20653
20654 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
20655
20656 fi
20657  if $have_graphite2; then
20658   HAVE_GRAPHITE2_TRUE=
20659   HAVE_GRAPHITE2_FALSE='#'
20660 else
20661   HAVE_GRAPHITE2_TRUE='#'
20662   HAVE_GRAPHITE2_FALSE=
20663 fi
20664
20665
20666
20667
20668 # Check whether --with-freetype was given.
20669 if test "${with_freetype+set}" = set; then :
20670   withval=$with_freetype;
20671 else
20672   with_freetype=auto
20673 fi
20674
20675 have_freetype=false
20676 FREETYPE_DEPS="freetype2 >= 12.0.6"
20677
20678 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
20679         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
20680
20681 pkg_failed=no
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20683 $as_echo_n "checking for FREETYPE... " >&6; }
20684
20685 if test -n "$FREETYPE_CFLAGS"; then
20686     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20687  elif test -n "$PKG_CONFIG"; then
20688     if test -n "$PKG_CONFIG" && \
20689     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20690   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20691   ac_status=$?
20692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20693   test $ac_status = 0; }; then
20694   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
20695                       test "x$?" != "x0" && pkg_failed=yes
20696 else
20697   pkg_failed=yes
20698 fi
20699  else
20700     pkg_failed=untried
20701 fi
20702 if test -n "$FREETYPE_LIBS"; then
20703     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
20704  elif test -n "$PKG_CONFIG"; then
20705     if test -n "$PKG_CONFIG" && \
20706     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20707   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20708   ac_status=$?
20709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710   test $ac_status = 0; }; then
20711   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
20712                       test "x$?" != "x0" && pkg_failed=yes
20713 else
20714   pkg_failed=yes
20715 fi
20716  else
20717     pkg_failed=untried
20718 fi
20719
20720
20721
20722 if test $pkg_failed = yes; then
20723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20724 $as_echo "no" >&6; }
20725
20726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20727         _pkg_short_errors_supported=yes
20728 else
20729         _pkg_short_errors_supported=no
20730 fi
20731         if test $_pkg_short_errors_supported = yes; then
20732                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
20733         else
20734                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
20735         fi
20736         # Put the nasty error message in config.log where it belongs
20737         echo "$FREETYPE_PKG_ERRORS" >&5
20738
20739         :
20740 elif test $pkg_failed = untried; then
20741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20742 $as_echo "no" >&6; }
20743         :
20744 else
20745         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20746         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20748 $as_echo "yes" >&6; }
20749         have_freetype=true
20750 fi
20751 fi
20752 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
20753         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
20754 fi
20755 if $have_freetype; then
20756
20757 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
20758
20759         save_libs=$LIBS
20760         LIBS="$LIBS $FREETYPE_LIBS"
20761         for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
20762 do :
20763   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20766   cat >>confdefs.h <<_ACEOF
20767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20768 _ACEOF
20769
20770 fi
20771 done
20772
20773         LIBS=$save_libs
20774 fi
20775  if $have_freetype; then
20776   HAVE_FREETYPE_TRUE=
20777   HAVE_FREETYPE_FALSE='#'
20778 else
20779   HAVE_FREETYPE_TRUE='#'
20780   HAVE_FREETYPE_FALSE=
20781 fi
20782
20783
20784
20785
20786 # Check whether --with-uniscribe was given.
20787 if test "${with_uniscribe+set}" = set; then :
20788   withval=$with_uniscribe;
20789 else
20790   with_uniscribe=no
20791 fi
20792
20793 have_uniscribe=false
20794 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
20795         for ac_header in usp10.h windows.h
20796 do :
20797   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20798 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20799 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20800   cat >>confdefs.h <<_ACEOF
20801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20802 _ACEOF
20803  have_uniscribe=true
20804 fi
20805
20806 done
20807
20808 fi
20809 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
20810         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
20811 fi
20812 if $have_uniscribe; then
20813         UNISCRIBE_CFLAGS=
20814         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
20815
20816
20817
20818 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
20819
20820 fi
20821  if $have_uniscribe; then
20822   HAVE_UNISCRIBE_TRUE=
20823   HAVE_UNISCRIBE_FALSE='#'
20824 else
20825   HAVE_UNISCRIBE_TRUE='#'
20826   HAVE_UNISCRIBE_FALSE=
20827 fi
20828
20829
20830
20831
20832 # Check whether --with-directwrite was given.
20833 if test "${with_directwrite+set}" = set; then :
20834   withval=$with_directwrite;
20835 else
20836   with_directwrite=no
20837 fi
20838
20839 have_directwrite=false
20840 ac_ext=cpp
20841 ac_cpp='$CXXCPP $CPPFLAGS'
20842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20845
20846 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
20847
20848 for ac_header in dwrite.h
20849 do :
20850   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
20851 if test "x$ac_cv_header_dwrite_h" = xyes; then :
20852   cat >>confdefs.h <<_ACEOF
20853 #define HAVE_DWRITE_H 1
20854 _ACEOF
20855  have_directwrite=true
20856 fi
20857
20858 done
20859
20860 fi
20861 ac_ext=c
20862 ac_cpp='$CPP $CPPFLAGS'
20863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20866
20867 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
20868         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
20869 fi
20870 if $have_directwrite; then
20871         DIRECTWRITE_CXXFLAGS=
20872         DIRECTWRITE_LIBS="-ldwrite"
20873
20874
20875
20876 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
20877
20878 fi
20879  if $have_directwrite; then
20880   HAVE_DIRECTWRITE_TRUE=
20881   HAVE_DIRECTWRITE_FALSE='#'
20882 else
20883   HAVE_DIRECTWRITE_TRUE='#'
20884   HAVE_DIRECTWRITE_FALSE=
20885 fi
20886
20887
20888
20889
20890 # Check whether --with-coretext was given.
20891 if test "${with_coretext+set}" = set; then :
20892   withval=$with_coretext;
20893 else
20894   with_coretext=no
20895 fi
20896
20897 have_coretext=false
20898 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
20899         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
20900 "
20901 if test "x$ac_cv_type_CTFontRef" = xyes; then :
20902   have_coretext=true
20903 fi
20904
20905
20906         if $have_coretext; then
20907                 CORETEXT_CFLAGS=
20908                 CORETEXT_LIBS="-framework ApplicationServices"
20909
20910
20911         else
20912                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
20913                 if test "x$have_coretext" != "xtrue"; then
20914                         # Check for a different symbol to avoid getting cached result.
20915                         ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
20916 "
20917 if test "x$ac_cv_type_CTRunRef" = xyes; then :
20918   have_coretext=true
20919 fi
20920
20921                 fi
20922
20923                 if $have_coretext; then
20924                         CORETEXT_CFLAGS=
20925                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
20926
20927
20928                 fi
20929         fi
20930 fi
20931 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
20932         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
20933 fi
20934 if $have_coretext; then
20935
20936 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
20937
20938 fi
20939  if $have_coretext; then
20940   HAVE_CORETEXT_TRUE=
20941   HAVE_CORETEXT_FALSE='#'
20942 else
20943   HAVE_CORETEXT_TRUE='#'
20944   HAVE_CORETEXT_FALSE=
20945 fi
20946
20947
20948
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
20950 $as_echo_n "checking for Intel atomic primitives... " >&6; }
20951 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
20952   $as_echo_n "(cached) " >&6
20953 else
20954
20955         hb_cv_have_intel_atomic_primitives=false
20956         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20957 /* end confdefs.h.  */
20958
20959                 void memory_barrier (void) { __sync_synchronize (); }
20960                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
20961                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
20962                 void mutex_unlock (int *m) { __sync_lock_release (m); }
20963
20964 int
20965 main ()
20966 {
20967
20968   ;
20969   return 0;
20970 }
20971 _ACEOF
20972 if ac_fn_c_try_link "$LINENO"; then :
20973   hb_cv_have_intel_atomic_primitives=true
20974
20975 fi
20976 rm -f core conftest.err conftest.$ac_objext \
20977     conftest$ac_exeext conftest.$ac_ext
20978
20979 fi
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
20981 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
20982 if $hb_cv_have_intel_atomic_primitives; then
20983
20984 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
20985
20986 fi
20987
20988
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
20990 $as_echo_n "checking for Solaris atomic operations... " >&6; }
20991 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
20992   $as_echo_n "(cached) " >&6
20993 else
20994
20995         hb_cv_have_solaris_atomic_ops=false
20996         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20997 /* end confdefs.h.  */
20998
20999                 #include <atomic.h>
21000                 /* This requires Solaris Studio 12.2 or newer: */
21001                 #include <mbarrier.h>
21002                 void memory_barrier (void) { __machine_rw_barrier (); }
21003                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
21004                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
21005
21006 int
21007 main ()
21008 {
21009
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 if ac_fn_c_try_link "$LINENO"; then :
21015   hb_cv_have_solaris_atomic_ops=true
21016
21017 fi
21018 rm -f core conftest.err conftest.$ac_objext \
21019     conftest$ac_exeext conftest.$ac_ext
21020
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21023 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21024 if $hb_cv_have_solaris_atomic_ops; then
21025
21026 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21027
21028 fi
21029
21030 if test "$os_win32" = no && ! $have_pthread; then
21031         for ac_header in sched.h
21032 do :
21033   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21034 if test "x$ac_cv_header_sched_h" = xyes; then :
21035   cat >>confdefs.h <<_ACEOF
21036 #define HAVE_SCHED_H 1
21037 _ACEOF
21038
21039 fi
21040
21041 done
21042
21043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21044 $as_echo_n "checking for library containing sched_yield... " >&6; }
21045 if ${ac_cv_search_sched_yield+:} false; then :
21046   $as_echo_n "(cached) " >&6
21047 else
21048   ac_func_search_save_LIBS=$LIBS
21049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050 /* end confdefs.h.  */
21051
21052 /* Override any GCC internal prototype to avoid an error.
21053    Use char because int might match the return type of a GCC
21054    builtin and then its argument prototype would still apply.  */
21055 #ifdef __cplusplus
21056 extern "C"
21057 #endif
21058 char sched_yield ();
21059 int
21060 main ()
21061 {
21062 return sched_yield ();
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 for ac_lib in '' rt; do
21068   if test -z "$ac_lib"; then
21069     ac_res="none required"
21070   else
21071     ac_res=-l$ac_lib
21072     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21073   fi
21074   if ac_fn_c_try_link "$LINENO"; then :
21075   ac_cv_search_sched_yield=$ac_res
21076 fi
21077 rm -f core conftest.err conftest.$ac_objext \
21078     conftest$ac_exeext
21079   if ${ac_cv_search_sched_yield+:} false; then :
21080   break
21081 fi
21082 done
21083 if ${ac_cv_search_sched_yield+:} false; then :
21084
21085 else
21086   ac_cv_search_sched_yield=no
21087 fi
21088 rm conftest.$ac_ext
21089 LIBS=$ac_func_search_save_LIBS
21090 fi
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21092 $as_echo "$ac_cv_search_sched_yield" >&6; }
21093 ac_res=$ac_cv_search_sched_yield
21094 if test "$ac_res" != no; then :
21095   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21096
21097 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21098
21099 fi
21100
21101 fi
21102
21103
21104 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/aots/Makefile test/shaping/data/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
21105
21106
21107 cat >confcache <<\_ACEOF
21108 # This file is a shell script that caches the results of configure
21109 # tests run on this system so they can be shared between configure
21110 # scripts and configure runs, see configure's option --config-cache.
21111 # It is not useful on other systems.  If it contains results you don't
21112 # want to keep, you may remove or edit it.
21113 #
21114 # config.status only pays attention to the cache file if you give it
21115 # the --recheck option to rerun configure.
21116 #
21117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21119 # following values.
21120
21121 _ACEOF
21122
21123 # The following way of writing the cache mishandles newlines in values,
21124 # but we know of no workaround that is simple, portable, and efficient.
21125 # So, we kill variables containing newlines.
21126 # Ultrix sh set writes to stderr and can't be redirected directly,
21127 # and sets the high bit in the cache file unless we assign to the vars.
21128 (
21129   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21130     eval ac_val=\$$ac_var
21131     case $ac_val in #(
21132     *${as_nl}*)
21133       case $ac_var in #(
21134       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21135 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21136       esac
21137       case $ac_var in #(
21138       _ | IFS | as_nl) ;; #(
21139       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21140       *) { eval $ac_var=; unset $ac_var;} ;;
21141       esac ;;
21142     esac
21143   done
21144
21145   (set) 2>&1 |
21146     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21147     *${as_nl}ac_space=\ *)
21148       # `set' does not quote correctly, so add quotes: double-quote
21149       # substitution turns \\\\ into \\, and sed turns \\ into \.
21150       sed -n \
21151         "s/'/'\\\\''/g;
21152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21153       ;; #(
21154     *)
21155       # `set' quotes correctly as required by POSIX, so do not add quotes.
21156       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21157       ;;
21158     esac |
21159     sort
21160 ) |
21161   sed '
21162      /^ac_cv_env_/b end
21163      t clear
21164      :clear
21165      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21166      t end
21167      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21168      :end' >>confcache
21169 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21170   if test -w "$cache_file"; then
21171     if test "x$cache_file" != "x/dev/null"; then
21172       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21173 $as_echo "$as_me: updating cache $cache_file" >&6;}
21174       if test ! -f "$cache_file" || test -h "$cache_file"; then
21175         cat confcache >"$cache_file"
21176       else
21177         case $cache_file in #(
21178         */* | ?:*)
21179           mv -f confcache "$cache_file"$$ &&
21180           mv -f "$cache_file"$$ "$cache_file" ;; #(
21181         *)
21182           mv -f confcache "$cache_file" ;;
21183         esac
21184       fi
21185     fi
21186   else
21187     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21188 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21189   fi
21190 fi
21191 rm -f confcache
21192
21193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21194 # Let make expand exec_prefix.
21195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21196
21197 DEFS=-DHAVE_CONFIG_H
21198
21199 ac_libobjs=
21200 ac_ltlibobjs=
21201 U=
21202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21203   # 1. Remove the extension, and $U if already installed.
21204   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21205   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21206   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21207   #    will be set to the directory where LIBOBJS objects are built.
21208   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21209   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21210 done
21211 LIBOBJS=$ac_libobjs
21212
21213 LTLIBOBJS=$ac_ltlibobjs
21214
21215
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21217 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21218    if test -n "$am_sleep_pid"; then
21219      # Hide warnings about reused PIDs.
21220      wait $am_sleep_pid 2>/dev/null
21221    fi
21222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21223 $as_echo "done" >&6; }
21224  if test -n "$EXEEXT"; then
21225   am__EXEEXT_TRUE=
21226   am__EXEEXT_FALSE='#'
21227 else
21228   am__EXEEXT_TRUE='#'
21229   am__EXEEXT_FALSE=
21230 fi
21231
21232 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21233   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21235 fi
21236 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21237   as_fn_error $? "conditional \"AMDEP\" was never defined.
21238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21239 fi
21240 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21241   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21243 fi
21244 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21245   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21247 fi
21248 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21249   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21251 fi
21252 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21253   as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21255 fi
21256 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21257   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21259 fi
21260 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21261   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21263 fi
21264 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21265   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21267 fi
21268 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21269   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21271 fi
21272 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21273   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21275 fi
21276 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21277   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279 fi
21280 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21281   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21283 fi
21284 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21285   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21287 fi
21288 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21289   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21291 fi
21292 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
21293   as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
21294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21295 fi
21296 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21297   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21299 fi
21300 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21301   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
21302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21303 fi
21304 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21305   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21307 fi
21308 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21309   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21311 fi
21312 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
21313   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
21314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21315 fi
21316 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
21317   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
21318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21319 fi
21320 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
21321   as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
21322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21323 fi
21324 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
21325   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
21326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21327 fi
21328 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
21329   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
21330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21331 fi
21332 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
21333   as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
21334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21335 fi
21336 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
21337   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
21338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21339 fi
21340 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
21341   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
21342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21343 fi
21344 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
21345   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
21346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21347 fi
21348 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
21349   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
21350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21351 fi
21352 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
21353   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
21354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21355 fi
21356
21357 : "${CONFIG_STATUS=./config.status}"
21358 ac_write_fail=0
21359 ac_clean_files_save=$ac_clean_files
21360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21362 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21363 as_write_fail=0
21364 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21365 #! $SHELL
21366 # Generated by $as_me.
21367 # Run this file to recreate the current configuration.
21368 # Compiler output produced by configure, useful for debugging
21369 # configure, is in config.log if it exists.
21370
21371 debug=false
21372 ac_cs_recheck=false
21373 ac_cs_silent=false
21374
21375 SHELL=\${CONFIG_SHELL-$SHELL}
21376 export SHELL
21377 _ASEOF
21378 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21379 ## -------------------- ##
21380 ## M4sh Initialization. ##
21381 ## -------------------- ##
21382
21383 # Be more Bourne compatible
21384 DUALCASE=1; export DUALCASE # for MKS sh
21385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21386   emulate sh
21387   NULLCMD=:
21388   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21389   # is contrary to our usage.  Disable this feature.
21390   alias -g '${1+"$@"}'='"$@"'
21391   setopt NO_GLOB_SUBST
21392 else
21393   case `(set -o) 2>/dev/null` in #(
21394   *posix*) :
21395     set -o posix ;; #(
21396   *) :
21397      ;;
21398 esac
21399 fi
21400
21401
21402 as_nl='
21403 '
21404 export as_nl
21405 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21406 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21408 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21409 # Prefer a ksh shell builtin over an external printf program on Solaris,
21410 # but without wasting forks for bash or zsh.
21411 if test -z "$BASH_VERSION$ZSH_VERSION" \
21412     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21413   as_echo='print -r --'
21414   as_echo_n='print -rn --'
21415 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21416   as_echo='printf %s\n'
21417   as_echo_n='printf %s'
21418 else
21419   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21420     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21421     as_echo_n='/usr/ucb/echo -n'
21422   else
21423     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21424     as_echo_n_body='eval
21425       arg=$1;
21426       case $arg in #(
21427       *"$as_nl"*)
21428         expr "X$arg" : "X\\(.*\\)$as_nl";
21429         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21430       esac;
21431       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21432     '
21433     export as_echo_n_body
21434     as_echo_n='sh -c $as_echo_n_body as_echo'
21435   fi
21436   export as_echo_body
21437   as_echo='sh -c $as_echo_body as_echo'
21438 fi
21439
21440 # The user is always right.
21441 if test "${PATH_SEPARATOR+set}" != set; then
21442   PATH_SEPARATOR=:
21443   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21444     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21445       PATH_SEPARATOR=';'
21446   }
21447 fi
21448
21449
21450 # IFS
21451 # We need space, tab and new line, in precisely that order.  Quoting is
21452 # there to prevent editors from complaining about space-tab.
21453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21454 # splitting by setting IFS to empty value.)
21455 IFS=" ""        $as_nl"
21456
21457 # Find who we are.  Look in the path if we contain no directory separator.
21458 as_myself=
21459 case $0 in #((
21460   *[\\/]* ) as_myself=$0 ;;
21461   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21462 for as_dir in $PATH
21463 do
21464   IFS=$as_save_IFS
21465   test -z "$as_dir" && as_dir=.
21466     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21467   done
21468 IFS=$as_save_IFS
21469
21470      ;;
21471 esac
21472 # We did not find ourselves, most probably we were run as `sh COMMAND'
21473 # in which case we are not to be found in the path.
21474 if test "x$as_myself" = x; then
21475   as_myself=$0
21476 fi
21477 if test ! -f "$as_myself"; then
21478   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21479   exit 1
21480 fi
21481
21482 # Unset variables that we do not need and which cause bugs (e.g. in
21483 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21484 # suppresses any "Segmentation fault" message there.  '((' could
21485 # trigger a bug in pdksh 5.2.14.
21486 for as_var in BASH_ENV ENV MAIL MAILPATH
21487 do eval test x\${$as_var+set} = xset \
21488   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21489 done
21490 PS1='$ '
21491 PS2='> '
21492 PS4='+ '
21493
21494 # NLS nuisances.
21495 LC_ALL=C
21496 export LC_ALL
21497 LANGUAGE=C
21498 export LANGUAGE
21499
21500 # CDPATH.
21501 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21502
21503
21504 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21505 # ----------------------------------------
21506 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21507 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21508 # script with STATUS, using 1 if that was 0.
21509 as_fn_error ()
21510 {
21511   as_status=$1; test $as_status -eq 0 && as_status=1
21512   if test "$4"; then
21513     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21514     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21515   fi
21516   $as_echo "$as_me: error: $2" >&2
21517   as_fn_exit $as_status
21518 } # as_fn_error
21519
21520
21521 # as_fn_set_status STATUS
21522 # -----------------------
21523 # Set $? to STATUS, without forking.
21524 as_fn_set_status ()
21525 {
21526   return $1
21527 } # as_fn_set_status
21528
21529 # as_fn_exit STATUS
21530 # -----------------
21531 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21532 as_fn_exit ()
21533 {
21534   set +e
21535   as_fn_set_status $1
21536   exit $1
21537 } # as_fn_exit
21538
21539 # as_fn_unset VAR
21540 # ---------------
21541 # Portably unset VAR.
21542 as_fn_unset ()
21543 {
21544   { eval $1=; unset $1;}
21545 }
21546 as_unset=as_fn_unset
21547 # as_fn_append VAR VALUE
21548 # ----------------------
21549 # Append the text in VALUE to the end of the definition contained in VAR. Take
21550 # advantage of any shell optimizations that allow amortized linear growth over
21551 # repeated appends, instead of the typical quadratic growth present in naive
21552 # implementations.
21553 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21554   eval 'as_fn_append ()
21555   {
21556     eval $1+=\$2
21557   }'
21558 else
21559   as_fn_append ()
21560   {
21561     eval $1=\$$1\$2
21562   }
21563 fi # as_fn_append
21564
21565 # as_fn_arith ARG...
21566 # ------------------
21567 # Perform arithmetic evaluation on the ARGs, and store the result in the
21568 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21569 # must be portable across $(()) and expr.
21570 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21571   eval 'as_fn_arith ()
21572   {
21573     as_val=$(( $* ))
21574   }'
21575 else
21576   as_fn_arith ()
21577   {
21578     as_val=`expr "$@" || test $? -eq 1`
21579   }
21580 fi # as_fn_arith
21581
21582
21583 if expr a : '\(a\)' >/dev/null 2>&1 &&
21584    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21585   as_expr=expr
21586 else
21587   as_expr=false
21588 fi
21589
21590 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21591   as_basename=basename
21592 else
21593   as_basename=false
21594 fi
21595
21596 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21597   as_dirname=dirname
21598 else
21599   as_dirname=false
21600 fi
21601
21602 as_me=`$as_basename -- "$0" ||
21603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21604          X"$0" : 'X\(//\)$' \| \
21605          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21606 $as_echo X/"$0" |
21607     sed '/^.*\/\([^/][^/]*\)\/*$/{
21608             s//\1/
21609             q
21610           }
21611           /^X\/\(\/\/\)$/{
21612             s//\1/
21613             q
21614           }
21615           /^X\/\(\/\).*/{
21616             s//\1/
21617             q
21618           }
21619           s/.*/./; q'`
21620
21621 # Avoid depending upon Character Ranges.
21622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21625 as_cr_digits='0123456789'
21626 as_cr_alnum=$as_cr_Letters$as_cr_digits
21627
21628 ECHO_C= ECHO_N= ECHO_T=
21629 case `echo -n x` in #(((((
21630 -n*)
21631   case `echo 'xy\c'` in
21632   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21633   xy)  ECHO_C='\c';;
21634   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21635        ECHO_T=' ';;
21636   esac;;
21637 *)
21638   ECHO_N='-n';;
21639 esac
21640
21641 rm -f conf$$ conf$$.exe conf$$.file
21642 if test -d conf$$.dir; then
21643   rm -f conf$$.dir/conf$$.file
21644 else
21645   rm -f conf$$.dir
21646   mkdir conf$$.dir 2>/dev/null
21647 fi
21648 if (echo >conf$$.file) 2>/dev/null; then
21649   if ln -s conf$$.file conf$$ 2>/dev/null; then
21650     as_ln_s='ln -s'
21651     # ... but there are two gotchas:
21652     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21653     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21654     # In both cases, we have to default to `cp -pR'.
21655     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21656       as_ln_s='cp -pR'
21657   elif ln conf$$.file conf$$ 2>/dev/null; then
21658     as_ln_s=ln
21659   else
21660     as_ln_s='cp -pR'
21661   fi
21662 else
21663   as_ln_s='cp -pR'
21664 fi
21665 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21666 rmdir conf$$.dir 2>/dev/null
21667
21668
21669 # as_fn_mkdir_p
21670 # -------------
21671 # Create "$as_dir" as a directory, including parents if necessary.
21672 as_fn_mkdir_p ()
21673 {
21674
21675   case $as_dir in #(
21676   -*) as_dir=./$as_dir;;
21677   esac
21678   test -d "$as_dir" || eval $as_mkdir_p || {
21679     as_dirs=
21680     while :; do
21681       case $as_dir in #(
21682       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21683       *) as_qdir=$as_dir;;
21684       esac
21685       as_dirs="'$as_qdir' $as_dirs"
21686       as_dir=`$as_dirname -- "$as_dir" ||
21687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21688          X"$as_dir" : 'X\(//\)[^/]' \| \
21689          X"$as_dir" : 'X\(//\)$' \| \
21690          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21691 $as_echo X"$as_dir" |
21692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21693             s//\1/
21694             q
21695           }
21696           /^X\(\/\/\)[^/].*/{
21697             s//\1/
21698             q
21699           }
21700           /^X\(\/\/\)$/{
21701             s//\1/
21702             q
21703           }
21704           /^X\(\/\).*/{
21705             s//\1/
21706             q
21707           }
21708           s/.*/./; q'`
21709       test -d "$as_dir" && break
21710     done
21711     test -z "$as_dirs" || eval "mkdir $as_dirs"
21712   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21713
21714
21715 } # as_fn_mkdir_p
21716 if mkdir -p . 2>/dev/null; then
21717   as_mkdir_p='mkdir -p "$as_dir"'
21718 else
21719   test -d ./-p && rmdir ./-p
21720   as_mkdir_p=false
21721 fi
21722
21723
21724 # as_fn_executable_p FILE
21725 # -----------------------
21726 # Test if FILE is an executable regular file.
21727 as_fn_executable_p ()
21728 {
21729   test -f "$1" && test -x "$1"
21730 } # as_fn_executable_p
21731 as_test_x='test -x'
21732 as_executable_p=as_fn_executable_p
21733
21734 # Sed expression to map a string onto a valid CPP name.
21735 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21736
21737 # Sed expression to map a string onto a valid variable name.
21738 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21739
21740
21741 exec 6>&1
21742 ## ----------------------------------- ##
21743 ## Main body of $CONFIG_STATUS script. ##
21744 ## ----------------------------------- ##
21745 _ASEOF
21746 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21747
21748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21749 # Save the log message, to keep $0 and so on meaningful, and to
21750 # report actual input values of CONFIG_FILES etc. instead of their
21751 # values after options handling.
21752 ac_log="
21753 This file was extended by HarfBuzz $as_me 2.3.1, which was
21754 generated by GNU Autoconf 2.69.  Invocation command line was
21755
21756   CONFIG_FILES    = $CONFIG_FILES
21757   CONFIG_HEADERS  = $CONFIG_HEADERS
21758   CONFIG_LINKS    = $CONFIG_LINKS
21759   CONFIG_COMMANDS = $CONFIG_COMMANDS
21760   $ $0 $@
21761
21762 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21763 "
21764
21765 _ACEOF
21766
21767 case $ac_config_files in *"
21768 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21769 esac
21770
21771 case $ac_config_headers in *"
21772 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21773 esac
21774
21775
21776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21777 # Files that config.status was made for.
21778 config_files="$ac_config_files"
21779 config_headers="$ac_config_headers"
21780 config_commands="$ac_config_commands"
21781
21782 _ACEOF
21783
21784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21785 ac_cs_usage="\
21786 \`$as_me' instantiates files and other configuration actions
21787 from templates according to the current configuration.  Unless the files
21788 and actions are specified as TAGs, all are instantiated by default.
21789
21790 Usage: $0 [OPTION]... [TAG]...
21791
21792   -h, --help       print this help, then exit
21793   -V, --version    print version number and configuration settings, then exit
21794       --config     print configuration, then exit
21795   -q, --quiet, --silent
21796                    do not print progress messages
21797   -d, --debug      don't remove temporary files
21798       --recheck    update $as_me by reconfiguring in the same conditions
21799       --file=FILE[:TEMPLATE]
21800                    instantiate the configuration file FILE
21801       --header=FILE[:TEMPLATE]
21802                    instantiate the configuration header FILE
21803
21804 Configuration files:
21805 $config_files
21806
21807 Configuration headers:
21808 $config_headers
21809
21810 Configuration commands:
21811 $config_commands
21812
21813 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
21814 HarfBuzz home page: <http://harfbuzz.org/>."
21815
21816 _ACEOF
21817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21818 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21819 ac_cs_version="\\
21820 HarfBuzz config.status 2.3.1
21821 configured by $0, generated by GNU Autoconf 2.69,
21822   with options \\"\$ac_cs_config\\"
21823
21824 Copyright (C) 2012 Free Software Foundation, Inc.
21825 This config.status script is free software; the Free Software Foundation
21826 gives unlimited permission to copy, distribute and modify it."
21827
21828 ac_pwd='$ac_pwd'
21829 srcdir='$srcdir'
21830 INSTALL='$INSTALL'
21831 MKDIR_P='$MKDIR_P'
21832 AWK='$AWK'
21833 test -n "\$AWK" || AWK=awk
21834 _ACEOF
21835
21836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21837 # The default lists apply if the user does not specify any file.
21838 ac_need_defaults=:
21839 while test $# != 0
21840 do
21841   case $1 in
21842   --*=?*)
21843     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21844     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21845     ac_shift=:
21846     ;;
21847   --*=)
21848     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21849     ac_optarg=
21850     ac_shift=:
21851     ;;
21852   *)
21853     ac_option=$1
21854     ac_optarg=$2
21855     ac_shift=shift
21856     ;;
21857   esac
21858
21859   case $ac_option in
21860   # Handling of the options.
21861   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21862     ac_cs_recheck=: ;;
21863   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21864     $as_echo "$ac_cs_version"; exit ;;
21865   --config | --confi | --conf | --con | --co | --c )
21866     $as_echo "$ac_cs_config"; exit ;;
21867   --debug | --debu | --deb | --de | --d | -d )
21868     debug=: ;;
21869   --file | --fil | --fi | --f )
21870     $ac_shift
21871     case $ac_optarg in
21872     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21873     '') as_fn_error $? "missing file argument" ;;
21874     esac
21875     as_fn_append CONFIG_FILES " '$ac_optarg'"
21876     ac_need_defaults=false;;
21877   --header | --heade | --head | --hea )
21878     $ac_shift
21879     case $ac_optarg in
21880     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21881     esac
21882     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21883     ac_need_defaults=false;;
21884   --he | --h)
21885     # Conflict between --help and --header
21886     as_fn_error $? "ambiguous option: \`$1'
21887 Try \`$0 --help' for more information.";;
21888   --help | --hel | -h )
21889     $as_echo "$ac_cs_usage"; exit ;;
21890   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21891   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21892     ac_cs_silent=: ;;
21893
21894   # This is an error.
21895   -*) as_fn_error $? "unrecognized option: \`$1'
21896 Try \`$0 --help' for more information." ;;
21897
21898   *) as_fn_append ac_config_targets " $1"
21899      ac_need_defaults=false ;;
21900
21901   esac
21902   shift
21903 done
21904
21905 ac_configure_extra_args=
21906
21907 if $ac_cs_silent; then
21908   exec 6>/dev/null
21909   ac_configure_extra_args="$ac_configure_extra_args --silent"
21910 fi
21911
21912 _ACEOF
21913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21914 if \$ac_cs_recheck; then
21915   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21916   shift
21917   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21918   CONFIG_SHELL='$SHELL'
21919   export CONFIG_SHELL
21920   exec "\$@"
21921 fi
21922
21923 _ACEOF
21924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21925 exec 5>>config.log
21926 {
21927   echo
21928   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21929 ## Running $as_me. ##
21930 _ASBOX
21931   $as_echo "$ac_log"
21932 } >&5
21933
21934 _ACEOF
21935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21936 #
21937 # INIT-COMMANDS
21938 #
21939 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21940
21941
21942 # The HP-UX ksh and POSIX shell print the target directory to stdout
21943 # if CDPATH is set.
21944 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21945
21946 sed_quote_subst='$sed_quote_subst'
21947 double_quote_subst='$double_quote_subst'
21948 delay_variable_subst='$delay_variable_subst'
21949 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21950 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21951 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21952 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21953 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21954 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21955 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21956 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21957 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21958 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21959 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21960 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21961 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21962 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21963 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21964 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21965 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21966 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21967 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21968 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21969 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21970 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21971 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21972 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21973 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21974 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21975 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21976 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21977 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21978 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21979 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21980 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21981 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21982 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21983 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21984 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21985 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21986 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21987 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21988 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21989 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21990 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21991 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21992 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21993 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21994 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21995 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21996 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21997 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21998 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21999 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22000 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22001 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22002 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22003 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22004 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22005 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22006 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22007 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"`'
22008 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22009 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22010 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22011 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22012 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22013 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22014 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22015 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22016 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22017 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22018 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22019 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22020 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22021 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22022 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22023 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22024 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22025 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22026 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22027 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22028 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22029 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22030 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22031 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22032 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22033 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22034 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22035 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22036 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22037 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22038 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22039 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22040 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22041 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22042 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22043 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22044 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22045 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22046 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22047 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22048 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22049 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22050 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22051 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22052 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22053 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22054 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22055 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22056 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22057 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22058 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22059 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22060 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22061 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22062 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22063 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22064 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22065 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22066 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22067 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22068 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22069 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22070 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22071 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22072 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22073 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22074 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22075 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22076 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22077 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22078 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22079 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22080 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22081 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22082 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22083 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22084 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22085 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22086 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22087 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22088 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22089 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22090 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22091 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22092 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22093 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22094 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22095 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22096 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22097 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22098 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22099 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22100 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22101 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22102 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22103 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22104 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22105 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22106 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22107 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22108 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22109 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22110 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22111 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22112 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22113 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22114 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22115 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22116 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22117 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22118 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22119 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22120 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22121 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22122 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22123 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22124 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22125 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22126 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22127 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22128 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22129 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22130 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22131 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22132 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22133 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22134 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22135 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22136 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22137 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22138
22139 LTCC='$LTCC'
22140 LTCFLAGS='$LTCFLAGS'
22141 compiler='$compiler_DEFAULT'
22142
22143 # A function that is used when there is no print builtin or printf.
22144 func_fallback_echo ()
22145 {
22146   eval 'cat <<_LTECHO_EOF
22147 \$1
22148 _LTECHO_EOF'
22149 }
22150
22151 # Quote evaled strings.
22152 for var in SHELL \
22153 ECHO \
22154 PATH_SEPARATOR \
22155 SED \
22156 GREP \
22157 EGREP \
22158 FGREP \
22159 LD \
22160 NM \
22161 LN_S \
22162 lt_SP2NL \
22163 lt_NL2SP \
22164 reload_flag \
22165 OBJDUMP \
22166 deplibs_check_method \
22167 file_magic_cmd \
22168 file_magic_glob \
22169 want_nocaseglob \
22170 DLLTOOL \
22171 sharedlib_from_linklib_cmd \
22172 AR \
22173 AR_FLAGS \
22174 archiver_list_spec \
22175 STRIP \
22176 RANLIB \
22177 CC \
22178 CFLAGS \
22179 compiler \
22180 lt_cv_sys_global_symbol_pipe \
22181 lt_cv_sys_global_symbol_to_cdecl \
22182 lt_cv_sys_global_symbol_to_import \
22183 lt_cv_sys_global_symbol_to_c_name_address \
22184 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22185 lt_cv_nm_interface \
22186 nm_file_list_spec \
22187 lt_cv_truncate_bin \
22188 lt_prog_compiler_no_builtin_flag \
22189 lt_prog_compiler_pic \
22190 lt_prog_compiler_wl \
22191 lt_prog_compiler_static \
22192 lt_cv_prog_compiler_c_o \
22193 need_locks \
22194 MANIFEST_TOOL \
22195 DSYMUTIL \
22196 NMEDIT \
22197 LIPO \
22198 OTOOL \
22199 OTOOL64 \
22200 shrext_cmds \
22201 export_dynamic_flag_spec \
22202 whole_archive_flag_spec \
22203 compiler_needs_object \
22204 with_gnu_ld \
22205 allow_undefined_flag \
22206 no_undefined_flag \
22207 hardcode_libdir_flag_spec \
22208 hardcode_libdir_separator \
22209 exclude_expsyms \
22210 include_expsyms \
22211 file_list_spec \
22212 variables_saved_for_relink \
22213 libname_spec \
22214 library_names_spec \
22215 soname_spec \
22216 install_override_mode \
22217 finish_eval \
22218 old_striplib \
22219 striplib \
22220 compiler_lib_search_dirs \
22221 predep_objects \
22222 postdep_objects \
22223 predeps \
22224 postdeps \
22225 compiler_lib_search_path \
22226 LD_CXX \
22227 reload_flag_CXX \
22228 compiler_CXX \
22229 lt_prog_compiler_no_builtin_flag_CXX \
22230 lt_prog_compiler_pic_CXX \
22231 lt_prog_compiler_wl_CXX \
22232 lt_prog_compiler_static_CXX \
22233 lt_cv_prog_compiler_c_o_CXX \
22234 export_dynamic_flag_spec_CXX \
22235 whole_archive_flag_spec_CXX \
22236 compiler_needs_object_CXX \
22237 with_gnu_ld_CXX \
22238 allow_undefined_flag_CXX \
22239 no_undefined_flag_CXX \
22240 hardcode_libdir_flag_spec_CXX \
22241 hardcode_libdir_separator_CXX \
22242 exclude_expsyms_CXX \
22243 include_expsyms_CXX \
22244 file_list_spec_CXX \
22245 compiler_lib_search_dirs_CXX \
22246 predep_objects_CXX \
22247 postdep_objects_CXX \
22248 predeps_CXX \
22249 postdeps_CXX \
22250 compiler_lib_search_path_CXX; do
22251     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22252     *[\\\\\\\`\\"\\\$]*)
22253       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22254       ;;
22255     *)
22256       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22257       ;;
22258     esac
22259 done
22260
22261 # Double-quote double-evaled strings.
22262 for var in reload_cmds \
22263 old_postinstall_cmds \
22264 old_postuninstall_cmds \
22265 old_archive_cmds \
22266 extract_expsyms_cmds \
22267 old_archive_from_new_cmds \
22268 old_archive_from_expsyms_cmds \
22269 archive_cmds \
22270 archive_expsym_cmds \
22271 module_cmds \
22272 module_expsym_cmds \
22273 export_symbols_cmds \
22274 prelink_cmds \
22275 postlink_cmds \
22276 postinstall_cmds \
22277 postuninstall_cmds \
22278 finish_cmds \
22279 sys_lib_search_path_spec \
22280 configure_time_dlsearch_path \
22281 configure_time_lt_sys_library_path \
22282 reload_cmds_CXX \
22283 old_archive_cmds_CXX \
22284 old_archive_from_new_cmds_CXX \
22285 old_archive_from_expsyms_cmds_CXX \
22286 archive_cmds_CXX \
22287 archive_expsym_cmds_CXX \
22288 module_cmds_CXX \
22289 module_expsym_cmds_CXX \
22290 export_symbols_cmds_CXX \
22291 prelink_cmds_CXX \
22292 postlink_cmds_CXX; do
22293     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22294     *[\\\\\\\`\\"\\\$]*)
22295       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22296       ;;
22297     *)
22298       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22299       ;;
22300     esac
22301 done
22302
22303 ac_aux_dir='$ac_aux_dir'
22304
22305 # See if we are running on zsh, and set the options that allow our
22306 # commands through without removal of \ escapes INIT.
22307 if test -n "\${ZSH_VERSION+set}"; then
22308    setopt NO_GLOB_SUBST
22309 fi
22310
22311
22312     PACKAGE='$PACKAGE'
22313     VERSION='$VERSION'
22314     RM='$RM'
22315     ofile='$ofile'
22316
22317
22318
22319
22320
22321
22322 _ACEOF
22323
22324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22325
22326 # Handling of arguments.
22327 for ac_config_target in $ac_config_targets
22328 do
22329   case $ac_config_target in
22330     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22331     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22332     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22333     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22334     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22335     "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
22336     "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
22337     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22338     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22339     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
22340     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
22341     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
22342     "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
22343     "test/shaping/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/aots/Makefile" ;;
22344     "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
22345     "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
22346     "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
22347     "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
22348     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22349     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
22350
22351   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22352   esac
22353 done
22354
22355
22356 # If the user did not use the arguments to specify the items to instantiate,
22357 # then the envvar interface is used.  Set only those that are not.
22358 # We use the long form for the default assignment because of an extremely
22359 # bizarre bug on SunOS 4.1.3.
22360 if $ac_need_defaults; then
22361   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22362   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22363   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22364 fi
22365
22366 # Have a temporary directory for convenience.  Make it in the build tree
22367 # simply because there is no reason against having it here, and in addition,
22368 # creating and moving files from /tmp can sometimes cause problems.
22369 # Hook for its removal unless debugging.
22370 # Note that there is a small window in which the directory will not be cleaned:
22371 # after its creation but before its name has been assigned to `$tmp'.
22372 $debug ||
22373 {
22374   tmp= ac_tmp=
22375   trap 'exit_status=$?
22376   : "${ac_tmp:=$tmp}"
22377   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22378 ' 0
22379   trap 'as_fn_exit 1' 1 2 13 15
22380 }
22381 # Create a (secure) tmp directory for tmp files.
22382
22383 {
22384   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22385   test -d "$tmp"
22386 }  ||
22387 {
22388   tmp=./conf$$-$RANDOM
22389   (umask 077 && mkdir "$tmp")
22390 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22391 ac_tmp=$tmp
22392
22393 # Set up the scripts for CONFIG_FILES section.
22394 # No need to generate them if there are no CONFIG_FILES.
22395 # This happens for instance with `./config.status config.h'.
22396 if test -n "$CONFIG_FILES"; then
22397
22398
22399 ac_cr=`echo X | tr X '\015'`
22400 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22401 # But we know of no other shell where ac_cr would be empty at this
22402 # point, so we can use a bashism as a fallback.
22403 if test "x$ac_cr" = x; then
22404   eval ac_cr=\$\'\\r\'
22405 fi
22406 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22407 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22408   ac_cs_awk_cr='\\r'
22409 else
22410   ac_cs_awk_cr=$ac_cr
22411 fi
22412
22413 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22414 _ACEOF
22415
22416
22417 {
22418   echo "cat >conf$$subs.awk <<_ACEOF" &&
22419   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22420   echo "_ACEOF"
22421 } >conf$$subs.sh ||
22422   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22423 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22424 ac_delim='%!_!# '
22425 for ac_last_try in false false false false false :; do
22426   . ./conf$$subs.sh ||
22427     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22428
22429   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22430   if test $ac_delim_n = $ac_delim_num; then
22431     break
22432   elif $ac_last_try; then
22433     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22434   else
22435     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22436   fi
22437 done
22438 rm -f conf$$subs.sh
22439
22440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22441 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22442 _ACEOF
22443 sed -n '
22444 h
22445 s/^/S["/; s/!.*/"]=/
22446 p
22447 g
22448 s/^[^!]*!//
22449 :repl
22450 t repl
22451 s/'"$ac_delim"'$//
22452 t delim
22453 :nl
22454 h
22455 s/\(.\{148\}\)..*/\1/
22456 t more1
22457 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22458 p
22459 n
22460 b repl
22461 :more1
22462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22463 p
22464 g
22465 s/.\{148\}//
22466 t nl
22467 :delim
22468 h
22469 s/\(.\{148\}\)..*/\1/
22470 t more2
22471 s/["\\]/\\&/g; s/^/"/; s/$/"/
22472 p
22473 b
22474 :more2
22475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22476 p
22477 g
22478 s/.\{148\}//
22479 t delim
22480 ' <conf$$subs.awk | sed '
22481 /^[^""]/{
22482   N
22483   s/\n//
22484 }
22485 ' >>$CONFIG_STATUS || ac_write_fail=1
22486 rm -f conf$$subs.awk
22487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22488 _ACAWK
22489 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22490   for (key in S) S_is_set[key] = 1
22491   FS = "\a"
22492
22493 }
22494 {
22495   line = $ 0
22496   nfields = split(line, field, "@")
22497   substed = 0
22498   len = length(field[1])
22499   for (i = 2; i < nfields; i++) {
22500     key = field[i]
22501     keylen = length(key)
22502     if (S_is_set[key]) {
22503       value = S[key]
22504       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22505       len += length(value) + length(field[++i])
22506       substed = 1
22507     } else
22508       len += 1 + keylen
22509   }
22510
22511   print line
22512 }
22513
22514 _ACAWK
22515 _ACEOF
22516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22517 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22518   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22519 else
22520   cat
22521 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22522   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22523 _ACEOF
22524
22525 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22526 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22527 # trailing colons and then remove the whole line if VPATH becomes empty
22528 # (actually we leave an empty line to preserve line numbers).
22529 if test "x$srcdir" = x.; then
22530   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22531 h
22532 s///
22533 s/^/:/
22534 s/[      ]*$/:/
22535 s/:\$(srcdir):/:/g
22536 s/:\${srcdir}:/:/g
22537 s/:@srcdir@:/:/g
22538 s/^:*//
22539 s/:*$//
22540 x
22541 s/\(=[   ]*\).*/\1/
22542 G
22543 s/\n//
22544 s/^[^=]*=[       ]*$//
22545 }'
22546 fi
22547
22548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22549 fi # test -n "$CONFIG_FILES"
22550
22551 # Set up the scripts for CONFIG_HEADERS section.
22552 # No need to generate them if there are no CONFIG_HEADERS.
22553 # This happens for instance with `./config.status Makefile'.
22554 if test -n "$CONFIG_HEADERS"; then
22555 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22556 BEGIN {
22557 _ACEOF
22558
22559 # Transform confdefs.h into an awk script `defines.awk', embedded as
22560 # here-document in config.status, that substitutes the proper values into
22561 # config.h.in to produce config.h.
22562
22563 # Create a delimiter string that does not exist in confdefs.h, to ease
22564 # handling of long lines.
22565 ac_delim='%!_!# '
22566 for ac_last_try in false false :; do
22567   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22568   if test -z "$ac_tt"; then
22569     break
22570   elif $ac_last_try; then
22571     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22572   else
22573     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22574   fi
22575 done
22576
22577 # For the awk script, D is an array of macro values keyed by name,
22578 # likewise P contains macro parameters if any.  Preserve backslash
22579 # newline sequences.
22580
22581 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22582 sed -n '
22583 s/.\{148\}/&'"$ac_delim"'/g
22584 t rset
22585 :rset
22586 s/^[     ]*#[    ]*define[       ][      ]*/ /
22587 t def
22588 d
22589 :def
22590 s/\\$//
22591 t bsnl
22592 s/["\\]/\\&/g
22593 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22594 D["\1"]=" \3"/p
22595 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22596 d
22597 :bsnl
22598 s/["\\]/\\&/g
22599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22600 D["\1"]=" \3\\\\\\n"\\/p
22601 t cont
22602 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22603 t cont
22604 d
22605 :cont
22606 n
22607 s/.\{148\}/&'"$ac_delim"'/g
22608 t clear
22609 :clear
22610 s/\\$//
22611 t bsnlc
22612 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22613 d
22614 :bsnlc
22615 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22616 b cont
22617 ' <confdefs.h | sed '
22618 s/'"$ac_delim"'/"\\\
22619 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22620
22621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22622   for (key in D) D_is_set[key] = 1
22623   FS = "\a"
22624 }
22625 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22626   line = \$ 0
22627   split(line, arg, " ")
22628   if (arg[1] == "#") {
22629     defundef = arg[2]
22630     mac1 = arg[3]
22631   } else {
22632     defundef = substr(arg[1], 2)
22633     mac1 = arg[2]
22634   }
22635   split(mac1, mac2, "(") #)
22636   macro = mac2[1]
22637   prefix = substr(line, 1, index(line, defundef) - 1)
22638   if (D_is_set[macro]) {
22639     # Preserve the white space surrounding the "#".
22640     print prefix "define", macro P[macro] D[macro]
22641     next
22642   } else {
22643     # Replace #undef with comments.  This is necessary, for example,
22644     # in the case of _POSIX_SOURCE, which is predefined and required
22645     # on some systems where configure will not decide to define it.
22646     if (defundef == "undef") {
22647       print "/*", prefix defundef, macro, "*/"
22648       next
22649     }
22650   }
22651 }
22652 { print }
22653 _ACAWK
22654 _ACEOF
22655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22656   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22657 fi # test -n "$CONFIG_HEADERS"
22658
22659
22660 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22661 shift
22662 for ac_tag
22663 do
22664   case $ac_tag in
22665   :[FHLC]) ac_mode=$ac_tag; continue;;
22666   esac
22667   case $ac_mode$ac_tag in
22668   :[FHL]*:*);;
22669   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22670   :[FH]-) ac_tag=-:-;;
22671   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22672   esac
22673   ac_save_IFS=$IFS
22674   IFS=:
22675   set x $ac_tag
22676   IFS=$ac_save_IFS
22677   shift
22678   ac_file=$1
22679   shift
22680
22681   case $ac_mode in
22682   :L) ac_source=$1;;
22683   :[FH])
22684     ac_file_inputs=
22685     for ac_f
22686     do
22687       case $ac_f in
22688       -) ac_f="$ac_tmp/stdin";;
22689       *) # Look for the file first in the build tree, then in the source tree
22690          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22691          # because $ac_f cannot contain `:'.
22692          test -f "$ac_f" ||
22693            case $ac_f in
22694            [\\/$]*) false;;
22695            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22696            esac ||
22697            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22698       esac
22699       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22700       as_fn_append ac_file_inputs " '$ac_f'"
22701     done
22702
22703     # Let's still pretend it is `configure' which instantiates (i.e., don't
22704     # use $as_me), people would be surprised to read:
22705     #    /* config.h.  Generated by config.status.  */
22706     configure_input='Generated from '`
22707           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22708         `' by configure.'
22709     if test x"$ac_file" != x-; then
22710       configure_input="$ac_file.  $configure_input"
22711       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22712 $as_echo "$as_me: creating $ac_file" >&6;}
22713     fi
22714     # Neutralize special characters interpreted by sed in replacement strings.
22715     case $configure_input in #(
22716     *\&* | *\|* | *\\* )
22717        ac_sed_conf_input=`$as_echo "$configure_input" |
22718        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22719     *) ac_sed_conf_input=$configure_input;;
22720     esac
22721
22722     case $ac_tag in
22723     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22724       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22725     esac
22726     ;;
22727   esac
22728
22729   ac_dir=`$as_dirname -- "$ac_file" ||
22730 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22731          X"$ac_file" : 'X\(//\)[^/]' \| \
22732          X"$ac_file" : 'X\(//\)$' \| \
22733          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22734 $as_echo X"$ac_file" |
22735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22736             s//\1/
22737             q
22738           }
22739           /^X\(\/\/\)[^/].*/{
22740             s//\1/
22741             q
22742           }
22743           /^X\(\/\/\)$/{
22744             s//\1/
22745             q
22746           }
22747           /^X\(\/\).*/{
22748             s//\1/
22749             q
22750           }
22751           s/.*/./; q'`
22752   as_dir="$ac_dir"; as_fn_mkdir_p
22753   ac_builddir=.
22754
22755 case "$ac_dir" in
22756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22757 *)
22758   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22759   # A ".." for each directory in $ac_dir_suffix.
22760   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22761   case $ac_top_builddir_sub in
22762   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22763   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22764   esac ;;
22765 esac
22766 ac_abs_top_builddir=$ac_pwd
22767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22768 # for backward compatibility:
22769 ac_top_builddir=$ac_top_build_prefix
22770
22771 case $srcdir in
22772   .)  # We are building in place.
22773     ac_srcdir=.
22774     ac_top_srcdir=$ac_top_builddir_sub
22775     ac_abs_top_srcdir=$ac_pwd ;;
22776   [\\/]* | ?:[\\/]* )  # Absolute name.
22777     ac_srcdir=$srcdir$ac_dir_suffix;
22778     ac_top_srcdir=$srcdir
22779     ac_abs_top_srcdir=$srcdir ;;
22780   *) # Relative name.
22781     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22782     ac_top_srcdir=$ac_top_build_prefix$srcdir
22783     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22784 esac
22785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22786
22787
22788   case $ac_mode in
22789   :F)
22790   #
22791   # CONFIG_FILE
22792   #
22793
22794   case $INSTALL in
22795   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22796   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22797   esac
22798   ac_MKDIR_P=$MKDIR_P
22799   case $MKDIR_P in
22800   [\\/$]* | ?:[\\/]* ) ;;
22801   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22802   esac
22803 _ACEOF
22804
22805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22806 # If the template does not know about datarootdir, expand it.
22807 # FIXME: This hack should be removed a few years after 2.60.
22808 ac_datarootdir_hack=; ac_datarootdir_seen=
22809 ac_sed_dataroot='
22810 /datarootdir/ {
22811   p
22812   q
22813 }
22814 /@datadir@/p
22815 /@docdir@/p
22816 /@infodir@/p
22817 /@localedir@/p
22818 /@mandir@/p'
22819 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22820 *datarootdir*) ac_datarootdir_seen=yes;;
22821 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22822   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22823 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22824 _ACEOF
22825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22826   ac_datarootdir_hack='
22827   s&@datadir@&$datadir&g
22828   s&@docdir@&$docdir&g
22829   s&@infodir@&$infodir&g
22830   s&@localedir@&$localedir&g
22831   s&@mandir@&$mandir&g
22832   s&\\\${datarootdir}&$datarootdir&g' ;;
22833 esac
22834 _ACEOF
22835
22836 # Neutralize VPATH when `$srcdir' = `.'.
22837 # Shell code in configure.ac might set extrasub.
22838 # FIXME: do we really want to maintain this feature?
22839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22840 ac_sed_extra="$ac_vpsub
22841 $extrasub
22842 _ACEOF
22843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22844 :t
22845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22846 s|@configure_input@|$ac_sed_conf_input|;t t
22847 s&@top_builddir@&$ac_top_builddir_sub&;t t
22848 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22849 s&@srcdir@&$ac_srcdir&;t t
22850 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22851 s&@top_srcdir@&$ac_top_srcdir&;t t
22852 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22853 s&@builddir@&$ac_builddir&;t t
22854 s&@abs_builddir@&$ac_abs_builddir&;t t
22855 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22856 s&@INSTALL@&$ac_INSTALL&;t t
22857 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22858 $ac_datarootdir_hack
22859 "
22860 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22861   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22862
22863 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22864   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22865   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22866       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22867   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22868 which seems to be undefined.  Please make sure it is defined" >&5
22869 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22870 which seems to be undefined.  Please make sure it is defined" >&2;}
22871
22872   rm -f "$ac_tmp/stdin"
22873   case $ac_file in
22874   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22875   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22876   esac \
22877   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22878  ;;
22879   :H)
22880   #
22881   # CONFIG_HEADER
22882   #
22883   if test x"$ac_file" != x-; then
22884     {
22885       $as_echo "/* $configure_input  */" \
22886       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22887     } >"$ac_tmp/config.h" \
22888       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22889     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22890       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22891 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22892     else
22893       rm -f "$ac_file"
22894       mv "$ac_tmp/config.h" "$ac_file" \
22895         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22896     fi
22897   else
22898     $as_echo "/* $configure_input  */" \
22899       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22900       || as_fn_error $? "could not create -" "$LINENO" 5
22901   fi
22902 # Compute "$ac_file"'s index in $config_headers.
22903 _am_arg="$ac_file"
22904 _am_stamp_count=1
22905 for _am_header in $config_headers :; do
22906   case $_am_header in
22907     $_am_arg | $_am_arg:* )
22908       break ;;
22909     * )
22910       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22911   esac
22912 done
22913 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22914 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22915          X"$_am_arg" : 'X\(//\)[^/]' \| \
22916          X"$_am_arg" : 'X\(//\)$' \| \
22917          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22918 $as_echo X"$_am_arg" |
22919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22920             s//\1/
22921             q
22922           }
22923           /^X\(\/\/\)[^/].*/{
22924             s//\1/
22925             q
22926           }
22927           /^X\(\/\/\)$/{
22928             s//\1/
22929             q
22930           }
22931           /^X\(\/\).*/{
22932             s//\1/
22933             q
22934           }
22935           s/.*/./; q'`/stamp-h$_am_stamp_count
22936  ;;
22937
22938   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22939 $as_echo "$as_me: executing $ac_file commands" >&6;}
22940  ;;
22941   esac
22942
22943
22944   case $ac_file$ac_mode in
22945     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22946   # Older Autoconf quotes --file arguments for eval, but not when files
22947   # are listed without --file.  Let's play safe and only enable the eval
22948   # if we detect the quoting.
22949   case $CONFIG_FILES in
22950   *\'*) eval set x "$CONFIG_FILES" ;;
22951   *)   set x $CONFIG_FILES ;;
22952   esac
22953   shift
22954   for mf
22955   do
22956     # Strip MF so we end up with the name of the file.
22957     mf=`echo "$mf" | sed -e 's/:.*$//'`
22958     # Check whether this is an Automake generated Makefile or not.
22959     # We used to match only the files named 'Makefile.in', but
22960     # some people rename them; so instead we look at the file content.
22961     # Grep'ing the first line is not enough: some people post-process
22962     # each Makefile.in and add a new line on top of each file to say so.
22963     # Grep'ing the whole file is not good either: AIX grep has a line
22964     # limit of 2048, but all sed's we know have understand at least 4000.
22965     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22966       dirpart=`$as_dirname -- "$mf" ||
22967 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22968          X"$mf" : 'X\(//\)[^/]' \| \
22969          X"$mf" : 'X\(//\)$' \| \
22970          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22971 $as_echo X"$mf" |
22972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22973             s//\1/
22974             q
22975           }
22976           /^X\(\/\/\)[^/].*/{
22977             s//\1/
22978             q
22979           }
22980           /^X\(\/\/\)$/{
22981             s//\1/
22982             q
22983           }
22984           /^X\(\/\).*/{
22985             s//\1/
22986             q
22987           }
22988           s/.*/./; q'`
22989     else
22990       continue
22991     fi
22992     # Extract the definition of DEPDIR, am__include, and am__quote
22993     # from the Makefile without running 'make'.
22994     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22995     test -z "$DEPDIR" && continue
22996     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22997     test -z "$am__include" && continue
22998     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22999     # Find all dependency output files, they are included files with
23000     # $(DEPDIR) in their names.  We invoke sed twice because it is the
23001     # simplest approach to changing $(DEPDIR) to its actual value in the
23002     # expansion.
23003     for file in `sed -n "
23004       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23005          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23006       # Make sure the directory exists.
23007       test -f "$dirpart/$file" && continue
23008       fdir=`$as_dirname -- "$file" ||
23009 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23010          X"$file" : 'X\(//\)[^/]' \| \
23011          X"$file" : 'X\(//\)$' \| \
23012          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23013 $as_echo X"$file" |
23014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23015             s//\1/
23016             q
23017           }
23018           /^X\(\/\/\)[^/].*/{
23019             s//\1/
23020             q
23021           }
23022           /^X\(\/\/\)$/{
23023             s//\1/
23024             q
23025           }
23026           /^X\(\/\).*/{
23027             s//\1/
23028             q
23029           }
23030           s/.*/./; q'`
23031       as_dir=$dirpart/$fdir; as_fn_mkdir_p
23032       # echo "creating $dirpart/$file"
23033       echo '# dummy' > "$dirpart/$file"
23034     done
23035   done
23036 }
23037  ;;
23038     "libtool":C)
23039
23040     # See if we are running on zsh, and set the options that allow our
23041     # commands through without removal of \ escapes.
23042     if test -n "${ZSH_VERSION+set}"; then
23043       setopt NO_GLOB_SUBST
23044     fi
23045
23046     cfgfile=${ofile}T
23047     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23048     $RM "$cfgfile"
23049
23050     cat <<_LT_EOF >> "$cfgfile"
23051 #! $SHELL
23052 # Generated automatically by $as_me ($PACKAGE) $VERSION
23053 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23054
23055 # Provide generalized library-building support services.
23056 # Written by Gordon Matzigkeit, 1996
23057
23058 # Copyright (C) 2014 Free Software Foundation, Inc.
23059 # This is free software; see the source for copying conditions.  There is NO
23060 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23061
23062 # GNU Libtool is free software; you can redistribute it and/or modify
23063 # it under the terms of the GNU General Public License as published by
23064 # the Free Software Foundation; either version 2 of of the License, or
23065 # (at your option) any later version.
23066 #
23067 # As a special exception to the GNU General Public License, if you
23068 # distribute this file as part of a program or library that is built
23069 # using GNU Libtool, you may include this file under the  same
23070 # distribution terms that you use for the rest of that program.
23071 #
23072 # GNU Libtool is distributed in the hope that it will be useful, but
23073 # WITHOUT ANY WARRANTY; without even the implied warranty of
23074 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23075 # GNU General Public License for more details.
23076 #
23077 # You should have received a copy of the GNU General Public License
23078 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23079
23080
23081 # The names of the tagged configurations supported by this script.
23082 available_tags='CXX '
23083
23084 # Configured defaults for sys_lib_dlsearch_path munging.
23085 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23086
23087 # ### BEGIN LIBTOOL CONFIG
23088
23089 # Which release of libtool.m4 was used?
23090 macro_version=$macro_version
23091 macro_revision=$macro_revision
23092
23093 # Whether or not to build static libraries.
23094 build_old_libs=$enable_static
23095
23096 # Whether or not to build shared libraries.
23097 build_libtool_libs=$enable_shared
23098
23099 # What type of objects to build.
23100 pic_mode=$pic_mode
23101
23102 # Whether or not to optimize for fast installation.
23103 fast_install=$enable_fast_install
23104
23105 # Shared archive member basename,for filename based shared library versioning on AIX.
23106 shared_archive_member_spec=$shared_archive_member_spec
23107
23108 # Shell to use when invoking shell scripts.
23109 SHELL=$lt_SHELL
23110
23111 # An echo program that protects backslashes.
23112 ECHO=$lt_ECHO
23113
23114 # The PATH separator for the build system.
23115 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23116
23117 # The host system.
23118 host_alias=$host_alias
23119 host=$host
23120 host_os=$host_os
23121
23122 # The build system.
23123 build_alias=$build_alias
23124 build=$build
23125 build_os=$build_os
23126
23127 # A sed program that does not truncate output.
23128 SED=$lt_SED
23129
23130 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23131 Xsed="\$SED -e 1s/^X//"
23132
23133 # A grep program that handles long lines.
23134 GREP=$lt_GREP
23135
23136 # An ERE matcher.
23137 EGREP=$lt_EGREP
23138
23139 # A literal string matcher.
23140 FGREP=$lt_FGREP
23141
23142 # A BSD- or MS-compatible name lister.
23143 NM=$lt_NM
23144
23145 # Whether we need soft or hard links.
23146 LN_S=$lt_LN_S
23147
23148 # What is the maximum length of a command?
23149 max_cmd_len=$max_cmd_len
23150
23151 # Object file suffix (normally "o").
23152 objext=$ac_objext
23153
23154 # Executable file suffix (normally "").
23155 exeext=$exeext
23156
23157 # whether the shell understands "unset".
23158 lt_unset=$lt_unset
23159
23160 # turn spaces into newlines.
23161 SP2NL=$lt_lt_SP2NL
23162
23163 # turn newlines into spaces.
23164 NL2SP=$lt_lt_NL2SP
23165
23166 # convert \$build file names to \$host format.
23167 to_host_file_cmd=$lt_cv_to_host_file_cmd
23168
23169 # convert \$build files to toolchain format.
23170 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23171
23172 # An object symbol dumper.
23173 OBJDUMP=$lt_OBJDUMP
23174
23175 # Method to check whether dependent libraries are shared objects.
23176 deplibs_check_method=$lt_deplibs_check_method
23177
23178 # Command to use when deplibs_check_method = "file_magic".
23179 file_magic_cmd=$lt_file_magic_cmd
23180
23181 # How to find potential files when deplibs_check_method = "file_magic".
23182 file_magic_glob=$lt_file_magic_glob
23183
23184 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23185 want_nocaseglob=$lt_want_nocaseglob
23186
23187 # DLL creation program.
23188 DLLTOOL=$lt_DLLTOOL
23189
23190 # Command to associate shared and link libraries.
23191 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23192
23193 # The archiver.
23194 AR=$lt_AR
23195
23196 # Flags to create an archive.
23197 AR_FLAGS=$lt_AR_FLAGS
23198
23199 # How to feed a file listing to the archiver.
23200 archiver_list_spec=$lt_archiver_list_spec
23201
23202 # A symbol stripping program.
23203 STRIP=$lt_STRIP
23204
23205 # Commands used to install an old-style archive.
23206 RANLIB=$lt_RANLIB
23207 old_postinstall_cmds=$lt_old_postinstall_cmds
23208 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23209
23210 # Whether to use a lock for old archive extraction.
23211 lock_old_archive_extraction=$lock_old_archive_extraction
23212
23213 # A C compiler.
23214 LTCC=$lt_CC
23215
23216 # LTCC compiler flags.
23217 LTCFLAGS=$lt_CFLAGS
23218
23219 # Take the output of nm and produce a listing of raw symbols and C names.
23220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23221
23222 # Transform the output of nm in a proper C declaration.
23223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23224
23225 # Transform the output of nm into a list of symbols to manually relocate.
23226 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23227
23228 # Transform the output of nm in a C name address pair.
23229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23230
23231 # Transform the output of nm in a C name address pair when lib prefix is needed.
23232 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23233
23234 # The name lister interface.
23235 nm_interface=$lt_lt_cv_nm_interface
23236
23237 # Specify filename containing input files for \$NM.
23238 nm_file_list_spec=$lt_nm_file_list_spec
23239
23240 # The root where to search for dependent libraries,and where our libraries should be installed.
23241 lt_sysroot=$lt_sysroot
23242
23243 # Command to truncate a binary pipe.
23244 lt_truncate_bin=$lt_lt_cv_truncate_bin
23245
23246 # The name of the directory that contains temporary libtool files.
23247 objdir=$objdir
23248
23249 # Used to examine libraries when file_magic_cmd begins with "file".
23250 MAGIC_CMD=$MAGIC_CMD
23251
23252 # Must we lock files when doing compilation?
23253 need_locks=$lt_need_locks
23254
23255 # Manifest tool.
23256 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23257
23258 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23259 DSYMUTIL=$lt_DSYMUTIL
23260
23261 # Tool to change global to local symbols on Mac OS X.
23262 NMEDIT=$lt_NMEDIT
23263
23264 # Tool to manipulate fat objects and archives on Mac OS X.
23265 LIPO=$lt_LIPO
23266
23267 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23268 OTOOL=$lt_OTOOL
23269
23270 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23271 OTOOL64=$lt_OTOOL64
23272
23273 # Old archive suffix (normally "a").
23274 libext=$libext
23275
23276 # Shared library suffix (normally ".so").
23277 shrext_cmds=$lt_shrext_cmds
23278
23279 # The commands to extract the exported symbol list from a shared archive.
23280 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23281
23282 # Variables whose values should be saved in libtool wrapper scripts and
23283 # restored at link time.
23284 variables_saved_for_relink=$lt_variables_saved_for_relink
23285
23286 # Do we need the "lib" prefix for modules?
23287 need_lib_prefix=$need_lib_prefix
23288
23289 # Do we need a version for libraries?
23290 need_version=$need_version
23291
23292 # Library versioning type.
23293 version_type=$version_type
23294
23295 # Shared library runtime path variable.
23296 runpath_var=$runpath_var
23297
23298 # Shared library path variable.
23299 shlibpath_var=$shlibpath_var
23300
23301 # Is shlibpath searched before the hard-coded library search path?
23302 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23303
23304 # Format of library name prefix.
23305 libname_spec=$lt_libname_spec
23306
23307 # List of archive names.  First name is the real one, the rest are links.
23308 # The last name is the one that the linker finds with -lNAME
23309 library_names_spec=$lt_library_names_spec
23310
23311 # The coded name of the library, if different from the real name.
23312 soname_spec=$lt_soname_spec
23313
23314 # Permission mode override for installation of shared libraries.
23315 install_override_mode=$lt_install_override_mode
23316
23317 # Command to use after installation of a shared archive.
23318 postinstall_cmds=$lt_postinstall_cmds
23319
23320 # Command to use after uninstallation of a shared archive.
23321 postuninstall_cmds=$lt_postuninstall_cmds
23322
23323 # Commands used to finish a libtool library installation in a directory.
23324 finish_cmds=$lt_finish_cmds
23325
23326 # As "finish_cmds", except a single script fragment to be evaled but
23327 # not shown.
23328 finish_eval=$lt_finish_eval
23329
23330 # Whether we should hardcode library paths into libraries.
23331 hardcode_into_libs=$hardcode_into_libs
23332
23333 # Compile-time system search path for libraries.
23334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23335
23336 # Detected run-time system search path for libraries.
23337 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23338
23339 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23340 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23341
23342 # Whether dlopen is supported.
23343 dlopen_support=$enable_dlopen
23344
23345 # Whether dlopen of programs is supported.
23346 dlopen_self=$enable_dlopen_self
23347
23348 # Whether dlopen of statically linked programs is supported.
23349 dlopen_self_static=$enable_dlopen_self_static
23350
23351 # Commands to strip libraries.
23352 old_striplib=$lt_old_striplib
23353 striplib=$lt_striplib
23354
23355
23356 # The linker used to build libraries.
23357 LD=$lt_LD
23358
23359 # How to create reloadable object files.
23360 reload_flag=$lt_reload_flag
23361 reload_cmds=$lt_reload_cmds
23362
23363 # Commands used to build an old-style archive.
23364 old_archive_cmds=$lt_old_archive_cmds
23365
23366 # A language specific compiler.
23367 CC=$lt_compiler
23368
23369 # Is the compiler the GNU compiler?
23370 with_gcc=$GCC
23371
23372 # Compiler flag to turn off builtin functions.
23373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23374
23375 # Additional compiler flags for building library objects.
23376 pic_flag=$lt_lt_prog_compiler_pic
23377
23378 # How to pass a linker flag through the compiler.
23379 wl=$lt_lt_prog_compiler_wl
23380
23381 # Compiler flag to prevent dynamic linking.
23382 link_static_flag=$lt_lt_prog_compiler_static
23383
23384 # Does compiler simultaneously support -c and -o options?
23385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23386
23387 # Whether or not to add -lc for building shared libraries.
23388 build_libtool_need_lc=$archive_cmds_need_lc
23389
23390 # Whether or not to disallow shared libs when runtime libs are static.
23391 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23392
23393 # Compiler flag to allow reflexive dlopens.
23394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23395
23396 # Compiler flag to generate shared objects directly from archives.
23397 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23398
23399 # Whether the compiler copes with passing no objects directly.
23400 compiler_needs_object=$lt_compiler_needs_object
23401
23402 # Create an old-style archive from a shared archive.
23403 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23404
23405 # Create a temporary old-style archive to link instead of a shared archive.
23406 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23407
23408 # Commands used to build a shared archive.
23409 archive_cmds=$lt_archive_cmds
23410 archive_expsym_cmds=$lt_archive_expsym_cmds
23411
23412 # Commands used to build a loadable module if different from building
23413 # a shared archive.
23414 module_cmds=$lt_module_cmds
23415 module_expsym_cmds=$lt_module_expsym_cmds
23416
23417 # Whether we are building with GNU ld or not.
23418 with_gnu_ld=$lt_with_gnu_ld
23419
23420 # Flag that allows shared libraries with undefined symbols to be built.
23421 allow_undefined_flag=$lt_allow_undefined_flag
23422
23423 # Flag that enforces no undefined symbols.
23424 no_undefined_flag=$lt_no_undefined_flag
23425
23426 # Flag to hardcode \$libdir into a binary during linking.
23427 # This must work even if \$libdir does not exist
23428 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23429
23430 # Whether we need a single "-rpath" flag with a separated argument.
23431 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23432
23433 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23434 # DIR into the resulting binary.
23435 hardcode_direct=$hardcode_direct
23436
23437 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23438 # DIR into the resulting binary and the resulting library dependency is
23439 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23440 # library is relocated.
23441 hardcode_direct_absolute=$hardcode_direct_absolute
23442
23443 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23444 # into the resulting binary.
23445 hardcode_minus_L=$hardcode_minus_L
23446
23447 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23448 # into the resulting binary.
23449 hardcode_shlibpath_var=$hardcode_shlibpath_var
23450
23451 # Set to "yes" if building a shared library automatically hardcodes DIR
23452 # into the library and all subsequent libraries and executables linked
23453 # against it.
23454 hardcode_automatic=$hardcode_automatic
23455
23456 # Set to yes if linker adds runtime paths of dependent libraries
23457 # to runtime path list.
23458 inherit_rpath=$inherit_rpath
23459
23460 # Whether libtool must link a program against all its dependency libraries.
23461 link_all_deplibs=$link_all_deplibs
23462
23463 # Set to "yes" if exported symbols are required.
23464 always_export_symbols=$always_export_symbols
23465
23466 # The commands to list exported symbols.
23467 export_symbols_cmds=$lt_export_symbols_cmds
23468
23469 # Symbols that should not be listed in the preloaded symbols.
23470 exclude_expsyms=$lt_exclude_expsyms
23471
23472 # Symbols that must always be exported.
23473 include_expsyms=$lt_include_expsyms
23474
23475 # Commands necessary for linking programs (against libraries) with templates.
23476 prelink_cmds=$lt_prelink_cmds
23477
23478 # Commands necessary for finishing linking programs.
23479 postlink_cmds=$lt_postlink_cmds
23480
23481 # Specify filename containing input files.
23482 file_list_spec=$lt_file_list_spec
23483
23484 # How to hardcode a shared library path into an executable.
23485 hardcode_action=$hardcode_action
23486
23487 # The directories searched by this compiler when creating a shared library.
23488 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23489
23490 # Dependencies to place before and after the objects being linked to
23491 # create a shared library.
23492 predep_objects=$lt_predep_objects
23493 postdep_objects=$lt_postdep_objects
23494 predeps=$lt_predeps
23495 postdeps=$lt_postdeps
23496
23497 # The library search path used internally by the compiler when linking
23498 # a shared library.
23499 compiler_lib_search_path=$lt_compiler_lib_search_path
23500
23501 # ### END LIBTOOL CONFIG
23502
23503 _LT_EOF
23504
23505     cat <<'_LT_EOF' >> "$cfgfile"
23506
23507 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23508
23509 # func_munge_path_list VARIABLE PATH
23510 # -----------------------------------
23511 # VARIABLE is name of variable containing _space_ separated list of
23512 # directories to be munged by the contents of PATH, which is string
23513 # having a format:
23514 # "DIR[:DIR]:"
23515 #       string "DIR[ DIR]" will be prepended to VARIABLE
23516 # ":DIR[:DIR]"
23517 #       string "DIR[ DIR]" will be appended to VARIABLE
23518 # "DIRP[:DIRP]::[DIRA:]DIRA"
23519 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23520 #       "DIRA[ DIRA]" will be appended to VARIABLE
23521 # "DIR[:DIR]"
23522 #       VARIABLE will be replaced by "DIR[ DIR]"
23523 func_munge_path_list ()
23524 {
23525     case x$2 in
23526     x)
23527         ;;
23528     *:)
23529         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23530         ;;
23531     x:*)
23532         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23533         ;;
23534     *::*)
23535         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23536         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23537         ;;
23538     *)
23539         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23540         ;;
23541     esac
23542 }
23543
23544
23545 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23546 func_cc_basename ()
23547 {
23548     for cc_temp in $*""; do
23549       case $cc_temp in
23550         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23551         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23552         \-*) ;;
23553         *) break;;
23554       esac
23555     done
23556     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23557 }
23558
23559
23560 # ### END FUNCTIONS SHARED WITH CONFIGURE
23561
23562 _LT_EOF
23563
23564   case $host_os in
23565   aix3*)
23566     cat <<\_LT_EOF >> "$cfgfile"
23567 # AIX sometimes has problems with the GCC collect2 program.  For some
23568 # reason, if we set the COLLECT_NAMES environment variable, the problems
23569 # vanish in a puff of smoke.
23570 if test set != "${COLLECT_NAMES+set}"; then
23571   COLLECT_NAMES=
23572   export COLLECT_NAMES
23573 fi
23574 _LT_EOF
23575     ;;
23576   esac
23577
23578
23579 ltmain=$ac_aux_dir/ltmain.sh
23580
23581
23582   # We use sed instead of cat because bash on DJGPP gets confused if
23583   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23584   # text mode, it properly converts lines to CR/LF.  This bash problem
23585   # is reportedly fixed, but why not run on old versions too?
23586   sed '$q' "$ltmain" >> "$cfgfile" \
23587      || (rm -f "$cfgfile"; exit 1)
23588
23589    mv -f "$cfgfile" "$ofile" ||
23590     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23591   chmod +x "$ofile"
23592
23593
23594     cat <<_LT_EOF >> "$ofile"
23595
23596 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23597
23598 # The linker used to build libraries.
23599 LD=$lt_LD_CXX
23600
23601 # How to create reloadable object files.
23602 reload_flag=$lt_reload_flag_CXX
23603 reload_cmds=$lt_reload_cmds_CXX
23604
23605 # Commands used to build an old-style archive.
23606 old_archive_cmds=$lt_old_archive_cmds_CXX
23607
23608 # A language specific compiler.
23609 CC=$lt_compiler_CXX
23610
23611 # Is the compiler the GNU compiler?
23612 with_gcc=$GCC_CXX
23613
23614 # Compiler flag to turn off builtin functions.
23615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23616
23617 # Additional compiler flags for building library objects.
23618 pic_flag=$lt_lt_prog_compiler_pic_CXX
23619
23620 # How to pass a linker flag through the compiler.
23621 wl=$lt_lt_prog_compiler_wl_CXX
23622
23623 # Compiler flag to prevent dynamic linking.
23624 link_static_flag=$lt_lt_prog_compiler_static_CXX
23625
23626 # Does compiler simultaneously support -c and -o options?
23627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23628
23629 # Whether or not to add -lc for building shared libraries.
23630 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23631
23632 # Whether or not to disallow shared libs when runtime libs are static.
23633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23634
23635 # Compiler flag to allow reflexive dlopens.
23636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23637
23638 # Compiler flag to generate shared objects directly from archives.
23639 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23640
23641 # Whether the compiler copes with passing no objects directly.
23642 compiler_needs_object=$lt_compiler_needs_object_CXX
23643
23644 # Create an old-style archive from a shared archive.
23645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23646
23647 # Create a temporary old-style archive to link instead of a shared archive.
23648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23649
23650 # Commands used to build a shared archive.
23651 archive_cmds=$lt_archive_cmds_CXX
23652 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23653
23654 # Commands used to build a loadable module if different from building
23655 # a shared archive.
23656 module_cmds=$lt_module_cmds_CXX
23657 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23658
23659 # Whether we are building with GNU ld or not.
23660 with_gnu_ld=$lt_with_gnu_ld_CXX
23661
23662 # Flag that allows shared libraries with undefined symbols to be built.
23663 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23664
23665 # Flag that enforces no undefined symbols.
23666 no_undefined_flag=$lt_no_undefined_flag_CXX
23667
23668 # Flag to hardcode \$libdir into a binary during linking.
23669 # This must work even if \$libdir does not exist
23670 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23671
23672 # Whether we need a single "-rpath" flag with a separated argument.
23673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23674
23675 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23676 # DIR into the resulting binary.
23677 hardcode_direct=$hardcode_direct_CXX
23678
23679 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23680 # DIR into the resulting binary and the resulting library dependency is
23681 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23682 # library is relocated.
23683 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23684
23685 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23686 # into the resulting binary.
23687 hardcode_minus_L=$hardcode_minus_L_CXX
23688
23689 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23690 # into the resulting binary.
23691 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23692
23693 # Set to "yes" if building a shared library automatically hardcodes DIR
23694 # into the library and all subsequent libraries and executables linked
23695 # against it.
23696 hardcode_automatic=$hardcode_automatic_CXX
23697
23698 # Set to yes if linker adds runtime paths of dependent libraries
23699 # to runtime path list.
23700 inherit_rpath=$inherit_rpath_CXX
23701
23702 # Whether libtool must link a program against all its dependency libraries.
23703 link_all_deplibs=$link_all_deplibs_CXX
23704
23705 # Set to "yes" if exported symbols are required.
23706 always_export_symbols=$always_export_symbols_CXX
23707
23708 # The commands to list exported symbols.
23709 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23710
23711 # Symbols that should not be listed in the preloaded symbols.
23712 exclude_expsyms=$lt_exclude_expsyms_CXX
23713
23714 # Symbols that must always be exported.
23715 include_expsyms=$lt_include_expsyms_CXX
23716
23717 # Commands necessary for linking programs (against libraries) with templates.
23718 prelink_cmds=$lt_prelink_cmds_CXX
23719
23720 # Commands necessary for finishing linking programs.
23721 postlink_cmds=$lt_postlink_cmds_CXX
23722
23723 # Specify filename containing input files.
23724 file_list_spec=$lt_file_list_spec_CXX
23725
23726 # How to hardcode a shared library path into an executable.
23727 hardcode_action=$hardcode_action_CXX
23728
23729 # The directories searched by this compiler when creating a shared library.
23730 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23731
23732 # Dependencies to place before and after the objects being linked to
23733 # create a shared library.
23734 predep_objects=$lt_predep_objects_CXX
23735 postdep_objects=$lt_postdep_objects_CXX
23736 predeps=$lt_predeps_CXX
23737 postdeps=$lt_postdeps_CXX
23738
23739 # The library search path used internally by the compiler when linking
23740 # a shared library.
23741 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23742
23743 # ### END LIBTOOL TAG CONFIG: CXX
23744 _LT_EOF
23745
23746  ;;
23747
23748   esac
23749 done # for ac_tag
23750
23751
23752 as_fn_exit 0
23753 _ACEOF
23754 ac_clean_files=$ac_clean_files_save
23755
23756 test $ac_write_fail = 0 ||
23757   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23758
23759
23760 # configure is writing to config.log, and then calls config.status.
23761 # config.status does its own redirection, appending to config.log.
23762 # Unfortunately, on DOS this fails, as config.log is still kept open
23763 # by configure, so config.status won't be able to write to it; its
23764 # output is simply discarded.  So we exec the FD to /dev/null,
23765 # effectively closing config.log, so it can be properly (re)opened and
23766 # appended to by config.status.  When coming back to configure, we
23767 # need to make the FD available again.
23768 if test "$no_create" != yes; then
23769   ac_cs_success=:
23770   ac_config_status_args=
23771   test "$silent" = yes &&
23772     ac_config_status_args="$ac_config_status_args --quiet"
23773   exec 5>/dev/null
23774   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23775   exec 5>>config.log
23776   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23777   # would make configure fail if this is the last instruction.
23778   $ac_cs_success || as_fn_exit 1
23779 fi
23780 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23781   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23782 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23783 fi
23784
23785
23786 { $as_echo "$as_me:${as_lineno-$LINENO}:
23787
23788 Build configuration:
23789
23790 Unicode callbacks (you want at least one):
23791         Builtin (UCDN):         ${have_ucdn}
23792         Glib:                   ${have_glib}
23793         ICU:                    ${have_icu}
23794
23795 Font callbacks (the more the merrier):
23796         FreeType:               ${have_freetype}
23797
23798 Tools used for command-line utilities:
23799         Cairo:                  ${have_cairo}
23800         Fontconfig:             ${have_fontconfig}
23801
23802 Additional shapers (the more the merrier):
23803         Graphite2:              ${have_graphite2}
23804
23805 Platform shapers (not normally needed):
23806         CoreText:               ${have_coretext}
23807         DirectWrite:            ${have_directwrite}
23808         Uniscribe:              ${have_uniscribe}
23809
23810 Other features:
23811         Documentation:          ${enable_gtk_doc}
23812         GObject bindings:       ${have_gobject}
23813         Introspection:          ${have_introspection}
23814 " >&5
23815 $as_echo "$as_me:
23816
23817 Build configuration:
23818
23819 Unicode callbacks (you want at least one):
23820         Builtin (UCDN):         ${have_ucdn}
23821         Glib:                   ${have_glib}
23822         ICU:                    ${have_icu}
23823
23824 Font callbacks (the more the merrier):
23825         FreeType:               ${have_freetype}
23826
23827 Tools used for command-line utilities:
23828         Cairo:                  ${have_cairo}
23829         Fontconfig:             ${have_fontconfig}
23830
23831 Additional shapers (the more the merrier):
23832         Graphite2:              ${have_graphite2}
23833
23834 Platform shapers (not normally needed):
23835         CoreText:               ${have_coretext}
23836         DirectWrite:            ${have_directwrite}
23837         Uniscribe:              ${have_uniscribe}
23838
23839 Other features:
23840         Documentation:          ${enable_gtk_doc}
23841         GObject bindings:       ${have_gobject}
23842         Introspection:          ${have_introspection}
23843 " >&6;}