Imported Upstream version 1.7.6
[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 1.7.6.
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='1.7.6'
594 PACKAGE_STRING='HarfBuzz 1.7.6'
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_OT_FALSE
706 HAVE_OT_TRUE
707 HAVE_PTHREAD_FALSE
708 HAVE_PTHREAD_TRUE
709 PTHREAD_CFLAGS
710 PTHREAD_LIBS
711 PTHREAD_CC
712 ax_pthread_config
713 OS_WIN32_FALSE
714 OS_WIN32_TRUE
715 HAVE_GCC_FALSE
716 HAVE_GCC_TRUE
717 GTK_DOC_USE_REBASE_FALSE
718 GTK_DOC_USE_REBASE_TRUE
719 GTK_DOC_USE_LIBTOOL_FALSE
720 GTK_DOC_USE_LIBTOOL_TRUE
721 GTK_DOC_BUILD_PDF_FALSE
722 GTK_DOC_BUILD_PDF_TRUE
723 GTK_DOC_BUILD_HTML_FALSE
724 GTK_DOC_BUILD_HTML_TRUE
725 ENABLE_GTK_DOC_FALSE
726 ENABLE_GTK_DOC_TRUE
727 HAVE_GTK_DOC_FALSE
728 HAVE_GTK_DOC_TRUE
729 GTKDOC_DEPS_LIBS
730 GTKDOC_DEPS_CFLAGS
731 HTML_DIR
732 GTKDOC_MKPDF
733 GTKDOC_REBASE
734 GTKDOC_CHECK_PATH
735 GTKDOC_CHECK
736 WITH_LIBSTDCXX_FALSE
737 WITH_LIBSTDCXX_TRUE
738 HB_LIBTOOL_VERSION_INFO
739 HB_VERSION
740 HB_VERSION_MICRO
741 HB_VERSION_MINOR
742 HB_VERSION_MAJOR
743 GIT
744 RAGEL
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 GTKDOC_DEPS_CFLAGS
929 GTKDOC_DEPS_LIBS
930 GLIB_CFLAGS
931 GLIB_LIBS
932 GOBJECT_CFLAGS
933 GOBJECT_LIBS
934 CAIRO_CFLAGS
935 CAIRO_LIBS
936 CAIRO_FT_CFLAGS
937 CAIRO_FT_LIBS
938 FONTCONFIG_CFLAGS
939 FONTCONFIG_LIBS
940 ICU_CFLAGS
941 ICU_LIBS
942 GRAPHITE2_CFLAGS
943 GRAPHITE2_LIBS
944 FREETYPE_CFLAGS
945 FREETYPE_LIBS'
946
947
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 ac_unrecognized_opts=
952 ac_unrecognized_sep=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
969
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 runstatedir='${localstatedir}/run'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001   # If the previous option needs an argument, assign it.
1002   if test -n "$ac_prev"; then
1003     eval $ac_prev=\$ac_option
1004     ac_prev=
1005     continue
1006   fi
1007
1008   case $ac_option in
1009   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010   *=)   ac_optarg= ;;
1011   *)    ac_optarg=yes ;;
1012   esac
1013
1014   # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016   case $ac_dashdash$ac_option in
1017   --)
1018     ac_dashdash=yes ;;
1019
1020   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021     ac_prev=bindir ;;
1022   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023     bindir=$ac_optarg ;;
1024
1025   -build | --build | --buil | --bui | --bu)
1026     ac_prev=build_alias ;;
1027   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028     build_alias=$ac_optarg ;;
1029
1030   -cache-file | --cache-file | --cache-fil | --cache-fi \
1031   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032     ac_prev=cache_file ;;
1033   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035     cache_file=$ac_optarg ;;
1036
1037   --config-cache | -C)
1038     cache_file=config.cache ;;
1039
1040   -datadir | --datadir | --datadi | --datad)
1041     ac_prev=datadir ;;
1042   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043     datadir=$ac_optarg ;;
1044
1045   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046   | --dataroo | --dataro | --datar)
1047     ac_prev=datarootdir ;;
1048   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050     datarootdir=$ac_optarg ;;
1051
1052   -disable-* | --disable-*)
1053     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056       as_fn_error $? "invalid feature name: $ac_useropt"
1057     ac_useropt_orig=$ac_useropt
1058     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059     case $ac_user_opts in
1060       *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064          ac_unrecognized_sep=', ';;
1065     esac
1066     eval enable_$ac_useropt=no ;;
1067
1068   -docdir | --docdir | --docdi | --doc | --do)
1069     ac_prev=docdir ;;
1070   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071     docdir=$ac_optarg ;;
1072
1073   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074     ac_prev=dvidir ;;
1075   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076     dvidir=$ac_optarg ;;
1077
1078   -enable-* | --enable-*)
1079     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080     # Reject names that are not valid shell variable names.
1081     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082       as_fn_error $? "invalid feature name: $ac_useropt"
1083     ac_useropt_orig=$ac_useropt
1084     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085     case $ac_user_opts in
1086       *"
1087 "enable_$ac_useropt"
1088 "*) ;;
1089       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090          ac_unrecognized_sep=', ';;
1091     esac
1092     eval enable_$ac_useropt=\$ac_optarg ;;
1093
1094   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096   | --exec | --exe | --ex)
1097     ac_prev=exec_prefix ;;
1098   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100   | --exec=* | --exe=* | --ex=*)
1101     exec_prefix=$ac_optarg ;;
1102
1103   -gas | --gas | --ga | --g)
1104     # Obsolete; use --with-gas.
1105     with_gas=yes ;;
1106
1107   -help | --help | --hel | --he | -h)
1108     ac_init_help=long ;;
1109   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110     ac_init_help=recursive ;;
1111   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112     ac_init_help=short ;;
1113
1114   -host | --host | --hos | --ho)
1115     ac_prev=host_alias ;;
1116   -host=* | --host=* | --hos=* | --ho=*)
1117     host_alias=$ac_optarg ;;
1118
1119   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120     ac_prev=htmldir ;;
1121   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122   | --ht=*)
1123     htmldir=$ac_optarg ;;
1124
1125   -includedir | --includedir | --includedi | --included | --include \
1126   | --includ | --inclu | --incl | --inc)
1127     ac_prev=includedir ;;
1128   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129   | --includ=* | --inclu=* | --incl=* | --inc=*)
1130     includedir=$ac_optarg ;;
1131
1132   -infodir | --infodir | --infodi | --infod | --info | --inf)
1133     ac_prev=infodir ;;
1134   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135     infodir=$ac_optarg ;;
1136
1137   -libdir | --libdir | --libdi | --libd)
1138     ac_prev=libdir ;;
1139   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140     libdir=$ac_optarg ;;
1141
1142   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143   | --libexe | --libex | --libe)
1144     ac_prev=libexecdir ;;
1145   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146   | --libexe=* | --libex=* | --libe=*)
1147     libexecdir=$ac_optarg ;;
1148
1149   -localedir | --localedir | --localedi | --localed | --locale)
1150     ac_prev=localedir ;;
1151   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152     localedir=$ac_optarg ;;
1153
1154   -localstatedir | --localstatedir | --localstatedi | --localstated \
1155   | --localstate | --localstat | --localsta | --localst | --locals)
1156     ac_prev=localstatedir ;;
1157   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159     localstatedir=$ac_optarg ;;
1160
1161   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162     ac_prev=mandir ;;
1163   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164     mandir=$ac_optarg ;;
1165
1166   -nfp | --nfp | --nf)
1167     # Obsolete; use --without-fp.
1168     with_fp=no ;;
1169
1170   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171   | --no-cr | --no-c | -n)
1172     no_create=yes ;;
1173
1174   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176     no_recursion=yes ;;
1177
1178   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180   | --oldin | --oldi | --old | --ol | --o)
1181     ac_prev=oldincludedir ;;
1182   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185     oldincludedir=$ac_optarg ;;
1186
1187   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188     ac_prev=prefix ;;
1189   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190     prefix=$ac_optarg ;;
1191
1192   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193   | --program-pre | --program-pr | --program-p)
1194     ac_prev=program_prefix ;;
1195   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197     program_prefix=$ac_optarg ;;
1198
1199   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200   | --program-suf | --program-su | --program-s)
1201     ac_prev=program_suffix ;;
1202   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204     program_suffix=$ac_optarg ;;
1205
1206   -program-transform-name | --program-transform-name \
1207   | --program-transform-nam | --program-transform-na \
1208   | --program-transform-n | --program-transform- \
1209   | --program-transform | --program-transfor \
1210   | --program-transfo | --program-transf \
1211   | --program-trans | --program-tran \
1212   | --progr-tra | --program-tr | --program-t)
1213     ac_prev=program_transform_name ;;
1214   -program-transform-name=* | --program-transform-name=* \
1215   | --program-transform-nam=* | --program-transform-na=* \
1216   | --program-transform-n=* | --program-transform-=* \
1217   | --program-transform=* | --program-transfor=* \
1218   | --program-transfo=* | --program-transf=* \
1219   | --program-trans=* | --program-tran=* \
1220   | --progr-tra=* | --program-tr=* | --program-t=*)
1221     program_transform_name=$ac_optarg ;;
1222
1223   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224     ac_prev=pdfdir ;;
1225   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226     pdfdir=$ac_optarg ;;
1227
1228   -psdir | --psdir | --psdi | --psd | --ps)
1229     ac_prev=psdir ;;
1230   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231     psdir=$ac_optarg ;;
1232
1233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234   | -silent | --silent | --silen | --sile | --sil)
1235     silent=yes ;;
1236
1237   -runstatedir | --runstatedir | --runstatedi | --runstated \
1238   | --runstate | --runstat | --runsta | --runst | --runs \
1239   | --run | --ru | --r)
1240     ac_prev=runstatedir ;;
1241   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1242   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1243   | --run=* | --ru=* | --r=*)
1244     runstatedir=$ac_optarg ;;
1245
1246   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247     ac_prev=sbindir ;;
1248   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249   | --sbi=* | --sb=*)
1250     sbindir=$ac_optarg ;;
1251
1252   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254   | --sharedst | --shareds | --shared | --share | --shar \
1255   | --sha | --sh)
1256     ac_prev=sharedstatedir ;;
1257   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260   | --sha=* | --sh=*)
1261     sharedstatedir=$ac_optarg ;;
1262
1263   -site | --site | --sit)
1264     ac_prev=site ;;
1265   -site=* | --site=* | --sit=*)
1266     site=$ac_optarg ;;
1267
1268   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269     ac_prev=srcdir ;;
1270   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271     srcdir=$ac_optarg ;;
1272
1273   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274   | --syscon | --sysco | --sysc | --sys | --sy)
1275     ac_prev=sysconfdir ;;
1276   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278     sysconfdir=$ac_optarg ;;
1279
1280   -target | --target | --targe | --targ | --tar | --ta | --t)
1281     ac_prev=target_alias ;;
1282   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283     target_alias=$ac_optarg ;;
1284
1285   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286     verbose=yes ;;
1287
1288   -version | --version | --versio | --versi | --vers | -V)
1289     ac_init_version=: ;;
1290
1291   -with-* | --with-*)
1292     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295       as_fn_error $? "invalid package name: $ac_useropt"
1296     ac_useropt_orig=$ac_useropt
1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298     case $ac_user_opts in
1299       *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303          ac_unrecognized_sep=', ';;
1304     esac
1305     eval with_$ac_useropt=\$ac_optarg ;;
1306
1307   -without-* | --without-*)
1308     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311       as_fn_error $? "invalid package name: $ac_useropt"
1312     ac_useropt_orig=$ac_useropt
1313     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314     case $ac_user_opts in
1315       *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319          ac_unrecognized_sep=', ';;
1320     esac
1321     eval with_$ac_useropt=no ;;
1322
1323   --x)
1324     # Obsolete; use --with-x.
1325     with_x=yes ;;
1326
1327   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328   | --x-incl | --x-inc | --x-in | --x-i)
1329     ac_prev=x_includes ;;
1330   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332     x_includes=$ac_optarg ;;
1333
1334   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336     ac_prev=x_libraries ;;
1337   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339     x_libraries=$ac_optarg ;;
1340
1341   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1343     ;;
1344
1345   *=*)
1346     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347     # Reject names that are not valid shell variable names.
1348     case $ac_envvar in #(
1349       '' | [0-9]* | *[!_$as_cr_alnum]* )
1350       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1351     esac
1352     eval $ac_envvar=\$ac_optarg
1353     export $ac_envvar ;;
1354
1355   *)
1356     # FIXME: should be removed in autoconf 3.0.
1357     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1361     ;;
1362
1363   esac
1364 done
1365
1366 if test -n "$ac_prev"; then
1367   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368   as_fn_error $? "missing argument to $ac_option"
1369 fi
1370
1371 if test -n "$ac_unrecognized_opts"; then
1372   case $enable_option_checking in
1373     no) ;;
1374     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1375     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376   esac
1377 fi
1378
1379 # Check all directory arguments for consistency.
1380 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381                 datadir sysconfdir sharedstatedir localstatedir includedir \
1382                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383                 libdir localedir mandir runstatedir
1384 do
1385   eval ac_val=\$$ac_var
1386   # Remove trailing slashes.
1387   case $ac_val in
1388     */ )
1389       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390       eval $ac_var=\$ac_val;;
1391   esac
1392   # Be sure to have absolute directory names.
1393   case $ac_val in
1394     [\\/$]* | ?:[\\/]* )  continue;;
1395     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396   esac
1397   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1398 done
1399
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1403 build=$build_alias
1404 host=$host_alias
1405 target=$target_alias
1406
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409   if test "x$build_alias" = x; then
1410     cross_compiling=maybe
1411   elif test "x$build_alias" != "x$host_alias"; then
1412     cross_compiling=yes
1413   fi
1414 fi
1415
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1418
1419 test "$silent" = yes && exec 6>/dev/null
1420
1421
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425   as_fn_error $? "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427   as_fn_error $? "pwd does not report name of working directory"
1428
1429
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432   ac_srcdir_defaulted=yes
1433   # Try the directory containing this script, then the parent directory.
1434   ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436          X"$as_myself" : 'X\(//\)[^/]' \| \
1437          X"$as_myself" : 'X\(//\)$' \| \
1438          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\/\)[^/].*/{
1445             s//\1/
1446             q
1447           }
1448           /^X\(\/\/\)$/{
1449             s//\1/
1450             q
1451           }
1452           /^X\(\/\).*/{
1453             s//\1/
1454             q
1455           }
1456           s/.*/./; q'`
1457   srcdir=$ac_confdir
1458   if test ! -r "$srcdir/$ac_unique_file"; then
1459     srcdir=..
1460   fi
1461 else
1462   ac_srcdir_defaulted=no
1463 fi
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1467 fi
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1471         pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474   srcdir=.
1475 fi
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484   eval ac_env_${ac_var}_value=\$${ac_var}
1485   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1488
1489 #
1490 # Report the --help message.
1491 #
1492 if test "$ac_init_help" = "long"; then
1493   # Omit some internal or obsolete options to make the list less imposing.
1494   # This message is too long to be a string in the A/UX 3.1 sh.
1495   cat <<_ACEOF
1496 \`configure' configures HarfBuzz 1.7.6 to adapt to many kinds of systems.
1497
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1499
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE.  See below for descriptions of some of the useful variables.
1502
1503 Defaults for the options are specified in brackets.
1504
1505 Configuration:
1506   -h, --help              display this help and exit
1507       --help=short        display options specific to this package
1508       --help=recursive    display the short help of all the included packages
1509   -V, --version           display version information and exit
1510   -q, --quiet, --silent   do not print \`checking ...' messages
1511       --cache-file=FILE   cache test results in FILE [disabled]
1512   -C, --config-cache      alias for \`--cache-file=config.cache'
1513   -n, --no-create         do not create output files
1514       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1515
1516 Installation directories:
1517   --prefix=PREFIX         install architecture-independent files in PREFIX
1518                           [$ac_default_prefix]
1519   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1520                           [PREFIX]
1521
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1526
1527 For better control, use the options below.
1528
1529 Fine tuning of the installation directories:
1530   --bindir=DIR            user executables [EPREFIX/bin]
1531   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1532   --libexecdir=DIR        program executables [EPREFIX/libexec]
1533   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1534   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1535   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1536   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1537   --libdir=DIR            object code libraries [EPREFIX/lib]
1538   --includedir=DIR        C header files [PREFIX/include]
1539   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1540   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1541   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1542   --infodir=DIR           info documentation [DATAROOTDIR/info]
1543   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1544   --mandir=DIR            man documentation [DATAROOTDIR/man]
1545   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1546   --htmldir=DIR           html documentation [DOCDIR]
1547   --dvidir=DIR            dvi documentation [DOCDIR]
1548   --pdfdir=DIR            pdf documentation [DOCDIR]
1549   --psdir=DIR             ps documentation [DOCDIR]
1550 _ACEOF
1551
1552   cat <<\_ACEOF
1553
1554 Program names:
1555   --program-prefix=PREFIX            prepend PREFIX to installed program names
1556   --program-suffix=SUFFIX            append SUFFIX to installed program names
1557   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1558
1559 System types:
1560   --build=BUILD     configure for building on BUILD [guessed]
1561   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1562 _ACEOF
1563 fi
1564
1565 if test -n "$ac_init_help"; then
1566   case $ac_init_help in
1567      short | recursive ) echo "Configuration of HarfBuzz 1.7.6:";;
1568    esac
1569   cat <<\_ACEOF
1570
1571 Optional Features:
1572   --disable-option-checking  ignore unrecognized --enable/--with options
1573   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1574   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1575   --enable-silent-rules   less verbose build output (undo: "make V=1")
1576   --disable-silent-rules  verbose build output (undo: "make V=0")
1577   --enable-code-coverage  Whether to enable code coverage support
1578   --enable-dependency-tracking
1579                           do not reject slow dependency extractors
1580   --disable-dependency-tracking
1581                           speeds up one-time build
1582   --enable-static[=PKGS]  build static libraries [default=no]
1583   --enable-shared[=PKGS]  build shared libraries [default=yes]
1584   --enable-fast-install[=PKGS]
1585                           optimize for fast installation [default=yes]
1586   --disable-libtool-lock  avoid locking (might break parallel builds)
1587   --disable-largefile     omit support for large files
1588   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1589   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1590   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1591   --enable-introspection=[no/auto/yes]
1592                           Enable introspection for this build
1593
1594 Optional Packages:
1595   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1596   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1597   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1598   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1599                           both]
1600   --with-aix-soname=aix|svr4|both
1601                           shared library versioning (aka "SONAME") variant to
1602                           provide on AIX, [default=aix].
1603   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1604   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1605                           compiler's sysroot if not specified).
1606   --with-libstdc++=[yes/no]
1607                           Allow linking with libstdc++ [default=no]
1608   --with-html-dir=PATH    path to installed docs
1609   --with-glib=[yes/no/auto]
1610                           Use glib [default=auto]
1611   --with-gobject=[yes/no/auto]
1612                           Use gobject [default=no]
1613   --with-cairo=[yes/no/auto]
1614                           Use cairo [default=auto]
1615   --with-fontconfig=[yes/no/auto]
1616                           Use fontconfig [default=auto]
1617   --with-icu=[yes/no/builtin/auto]
1618                           Use ICU [default=auto]
1619   --with-ucdn=[yes/no]    Use builtin UCDN library [default=yes]
1620   --with-graphite2=[yes/no/auto]
1621                           Use the graphite2 library [default=no]
1622   --with-freetype=[yes/no/auto]
1623                           Use the FreeType library [default=auto]
1624   --with-uniscribe=[yes/no/auto]
1625                           Use the Uniscribe library [default=no]
1626   --with-directwrite=[yes/no/auto]
1627                           Use the DirectWrite library (experimental)
1628                           [default=no]
1629   --with-coretext=[yes/no/auto]
1630                           Use CoreText [default=no]
1631
1632 Some influential environment variables:
1633   CC          C compiler command
1634   CFLAGS      C compiler flags
1635   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1636               nonstandard directory <lib dir>
1637   LIBS        libraries to pass to the linker, e.g. -l<library>
1638   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1639               you have headers in a nonstandard directory <include dir>
1640   LT_SYS_LIBRARY_PATH
1641               User-defined run-time library search path.
1642   CPP         C preprocessor
1643   CXX         C++ compiler command
1644   CXXFLAGS    C++ compiler flags
1645   CXXCPP      C++ preprocessor
1646   PKG_CONFIG  path to pkg-config utility
1647   GTKDOC_DEPS_CFLAGS
1648               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1649   GTKDOC_DEPS_LIBS
1650               linker flags for GTKDOC_DEPS, overriding pkg-config
1651   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1652   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1653   GOBJECT_CFLAGS
1654               C compiler flags for GOBJECT, overriding pkg-config
1655   GOBJECT_LIBS
1656               linker flags for GOBJECT, overriding pkg-config
1657   CAIRO_CFLAGS
1658               C compiler flags for CAIRO, overriding pkg-config
1659   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1660   CAIRO_FT_CFLAGS
1661               C compiler flags for CAIRO_FT, overriding pkg-config
1662   CAIRO_FT_LIBS
1663               linker flags for CAIRO_FT, overriding pkg-config
1664   FONTCONFIG_CFLAGS
1665               C compiler flags for FONTCONFIG, overriding pkg-config
1666   FONTCONFIG_LIBS
1667               linker flags for FONTCONFIG, overriding pkg-config
1668   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1669   ICU_LIBS    linker flags for ICU, overriding pkg-config
1670   GRAPHITE2_CFLAGS
1671               C compiler flags for GRAPHITE2, overriding pkg-config
1672   GRAPHITE2_LIBS
1673               linker flags for GRAPHITE2, overriding pkg-config
1674   FREETYPE_CFLAGS
1675               C compiler flags for FREETYPE, overriding pkg-config
1676   FREETYPE_LIBS
1677               linker flags for FREETYPE, overriding pkg-config
1678
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1681
1682 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1683 HarfBuzz home page: <http://harfbuzz.org/>.
1684 _ACEOF
1685 ac_status=$?
1686 fi
1687
1688 if test "$ac_init_help" = "recursive"; then
1689   # If there are subdirs, report their specific --help.
1690   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691     test -d "$ac_dir" ||
1692       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1693       continue
1694     ac_builddir=.
1695
1696 case "$ac_dir" in
1697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 *)
1699   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700   # A ".." for each directory in $ac_dir_suffix.
1701   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702   case $ac_top_builddir_sub in
1703   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705   esac ;;
1706 esac
1707 ac_abs_top_builddir=$ac_pwd
1708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709 # for backward compatibility:
1710 ac_top_builddir=$ac_top_build_prefix
1711
1712 case $srcdir in
1713   .)  # We are building in place.
1714     ac_srcdir=.
1715     ac_top_srcdir=$ac_top_builddir_sub
1716     ac_abs_top_srcdir=$ac_pwd ;;
1717   [\\/]* | ?:[\\/]* )  # Absolute name.
1718     ac_srcdir=$srcdir$ac_dir_suffix;
1719     ac_top_srcdir=$srcdir
1720     ac_abs_top_srcdir=$srcdir ;;
1721   *) # Relative name.
1722     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723     ac_top_srcdir=$ac_top_build_prefix$srcdir
1724     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1725 esac
1726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727
1728     cd "$ac_dir" || { ac_status=$?; continue; }
1729     # Check for guested configure.
1730     if test -f "$ac_srcdir/configure.gnu"; then
1731       echo &&
1732       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733     elif test -f "$ac_srcdir/configure"; then
1734       echo &&
1735       $SHELL "$ac_srcdir/configure" --help=recursive
1736     else
1737       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738     fi || ac_status=$?
1739     cd "$ac_pwd" || { ac_status=$?; break; }
1740   done
1741 fi
1742
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1745   cat <<\_ACEOF
1746 HarfBuzz configure 1.7.6
1747 generated by GNU Autoconf 2.69
1748
1749 Copyright (C) 2012 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1752 _ACEOF
1753   exit
1754 fi
1755
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1759
1760 # ac_fn_c_try_compile LINENO
1761 # --------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_compile ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   rm -f conftest.$ac_objext
1767   if { { ac_try="$ac_compile"
1768 case "(($ac_try" in
1769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770   *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774   (eval "$ac_compile") 2>conftest.err
1775   ac_status=$?
1776   if test -s conftest.err; then
1777     grep -v '^ *+' conftest.err >conftest.er1
1778     cat conftest.er1 >&5
1779     mv -f conftest.er1 conftest.err
1780   fi
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && {
1783          test -z "$ac_c_werror_flag" ||
1784          test ! -s conftest.err
1785        } && test -s conftest.$ac_objext; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791         ac_retval=1
1792 fi
1793   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794   as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_compile
1797
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_link ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   rm -f conftest.$ac_objext conftest$ac_exeext
1805   if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_link") 2>conftest.err
1813   ac_status=$?
1814   if test -s conftest.err; then
1815     grep -v '^ *+' conftest.err >conftest.er1
1816     cat conftest.er1 >&5
1817     mv -f conftest.er1 conftest.err
1818   fi
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && {
1821          test -z "$ac_c_werror_flag" ||
1822          test ! -s conftest.err
1823        } && test -s conftest$ac_exeext && {
1824          test "$cross_compiling" = yes ||
1825          test -x conftest$ac_exeext
1826        }; then :
1827   ac_retval=0
1828 else
1829   $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832         ac_retval=1
1833 fi
1834   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836   # interfere with the next link command; also delete a directory that is
1837   # left behind by Apple's compiler.  We do this before executing the actions.
1838   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840   as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_link
1843
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 $4
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862   eval "$3=yes"
1863 else
1864   eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 fi
1868 eval ac_res=\$$3
1869                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873 } # ac_fn_c_check_header_compile
1874
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_cpp ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 case "(($ac_try" in
1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884   *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889   ac_status=$?
1890   if test -s conftest.err; then
1891     grep -v '^ *+' conftest.err >conftest.er1
1892     cat conftest.er1 >&5
1893     mv -f conftest.er1 conftest.err
1894   fi
1895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896   test $ac_status = 0; } > conftest.i && {
1897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898          test ! -s conftest.err
1899        }; then :
1900   ac_retval=0
1901 else
1902   $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905     ac_retval=1
1906 fi
1907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908   as_fn_set_status $ac_retval
1909
1910 } # ac_fn_c_try_cpp
1911
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915 # that executables *can* be run.
1916 ac_fn_c_try_run ()
1917 {
1918   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919   if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922   *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926   (eval "$ac_link") 2>&5
1927   ac_status=$?
1928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930   { { case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936   (eval "$ac_try") 2>&5
1937   ac_status=$?
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; }; }; then :
1940   ac_retval=0
1941 else
1942   $as_echo "$as_me: program exited with status $ac_status" >&5
1943        $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1945
1946        ac_retval=$ac_status
1947 fi
1948   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950   as_fn_set_status $ac_retval
1951
1952 } # ac_fn_c_try_run
1953
1954 # ac_fn_c_check_func LINENO FUNC VAR
1955 # ----------------------------------
1956 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1957 ac_fn_c_check_func ()
1958 {
1959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963   $as_echo_n "(cached) " >&6
1964 else
1965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h.  */
1967 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1969 #define $2 innocuous_$2
1970
1971 /* System header to define __stub macros and hopefully few prototypes,
1972     which can conflict with char $2 (); below.
1973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974     <limits.h> exists even on freestanding compilers.  */
1975
1976 #ifdef __STDC__
1977 # include <limits.h>
1978 #else
1979 # include <assert.h>
1980 #endif
1981
1982 #undef $2
1983
1984 /* Override any GCC internal prototype to avoid an error.
1985    Use char because int might match the return type of a GCC
1986    builtin and then its argument prototype would still apply.  */
1987 #ifdef __cplusplus
1988 extern "C"
1989 #endif
1990 char $2 ();
1991 /* The GNU C library defines this for functions which it implements
1992     to always fail with ENOSYS.  Some functions are actually named
1993     something starting with __ and the normal name is an alias.  */
1994 #if defined __stub_$2 || defined __stub___$2
1995 choke me
1996 #endif
1997
1998 int
1999 main ()
2000 {
2001 return $2 ();
2002   ;
2003   return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_link "$LINENO"; then :
2007   eval "$3=yes"
2008 else
2009   eval "$3=no"
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext \
2012     conftest$ac_exeext conftest.$ac_ext
2013 fi
2014 eval ac_res=\$$3
2015                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019 } # ac_fn_c_check_func
2020
2021 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2022 # -------------------------------------------------------
2023 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2024 # the include files in INCLUDES and setting the cache variable VAR
2025 # accordingly.
2026 ac_fn_c_check_header_mongrel ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   if eval \${$3+:} false; then :
2030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if eval \${$3+:} false; then :
2033   $as_echo_n "(cached) " >&6
2034 fi
2035 eval ac_res=\$$3
2036                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 else
2039   # Is the header compilable?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2041 $as_echo_n "checking $2 usability... " >&6; }
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h.  */
2044 $4
2045 #include <$2>
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048   ac_header_compiler=yes
2049 else
2050   ac_header_compiler=no
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2054 $as_echo "$ac_header_compiler" >&6; }
2055
2056 # Is the header present?
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2058 $as_echo_n "checking $2 presence... " >&6; }
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 #include <$2>
2062 _ACEOF
2063 if ac_fn_c_try_cpp "$LINENO"; then :
2064   ac_header_preproc=yes
2065 else
2066   ac_header_preproc=no
2067 fi
2068 rm -f conftest.err conftest.i conftest.$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2070 $as_echo "$ac_header_preproc" >&6; }
2071
2072 # So?  What about this header?
2073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2074   yes:no: )
2075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2076 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2077     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2078 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2079     ;;
2080   no:yes:* )
2081     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2082 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2083     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2084 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2085     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2086 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2088 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2089     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ( $as_echo "## -------------------------------------------------------------- ##
2092 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2093 ## -------------------------------------------------------------- ##"
2094      ) | sed "s/^/$as_me: WARNING:     /" >&2
2095     ;;
2096 esac
2097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if eval \${$3+:} false; then :
2100   $as_echo_n "(cached) " >&6
2101 else
2102   eval "$3=\$ac_header_compiler"
2103 fi
2104 eval ac_res=\$$3
2105                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 fi
2108   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109
2110 } # ac_fn_c_check_header_mongrel
2111
2112 # ac_fn_cxx_try_compile LINENO
2113 # ----------------------------
2114 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_compile ()
2116 {
2117   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118   rm -f conftest.$ac_objext
2119   if { { ac_try="$ac_compile"
2120 case "(($ac_try" in
2121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122   *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126   (eval "$ac_compile") 2>conftest.err
2127   ac_status=$?
2128   if test -s conftest.err; then
2129     grep -v '^ *+' conftest.err >conftest.er1
2130     cat conftest.er1 >&5
2131     mv -f conftest.er1 conftest.err
2132   fi
2133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134   test $ac_status = 0; } && {
2135          test -z "$ac_cxx_werror_flag" ||
2136          test ! -s conftest.err
2137        } && test -s conftest.$ac_objext; then :
2138   ac_retval=0
2139 else
2140   $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143         ac_retval=1
2144 fi
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146   as_fn_set_status $ac_retval
2147
2148 } # ac_fn_cxx_try_compile
2149
2150 # ac_fn_cxx_try_cpp LINENO
2151 # ------------------------
2152 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2153 ac_fn_cxx_try_cpp ()
2154 {
2155   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156   if { { ac_try="$ac_cpp conftest.$ac_ext"
2157 case "(($ac_try" in
2158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159   *) ac_try_echo=$ac_try;;
2160 esac
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2164   ac_status=$?
2165   if test -s conftest.err; then
2166     grep -v '^ *+' conftest.err >conftest.er1
2167     cat conftest.er1 >&5
2168     mv -f conftest.er1 conftest.err
2169   fi
2170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171   test $ac_status = 0; } > conftest.i && {
2172          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2173          test ! -s conftest.err
2174        }; then :
2175   ac_retval=0
2176 else
2177   $as_echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2179
2180     ac_retval=1
2181 fi
2182   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183   as_fn_set_status $ac_retval
2184
2185 } # ac_fn_cxx_try_cpp
2186
2187 # ac_fn_cxx_try_link LINENO
2188 # -------------------------
2189 # Try to link conftest.$ac_ext, and return whether this succeeded.
2190 ac_fn_cxx_try_link ()
2191 {
2192   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193   rm -f conftest.$ac_objext conftest$ac_exeext
2194   if { { ac_try="$ac_link"
2195 case "(($ac_try" in
2196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197   *) ac_try_echo=$ac_try;;
2198 esac
2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201   (eval "$ac_link") 2>conftest.err
2202   ac_status=$?
2203   if test -s conftest.err; then
2204     grep -v '^ *+' conftest.err >conftest.er1
2205     cat conftest.er1 >&5
2206     mv -f conftest.er1 conftest.err
2207   fi
2208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209   test $ac_status = 0; } && {
2210          test -z "$ac_cxx_werror_flag" ||
2211          test ! -s conftest.err
2212        } && test -s conftest$ac_exeext && {
2213          test "$cross_compiling" = yes ||
2214          test -x conftest$ac_exeext
2215        }; then :
2216   ac_retval=0
2217 else
2218   $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221         ac_retval=1
2222 fi
2223   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2224   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2225   # interfere with the next link command; also delete a directory that is
2226   # left behind by Apple's compiler.  We do this before executing the actions.
2227   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2228   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229   as_fn_set_status $ac_retval
2230
2231 } # ac_fn_cxx_try_link
2232
2233 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2234 # --------------------------------------------
2235 # Tries to find the compile-time value of EXPR in a program that includes
2236 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2237 # computed
2238 ac_fn_c_compute_int ()
2239 {
2240   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241   if test "$cross_compiling" = yes; then
2242     # Depending upon the size, compute the lo and hi bounds.
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 static int test_array [1 - 2 * !(($2) >= 0)];
2250 test_array [0] = 0;
2251 return test_array [0];
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258   ac_lo=0 ac_mid=0
2259   while :; do
2260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 int
2264 main ()
2265 {
2266 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2267 test_array [0] = 0;
2268 return test_array [0];
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275   ac_hi=$ac_mid; break
2276 else
2277   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2278                         if test $ac_lo -le $ac_mid; then
2279                           ac_lo= ac_hi=
2280                           break
2281                         fi
2282                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285   done
2286 else
2287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $4
2290 int
2291 main ()
2292 {
2293 static int test_array [1 - 2 * !(($2) < 0)];
2294 test_array [0] = 0;
2295 return test_array [0];
2296
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302   ac_hi=-1 ac_mid=-1
2303   while :; do
2304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int
2308 main ()
2309 {
2310 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2311 test_array [0] = 0;
2312 return test_array [0];
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_compile "$LINENO"; then :
2319   ac_lo=$ac_mid; break
2320 else
2321   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2322                         if test $ac_mid -le $ac_hi; then
2323                           ac_lo= ac_hi=
2324                           break
2325                         fi
2326                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2327 fi
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329   done
2330 else
2331   ac_lo= ac_hi=
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 # Binary search between lo and hi bounds.
2337 while test "x$ac_lo" != "x$ac_hi"; do
2338   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
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) <= $ac_mid)];
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=$ac_mid
2355 else
2356   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 done
2360 case $ac_lo in #((
2361 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2362 '') ac_retval=1 ;;
2363 esac
2364   else
2365     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h.  */
2367 $4
2368 static long int longval () { return $2; }
2369 static unsigned long int ulongval () { return $2; }
2370 #include <stdio.h>
2371 #include <stdlib.h>
2372 int
2373 main ()
2374 {
2375
2376   FILE *f = fopen ("conftest.val", "w");
2377   if (! f)
2378     return 1;
2379   if (($2) < 0)
2380     {
2381       long int i = longval ();
2382       if (i != ($2))
2383         return 1;
2384       fprintf (f, "%ld", i);
2385     }
2386   else
2387     {
2388       unsigned long int i = ulongval ();
2389       if (i != ($2))
2390         return 1;
2391       fprintf (f, "%lu", i);
2392     }
2393   /* Do not output a trailing newline, as this causes \r\n confusion
2394      on some platforms.  */
2395   return ferror (f) || fclose (f) != 0;
2396
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 if ac_fn_c_try_run "$LINENO"; then :
2402   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2403 else
2404   ac_retval=1
2405 fi
2406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2407   conftest.$ac_objext conftest.beam conftest.$ac_ext
2408 rm -f conftest.val
2409
2410   fi
2411   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412   as_fn_set_status $ac_retval
2413
2414 } # ac_fn_c_compute_int
2415
2416 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2417 # ---------------------------------------------------------
2418 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2419 # the include files in INCLUDES and setting the cache variable VAR
2420 # accordingly.
2421 ac_fn_cxx_check_header_mongrel ()
2422 {
2423   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424   if eval \${$3+:} false; then :
2425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2426 $as_echo_n "checking for $2... " >&6; }
2427 if eval \${$3+:} false; then :
2428   $as_echo_n "(cached) " >&6
2429 fi
2430 eval ac_res=\$$3
2431                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 else
2434   # Is the header compilable?
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2436 $as_echo_n "checking $2 usability... " >&6; }
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h.  */
2439 $4
2440 #include <$2>
2441 _ACEOF
2442 if ac_fn_cxx_try_compile "$LINENO"; then :
2443   ac_header_compiler=yes
2444 else
2445   ac_header_compiler=no
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2449 $as_echo "$ac_header_compiler" >&6; }
2450
2451 # Is the header present?
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2453 $as_echo_n "checking $2 presence... " >&6; }
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h.  */
2456 #include <$2>
2457 _ACEOF
2458 if ac_fn_cxx_try_cpp "$LINENO"; then :
2459   ac_header_preproc=yes
2460 else
2461   ac_header_preproc=no
2462 fi
2463 rm -f conftest.err conftest.i conftest.$ac_ext
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2465 $as_echo "$ac_header_preproc" >&6; }
2466
2467 # So?  What about this header?
2468 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2469   yes:no: )
2470     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2471 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2473 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2474     ;;
2475   no:yes:* )
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2477 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2479 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2481 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2482     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2483 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2485 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2486 ( $as_echo "## -------------------------------------------------------------- ##
2487 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2488 ## -------------------------------------------------------------- ##"
2489      ) | sed "s/^/$as_me: WARNING:     /" >&2
2490     ;;
2491 esac
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2493 $as_echo_n "checking for $2... " >&6; }
2494 if eval \${$3+:} false; then :
2495   $as_echo_n "(cached) " >&6
2496 else
2497   eval "$3=\$ac_header_compiler"
2498 fi
2499 eval ac_res=\$$3
2500                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501 $as_echo "$ac_res" >&6; }
2502 fi
2503   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2504
2505 } # ac_fn_cxx_check_header_mongrel
2506
2507 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2508 # -------------------------------------------
2509 # Tests whether TYPE exists after having included INCLUDES, setting cache
2510 # variable VAR accordingly.
2511 ac_fn_c_check_type ()
2512 {
2513   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if eval \${$3+:} false; then :
2517   $as_echo_n "(cached) " >&6
2518 else
2519   eval "$3=no"
2520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h.  */
2522 $4
2523 int
2524 main ()
2525 {
2526 if (sizeof ($2))
2527          return 0;
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 if ac_fn_c_try_compile "$LINENO"; then :
2533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h.  */
2535 $4
2536 int
2537 main ()
2538 {
2539 if (sizeof (($2)))
2540             return 0;
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_c_try_compile "$LINENO"; then :
2546
2547 else
2548   eval "$3=yes"
2549 fi
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 fi
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 fi
2554 eval ac_res=\$$3
2555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558
2559 } # ac_fn_c_check_type
2560 cat >config.log <<_ACEOF
2561 This file contains any messages produced by compilers while
2562 running configure, to aid debugging if configure makes a mistake.
2563
2564 It was created by HarfBuzz $as_me 1.7.6, which was
2565 generated by GNU Autoconf 2.69.  Invocation command line was
2566
2567   $ $0 $@
2568
2569 _ACEOF
2570 exec 5>>config.log
2571 {
2572 cat <<_ASUNAME
2573 ## --------- ##
2574 ## Platform. ##
2575 ## --------- ##
2576
2577 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2578 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2579 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2580 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2581 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2582
2583 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2584 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2585
2586 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2587 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2588 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2589 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2590 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2591 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2592 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2593
2594 _ASUNAME
2595
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     $as_echo "PATH: $as_dir"
2602   done
2603 IFS=$as_save_IFS
2604
2605 } >&5
2606
2607 cat >&5 <<_ACEOF
2608
2609
2610 ## ----------- ##
2611 ## Core tests. ##
2612 ## ----------- ##
2613
2614 _ACEOF
2615
2616
2617 # Keep a trace of the command line.
2618 # Strip out --no-create and --no-recursion so they do not pile up.
2619 # Strip out --silent because we don't want to record it for future runs.
2620 # Also quote any args containing shell meta-characters.
2621 # Make two passes to allow for proper duplicate-argument suppression.
2622 ac_configure_args=
2623 ac_configure_args0=
2624 ac_configure_args1=
2625 ac_must_keep_next=false
2626 for ac_pass in 1 2
2627 do
2628   for ac_arg
2629   do
2630     case $ac_arg in
2631     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2632     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2633     | -silent | --silent | --silen | --sile | --sil)
2634       continue ;;
2635     *\'*)
2636       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2637     esac
2638     case $ac_pass in
2639     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2640     2)
2641       as_fn_append ac_configure_args1 " '$ac_arg'"
2642       if test $ac_must_keep_next = true; then
2643         ac_must_keep_next=false # Got value, back to normal.
2644       else
2645         case $ac_arg in
2646           *=* | --config-cache | -C | -disable-* | --disable-* \
2647           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2648           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2649           | -with-* | --with-* | -without-* | --without-* | --x)
2650             case "$ac_configure_args0 " in
2651               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2652             esac
2653             ;;
2654           -* ) ac_must_keep_next=true ;;
2655         esac
2656       fi
2657       as_fn_append ac_configure_args " '$ac_arg'"
2658       ;;
2659     esac
2660   done
2661 done
2662 { ac_configure_args0=; unset ac_configure_args0;}
2663 { ac_configure_args1=; unset ac_configure_args1;}
2664
2665 # When interrupted or exit'd, cleanup temporary files, and complete
2666 # config.log.  We remove comments because anyway the quotes in there
2667 # would cause problems or look ugly.
2668 # WARNING: Use '\'' to represent an apostrophe within the trap.
2669 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2670 trap 'exit_status=$?
2671   # Save into config.log some information that might help in debugging.
2672   {
2673     echo
2674
2675     $as_echo "## ---------------- ##
2676 ## Cache variables. ##
2677 ## ---------------- ##"
2678     echo
2679     # The following way of writing the cache mishandles newlines in values,
2680 (
2681   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2682     eval ac_val=\$$ac_var
2683     case $ac_val in #(
2684     *${as_nl}*)
2685       case $ac_var in #(
2686       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2687 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2688       esac
2689       case $ac_var in #(
2690       _ | IFS | as_nl) ;; #(
2691       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2692       *) { eval $ac_var=; unset $ac_var;} ;;
2693       esac ;;
2694     esac
2695   done
2696   (set) 2>&1 |
2697     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2698     *${as_nl}ac_space=\ *)
2699       sed -n \
2700         "s/'\''/'\''\\\\'\'''\''/g;
2701           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2702       ;; #(
2703     *)
2704       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2705       ;;
2706     esac |
2707     sort
2708 )
2709     echo
2710
2711     $as_echo "## ----------------- ##
2712 ## Output variables. ##
2713 ## ----------------- ##"
2714     echo
2715     for ac_var in $ac_subst_vars
2716     do
2717       eval ac_val=\$$ac_var
2718       case $ac_val in
2719       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2720       esac
2721       $as_echo "$ac_var='\''$ac_val'\''"
2722     done | sort
2723     echo
2724
2725     if test -n "$ac_subst_files"; then
2726       $as_echo "## ------------------- ##
2727 ## File substitutions. ##
2728 ## ------------------- ##"
2729       echo
2730       for ac_var in $ac_subst_files
2731       do
2732         eval ac_val=\$$ac_var
2733         case $ac_val in
2734         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2735         esac
2736         $as_echo "$ac_var='\''$ac_val'\''"
2737       done | sort
2738       echo
2739     fi
2740
2741     if test -s confdefs.h; then
2742       $as_echo "## ----------- ##
2743 ## confdefs.h. ##
2744 ## ----------- ##"
2745       echo
2746       cat confdefs.h
2747       echo
2748     fi
2749     test "$ac_signal" != 0 &&
2750       $as_echo "$as_me: caught signal $ac_signal"
2751     $as_echo "$as_me: exit $exit_status"
2752   } >&5
2753   rm -f core *.core core.conftest.* &&
2754     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2755     exit $exit_status
2756 ' 0
2757 for ac_signal in 1 2 13 15; do
2758   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2759 done
2760 ac_signal=0
2761
2762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2763 rm -f -r conftest* confdefs.h
2764
2765 $as_echo "/* confdefs.h */" > confdefs.h
2766
2767 # Predefined preprocessor variables.
2768
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_NAME "$PACKAGE_NAME"
2771 _ACEOF
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2775 _ACEOF
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2779 _ACEOF
2780
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE_STRING "$PACKAGE_STRING"
2783 _ACEOF
2784
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2787 _ACEOF
2788
2789 cat >>confdefs.h <<_ACEOF
2790 #define PACKAGE_URL "$PACKAGE_URL"
2791 _ACEOF
2792
2793
2794 # Let the site file select an alternate cache file if it wants to.
2795 # Prefer an explicitly selected file to automatically selected ones.
2796 ac_site_file1=NONE
2797 ac_site_file2=NONE
2798 if test -n "$CONFIG_SITE"; then
2799   # We do not want a PATH search for config.site.
2800   case $CONFIG_SITE in #((
2801     -*)  ac_site_file1=./$CONFIG_SITE;;
2802     */*) ac_site_file1=$CONFIG_SITE;;
2803     *)   ac_site_file1=./$CONFIG_SITE;;
2804   esac
2805 elif test "x$prefix" != xNONE; then
2806   ac_site_file1=$prefix/share/config.site
2807   ac_site_file2=$prefix/etc/config.site
2808 else
2809   ac_site_file1=$ac_default_prefix/share/config.site
2810   ac_site_file2=$ac_default_prefix/etc/config.site
2811 fi
2812 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2813 do
2814   test "x$ac_site_file" = xNONE && continue
2815   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2816     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2817 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2818     sed 's/^/| /' "$ac_site_file" >&5
2819     . "$ac_site_file" \
2820       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 as_fn_error $? "failed to load site script $ac_site_file
2823 See \`config.log' for more details" "$LINENO" 5; }
2824   fi
2825 done
2826
2827 if test -r "$cache_file"; then
2828   # Some versions of bash will fail to source /dev/null (special files
2829   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2830   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2831     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2832 $as_echo "$as_me: loading cache $cache_file" >&6;}
2833     case $cache_file in
2834       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2835       *)                      . "./$cache_file";;
2836     esac
2837   fi
2838 else
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2840 $as_echo "$as_me: creating cache $cache_file" >&6;}
2841   >$cache_file
2842 fi
2843
2844 # Check that the precious variables saved in the cache have kept the same
2845 # value.
2846 ac_cache_corrupted=false
2847 for ac_var in $ac_precious_vars; do
2848   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2849   eval ac_new_set=\$ac_env_${ac_var}_set
2850   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2851   eval ac_new_val=\$ac_env_${ac_var}_value
2852   case $ac_old_set,$ac_new_set in
2853     set,)
2854       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2855 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2856       ac_cache_corrupted=: ;;
2857     ,set)
2858       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2859 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2860       ac_cache_corrupted=: ;;
2861     ,);;
2862     *)
2863       if test "x$ac_old_val" != "x$ac_new_val"; then
2864         # differences in whitespace do not lead to failure.
2865         ac_old_val_w=`echo x $ac_old_val`
2866         ac_new_val_w=`echo x $ac_new_val`
2867         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2868           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2869 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2870           ac_cache_corrupted=:
2871         else
2872           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2873 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2874           eval $ac_var=\$ac_old_val
2875         fi
2876         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2877 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2878         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2879 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2880       fi;;
2881   esac
2882   # Pass precious variables to config.status.
2883   if test "$ac_new_set" = set; then
2884     case $ac_new_val in
2885     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2886     *) ac_arg=$ac_var=$ac_new_val ;;
2887     esac
2888     case " $ac_configure_args " in
2889       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2890       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2891     esac
2892   fi
2893 done
2894 if $ac_cache_corrupted; then
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2898 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2899   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2900 fi
2901 ## -------------------- ##
2902 ## Main body of script. ##
2903 ## -------------------- ##
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911
2912
2913
2914
2915 ac_config_headers="$ac_config_headers config.h"
2916
2917
2918 am__api_version='1.15'
2919
2920 ac_aux_dir=
2921 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2922   if test -f "$ac_dir/install-sh"; then
2923     ac_aux_dir=$ac_dir
2924     ac_install_sh="$ac_aux_dir/install-sh -c"
2925     break
2926   elif test -f "$ac_dir/install.sh"; then
2927     ac_aux_dir=$ac_dir
2928     ac_install_sh="$ac_aux_dir/install.sh -c"
2929     break
2930   elif test -f "$ac_dir/shtool"; then
2931     ac_aux_dir=$ac_dir
2932     ac_install_sh="$ac_aux_dir/shtool install -c"
2933     break
2934   fi
2935 done
2936 if test -z "$ac_aux_dir"; then
2937   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2938 fi
2939
2940 # These three variables are undocumented and unsupported,
2941 # and are intended to be withdrawn in a future Autoconf release.
2942 # They can cause serious problems if a builder's source tree is in a directory
2943 # whose full name contains unusual characters.
2944 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2945 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2946 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2947
2948
2949 # Find a good install program.  We prefer a C program (faster),
2950 # so one script is as good as another.  But avoid the broken or
2951 # incompatible versions:
2952 # SysV /etc/install, /usr/sbin/install
2953 # SunOS /usr/etc/install
2954 # IRIX /sbin/install
2955 # AIX /bin/install
2956 # AmigaOS /C/install, which installs bootblocks on floppy discs
2957 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2958 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2959 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2960 # OS/2's system install, which has a completely different semantic
2961 # ./install, which can be erroneously created by make from ./install.sh.
2962 # Reject install programs that cannot install multiple files.
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2964 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2965 if test -z "$INSTALL"; then
2966 if ${ac_cv_path_install+:} false; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972   IFS=$as_save_IFS
2973   test -z "$as_dir" && as_dir=.
2974     # Account for people who put trailing slashes in PATH elements.
2975 case $as_dir/ in #((
2976   ./ | .// | /[cC]/* | \
2977   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2978   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2979   /usr/ucb/* ) ;;
2980   *)
2981     # OSF1 and SCO ODT 3.0 have their own names for install.
2982     # Don't use installbsd from OSF since it installs stuff as root
2983     # by default.
2984     for ac_prog in ginstall scoinst install; do
2985       for ac_exec_ext in '' $ac_executable_extensions; do
2986         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2987           if test $ac_prog = install &&
2988             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2989             # AIX install.  It has an incompatible calling convention.
2990             :
2991           elif test $ac_prog = install &&
2992             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2993             # program-specific install script used by HP pwplus--don't use.
2994             :
2995           else
2996             rm -rf conftest.one conftest.two conftest.dir
2997             echo one > conftest.one
2998             echo two > conftest.two
2999             mkdir conftest.dir
3000             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3001               test -s conftest.one && test -s conftest.two &&
3002               test -s conftest.dir/conftest.one &&
3003               test -s conftest.dir/conftest.two
3004             then
3005               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3006               break 3
3007             fi
3008           fi
3009         fi
3010       done
3011     done
3012     ;;
3013 esac
3014
3015   done
3016 IFS=$as_save_IFS
3017
3018 rm -rf conftest.one conftest.two conftest.dir
3019
3020 fi
3021   if test "${ac_cv_path_install+set}" = set; then
3022     INSTALL=$ac_cv_path_install
3023   else
3024     # As a last resort, use the slow shell script.  Don't cache a
3025     # value for INSTALL within a source directory, because that will
3026     # break other packages using the cache if that directory is
3027     # removed, or if the value is a relative name.
3028     INSTALL=$ac_install_sh
3029   fi
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3032 $as_echo "$INSTALL" >&6; }
3033
3034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3035 # It thinks the first close brace ends the variable substitution.
3036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3037
3038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3039
3040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3043 $as_echo_n "checking whether build environment is sane... " >&6; }
3044 # Reject unsafe characters in $srcdir or the absolute working directory
3045 # name.  Accept space and tab only in the latter.
3046 am_lf='
3047 '
3048 case `pwd` in
3049   *[\\\"\#\$\&\'\`$am_lf]*)
3050     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3051 esac
3052 case $srcdir in
3053   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3054     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3055 esac
3056
3057 # Do 'set' in a subshell so we don't clobber the current shell's
3058 # arguments.  Must try -L first in case configure is actually a
3059 # symlink; some systems play weird games with the mod time of symlinks
3060 # (eg FreeBSD returns the mod time of the symlink's containing
3061 # directory).
3062 if (
3063    am_has_slept=no
3064    for am_try in 1 2; do
3065      echo "timestamp, slept: $am_has_slept" > conftest.file
3066      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3067      if test "$*" = "X"; then
3068         # -L didn't work.
3069         set X `ls -t "$srcdir/configure" conftest.file`
3070      fi
3071      if test "$*" != "X $srcdir/configure conftest.file" \
3072         && test "$*" != "X conftest.file $srcdir/configure"; then
3073
3074         # If neither matched, then we have a broken ls.  This can happen
3075         # if, for instance, CONFIG_SHELL is bash and it inherits a
3076         # broken ls alias from the environment.  This has actually
3077         # happened.  Such a system could not be considered "sane".
3078         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3079   alias in your environment" "$LINENO" 5
3080      fi
3081      if test "$2" = conftest.file || test $am_try -eq 2; then
3082        break
3083      fi
3084      # Just in case.
3085      sleep 1
3086      am_has_slept=yes
3087    done
3088    test "$2" = conftest.file
3089    )
3090 then
3091    # Ok.
3092    :
3093 else
3094    as_fn_error $? "newly created file is older than distributed files!
3095 Check your system clock" "$LINENO" 5
3096 fi
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3099 # If we didn't sleep, we still need to ensure time stamps of config.status and
3100 # generated files are strictly newer.
3101 am_sleep_pid=
3102 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3103   ( sleep 1 ) &
3104   am_sleep_pid=$!
3105 fi
3106
3107 rm -f conftest.file
3108
3109 test "$program_prefix" != NONE &&
3110   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3111 # Use a double $ so make ignores it.
3112 test "$program_suffix" != NONE &&
3113   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3114 # Double any \ or $.
3115 # By default was `s,x,x', remove it if useless.
3116 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3117 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3118
3119 # Expand $ac_aux_dir to an absolute path.
3120 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3121
3122 if test x"${MISSING+set}" != xset; then
3123   case $am_aux_dir in
3124   *\ * | *\     *)
3125     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3126   *)
3127     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3128   esac
3129 fi
3130 # Use eval to expand $SHELL
3131 if eval "$MISSING --is-lightweight"; then
3132   am_missing_run="$MISSING "
3133 else
3134   am_missing_run=
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3136 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3137 fi
3138
3139 if test x"${install_sh+set}" != xset; then
3140   case $am_aux_dir in
3141   *\ * | *\     *)
3142     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3143   *)
3144     install_sh="\${SHELL} $am_aux_dir/install-sh"
3145   esac
3146 fi
3147
3148 # Installed binaries are usually stripped using 'strip' when the user
3149 # run "make install-strip".  However 'strip' might not be the right
3150 # tool to use in cross-compilation environments, therefore Automake
3151 # will honor the 'STRIP' environment variable to overrule this program.
3152 if test "$cross_compiling" != no; then
3153   if test -n "$ac_tool_prefix"; then
3154   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}strip; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_STRIP+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if test -n "$STRIP"; then
3162   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176   done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 STRIP=$ac_cv_prog_STRIP
3182 if test -n "$STRIP"; then
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3184 $as_echo "$STRIP" >&6; }
3185 else
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 if test -z "$ac_cv_prog_STRIP"; then
3193   ac_ct_STRIP=$STRIP
3194   # Extract the first word of "strip", so it can be a program name with args.
3195 set dummy strip; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3199   $as_echo_n "(cached) " >&6
3200 else
3201   if test -n "$ac_ct_STRIP"; then
3202   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   test -z "$as_dir" && as_dir=.
3209     for ac_exec_ext in '' $ac_executable_extensions; do
3210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211     ac_cv_prog_ac_ct_STRIP="strip"
3212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213     break 2
3214   fi
3215 done
3216   done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3222 if test -n "$ac_ct_STRIP"; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3224 $as_echo "$ac_ct_STRIP" >&6; }
3225 else
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230   if test "x$ac_ct_STRIP" = x; then
3231     STRIP=":"
3232   else
3233     case $cross_compiling:$ac_tool_warned in
3234 yes:)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3238 esac
3239     STRIP=$ac_ct_STRIP
3240   fi
3241 else
3242   STRIP="$ac_cv_prog_STRIP"
3243 fi
3244
3245 fi
3246 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3247
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3249 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3250 if test -z "$MKDIR_P"; then
3251   if ${ac_cv_path_mkdir+:} false; then :
3252   $as_echo_n "(cached) " >&6
3253 else
3254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3256 do
3257   IFS=$as_save_IFS
3258   test -z "$as_dir" && as_dir=.
3259     for ac_prog in mkdir gmkdir; do
3260          for ac_exec_ext in '' $ac_executable_extensions; do
3261            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3262            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3263              'mkdir (GNU coreutils) '* | \
3264              'mkdir (coreutils) '* | \
3265              'mkdir (fileutils) '4.1*)
3266                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3267                break 3;;
3268            esac
3269          done
3270        done
3271   done
3272 IFS=$as_save_IFS
3273
3274 fi
3275
3276   test -d ./--version && rmdir ./--version
3277   if test "${ac_cv_path_mkdir+set}" = set; then
3278     MKDIR_P="$ac_cv_path_mkdir -p"
3279   else
3280     # As a last resort, use the slow shell script.  Don't cache a
3281     # value for MKDIR_P within a source directory, because that will
3282     # break other packages using the cache if that directory is
3283     # removed, or if the value is a relative name.
3284     MKDIR_P="$ac_install_sh -d"
3285   fi
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3288 $as_echo "$MKDIR_P" >&6; }
3289
3290 for ac_prog in gawk mawk nawk awk
3291 do
3292   # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_AWK+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   if test -n "$AWK"; then
3300   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307     for ac_exec_ext in '' $ac_executable_extensions; do
3308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     ac_cv_prog_AWK="$ac_prog"
3310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314   done
3315 IFS=$as_save_IFS
3316
3317 fi
3318 fi
3319 AWK=$ac_cv_prog_AWK
3320 if test -n "$AWK"; then
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3322 $as_echo "$AWK" >&6; }
3323 else
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 fi
3327
3328
3329   test -n "$AWK" && break
3330 done
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3333 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3334 set x ${MAKE-make}
3335 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3336 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3337   $as_echo_n "(cached) " >&6
3338 else
3339   cat >conftest.make <<\_ACEOF
3340 SHELL = /bin/sh
3341 all:
3342         @echo '@@@%%%=$(MAKE)=@@@%%%'
3343 _ACEOF
3344 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3345 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3346   *@@@%%%=?*=@@@%%%*)
3347     eval ac_cv_prog_make_${ac_make}_set=yes;;
3348   *)
3349     eval ac_cv_prog_make_${ac_make}_set=no;;
3350 esac
3351 rm -f conftest.make
3352 fi
3353 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3356   SET_MAKE=
3357 else
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360   SET_MAKE="MAKE=${MAKE-make}"
3361 fi
3362
3363 rm -rf .tst 2>/dev/null
3364 mkdir .tst 2>/dev/null
3365 if test -d .tst; then
3366   am__leading_dot=.
3367 else
3368   am__leading_dot=_
3369 fi
3370 rmdir .tst 2>/dev/null
3371
3372 # Check whether --enable-silent-rules was given.
3373 if test "${enable_silent_rules+set}" = set; then :
3374   enableval=$enable_silent_rules;
3375 fi
3376
3377 case $enable_silent_rules in # (((
3378   yes) AM_DEFAULT_VERBOSITY=0;;
3379    no) AM_DEFAULT_VERBOSITY=1;;
3380     *) AM_DEFAULT_VERBOSITY=1;;
3381 esac
3382 am_make=${MAKE-make}
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3384 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3385 if ${am_cv_make_support_nested_variables+:} false; then :
3386   $as_echo_n "(cached) " >&6
3387 else
3388   if $as_echo 'TRUE=$(BAR$(V))
3389 BAR0=false
3390 BAR1=true
3391 V=1
3392 am__doit:
3393         @$(TRUE)
3394 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3395   am_cv_make_support_nested_variables=yes
3396 else
3397   am_cv_make_support_nested_variables=no
3398 fi
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3401 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3402 if test $am_cv_make_support_nested_variables = yes; then
3403     AM_V='$(V)'
3404   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3405 else
3406   AM_V=$AM_DEFAULT_VERBOSITY
3407   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3408 fi
3409 AM_BACKSLASH='\'
3410
3411 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3412   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3413   # is not polluted with repeated "-I."
3414   am__isrc=' -I$(srcdir)'
3415   # test to see if srcdir already configured
3416   if test -f $srcdir/config.status; then
3417     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3418   fi
3419 fi
3420
3421 # test whether we have cygpath
3422 if test -z "$CYGPATH_W"; then
3423   if (cygpath --version) >/dev/null 2>/dev/null; then
3424     CYGPATH_W='cygpath -w'
3425   else
3426     CYGPATH_W=echo
3427   fi
3428 fi
3429
3430
3431 # Define the identity of the package.
3432  PACKAGE='harfbuzz'
3433  VERSION='1.7.6'
3434
3435
3436 # Some tools Automake needs.
3437
3438 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3439
3440
3441 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3442
3443
3444 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3445
3446
3447 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3448
3449
3450 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3451
3452 # For better backward compatibility.  To be removed once Automake 1.9.x
3453 # dies out for good.  For more background, see:
3454 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3455 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3456 mkdir_p='$(MKDIR_P)'
3457
3458 # We need awk for the "check" target (and possibly the TAP driver).  The
3459 # system "awk" is bad on some platforms.
3460 # Always define AMTAR for backward compatibility.  Yes, it's still used
3461 # in the wild :-(  We should find a proper way to deprecate it ...
3462 AMTAR='$${TAR-tar}'
3463
3464
3465 # We'll loop over all known methods to create a tar archive until one works.
3466 _am_tools='gnutar plaintar pax cpio none'
3467
3468 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3469       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3470       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3471       # and bug#13588).
3472       am_max_uid=2097151 # 2^21 - 1
3473       am_max_gid=$am_max_uid
3474       # The $UID and $GID variables are not portable, so we need to resort
3475       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3476       # below are definitely unexpected, so allow the users to see them
3477       # (that is, avoid stderr redirection).
3478       am_uid=`id -u || echo unknown`
3479       am_gid=`id -g || echo unknown`
3480       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3481 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3482       if test $am_uid -le $am_max_uid; then
3483          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3485       else
3486          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488          _am_tools=none
3489       fi
3490       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3491 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3492       if test $am_gid -le $am_max_gid; then
3493          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3495       else
3496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498         _am_tools=none
3499       fi
3500
3501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3502 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3503
3504   # Go ahead even if we have the value already cached.  We do so because we
3505   # need to set the values for the 'am__tar' and 'am__untar' variables.
3506   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3507
3508   for _am_tool in $_am_tools; do
3509     case $_am_tool in
3510     gnutar)
3511       for _am_tar in tar gnutar gtar; do
3512         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3513    ($_am_tar --version) >&5 2>&5
3514    ac_status=$?
3515    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516    (exit $ac_status); } && break
3517       done
3518       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3519       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3520       am__untar="$_am_tar -xf -"
3521       ;;
3522     plaintar)
3523       # Must skip GNU tar: if it does not support --format= it doesn't create
3524       # ustar tarball either.
3525       (tar --version) >/dev/null 2>&1 && continue
3526       am__tar='tar chf - "$$tardir"'
3527       am__tar_='tar chf - "$tardir"'
3528       am__untar='tar xf -'
3529       ;;
3530     pax)
3531       am__tar='pax -L -x ustar -w "$$tardir"'
3532       am__tar_='pax -L -x ustar -w "$tardir"'
3533       am__untar='pax -r'
3534       ;;
3535     cpio)
3536       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3537       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3538       am__untar='cpio -i -H ustar -d'
3539       ;;
3540     none)
3541       am__tar=false
3542       am__tar_=false
3543       am__untar=false
3544       ;;
3545     esac
3546
3547     # If the value was cached, stop now.  We just wanted to have am__tar
3548     # and am__untar set.
3549     test -n "${am_cv_prog_tar_ustar}" && break
3550
3551     # tar/untar a dummy directory, and stop if the command works.
3552     rm -rf conftest.dir
3553     mkdir conftest.dir
3554     echo GrepMe > conftest.dir/file
3555     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3556    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3557    ac_status=$?
3558    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559    (exit $ac_status); }
3560     rm -rf conftest.dir
3561     if test -s conftest.tar; then
3562       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3563    ($am__untar <conftest.tar) >&5 2>&5
3564    ac_status=$?
3565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566    (exit $ac_status); }
3567       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3568    (cat conftest.dir/file) >&5 2>&5
3569    ac_status=$?
3570    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571    (exit $ac_status); }
3572       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3573     fi
3574   done
3575   rm -rf conftest.dir
3576
3577   if ${am_cv_prog_tar_ustar+:} false; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   am_cv_prog_tar_ustar=$_am_tool
3581 fi
3582
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3584 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3585
3586
3587
3588
3589
3590
3591 # POSIX will say in a future version that running "rm -f" with no argument
3592 # is OK; and we want to be able to make that assumption in our Makefile
3593 # recipes.  So use an aggressive probe to check that the usage we want is
3594 # actually supported "in the wild" to an acceptable degree.
3595 # See automake bug#10828.
3596 # To make any issue more visible, cause the running configure to be aborted
3597 # by default if the 'rm' program in use doesn't match our expectations; the
3598 # user can still override this though.
3599 if rm -f && rm -fr && rm -rf; then : OK; else
3600   cat >&2 <<'END'
3601 Oops!
3602
3603 Your 'rm' program seems unable to run without file operands specified
3604 on the command line, even when the '-f' option is present.  This is contrary
3605 to the behaviour of most rm programs out there, and not conforming with
3606 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3607
3608 Please tell bug-automake@gnu.org about your system, including the value
3609 of your $PATH and any error possibly output before this message.  This
3610 can help us improve future automake versions.
3611
3612 END
3613   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3614     echo 'Configuration will proceed anyway, since you have set the' >&2
3615     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3616     echo >&2
3617   else
3618     cat >&2 <<'END'
3619 Aborting the configuration process, to ensure you take notice of the issue.
3620
3621 You can download and install GNU coreutils to get an 'rm' implementation
3622 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3623
3624 If you want to complete the configuration process using your problematic
3625 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3626 to "yes", and re-run configure.
3627
3628 END
3629     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3630   fi
3631 fi
3632
3633 # Check whether --enable-silent-rules was given.
3634 if test "${enable_silent_rules+set}" = set; then :
3635   enableval=$enable_silent_rules;
3636 fi
3637
3638 case $enable_silent_rules in # (((
3639   yes) AM_DEFAULT_VERBOSITY=0;;
3640    no) AM_DEFAULT_VERBOSITY=1;;
3641     *) AM_DEFAULT_VERBOSITY=0;;
3642 esac
3643 am_make=${MAKE-make}
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3645 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3646 if ${am_cv_make_support_nested_variables+:} false; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   if $as_echo 'TRUE=$(BAR$(V))
3650 BAR0=false
3651 BAR1=true
3652 V=1
3653 am__doit:
3654         @$(TRUE)
3655 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3656   am_cv_make_support_nested_variables=yes
3657 else
3658   am_cv_make_support_nested_variables=no
3659 fi
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3662 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3663 if test $am_cv_make_support_nested_variables = yes; then
3664     AM_V='$(V)'
3665   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3666 else
3667   AM_V=$AM_DEFAULT_VERBOSITY
3668   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3669 fi
3670 AM_BACKSLASH='\'
3671
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3673 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3674 if ${ac_cv_path_SED+:} false; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3678      for ac_i in 1 2 3 4 5 6 7; do
3679        ac_script="$ac_script$as_nl$ac_script"
3680      done
3681      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3682      { ac_script=; unset ac_script;}
3683      if test -z "$SED"; then
3684   ac_path_SED_found=false
3685   # Loop through the user's path and test for each of PROGNAME-LIST
3686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691     for ac_prog in sed gsed; do
3692     for ac_exec_ext in '' $ac_executable_extensions; do
3693       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3694       as_fn_executable_p "$ac_path_SED" || continue
3695 # Check for GNU ac_path_SED and select it if it is found.
3696   # Check for GNU $ac_path_SED
3697 case `"$ac_path_SED" --version 2>&1` in
3698 *GNU*)
3699   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3700 *)
3701   ac_count=0
3702   $as_echo_n 0123456789 >"conftest.in"
3703   while :
3704   do
3705     cat "conftest.in" "conftest.in" >"conftest.tmp"
3706     mv "conftest.tmp" "conftest.in"
3707     cp "conftest.in" "conftest.nl"
3708     $as_echo '' >> "conftest.nl"
3709     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3710     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3711     as_fn_arith $ac_count + 1 && ac_count=$as_val
3712     if test $ac_count -gt ${ac_path_SED_max-0}; then
3713       # Best one so far, save it but keep looking for a better one
3714       ac_cv_path_SED="$ac_path_SED"
3715       ac_path_SED_max=$ac_count
3716     fi
3717     # 10*(2^10) chars as input seems more than enough
3718     test $ac_count -gt 10 && break
3719   done
3720   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3721 esac
3722
3723       $ac_path_SED_found && break 3
3724     done
3725   done
3726   done
3727 IFS=$as_save_IFS
3728   if test -z "$ac_cv_path_SED"; then
3729     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3730   fi
3731 else
3732   ac_cv_path_SED=$SED
3733 fi
3734
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3737 $as_echo "$ac_cv_path_SED" >&6; }
3738  SED="$ac_cv_path_SED"
3739   rm -f conftest.sed
3740
3741
3742
3743
3744         # allow to override gcov location
3745
3746 # Check whether --with-gcov was given.
3747 if test "${with_gcov+set}" = set; then :
3748   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3749 else
3750   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3751 fi
3752
3753
3754         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3755 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3756         # Check whether --enable-code-coverage was given.
3757 if test "${enable_code_coverage+set}" = set; then :
3758   enableval=$enable_code_coverage;
3759 else
3760   enable_code_coverage=no
3761 fi
3762
3763
3764          if test x$enable_code_coverage = xyes; then
3765   CODE_COVERAGE_ENABLED_TRUE=
3766   CODE_COVERAGE_ENABLED_FALSE='#'
3767 else
3768   CODE_COVERAGE_ENABLED_TRUE='#'
3769   CODE_COVERAGE_ENABLED_FALSE=
3770 fi
3771
3772         CODE_COVERAGE_ENABLED=$enable_code_coverage
3773
3774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3775 $as_echo "$enable_code_coverage" >&6; }
3776
3777         if  test "$enable_code_coverage" = "yes" ; then :
3778
3779                 # check for gcov
3780                 if test -n "$ac_tool_prefix"; then
3781   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3782 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if ${ac_cv_prog_GCOV+:} false; then :
3786   $as_echo_n "(cached) " >&6
3787 else
3788   if test -n "$GCOV"; then
3789   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794   IFS=$as_save_IFS
3795   test -z "$as_dir" && as_dir=.
3796     for ac_exec_ext in '' $ac_executable_extensions; do
3797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800     break 2
3801   fi
3802 done
3803   done
3804 IFS=$as_save_IFS
3805
3806 fi
3807 fi
3808 GCOV=$ac_cv_prog_GCOV
3809 if test -n "$GCOV"; then
3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3811 $as_echo "$GCOV" >&6; }
3812 else
3813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 fi
3816
3817
3818 fi
3819 if test -z "$ac_cv_prog_GCOV"; then
3820   ac_ct_GCOV=$GCOV
3821   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3822 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3826   $as_echo_n "(cached) " >&6
3827 else
3828   if test -n "$ac_ct_GCOV"; then
3829   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836     for ac_exec_ext in '' $ac_executable_extensions; do
3837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840     break 2
3841   fi
3842 done
3843   done
3844 IFS=$as_save_IFS
3845
3846 fi
3847 fi
3848 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3849 if test -n "$ac_ct_GCOV"; then
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3851 $as_echo "$ac_ct_GCOV" >&6; }
3852 else
3853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3855 fi
3856
3857   if test "x$ac_ct_GCOV" = x; then
3858     GCOV=":"
3859   else
3860     case $cross_compiling:$ac_tool_warned in
3861 yes:)
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864 ac_tool_warned=yes ;;
3865 esac
3866     GCOV=$ac_ct_GCOV
3867   fi
3868 else
3869   GCOV="$ac_cv_prog_GCOV"
3870 fi
3871
3872                 if test "X$GCOV" = "X:"; then :
3873   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3874 fi
3875
3876
3877                                 if  test "$GCC" = "no" ; then :
3878
3879                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3880
3881 fi
3882
3883                 # Extract the first word of "lcov", so it can be a program name with args.
3884 set dummy lcov; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_LCOV+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   if test -n "$LCOV"; then
3891   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898     for ac_exec_ext in '' $ac_executable_extensions; do
3899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900     ac_cv_prog_LCOV="lcov"
3901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902     break 2
3903   fi
3904 done
3905   done
3906 IFS=$as_save_IFS
3907
3908 fi
3909 fi
3910 LCOV=$ac_cv_prog_LCOV
3911 if test -n "$LCOV"; then
3912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3913 $as_echo "$LCOV" >&6; }
3914 else
3915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 fi
3918
3919
3920                 # Extract the first word of "genhtml", so it can be a program name with args.
3921 set dummy genhtml; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_GENHTML+:} false; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   if test -n "$GENHTML"; then
3928   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935     for ac_exec_ext in '' $ac_executable_extensions; do
3936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_prog_GENHTML="genhtml"
3938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942   done
3943 IFS=$as_save_IFS
3944
3945 fi
3946 fi
3947 GENHTML=$ac_cv_prog_GENHTML
3948 if test -n "$GENHTML"; then
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3950 $as_echo "$GENHTML" >&6; }
3951 else
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 fi
3955
3956
3957
3958                 if  test -z "$LCOV" ; then :
3959
3960                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3961
3962 fi
3963
3964                 if  test -z "$GENHTML" ; then :
3965
3966                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3967
3968 fi
3969
3970                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3971                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3972                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3973                 CODE_COVERAGE_LIBS="-lgcov"
3974                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3975
3976
3977
3978
3979
3980
3981
3982                 CODE_COVERAGE_RULES_CHECK='
3983         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3984         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3985 '
3986                 CODE_COVERAGE_RULES_CAPTURE='
3987         $(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)
3988         $(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)
3989         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3990         $(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)
3991         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3992 '
3993                 CODE_COVERAGE_RULES_CLEAN='
3994 clean: code-coverage-clean
3995 distclean: code-coverage-clean
3996 code-coverage-clean:
3997         -$(LCOV) --directory $(top_builddir) -z
3998         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3999         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4000 '
4001
4002 else
4003
4004                 CODE_COVERAGE_RULES_CHECK='
4005         @echo "Need to reconfigure with --enable-code-coverage"
4006 '
4007                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4008                 CODE_COVERAGE_RULES_CLEAN=''
4009
4010 fi
4011
4012 CODE_COVERAGE_RULES='
4013 # Code coverage
4014 #
4015 # Optional:
4016 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4017 #    Multiple directories may be specified, separated by whitespace.
4018 #    (Default: $(top_builddir))
4019 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4020 #    by lcov for code coverage. (Default:
4021 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4022 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4023 #    reports to be created. (Default:
4024 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4025 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4026 #    set to 0 to disable it and leave empty to stay with the default.
4027 #    (Default: empty)
4028 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4029 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4030 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4031 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4032 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4033 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4034 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4035 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4036 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4037 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4038 #    lcov instance. (Default: empty)
4039 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4040 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4041 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4042 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4043 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4044 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4045 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4046 #
4047 # The generated report will be titled using the $(PACKAGE_NAME) and
4048 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4049 # use the git-version-gen script, available online.
4050
4051 # Optional variables
4052 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4053 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4054 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4055 CODE_COVERAGE_BRANCH_COVERAGE ?=
4056 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4057 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4058 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4059 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4060 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4061 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4062 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4063 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4064 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4065 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4066 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4067 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4068 CODE_COVERAGE_IGNORE_PATTERN ?=
4069
4070 GITIGNOREFILES ?=
4071 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4072
4073 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4074 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4075 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
4076  $(CODE_COVERAGE_OUTPUT_FILE);
4077 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4078 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4079 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
4080  $(CODE_COVERAGE_IGNORE_PATTERN);
4081 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4082 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4083 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4084 code_coverage_quiet = $(code_coverage_quiet_$(V))
4085 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4086 code_coverage_quiet_0 = --quiet
4087
4088 # sanitizes the test-name: replaces with underscores: dashes and dots
4089 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4090
4091 # Use recursive makes in order to ignore errors during check
4092 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4093
4094 # Capture code coverage data
4095 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4096
4097 # Hook rule executed before code-coverage-capture, overridable by the user
4098 code-coverage-capture-hook:
4099
4100 '"$CODE_COVERAGE_RULES_CLEAN"'
4101
4102 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4103 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4104
4105 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4106 '
4107
4108
4109
4110
4111
4112 # Initialize libtool
4113 DEPDIR="${am__leading_dot}deps"
4114
4115 ac_config_commands="$ac_config_commands depfiles"
4116
4117
4118 am_make=${MAKE-make}
4119 cat > confinc << 'END'
4120 am__doit:
4121         @echo this is the am__doit target
4122 .PHONY: am__doit
4123 END
4124 # If we don't find an include directive, just comment out the code.
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4126 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4127 am__include="#"
4128 am__quote=
4129 _am_result=none
4130 # First try GNU make style include.
4131 echo "include confinc" > confmf
4132 # Ignore all kinds of additional output from 'make'.
4133 case `$am_make -s -f confmf 2> /dev/null` in #(
4134 *the\ am__doit\ target*)
4135   am__include=include
4136   am__quote=
4137   _am_result=GNU
4138   ;;
4139 esac
4140 # Now try BSD make style include.
4141 if test "$am__include" = "#"; then
4142    echo '.include "confinc"' > confmf
4143    case `$am_make -s -f confmf 2> /dev/null` in #(
4144    *the\ am__doit\ target*)
4145      am__include=.include
4146      am__quote="\""
4147      _am_result=BSD
4148      ;;
4149    esac
4150 fi
4151
4152
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4154 $as_echo "$_am_result" >&6; }
4155 rm -f confinc confmf
4156
4157 # Check whether --enable-dependency-tracking was given.
4158 if test "${enable_dependency_tracking+set}" = set; then :
4159   enableval=$enable_dependency_tracking;
4160 fi
4161
4162 if test "x$enable_dependency_tracking" != xno; then
4163   am_depcomp="$ac_aux_dir/depcomp"
4164   AMDEPBACKSLASH='\'
4165   am__nodep='_no'
4166 fi
4167  if test "x$enable_dependency_tracking" != xno; then
4168   AMDEP_TRUE=
4169   AMDEP_FALSE='#'
4170 else
4171   AMDEP_TRUE='#'
4172   AMDEP_FALSE=
4173 fi
4174
4175
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 if test -n "$ac_tool_prefix"; then
4182   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_CC+:} false; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test -n "$CC"; then
4190   ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195   IFS=$as_save_IFS
4196   test -z "$as_dir" && as_dir=.
4197     for ac_exec_ext in '' $ac_executable_extensions; do
4198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201     break 2
4202   fi
4203 done
4204   done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219 fi
4220 if test -z "$ac_cv_prog_CC"; then
4221   ac_ct_CC=$CC
4222   # Extract the first word of "gcc", so it can be a program name with args.
4223 set dummy gcc; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   if test -n "$ac_ct_CC"; then
4230   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235   IFS=$as_save_IFS
4236   test -z "$as_dir" && as_dir=.
4237     for ac_exec_ext in '' $ac_executable_extensions; do
4238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239     ac_cv_prog_ac_ct_CC="gcc"
4240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241     break 2
4242   fi
4243 done
4244   done
4245 IFS=$as_save_IFS
4246
4247 fi
4248 fi
4249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4250 if test -n "$ac_ct_CC"; then
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4252 $as_echo "$ac_ct_CC" >&6; }
4253 else
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258   if test "x$ac_ct_CC" = x; then
4259     CC=""
4260   else
4261     case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4266 esac
4267     CC=$ac_ct_CC
4268   fi
4269 else
4270   CC="$ac_cv_prog_CC"
4271 fi
4272
4273 if test -z "$CC"; then
4274           if test -n "$ac_tool_prefix"; then
4275     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4276 set dummy ${ac_tool_prefix}cc; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if ${ac_cv_prog_CC+:} false; then :
4280   $as_echo_n "(cached) " >&6
4281 else
4282   if test -n "$CC"; then
4283   ac_cv_prog_CC="$CC" # Let the user override the test.
4284 else
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288   IFS=$as_save_IFS
4289   test -z "$as_dir" && as_dir=.
4290     for ac_exec_ext in '' $ac_executable_extensions; do
4291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292     ac_cv_prog_CC="${ac_tool_prefix}cc"
4293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294     break 2
4295   fi
4296 done
4297   done
4298 IFS=$as_save_IFS
4299
4300 fi
4301 fi
4302 CC=$ac_cv_prog_CC
4303 if test -n "$CC"; then
4304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4305 $as_echo "$CC" >&6; }
4306 else
4307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 $as_echo "no" >&6; }
4309 fi
4310
4311
4312   fi
4313 fi
4314 if test -z "$CC"; then
4315   # Extract the first word of "cc", so it can be a program name with args.
4316 set dummy cc; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_CC+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   if test -n "$CC"; then
4323   ac_cv_prog_CC="$CC" # Let the user override the test.
4324 else
4325   ac_prog_rejected=no
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331     for ac_exec_ext in '' $ac_executable_extensions; do
4332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4334        ac_prog_rejected=yes
4335        continue
4336      fi
4337     ac_cv_prog_CC="cc"
4338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339     break 2
4340   fi
4341 done
4342   done
4343 IFS=$as_save_IFS
4344
4345 if test $ac_prog_rejected = yes; then
4346   # We found a bogon in the path, so make sure we never use it.
4347   set dummy $ac_cv_prog_CC
4348   shift
4349   if test $# != 0; then
4350     # We chose a different compiler from the bogus one.
4351     # However, it has the same basename, so the bogon will be chosen
4352     # first if we set CC to just the basename; use the full file name.
4353     shift
4354     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4355   fi
4356 fi
4357 fi
4358 fi
4359 CC=$ac_cv_prog_CC
4360 if test -n "$CC"; then
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4362 $as_echo "$CC" >&6; }
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367
4368
4369 fi
4370 if test -z "$CC"; then
4371   if test -n "$ac_tool_prefix"; then
4372   for ac_prog in cl.exe
4373   do
4374     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_prog_CC+:} false; then :
4379   $as_echo_n "(cached) " >&6
4380 else
4381   if test -n "$CC"; then
4382   ac_cv_prog_CC="$CC" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389     for ac_exec_ext in '' $ac_executable_extensions; do
4390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396   done
4397 IFS=$as_save_IFS
4398
4399 fi
4400 fi
4401 CC=$ac_cv_prog_CC
4402 if test -n "$CC"; then
4403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4404 $as_echo "$CC" >&6; }
4405 else
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 fi
4409
4410
4411     test -n "$CC" && break
4412   done
4413 fi
4414 if test -z "$CC"; then
4415   ac_ct_CC=$CC
4416   for ac_prog in cl.exe
4417 do
4418   # Extract the first word of "$ac_prog", so it can be a program name with args.
4419 set dummy $ac_prog; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4423   $as_echo_n "(cached) " >&6
4424 else
4425   if test -n "$ac_ct_CC"; then
4426   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433     for ac_exec_ext in '' $ac_executable_extensions; do
4434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435     ac_cv_prog_ac_ct_CC="$ac_prog"
4436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440   done
4441 IFS=$as_save_IFS
4442
4443 fi
4444 fi
4445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4446 if test -n "$ac_ct_CC"; then
4447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4448 $as_echo "$ac_ct_CC" >&6; }
4449 else
4450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4452 fi
4453
4454
4455   test -n "$ac_ct_CC" && break
4456 done
4457
4458   if test "x$ac_ct_CC" = x; then
4459     CC=""
4460   else
4461     case $cross_compiling:$ac_tool_warned in
4462 yes:)
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4466 esac
4467     CC=$ac_ct_CC
4468   fi
4469 fi
4470
4471 fi
4472
4473
4474 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error $? "no acceptable C compiler found in \$PATH
4477 See \`config.log' for more details" "$LINENO" 5; }
4478
4479 # Provide some information about the compiler.
4480 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4481 set X $ac_compile
4482 ac_compiler=$2
4483 for ac_option in --version -v -V -qversion; do
4484   { { ac_try="$ac_compiler $ac_option >&5"
4485 case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4492   ac_status=$?
4493   if test -s conftest.err; then
4494     sed '10a\
4495 ... rest of stderr output deleted ...
4496          10q' conftest.err >conftest.er1
4497     cat conftest.er1 >&5
4498   fi
4499   rm -f conftest.er1 conftest.err
4500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4501   test $ac_status = 0; }
4502 done
4503
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h.  */
4506
4507 int
4508 main ()
4509 {
4510
4511   ;
4512   return 0;
4513 }
4514 _ACEOF
4515 ac_clean_files_save=$ac_clean_files
4516 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4517 # Try to create an executable without -o first, disregard a.out.
4518 # It will help us diagnose broken compilers, and finding out an intuition
4519 # of exeext.
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4521 $as_echo_n "checking whether the C compiler works... " >&6; }
4522 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4523
4524 # The possible output files:
4525 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4526
4527 ac_rmfiles=
4528 for ac_file in $ac_files
4529 do
4530   case $ac_file in
4531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4532     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4533   esac
4534 done
4535 rm -f $ac_rmfiles
4536
4537 if { { ac_try="$ac_link_default"
4538 case "(($ac_try" in
4539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540   *) ac_try_echo=$ac_try;;
4541 esac
4542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543 $as_echo "$ac_try_echo"; } >&5
4544   (eval "$ac_link_default") 2>&5
4545   ac_status=$?
4546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547   test $ac_status = 0; }; then :
4548   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4549 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4550 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4551 # so that the user can short-circuit this test for compilers unknown to
4552 # Autoconf.
4553 for ac_file in $ac_files ''
4554 do
4555   test -f "$ac_file" || continue
4556   case $ac_file in
4557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4558         ;;
4559     [ab].out )
4560         # We found the default executable, but exeext='' is most
4561         # certainly right.
4562         break;;
4563     *.* )
4564         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4565         then :; else
4566            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4567         fi
4568         # We set ac_cv_exeext here because the later test for it is not
4569         # safe: cross compilers may not add the suffix if given an `-o'
4570         # argument, so we may need to know it at that point already.
4571         # Even if this section looks crufty: it has the advantage of
4572         # actually working.
4573         break;;
4574     * )
4575         break;;
4576   esac
4577 done
4578 test "$ac_cv_exeext" = no && ac_cv_exeext=
4579
4580 else
4581   ac_file=''
4582 fi
4583 if test -z "$ac_file"; then :
4584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 $as_echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4588
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error 77 "C compiler cannot create executables
4592 See \`config.log' for more details" "$LINENO" 5; }
4593 else
4594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4595 $as_echo "yes" >&6; }
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4598 $as_echo_n "checking for C compiler default output file name... " >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4600 $as_echo "$ac_file" >&6; }
4601 ac_exeext=$ac_cv_exeext
4602
4603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4604 ac_clean_files=$ac_clean_files_save
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4606 $as_echo_n "checking for suffix of executables... " >&6; }
4607 if { { ac_try="$ac_link"
4608 case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614   (eval "$ac_link") 2>&5
4615   ac_status=$?
4616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617   test $ac_status = 0; }; then :
4618   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4619 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4620 # work properly (i.e., refer to `conftest.exe'), while it won't with
4621 # `rm'.
4622 for ac_file in conftest.exe conftest conftest.*; do
4623   test -f "$ac_file" || continue
4624   case $ac_file in
4625     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4626     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4627           break;;
4628     * ) break;;
4629   esac
4630 done
4631 else
4632   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4634 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4635 See \`config.log' for more details" "$LINENO" 5; }
4636 fi
4637 rm -f conftest conftest$ac_cv_exeext
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4639 $as_echo "$ac_cv_exeext" >&6; }
4640
4641 rm -f conftest.$ac_ext
4642 EXEEXT=$ac_cv_exeext
4643 ac_exeext=$EXEEXT
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h.  */
4646 #include <stdio.h>
4647 int
4648 main ()
4649 {
4650 FILE *f = fopen ("conftest.out", "w");
4651  return ferror (f) || fclose (f) != 0;
4652
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 ac_clean_files="$ac_clean_files conftest.out"
4658 # Check that the compiler produces executables we can run.  If not, either
4659 # the compiler is broken, or we cross compile.
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4661 $as_echo_n "checking whether we are cross compiling... " >&6; }
4662 if test "$cross_compiling" != yes; then
4663   { { ac_try="$ac_link"
4664 case "(($ac_try" in
4665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666   *) ac_try_echo=$ac_try;;
4667 esac
4668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669 $as_echo "$ac_try_echo"; } >&5
4670   (eval "$ac_link") 2>&5
4671   ac_status=$?
4672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673   test $ac_status = 0; }
4674   if { ac_try='./conftest$ac_cv_exeext'
4675   { { case "(($ac_try" in
4676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677   *) ac_try_echo=$ac_try;;
4678 esac
4679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4680 $as_echo "$ac_try_echo"; } >&5
4681   (eval "$ac_try") 2>&5
4682   ac_status=$?
4683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4684   test $ac_status = 0; }; }; then
4685     cross_compiling=no
4686   else
4687     if test "$cross_compiling" = maybe; then
4688         cross_compiling=yes
4689     else
4690         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692 as_fn_error $? "cannot run C compiled programs.
4693 If you meant to cross compile, use \`--host'.
4694 See \`config.log' for more details" "$LINENO" 5; }
4695     fi
4696   fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4699 $as_echo "$cross_compiling" >&6; }
4700
4701 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4702 ac_clean_files=$ac_clean_files_save
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4704 $as_echo_n "checking for suffix of object files... " >&6; }
4705 if ${ac_cv_objext+:} false; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h.  */
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.o conftest.obj
4720 if { { ac_try="$ac_compile"
4721 case "(($ac_try" in
4722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723   *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727   (eval "$ac_compile") 2>&5
4728   ac_status=$?
4729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730   test $ac_status = 0; }; then :
4731   for ac_file in conftest.o conftest.obj conftest.*; do
4732   test -f "$ac_file" || continue;
4733   case $ac_file in
4734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4735     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4736        break;;
4737   esac
4738 done
4739 else
4740   $as_echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745 as_fn_error $? "cannot compute suffix of object files: cannot compile
4746 See \`config.log' for more details" "$LINENO" 5; }
4747 fi
4748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4751 $as_echo "$ac_cv_objext" >&6; }
4752 OBJEXT=$ac_cv_objext
4753 ac_objext=$OBJEXT
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4756 if ${ac_cv_c_compiler_gnu+:} false; then :
4757   $as_echo_n "(cached) " >&6
4758 else
4759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h.  */
4761
4762 int
4763 main ()
4764 {
4765 #ifndef __GNUC__
4766        choke me
4767 #endif
4768
4769   ;
4770   return 0;
4771 }
4772 _ACEOF
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774   ac_compiler_gnu=yes
4775 else
4776   ac_compiler_gnu=no
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4780
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4784 if test $ac_compiler_gnu = yes; then
4785   GCC=yes
4786 else
4787   GCC=
4788 fi
4789 ac_test_CFLAGS=${CFLAGS+set}
4790 ac_save_CFLAGS=$CFLAGS
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4793 if ${ac_cv_prog_cc_g+:} false; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796   ac_save_c_werror_flag=$ac_c_werror_flag
4797    ac_c_werror_flag=yes
4798    ac_cv_prog_cc_g=no
4799    CFLAGS="-g"
4800    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h.  */
4802
4803 int
4804 main ()
4805 {
4806
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812   ac_cv_prog_cc_g=yes
4813 else
4814   CFLAGS=""
4815       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h.  */
4817
4818 int
4819 main ()
4820 {
4821
4822   ;
4823   return 0;
4824 }
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827
4828 else
4829   ac_c_werror_flag=$ac_save_c_werror_flag
4830          CFLAGS="-g"
4831          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h.  */
4833
4834 int
4835 main ()
4836 {
4837
4838   ;
4839   return 0;
4840 }
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843   ac_cv_prog_cc_g=yes
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 fi
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850    ac_c_werror_flag=$ac_save_c_werror_flag
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4853 $as_echo "$ac_cv_prog_cc_g" >&6; }
4854 if test "$ac_test_CFLAGS" = set; then
4855   CFLAGS=$ac_save_CFLAGS
4856 elif test $ac_cv_prog_cc_g = yes; then
4857   if test "$GCC" = yes; then
4858     CFLAGS="-g -O2"
4859   else
4860     CFLAGS="-g"
4861   fi
4862 else
4863   if test "$GCC" = yes; then
4864     CFLAGS="-O2"
4865   else
4866     CFLAGS=
4867   fi
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4871 if ${ac_cv_prog_cc_c89+:} false; then :
4872   $as_echo_n "(cached) " >&6
4873 else
4874   ac_cv_prog_cc_c89=no
4875 ac_save_CC=$CC
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h.  */
4878 #include <stdarg.h>
4879 #include <stdio.h>
4880 struct stat;
4881 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4882 struct buf { int x; };
4883 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4884 static char *e (p, i)
4885      char **p;
4886      int i;
4887 {
4888   return p[i];
4889 }
4890 static char *f (char * (*g) (char **, int), char **p, ...)
4891 {
4892   char *s;
4893   va_list v;
4894   va_start (v,p);
4895   s = g (p, va_arg (v,int));
4896   va_end (v);
4897   return s;
4898 }
4899
4900 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4901    function prototypes and stuff, but not '\xHH' hex character constants.
4902    These don't provoke an error unfortunately, instead are silently treated
4903    as 'x'.  The following induces an error, until -std is added to get
4904    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4905    array size at least.  It's necessary to write '\x00'==0 to get something
4906    that's true only with -std.  */
4907 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4908
4909 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4910    inside strings and character constants.  */
4911 #define FOO(x) 'x'
4912 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4913
4914 int test (int i, double x);
4915 struct s1 {int (*f) (int a);};
4916 struct s2 {int (*f) (double a);};
4917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4918 int argc;
4919 char **argv;
4920 int
4921 main ()
4922 {
4923 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4929         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4930 do
4931   CC="$ac_save_CC $ac_arg"
4932   if ac_fn_c_try_compile "$LINENO"; then :
4933   ac_cv_prog_cc_c89=$ac_arg
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext
4936   test "x$ac_cv_prog_cc_c89" != "xno" && break
4937 done
4938 rm -f conftest.$ac_ext
4939 CC=$ac_save_CC
4940
4941 fi
4942 # AC_CACHE_VAL
4943 case "x$ac_cv_prog_cc_c89" in
4944   x)
4945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4946 $as_echo "none needed" >&6; } ;;
4947   xno)
4948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4949 $as_echo "unsupported" >&6; } ;;
4950   *)
4951     CC="$CC $ac_cv_prog_cc_c89"
4952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4953 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4954 esac
4955 if test "x$ac_cv_prog_cc_c89" != xno; then :
4956
4957 fi
4958
4959 ac_ext=c
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4971 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4972 if ${am_cv_prog_cc_c_o+:} false; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977
4978 int
4979 main ()
4980 {
4981
4982   ;
4983   return 0;
4984 }
4985 _ACEOF
4986   # Make sure it works both with $CC and with simple cc.
4987   # Following AC_PROG_CC_C_O, we do the test twice because some
4988   # compilers refuse to overwrite an existing .o file with -o,
4989   # though they will create one.
4990   am_cv_prog_cc_c_o=yes
4991   for am_i in 1 2; do
4992     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4993    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4994    ac_status=$?
4995    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996    (exit $ac_status); } \
4997          && test -f conftest2.$ac_objext; then
4998       : OK
4999     else
5000       am_cv_prog_cc_c_o=no
5001       break
5002     fi
5003   done
5004   rm -f core conftest*
5005   unset am_i
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5008 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5009 if test "$am_cv_prog_cc_c_o" != yes; then
5010    # Losing compiler, so override with the script.
5011    # FIXME: It is wrong to rewrite CC.
5012    # But if we don't then we get into trouble of one sort or another.
5013    # A longer-term fix would be to have automake use am__CC in this case,
5014    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5015    CC="$am_aux_dir/compile $CC"
5016 fi
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
5023
5024 depcc="$CC"   am_compiler_list=
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5027 $as_echo_n "checking dependency style of $depcc... " >&6; }
5028 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5029   $as_echo_n "(cached) " >&6
5030 else
5031   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5032   # We make a subdir and do the tests there.  Otherwise we can end up
5033   # making bogus files that we don't know about and never remove.  For
5034   # instance it was reported that on HP-UX the gcc test will end up
5035   # making a dummy file named 'D' -- because '-MD' means "put the output
5036   # in D".
5037   rm -rf conftest.dir
5038   mkdir conftest.dir
5039   # Copy depcomp to subdir because otherwise we won't find it if we're
5040   # using a relative directory.
5041   cp "$am_depcomp" conftest.dir
5042   cd conftest.dir
5043   # We will build objects and dependencies in a subdirectory because
5044   # it helps to detect inapplicable dependency modes.  For instance
5045   # both Tru64's cc and ICC support -MD to output dependencies as a
5046   # side effect of compilation, but ICC will put the dependencies in
5047   # the current directory while Tru64 will put them in the object
5048   # directory.
5049   mkdir sub
5050
5051   am_cv_CC_dependencies_compiler_type=none
5052   if test "$am_compiler_list" = ""; then
5053      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5054   fi
5055   am__universal=false
5056   case " $depcc " in #(
5057      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5058      esac
5059
5060   for depmode in $am_compiler_list; do
5061     # Setup a source with many dependencies, because some compilers
5062     # like to wrap large dependency lists on column 80 (with \), and
5063     # we should not choose a depcomp mode which is confused by this.
5064     #
5065     # We need to recreate these files for each test, as the compiler may
5066     # overwrite some of them when testing with obscure command lines.
5067     # This happens at least with the AIX C compiler.
5068     : > sub/conftest.c
5069     for i in 1 2 3 4 5 6; do
5070       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5071       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5072       # Solaris 10 /bin/sh.
5073       echo '/* dummy */' > sub/conftst$i.h
5074     done
5075     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5076
5077     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5078     # mode.  It turns out that the SunPro C++ compiler does not properly
5079     # handle '-M -o', and we need to detect this.  Also, some Intel
5080     # versions had trouble with output in subdirs.
5081     am__obj=sub/conftest.${OBJEXT-o}
5082     am__minus_obj="-o $am__obj"
5083     case $depmode in
5084     gcc)
5085       # This depmode causes a compiler race in universal mode.
5086       test "$am__universal" = false || continue
5087       ;;
5088     nosideeffect)
5089       # After this tag, mechanisms are not by side-effect, so they'll
5090       # only be used when explicitly requested.
5091       if test "x$enable_dependency_tracking" = xyes; then
5092         continue
5093       else
5094         break
5095       fi
5096       ;;
5097     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5098       # This compiler won't grok '-c -o', but also, the minuso test has
5099       # not run yet.  These depmodes are late enough in the game, and
5100       # so weak that their functioning should not be impacted.
5101       am__obj=conftest.${OBJEXT-o}
5102       am__minus_obj=
5103       ;;
5104     none) break ;;
5105     esac
5106     if depmode=$depmode \
5107        source=sub/conftest.c object=$am__obj \
5108        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5109        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5110          >/dev/null 2>conftest.err &&
5111        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5112        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5113        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5114        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5115       # icc doesn't choke on unknown options, it will just issue warnings
5116       # or remarks (even with -Werror).  So we grep stderr for any message
5117       # that says an option was ignored or not supported.
5118       # When given -MP, icc 7.0 and 7.1 complain thusly:
5119       #   icc: Command line warning: ignoring option '-M'; no argument required
5120       # The diagnosis changed in icc 8.0:
5121       #   icc: Command line remark: option '-MP' not supported
5122       if (grep 'ignoring option' conftest.err ||
5123           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5124         am_cv_CC_dependencies_compiler_type=$depmode
5125         break
5126       fi
5127     fi
5128   done
5129
5130   cd ..
5131   rm -rf conftest.dir
5132 else
5133   am_cv_CC_dependencies_compiler_type=none
5134 fi
5135
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5138 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5139 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5140
5141  if
5142   test "x$enable_dependency_tracking" != xno \
5143   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5144   am__fastdepCC_TRUE=
5145   am__fastdepCC_FALSE='#'
5146 else
5147   am__fastdepCC_TRUE='#'
5148   am__fastdepCC_FALSE=
5149 fi
5150
5151
5152
5153 if test -n "$ac_tool_prefix"; then
5154   for ac_prog in ar lib "link -lib"
5155   do
5156     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_AR+:} false; then :
5161   $as_echo_n "(cached) " >&6
5162 else
5163   if test -n "$AR"; then
5164   ac_cv_prog_AR="$AR" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169   IFS=$as_save_IFS
5170   test -z "$as_dir" && as_dir=.
5171     for ac_exec_ext in '' $ac_executable_extensions; do
5172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175     break 2
5176   fi
5177 done
5178   done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 AR=$ac_cv_prog_AR
5184 if test -n "$AR"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5186 $as_echo "$AR" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193     test -n "$AR" && break
5194   done
5195 fi
5196 if test -z "$AR"; then
5197   ac_ct_AR=$AR
5198   for ac_prog in ar lib "link -lib"
5199 do
5200   # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5205   $as_echo_n "(cached) " >&6
5206 else
5207   if test -n "$ac_ct_AR"; then
5208   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215     for ac_exec_ext in '' $ac_executable_extensions; do
5216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217     ac_cv_prog_ac_ct_AR="$ac_prog"
5218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222   done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5228 if test -n "$ac_ct_AR"; then
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5230 $as_echo "$ac_ct_AR" >&6; }
5231 else
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237   test -n "$ac_ct_AR" && break
5238 done
5239
5240   if test "x$ac_ct_AR" = x; then
5241     AR="false"
5242   else
5243     case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249     AR=$ac_ct_AR
5250   fi
5251 fi
5252
5253 : ${AR=ar}
5254
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5256 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5257 if ${am_cv_ar_interface+:} false; then :
5258   $as_echo_n "(cached) " >&6
5259 else
5260   ac_ext=c
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5265
5266    am_cv_ar_interface=ar
5267    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h.  */
5269 int some_variable = 0;
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5273       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5274   (eval $am_ar_try) 2>&5
5275   ac_status=$?
5276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5277   test $ac_status = 0; }
5278       if test "$ac_status" -eq 0; then
5279         am_cv_ar_interface=ar
5280       else
5281         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5282         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5283   (eval $am_ar_try) 2>&5
5284   ac_status=$?
5285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286   test $ac_status = 0; }
5287         if test "$ac_status" -eq 0; then
5288           am_cv_ar_interface=lib
5289         else
5290           am_cv_ar_interface=unknown
5291         fi
5292       fi
5293       rm -f conftest.lib libconftest.a
5294
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297    ac_ext=c
5298 ac_cpp='$CPP $CPPFLAGS'
5299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5305 $as_echo "$am_cv_ar_interface" >&6; }
5306
5307 case $am_cv_ar_interface in
5308 ar)
5309   ;;
5310 lib)
5311   # Microsoft lib, so override with the ar-lib wrapper script.
5312   # FIXME: It is wrong to rewrite AR.
5313   # But if we don't then we get into trouble of one sort or another.
5314   # A longer-term fix would be to have automake use am__AR in this case,
5315   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5316   # similar.
5317   AR="$am_aux_dir/ar-lib $AR"
5318   ;;
5319 unknown)
5320   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5321   ;;
5322 esac
5323
5324
5325 case `pwd` in
5326   *\ * | *\     *)
5327     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5328 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5329 esac
5330
5331
5332
5333 macro_version='2.4.6'
5334 macro_revision='2.4.6'
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348 ltmain=$ac_aux_dir/ltmain.sh
5349
5350 # Make sure we can run config.sub.
5351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5352   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5355 $as_echo_n "checking build system type... " >&6; }
5356 if ${ac_cv_build+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   ac_build_alias=$build_alias
5360 test "x$ac_build_alias" = x &&
5361   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5362 test "x$ac_build_alias" = x &&
5363   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5364 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5365   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5366
5367 fi
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5369 $as_echo "$ac_cv_build" >&6; }
5370 case $ac_cv_build in
5371 *-*-*) ;;
5372 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5373 esac
5374 build=$ac_cv_build
5375 ac_save_IFS=$IFS; IFS='-'
5376 set x $ac_cv_build
5377 shift
5378 build_cpu=$1
5379 build_vendor=$2
5380 shift; shift
5381 # Remember, the first character of IFS is used to create $*,
5382 # except with old shells:
5383 build_os=$*
5384 IFS=$ac_save_IFS
5385 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5386
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5389 $as_echo_n "checking host system type... " >&6; }
5390 if ${ac_cv_host+:} false; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   if test "x$host_alias" = x; then
5394   ac_cv_host=$ac_cv_build
5395 else
5396   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5397     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5398 fi
5399
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5402 $as_echo "$ac_cv_host" >&6; }
5403 case $ac_cv_host in
5404 *-*-*) ;;
5405 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5406 esac
5407 host=$ac_cv_host
5408 ac_save_IFS=$IFS; IFS='-'
5409 set x $ac_cv_host
5410 shift
5411 host_cpu=$1
5412 host_vendor=$2
5413 shift; shift
5414 # Remember, the first character of IFS is used to create $*,
5415 # except with old shells:
5416 host_os=$*
5417 IFS=$ac_save_IFS
5418 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5419
5420
5421 # Backslashify metacharacters that are still active within
5422 # double-quoted strings.
5423 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5424
5425 # Same as above, but do not quote variable references.
5426 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5427
5428 # Sed substitution to delay expansion of an escaped shell variable in a
5429 # double_quote_subst'ed string.
5430 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5431
5432 # Sed substitution to delay expansion of an escaped single quote.
5433 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5434
5435 # Sed substitution to avoid accidental globbing in evaled expressions
5436 no_glob_subst='s/\*/\\\*/g'
5437
5438 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5439 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5440 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5443 $as_echo_n "checking how to print strings... " >&6; }
5444 # Test print first, because it will be a builtin if present.
5445 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5446    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5447   ECHO='print -r --'
5448 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5449   ECHO='printf %s\n'
5450 else
5451   # Use this function as a fallback that always works.
5452   func_fallback_echo ()
5453   {
5454     eval 'cat <<_LTECHO_EOF
5455 $1
5456 _LTECHO_EOF'
5457   }
5458   ECHO='func_fallback_echo'
5459 fi
5460
5461 # func_echo_all arg...
5462 # Invoke $ECHO with all args, space-separated.
5463 func_echo_all ()
5464 {
5465     $ECHO ""
5466 }
5467
5468 case $ECHO in
5469   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5470 $as_echo "printf" >&6; } ;;
5471   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5472 $as_echo "print -r" >&6; } ;;
5473   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5474 $as_echo "cat" >&6; } ;;
5475 esac
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5491 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5492 if ${ac_cv_path_SED+:} false; then :
5493   $as_echo_n "(cached) " >&6
5494 else
5495             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5496      for ac_i in 1 2 3 4 5 6 7; do
5497        ac_script="$ac_script$as_nl$ac_script"
5498      done
5499      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5500      { ac_script=; unset ac_script;}
5501      if test -z "$SED"; then
5502   ac_path_SED_found=false
5503   # Loop through the user's path and test for each of PROGNAME-LIST
5504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_prog in sed gsed; do
5510     for ac_exec_ext in '' $ac_executable_extensions; do
5511       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5512       as_fn_executable_p "$ac_path_SED" || continue
5513 # Check for GNU ac_path_SED and select it if it is found.
5514   # Check for GNU $ac_path_SED
5515 case `"$ac_path_SED" --version 2>&1` in
5516 *GNU*)
5517   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5518 *)
5519   ac_count=0
5520   $as_echo_n 0123456789 >"conftest.in"
5521   while :
5522   do
5523     cat "conftest.in" "conftest.in" >"conftest.tmp"
5524     mv "conftest.tmp" "conftest.in"
5525     cp "conftest.in" "conftest.nl"
5526     $as_echo '' >> "conftest.nl"
5527     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5528     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5529     as_fn_arith $ac_count + 1 && ac_count=$as_val
5530     if test $ac_count -gt ${ac_path_SED_max-0}; then
5531       # Best one so far, save it but keep looking for a better one
5532       ac_cv_path_SED="$ac_path_SED"
5533       ac_path_SED_max=$ac_count
5534     fi
5535     # 10*(2^10) chars as input seems more than enough
5536     test $ac_count -gt 10 && break
5537   done
5538   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5539 esac
5540
5541       $ac_path_SED_found && break 3
5542     done
5543   done
5544   done
5545 IFS=$as_save_IFS
5546   if test -z "$ac_cv_path_SED"; then
5547     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5548   fi
5549 else
5550   ac_cv_path_SED=$SED
5551 fi
5552
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5555 $as_echo "$ac_cv_path_SED" >&6; }
5556  SED="$ac_cv_path_SED"
5557   rm -f conftest.sed
5558
5559 test -z "$SED" && SED=sed
5560 Xsed="$SED -e 1s/^X//"
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5573 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5574 if ${ac_cv_path_GREP+:} false; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577   if test -z "$GREP"; then
5578   ac_path_GREP_found=false
5579   # Loop through the user's path and test for each of PROGNAME-LIST
5580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_prog in grep ggrep; do
5586     for ac_exec_ext in '' $ac_executable_extensions; do
5587       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5588       as_fn_executable_p "$ac_path_GREP" || continue
5589 # Check for GNU ac_path_GREP and select it if it is found.
5590   # Check for GNU $ac_path_GREP
5591 case `"$ac_path_GREP" --version 2>&1` in
5592 *GNU*)
5593   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5594 *)
5595   ac_count=0
5596   $as_echo_n 0123456789 >"conftest.in"
5597   while :
5598   do
5599     cat "conftest.in" "conftest.in" >"conftest.tmp"
5600     mv "conftest.tmp" "conftest.in"
5601     cp "conftest.in" "conftest.nl"
5602     $as_echo 'GREP' >> "conftest.nl"
5603     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5605     as_fn_arith $ac_count + 1 && ac_count=$as_val
5606     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5607       # Best one so far, save it but keep looking for a better one
5608       ac_cv_path_GREP="$ac_path_GREP"
5609       ac_path_GREP_max=$ac_count
5610     fi
5611     # 10*(2^10) chars as input seems more than enough
5612     test $ac_count -gt 10 && break
5613   done
5614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5615 esac
5616
5617       $ac_path_GREP_found && break 3
5618     done
5619   done
5620   done
5621 IFS=$as_save_IFS
5622   if test -z "$ac_cv_path_GREP"; then
5623     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5624   fi
5625 else
5626   ac_cv_path_GREP=$GREP
5627 fi
5628
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5631 $as_echo "$ac_cv_path_GREP" >&6; }
5632  GREP="$ac_cv_path_GREP"
5633
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5636 $as_echo_n "checking for egrep... " >&6; }
5637 if ${ac_cv_path_EGREP+:} false; then :
5638   $as_echo_n "(cached) " >&6
5639 else
5640   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5641    then ac_cv_path_EGREP="$GREP -E"
5642    else
5643      if test -z "$EGREP"; then
5644   ac_path_EGREP_found=false
5645   # Loop through the user's path and test for each of PROGNAME-LIST
5646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5648 do
5649   IFS=$as_save_IFS
5650   test -z "$as_dir" && as_dir=.
5651     for ac_prog in egrep; do
5652     for ac_exec_ext in '' $ac_executable_extensions; do
5653       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5654       as_fn_executable_p "$ac_path_EGREP" || continue
5655 # Check for GNU ac_path_EGREP and select it if it is found.
5656   # Check for GNU $ac_path_EGREP
5657 case `"$ac_path_EGREP" --version 2>&1` in
5658 *GNU*)
5659   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5660 *)
5661   ac_count=0
5662   $as_echo_n 0123456789 >"conftest.in"
5663   while :
5664   do
5665     cat "conftest.in" "conftest.in" >"conftest.tmp"
5666     mv "conftest.tmp" "conftest.in"
5667     cp "conftest.in" "conftest.nl"
5668     $as_echo 'EGREP' >> "conftest.nl"
5669     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5671     as_fn_arith $ac_count + 1 && ac_count=$as_val
5672     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5673       # Best one so far, save it but keep looking for a better one
5674       ac_cv_path_EGREP="$ac_path_EGREP"
5675       ac_path_EGREP_max=$ac_count
5676     fi
5677     # 10*(2^10) chars as input seems more than enough
5678     test $ac_count -gt 10 && break
5679   done
5680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5681 esac
5682
5683       $ac_path_EGREP_found && break 3
5684     done
5685   done
5686   done
5687 IFS=$as_save_IFS
5688   if test -z "$ac_cv_path_EGREP"; then
5689     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5690   fi
5691 else
5692   ac_cv_path_EGREP=$EGREP
5693 fi
5694
5695    fi
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5698 $as_echo "$ac_cv_path_EGREP" >&6; }
5699  EGREP="$ac_cv_path_EGREP"
5700
5701
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5703 $as_echo_n "checking for fgrep... " >&6; }
5704 if ${ac_cv_path_FGREP+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5708    then ac_cv_path_FGREP="$GREP -F"
5709    else
5710      if test -z "$FGREP"; then
5711   ac_path_FGREP_found=false
5712   # Loop through the user's path and test for each of PROGNAME-LIST
5713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718     for ac_prog in fgrep; do
5719     for ac_exec_ext in '' $ac_executable_extensions; do
5720       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5721       as_fn_executable_p "$ac_path_FGREP" || continue
5722 # Check for GNU ac_path_FGREP and select it if it is found.
5723   # Check for GNU $ac_path_FGREP
5724 case `"$ac_path_FGREP" --version 2>&1` in
5725 *GNU*)
5726   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5727 *)
5728   ac_count=0
5729   $as_echo_n 0123456789 >"conftest.in"
5730   while :
5731   do
5732     cat "conftest.in" "conftest.in" >"conftest.tmp"
5733     mv "conftest.tmp" "conftest.in"
5734     cp "conftest.in" "conftest.nl"
5735     $as_echo 'FGREP' >> "conftest.nl"
5736     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5737     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5738     as_fn_arith $ac_count + 1 && ac_count=$as_val
5739     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5740       # Best one so far, save it but keep looking for a better one
5741       ac_cv_path_FGREP="$ac_path_FGREP"
5742       ac_path_FGREP_max=$ac_count
5743     fi
5744     # 10*(2^10) chars as input seems more than enough
5745     test $ac_count -gt 10 && break
5746   done
5747   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5748 esac
5749
5750       $ac_path_FGREP_found && break 3
5751     done
5752   done
5753   done
5754 IFS=$as_save_IFS
5755   if test -z "$ac_cv_path_FGREP"; then
5756     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5757   fi
5758 else
5759   ac_cv_path_FGREP=$FGREP
5760 fi
5761
5762    fi
5763 fi
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5765 $as_echo "$ac_cv_path_FGREP" >&6; }
5766  FGREP="$ac_cv_path_FGREP"
5767
5768
5769 test -z "$GREP" && GREP=grep
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 # Check whether --with-gnu-ld was given.
5790 if test "${with_gnu_ld+set}" = set; then :
5791   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5792 else
5793   with_gnu_ld=no
5794 fi
5795
5796 ac_prog=ld
5797 if test yes = "$GCC"; then
5798   # Check if gcc -print-prog-name=ld gives a path.
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5800 $as_echo_n "checking for ld used by $CC... " >&6; }
5801   case $host in
5802   *-*-mingw*)
5803     # gcc leaves a trailing carriage return, which upsets mingw
5804     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5805   *)
5806     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5807   esac
5808   case $ac_prog in
5809     # Accept absolute paths.
5810     [\\/]* | ?:[\\/]*)
5811       re_direlt='/[^/][^/]*/\.\./'
5812       # Canonicalize the pathname of ld
5813       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5814       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5815         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5816       done
5817       test -z "$LD" && LD=$ac_prog
5818       ;;
5819   "")
5820     # If it fails, then pretend we aren't using GCC.
5821     ac_prog=ld
5822     ;;
5823   *)
5824     # If it is relative, then search for the first ld in PATH.
5825     with_gnu_ld=unknown
5826     ;;
5827   esac
5828 elif test yes = "$with_gnu_ld"; then
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5830 $as_echo_n "checking for GNU ld... " >&6; }
5831 else
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5833 $as_echo_n "checking for non-GNU ld... " >&6; }
5834 fi
5835 if ${lt_cv_path_LD+:} false; then :
5836   $as_echo_n "(cached) " >&6
5837 else
5838   if test -z "$LD"; then
5839   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5840   for ac_dir in $PATH; do
5841     IFS=$lt_save_ifs
5842     test -z "$ac_dir" && ac_dir=.
5843     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5844       lt_cv_path_LD=$ac_dir/$ac_prog
5845       # Check to see if the program is GNU ld.  I'd rather use --version,
5846       # but apparently some variants of GNU ld only accept -v.
5847       # Break only if it was the GNU/non-GNU ld that we prefer.
5848       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5849       *GNU* | *'with BFD'*)
5850         test no != "$with_gnu_ld" && break
5851         ;;
5852       *)
5853         test yes != "$with_gnu_ld" && break
5854         ;;
5855       esac
5856     fi
5857   done
5858   IFS=$lt_save_ifs
5859 else
5860   lt_cv_path_LD=$LD # Let the user override the test with a path.
5861 fi
5862 fi
5863
5864 LD=$lt_cv_path_LD
5865 if test -n "$LD"; then
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5867 $as_echo "$LD" >&6; }
5868 else
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5874 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5875 if ${lt_cv_prog_gnu_ld+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5879 case `$LD -v 2>&1 </dev/null` in
5880 *GNU* | *'with BFD'*)
5881   lt_cv_prog_gnu_ld=yes
5882   ;;
5883 *)
5884   lt_cv_prog_gnu_ld=no
5885   ;;
5886 esac
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5889 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5890 with_gnu_ld=$lt_cv_prog_gnu_ld
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5901 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5902 if ${lt_cv_path_NM+:} false; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   if test -n "$NM"; then
5906   # Let the user override the test.
5907   lt_cv_path_NM=$NM
5908 else
5909   lt_nm_to_check=${ac_tool_prefix}nm
5910   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5911     lt_nm_to_check="$lt_nm_to_check nm"
5912   fi
5913   for lt_tmp_nm in $lt_nm_to_check; do
5914     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5915     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5916       IFS=$lt_save_ifs
5917       test -z "$ac_dir" && ac_dir=.
5918       tmp_nm=$ac_dir/$lt_tmp_nm
5919       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5920         # Check to see if the nm accepts a BSD-compat flag.
5921         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5922         #   nm: unknown option "B" ignored
5923         # Tru64's nm complains that /dev/null is an invalid object file
5924         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5925         case $build_os in
5926         mingw*) lt_bad_file=conftest.nm/nofile ;;
5927         *) lt_bad_file=/dev/null ;;
5928         esac
5929         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5930         *$lt_bad_file* | *'Invalid file or object type'*)
5931           lt_cv_path_NM="$tmp_nm -B"
5932           break 2
5933           ;;
5934         *)
5935           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5936           */dev/null*)
5937             lt_cv_path_NM="$tmp_nm -p"
5938             break 2
5939             ;;
5940           *)
5941             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5942             continue # so that we can try to find one that supports BSD flags
5943             ;;
5944           esac
5945           ;;
5946         esac
5947       fi
5948     done
5949     IFS=$lt_save_ifs
5950   done
5951   : ${lt_cv_path_NM=no}
5952 fi
5953 fi
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5955 $as_echo "$lt_cv_path_NM" >&6; }
5956 if test no != "$lt_cv_path_NM"; then
5957   NM=$lt_cv_path_NM
5958 else
5959   # Didn't find any BSD compatible name lister, look for dumpbin.
5960   if test -n "$DUMPBIN"; then :
5961     # Let the user override the test.
5962   else
5963     if test -n "$ac_tool_prefix"; then
5964   for ac_prog in dumpbin "link -dump"
5965   do
5966     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if ${ac_cv_prog_DUMPBIN+:} false; then :
5971   $as_echo_n "(cached) " >&6
5972 else
5973   if test -n "$DUMPBIN"; then
5974   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981     for ac_exec_ext in '' $ac_executable_extensions; do
5982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988   done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 DUMPBIN=$ac_cv_prog_DUMPBIN
5994 if test -n "$DUMPBIN"; then
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5996 $as_echo "$DUMPBIN" >&6; }
5997 else
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001
6002
6003     test -n "$DUMPBIN" && break
6004   done
6005 fi
6006 if test -z "$DUMPBIN"; then
6007   ac_ct_DUMPBIN=$DUMPBIN
6008   for ac_prog in dumpbin "link -dump"
6009 do
6010   # Extract the first word of "$ac_prog", so it can be a program name with args.
6011 set dummy $ac_prog; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6015   $as_echo_n "(cached) " >&6
6016 else
6017   if test -n "$ac_ct_DUMPBIN"; then
6018   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023   IFS=$as_save_IFS
6024   test -z "$as_dir" && as_dir=.
6025     for ac_exec_ext in '' $ac_executable_extensions; do
6026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029     break 2
6030   fi
6031 done
6032   done
6033 IFS=$as_save_IFS
6034
6035 fi
6036 fi
6037 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6038 if test -n "$ac_ct_DUMPBIN"; then
6039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6040 $as_echo "$ac_ct_DUMPBIN" >&6; }
6041 else
6042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046
6047   test -n "$ac_ct_DUMPBIN" && break
6048 done
6049
6050   if test "x$ac_ct_DUMPBIN" = x; then
6051     DUMPBIN=":"
6052   else
6053     case $cross_compiling:$ac_tool_warned in
6054 yes:)
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6057 ac_tool_warned=yes ;;
6058 esac
6059     DUMPBIN=$ac_ct_DUMPBIN
6060   fi
6061 fi
6062
6063     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6064     *COFF*)
6065       DUMPBIN="$DUMPBIN -symbols -headers"
6066       ;;
6067     *)
6068       DUMPBIN=:
6069       ;;
6070     esac
6071   fi
6072
6073   if test : != "$DUMPBIN"; then
6074     NM=$DUMPBIN
6075   fi
6076 fi
6077 test -z "$NM" && NM=nm
6078
6079
6080
6081
6082
6083
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6085 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6086 if ${lt_cv_nm_interface+:} false; then :
6087   $as_echo_n "(cached) " >&6
6088 else
6089   lt_cv_nm_interface="BSD nm"
6090   echo "int some_variable = 0;" > conftest.$ac_ext
6091   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6092   (eval "$ac_compile" 2>conftest.err)
6093   cat conftest.err >&5
6094   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6095   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6096   cat conftest.err >&5
6097   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6098   cat conftest.out >&5
6099   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6100     lt_cv_nm_interface="MS dumpbin"
6101   fi
6102   rm -f conftest*
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6105 $as_echo "$lt_cv_nm_interface" >&6; }
6106
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6108 $as_echo_n "checking whether ln -s works... " >&6; }
6109 LN_S=$as_ln_s
6110 if test "$LN_S" = "ln -s"; then
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6112 $as_echo "yes" >&6; }
6113 else
6114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6115 $as_echo "no, using $LN_S" >&6; }
6116 fi
6117
6118 # find the maximum length of command line arguments
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6120 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6121 if ${lt_cv_sys_max_cmd_len+:} false; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124     i=0
6125   teststring=ABCD
6126
6127   case $build_os in
6128   msdosdjgpp*)
6129     # On DJGPP, this test can blow up pretty badly due to problems in libc
6130     # (any single argument exceeding 2000 bytes causes a buffer overrun
6131     # during glob expansion).  Even if it were fixed, the result of this
6132     # check would be larger than it should be.
6133     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6134     ;;
6135
6136   gnu*)
6137     # Under GNU Hurd, this test is not required because there is
6138     # no limit to the length of command line arguments.
6139     # Libtool will interpret -1 as no limit whatsoever
6140     lt_cv_sys_max_cmd_len=-1;
6141     ;;
6142
6143   cygwin* | mingw* | cegcc*)
6144     # On Win9x/ME, this test blows up -- it succeeds, but takes
6145     # about 5 minutes as the teststring grows exponentially.
6146     # Worse, since 9x/ME are not pre-emptively multitasking,
6147     # you end up with a "frozen" computer, even though with patience
6148     # the test eventually succeeds (with a max line length of 256k).
6149     # Instead, let's just punt: use the minimum linelength reported by
6150     # all of the supported platforms: 8192 (on NT/2K/XP).
6151     lt_cv_sys_max_cmd_len=8192;
6152     ;;
6153
6154   mint*)
6155     # On MiNT this can take a long time and run out of memory.
6156     lt_cv_sys_max_cmd_len=8192;
6157     ;;
6158
6159   amigaos*)
6160     # On AmigaOS with pdksh, this test takes hours, literally.
6161     # So we just punt and use a minimum line length of 8192.
6162     lt_cv_sys_max_cmd_len=8192;
6163     ;;
6164
6165   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6166     # This has been around since 386BSD, at least.  Likely further.
6167     if test -x /sbin/sysctl; then
6168       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6169     elif test -x /usr/sbin/sysctl; then
6170       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6171     else
6172       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6173     fi
6174     # And add a safety zone
6175     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6176     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6177     ;;
6178
6179   interix*)
6180     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6181     lt_cv_sys_max_cmd_len=196608
6182     ;;
6183
6184   os2*)
6185     # The test takes a long time on OS/2.
6186     lt_cv_sys_max_cmd_len=8192
6187     ;;
6188
6189   osf*)
6190     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6191     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6192     # nice to cause kernel panics so lets avoid the loop below.
6193     # First set a reasonable default.
6194     lt_cv_sys_max_cmd_len=16384
6195     #
6196     if test -x /sbin/sysconfig; then
6197       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6198         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6199       esac
6200     fi
6201     ;;
6202   sco3.2v5*)
6203     lt_cv_sys_max_cmd_len=102400
6204     ;;
6205   sysv5* | sco5v6* | sysv4.2uw2*)
6206     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6207     if test -n "$kargmax"; then
6208       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6209     else
6210       lt_cv_sys_max_cmd_len=32768
6211     fi
6212     ;;
6213   *)
6214     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6215     if test -n "$lt_cv_sys_max_cmd_len" && \
6216        test undefined != "$lt_cv_sys_max_cmd_len"; then
6217       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6218       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6219     else
6220       # Make teststring a little bigger before we do anything with it.
6221       # a 1K string should be a reasonable start.
6222       for i in 1 2 3 4 5 6 7 8; do
6223         teststring=$teststring$teststring
6224       done
6225       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6226       # If test is not a shell built-in, we'll probably end up computing a
6227       # maximum length that is only half of the actual maximum length, but
6228       # we can't tell.
6229       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6230                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6231               test 17 != "$i" # 1/2 MB should be enough
6232       do
6233         i=`expr $i + 1`
6234         teststring=$teststring$teststring
6235       done
6236       # Only check the string length outside the loop.
6237       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6238       teststring=
6239       # Add a significant safety factor because C++ compilers can tack on
6240       # massive amounts of additional arguments before passing them to the
6241       # linker.  It appears as though 1/2 is a usable value.
6242       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6243     fi
6244     ;;
6245   esac
6246
6247 fi
6248
6249 if test -n "$lt_cv_sys_max_cmd_len"; then
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6251 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6252 else
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6254 $as_echo "none" >&6; }
6255 fi
6256 max_cmd_len=$lt_cv_sys_max_cmd_len
6257
6258
6259
6260
6261
6262
6263 : ${CP="cp -f"}
6264 : ${MV="mv -f"}
6265 : ${RM="rm -f"}
6266
6267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6268   lt_unset=unset
6269 else
6270   lt_unset=false
6271 fi
6272
6273
6274
6275
6276
6277 # test EBCDIC or ASCII
6278 case `echo X|tr X '\101'` in
6279  A) # ASCII based system
6280     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6281   lt_SP2NL='tr \040 \012'
6282   lt_NL2SP='tr \015\012 \040\040'
6283   ;;
6284  *) # EBCDIC based system
6285   lt_SP2NL='tr \100 \n'
6286   lt_NL2SP='tr \r\n \100\100'
6287   ;;
6288 esac
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6299 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6300 if ${lt_cv_to_host_file_cmd+:} false; then :
6301   $as_echo_n "(cached) " >&6
6302 else
6303   case $host in
6304   *-*-mingw* )
6305     case $build in
6306       *-*-mingw* ) # actually msys
6307         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6308         ;;
6309       *-*-cygwin* )
6310         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6311         ;;
6312       * ) # otherwise, assume *nix
6313         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6314         ;;
6315     esac
6316     ;;
6317   *-*-cygwin* )
6318     case $build in
6319       *-*-mingw* ) # actually msys
6320         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6321         ;;
6322       *-*-cygwin* )
6323         lt_cv_to_host_file_cmd=func_convert_file_noop
6324         ;;
6325       * ) # otherwise, assume *nix
6326         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6327         ;;
6328     esac
6329     ;;
6330   * ) # unhandled hosts (and "normal" native builds)
6331     lt_cv_to_host_file_cmd=func_convert_file_noop
6332     ;;
6333 esac
6334
6335 fi
6336
6337 to_host_file_cmd=$lt_cv_to_host_file_cmd
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6339 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6340
6341
6342
6343
6344
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6346 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6347 if ${lt_cv_to_tool_file_cmd+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350   #assume ordinary cross tools, or native build.
6351 lt_cv_to_tool_file_cmd=func_convert_file_noop
6352 case $host in
6353   *-*-mingw* )
6354     case $build in
6355       *-*-mingw* ) # actually msys
6356         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6357         ;;
6358     esac
6359     ;;
6360 esac
6361
6362 fi
6363
6364 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6366 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6367
6368
6369
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6373 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6374 if ${lt_cv_ld_reload_flag+:} false; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   lt_cv_ld_reload_flag='-r'
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6380 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6381 reload_flag=$lt_cv_ld_reload_flag
6382 case $reload_flag in
6383 "" | " "*) ;;
6384 *) reload_flag=" $reload_flag" ;;
6385 esac
6386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6387 case $host_os in
6388   cygwin* | mingw* | pw32* | cegcc*)
6389     if test yes != "$GCC"; then
6390       reload_cmds=false
6391     fi
6392     ;;
6393   darwin*)
6394     if test yes = "$GCC"; then
6395       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6396     else
6397       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6398     fi
6399     ;;
6400 esac
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 if test -n "$ac_tool_prefix"; then
6411   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6412 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_OBJDUMP+:} false; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418   if test -n "$OBJDUMP"; then
6419   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426     for ac_exec_ext in '' $ac_executable_extensions; do
6427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433   done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 OBJDUMP=$ac_cv_prog_OBJDUMP
6439 if test -n "$OBJDUMP"; then
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6441 $as_echo "$OBJDUMP" >&6; }
6442 else
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447
6448 fi
6449 if test -z "$ac_cv_prog_OBJDUMP"; then
6450   ac_ct_OBJDUMP=$OBJDUMP
6451   # Extract the first word of "objdump", so it can be a program name with args.
6452 set dummy objdump; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458   if test -n "$ac_ct_OBJDUMP"; then
6459   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464   IFS=$as_save_IFS
6465   test -z "$as_dir" && as_dir=.
6466     for ac_exec_ext in '' $ac_executable_extensions; do
6467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470     break 2
6471   fi
6472 done
6473   done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6479 if test -n "$ac_ct_OBJDUMP"; then
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6481 $as_echo "$ac_ct_OBJDUMP" >&6; }
6482 else
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487   if test "x$ac_ct_OBJDUMP" = x; then
6488     OBJDUMP="false"
6489   else
6490     case $cross_compiling:$ac_tool_warned in
6491 yes:)
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494 ac_tool_warned=yes ;;
6495 esac
6496     OBJDUMP=$ac_ct_OBJDUMP
6497   fi
6498 else
6499   OBJDUMP="$ac_cv_prog_OBJDUMP"
6500 fi
6501
6502 test -z "$OBJDUMP" && OBJDUMP=objdump
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6513 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6514 if ${lt_cv_deplibs_check_method+:} false; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   lt_cv_file_magic_cmd='$MAGIC_CMD'
6518 lt_cv_file_magic_test_file=
6519 lt_cv_deplibs_check_method='unknown'
6520 # Need to set the preceding variable on all platforms that support
6521 # interlibrary dependencies.
6522 # 'none' -- dependencies not supported.
6523 # 'unknown' -- same as none, but documents that we really don't know.
6524 # 'pass_all' -- all dependencies passed with no checks.
6525 # 'test_compile' -- check by making test program.
6526 # 'file_magic [[regex]]' -- check by looking for files in library path
6527 # that responds to the $file_magic_cmd with a given extended regex.
6528 # If you have 'file' or equivalent on your system and you're not sure
6529 # whether 'pass_all' will *always* work, you probably want this one.
6530
6531 case $host_os in
6532 aix[4-9]*)
6533   lt_cv_deplibs_check_method=pass_all
6534   ;;
6535
6536 beos*)
6537   lt_cv_deplibs_check_method=pass_all
6538   ;;
6539
6540 bsdi[45]*)
6541   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6542   lt_cv_file_magic_cmd='/usr/bin/file -L'
6543   lt_cv_file_magic_test_file=/shlib/libc.so
6544   ;;
6545
6546 cygwin*)
6547   # func_win32_libid is a shell function defined in ltmain.sh
6548   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6549   lt_cv_file_magic_cmd='func_win32_libid'
6550   ;;
6551
6552 mingw* | pw32*)
6553   # Base MSYS/MinGW do not provide the 'file' command needed by
6554   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6555   # unless we find 'file', for example because we are cross-compiling.
6556   if ( file / ) >/dev/null 2>&1; then
6557     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6558     lt_cv_file_magic_cmd='func_win32_libid'
6559   else
6560     # Keep this pattern in sync with the one in func_win32_libid.
6561     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6562     lt_cv_file_magic_cmd='$OBJDUMP -f'
6563   fi
6564   ;;
6565
6566 cegcc*)
6567   # use the weaker test based on 'objdump'. See mingw*.
6568   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6569   lt_cv_file_magic_cmd='$OBJDUMP -f'
6570   ;;
6571
6572 darwin* | rhapsody*)
6573   lt_cv_deplibs_check_method=pass_all
6574   ;;
6575
6576 freebsd* | dragonfly*)
6577   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6578     case $host_cpu in
6579     i*86 )
6580       # Not sure whether the presence of OpenBSD here was a mistake.
6581       # Let's accept both of them until this is cleared up.
6582       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6583       lt_cv_file_magic_cmd=/usr/bin/file
6584       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6585       ;;
6586     esac
6587   else
6588     lt_cv_deplibs_check_method=pass_all
6589   fi
6590   ;;
6591
6592 haiku*)
6593   lt_cv_deplibs_check_method=pass_all
6594   ;;
6595
6596 hpux10.20* | hpux11*)
6597   lt_cv_file_magic_cmd=/usr/bin/file
6598   case $host_cpu in
6599   ia64*)
6600     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6601     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6602     ;;
6603   hppa*64*)
6604     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]'
6605     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6606     ;;
6607   *)
6608     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6609     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6610     ;;
6611   esac
6612   ;;
6613
6614 interix[3-9]*)
6615   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6616   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6617   ;;
6618
6619 irix5* | irix6* | nonstopux*)
6620   case $LD in
6621   *-32|*"-32 ") libmagic=32-bit;;
6622   *-n32|*"-n32 ") libmagic=N32;;
6623   *-64|*"-64 ") libmagic=64-bit;;
6624   *) libmagic=never-match;;
6625   esac
6626   lt_cv_deplibs_check_method=pass_all
6627   ;;
6628
6629 # This must be glibc/ELF.
6630 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6631   lt_cv_deplibs_check_method=pass_all
6632   ;;
6633
6634 netbsd* | netbsdelf*-gnu)
6635   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6636     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6637   else
6638     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6639   fi
6640   ;;
6641
6642 newos6*)
6643   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6644   lt_cv_file_magic_cmd=/usr/bin/file
6645   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6646   ;;
6647
6648 *nto* | *qnx*)
6649   lt_cv_deplibs_check_method=pass_all
6650   ;;
6651
6652 openbsd* | bitrig*)
6653   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6654     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6655   else
6656     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6657   fi
6658   ;;
6659
6660 osf3* | osf4* | osf5*)
6661   lt_cv_deplibs_check_method=pass_all
6662   ;;
6663
6664 rdos*)
6665   lt_cv_deplibs_check_method=pass_all
6666   ;;
6667
6668 solaris*)
6669   lt_cv_deplibs_check_method=pass_all
6670   ;;
6671
6672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6673   lt_cv_deplibs_check_method=pass_all
6674   ;;
6675
6676 sysv4 | sysv4.3*)
6677   case $host_vendor in
6678   motorola)
6679     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]'
6680     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6681     ;;
6682   ncr)
6683     lt_cv_deplibs_check_method=pass_all
6684     ;;
6685   sequent)
6686     lt_cv_file_magic_cmd='/bin/file'
6687     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6688     ;;
6689   sni)
6690     lt_cv_file_magic_cmd='/bin/file'
6691     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6692     lt_cv_file_magic_test_file=/lib/libc.so
6693     ;;
6694   siemens)
6695     lt_cv_deplibs_check_method=pass_all
6696     ;;
6697   pc)
6698     lt_cv_deplibs_check_method=pass_all
6699     ;;
6700   esac
6701   ;;
6702
6703 tpf*)
6704   lt_cv_deplibs_check_method=pass_all
6705   ;;
6706 os2*)
6707   lt_cv_deplibs_check_method=pass_all
6708   ;;
6709 esac
6710
6711 fi
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6713 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6714
6715 file_magic_glob=
6716 want_nocaseglob=no
6717 if test "$build" = "$host"; then
6718   case $host_os in
6719   mingw* | pw32*)
6720     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6721       want_nocaseglob=yes
6722     else
6723       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6724     fi
6725     ;;
6726   esac
6727 fi
6728
6729 file_magic_cmd=$lt_cv_file_magic_cmd
6730 deplibs_check_method=$lt_cv_deplibs_check_method
6731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754 if test -n "$ac_tool_prefix"; then
6755   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_prog_DLLTOOL+:} false; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762   if test -n "$DLLTOOL"; then
6763   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770     for ac_exec_ext in '' $ac_executable_extensions; do
6771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777   done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 DLLTOOL=$ac_cv_prog_DLLTOOL
6783 if test -n "$DLLTOOL"; then
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6785 $as_echo "$DLLTOOL" >&6; }
6786 else
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791
6792 fi
6793 if test -z "$ac_cv_prog_DLLTOOL"; then
6794   ac_ct_DLLTOOL=$DLLTOOL
6795   # Extract the first word of "dlltool", so it can be a program name with args.
6796 set dummy dlltool; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6800   $as_echo_n "(cached) " >&6
6801 else
6802   if test -n "$ac_ct_DLLTOOL"; then
6803   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808   IFS=$as_save_IFS
6809   test -z "$as_dir" && as_dir=.
6810     for ac_exec_ext in '' $ac_executable_extensions; do
6811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6812     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814     break 2
6815   fi
6816 done
6817   done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6823 if test -n "$ac_ct_DLLTOOL"; then
6824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6825 $as_echo "$ac_ct_DLLTOOL" >&6; }
6826 else
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 fi
6830
6831   if test "x$ac_ct_DLLTOOL" = x; then
6832     DLLTOOL="false"
6833   else
6834     case $cross_compiling:$ac_tool_warned in
6835 yes:)
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838 ac_tool_warned=yes ;;
6839 esac
6840     DLLTOOL=$ac_ct_DLLTOOL
6841   fi
6842 else
6843   DLLTOOL="$ac_cv_prog_DLLTOOL"
6844 fi
6845
6846 test -z "$DLLTOOL" && DLLTOOL=dlltool
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6858 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6859 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6860   $as_echo_n "(cached) " >&6
6861 else
6862   lt_cv_sharedlib_from_linklib_cmd='unknown'
6863
6864 case $host_os in
6865 cygwin* | mingw* | pw32* | cegcc*)
6866   # two different shell functions defined in ltmain.sh;
6867   # decide which one to use based on capabilities of $DLLTOOL
6868   case `$DLLTOOL --help 2>&1` in
6869   *--identify-strict*)
6870     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6871     ;;
6872   *)
6873     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6874     ;;
6875   esac
6876   ;;
6877 *)
6878   # fallback: assume linklib IS sharedlib
6879   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6880   ;;
6881 esac
6882
6883 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6885 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6886 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6887 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6888
6889
6890
6891
6892
6893
6894
6895 if test -n "$ac_tool_prefix"; then
6896   for ac_prog in ar
6897   do
6898     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_prog_AR+:} false; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   if test -n "$AR"; then
6906   ac_cv_prog_AR="$AR" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911   IFS=$as_save_IFS
6912   test -z "$as_dir" && as_dir=.
6913     for ac_exec_ext in '' $ac_executable_extensions; do
6914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917     break 2
6918   fi
6919 done
6920   done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 AR=$ac_cv_prog_AR
6926 if test -n "$AR"; then
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6928 $as_echo "$AR" >&6; }
6929 else
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935     test -n "$AR" && break
6936   done
6937 fi
6938 if test -z "$AR"; then
6939   ac_ct_AR=$AR
6940   for ac_prog in ar
6941 do
6942   # Extract the first word of "$ac_prog", so it can be a program name with args.
6943 set dummy $ac_prog; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6947   $as_echo_n "(cached) " >&6
6948 else
6949   if test -n "$ac_ct_AR"; then
6950   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957     for ac_exec_ext in '' $ac_executable_extensions; do
6958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959     ac_cv_prog_ac_ct_AR="$ac_prog"
6960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961     break 2
6962   fi
6963 done
6964   done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6970 if test -n "$ac_ct_AR"; then
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6972 $as_echo "$ac_ct_AR" >&6; }
6973 else
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978
6979   test -n "$ac_ct_AR" && break
6980 done
6981
6982   if test "x$ac_ct_AR" = x; then
6983     AR="false"
6984   else
6985     case $cross_compiling:$ac_tool_warned in
6986 yes:)
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989 ac_tool_warned=yes ;;
6990 esac
6991     AR=$ac_ct_AR
6992   fi
6993 fi
6994
6995 : ${AR=ar}
6996 : ${AR_FLAGS=cru}
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7009 $as_echo_n "checking for archiver @FILE support... " >&6; }
7010 if ${lt_cv_ar_at_file+:} false; then :
7011   $as_echo_n "(cached) " >&6
7012 else
7013   lt_cv_ar_at_file=no
7014    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h.  */
7016
7017 int
7018 main ()
7019 {
7020
7021   ;
7022   return 0;
7023 }
7024 _ACEOF
7025 if ac_fn_c_try_compile "$LINENO"; then :
7026   echo conftest.$ac_objext > conftest.lst
7027       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7028       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7029   (eval $lt_ar_try) 2>&5
7030   ac_status=$?
7031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032   test $ac_status = 0; }
7033       if test 0 -eq "$ac_status"; then
7034         # Ensure the archiver fails upon bogus file names.
7035         rm -f conftest.$ac_objext libconftest.a
7036         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7037   (eval $lt_ar_try) 2>&5
7038   ac_status=$?
7039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040   test $ac_status = 0; }
7041         if test 0 -ne "$ac_status"; then
7042           lt_cv_ar_at_file=@
7043         fi
7044       fi
7045       rm -f conftest.* libconftest.a
7046
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7052 $as_echo "$lt_cv_ar_at_file" >&6; }
7053
7054 if test no = "$lt_cv_ar_at_file"; then
7055   archiver_list_spec=
7056 else
7057   archiver_list_spec=$lt_cv_ar_at_file
7058 fi
7059
7060
7061
7062
7063
7064
7065
7066 if test -n "$ac_tool_prefix"; then
7067   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}strip; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_STRIP+:} false; then :
7072   $as_echo_n "(cached) " >&6
7073 else
7074   if test -n "$STRIP"; then
7075   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082     for ac_exec_ext in '' $ac_executable_extensions; do
7083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089   done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 STRIP=$ac_cv_prog_STRIP
7095 if test -n "$STRIP"; then
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7097 $as_echo "$STRIP" >&6; }
7098 else
7099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103
7104 fi
7105 if test -z "$ac_cv_prog_STRIP"; then
7106   ac_ct_STRIP=$STRIP
7107   # Extract the first word of "strip", so it can be a program name with args.
7108 set dummy strip; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7112   $as_echo_n "(cached) " >&6
7113 else
7114   if test -n "$ac_ct_STRIP"; then
7115   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122     for ac_exec_ext in '' $ac_executable_extensions; do
7123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124     ac_cv_prog_ac_ct_STRIP="strip"
7125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129   done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7135 if test -n "$ac_ct_STRIP"; then
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7137 $as_echo "$ac_ct_STRIP" >&6; }
7138 else
7139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143   if test "x$ac_ct_STRIP" = x; then
7144     STRIP=":"
7145   else
7146     case $cross_compiling:$ac_tool_warned in
7147 yes:)
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152     STRIP=$ac_ct_STRIP
7153   fi
7154 else
7155   STRIP="$ac_cv_prog_STRIP"
7156 fi
7157
7158 test -z "$STRIP" && STRIP=:
7159
7160
7161
7162
7163
7164
7165 if test -n "$ac_tool_prefix"; then
7166   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_RANLIB+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   if test -n "$RANLIB"; then
7174   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181     for ac_exec_ext in '' $ac_executable_extensions; do
7182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188   done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 RANLIB=$ac_cv_prog_RANLIB
7194 if test -n "$RANLIB"; then
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7196 $as_echo "$RANLIB" >&6; }
7197 else
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202
7203 fi
7204 if test -z "$ac_cv_prog_RANLIB"; then
7205   ac_ct_RANLIB=$RANLIB
7206   # Extract the first word of "ranlib", so it can be a program name with args.
7207 set dummy ranlib; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$ac_ct_RANLIB"; then
7214   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223     ac_cv_prog_ac_ct_RANLIB="ranlib"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7234 if test -n "$ac_ct_RANLIB"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7236 $as_echo "$ac_ct_RANLIB" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242   if test "x$ac_ct_RANLIB" = x; then
7243     RANLIB=":"
7244   else
7245     case $cross_compiling:$ac_tool_warned in
7246 yes:)
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7250 esac
7251     RANLIB=$ac_ct_RANLIB
7252   fi
7253 else
7254   RANLIB="$ac_cv_prog_RANLIB"
7255 fi
7256
7257 test -z "$RANLIB" && RANLIB=:
7258
7259
7260
7261
7262
7263
7264 # Determine commands to create old-style static archives.
7265 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7266 old_postinstall_cmds='chmod 644 $oldlib'
7267 old_postuninstall_cmds=
7268
7269 if test -n "$RANLIB"; then
7270   case $host_os in
7271   bitrig* | openbsd*)
7272     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7273     ;;
7274   *)
7275     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7276     ;;
7277   esac
7278   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7279 fi
7280
7281 case $host_os in
7282   darwin*)
7283     lock_old_archive_extraction=yes ;;
7284   *)
7285     lock_old_archive_extraction=no ;;
7286 esac
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326 # If no C compiler was specified, use CC.
7327 LTCC=${LTCC-"$CC"}
7328
7329 # If no C compiler flags were specified, use CFLAGS.
7330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7331
7332 # Allow CC to be a program name with arguments.
7333 compiler=$CC
7334
7335
7336 # Check for command to grab the raw symbol name followed by C symbol from nm.
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7338 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7339 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342
7343 # These are sane defaults that work on at least a few old systems.
7344 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7345
7346 # Character class describing NM global symbol codes.
7347 symcode='[BCDEGRST]'
7348
7349 # Regexp to match symbols that can be accessed directly from C.
7350 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7351
7352 # Define system-specific variables.
7353 case $host_os in
7354 aix*)
7355   symcode='[BCDT]'
7356   ;;
7357 cygwin* | mingw* | pw32* | cegcc*)
7358   symcode='[ABCDGISTW]'
7359   ;;
7360 hpux*)
7361   if test ia64 = "$host_cpu"; then
7362     symcode='[ABCDEGRST]'
7363   fi
7364   ;;
7365 irix* | nonstopux*)
7366   symcode='[BCDEGRST]'
7367   ;;
7368 osf*)
7369   symcode='[BCDEGQRST]'
7370   ;;
7371 solaris*)
7372   symcode='[BDRT]'
7373   ;;
7374 sco3.2v5*)
7375   symcode='[DT]'
7376   ;;
7377 sysv4.2uw2*)
7378   symcode='[DT]'
7379   ;;
7380 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7381   symcode='[ABDT]'
7382   ;;
7383 sysv4)
7384   symcode='[DFNSTU]'
7385   ;;
7386 esac
7387
7388 # If we're using GNU nm, then use its standard symbol codes.
7389 case `$NM -V 2>&1` in
7390 *GNU* | *'with BFD'*)
7391   symcode='[ABCDGIRSTW]' ;;
7392 esac
7393
7394 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7395   # Gets list of data symbols to import.
7396   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7397   # Adjust the below global symbol transforms to fixup imported variables.
7398   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7399   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7400   lt_c_name_lib_hook="\
7401   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7402   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7403 else
7404   # Disable hooks by default.
7405   lt_cv_sys_global_symbol_to_import=
7406   lt_cdecl_hook=
7407   lt_c_name_hook=
7408   lt_c_name_lib_hook=
7409 fi
7410
7411 # Transform an extracted symbol line into a proper C declaration.
7412 # Some systems (esp. on ia64) link data and code symbols differently,
7413 # so use this general approach.
7414 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7415 $lt_cdecl_hook\
7416 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7417 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7418
7419 # Transform an extracted symbol line into symbol name and symbol address
7420 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7421 $lt_c_name_hook\
7422 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7423 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7424
7425 # Transform an extracted symbol line into symbol name with lib prefix and
7426 # symbol address.
7427 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7428 $lt_c_name_lib_hook\
7429 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7430 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7431 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7432
7433 # Handle CRLF in mingw tool chain
7434 opt_cr=
7435 case $build_os in
7436 mingw*)
7437   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7438   ;;
7439 esac
7440
7441 # Try without a prefix underscore, then with it.
7442 for ac_symprfx in "" "_"; do
7443
7444   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7445   symxfrm="\\1 $ac_symprfx\\2 \\2"
7446
7447   # Write the raw and C identifiers.
7448   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7449     # Fake it for dumpbin and say T for any non-static function,
7450     # D for any global variable and I for any imported variable.
7451     # Also find C++ and __fastcall symbols from MSVC++,
7452     # which start with @ or ?.
7453     lt_cv_sys_global_symbol_pipe="$AWK '"\
7454 "     {last_section=section; section=\$ 3};"\
7455 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7456 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7457 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7458 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7459 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7460 "     \$ 0!~/External *\|/{next};"\
7461 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7462 "     {if(hide[section]) next};"\
7463 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7464 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7465 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7466 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7467 "     ' prfx=^$ac_symprfx"
7468   else
7469     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7470   fi
7471   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7472
7473   # Check to see that the pipe works correctly.
7474   pipe_works=no
7475
7476   rm -f conftest*
7477   cat > conftest.$ac_ext <<_LT_EOF
7478 #ifdef __cplusplus
7479 extern "C" {
7480 #endif
7481 char nm_test_var;
7482 void nm_test_func(void);
7483 void nm_test_func(void){}
7484 #ifdef __cplusplus
7485 }
7486 #endif
7487 int main(){nm_test_var='a';nm_test_func();return(0);}
7488 _LT_EOF
7489
7490   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7491   (eval $ac_compile) 2>&5
7492   ac_status=$?
7493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7494   test $ac_status = 0; }; then
7495     # Now try to grab the symbols.
7496     nlist=conftest.nm
7497     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7498   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7499   ac_status=$?
7500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501   test $ac_status = 0; } && test -s "$nlist"; then
7502       # Try sorting and uniquifying the output.
7503       if sort "$nlist" | uniq > "$nlist"T; then
7504         mv -f "$nlist"T "$nlist"
7505       else
7506         rm -f "$nlist"T
7507       fi
7508
7509       # Make sure that we snagged all the symbols we need.
7510       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7511         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7512           cat <<_LT_EOF > conftest.$ac_ext
7513 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7514 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7515 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7516    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7517 # define LT_DLSYM_CONST
7518 #elif defined __osf__
7519 /* This system does not cope well with relocations in const data.  */
7520 # define LT_DLSYM_CONST
7521 #else
7522 # define LT_DLSYM_CONST const
7523 #endif
7524
7525 #ifdef __cplusplus
7526 extern "C" {
7527 #endif
7528
7529 _LT_EOF
7530           # Now generate the symbol file.
7531           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7532
7533           cat <<_LT_EOF >> conftest.$ac_ext
7534
7535 /* The mapping between symbol names and symbols.  */
7536 LT_DLSYM_CONST struct {
7537   const char *name;
7538   void       *address;
7539 }
7540 lt__PROGRAM__LTX_preloaded_symbols[] =
7541 {
7542   { "@PROGRAM@", (void *) 0 },
7543 _LT_EOF
7544           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7545           cat <<\_LT_EOF >> conftest.$ac_ext
7546   {0, (void *) 0}
7547 };
7548
7549 /* This works around a problem in FreeBSD linker */
7550 #ifdef FREEBSD_WORKAROUND
7551 static const void *lt_preloaded_setup() {
7552   return lt__PROGRAM__LTX_preloaded_symbols;
7553 }
7554 #endif
7555
7556 #ifdef __cplusplus
7557 }
7558 #endif
7559 _LT_EOF
7560           # Now try linking the two files.
7561           mv conftest.$ac_objext conftstm.$ac_objext
7562           lt_globsym_save_LIBS=$LIBS
7563           lt_globsym_save_CFLAGS=$CFLAGS
7564           LIBS=conftstm.$ac_objext
7565           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7566           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7567   (eval $ac_link) 2>&5
7568   ac_status=$?
7569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7570   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7571             pipe_works=yes
7572           fi
7573           LIBS=$lt_globsym_save_LIBS
7574           CFLAGS=$lt_globsym_save_CFLAGS
7575         else
7576           echo "cannot find nm_test_func in $nlist" >&5
7577         fi
7578       else
7579         echo "cannot find nm_test_var in $nlist" >&5
7580       fi
7581     else
7582       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7583     fi
7584   else
7585     echo "$progname: failed program was:" >&5
7586     cat conftest.$ac_ext >&5
7587   fi
7588   rm -rf conftest* conftst*
7589
7590   # Do not use the global_symbol_pipe unless it works.
7591   if test yes = "$pipe_works"; then
7592     break
7593   else
7594     lt_cv_sys_global_symbol_pipe=
7595   fi
7596 done
7597
7598 fi
7599
7600 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7601   lt_cv_sys_global_symbol_to_cdecl=
7602 fi
7603 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7605 $as_echo "failed" >&6; }
7606 else
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7608 $as_echo "ok" >&6; }
7609 fi
7610
7611 # Response file support.
7612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7613   nm_file_list_spec='@'
7614 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7615   nm_file_list_spec='@'
7616 fi
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7655 $as_echo_n "checking for sysroot... " >&6; }
7656
7657 # Check whether --with-sysroot was given.
7658 if test "${with_sysroot+set}" = set; then :
7659   withval=$with_sysroot;
7660 else
7661   with_sysroot=no
7662 fi
7663
7664
7665 lt_sysroot=
7666 case $with_sysroot in #(
7667  yes)
7668    if test yes = "$GCC"; then
7669      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7670    fi
7671    ;; #(
7672  /*)
7673    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7674    ;; #(
7675  no|'')
7676    ;; #(
7677  *)
7678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7679 $as_echo "$with_sysroot" >&6; }
7680    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7681    ;;
7682 esac
7683
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7685 $as_echo "${lt_sysroot:-no}" >&6; }
7686
7687
7688
7689
7690
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7692 $as_echo_n "checking for a working dd... " >&6; }
7693 if ${ac_cv_path_lt_DD+:} false; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   printf 0123456789abcdef0123456789abcdef >conftest.i
7697 cat conftest.i conftest.i >conftest2.i
7698 : ${lt_DD:=$DD}
7699 if test -z "$lt_DD"; then
7700   ac_path_lt_DD_found=false
7701   # Loop through the user's path and test for each of PROGNAME-LIST
7702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_prog in dd; do
7708     for ac_exec_ext in '' $ac_executable_extensions; do
7709       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7710       as_fn_executable_p "$ac_path_lt_DD" || continue
7711 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7712   cmp -s conftest.i conftest.out \
7713   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7714 fi
7715       $ac_path_lt_DD_found && break 3
7716     done
7717   done
7718   done
7719 IFS=$as_save_IFS
7720   if test -z "$ac_cv_path_lt_DD"; then
7721     :
7722   fi
7723 else
7724   ac_cv_path_lt_DD=$lt_DD
7725 fi
7726
7727 rm -f conftest.i conftest2.i conftest.out
7728 fi
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7730 $as_echo "$ac_cv_path_lt_DD" >&6; }
7731
7732
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7734 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7735 if ${lt_cv_truncate_bin+:} false; then :
7736   $as_echo_n "(cached) " >&6
7737 else
7738   printf 0123456789abcdef0123456789abcdef >conftest.i
7739 cat conftest.i conftest.i >conftest2.i
7740 lt_cv_truncate_bin=
7741 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7742   cmp -s conftest.i conftest.out \
7743   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7744 fi
7745 rm -f conftest.i conftest2.i conftest.out
7746 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7749 $as_echo "$lt_cv_truncate_bin" >&6; }
7750
7751
7752
7753
7754
7755
7756
7757 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7758 func_cc_basename ()
7759 {
7760     for cc_temp in $*""; do
7761       case $cc_temp in
7762         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7763         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7764         \-*) ;;
7765         *) break;;
7766       esac
7767     done
7768     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7769 }
7770
7771 # Check whether --enable-libtool-lock was given.
7772 if test "${enable_libtool_lock+set}" = set; then :
7773   enableval=$enable_libtool_lock;
7774 fi
7775
7776 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7777
7778 # Some flags need to be propagated to the compiler or linker for good
7779 # libtool support.
7780 case $host in
7781 ia64-*-hpux*)
7782   # Find out what ABI is being produced by ac_compile, and set mode
7783   # options accordingly.
7784   echo 'int i;' > conftest.$ac_ext
7785   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7786   (eval $ac_compile) 2>&5
7787   ac_status=$?
7788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7789   test $ac_status = 0; }; then
7790     case `/usr/bin/file conftest.$ac_objext` in
7791       *ELF-32*)
7792         HPUX_IA64_MODE=32
7793         ;;
7794       *ELF-64*)
7795         HPUX_IA64_MODE=64
7796         ;;
7797     esac
7798   fi
7799   rm -rf conftest*
7800   ;;
7801 *-*-irix6*)
7802   # Find out what ABI is being produced by ac_compile, and set linker
7803   # options accordingly.
7804   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7805   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7806   (eval $ac_compile) 2>&5
7807   ac_status=$?
7808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7809   test $ac_status = 0; }; then
7810     if test yes = "$lt_cv_prog_gnu_ld"; then
7811       case `/usr/bin/file conftest.$ac_objext` in
7812         *32-bit*)
7813           LD="${LD-ld} -melf32bsmip"
7814           ;;
7815         *N32*)
7816           LD="${LD-ld} -melf32bmipn32"
7817           ;;
7818         *64-bit*)
7819           LD="${LD-ld} -melf64bmip"
7820         ;;
7821       esac
7822     else
7823       case `/usr/bin/file conftest.$ac_objext` in
7824         *32-bit*)
7825           LD="${LD-ld} -32"
7826           ;;
7827         *N32*)
7828           LD="${LD-ld} -n32"
7829           ;;
7830         *64-bit*)
7831           LD="${LD-ld} -64"
7832           ;;
7833       esac
7834     fi
7835   fi
7836   rm -rf conftest*
7837   ;;
7838
7839 mips64*-*linux*)
7840   # Find out what ABI is being produced by ac_compile, and set linker
7841   # options accordingly.
7842   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7843   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7844   (eval $ac_compile) 2>&5
7845   ac_status=$?
7846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847   test $ac_status = 0; }; then
7848     emul=elf
7849     case `/usr/bin/file conftest.$ac_objext` in
7850       *32-bit*)
7851         emul="${emul}32"
7852         ;;
7853       *64-bit*)
7854         emul="${emul}64"
7855         ;;
7856     esac
7857     case `/usr/bin/file conftest.$ac_objext` in
7858       *MSB*)
7859         emul="${emul}btsmip"
7860         ;;
7861       *LSB*)
7862         emul="${emul}ltsmip"
7863         ;;
7864     esac
7865     case `/usr/bin/file conftest.$ac_objext` in
7866       *N32*)
7867         emul="${emul}n32"
7868         ;;
7869     esac
7870     LD="${LD-ld} -m $emul"
7871   fi
7872   rm -rf conftest*
7873   ;;
7874
7875 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7876 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7877   # Find out what ABI is being produced by ac_compile, and set linker
7878   # options accordingly.  Note that the listed cases only cover the
7879   # situations where additional linker options are needed (such as when
7880   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7881   # vice versa); the common cases where no linker options are needed do
7882   # not appear in the list.
7883   echo 'int i;' > conftest.$ac_ext
7884   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7885   (eval $ac_compile) 2>&5
7886   ac_status=$?
7887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888   test $ac_status = 0; }; then
7889     case `/usr/bin/file conftest.o` in
7890       *32-bit*)
7891         case $host in
7892           x86_64-*kfreebsd*-gnu)
7893             LD="${LD-ld} -m elf_i386_fbsd"
7894             ;;
7895           x86_64-*linux*)
7896             case `/usr/bin/file conftest.o` in
7897               *x86-64*)
7898                 LD="${LD-ld} -m elf32_x86_64"
7899                 ;;
7900               *)
7901                 LD="${LD-ld} -m elf_i386"
7902                 ;;
7903             esac
7904             ;;
7905           powerpc64le-*linux*)
7906             LD="${LD-ld} -m elf32lppclinux"
7907             ;;
7908           powerpc64-*linux*)
7909             LD="${LD-ld} -m elf32ppclinux"
7910             ;;
7911           s390x-*linux*)
7912             LD="${LD-ld} -m elf_s390"
7913             ;;
7914           sparc64-*linux*)
7915             LD="${LD-ld} -m elf32_sparc"
7916             ;;
7917         esac
7918         ;;
7919       *64-bit*)
7920         case $host in
7921           x86_64-*kfreebsd*-gnu)
7922             LD="${LD-ld} -m elf_x86_64_fbsd"
7923             ;;
7924           x86_64-*linux*)
7925             LD="${LD-ld} -m elf_x86_64"
7926             ;;
7927           powerpcle-*linux*)
7928             LD="${LD-ld} -m elf64lppc"
7929             ;;
7930           powerpc-*linux*)
7931             LD="${LD-ld} -m elf64ppc"
7932             ;;
7933           s390*-*linux*|s390*-*tpf*)
7934             LD="${LD-ld} -m elf64_s390"
7935             ;;
7936           sparc*-*linux*)
7937             LD="${LD-ld} -m elf64_sparc"
7938             ;;
7939         esac
7940         ;;
7941     esac
7942   fi
7943   rm -rf conftest*
7944   ;;
7945
7946 *-*-sco3.2v5*)
7947   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7948   SAVE_CFLAGS=$CFLAGS
7949   CFLAGS="$CFLAGS -belf"
7950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7951 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7952 if ${lt_cv_cc_needs_belf+:} false; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   ac_ext=c
7956 ac_cpp='$CPP $CPPFLAGS'
7957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960
7961      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h.  */
7963
7964 int
7965 main ()
7966 {
7967
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_link "$LINENO"; then :
7973   lt_cv_cc_needs_belf=yes
7974 else
7975   lt_cv_cc_needs_belf=no
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext \
7978     conftest$ac_exeext conftest.$ac_ext
7979      ac_ext=c
7980 ac_cpp='$CPP $CPPFLAGS'
7981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7984
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7987 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7988   if test yes != "$lt_cv_cc_needs_belf"; then
7989     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7990     CFLAGS=$SAVE_CFLAGS
7991   fi
7992   ;;
7993 *-*solaris*)
7994   # Find out what ABI is being produced by ac_compile, and set linker
7995   # options accordingly.
7996   echo 'int i;' > conftest.$ac_ext
7997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7998   (eval $ac_compile) 2>&5
7999   ac_status=$?
8000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8001   test $ac_status = 0; }; then
8002     case `/usr/bin/file conftest.o` in
8003     *64-bit*)
8004       case $lt_cv_prog_gnu_ld in
8005       yes*)
8006         case $host in
8007         i?86-*-solaris*|x86_64-*-solaris*)
8008           LD="${LD-ld} -m elf_x86_64"
8009           ;;
8010         sparc*-*-solaris*)
8011           LD="${LD-ld} -m elf64_sparc"
8012           ;;
8013         esac
8014         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8015         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8016           LD=${LD-ld}_sol2
8017         fi
8018         ;;
8019       *)
8020         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8021           LD="${LD-ld} -64"
8022         fi
8023         ;;
8024       esac
8025       ;;
8026     esac
8027   fi
8028   rm -rf conftest*
8029   ;;
8030 esac
8031
8032 need_locks=$enable_libtool_lock
8033
8034 if test -n "$ac_tool_prefix"; then
8035   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8036 set dummy ${ac_tool_prefix}mt; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   if test -n "$MANIFEST_TOOL"; then
8043   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048   IFS=$as_save_IFS
8049   test -z "$as_dir" && as_dir=.
8050     for ac_exec_ext in '' $ac_executable_extensions; do
8051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054     break 2
8055   fi
8056 done
8057   done
8058 IFS=$as_save_IFS
8059
8060 fi
8061 fi
8062 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8063 if test -n "$MANIFEST_TOOL"; then
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8065 $as_echo "$MANIFEST_TOOL" >&6; }
8066 else
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8069 fi
8070
8071
8072 fi
8073 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8074   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8075   # Extract the first word of "mt", so it can be a program name with args.
8076 set dummy mt; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8080   $as_echo_n "(cached) " >&6
8081 else
8082   if test -n "$ac_ct_MANIFEST_TOOL"; then
8083   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088   IFS=$as_save_IFS
8089   test -z "$as_dir" && as_dir=.
8090     for ac_exec_ext in '' $ac_executable_extensions; do
8091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094     break 2
8095   fi
8096 done
8097   done
8098 IFS=$as_save_IFS
8099
8100 fi
8101 fi
8102 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8103 if test -n "$ac_ct_MANIFEST_TOOL"; then
8104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8105 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8106 else
8107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 fi
8110
8111   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8112     MANIFEST_TOOL=":"
8113   else
8114     case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8119 esac
8120     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8121   fi
8122 else
8123   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8124 fi
8125
8126 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8128 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8129 if ${lt_cv_path_mainfest_tool+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   lt_cv_path_mainfest_tool=no
8133   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8134   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8135   cat conftest.err >&5
8136   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8137     lt_cv_path_mainfest_tool=yes
8138   fi
8139   rm -f conftest*
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8142 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8143 if test yes != "$lt_cv_path_mainfest_tool"; then
8144   MANIFEST_TOOL=:
8145 fi
8146
8147
8148
8149
8150
8151
8152   case $host_os in
8153     rhapsody* | darwin*)
8154     if test -n "$ac_tool_prefix"; then
8155   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   if test -n "$DSYMUTIL"; then
8163   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168   IFS=$as_save_IFS
8169   test -z "$as_dir" && as_dir=.
8170     for ac_exec_ext in '' $ac_executable_extensions; do
8171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174     break 2
8175   fi
8176 done
8177   done
8178 IFS=$as_save_IFS
8179
8180 fi
8181 fi
8182 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8183 if test -n "$DSYMUTIL"; then
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8185 $as_echo "$DSYMUTIL" >&6; }
8186 else
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190
8191
8192 fi
8193 if test -z "$ac_cv_prog_DSYMUTIL"; then
8194   ac_ct_DSYMUTIL=$DSYMUTIL
8195   # Extract the first word of "dsymutil", so it can be a program name with args.
8196 set dummy dsymutil; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8200   $as_echo_n "(cached) " >&6
8201 else
8202   if test -n "$ac_ct_DSYMUTIL"; then
8203   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208   IFS=$as_save_IFS
8209   test -z "$as_dir" && as_dir=.
8210     for ac_exec_ext in '' $ac_executable_extensions; do
8211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214     break 2
8215   fi
8216 done
8217   done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8223 if test -n "$ac_ct_DSYMUTIL"; then
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8225 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8226 else
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231   if test "x$ac_ct_DSYMUTIL" = x; then
8232     DSYMUTIL=":"
8233   else
8234     case $cross_compiling:$ac_tool_warned in
8235 yes:)
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8238 ac_tool_warned=yes ;;
8239 esac
8240     DSYMUTIL=$ac_ct_DSYMUTIL
8241   fi
8242 else
8243   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8244 fi
8245
8246     if test -n "$ac_tool_prefix"; then
8247   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8248 set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   if test -n "$NMEDIT"; then
8255   ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
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 NMEDIT=$ac_cv_prog_NMEDIT
8275 if test -n "$NMEDIT"; then
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8277 $as_echo "$NMEDIT" >&6; }
8278 else
8279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283
8284 fi
8285 if test -z "$ac_cv_prog_NMEDIT"; then
8286   ac_ct_NMEDIT=$NMEDIT
8287   # Extract the first word of "nmedit", so it can be a program name with args.
8288 set dummy nmedit; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8292   $as_echo_n "(cached) " >&6
8293 else
8294   if test -n "$ac_ct_NMEDIT"; then
8295   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300   IFS=$as_save_IFS
8301   test -z "$as_dir" && as_dir=.
8302     for ac_exec_ext in '' $ac_executable_extensions; do
8303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306     break 2
8307   fi
8308 done
8309   done
8310 IFS=$as_save_IFS
8311
8312 fi
8313 fi
8314 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8315 if test -n "$ac_ct_NMEDIT"; then
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8317 $as_echo "$ac_ct_NMEDIT" >&6; }
8318 else
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323   if test "x$ac_ct_NMEDIT" = x; then
8324     NMEDIT=":"
8325   else
8326     case $cross_compiling:$ac_tool_warned in
8327 yes:)
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8330 ac_tool_warned=yes ;;
8331 esac
8332     NMEDIT=$ac_ct_NMEDIT
8333   fi
8334 else
8335   NMEDIT="$ac_cv_prog_NMEDIT"
8336 fi
8337
8338     if test -n "$ac_tool_prefix"; then
8339   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8340 set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   if test -n "$LIPO"; then
8347   ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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 LIPO=$ac_cv_prog_LIPO
8367 if test -n "$LIPO"; then
8368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8369 $as_echo "$LIPO" >&6; }
8370 else
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374
8375
8376 fi
8377 if test -z "$ac_cv_prog_LIPO"; then
8378   ac_ct_LIPO=$LIPO
8379   # Extract the first word of "lipo", so it can be a program name with args.
8380 set dummy lipo; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8384   $as_echo_n "(cached) " >&6
8385 else
8386   if test -n "$ac_ct_LIPO"; then
8387   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392   IFS=$as_save_IFS
8393   test -z "$as_dir" && as_dir=.
8394     for ac_exec_ext in '' $ac_executable_extensions; do
8395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396     ac_cv_prog_ac_ct_LIPO="lipo"
8397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398     break 2
8399   fi
8400 done
8401   done
8402 IFS=$as_save_IFS
8403
8404 fi
8405 fi
8406 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8407 if test -n "$ac_ct_LIPO"; then
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8409 $as_echo "$ac_ct_LIPO" >&6; }
8410 else
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 fi
8414
8415   if test "x$ac_ct_LIPO" = x; then
8416     LIPO=":"
8417   else
8418     case $cross_compiling:$ac_tool_warned in
8419 yes:)
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8422 ac_tool_warned=yes ;;
8423 esac
8424     LIPO=$ac_ct_LIPO
8425   fi
8426 else
8427   LIPO="$ac_cv_prog_LIPO"
8428 fi
8429
8430     if test -n "$ac_tool_prefix"; then
8431   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8432 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   if test -n "$OTOOL"; then
8439   ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
8459 if test -n "$OTOOL"; then
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8461 $as_echo "$OTOOL" >&6; }
8462 else
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467
8468 fi
8469 if test -z "$ac_cv_prog_OTOOL"; then
8470   ac_ct_OTOOL=$OTOOL
8471   # Extract the first word of "otool", so it can be a program name with args.
8472 set dummy otool; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8476   $as_echo_n "(cached) " >&6
8477 else
8478   if test -n "$ac_ct_OTOOL"; then
8479   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8480 else
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484   IFS=$as_save_IFS
8485   test -z "$as_dir" && as_dir=.
8486     for ac_exec_ext in '' $ac_executable_extensions; do
8487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488     ac_cv_prog_ac_ct_OTOOL="otool"
8489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490     break 2
8491   fi
8492 done
8493   done
8494 IFS=$as_save_IFS
8495
8496 fi
8497 fi
8498 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8499 if test -n "$ac_ct_OTOOL"; then
8500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8501 $as_echo "$ac_ct_OTOOL" >&6; }
8502 else
8503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507   if test "x$ac_ct_OTOOL" = x; then
8508     OTOOL=":"
8509   else
8510     case $cross_compiling:$ac_tool_warned in
8511 yes:)
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8514 ac_tool_warned=yes ;;
8515 esac
8516     OTOOL=$ac_ct_OTOOL
8517   fi
8518 else
8519   OTOOL="$ac_cv_prog_OTOOL"
8520 fi
8521
8522     if test -n "$ac_tool_prefix"; then
8523   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8524 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
8528   $as_echo_n "(cached) " >&6
8529 else
8530   if test -n "$OTOOL64"; then
8531   ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
8551 if test -n "$OTOOL64"; then
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8553 $as_echo "$OTOOL64" >&6; }
8554 else
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8557 fi
8558
8559
8560 fi
8561 if test -z "$ac_cv_prog_OTOOL64"; then
8562   ac_ct_OTOOL64=$OTOOL64
8563   # Extract the first word of "otool64", so it can be a program name with args.
8564 set dummy otool64; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8568   $as_echo_n "(cached) " >&6
8569 else
8570   if test -n "$ac_ct_OTOOL64"; then
8571   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8572 else
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574 for as_dir in $PATH
8575 do
8576   IFS=$as_save_IFS
8577   test -z "$as_dir" && as_dir=.
8578     for ac_exec_ext in '' $ac_executable_extensions; do
8579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580     ac_cv_prog_ac_ct_OTOOL64="otool64"
8581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582     break 2
8583   fi
8584 done
8585   done
8586 IFS=$as_save_IFS
8587
8588 fi
8589 fi
8590 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8591 if test -n "$ac_ct_OTOOL64"; then
8592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8593 $as_echo "$ac_ct_OTOOL64" >&6; }
8594 else
8595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8597 fi
8598
8599   if test "x$ac_ct_OTOOL64" = x; then
8600     OTOOL64=":"
8601   else
8602     case $cross_compiling:$ac_tool_warned in
8603 yes:)
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8606 ac_tool_warned=yes ;;
8607 esac
8608     OTOOL64=$ac_ct_OTOOL64
8609   fi
8610 else
8611   OTOOL64="$ac_cv_prog_OTOOL64"
8612 fi
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8641 $as_echo_n "checking for -single_module linker flag... " >&6; }
8642 if ${lt_cv_apple_cc_single_mod+:} false; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   lt_cv_apple_cc_single_mod=no
8646       if test -z "$LT_MULTI_MODULE"; then
8647         # By default we will add the -single_module flag. You can override
8648         # by either setting the environment variable LT_MULTI_MODULE
8649         # non-empty at configure time, or by adding -multi_module to the
8650         # link flags.
8651         rm -rf libconftest.dylib*
8652         echo "int foo(void){return 1;}" > conftest.c
8653         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8654 -dynamiclib -Wl,-single_module conftest.c" >&5
8655         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8656           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8657         _lt_result=$?
8658         # If there is a non-empty error log, and "single_module"
8659         # appears in it, assume the flag caused a linker warning
8660         if test -s conftest.err && $GREP single_module conftest.err; then
8661           cat conftest.err >&5
8662         # Otherwise, if the output was created with a 0 exit code from
8663         # the compiler, it worked.
8664         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8665           lt_cv_apple_cc_single_mod=yes
8666         else
8667           cat conftest.err >&5
8668         fi
8669         rm -rf libconftest.dylib*
8670         rm -f conftest.*
8671       fi
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8674 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8675
8676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8677 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8678 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8679   $as_echo_n "(cached) " >&6
8680 else
8681   lt_cv_ld_exported_symbols_list=no
8682       save_LDFLAGS=$LDFLAGS
8683       echo "_main" > conftest.sym
8684       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8685       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h.  */
8687
8688 int
8689 main ()
8690 {
8691
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 if ac_fn_c_try_link "$LINENO"; then :
8697   lt_cv_ld_exported_symbols_list=yes
8698 else
8699   lt_cv_ld_exported_symbols_list=no
8700 fi
8701 rm -f core conftest.err conftest.$ac_objext \
8702     conftest$ac_exeext conftest.$ac_ext
8703         LDFLAGS=$save_LDFLAGS
8704
8705 fi
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8707 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8708
8709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8710 $as_echo_n "checking for -force_load linker flag... " >&6; }
8711 if ${lt_cv_ld_force_load+:} false; then :
8712   $as_echo_n "(cached) " >&6
8713 else
8714   lt_cv_ld_force_load=no
8715       cat > conftest.c << _LT_EOF
8716 int forced_loaded() { return 2;}
8717 _LT_EOF
8718       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8719       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8720       echo "$AR cru libconftest.a conftest.o" >&5
8721       $AR cru libconftest.a conftest.o 2>&5
8722       echo "$RANLIB libconftest.a" >&5
8723       $RANLIB libconftest.a 2>&5
8724       cat > conftest.c << _LT_EOF
8725 int main() { return 0;}
8726 _LT_EOF
8727       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8728       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8729       _lt_result=$?
8730       if test -s conftest.err && $GREP force_load conftest.err; then
8731         cat conftest.err >&5
8732       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8733         lt_cv_ld_force_load=yes
8734       else
8735         cat conftest.err >&5
8736       fi
8737         rm -f conftest.err libconftest.a conftest conftest.c
8738         rm -rf conftest.dSYM
8739
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8742 $as_echo "$lt_cv_ld_force_load" >&6; }
8743     case $host_os in
8744     rhapsody* | darwin1.[012])
8745       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8746     darwin1.*)
8747       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8748     darwin*) # darwin 5.x on
8749       # if running on 10.5 or later, the deployment target defaults
8750       # to the OS version, if on x86, and 10.4, the deployment
8751       # target defaults to 10.4. Don't you love it?
8752       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8753         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8754           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8755         10.[012][,.]*)
8756           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8757         10.*)
8758           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8759       esac
8760     ;;
8761   esac
8762     if test yes = "$lt_cv_apple_cc_single_mod"; then
8763       _lt_dar_single_mod='$single_module'
8764     fi
8765     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8766       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8767     else
8768       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8769     fi
8770     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8771       _lt_dsymutil='~$DSYMUTIL $lib || :'
8772     else
8773       _lt_dsymutil=
8774     fi
8775     ;;
8776   esac
8777
8778 # func_munge_path_list VARIABLE PATH
8779 # -----------------------------------
8780 # VARIABLE is name of variable containing _space_ separated list of
8781 # directories to be munged by the contents of PATH, which is string
8782 # having a format:
8783 # "DIR[:DIR]:"
8784 #       string "DIR[ DIR]" will be prepended to VARIABLE
8785 # ":DIR[:DIR]"
8786 #       string "DIR[ DIR]" will be appended to VARIABLE
8787 # "DIRP[:DIRP]::[DIRA:]DIRA"
8788 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8789 #       "DIRA[ DIRA]" will be appended to VARIABLE
8790 # "DIR[:DIR]"
8791 #       VARIABLE will be replaced by "DIR[ DIR]"
8792 func_munge_path_list ()
8793 {
8794     case x$2 in
8795     x)
8796         ;;
8797     *:)
8798         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8799         ;;
8800     x:*)
8801         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8802         ;;
8803     *::*)
8804         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8805         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8806         ;;
8807     *)
8808         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8809         ;;
8810     esac
8811 }
8812
8813 ac_ext=c
8814 ac_cpp='$CPP $CPPFLAGS'
8815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8820 # On Suns, sometimes $CPP names a directory.
8821 if test -n "$CPP" && test -d "$CPP"; then
8822   CPP=
8823 fi
8824 if test -z "$CPP"; then
8825   if ${ac_cv_prog_CPP+:} false; then :
8826   $as_echo_n "(cached) " >&6
8827 else
8828       # Double quotes because CPP needs to be expanded
8829     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8830     do
8831       ac_preproc_ok=false
8832 for ac_c_preproc_warn_flag in '' yes
8833 do
8834   # Use a header file that comes with gcc, so configuring glibc
8835   # with a fresh cross-compiler works.
8836   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8837   # <limits.h> exists even on freestanding compilers.
8838   # On the NeXT, cc -E runs the code through the compiler's parser,
8839   # not just through cpp. "Syntax error" is here to catch this case.
8840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h.  */
8842 #ifdef __STDC__
8843 # include <limits.h>
8844 #else
8845 # include <assert.h>
8846 #endif
8847                      Syntax error
8848 _ACEOF
8849 if ac_fn_c_try_cpp "$LINENO"; then :
8850
8851 else
8852   # Broken: fails on valid input.
8853 continue
8854 fi
8855 rm -f conftest.err conftest.i conftest.$ac_ext
8856
8857   # OK, works on sane cases.  Now check whether nonexistent headers
8858   # can be detected and how.
8859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h.  */
8861 #include <ac_nonexistent.h>
8862 _ACEOF
8863 if ac_fn_c_try_cpp "$LINENO"; then :
8864   # Broken: success on invalid input.
8865 continue
8866 else
8867   # Passes both tests.
8868 ac_preproc_ok=:
8869 break
8870 fi
8871 rm -f conftest.err conftest.i conftest.$ac_ext
8872
8873 done
8874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8875 rm -f conftest.i conftest.err conftest.$ac_ext
8876 if $ac_preproc_ok; then :
8877   break
8878 fi
8879
8880     done
8881     ac_cv_prog_CPP=$CPP
8882
8883 fi
8884   CPP=$ac_cv_prog_CPP
8885 else
8886   ac_cv_prog_CPP=$CPP
8887 fi
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8889 $as_echo "$CPP" >&6; }
8890 ac_preproc_ok=false
8891 for ac_c_preproc_warn_flag in '' yes
8892 do
8893   # Use a header file that comes with gcc, so configuring glibc
8894   # with a fresh cross-compiler works.
8895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8896   # <limits.h> exists even on freestanding compilers.
8897   # On the NeXT, cc -E runs the code through the compiler's parser,
8898   # not just through cpp. "Syntax error" is here to catch this case.
8899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h.  */
8901 #ifdef __STDC__
8902 # include <limits.h>
8903 #else
8904 # include <assert.h>
8905 #endif
8906                      Syntax error
8907 _ACEOF
8908 if ac_fn_c_try_cpp "$LINENO"; then :
8909
8910 else
8911   # Broken: fails on valid input.
8912 continue
8913 fi
8914 rm -f conftest.err conftest.i conftest.$ac_ext
8915
8916   # OK, works on sane cases.  Now check whether nonexistent headers
8917   # can be detected and how.
8918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h.  */
8920 #include <ac_nonexistent.h>
8921 _ACEOF
8922 if ac_fn_c_try_cpp "$LINENO"; then :
8923   # Broken: success on invalid input.
8924 continue
8925 else
8926   # Passes both tests.
8927 ac_preproc_ok=:
8928 break
8929 fi
8930 rm -f conftest.err conftest.i conftest.$ac_ext
8931
8932 done
8933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8934 rm -f conftest.i conftest.err conftest.$ac_ext
8935 if $ac_preproc_ok; then :
8936
8937 else
8938   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8940 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8941 See \`config.log' for more details" "$LINENO" 5; }
8942 fi
8943
8944 ac_ext=c
8945 ac_cpp='$CPP $CPPFLAGS'
8946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8949
8950
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8952 $as_echo_n "checking for ANSI C header files... " >&6; }
8953 if ${ac_cv_header_stdc+:} false; then :
8954   $as_echo_n "(cached) " >&6
8955 else
8956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h.  */
8958 #include <stdlib.h>
8959 #include <stdarg.h>
8960 #include <string.h>
8961 #include <float.h>
8962
8963 int
8964 main ()
8965 {
8966
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"; then :
8972   ac_cv_header_stdc=yes
8973 else
8974   ac_cv_header_stdc=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977
8978 if test $ac_cv_header_stdc = yes; then
8979   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h.  */
8982 #include <string.h>
8983
8984 _ACEOF
8985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8986   $EGREP "memchr" >/dev/null 2>&1; then :
8987
8988 else
8989   ac_cv_header_stdc=no
8990 fi
8991 rm -f conftest*
8992
8993 fi
8994
8995 if test $ac_cv_header_stdc = yes; then
8996   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h.  */
8999 #include <stdlib.h>
9000
9001 _ACEOF
9002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9003   $EGREP "free" >/dev/null 2>&1; then :
9004
9005 else
9006   ac_cv_header_stdc=no
9007 fi
9008 rm -f conftest*
9009
9010 fi
9011
9012 if test $ac_cv_header_stdc = yes; then
9013   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9014   if test "$cross_compiling" = yes; then :
9015   :
9016 else
9017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h.  */
9019 #include <ctype.h>
9020 #include <stdlib.h>
9021 #if ((' ' & 0x0FF) == 0x020)
9022 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9023 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9024 #else
9025 # define ISLOWER(c) \
9026                    (('a' <= (c) && (c) <= 'i') \
9027                      || ('j' <= (c) && (c) <= 'r') \
9028                      || ('s' <= (c) && (c) <= 'z'))
9029 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9030 #endif
9031
9032 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9033 int
9034 main ()
9035 {
9036   int i;
9037   for (i = 0; i < 256; i++)
9038     if (XOR (islower (i), ISLOWER (i))
9039         || toupper (i) != TOUPPER (i))
9040       return 2;
9041   return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_run "$LINENO"; then :
9045
9046 else
9047   ac_cv_header_stdc=no
9048 fi
9049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9050   conftest.$ac_objext conftest.beam conftest.$ac_ext
9051 fi
9052
9053 fi
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9056 $as_echo "$ac_cv_header_stdc" >&6; }
9057 if test $ac_cv_header_stdc = yes; then
9058
9059 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9060
9061 fi
9062
9063 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9064 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9065                   inttypes.h stdint.h unistd.h
9066 do :
9067   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9068 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9069 "
9070 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9071   cat >>confdefs.h <<_ACEOF
9072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073 _ACEOF
9074
9075 fi
9076
9077 done
9078
9079
9080 for ac_header in dlfcn.h
9081 do :
9082   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9083 "
9084 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9085   cat >>confdefs.h <<_ACEOF
9086 #define HAVE_DLFCN_H 1
9087 _ACEOF
9088
9089 fi
9090
9091 done
9092
9093
9094
9095
9096
9097 # Set options
9098 # Check whether --enable-static was given.
9099 if test "${enable_static+set}" = set; then :
9100   enableval=$enable_static; p=${PACKAGE-default}
9101     case $enableval in
9102     yes) enable_static=yes ;;
9103     no) enable_static=no ;;
9104     *)
9105      enable_static=no
9106       # Look at the argument we got.  We use all the common list separators.
9107       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9108       for pkg in $enableval; do
9109         IFS=$lt_save_ifs
9110         if test "X$pkg" = "X$p"; then
9111           enable_static=yes
9112         fi
9113       done
9114       IFS=$lt_save_ifs
9115       ;;
9116     esac
9117 else
9118   enable_static=no
9119 fi
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130         enable_dlopen=no
9131
9132
9133   enable_win32_dll=no
9134
9135
9136             # Check whether --enable-shared was given.
9137 if test "${enable_shared+set}" = set; then :
9138   enableval=$enable_shared; p=${PACKAGE-default}
9139     case $enableval in
9140     yes) enable_shared=yes ;;
9141     no) enable_shared=no ;;
9142     *)
9143       enable_shared=no
9144       # Look at the argument we got.  We use all the common list separators.
9145       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9146       for pkg in $enableval; do
9147         IFS=$lt_save_ifs
9148         if test "X$pkg" = "X$p"; then
9149           enable_shared=yes
9150         fi
9151       done
9152       IFS=$lt_save_ifs
9153       ;;
9154     esac
9155 else
9156   enable_shared=yes
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 # Check whether --with-pic was given.
9170 if test "${with_pic+set}" = set; then :
9171   withval=$with_pic; lt_p=${PACKAGE-default}
9172     case $withval in
9173     yes|no) pic_mode=$withval ;;
9174     *)
9175       pic_mode=default
9176       # Look at the argument we got.  We use all the common list separators.
9177       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9178       for lt_pkg in $withval; do
9179         IFS=$lt_save_ifs
9180         if test "X$lt_pkg" = "X$lt_p"; then
9181           pic_mode=yes
9182         fi
9183       done
9184       IFS=$lt_save_ifs
9185       ;;
9186     esac
9187 else
9188   pic_mode=default
9189 fi
9190
9191
9192
9193
9194
9195
9196
9197
9198   # Check whether --enable-fast-install was given.
9199 if test "${enable_fast_install+set}" = set; then :
9200   enableval=$enable_fast_install; p=${PACKAGE-default}
9201     case $enableval in
9202     yes) enable_fast_install=yes ;;
9203     no) enable_fast_install=no ;;
9204     *)
9205       enable_fast_install=no
9206       # Look at the argument we got.  We use all the common list separators.
9207       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9208       for pkg in $enableval; do
9209         IFS=$lt_save_ifs
9210         if test "X$pkg" = "X$p"; then
9211           enable_fast_install=yes
9212         fi
9213       done
9214       IFS=$lt_save_ifs
9215       ;;
9216     esac
9217 else
9218   enable_fast_install=yes
9219 fi
9220
9221
9222
9223
9224
9225
9226
9227
9228   shared_archive_member_spec=
9229 case $host,$enable_shared in
9230 power*-*-aix[5-9]*,yes)
9231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9232 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9233
9234 # Check whether --with-aix-soname was given.
9235 if test "${with_aix_soname+set}" = set; then :
9236   withval=$with_aix_soname; case $withval in
9237     aix|svr4|both)
9238       ;;
9239     *)
9240       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9241       ;;
9242     esac
9243     lt_cv_with_aix_soname=$with_aix_soname
9244 else
9245   if ${lt_cv_with_aix_soname+:} false; then :
9246   $as_echo_n "(cached) " >&6
9247 else
9248   lt_cv_with_aix_soname=aix
9249 fi
9250
9251     with_aix_soname=$lt_cv_with_aix_soname
9252 fi
9253
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9255 $as_echo "$with_aix_soname" >&6; }
9256   if test aix != "$with_aix_soname"; then
9257     # For the AIX way of multilib, we name the shared archive member
9258     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9259     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9260     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9261     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9262     if test 64 = "${OBJECT_MODE-32}"; then
9263       shared_archive_member_spec=shr_64
9264     else
9265       shared_archive_member_spec=shr
9266     fi
9267   fi
9268   ;;
9269 *)
9270   with_aix_soname=aix
9271   ;;
9272 esac
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283 # This can be used to rebuild libtool when needed
9284 LIBTOOL_DEPS=$ltmain
9285
9286 # Always use our own libtool.
9287 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318 test -z "$LN_S" && LN_S="ln -s"
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 if test -n "${ZSH_VERSION+set}"; then
9334    setopt NO_GLOB_SUBST
9335 fi
9336
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9338 $as_echo_n "checking for objdir... " >&6; }
9339 if ${lt_cv_objdir+:} false; then :
9340   $as_echo_n "(cached) " >&6
9341 else
9342   rm -f .libs 2>/dev/null
9343 mkdir .libs 2>/dev/null
9344 if test -d .libs; then
9345   lt_cv_objdir=.libs
9346 else
9347   # MS-DOS does not allow filenames that begin with a dot.
9348   lt_cv_objdir=_libs
9349 fi
9350 rmdir .libs 2>/dev/null
9351 fi
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9353 $as_echo "$lt_cv_objdir" >&6; }
9354 objdir=$lt_cv_objdir
9355
9356
9357
9358
9359
9360 cat >>confdefs.h <<_ACEOF
9361 #define LT_OBJDIR "$lt_cv_objdir/"
9362 _ACEOF
9363
9364
9365
9366
9367 case $host_os in
9368 aix3*)
9369   # AIX sometimes has problems with the GCC collect2 program.  For some
9370   # reason, if we set the COLLECT_NAMES environment variable, the problems
9371   # vanish in a puff of smoke.
9372   if test set != "${COLLECT_NAMES+set}"; then
9373     COLLECT_NAMES=
9374     export COLLECT_NAMES
9375   fi
9376   ;;
9377 esac
9378
9379 # Global variables:
9380 ofile=libtool
9381 can_build_shared=yes
9382
9383 # All known linkers require a '.a' archive for static linking (except MSVC,
9384 # which needs '.lib').
9385 libext=a
9386
9387 with_gnu_ld=$lt_cv_prog_gnu_ld
9388
9389 old_CC=$CC
9390 old_CFLAGS=$CFLAGS
9391
9392 # Set sane defaults for various variables
9393 test -z "$CC" && CC=cc
9394 test -z "$LTCC" && LTCC=$CC
9395 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9396 test -z "$LD" && LD=ld
9397 test -z "$ac_objext" && ac_objext=o
9398
9399 func_cc_basename $compiler
9400 cc_basename=$func_cc_basename_result
9401
9402
9403 # Only perform the check for file, if the check method requires it
9404 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9405 case $deplibs_check_method in
9406 file_magic*)
9407   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9409 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9410 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9411   $as_echo_n "(cached) " >&6
9412 else
9413   case $MAGIC_CMD in
9414 [\\/*] |  ?:[\\/]*)
9415   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9416   ;;
9417 *)
9418   lt_save_MAGIC_CMD=$MAGIC_CMD
9419   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9420   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9421   for ac_dir in $ac_dummy; do
9422     IFS=$lt_save_ifs
9423     test -z "$ac_dir" && ac_dir=.
9424     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9425       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9426       if test -n "$file_magic_test_file"; then
9427         case $deplibs_check_method in
9428         "file_magic "*)
9429           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9430           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9431           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9432             $EGREP "$file_magic_regex" > /dev/null; then
9433             :
9434           else
9435             cat <<_LT_EOF 1>&2
9436
9437 *** Warning: the command libtool uses to detect shared libraries,
9438 *** $file_magic_cmd, produces output that libtool cannot recognize.
9439 *** The result is that libtool may fail to recognize shared libraries
9440 *** as such.  This will affect the creation of libtool libraries that
9441 *** depend on shared libraries, but programs linked with such libtool
9442 *** libraries will work regardless of this problem.  Nevertheless, you
9443 *** may want to report the problem to your system manager and/or to
9444 *** bug-libtool@gnu.org
9445
9446 _LT_EOF
9447           fi ;;
9448         esac
9449       fi
9450       break
9451     fi
9452   done
9453   IFS=$lt_save_ifs
9454   MAGIC_CMD=$lt_save_MAGIC_CMD
9455   ;;
9456 esac
9457 fi
9458
9459 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9460 if test -n "$MAGIC_CMD"; then
9461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9462 $as_echo "$MAGIC_CMD" >&6; }
9463 else
9464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465 $as_echo "no" >&6; }
9466 fi
9467
9468
9469
9470
9471
9472 if test -z "$lt_cv_path_MAGIC_CMD"; then
9473   if test -n "$ac_tool_prefix"; then
9474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9475 $as_echo_n "checking for file... " >&6; }
9476 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9477   $as_echo_n "(cached) " >&6
9478 else
9479   case $MAGIC_CMD in
9480 [\\/*] |  ?:[\\/]*)
9481   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9482   ;;
9483 *)
9484   lt_save_MAGIC_CMD=$MAGIC_CMD
9485   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9486   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9487   for ac_dir in $ac_dummy; do
9488     IFS=$lt_save_ifs
9489     test -z "$ac_dir" && ac_dir=.
9490     if test -f "$ac_dir/file"; then
9491       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9492       if test -n "$file_magic_test_file"; then
9493         case $deplibs_check_method in
9494         "file_magic "*)
9495           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9496           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9497           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9498             $EGREP "$file_magic_regex" > /dev/null; then
9499             :
9500           else
9501             cat <<_LT_EOF 1>&2
9502
9503 *** Warning: the command libtool uses to detect shared libraries,
9504 *** $file_magic_cmd, produces output that libtool cannot recognize.
9505 *** The result is that libtool may fail to recognize shared libraries
9506 *** as such.  This will affect the creation of libtool libraries that
9507 *** depend on shared libraries, but programs linked with such libtool
9508 *** libraries will work regardless of this problem.  Nevertheless, you
9509 *** may want to report the problem to your system manager and/or to
9510 *** bug-libtool@gnu.org
9511
9512 _LT_EOF
9513           fi ;;
9514         esac
9515       fi
9516       break
9517     fi
9518   done
9519   IFS=$lt_save_ifs
9520   MAGIC_CMD=$lt_save_MAGIC_CMD
9521   ;;
9522 esac
9523 fi
9524
9525 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9526 if test -n "$MAGIC_CMD"; then
9527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9528 $as_echo "$MAGIC_CMD" >&6; }
9529 else
9530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 $as_echo "no" >&6; }
9532 fi
9533
9534
9535   else
9536     MAGIC_CMD=:
9537   fi
9538 fi
9539
9540   fi
9541   ;;
9542 esac
9543
9544 # Use C for the default configuration in the libtool script
9545
9546 lt_save_CC=$CC
9547 ac_ext=c
9548 ac_cpp='$CPP $CPPFLAGS'
9549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9552
9553
9554 # Source file extension for C test sources.
9555 ac_ext=c
9556
9557 # Object file extension for compiled C test sources.
9558 objext=o
9559 objext=$objext
9560
9561 # Code to be used in simple compile tests
9562 lt_simple_compile_test_code="int some_variable = 0;"
9563
9564 # Code to be used in simple link tests
9565 lt_simple_link_test_code='int main(){return(0);}'
9566
9567
9568
9569
9570
9571
9572
9573 # If no C compiler was specified, use CC.
9574 LTCC=${LTCC-"$CC"}
9575
9576 # If no C compiler flags were specified, use CFLAGS.
9577 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9578
9579 # Allow CC to be a program name with arguments.
9580 compiler=$CC
9581
9582 # Save the default compiler, since it gets overwritten when the other
9583 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9584 compiler_DEFAULT=$CC
9585
9586 # save warnings/boilerplate of simple test code
9587 ac_outfile=conftest.$ac_objext
9588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9590 _lt_compiler_boilerplate=`cat conftest.err`
9591 $RM conftest*
9592
9593 ac_outfile=conftest.$ac_objext
9594 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9596 _lt_linker_boilerplate=`cat conftest.err`
9597 $RM -r conftest*
9598
9599
9600 ## CAVEAT EMPTOR:
9601 ## There is no encapsulation within the following macros, do not change
9602 ## the running order or otherwise move them around unless you know exactly
9603 ## what you are doing...
9604 if test -n "$compiler"; then
9605
9606 lt_prog_compiler_no_builtin_flag=
9607
9608 if test yes = "$GCC"; then
9609   case $cc_basename in
9610   nvcc*)
9611     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9612   *)
9613     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9614   esac
9615
9616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9617 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9618 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9619   $as_echo_n "(cached) " >&6
9620 else
9621   lt_cv_prog_compiler_rtti_exceptions=no
9622    ac_outfile=conftest.$ac_objext
9623    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9624    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9625    # Insert the option either (1) after the last *FLAGS variable, or
9626    # (2) before a word containing "conftest.", or (3) at the end.
9627    # Note that $ac_compile itself does not contain backslashes and begins
9628    # with a dollar sign (not a hyphen), so the echo should work correctly.
9629    # The option is referenced via a variable to avoid confusing sed.
9630    lt_compile=`echo "$ac_compile" | $SED \
9631    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9632    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9633    -e 's:$: $lt_compiler_flag:'`
9634    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9635    (eval "$lt_compile" 2>conftest.err)
9636    ac_status=$?
9637    cat conftest.err >&5
9638    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639    if (exit $ac_status) && test -s "$ac_outfile"; then
9640      # The compiler can only warn and ignore the option if not recognized
9641      # So say no if there are warnings other than the usual output.
9642      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9643      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9644      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9645        lt_cv_prog_compiler_rtti_exceptions=yes
9646      fi
9647    fi
9648    $RM conftest*
9649
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9652 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9653
9654 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9655     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9656 else
9657     :
9658 fi
9659
9660 fi
9661
9662
9663
9664
9665
9666
9667   lt_prog_compiler_wl=
9668 lt_prog_compiler_pic=
9669 lt_prog_compiler_static=
9670
9671
9672   if test yes = "$GCC"; then
9673     lt_prog_compiler_wl='-Wl,'
9674     lt_prog_compiler_static='-static'
9675
9676     case $host_os in
9677       aix*)
9678       # All AIX code is PIC.
9679       if test ia64 = "$host_cpu"; then
9680         # AIX 5 now supports IA64 processor
9681         lt_prog_compiler_static='-Bstatic'
9682       fi
9683       lt_prog_compiler_pic='-fPIC'
9684       ;;
9685
9686     amigaos*)
9687       case $host_cpu in
9688       powerpc)
9689             # see comment about AmigaOS4 .so support
9690             lt_prog_compiler_pic='-fPIC'
9691         ;;
9692       m68k)
9693             # FIXME: we need at least 68020 code to build shared libraries, but
9694             # adding the '-m68020' flag to GCC prevents building anything better,
9695             # like '-m68040'.
9696             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9697         ;;
9698       esac
9699       ;;
9700
9701     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9702       # PIC is the default for these OSes.
9703       ;;
9704
9705     mingw* | cygwin* | pw32* | os2* | cegcc*)
9706       # This hack is so that the source file can tell whether it is being
9707       # built for inclusion in a dll (and should export symbols for example).
9708       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9709       # (--disable-auto-import) libraries
9710       lt_prog_compiler_pic='-DDLL_EXPORT'
9711       case $host_os in
9712       os2*)
9713         lt_prog_compiler_static='$wl-static'
9714         ;;
9715       esac
9716       ;;
9717
9718     darwin* | rhapsody*)
9719       # PIC is the default on this platform
9720       # Common symbols not allowed in MH_DYLIB files
9721       lt_prog_compiler_pic='-fno-common'
9722       ;;
9723
9724     haiku*)
9725       # PIC is the default for Haiku.
9726       # The "-static" flag exists, but is broken.
9727       lt_prog_compiler_static=
9728       ;;
9729
9730     hpux*)
9731       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9732       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9733       # sets the default TLS model and affects inlining.
9734       case $host_cpu in
9735       hppa*64*)
9736         # +Z the default
9737         ;;
9738       *)
9739         lt_prog_compiler_pic='-fPIC'
9740         ;;
9741       esac
9742       ;;
9743
9744     interix[3-9]*)
9745       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9746       # Instead, we relocate shared libraries at runtime.
9747       ;;
9748
9749     msdosdjgpp*)
9750       # Just because we use GCC doesn't mean we suddenly get shared libraries
9751       # on systems that don't support them.
9752       lt_prog_compiler_can_build_shared=no
9753       enable_shared=no
9754       ;;
9755
9756     *nto* | *qnx*)
9757       # QNX uses GNU C++, but need to define -shared option too, otherwise
9758       # it will coredump.
9759       lt_prog_compiler_pic='-fPIC -shared'
9760       ;;
9761
9762     sysv4*MP*)
9763       if test -d /usr/nec; then
9764         lt_prog_compiler_pic=-Kconform_pic
9765       fi
9766       ;;
9767
9768     *)
9769       lt_prog_compiler_pic='-fPIC'
9770       ;;
9771     esac
9772
9773     case $cc_basename in
9774     nvcc*) # Cuda Compiler Driver 2.2
9775       lt_prog_compiler_wl='-Xlinker '
9776       if test -n "$lt_prog_compiler_pic"; then
9777         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9778       fi
9779       ;;
9780     esac
9781   else
9782     # PORTME Check for flag to pass linker flags through the system compiler.
9783     case $host_os in
9784     aix*)
9785       lt_prog_compiler_wl='-Wl,'
9786       if test ia64 = "$host_cpu"; then
9787         # AIX 5 now supports IA64 processor
9788         lt_prog_compiler_static='-Bstatic'
9789       else
9790         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9791       fi
9792       ;;
9793
9794     darwin* | rhapsody*)
9795       # PIC is the default on this platform
9796       # Common symbols not allowed in MH_DYLIB files
9797       lt_prog_compiler_pic='-fno-common'
9798       case $cc_basename in
9799       nagfor*)
9800         # NAG Fortran compiler
9801         lt_prog_compiler_wl='-Wl,-Wl,,'
9802         lt_prog_compiler_pic='-PIC'
9803         lt_prog_compiler_static='-Bstatic'
9804         ;;
9805       esac
9806       ;;
9807
9808     mingw* | cygwin* | pw32* | os2* | cegcc*)
9809       # This hack is so that the source file can tell whether it is being
9810       # built for inclusion in a dll (and should export symbols for example).
9811       lt_prog_compiler_pic='-DDLL_EXPORT'
9812       case $host_os in
9813       os2*)
9814         lt_prog_compiler_static='$wl-static'
9815         ;;
9816       esac
9817       ;;
9818
9819     hpux9* | hpux10* | hpux11*)
9820       lt_prog_compiler_wl='-Wl,'
9821       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9822       # not for PA HP-UX.
9823       case $host_cpu in
9824       hppa*64*|ia64*)
9825         # +Z the default
9826         ;;
9827       *)
9828         lt_prog_compiler_pic='+Z'
9829         ;;
9830       esac
9831       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9832       lt_prog_compiler_static='$wl-a ${wl}archive'
9833       ;;
9834
9835     irix5* | irix6* | nonstopux*)
9836       lt_prog_compiler_wl='-Wl,'
9837       # PIC (with -KPIC) is the default.
9838       lt_prog_compiler_static='-non_shared'
9839       ;;
9840
9841     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9842       case $cc_basename in
9843       # old Intel for x86_64, which still supported -KPIC.
9844       ecc*)
9845         lt_prog_compiler_wl='-Wl,'
9846         lt_prog_compiler_pic='-KPIC'
9847         lt_prog_compiler_static='-static'
9848         ;;
9849       # icc used to be incompatible with GCC.
9850       # ICC 10 doesn't accept -KPIC any more.
9851       icc* | ifort*)
9852         lt_prog_compiler_wl='-Wl,'
9853         lt_prog_compiler_pic='-fPIC'
9854         lt_prog_compiler_static='-static'
9855         ;;
9856       # Lahey Fortran 8.1.
9857       lf95*)
9858         lt_prog_compiler_wl='-Wl,'
9859         lt_prog_compiler_pic='--shared'
9860         lt_prog_compiler_static='--static'
9861         ;;
9862       nagfor*)
9863         # NAG Fortran compiler
9864         lt_prog_compiler_wl='-Wl,-Wl,,'
9865         lt_prog_compiler_pic='-PIC'
9866         lt_prog_compiler_static='-Bstatic'
9867         ;;
9868       tcc*)
9869         # Fabrice Bellard et al's Tiny C Compiler
9870         lt_prog_compiler_wl='-Wl,'
9871         lt_prog_compiler_pic='-fPIC'
9872         lt_prog_compiler_static='-static'
9873         ;;
9874       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9875         # Portland Group compilers (*not* the Pentium gcc compiler,
9876         # which looks to be a dead project)
9877         lt_prog_compiler_wl='-Wl,'
9878         lt_prog_compiler_pic='-fpic'
9879         lt_prog_compiler_static='-Bstatic'
9880         ;;
9881       ccc*)
9882         lt_prog_compiler_wl='-Wl,'
9883         # All Alpha code is PIC.
9884         lt_prog_compiler_static='-non_shared'
9885         ;;
9886       xl* | bgxl* | bgf* | mpixl*)
9887         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9888         lt_prog_compiler_wl='-Wl,'
9889         lt_prog_compiler_pic='-qpic'
9890         lt_prog_compiler_static='-qstaticlink'
9891         ;;
9892       *)
9893         case `$CC -V 2>&1 | sed 5q` in
9894         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9895           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9896           lt_prog_compiler_pic='-KPIC'
9897           lt_prog_compiler_static='-Bstatic'
9898           lt_prog_compiler_wl=''
9899           ;;
9900         *Sun\ F* | *Sun*Fortran*)
9901           lt_prog_compiler_pic='-KPIC'
9902           lt_prog_compiler_static='-Bstatic'
9903           lt_prog_compiler_wl='-Qoption ld '
9904           ;;
9905         *Sun\ C*)
9906           # Sun C 5.9
9907           lt_prog_compiler_pic='-KPIC'
9908           lt_prog_compiler_static='-Bstatic'
9909           lt_prog_compiler_wl='-Wl,'
9910           ;;
9911         *Intel*\ [CF]*Compiler*)
9912           lt_prog_compiler_wl='-Wl,'
9913           lt_prog_compiler_pic='-fPIC'
9914           lt_prog_compiler_static='-static'
9915           ;;
9916         *Portland\ Group*)
9917           lt_prog_compiler_wl='-Wl,'
9918           lt_prog_compiler_pic='-fpic'
9919           lt_prog_compiler_static='-Bstatic'
9920           ;;
9921         esac
9922         ;;
9923       esac
9924       ;;
9925
9926     newsos6)
9927       lt_prog_compiler_pic='-KPIC'
9928       lt_prog_compiler_static='-Bstatic'
9929       ;;
9930
9931     *nto* | *qnx*)
9932       # QNX uses GNU C++, but need to define -shared option too, otherwise
9933       # it will coredump.
9934       lt_prog_compiler_pic='-fPIC -shared'
9935       ;;
9936
9937     osf3* | osf4* | osf5*)
9938       lt_prog_compiler_wl='-Wl,'
9939       # All OSF/1 code is PIC.
9940       lt_prog_compiler_static='-non_shared'
9941       ;;
9942
9943     rdos*)
9944       lt_prog_compiler_static='-non_shared'
9945       ;;
9946
9947     solaris*)
9948       lt_prog_compiler_pic='-KPIC'
9949       lt_prog_compiler_static='-Bstatic'
9950       case $cc_basename in
9951       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9952         lt_prog_compiler_wl='-Qoption ld ';;
9953       *)
9954         lt_prog_compiler_wl='-Wl,';;
9955       esac
9956       ;;
9957
9958     sunos4*)
9959       lt_prog_compiler_wl='-Qoption ld '
9960       lt_prog_compiler_pic='-PIC'
9961       lt_prog_compiler_static='-Bstatic'
9962       ;;
9963
9964     sysv4 | sysv4.2uw2* | sysv4.3*)
9965       lt_prog_compiler_wl='-Wl,'
9966       lt_prog_compiler_pic='-KPIC'
9967       lt_prog_compiler_static='-Bstatic'
9968       ;;
9969
9970     sysv4*MP*)
9971       if test -d /usr/nec; then
9972         lt_prog_compiler_pic='-Kconform_pic'
9973         lt_prog_compiler_static='-Bstatic'
9974       fi
9975       ;;
9976
9977     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9978       lt_prog_compiler_wl='-Wl,'
9979       lt_prog_compiler_pic='-KPIC'
9980       lt_prog_compiler_static='-Bstatic'
9981       ;;
9982
9983     unicos*)
9984       lt_prog_compiler_wl='-Wl,'
9985       lt_prog_compiler_can_build_shared=no
9986       ;;
9987
9988     uts4*)
9989       lt_prog_compiler_pic='-pic'
9990       lt_prog_compiler_static='-Bstatic'
9991       ;;
9992
9993     *)
9994       lt_prog_compiler_can_build_shared=no
9995       ;;
9996     esac
9997   fi
9998
9999 case $host_os in
10000   # For platforms that do not support PIC, -DPIC is meaningless:
10001   *djgpp*)
10002     lt_prog_compiler_pic=
10003     ;;
10004   *)
10005     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10006     ;;
10007 esac
10008
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10010 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10011 if ${lt_cv_prog_compiler_pic+:} false; then :
10012   $as_echo_n "(cached) " >&6
10013 else
10014   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10017 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10018 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10019
10020 #
10021 # Check to make sure the PIC flag actually works.
10022 #
10023 if test -n "$lt_prog_compiler_pic"; then
10024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10025 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10026 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10027   $as_echo_n "(cached) " >&6
10028 else
10029   lt_cv_prog_compiler_pic_works=no
10030    ac_outfile=conftest.$ac_objext
10031    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10032    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10033    # Insert the option either (1) after the last *FLAGS variable, or
10034    # (2) before a word containing "conftest.", or (3) at the end.
10035    # Note that $ac_compile itself does not contain backslashes and begins
10036    # with a dollar sign (not a hyphen), so the echo should work correctly.
10037    # The option is referenced via a variable to avoid confusing sed.
10038    lt_compile=`echo "$ac_compile" | $SED \
10039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10041    -e 's:$: $lt_compiler_flag:'`
10042    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10043    (eval "$lt_compile" 2>conftest.err)
10044    ac_status=$?
10045    cat conftest.err >&5
10046    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047    if (exit $ac_status) && test -s "$ac_outfile"; then
10048      # The compiler can only warn and ignore the option if not recognized
10049      # So say no if there are warnings other than the usual output.
10050      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10051      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10052      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10053        lt_cv_prog_compiler_pic_works=yes
10054      fi
10055    fi
10056    $RM conftest*
10057
10058 fi
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10060 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10061
10062 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10063     case $lt_prog_compiler_pic in
10064      "" | " "*) ;;
10065      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10066      esac
10067 else
10068     lt_prog_compiler_pic=
10069      lt_prog_compiler_can_build_shared=no
10070 fi
10071
10072 fi
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084 #
10085 # Check to make sure the static flag actually works.
10086 #
10087 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10089 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10090 if ${lt_cv_prog_compiler_static_works+:} false; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   lt_cv_prog_compiler_static_works=no
10094    save_LDFLAGS=$LDFLAGS
10095    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10096    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10097    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10098      # The linker can only warn and ignore the option if not recognized
10099      # So say no if there are warnings
10100      if test -s conftest.err; then
10101        # Append any errors to the config.log.
10102        cat conftest.err 1>&5
10103        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10104        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10105        if diff conftest.exp conftest.er2 >/dev/null; then
10106          lt_cv_prog_compiler_static_works=yes
10107        fi
10108      else
10109        lt_cv_prog_compiler_static_works=yes
10110      fi
10111    fi
10112    $RM -r conftest*
10113    LDFLAGS=$save_LDFLAGS
10114
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10117 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10118
10119 if test yes = "$lt_cv_prog_compiler_static_works"; then
10120     :
10121 else
10122     lt_prog_compiler_static=
10123 fi
10124
10125
10126
10127
10128
10129
10130
10131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10133 if ${lt_cv_prog_compiler_c_o+:} false; then :
10134   $as_echo_n "(cached) " >&6
10135 else
10136   lt_cv_prog_compiler_c_o=no
10137    $RM -r conftest 2>/dev/null
10138    mkdir conftest
10139    cd conftest
10140    mkdir out
10141    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10142
10143    lt_compiler_flag="-o out/conftest2.$ac_objext"
10144    # Insert the option either (1) after the last *FLAGS variable, or
10145    # (2) before a word containing "conftest.", or (3) at the end.
10146    # Note that $ac_compile itself does not contain backslashes and begins
10147    # with a dollar sign (not a hyphen), so the echo should work correctly.
10148    lt_compile=`echo "$ac_compile" | $SED \
10149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10151    -e 's:$: $lt_compiler_flag:'`
10152    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10153    (eval "$lt_compile" 2>out/conftest.err)
10154    ac_status=$?
10155    cat out/conftest.err >&5
10156    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10158    then
10159      # The compiler can only warn and ignore the option if not recognized
10160      # So say no if there are warnings
10161      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10162      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10163      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10164        lt_cv_prog_compiler_c_o=yes
10165      fi
10166    fi
10167    chmod u+w . 2>&5
10168    $RM conftest*
10169    # SGI C++ compiler will create directory out/ii_files/ for
10170    # template instantiation
10171    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10172    $RM out/* && rmdir out
10173    cd ..
10174    $RM -r conftest
10175    $RM conftest*
10176
10177 fi
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10179 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10180
10181
10182
10183
10184
10185
10186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10187 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10188 if ${lt_cv_prog_compiler_c_o+:} false; then :
10189   $as_echo_n "(cached) " >&6
10190 else
10191   lt_cv_prog_compiler_c_o=no
10192    $RM -r conftest 2>/dev/null
10193    mkdir conftest
10194    cd conftest
10195    mkdir out
10196    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10197
10198    lt_compiler_flag="-o out/conftest2.$ac_objext"
10199    # Insert the option either (1) after the last *FLAGS variable, or
10200    # (2) before a word containing "conftest.", or (3) at the end.
10201    # Note that $ac_compile itself does not contain backslashes and begins
10202    # with a dollar sign (not a hyphen), so the echo should work correctly.
10203    lt_compile=`echo "$ac_compile" | $SED \
10204    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10205    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10206    -e 's:$: $lt_compiler_flag:'`
10207    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10208    (eval "$lt_compile" 2>out/conftest.err)
10209    ac_status=$?
10210    cat out/conftest.err >&5
10211    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10213    then
10214      # The compiler can only warn and ignore the option if not recognized
10215      # So say no if there are warnings
10216      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10217      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10218      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10219        lt_cv_prog_compiler_c_o=yes
10220      fi
10221    fi
10222    chmod u+w . 2>&5
10223    $RM conftest*
10224    # SGI C++ compiler will create directory out/ii_files/ for
10225    # template instantiation
10226    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10227    $RM out/* && rmdir out
10228    cd ..
10229    $RM -r conftest
10230    $RM conftest*
10231
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10234 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10235
10236
10237
10238
10239 hard_links=nottested
10240 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10241   # do not overwrite the value of need_locks provided by the user
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10243 $as_echo_n "checking if we can lock with hard links... " >&6; }
10244   hard_links=yes
10245   $RM conftest*
10246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10247   touch conftest.a
10248   ln conftest.a conftest.b 2>&5 || hard_links=no
10249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10251 $as_echo "$hard_links" >&6; }
10252   if test no = "$hard_links"; then
10253     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10254 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10255     need_locks=warn
10256   fi
10257 else
10258   need_locks=no
10259 fi
10260
10261
10262
10263
10264
10265
10266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10267 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10268
10269   runpath_var=
10270   allow_undefined_flag=
10271   always_export_symbols=no
10272   archive_cmds=
10273   archive_expsym_cmds=
10274   compiler_needs_object=no
10275   enable_shared_with_static_runtimes=no
10276   export_dynamic_flag_spec=
10277   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10278   hardcode_automatic=no
10279   hardcode_direct=no
10280   hardcode_direct_absolute=no
10281   hardcode_libdir_flag_spec=
10282   hardcode_libdir_separator=
10283   hardcode_minus_L=no
10284   hardcode_shlibpath_var=unsupported
10285   inherit_rpath=no
10286   link_all_deplibs=unknown
10287   module_cmds=
10288   module_expsym_cmds=
10289   old_archive_from_new_cmds=
10290   old_archive_from_expsyms_cmds=
10291   thread_safe_flag_spec=
10292   whole_archive_flag_spec=
10293   # include_expsyms should be a list of space-separated symbols to be *always*
10294   # included in the symbol list
10295   include_expsyms=
10296   # exclude_expsyms can be an extended regexp of symbols to exclude
10297   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10298   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10299   # as well as any symbol that contains 'd'.
10300   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10301   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10302   # platforms (ab)use it in PIC code, but their linkers get confused if
10303   # the symbol is explicitly referenced.  Since portable code cannot
10304   # rely on this symbol name, it's probably fine to never include it in
10305   # preloaded symbol tables.
10306   # Exclude shared library initialization/finalization symbols.
10307   extract_expsyms_cmds=
10308
10309   case $host_os in
10310   cygwin* | mingw* | pw32* | cegcc*)
10311     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10312     # When not using gcc, we currently assume that we are using
10313     # Microsoft Visual C++.
10314     if test yes != "$GCC"; then
10315       with_gnu_ld=no
10316     fi
10317     ;;
10318   interix*)
10319     # we just hope/assume this is gcc and not c89 (= MSVC++)
10320     with_gnu_ld=yes
10321     ;;
10322   openbsd* | bitrig*)
10323     with_gnu_ld=no
10324     ;;
10325   linux* | k*bsd*-gnu | gnu*)
10326     link_all_deplibs=no
10327     ;;
10328   esac
10329
10330   ld_shlibs=yes
10331
10332   # On some targets, GNU ld is compatible enough with the native linker
10333   # that we're better off using the native interface for both.
10334   lt_use_gnu_ld_interface=no
10335   if test yes = "$with_gnu_ld"; then
10336     case $host_os in
10337       aix*)
10338         # The AIX port of GNU ld has always aspired to compatibility
10339         # with the native linker.  However, as the warning in the GNU ld
10340         # block says, versions before 2.19.5* couldn't really create working
10341         # shared libraries, regardless of the interface used.
10342         case `$LD -v 2>&1` in
10343           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10344           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10345           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10346           *)
10347             lt_use_gnu_ld_interface=yes
10348             ;;
10349         esac
10350         ;;
10351       *)
10352         lt_use_gnu_ld_interface=yes
10353         ;;
10354     esac
10355   fi
10356
10357   if test yes = "$lt_use_gnu_ld_interface"; then
10358     # If archive_cmds runs LD, not CC, wlarc should be empty
10359     wlarc='$wl'
10360
10361     # Set some defaults for GNU ld with shared library support. These
10362     # are reset later if shared libraries are not supported. Putting them
10363     # here allows them to be overridden if necessary.
10364     runpath_var=LD_RUN_PATH
10365     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10366     export_dynamic_flag_spec='$wl--export-dynamic'
10367     # ancient GNU ld didn't support --whole-archive et. al.
10368     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10369       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10370     else
10371       whole_archive_flag_spec=
10372     fi
10373     supports_anon_versioning=no
10374     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10375       *GNU\ gold*) supports_anon_versioning=yes ;;
10376       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10377       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10378       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10379       *\ 2.11.*) ;; # other 2.11 versions
10380       *) supports_anon_versioning=yes ;;
10381     esac
10382
10383     # See if GNU ld supports shared libraries.
10384     case $host_os in
10385     aix[3-9]*)
10386       # On AIX/PPC, the GNU linker is very broken
10387       if test ia64 != "$host_cpu"; then
10388         ld_shlibs=no
10389         cat <<_LT_EOF 1>&2
10390
10391 *** Warning: the GNU linker, at least up to release 2.19, is reported
10392 *** to be unable to reliably create shared libraries on AIX.
10393 *** Therefore, libtool is disabling shared libraries support.  If you
10394 *** really care for shared libraries, you may want to install binutils
10395 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10396 *** You will then need to restart the configuration process.
10397
10398 _LT_EOF
10399       fi
10400       ;;
10401
10402     amigaos*)
10403       case $host_cpu in
10404       powerpc)
10405             # see comment about AmigaOS4 .so support
10406             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10407             archive_expsym_cmds=''
10408         ;;
10409       m68k)
10410             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)'
10411             hardcode_libdir_flag_spec='-L$libdir'
10412             hardcode_minus_L=yes
10413         ;;
10414       esac
10415       ;;
10416
10417     beos*)
10418       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10419         allow_undefined_flag=unsupported
10420         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10421         # support --undefined.  This deserves some investigation.  FIXME
10422         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10423       else
10424         ld_shlibs=no
10425       fi
10426       ;;
10427
10428     cygwin* | mingw* | pw32* | cegcc*)
10429       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10430       # as there is no search path for DLLs.
10431       hardcode_libdir_flag_spec='-L$libdir'
10432       export_dynamic_flag_spec='$wl--export-all-symbols'
10433       allow_undefined_flag=unsupported
10434       always_export_symbols=no
10435       enable_shared_with_static_runtimes=yes
10436       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'
10437       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10438
10439       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10440         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10441         # If the export-symbols file already is a .def file, use it as
10442         # is; otherwise, prepend EXPORTS...
10443         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10444           cp $export_symbols $output_objdir/$soname.def;
10445         else
10446           echo EXPORTS > $output_objdir/$soname.def;
10447           cat $export_symbols >> $output_objdir/$soname.def;
10448         fi~
10449         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10450       else
10451         ld_shlibs=no
10452       fi
10453       ;;
10454
10455     haiku*)
10456       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10457       link_all_deplibs=yes
10458       ;;
10459
10460     os2*)
10461       hardcode_libdir_flag_spec='-L$libdir'
10462       hardcode_minus_L=yes
10463       allow_undefined_flag=unsupported
10464       shrext_cmds=.dll
10465       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10466         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10467         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10468         $ECHO EXPORTS >> $output_objdir/$libname.def~
10469         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10470         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10471         emximp -o $lib $output_objdir/$libname.def'
10472       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10473         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10474         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10475         $ECHO EXPORTS >> $output_objdir/$libname.def~
10476         prefix_cmds="$SED"~
10477         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10478           prefix_cmds="$prefix_cmds -e 1d";
10479         fi~
10480         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10481         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10482         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10483         emximp -o $lib $output_objdir/$libname.def'
10484       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10485       enable_shared_with_static_runtimes=yes
10486       ;;
10487
10488     interix[3-9]*)
10489       hardcode_direct=no
10490       hardcode_shlibpath_var=no
10491       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10492       export_dynamic_flag_spec='$wl-E'
10493       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10494       # Instead, shared libraries are loaded at an image base (0x10000000 by
10495       # default) and relocated if they conflict, which is a slow very memory
10496       # consuming and fragmenting process.  To avoid this, we pick a random,
10497       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10498       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10499       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10500       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'
10501       ;;
10502
10503     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10504       tmp_diet=no
10505       if test linux-dietlibc = "$host_os"; then
10506         case $cc_basename in
10507           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10508         esac
10509       fi
10510       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10511          && test no = "$tmp_diet"
10512       then
10513         tmp_addflag=' $pic_flag'
10514         tmp_sharedflag='-shared'
10515         case $cc_basename,$host_cpu in
10516         pgcc*)                          # Portland Group C compiler
10517           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'
10518           tmp_addflag=' $pic_flag'
10519           ;;
10520         pgf77* | pgf90* | pgf95* | pgfortran*)
10521                                         # Portland Group f77 and f90 compilers
10522           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'
10523           tmp_addflag=' $pic_flag -Mnomain' ;;
10524         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10525           tmp_addflag=' -i_dynamic' ;;
10526         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10527           tmp_addflag=' -i_dynamic -nofor_main' ;;
10528         ifc* | ifort*)                  # Intel Fortran compiler
10529           tmp_addflag=' -nofor_main' ;;
10530         lf95*)                          # Lahey Fortran 8.1
10531           whole_archive_flag_spec=
10532           tmp_sharedflag='--shared' ;;
10533         nagfor*)                        # NAGFOR 5.3
10534           tmp_sharedflag='-Wl,-shared' ;;
10535         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10536           tmp_sharedflag='-qmkshrobj'
10537           tmp_addflag= ;;
10538         nvcc*)  # Cuda Compiler Driver 2.2
10539           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'
10540           compiler_needs_object=yes
10541           ;;
10542         esac
10543         case `$CC -V 2>&1 | sed 5q` in
10544         *Sun\ C*)                       # Sun C 5.9
10545           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'
10546           compiler_needs_object=yes
10547           tmp_sharedflag='-G' ;;
10548         *Sun\ F*)                       # Sun Fortran 8.3
10549           tmp_sharedflag='-G' ;;
10550         esac
10551         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10552
10553         if test yes = "$supports_anon_versioning"; then
10554           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10555             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10556             echo "local: *; };" >> $output_objdir/$libname.ver~
10557             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10558         fi
10559
10560         case $cc_basename in
10561         tcc*)
10562           export_dynamic_flag_spec='-rdynamic'
10563           ;;
10564         xlf* | bgf* | bgxlf* | mpixlf*)
10565           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10566           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10567           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10568           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10569           if test yes = "$supports_anon_versioning"; then
10570             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10571               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10572               echo "local: *; };" >> $output_objdir/$libname.ver~
10573               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10574           fi
10575           ;;
10576         esac
10577       else
10578         ld_shlibs=no
10579       fi
10580       ;;
10581
10582     netbsd* | netbsdelf*-gnu)
10583       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10584         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10585         wlarc=
10586       else
10587         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10588         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10589       fi
10590       ;;
10591
10592     solaris*)
10593       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10594         ld_shlibs=no
10595         cat <<_LT_EOF 1>&2
10596
10597 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10598 *** create shared libraries on Solaris systems.  Therefore, libtool
10599 *** is disabling shared libraries support.  We urge you to upgrade GNU
10600 *** binutils to release 2.9.1 or newer.  Another option is to modify
10601 *** your PATH or compiler configuration so that the native linker is
10602 *** used, and then restart.
10603
10604 _LT_EOF
10605       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10606         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10607         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10608       else
10609         ld_shlibs=no
10610       fi
10611       ;;
10612
10613     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10614       case `$LD -v 2>&1` in
10615         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10616         ld_shlibs=no
10617         cat <<_LT_EOF 1>&2
10618
10619 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10620 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10621 *** is disabling shared libraries support.  We urge you to upgrade GNU
10622 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10623 *** your PATH or compiler configuration so that the native linker is
10624 *** used, and then restart.
10625
10626 _LT_EOF
10627         ;;
10628         *)
10629           # For security reasons, it is highly recommended that you always
10630           # use absolute paths for naming shared libraries, and exclude the
10631           # DT_RUNPATH tag from executables and libraries.  But doing so
10632           # requires that you compile everything twice, which is a pain.
10633           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10634             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10635             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10636             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10637           else
10638             ld_shlibs=no
10639           fi
10640         ;;
10641       esac
10642       ;;
10643
10644     sunos4*)
10645       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10646       wlarc=
10647       hardcode_direct=yes
10648       hardcode_shlibpath_var=no
10649       ;;
10650
10651     *)
10652       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10653         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10654         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10655       else
10656         ld_shlibs=no
10657       fi
10658       ;;
10659     esac
10660
10661     if test no = "$ld_shlibs"; then
10662       runpath_var=
10663       hardcode_libdir_flag_spec=
10664       export_dynamic_flag_spec=
10665       whole_archive_flag_spec=
10666     fi
10667   else
10668     # PORTME fill in a description of your system's linker (not GNU ld)
10669     case $host_os in
10670     aix3*)
10671       allow_undefined_flag=unsupported
10672       always_export_symbols=yes
10673       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'
10674       # Note: this linker hardcodes the directories in LIBPATH if there
10675       # are no directories specified by -L.
10676       hardcode_minus_L=yes
10677       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10678         # Neither direct hardcoding nor static linking is supported with a
10679         # broken collect2.
10680         hardcode_direct=unsupported
10681       fi
10682       ;;
10683
10684     aix[4-9]*)
10685       if test ia64 = "$host_cpu"; then
10686         # On IA64, the linker does run time linking by default, so we don't
10687         # have to do anything special.
10688         aix_use_runtimelinking=no
10689         exp_sym_flag='-Bexport'
10690         no_entry_flag=
10691       else
10692         # If we're using GNU nm, then we don't want the "-C" option.
10693         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10694         # Without the "-l" option, or with the "-B" option, AIX nm treats
10695         # weak defined symbols like other global defined symbols, whereas
10696         # GNU nm marks them as "W".
10697         # While the 'weak' keyword is ignored in the Export File, we need
10698         # it in the Import File for the 'aix-soname' feature, so we have
10699         # to replace the "-B" option with "-P" for AIX nm.
10700         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10701           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'
10702         else
10703           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'
10704         fi
10705         aix_use_runtimelinking=no
10706
10707         # Test if we are trying to use run time linking or normal
10708         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10709         # have runtime linking enabled, and use it for executables.
10710         # For shared libraries, we enable/disable runtime linking
10711         # depending on the kind of the shared library created -
10712         # when "with_aix_soname,aix_use_runtimelinking" is:
10713         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10714         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10715         #            lib.a           static archive
10716         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10717         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10718         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10719         #            lib.a(lib.so.V) shared, rtl:no
10720         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10721         #            lib.a           static archive
10722         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10723           for ld_flag in $LDFLAGS; do
10724           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10725             aix_use_runtimelinking=yes
10726             break
10727           fi
10728           done
10729           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10730             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10731             # so we don't have lib.a shared libs to link our executables.
10732             # We have to force runtime linking in this case.
10733             aix_use_runtimelinking=yes
10734             LDFLAGS="$LDFLAGS -Wl,-brtl"
10735           fi
10736           ;;
10737         esac
10738
10739         exp_sym_flag='-bexport'
10740         no_entry_flag='-bnoentry'
10741       fi
10742
10743       # When large executables or shared objects are built, AIX ld can
10744       # have problems creating the table of contents.  If linking a library
10745       # or program results in "error TOC overflow" add -mminimal-toc to
10746       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10747       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10748
10749       archive_cmds=''
10750       hardcode_direct=yes
10751       hardcode_direct_absolute=yes
10752       hardcode_libdir_separator=':'
10753       link_all_deplibs=yes
10754       file_list_spec='$wl-f,'
10755       case $with_aix_soname,$aix_use_runtimelinking in
10756       aix,*) ;; # traditional, no import file
10757       svr4,* | *,yes) # use import file
10758         # The Import File defines what to hardcode.
10759         hardcode_direct=no
10760         hardcode_direct_absolute=no
10761         ;;
10762       esac
10763
10764       if test yes = "$GCC"; then
10765         case $host_os in aix4.[012]|aix4.[012].*)
10766         # We only want to do this on AIX 4.2 and lower, the check
10767         # below for broken collect2 doesn't work under 4.3+
10768           collect2name=`$CC -print-prog-name=collect2`
10769           if test -f "$collect2name" &&
10770            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10771           then
10772           # We have reworked collect2
10773           :
10774           else
10775           # We have old collect2
10776           hardcode_direct=unsupported
10777           # It fails to find uninstalled libraries when the uninstalled
10778           # path is not listed in the libpath.  Setting hardcode_minus_L
10779           # to unsupported forces relinking
10780           hardcode_minus_L=yes
10781           hardcode_libdir_flag_spec='-L$libdir'
10782           hardcode_libdir_separator=
10783           fi
10784           ;;
10785         esac
10786         shared_flag='-shared'
10787         if test yes = "$aix_use_runtimelinking"; then
10788           shared_flag="$shared_flag "'$wl-G'
10789         fi
10790         # Need to ensure runtime linking is disabled for the traditional
10791         # shared library, or the linker may eventually find shared libraries
10792         # /with/ Import File - we do not want to mix them.
10793         shared_flag_aix='-shared'
10794         shared_flag_svr4='-shared $wl-G'
10795       else
10796         # not using gcc
10797         if test ia64 = "$host_cpu"; then
10798         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10799         # chokes on -Wl,-G. The following line is correct:
10800           shared_flag='-G'
10801         else
10802           if test yes = "$aix_use_runtimelinking"; then
10803             shared_flag='$wl-G'
10804           else
10805             shared_flag='$wl-bM:SRE'
10806           fi
10807           shared_flag_aix='$wl-bM:SRE'
10808           shared_flag_svr4='$wl-G'
10809         fi
10810       fi
10811
10812       export_dynamic_flag_spec='$wl-bexpall'
10813       # It seems that -bexpall does not export symbols beginning with
10814       # underscore (_), so it is better to generate a list of symbols to export.
10815       always_export_symbols=yes
10816       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10817         # Warning - without using the other runtime loading flags (-brtl),
10818         # -berok will link without error, but may produce a broken library.
10819         allow_undefined_flag='-berok'
10820         # Determine the default libpath from the value encoded in an
10821         # empty executable.
10822         if test set = "${lt_cv_aix_libpath+set}"; then
10823   aix_libpath=$lt_cv_aix_libpath
10824 else
10825   if ${lt_cv_aix_libpath_+:} false; then :
10826   $as_echo_n "(cached) " >&6
10827 else
10828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h.  */
10830
10831 int
10832 main ()
10833 {
10834
10835   ;
10836   return 0;
10837 }
10838 _ACEOF
10839 if ac_fn_c_try_link "$LINENO"; then :
10840
10841   lt_aix_libpath_sed='
10842       /Import File Strings/,/^$/ {
10843           /^0/ {
10844               s/^0  *\([^ ]*\) *$/\1/
10845               p
10846           }
10847       }'
10848   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10849   # Check for a 64-bit object if we didn't find anything.
10850   if test -z "$lt_cv_aix_libpath_"; then
10851     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10852   fi
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext \
10855     conftest$ac_exeext conftest.$ac_ext
10856   if test -z "$lt_cv_aix_libpath_"; then
10857     lt_cv_aix_libpath_=/usr/lib:/lib
10858   fi
10859
10860 fi
10861
10862   aix_libpath=$lt_cv_aix_libpath_
10863 fi
10864
10865         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10866         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
10867       else
10868         if test ia64 = "$host_cpu"; then
10869           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10870           allow_undefined_flag="-z nodefs"
10871           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"
10872         else
10873          # Determine the default libpath from the value encoded in an
10874          # empty executable.
10875          if test set = "${lt_cv_aix_libpath+set}"; then
10876   aix_libpath=$lt_cv_aix_libpath
10877 else
10878   if ${lt_cv_aix_libpath_+:} false; then :
10879   $as_echo_n "(cached) " >&6
10880 else
10881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h.  */
10883
10884 int
10885 main ()
10886 {
10887
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893
10894   lt_aix_libpath_sed='
10895       /Import File Strings/,/^$/ {
10896           /^0/ {
10897               s/^0  *\([^ ]*\) *$/\1/
10898               p
10899           }
10900       }'
10901   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10902   # Check for a 64-bit object if we didn't find anything.
10903   if test -z "$lt_cv_aix_libpath_"; then
10904     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10905   fi
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext \
10908     conftest$ac_exeext conftest.$ac_ext
10909   if test -z "$lt_cv_aix_libpath_"; then
10910     lt_cv_aix_libpath_=/usr/lib:/lib
10911   fi
10912
10913 fi
10914
10915   aix_libpath=$lt_cv_aix_libpath_
10916 fi
10917
10918          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10919           # Warning - without using the other run time loading flags,
10920           # -berok will link without error, but may produce a broken library.
10921           no_undefined_flag=' $wl-bernotok'
10922           allow_undefined_flag=' $wl-berok'
10923           if test yes = "$with_gnu_ld"; then
10924             # We only use this code for GNU lds that support --whole-archive.
10925             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10926           else
10927             # Exported symbols can be pulled into shared objects from archives
10928             whole_archive_flag_spec='$convenience'
10929           fi
10930           archive_cmds_need_lc=yes
10931           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10932           # -brtl affects multiple linker settings, -berok does not and is overridden later
10933           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10934           if test svr4 != "$with_aix_soname"; then
10935             # This is similar to how AIX traditionally builds its shared libraries.
10936             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'
10937           fi
10938           if test aix != "$with_aix_soname"; then
10939             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'
10940           else
10941             # used by -dlpreopen to get the symbols
10942             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10943           fi
10944           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10945         fi
10946       fi
10947       ;;
10948
10949     amigaos*)
10950       case $host_cpu in
10951       powerpc)
10952             # see comment about AmigaOS4 .so support
10953             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10954             archive_expsym_cmds=''
10955         ;;
10956       m68k)
10957             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)'
10958             hardcode_libdir_flag_spec='-L$libdir'
10959             hardcode_minus_L=yes
10960         ;;
10961       esac
10962       ;;
10963
10964     bsdi[45]*)
10965       export_dynamic_flag_spec=-rdynamic
10966       ;;
10967
10968     cygwin* | mingw* | pw32* | cegcc*)
10969       # When not using gcc, we currently assume that we are using
10970       # Microsoft Visual C++.
10971       # hardcode_libdir_flag_spec is actually meaningless, as there is
10972       # no search path for DLLs.
10973       case $cc_basename in
10974       cl*)
10975         # Native MSVC
10976         hardcode_libdir_flag_spec=' '
10977         allow_undefined_flag=unsupported
10978         always_export_symbols=yes
10979         file_list_spec='@'
10980         # Tell ltmain to make .lib files, not .a files.
10981         libext=lib
10982         # Tell ltmain to make .dll files, not .so files.
10983         shrext_cmds=.dll
10984         # FIXME: Setting linknames here is a bad hack.
10985         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10986         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10987             cp "$export_symbols" "$output_objdir/$soname.def";
10988             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10989           else
10990             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10991           fi~
10992           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10993           linknames='
10994         # The linker will not automatically build a static lib if we build a DLL.
10995         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10996         enable_shared_with_static_runtimes=yes
10997         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10998         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10999         # Don't use ranlib
11000         old_postinstall_cmds='chmod 644 $oldlib'
11001         postlink_cmds='lt_outputfile="@OUTPUT@"~
11002           lt_tool_outputfile="@TOOL_OUTPUT@"~
11003           case $lt_outputfile in
11004             *.exe|*.EXE) ;;
11005             *)
11006               lt_outputfile=$lt_outputfile.exe
11007               lt_tool_outputfile=$lt_tool_outputfile.exe
11008               ;;
11009           esac~
11010           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11011             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11012             $RM "$lt_outputfile.manifest";
11013           fi'
11014         ;;
11015       *)
11016         # Assume MSVC wrapper
11017         hardcode_libdir_flag_spec=' '
11018         allow_undefined_flag=unsupported
11019         # Tell ltmain to make .lib files, not .a files.
11020         libext=lib
11021         # Tell ltmain to make .dll files, not .so files.
11022         shrext_cmds=.dll
11023         # FIXME: Setting linknames here is a bad hack.
11024         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11025         # The linker will automatically build a .lib file if we build a DLL.
11026         old_archive_from_new_cmds='true'
11027         # FIXME: Should let the user specify the lib program.
11028         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11029         enable_shared_with_static_runtimes=yes
11030         ;;
11031       esac
11032       ;;
11033
11034     darwin* | rhapsody*)
11035
11036
11037   archive_cmds_need_lc=no
11038   hardcode_direct=no
11039   hardcode_automatic=yes
11040   hardcode_shlibpath_var=unsupported
11041   if test yes = "$lt_cv_ld_force_load"; then
11042     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\"`'
11043
11044   else
11045     whole_archive_flag_spec=''
11046   fi
11047   link_all_deplibs=yes
11048   allow_undefined_flag=$_lt_dar_allow_undefined
11049   case $cc_basename in
11050      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11051      *) _lt_dar_can_shared=$GCC ;;
11052   esac
11053   if test yes = "$_lt_dar_can_shared"; then
11054     output_verbose_link_cmd=func_echo_all
11055     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11056     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11057     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"
11058     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"
11059
11060   else
11061   ld_shlibs=no
11062   fi
11063
11064       ;;
11065
11066     dgux*)
11067       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068       hardcode_libdir_flag_spec='-L$libdir'
11069       hardcode_shlibpath_var=no
11070       ;;
11071
11072     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11073     # support.  Future versions do this automatically, but an explicit c++rt0.o
11074     # does not break anything, and helps significantly (at the cost of a little
11075     # extra space).
11076     freebsd2.2*)
11077       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11078       hardcode_libdir_flag_spec='-R$libdir'
11079       hardcode_direct=yes
11080       hardcode_shlibpath_var=no
11081       ;;
11082
11083     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11084     freebsd2.*)
11085       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11086       hardcode_direct=yes
11087       hardcode_minus_L=yes
11088       hardcode_shlibpath_var=no
11089       ;;
11090
11091     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11092     freebsd* | dragonfly*)
11093       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11094       hardcode_libdir_flag_spec='-R$libdir'
11095       hardcode_direct=yes
11096       hardcode_shlibpath_var=no
11097       ;;
11098
11099     hpux9*)
11100       if test yes = "$GCC"; then
11101         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'
11102       else
11103         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'
11104       fi
11105       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11106       hardcode_libdir_separator=:
11107       hardcode_direct=yes
11108
11109       # hardcode_minus_L: Not really in the search PATH,
11110       # but as the default location of the library.
11111       hardcode_minus_L=yes
11112       export_dynamic_flag_spec='$wl-E'
11113       ;;
11114
11115     hpux10*)
11116       if test yes,no = "$GCC,$with_gnu_ld"; then
11117         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11118       else
11119         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11120       fi
11121       if test no = "$with_gnu_ld"; then
11122         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11123         hardcode_libdir_separator=:
11124         hardcode_direct=yes
11125         hardcode_direct_absolute=yes
11126         export_dynamic_flag_spec='$wl-E'
11127         # hardcode_minus_L: Not really in the search PATH,
11128         # but as the default location of the library.
11129         hardcode_minus_L=yes
11130       fi
11131       ;;
11132
11133     hpux11*)
11134       if test yes,no = "$GCC,$with_gnu_ld"; then
11135         case $host_cpu in
11136         hppa*64*)
11137           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11138           ;;
11139         ia64*)
11140           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11141           ;;
11142         *)
11143           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11144           ;;
11145         esac
11146       else
11147         case $host_cpu in
11148         hppa*64*)
11149           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11150           ;;
11151         ia64*)
11152           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11153           ;;
11154         *)
11155
11156           # Older versions of the 11.00 compiler do not understand -b yet
11157           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11158           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11159 $as_echo_n "checking if $CC understands -b... " >&6; }
11160 if ${lt_cv_prog_compiler__b+:} false; then :
11161   $as_echo_n "(cached) " >&6
11162 else
11163   lt_cv_prog_compiler__b=no
11164    save_LDFLAGS=$LDFLAGS
11165    LDFLAGS="$LDFLAGS -b"
11166    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11167    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11168      # The linker can only warn and ignore the option if not recognized
11169      # So say no if there are warnings
11170      if test -s conftest.err; then
11171        # Append any errors to the config.log.
11172        cat conftest.err 1>&5
11173        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11174        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11175        if diff conftest.exp conftest.er2 >/dev/null; then
11176          lt_cv_prog_compiler__b=yes
11177        fi
11178      else
11179        lt_cv_prog_compiler__b=yes
11180      fi
11181    fi
11182    $RM -r conftest*
11183    LDFLAGS=$save_LDFLAGS
11184
11185 fi
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11187 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11188
11189 if test yes = "$lt_cv_prog_compiler__b"; then
11190     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11191 else
11192     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11193 fi
11194
11195           ;;
11196         esac
11197       fi
11198       if test no = "$with_gnu_ld"; then
11199         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11200         hardcode_libdir_separator=:
11201
11202         case $host_cpu in
11203         hppa*64*|ia64*)
11204           hardcode_direct=no
11205           hardcode_shlibpath_var=no
11206           ;;
11207         *)
11208           hardcode_direct=yes
11209           hardcode_direct_absolute=yes
11210           export_dynamic_flag_spec='$wl-E'
11211
11212           # hardcode_minus_L: Not really in the search PATH,
11213           # but as the default location of the library.
11214           hardcode_minus_L=yes
11215           ;;
11216         esac
11217       fi
11218       ;;
11219
11220     irix5* | irix6* | nonstopux*)
11221       if test yes = "$GCC"; then
11222         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'
11223         # Try to use the -exported_symbol ld option, if it does not
11224         # work, assume that -exports_file does not work either and
11225         # implicitly export all symbols.
11226         # This should be the same for all languages, so no per-tag cache variable.
11227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11228 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11229 if ${lt_cv_irix_exported_symbol+:} false; then :
11230   $as_echo_n "(cached) " >&6
11231 else
11232   save_LDFLAGS=$LDFLAGS
11233            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11234            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h.  */
11236 int foo (void) { return 0; }
11237 _ACEOF
11238 if ac_fn_c_try_link "$LINENO"; then :
11239   lt_cv_irix_exported_symbol=yes
11240 else
11241   lt_cv_irix_exported_symbol=no
11242 fi
11243 rm -f core conftest.err conftest.$ac_objext \
11244     conftest$ac_exeext conftest.$ac_ext
11245            LDFLAGS=$save_LDFLAGS
11246 fi
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11248 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11249         if test yes = "$lt_cv_irix_exported_symbol"; then
11250           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'
11251         fi
11252         link_all_deplibs=no
11253       else
11254         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'
11255         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'
11256       fi
11257       archive_cmds_need_lc='no'
11258       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11259       hardcode_libdir_separator=:
11260       inherit_rpath=yes
11261       link_all_deplibs=yes
11262       ;;
11263
11264     linux*)
11265       case $cc_basename in
11266       tcc*)
11267         # Fabrice Bellard et al's Tiny C Compiler
11268         ld_shlibs=yes
11269         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11270         ;;
11271       esac
11272       ;;
11273
11274     netbsd* | netbsdelf*-gnu)
11275       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11276         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11277       else
11278         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11279       fi
11280       hardcode_libdir_flag_spec='-R$libdir'
11281       hardcode_direct=yes
11282       hardcode_shlibpath_var=no
11283       ;;
11284
11285     newsos6)
11286       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11287       hardcode_direct=yes
11288       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11289       hardcode_libdir_separator=:
11290       hardcode_shlibpath_var=no
11291       ;;
11292
11293     *nto* | *qnx*)
11294       ;;
11295
11296     openbsd* | bitrig*)
11297       if test -f /usr/libexec/ld.so; then
11298         hardcode_direct=yes
11299         hardcode_shlibpath_var=no
11300         hardcode_direct_absolute=yes
11301         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11302           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11303           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11304           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11305           export_dynamic_flag_spec='$wl-E'
11306         else
11307           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11308           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11309         fi
11310       else
11311         ld_shlibs=no
11312       fi
11313       ;;
11314
11315     os2*)
11316       hardcode_libdir_flag_spec='-L$libdir'
11317       hardcode_minus_L=yes
11318       allow_undefined_flag=unsupported
11319       shrext_cmds=.dll
11320       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11321         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11322         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11323         $ECHO EXPORTS >> $output_objdir/$libname.def~
11324         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11325         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11326         emximp -o $lib $output_objdir/$libname.def'
11327       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11328         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11329         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11330         $ECHO EXPORTS >> $output_objdir/$libname.def~
11331         prefix_cmds="$SED"~
11332         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11333           prefix_cmds="$prefix_cmds -e 1d";
11334         fi~
11335         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11336         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11337         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11338         emximp -o $lib $output_objdir/$libname.def'
11339       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11340       enable_shared_with_static_runtimes=yes
11341       ;;
11342
11343     osf3*)
11344       if test yes = "$GCC"; then
11345         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11346         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'
11347       else
11348         allow_undefined_flag=' -expect_unresolved \*'
11349         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'
11350       fi
11351       archive_cmds_need_lc='no'
11352       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11353       hardcode_libdir_separator=:
11354       ;;
11355
11356     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11357       if test yes = "$GCC"; then
11358         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11359         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'
11360         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11361       else
11362         allow_undefined_flag=' -expect_unresolved \*'
11363         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'
11364         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~
11365           $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'
11366
11367         # Both c and cxx compiler support -rpath directly
11368         hardcode_libdir_flag_spec='-rpath $libdir'
11369       fi
11370       archive_cmds_need_lc='no'
11371       hardcode_libdir_separator=:
11372       ;;
11373
11374     solaris*)
11375       no_undefined_flag=' -z defs'
11376       if test yes = "$GCC"; then
11377         wlarc='$wl'
11378         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11379         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11380           $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'
11381       else
11382         case `$CC -V 2>&1` in
11383         *"Compilers 5.0"*)
11384           wlarc=''
11385           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11386           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11387             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11388           ;;
11389         *)
11390           wlarc='$wl'
11391           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11392           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11393             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11394           ;;
11395         esac
11396       fi
11397       hardcode_libdir_flag_spec='-R$libdir'
11398       hardcode_shlibpath_var=no
11399       case $host_os in
11400       solaris2.[0-5] | solaris2.[0-5].*) ;;
11401       *)
11402         # The compiler driver will combine and reorder linker options,
11403         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11404         # but is careful enough not to reorder.
11405         # Supported since Solaris 2.6 (maybe 2.5.1?)
11406         if test yes = "$GCC"; then
11407           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11408         else
11409           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11410         fi
11411         ;;
11412       esac
11413       link_all_deplibs=yes
11414       ;;
11415
11416     sunos4*)
11417       if test sequent = "$host_vendor"; then
11418         # Use $CC to link under sequent, because it throws in some extra .o
11419         # files that make .init and .fini sections work.
11420         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11421       else
11422         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11423       fi
11424       hardcode_libdir_flag_spec='-L$libdir'
11425       hardcode_direct=yes
11426       hardcode_minus_L=yes
11427       hardcode_shlibpath_var=no
11428       ;;
11429
11430     sysv4)
11431       case $host_vendor in
11432         sni)
11433           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11434           hardcode_direct=yes # is this really true???
11435         ;;
11436         siemens)
11437           ## LD is ld it makes a PLAMLIB
11438           ## CC just makes a GrossModule.
11439           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11440           reload_cmds='$CC -r -o $output$reload_objs'
11441           hardcode_direct=no
11442         ;;
11443         motorola)
11444           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11445           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11446         ;;
11447       esac
11448       runpath_var='LD_RUN_PATH'
11449       hardcode_shlibpath_var=no
11450       ;;
11451
11452     sysv4.3*)
11453       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11454       hardcode_shlibpath_var=no
11455       export_dynamic_flag_spec='-Bexport'
11456       ;;
11457
11458     sysv4*MP*)
11459       if test -d /usr/nec; then
11460         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11461         hardcode_shlibpath_var=no
11462         runpath_var=LD_RUN_PATH
11463         hardcode_runpath_var=yes
11464         ld_shlibs=yes
11465       fi
11466       ;;
11467
11468     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11469       no_undefined_flag='$wl-z,text'
11470       archive_cmds_need_lc=no
11471       hardcode_shlibpath_var=no
11472       runpath_var='LD_RUN_PATH'
11473
11474       if test yes = "$GCC"; then
11475         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11476         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11477       else
11478         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11480       fi
11481       ;;
11482
11483     sysv5* | sco3.2v5* | sco5v6*)
11484       # Note: We CANNOT use -z defs as we might desire, because we do not
11485       # link with -lc, and that would cause any symbols used from libc to
11486       # always be unresolved, which means just about no library would
11487       # ever link correctly.  If we're not using GNU ld we use -z text
11488       # though, which does catch some bad symbols but isn't as heavy-handed
11489       # as -z defs.
11490       no_undefined_flag='$wl-z,text'
11491       allow_undefined_flag='$wl-z,nodefs'
11492       archive_cmds_need_lc=no
11493       hardcode_shlibpath_var=no
11494       hardcode_libdir_flag_spec='$wl-R,$libdir'
11495       hardcode_libdir_separator=':'
11496       link_all_deplibs=yes
11497       export_dynamic_flag_spec='$wl-Bexport'
11498       runpath_var='LD_RUN_PATH'
11499
11500       if test yes = "$GCC"; then
11501         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11503       else
11504         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11505         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11506       fi
11507       ;;
11508
11509     uts4*)
11510       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11511       hardcode_libdir_flag_spec='-L$libdir'
11512       hardcode_shlibpath_var=no
11513       ;;
11514
11515     *)
11516       ld_shlibs=no
11517       ;;
11518     esac
11519
11520     if test sni = "$host_vendor"; then
11521       case $host in
11522       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11523         export_dynamic_flag_spec='$wl-Blargedynsym'
11524         ;;
11525       esac
11526     fi
11527   fi
11528
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11530 $as_echo "$ld_shlibs" >&6; }
11531 test no = "$ld_shlibs" && can_build_shared=no
11532
11533 with_gnu_ld=$with_gnu_ld
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549 #
11550 # Do we need to explicitly link libc?
11551 #
11552 case "x$archive_cmds_need_lc" in
11553 x|xyes)
11554   # Assume -lc should be added
11555   archive_cmds_need_lc=yes
11556
11557   if test yes,yes = "$GCC,$enable_shared"; then
11558     case $archive_cmds in
11559     *'~'*)
11560       # FIXME: we may have to deal with multi-command sequences.
11561       ;;
11562     '$CC '*)
11563       # Test whether the compiler implicitly links with -lc since on some
11564       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11565       # to ld, don't add -lc before -lgcc.
11566       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11567 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11568 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11569   $as_echo_n "(cached) " >&6
11570 else
11571   $RM conftest*
11572         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11573
11574         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11575   (eval $ac_compile) 2>&5
11576   ac_status=$?
11577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11578   test $ac_status = 0; } 2>conftest.err; then
11579           soname=conftest
11580           lib=conftest
11581           libobjs=conftest.$ac_objext
11582           deplibs=
11583           wl=$lt_prog_compiler_wl
11584           pic_flag=$lt_prog_compiler_pic
11585           compiler_flags=-v
11586           linker_flags=-v
11587           verstring=
11588           output_objdir=.
11589           libname=conftest
11590           lt_save_allow_undefined_flag=$allow_undefined_flag
11591           allow_undefined_flag=
11592           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11593   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11594   ac_status=$?
11595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11596   test $ac_status = 0; }
11597           then
11598             lt_cv_archive_cmds_need_lc=no
11599           else
11600             lt_cv_archive_cmds_need_lc=yes
11601           fi
11602           allow_undefined_flag=$lt_save_allow_undefined_flag
11603         else
11604           cat conftest.err 1>&5
11605         fi
11606         $RM conftest*
11607
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11610 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11611       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11612       ;;
11613     esac
11614   fi
11615   ;;
11616 esac
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11770 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11771
11772 if test yes = "$GCC"; then
11773   case $host_os in
11774     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11775     *) lt_awk_arg='/^libraries:/' ;;
11776   esac
11777   case $host_os in
11778     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11779     *) lt_sed_strip_eq='s|=/|/|g' ;;
11780   esac
11781   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11782   case $lt_search_path_spec in
11783   *\;*)
11784     # if the path contains ";" then we assume it to be the separator
11785     # otherwise default to the standard path separator (i.e. ":") - it is
11786     # assumed that no part of a normal pathname contains ";" but that should
11787     # okay in the real world where ";" in dirpaths is itself problematic.
11788     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11789     ;;
11790   *)
11791     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11792     ;;
11793   esac
11794   # Ok, now we have the path, separated by spaces, we can step through it
11795   # and add multilib dir if necessary...
11796   lt_tmp_lt_search_path_spec=
11797   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11798   # ...but if some path component already ends with the multilib dir we assume
11799   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11800   case "$lt_multi_os_dir; $lt_search_path_spec " in
11801   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11802     lt_multi_os_dir=
11803     ;;
11804   esac
11805   for lt_sys_path in $lt_search_path_spec; do
11806     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11807       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11808     elif test -n "$lt_multi_os_dir"; then
11809       test -d "$lt_sys_path" && \
11810         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11811     fi
11812   done
11813   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11814 BEGIN {RS = " "; FS = "/|\n";} {
11815   lt_foo = "";
11816   lt_count = 0;
11817   for (lt_i = NF; lt_i > 0; lt_i--) {
11818     if ($lt_i != "" && $lt_i != ".") {
11819       if ($lt_i == "..") {
11820         lt_count++;
11821       } else {
11822         if (lt_count == 0) {
11823           lt_foo = "/" $lt_i lt_foo;
11824         } else {
11825           lt_count--;
11826         }
11827       }
11828     }
11829   }
11830   if (lt_foo != "") { lt_freq[lt_foo]++; }
11831   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11832 }'`
11833   # AWK program above erroneously prepends '/' to C:/dos/paths
11834   # for these hosts.
11835   case $host_os in
11836     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11837       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11838   esac
11839   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11840 else
11841   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11842 fi
11843 library_names_spec=
11844 libname_spec='lib$name'
11845 soname_spec=
11846 shrext_cmds=.so
11847 postinstall_cmds=
11848 postuninstall_cmds=
11849 finish_cmds=
11850 finish_eval=
11851 shlibpath_var=
11852 shlibpath_overrides_runpath=unknown
11853 version_type=none
11854 dynamic_linker="$host_os ld.so"
11855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11856 need_lib_prefix=unknown
11857 hardcode_into_libs=no
11858
11859 # when you set need_version to no, make sure it does not cause -set_version
11860 # flags to be left without arguments
11861 need_version=unknown
11862
11863
11864
11865 case $host_os in
11866 aix3*)
11867   version_type=linux # correct to gnu/linux during the next big refactor
11868   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11869   shlibpath_var=LIBPATH
11870
11871   # AIX 3 has no versioning support, so we append a major version to the name.
11872   soname_spec='$libname$release$shared_ext$major'
11873   ;;
11874
11875 aix[4-9]*)
11876   version_type=linux # correct to gnu/linux during the next big refactor
11877   need_lib_prefix=no
11878   need_version=no
11879   hardcode_into_libs=yes
11880   if test ia64 = "$host_cpu"; then
11881     # AIX 5 supports IA64
11882     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11883     shlibpath_var=LD_LIBRARY_PATH
11884   else
11885     # With GCC up to 2.95.x, collect2 would create an import file
11886     # for dependence libraries.  The import file would start with
11887     # the line '#! .'.  This would cause the generated library to
11888     # depend on '.', always an invalid library.  This was fixed in
11889     # development snapshots of GCC prior to 3.0.
11890     case $host_os in
11891       aix4 | aix4.[01] | aix4.[01].*)
11892       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11893            echo ' yes '
11894            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11895         :
11896       else
11897         can_build_shared=no
11898       fi
11899       ;;
11900     esac
11901     # Using Import Files as archive members, it is possible to support
11902     # filename-based versioning of shared library archives on AIX. While
11903     # this would work for both with and without runtime linking, it will
11904     # prevent static linking of such archives. So we do filename-based
11905     # shared library versioning with .so extension only, which is used
11906     # when both runtime linking and shared linking is enabled.
11907     # Unfortunately, runtime linking may impact performance, so we do
11908     # not want this to be the default eventually. Also, we use the
11909     # versioned .so libs for executables only if there is the -brtl
11910     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11911     # To allow for filename-based versioning support, we need to create
11912     # libNAME.so.V as an archive file, containing:
11913     # *) an Import File, referring to the versioned filename of the
11914     #    archive as well as the shared archive member, telling the
11915     #    bitwidth (32 or 64) of that shared object, and providing the
11916     #    list of exported symbols of that shared object, eventually
11917     #    decorated with the 'weak' keyword
11918     # *) the shared object with the F_LOADONLY flag set, to really avoid
11919     #    it being seen by the linker.
11920     # At run time we better use the real file rather than another symlink,
11921     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11922
11923     case $with_aix_soname,$aix_use_runtimelinking in
11924     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11925     # soname into executable. Probably we can add versioning support to
11926     # collect2, so additional links can be useful in future.
11927     aix,yes) # traditional libtool
11928       dynamic_linker='AIX unversionable lib.so'
11929       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11930       # instead of lib<name>.a to let people know that these are not
11931       # typical AIX shared libraries.
11932       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11933       ;;
11934     aix,no) # traditional AIX only
11935       dynamic_linker='AIX lib.a(lib.so.V)'
11936       # We preserve .a as extension for shared libraries through AIX4.2
11937       # and later when we are not doing run time linking.
11938       library_names_spec='$libname$release.a $libname.a'
11939       soname_spec='$libname$release$shared_ext$major'
11940       ;;
11941     svr4,*) # full svr4 only
11942       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11943       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11944       # We do not specify a path in Import Files, so LIBPATH fires.
11945       shlibpath_overrides_runpath=yes
11946       ;;
11947     *,yes) # both, prefer svr4
11948       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11949       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11950       # unpreferred sharedlib libNAME.a needs extra handling
11951       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"'
11952       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"'
11953       # We do not specify a path in Import Files, so LIBPATH fires.
11954       shlibpath_overrides_runpath=yes
11955       ;;
11956     *,no) # both, prefer aix
11957       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11958       library_names_spec='$libname$release.a $libname.a'
11959       soname_spec='$libname$release$shared_ext$major'
11960       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11961       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)'
11962       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"'
11963       ;;
11964     esac
11965     shlibpath_var=LIBPATH
11966   fi
11967   ;;
11968
11969 amigaos*)
11970   case $host_cpu in
11971   powerpc)
11972     # Since July 2007 AmigaOS4 officially supports .so libraries.
11973     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11974     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11975     ;;
11976   m68k)
11977     library_names_spec='$libname.ixlibrary $libname.a'
11978     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11979     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'
11980     ;;
11981   esac
11982   ;;
11983
11984 beos*)
11985   library_names_spec='$libname$shared_ext'
11986   dynamic_linker="$host_os ld.so"
11987   shlibpath_var=LIBRARY_PATH
11988   ;;
11989
11990 bsdi[45]*)
11991   version_type=linux # correct to gnu/linux during the next big refactor
11992   need_version=no
11993   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994   soname_spec='$libname$release$shared_ext$major'
11995   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11996   shlibpath_var=LD_LIBRARY_PATH
11997   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11998   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11999   # the default ld.so.conf also contains /usr/contrib/lib and
12000   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12001   # libtool to hard-code these into programs
12002   ;;
12003
12004 cygwin* | mingw* | pw32* | cegcc*)
12005   version_type=windows
12006   shrext_cmds=.dll
12007   need_version=no
12008   need_lib_prefix=no
12009
12010   case $GCC,$cc_basename in
12011   yes,*)
12012     # gcc
12013     library_names_spec='$libname.dll.a'
12014     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12015     postinstall_cmds='base_file=`basename \$file`~
12016       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12017       dldir=$destdir/`dirname \$dlpath`~
12018       test -d \$dldir || mkdir -p \$dldir~
12019       $install_prog $dir/$dlname \$dldir/$dlname~
12020       chmod a+x \$dldir/$dlname~
12021       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12022         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12023       fi'
12024     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12025       dlpath=$dir/\$dldll~
12026        $RM \$dlpath'
12027     shlibpath_overrides_runpath=yes
12028
12029     case $host_os in
12030     cygwin*)
12031       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12032       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12033
12034       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12035       ;;
12036     mingw* | cegcc*)
12037       # MinGW DLLs use traditional 'lib' prefix
12038       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12039       ;;
12040     pw32*)
12041       # pw32 DLLs use 'pw' prefix rather than 'lib'
12042       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12043       ;;
12044     esac
12045     dynamic_linker='Win32 ld.exe'
12046     ;;
12047
12048   *,cl*)
12049     # Native MSVC
12050     libname_spec='$name'
12051     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12052     library_names_spec='$libname.dll.lib'
12053
12054     case $build_os in
12055     mingw*)
12056       sys_lib_search_path_spec=
12057       lt_save_ifs=$IFS
12058       IFS=';'
12059       for lt_path in $LIB
12060       do
12061         IFS=$lt_save_ifs
12062         # Let DOS variable expansion print the short 8.3 style file name.
12063         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12064         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12065       done
12066       IFS=$lt_save_ifs
12067       # Convert to MSYS style.
12068       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12069       ;;
12070     cygwin*)
12071       # Convert to unix form, then to dos form, then back to unix form
12072       # but this time dos style (no spaces!) so that the unix form looks
12073       # like /cygdrive/c/PROGRA~1:/cygdr...
12074       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12075       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12076       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12077       ;;
12078     *)
12079       sys_lib_search_path_spec=$LIB
12080       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12081         # It is most probably a Windows format PATH.
12082         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12083       else
12084         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12085       fi
12086       # FIXME: find the short name or the path components, as spaces are
12087       # common. (e.g. "Program Files" -> "PROGRA~1")
12088       ;;
12089     esac
12090
12091     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12092     postinstall_cmds='base_file=`basename \$file`~
12093       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12094       dldir=$destdir/`dirname \$dlpath`~
12095       test -d \$dldir || mkdir -p \$dldir~
12096       $install_prog $dir/$dlname \$dldir/$dlname'
12097     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12098       dlpath=$dir/\$dldll~
12099        $RM \$dlpath'
12100     shlibpath_overrides_runpath=yes
12101     dynamic_linker='Win32 link.exe'
12102     ;;
12103
12104   *)
12105     # Assume MSVC wrapper
12106     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12107     dynamic_linker='Win32 ld.exe'
12108     ;;
12109   esac
12110   # FIXME: first we should search . and the directory the executable is in
12111   shlibpath_var=PATH
12112   ;;
12113
12114 darwin* | rhapsody*)
12115   dynamic_linker="$host_os dyld"
12116   version_type=darwin
12117   need_lib_prefix=no
12118   need_version=no
12119   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12120   soname_spec='$libname$release$major$shared_ext'
12121   shlibpath_overrides_runpath=yes
12122   shlibpath_var=DYLD_LIBRARY_PATH
12123   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12124
12125   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12126   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12127   ;;
12128
12129 dgux*)
12130   version_type=linux # correct to gnu/linux during the next big refactor
12131   need_lib_prefix=no
12132   need_version=no
12133   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12134   soname_spec='$libname$release$shared_ext$major'
12135   shlibpath_var=LD_LIBRARY_PATH
12136   ;;
12137
12138 freebsd* | dragonfly*)
12139   # DragonFly does not have aout.  When/if they implement a new
12140   # versioning mechanism, adjust this.
12141   if test -x /usr/bin/objformat; then
12142     objformat=`/usr/bin/objformat`
12143   else
12144     case $host_os in
12145     freebsd[23].*) objformat=aout ;;
12146     *) objformat=elf ;;
12147     esac
12148   fi
12149   version_type=freebsd-$objformat
12150   case $version_type in
12151     freebsd-elf*)
12152       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153       soname_spec='$libname$release$shared_ext$major'
12154       need_version=no
12155       need_lib_prefix=no
12156       ;;
12157     freebsd-*)
12158       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12159       need_version=yes
12160       ;;
12161   esac
12162   shlibpath_var=LD_LIBRARY_PATH
12163   case $host_os in
12164   freebsd2.*)
12165     shlibpath_overrides_runpath=yes
12166     ;;
12167   freebsd3.[01]* | freebsdelf3.[01]*)
12168     shlibpath_overrides_runpath=yes
12169     hardcode_into_libs=yes
12170     ;;
12171   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12172   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12173     shlibpath_overrides_runpath=no
12174     hardcode_into_libs=yes
12175     ;;
12176   *) # from 4.6 on, and DragonFly
12177     shlibpath_overrides_runpath=yes
12178     hardcode_into_libs=yes
12179     ;;
12180   esac
12181   ;;
12182
12183 haiku*)
12184   version_type=linux # correct to gnu/linux during the next big refactor
12185   need_lib_prefix=no
12186   need_version=no
12187   dynamic_linker="$host_os runtime_loader"
12188   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12189   soname_spec='$libname$release$shared_ext$major'
12190   shlibpath_var=LIBRARY_PATH
12191   shlibpath_overrides_runpath=no
12192   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12193   hardcode_into_libs=yes
12194   ;;
12195
12196 hpux9* | hpux10* | hpux11*)
12197   # Give a soname corresponding to the major version so that dld.sl refuses to
12198   # link against other versions.
12199   version_type=sunos
12200   need_lib_prefix=no
12201   need_version=no
12202   case $host_cpu in
12203   ia64*)
12204     shrext_cmds='.so'
12205     hardcode_into_libs=yes
12206     dynamic_linker="$host_os dld.so"
12207     shlibpath_var=LD_LIBRARY_PATH
12208     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12209     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12210     soname_spec='$libname$release$shared_ext$major'
12211     if test 32 = "$HPUX_IA64_MODE"; then
12212       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12213       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12214     else
12215       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12216       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12217     fi
12218     ;;
12219   hppa*64*)
12220     shrext_cmds='.sl'
12221     hardcode_into_libs=yes
12222     dynamic_linker="$host_os dld.sl"
12223     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12224     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12225     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12226     soname_spec='$libname$release$shared_ext$major'
12227     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12228     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12229     ;;
12230   *)
12231     shrext_cmds='.sl'
12232     dynamic_linker="$host_os dld.sl"
12233     shlibpath_var=SHLIB_PATH
12234     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12235     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12236     soname_spec='$libname$release$shared_ext$major'
12237     ;;
12238   esac
12239   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12240   postinstall_cmds='chmod 555 $lib'
12241   # or fails outright, so override atomically:
12242   install_override_mode=555
12243   ;;
12244
12245 interix[3-9]*)
12246   version_type=linux # correct to gnu/linux during the next big refactor
12247   need_lib_prefix=no
12248   need_version=no
12249   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12250   soname_spec='$libname$release$shared_ext$major'
12251   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12252   shlibpath_var=LD_LIBRARY_PATH
12253   shlibpath_overrides_runpath=no
12254   hardcode_into_libs=yes
12255   ;;
12256
12257 irix5* | irix6* | nonstopux*)
12258   case $host_os in
12259     nonstopux*) version_type=nonstopux ;;
12260     *)
12261         if test yes = "$lt_cv_prog_gnu_ld"; then
12262                 version_type=linux # correct to gnu/linux during the next big refactor
12263         else
12264                 version_type=irix
12265         fi ;;
12266   esac
12267   need_lib_prefix=no
12268   need_version=no
12269   soname_spec='$libname$release$shared_ext$major'
12270   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12271   case $host_os in
12272   irix5* | nonstopux*)
12273     libsuff= shlibsuff=
12274     ;;
12275   *)
12276     case $LD in # libtool.m4 will add one of these switches to LD
12277     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12278       libsuff= shlibsuff= libmagic=32-bit;;
12279     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12280       libsuff=32 shlibsuff=N32 libmagic=N32;;
12281     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12282       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12283     *) libsuff= shlibsuff= libmagic=never-match;;
12284     esac
12285     ;;
12286   esac
12287   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12288   shlibpath_overrides_runpath=no
12289   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12290   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12291   hardcode_into_libs=yes
12292   ;;
12293
12294 # No shared lib support for Linux oldld, aout, or coff.
12295 linux*oldld* | linux*aout* | linux*coff*)
12296   dynamic_linker=no
12297   ;;
12298
12299 linux*android*)
12300   version_type=none # Android doesn't support versioned libraries.
12301   need_lib_prefix=no
12302   need_version=no
12303   library_names_spec='$libname$release$shared_ext'
12304   soname_spec='$libname$release$shared_ext'
12305   finish_cmds=
12306   shlibpath_var=LD_LIBRARY_PATH
12307   shlibpath_overrides_runpath=yes
12308
12309   # This implies no fast_install, which is unacceptable.
12310   # Some rework will be needed to allow for fast_install
12311   # before this can be enabled.
12312   hardcode_into_libs=yes
12313
12314   dynamic_linker='Android linker'
12315   # Don't embed -rpath directories since the linker doesn't support them.
12316   hardcode_libdir_flag_spec='-L$libdir'
12317   ;;
12318
12319 # This must be glibc/ELF.
12320 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12321   version_type=linux # correct to gnu/linux during the next big refactor
12322   need_lib_prefix=no
12323   need_version=no
12324   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12325   soname_spec='$libname$release$shared_ext$major'
12326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12327   shlibpath_var=LD_LIBRARY_PATH
12328   shlibpath_overrides_runpath=no
12329
12330   # Some binutils ld are patched to set DT_RUNPATH
12331   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   lt_cv_shlibpath_overrides_runpath=no
12335     save_LDFLAGS=$LDFLAGS
12336     save_libdir=$libdir
12337     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12338          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h.  */
12341
12342 int
12343 main ()
12344 {
12345
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 if ac_fn_c_try_link "$LINENO"; then :
12351   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12352   lt_cv_shlibpath_overrides_runpath=yes
12353 fi
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext \
12356     conftest$ac_exeext conftest.$ac_ext
12357     LDFLAGS=$save_LDFLAGS
12358     libdir=$save_libdir
12359
12360 fi
12361
12362   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12363
12364   # This implies no fast_install, which is unacceptable.
12365   # Some rework will be needed to allow for fast_install
12366   # before this can be enabled.
12367   hardcode_into_libs=yes
12368
12369   # Ideally, we could use ldconfig to report *all* directores which are
12370   # searched for libraries, however this is still not possible.  Aside from not
12371   # being certain /sbin/ldconfig is available, command
12372   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12373   # even though it is searched at run-time.  Try to do the best guess by
12374   # appending ld.so.conf contents (and includes) to the search path.
12375   if test -f /etc/ld.so.conf; then
12376     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' ' '`
12377     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12378   fi
12379
12380   # We used to test for /lib/ld.so.1 and disable shared libraries on
12381   # powerpc, because MkLinux only supported shared libraries with the
12382   # GNU dynamic linker.  Since this was broken with cross compilers,
12383   # most powerpc-linux boxes support dynamic linking these days and
12384   # people can always --disable-shared, the test was removed, and we
12385   # assume the GNU/Linux dynamic linker is in use.
12386   dynamic_linker='GNU/Linux ld.so'
12387   ;;
12388
12389 netbsdelf*-gnu)
12390   version_type=linux
12391   need_lib_prefix=no
12392   need_version=no
12393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12394   soname_spec='${libname}${release}${shared_ext}$major'
12395   shlibpath_var=LD_LIBRARY_PATH
12396   shlibpath_overrides_runpath=no
12397   hardcode_into_libs=yes
12398   dynamic_linker='NetBSD ld.elf_so'
12399   ;;
12400
12401 netbsd*)
12402   version_type=sunos
12403   need_lib_prefix=no
12404   need_version=no
12405   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12406     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12407     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12408     dynamic_linker='NetBSD (a.out) ld.so'
12409   else
12410     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12411     soname_spec='$libname$release$shared_ext$major'
12412     dynamic_linker='NetBSD ld.elf_so'
12413   fi
12414   shlibpath_var=LD_LIBRARY_PATH
12415   shlibpath_overrides_runpath=yes
12416   hardcode_into_libs=yes
12417   ;;
12418
12419 newsos6)
12420   version_type=linux # correct to gnu/linux during the next big refactor
12421   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422   shlibpath_var=LD_LIBRARY_PATH
12423   shlibpath_overrides_runpath=yes
12424   ;;
12425
12426 *nto* | *qnx*)
12427   version_type=qnx
12428   need_lib_prefix=no
12429   need_version=no
12430   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12431   soname_spec='$libname$release$shared_ext$major'
12432   shlibpath_var=LD_LIBRARY_PATH
12433   shlibpath_overrides_runpath=no
12434   hardcode_into_libs=yes
12435   dynamic_linker='ldqnx.so'
12436   ;;
12437
12438 openbsd* | bitrig*)
12439   version_type=sunos
12440   sys_lib_dlsearch_path_spec=/usr/lib
12441   need_lib_prefix=no
12442   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12443     need_version=no
12444   else
12445     need_version=yes
12446   fi
12447   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12448   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12449   shlibpath_var=LD_LIBRARY_PATH
12450   shlibpath_overrides_runpath=yes
12451   ;;
12452
12453 os2*)
12454   libname_spec='$name'
12455   version_type=windows
12456   shrext_cmds=.dll
12457   need_version=no
12458   need_lib_prefix=no
12459   # OS/2 can only load a DLL with a base name of 8 characters or less.
12460   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12461     v=$($ECHO $release$versuffix | tr -d .-);
12462     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12463     $ECHO $n$v`$shared_ext'
12464   library_names_spec='${libname}_dll.$libext'
12465   dynamic_linker='OS/2 ld.exe'
12466   shlibpath_var=BEGINLIBPATH
12467   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12468   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12469   postinstall_cmds='base_file=`basename \$file`~
12470     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12471     dldir=$destdir/`dirname \$dlpath`~
12472     test -d \$dldir || mkdir -p \$dldir~
12473     $install_prog $dir/$dlname \$dldir/$dlname~
12474     chmod a+x \$dldir/$dlname~
12475     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12476       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12477     fi'
12478   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12479     dlpath=$dir/\$dldll~
12480     $RM \$dlpath'
12481   ;;
12482
12483 osf3* | osf4* | osf5*)
12484   version_type=osf
12485   need_lib_prefix=no
12486   need_version=no
12487   soname_spec='$libname$release$shared_ext$major'
12488   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489   shlibpath_var=LD_LIBRARY_PATH
12490   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12491   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12492   ;;
12493
12494 rdos*)
12495   dynamic_linker=no
12496   ;;
12497
12498 solaris*)
12499   version_type=linux # correct to gnu/linux during the next big refactor
12500   need_lib_prefix=no
12501   need_version=no
12502   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12503   soname_spec='$libname$release$shared_ext$major'
12504   shlibpath_var=LD_LIBRARY_PATH
12505   shlibpath_overrides_runpath=yes
12506   hardcode_into_libs=yes
12507   # ldd complains unless libraries are executable
12508   postinstall_cmds='chmod +x $lib'
12509   ;;
12510
12511 sunos4*)
12512   version_type=sunos
12513   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12514   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12515   shlibpath_var=LD_LIBRARY_PATH
12516   shlibpath_overrides_runpath=yes
12517   if test yes = "$with_gnu_ld"; then
12518     need_lib_prefix=no
12519   fi
12520   need_version=yes
12521   ;;
12522
12523 sysv4 | sysv4.3*)
12524   version_type=linux # correct to gnu/linux during the next big refactor
12525   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12526   soname_spec='$libname$release$shared_ext$major'
12527   shlibpath_var=LD_LIBRARY_PATH
12528   case $host_vendor in
12529     sni)
12530       shlibpath_overrides_runpath=no
12531       need_lib_prefix=no
12532       runpath_var=LD_RUN_PATH
12533       ;;
12534     siemens)
12535       need_lib_prefix=no
12536       ;;
12537     motorola)
12538       need_lib_prefix=no
12539       need_version=no
12540       shlibpath_overrides_runpath=no
12541       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12542       ;;
12543   esac
12544   ;;
12545
12546 sysv4*MP*)
12547   if test -d /usr/nec; then
12548     version_type=linux # correct to gnu/linux during the next big refactor
12549     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12550     soname_spec='$libname$shared_ext.$major'
12551     shlibpath_var=LD_LIBRARY_PATH
12552   fi
12553   ;;
12554
12555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12556   version_type=sco
12557   need_lib_prefix=no
12558   need_version=no
12559   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12560   soname_spec='$libname$release$shared_ext$major'
12561   shlibpath_var=LD_LIBRARY_PATH
12562   shlibpath_overrides_runpath=yes
12563   hardcode_into_libs=yes
12564   if test yes = "$with_gnu_ld"; then
12565     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12566   else
12567     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12568     case $host_os in
12569       sco3.2v5*)
12570         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12571         ;;
12572     esac
12573   fi
12574   sys_lib_dlsearch_path_spec='/usr/lib'
12575   ;;
12576
12577 tpf*)
12578   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12579   version_type=linux # correct to gnu/linux during the next big refactor
12580   need_lib_prefix=no
12581   need_version=no
12582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12583   shlibpath_var=LD_LIBRARY_PATH
12584   shlibpath_overrides_runpath=no
12585   hardcode_into_libs=yes
12586   ;;
12587
12588 uts4*)
12589   version_type=linux # correct to gnu/linux during the next big refactor
12590   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12591   soname_spec='$libname$release$shared_ext$major'
12592   shlibpath_var=LD_LIBRARY_PATH
12593   ;;
12594
12595 *)
12596   dynamic_linker=no
12597   ;;
12598 esac
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12600 $as_echo "$dynamic_linker" >&6; }
12601 test no = "$dynamic_linker" && can_build_shared=no
12602
12603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12604 if test yes = "$GCC"; then
12605   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12606 fi
12607
12608 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12609   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12610 fi
12611
12612 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12613   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12614 fi
12615
12616 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12617 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12618
12619 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12620 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12621
12622 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12623 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12722 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12723 hardcode_action=
12724 if test -n "$hardcode_libdir_flag_spec" ||
12725    test -n "$runpath_var" ||
12726    test yes = "$hardcode_automatic"; then
12727
12728   # We can hardcode non-existent directories.
12729   if test no != "$hardcode_direct" &&
12730      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12731      # have to relink, otherwise we might link with an installed library
12732      # when we should be linking with a yet-to-be-installed one
12733      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12734      test no != "$hardcode_minus_L"; then
12735     # Linking always hardcodes the temporary library directory.
12736     hardcode_action=relink
12737   else
12738     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12739     hardcode_action=immediate
12740   fi
12741 else
12742   # We cannot hardcode anything, or else we can only hardcode existing
12743   # directories.
12744   hardcode_action=unsupported
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12747 $as_echo "$hardcode_action" >&6; }
12748
12749 if test relink = "$hardcode_action" ||
12750    test yes = "$inherit_rpath"; then
12751   # Fast installation is not supported
12752   enable_fast_install=no
12753 elif test yes = "$shlibpath_overrides_runpath" ||
12754      test no = "$enable_shared"; then
12755   # Fast installation is not necessary
12756   enable_fast_install=needless
12757 fi
12758
12759
12760
12761
12762
12763
12764   if test yes != "$enable_dlopen"; then
12765   enable_dlopen=unknown
12766   enable_dlopen_self=unknown
12767   enable_dlopen_self_static=unknown
12768 else
12769   lt_cv_dlopen=no
12770   lt_cv_dlopen_libs=
12771
12772   case $host_os in
12773   beos*)
12774     lt_cv_dlopen=load_add_on
12775     lt_cv_dlopen_libs=
12776     lt_cv_dlopen_self=yes
12777     ;;
12778
12779   mingw* | pw32* | cegcc*)
12780     lt_cv_dlopen=LoadLibrary
12781     lt_cv_dlopen_libs=
12782     ;;
12783
12784   cygwin*)
12785     lt_cv_dlopen=dlopen
12786     lt_cv_dlopen_libs=
12787     ;;
12788
12789   darwin*)
12790     # if libdl is installed we need to link against it
12791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12792 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12793 if ${ac_cv_lib_dl_dlopen+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-ldl  $LIBS"
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h.  */
12800
12801 /* Override any GCC internal prototype to avoid an error.
12802    Use char because int might match the return type of a GCC
12803    builtin and then its argument prototype would still apply.  */
12804 #ifdef __cplusplus
12805 extern "C"
12806 #endif
12807 char dlopen ();
12808 int
12809 main ()
12810 {
12811 return dlopen ();
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"; then :
12817   ac_cv_lib_dl_dlopen=yes
12818 else
12819   ac_cv_lib_dl_dlopen=no
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext \
12822     conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12826 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12827 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12828   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12829 else
12830
12831     lt_cv_dlopen=dyld
12832     lt_cv_dlopen_libs=
12833     lt_cv_dlopen_self=yes
12834
12835 fi
12836
12837     ;;
12838
12839   tpf*)
12840     # Don't try to run any link tests for TPF.  We know it's impossible
12841     # because TPF is a cross-compiler, and we know how we open DSOs.
12842     lt_cv_dlopen=dlopen
12843     lt_cv_dlopen_libs=
12844     lt_cv_dlopen_self=no
12845     ;;
12846
12847   *)
12848     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12849 if test "x$ac_cv_func_shl_load" = xyes; then :
12850   lt_cv_dlopen=shl_load
12851 else
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12853 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12854 if ${ac_cv_lib_dld_shl_load+:} false; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   ac_check_lib_save_LIBS=$LIBS
12858 LIBS="-ldld  $LIBS"
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h.  */
12861
12862 /* Override any GCC internal prototype to avoid an error.
12863    Use char because int might match the return type of a GCC
12864    builtin and then its argument prototype would still apply.  */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char shl_load ();
12869 int
12870 main ()
12871 {
12872 return shl_load ();
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"; then :
12878   ac_cv_lib_dld_shl_load=yes
12879 else
12880   ac_cv_lib_dld_shl_load=no
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext \
12883     conftest$ac_exeext conftest.$ac_ext
12884 LIBS=$ac_check_lib_save_LIBS
12885 fi
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12887 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12888 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12889   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12890 else
12891   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12892 if test "x$ac_cv_func_dlopen" = xyes; then :
12893   lt_cv_dlopen=dlopen
12894 else
12895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12896 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12897 if ${ac_cv_lib_dl_dlopen+:} false; then :
12898   $as_echo_n "(cached) " >&6
12899 else
12900   ac_check_lib_save_LIBS=$LIBS
12901 LIBS="-ldl  $LIBS"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h.  */
12904
12905 /* Override any GCC internal prototype to avoid an error.
12906    Use char because int might match the return type of a GCC
12907    builtin and then its argument prototype would still apply.  */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char dlopen ();
12912 int
12913 main ()
12914 {
12915 return dlopen ();
12916   ;
12917   return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921   ac_cv_lib_dl_dlopen=yes
12922 else
12923   ac_cv_lib_dl_dlopen=no
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext \
12926     conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12930 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12931 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12932   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12933 else
12934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12935 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12936 if ${ac_cv_lib_svld_dlopen+:} false; then :
12937   $as_echo_n "(cached) " >&6
12938 else
12939   ac_check_lib_save_LIBS=$LIBS
12940 LIBS="-lsvld  $LIBS"
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h.  */
12943
12944 /* Override any GCC internal prototype to avoid an error.
12945    Use char because int might match the return type of a GCC
12946    builtin and then its argument prototype would still apply.  */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 char dlopen ();
12951 int
12952 main ()
12953 {
12954 return dlopen ();
12955   ;
12956   return 0;
12957 }
12958 _ACEOF
12959 if ac_fn_c_try_link "$LINENO"; then :
12960   ac_cv_lib_svld_dlopen=yes
12961 else
12962   ac_cv_lib_svld_dlopen=no
12963 fi
12964 rm -f core conftest.err conftest.$ac_objext \
12965     conftest$ac_exeext conftest.$ac_ext
12966 LIBS=$ac_check_lib_save_LIBS
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12969 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12970 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12971   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12972 else
12973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12974 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12975 if ${ac_cv_lib_dld_dld_link+:} false; then :
12976   $as_echo_n "(cached) " >&6
12977 else
12978   ac_check_lib_save_LIBS=$LIBS
12979 LIBS="-ldld  $LIBS"
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h.  */
12982
12983 /* Override any GCC internal prototype to avoid an error.
12984    Use char because int might match the return type of a GCC
12985    builtin and then its argument prototype would still apply.  */
12986 #ifdef __cplusplus
12987 extern "C"
12988 #endif
12989 char dld_link ();
12990 int
12991 main ()
12992 {
12993 return dld_link ();
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 if ac_fn_c_try_link "$LINENO"; then :
12999   ac_cv_lib_dld_dld_link=yes
13000 else
13001   ac_cv_lib_dld_dld_link=no
13002 fi
13003 rm -f core conftest.err conftest.$ac_objext \
13004     conftest$ac_exeext conftest.$ac_ext
13005 LIBS=$ac_check_lib_save_LIBS
13006 fi
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13008 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13009 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13010   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13011 fi
13012
13013
13014 fi
13015
13016
13017 fi
13018
13019
13020 fi
13021
13022
13023 fi
13024
13025
13026 fi
13027
13028     ;;
13029   esac
13030
13031   if test no = "$lt_cv_dlopen"; then
13032     enable_dlopen=no
13033   else
13034     enable_dlopen=yes
13035   fi
13036
13037   case $lt_cv_dlopen in
13038   dlopen)
13039     save_CPPFLAGS=$CPPFLAGS
13040     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13041
13042     save_LDFLAGS=$LDFLAGS
13043     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13044
13045     save_LIBS=$LIBS
13046     LIBS="$lt_cv_dlopen_libs $LIBS"
13047
13048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13049 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13050 if ${lt_cv_dlopen_self+:} false; then :
13051   $as_echo_n "(cached) " >&6
13052 else
13053           if test yes = "$cross_compiling"; then :
13054   lt_cv_dlopen_self=cross
13055 else
13056   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13057   lt_status=$lt_dlunknown
13058   cat > conftest.$ac_ext <<_LT_EOF
13059 #line $LINENO "configure"
13060 #include "confdefs.h"
13061
13062 #if HAVE_DLFCN_H
13063 #include <dlfcn.h>
13064 #endif
13065
13066 #include <stdio.h>
13067
13068 #ifdef RTLD_GLOBAL
13069 #  define LT_DLGLOBAL           RTLD_GLOBAL
13070 #else
13071 #  ifdef DL_GLOBAL
13072 #    define LT_DLGLOBAL         DL_GLOBAL
13073 #  else
13074 #    define LT_DLGLOBAL         0
13075 #  endif
13076 #endif
13077
13078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13079    find out it does not work in some platform. */
13080 #ifndef LT_DLLAZY_OR_NOW
13081 #  ifdef RTLD_LAZY
13082 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13083 #  else
13084 #    ifdef DL_LAZY
13085 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13086 #    else
13087 #      ifdef RTLD_NOW
13088 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13089 #      else
13090 #        ifdef DL_NOW
13091 #          define LT_DLLAZY_OR_NOW      DL_NOW
13092 #        else
13093 #          define LT_DLLAZY_OR_NOW      0
13094 #        endif
13095 #      endif
13096 #    endif
13097 #  endif
13098 #endif
13099
13100 /* When -fvisibility=hidden is used, assume the code has been annotated
13101    correspondingly for the symbols needed.  */
13102 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13103 int fnord () __attribute__((visibility("default")));
13104 #endif
13105
13106 int fnord () { return 42; }
13107 int main ()
13108 {
13109   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13110   int status = $lt_dlunknown;
13111
13112   if (self)
13113     {
13114       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13115       else
13116         {
13117           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13118           else puts (dlerror ());
13119         }
13120       /* dlclose (self); */
13121     }
13122   else
13123     puts (dlerror ());
13124
13125   return status;
13126 }
13127 _LT_EOF
13128   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13129   (eval $ac_link) 2>&5
13130   ac_status=$?
13131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13132   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13133     (./conftest; exit; ) >&5 2>/dev/null
13134     lt_status=$?
13135     case x$lt_status in
13136       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13137       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13138       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13139     esac
13140   else :
13141     # compilation failed
13142     lt_cv_dlopen_self=no
13143   fi
13144 fi
13145 rm -fr conftest*
13146
13147
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13150 $as_echo "$lt_cv_dlopen_self" >&6; }
13151
13152     if test yes = "$lt_cv_dlopen_self"; then
13153       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13154       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13155 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13156 if ${lt_cv_dlopen_self_static+:} false; then :
13157   $as_echo_n "(cached) " >&6
13158 else
13159           if test yes = "$cross_compiling"; then :
13160   lt_cv_dlopen_self_static=cross
13161 else
13162   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13163   lt_status=$lt_dlunknown
13164   cat > conftest.$ac_ext <<_LT_EOF
13165 #line $LINENO "configure"
13166 #include "confdefs.h"
13167
13168 #if HAVE_DLFCN_H
13169 #include <dlfcn.h>
13170 #endif
13171
13172 #include <stdio.h>
13173
13174 #ifdef RTLD_GLOBAL
13175 #  define LT_DLGLOBAL           RTLD_GLOBAL
13176 #else
13177 #  ifdef DL_GLOBAL
13178 #    define LT_DLGLOBAL         DL_GLOBAL
13179 #  else
13180 #    define LT_DLGLOBAL         0
13181 #  endif
13182 #endif
13183
13184 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13185    find out it does not work in some platform. */
13186 #ifndef LT_DLLAZY_OR_NOW
13187 #  ifdef RTLD_LAZY
13188 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13189 #  else
13190 #    ifdef DL_LAZY
13191 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13192 #    else
13193 #      ifdef RTLD_NOW
13194 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13195 #      else
13196 #        ifdef DL_NOW
13197 #          define LT_DLLAZY_OR_NOW      DL_NOW
13198 #        else
13199 #          define LT_DLLAZY_OR_NOW      0
13200 #        endif
13201 #      endif
13202 #    endif
13203 #  endif
13204 #endif
13205
13206 /* When -fvisibility=hidden is used, assume the code has been annotated
13207    correspondingly for the symbols needed.  */
13208 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13209 int fnord () __attribute__((visibility("default")));
13210 #endif
13211
13212 int fnord () { return 42; }
13213 int main ()
13214 {
13215   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13216   int status = $lt_dlunknown;
13217
13218   if (self)
13219     {
13220       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13221       else
13222         {
13223           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13224           else puts (dlerror ());
13225         }
13226       /* dlclose (self); */
13227     }
13228   else
13229     puts (dlerror ());
13230
13231   return status;
13232 }
13233 _LT_EOF
13234   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13235   (eval $ac_link) 2>&5
13236   ac_status=$?
13237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13239     (./conftest; exit; ) >&5 2>/dev/null
13240     lt_status=$?
13241     case x$lt_status in
13242       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13243       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13244       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13245     esac
13246   else :
13247     # compilation failed
13248     lt_cv_dlopen_self_static=no
13249   fi
13250 fi
13251 rm -fr conftest*
13252
13253
13254 fi
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13256 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13257     fi
13258
13259     CPPFLAGS=$save_CPPFLAGS
13260     LDFLAGS=$save_LDFLAGS
13261     LIBS=$save_LIBS
13262     ;;
13263   esac
13264
13265   case $lt_cv_dlopen_self in
13266   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13267   *) enable_dlopen_self=unknown ;;
13268   esac
13269
13270   case $lt_cv_dlopen_self_static in
13271   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13272   *) enable_dlopen_self_static=unknown ;;
13273   esac
13274 fi
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292 striplib=
13293 old_striplib=
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13295 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13296 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13297   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13298   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13300 $as_echo "yes" >&6; }
13301 else
13302 # FIXME - insert some real tests, host_os isn't really good enough
13303   case $host_os in
13304   darwin*)
13305     if test -n "$STRIP"; then
13306       striplib="$STRIP -x"
13307       old_striplib="$STRIP -S"
13308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13309 $as_echo "yes" >&6; }
13310     else
13311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312 $as_echo "no" >&6; }
13313     fi
13314     ;;
13315   *)
13316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13318     ;;
13319   esac
13320 fi
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333   # Report what library types will actually be built
13334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13335 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13337 $as_echo "$can_build_shared" >&6; }
13338
13339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13340 $as_echo_n "checking whether to build shared libraries... " >&6; }
13341   test no = "$can_build_shared" && enable_shared=no
13342
13343   # On AIX, shared libraries and static libraries use the same namespace, and
13344   # are all built from PIC.
13345   case $host_os in
13346   aix3*)
13347     test yes = "$enable_shared" && enable_static=no
13348     if test -n "$RANLIB"; then
13349       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13350       postinstall_cmds='$RANLIB $lib'
13351     fi
13352     ;;
13353
13354   aix[4-9]*)
13355     if test ia64 != "$host_cpu"; then
13356       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13357       yes,aix,yes) ;;                   # shared object as lib.so file only
13358       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13359       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13360       esac
13361     fi
13362     ;;
13363   esac
13364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13365 $as_echo "$enable_shared" >&6; }
13366
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13368 $as_echo_n "checking whether to build static libraries... " >&6; }
13369   # Make sure either enable_shared or enable_static is yes.
13370   test yes = "$enable_shared" || enable_static=yes
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13372 $as_echo "$enable_static" >&6; }
13373
13374
13375
13376
13377 fi
13378 ac_ext=c
13379 ac_cpp='$CPP $CPPFLAGS'
13380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13383
13384 CC=$lt_save_CC
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400         ac_config_commands="$ac_config_commands libtool"
13401
13402
13403
13404
13405 # Only expand once:
13406
13407
13408
13409 # Check for programs
13410
13411   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
13412 if test "x$ac_cv_header_minix_config_h" = xyes; then :
13413   MINIX=yes
13414 else
13415   MINIX=
13416 fi
13417
13418
13419   if test "$MINIX" = yes; then
13420
13421 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
13422
13423
13424 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
13425
13426
13427 $as_echo "#define _MINIX 1" >>confdefs.h
13428
13429   fi
13430
13431
13432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
13433 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
13434 if ${ac_cv_safe_to_define___extensions__+:} false; then :
13435   $as_echo_n "(cached) " >&6
13436 else
13437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h.  */
13439
13440 #         define __EXTENSIONS__ 1
13441           $ac_includes_default
13442 int
13443 main ()
13444 {
13445
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 if ac_fn_c_try_compile "$LINENO"; then :
13451   ac_cv_safe_to_define___extensions__=yes
13452 else
13453   ac_cv_safe_to_define___extensions__=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
13458 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
13459   test $ac_cv_safe_to_define___extensions__ = yes &&
13460     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
13461
13462   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
13463
13464   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13465
13466   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
13467
13468   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
13469
13470
13471 ac_ext=c
13472 ac_cpp='$CPP $CPPFLAGS'
13473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13476 if test -n "$ac_tool_prefix"; then
13477   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13480 $as_echo_n "checking for $ac_word... " >&6; }
13481 if ${ac_cv_prog_CC+:} false; then :
13482   $as_echo_n "(cached) " >&6
13483 else
13484   if test -n "$CC"; then
13485   ac_cv_prog_CC="$CC" # Let the user override the test.
13486 else
13487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488 for as_dir in $PATH
13489 do
13490   IFS=$as_save_IFS
13491   test -z "$as_dir" && as_dir=.
13492     for ac_exec_ext in '' $ac_executable_extensions; do
13493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13494     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13496     break 2
13497   fi
13498 done
13499   done
13500 IFS=$as_save_IFS
13501
13502 fi
13503 fi
13504 CC=$ac_cv_prog_CC
13505 if test -n "$CC"; then
13506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13507 $as_echo "$CC" >&6; }
13508 else
13509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510 $as_echo "no" >&6; }
13511 fi
13512
13513
13514 fi
13515 if test -z "$ac_cv_prog_CC"; then
13516   ac_ct_CC=$CC
13517   # Extract the first word of "gcc", so it can be a program name with args.
13518 set dummy gcc; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520 $as_echo_n "checking for $ac_word... " >&6; }
13521 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13522   $as_echo_n "(cached) " >&6
13523 else
13524   if test -n "$ac_ct_CC"; then
13525   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13526 else
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13529 do
13530   IFS=$as_save_IFS
13531   test -z "$as_dir" && as_dir=.
13532     for ac_exec_ext in '' $ac_executable_extensions; do
13533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534     ac_cv_prog_ac_ct_CC="gcc"
13535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536     break 2
13537   fi
13538 done
13539   done
13540 IFS=$as_save_IFS
13541
13542 fi
13543 fi
13544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13545 if test -n "$ac_ct_CC"; then
13546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13547 $as_echo "$ac_ct_CC" >&6; }
13548 else
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13551 fi
13552
13553   if test "x$ac_ct_CC" = x; then
13554     CC=""
13555   else
13556     case $cross_compiling:$ac_tool_warned in
13557 yes:)
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13560 ac_tool_warned=yes ;;
13561 esac
13562     CC=$ac_ct_CC
13563   fi
13564 else
13565   CC="$ac_cv_prog_CC"
13566 fi
13567
13568 if test -z "$CC"; then
13569           if test -n "$ac_tool_prefix"; then
13570     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13571 set dummy ${ac_tool_prefix}cc; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if ${ac_cv_prog_CC+:} false; then :
13575   $as_echo_n "(cached) " >&6
13576 else
13577   if test -n "$CC"; then
13578   ac_cv_prog_CC="$CC" # Let the user override the test.
13579 else
13580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13582 do
13583   IFS=$as_save_IFS
13584   test -z "$as_dir" && as_dir=.
13585     for ac_exec_ext in '' $ac_executable_extensions; do
13586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13587     ac_cv_prog_CC="${ac_tool_prefix}cc"
13588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589     break 2
13590   fi
13591 done
13592   done
13593 IFS=$as_save_IFS
13594
13595 fi
13596 fi
13597 CC=$ac_cv_prog_CC
13598 if test -n "$CC"; then
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13600 $as_echo "$CC" >&6; }
13601 else
13602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
13604 fi
13605
13606
13607   fi
13608 fi
13609 if test -z "$CC"; then
13610   # Extract the first word of "cc", so it can be a program name with args.
13611 set dummy cc; ac_word=$2
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13613 $as_echo_n "checking for $ac_word... " >&6; }
13614 if ${ac_cv_prog_CC+:} false; then :
13615   $as_echo_n "(cached) " >&6
13616 else
13617   if test -n "$CC"; then
13618   ac_cv_prog_CC="$CC" # Let the user override the test.
13619 else
13620   ac_prog_rejected=no
13621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13622 for as_dir in $PATH
13623 do
13624   IFS=$as_save_IFS
13625   test -z "$as_dir" && as_dir=.
13626     for ac_exec_ext in '' $ac_executable_extensions; do
13627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13628     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13629        ac_prog_rejected=yes
13630        continue
13631      fi
13632     ac_cv_prog_CC="cc"
13633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634     break 2
13635   fi
13636 done
13637   done
13638 IFS=$as_save_IFS
13639
13640 if test $ac_prog_rejected = yes; then
13641   # We found a bogon in the path, so make sure we never use it.
13642   set dummy $ac_cv_prog_CC
13643   shift
13644   if test $# != 0; then
13645     # We chose a different compiler from the bogus one.
13646     # However, it has the same basename, so the bogon will be chosen
13647     # first if we set CC to just the basename; use the full file name.
13648     shift
13649     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13650   fi
13651 fi
13652 fi
13653 fi
13654 CC=$ac_cv_prog_CC
13655 if test -n "$CC"; then
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13657 $as_echo "$CC" >&6; }
13658 else
13659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13661 fi
13662
13663
13664 fi
13665 if test -z "$CC"; then
13666   if test -n "$ac_tool_prefix"; then
13667   for ac_prog in cl.exe
13668   do
13669     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672 $as_echo_n "checking for $ac_word... " >&6; }
13673 if ${ac_cv_prog_CC+:} false; then :
13674   $as_echo_n "(cached) " >&6
13675 else
13676   if test -n "$CC"; then
13677   ac_cv_prog_CC="$CC" # Let the user override the test.
13678 else
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13681 do
13682   IFS=$as_save_IFS
13683   test -z "$as_dir" && as_dir=.
13684     for ac_exec_ext in '' $ac_executable_extensions; do
13685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13686     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13688     break 2
13689   fi
13690 done
13691   done
13692 IFS=$as_save_IFS
13693
13694 fi
13695 fi
13696 CC=$ac_cv_prog_CC
13697 if test -n "$CC"; then
13698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13699 $as_echo "$CC" >&6; }
13700 else
13701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702 $as_echo "no" >&6; }
13703 fi
13704
13705
13706     test -n "$CC" && break
13707   done
13708 fi
13709 if test -z "$CC"; then
13710   ac_ct_CC=$CC
13711   for ac_prog in cl.exe
13712 do
13713   # Extract the first word of "$ac_prog", so it can be a program name with args.
13714 set dummy $ac_prog; ac_word=$2
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13716 $as_echo_n "checking for $ac_word... " >&6; }
13717 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13718   $as_echo_n "(cached) " >&6
13719 else
13720   if test -n "$ac_ct_CC"; then
13721   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13722 else
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13725 do
13726   IFS=$as_save_IFS
13727   test -z "$as_dir" && as_dir=.
13728     for ac_exec_ext in '' $ac_executable_extensions; do
13729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13730     ac_cv_prog_ac_ct_CC="$ac_prog"
13731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732     break 2
13733   fi
13734 done
13735   done
13736 IFS=$as_save_IFS
13737
13738 fi
13739 fi
13740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13741 if test -n "$ac_ct_CC"; then
13742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13743 $as_echo "$ac_ct_CC" >&6; }
13744 else
13745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13747 fi
13748
13749
13750   test -n "$ac_ct_CC" && break
13751 done
13752
13753   if test "x$ac_ct_CC" = x; then
13754     CC=""
13755   else
13756     case $cross_compiling:$ac_tool_warned in
13757 yes:)
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13760 ac_tool_warned=yes ;;
13761 esac
13762     CC=$ac_ct_CC
13763   fi
13764 fi
13765
13766 fi
13767
13768
13769 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13771 as_fn_error $? "no acceptable C compiler found in \$PATH
13772 See \`config.log' for more details" "$LINENO" 5; }
13773
13774 # Provide some information about the compiler.
13775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13776 set X $ac_compile
13777 ac_compiler=$2
13778 for ac_option in --version -v -V -qversion; do
13779   { { ac_try="$ac_compiler $ac_option >&5"
13780 case "(($ac_try" in
13781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782   *) ac_try_echo=$ac_try;;
13783 esac
13784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13785 $as_echo "$ac_try_echo"; } >&5
13786   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13787   ac_status=$?
13788   if test -s conftest.err; then
13789     sed '10a\
13790 ... rest of stderr output deleted ...
13791          10q' conftest.err >conftest.er1
13792     cat conftest.er1 >&5
13793   fi
13794   rm -f conftest.er1 conftest.err
13795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13796   test $ac_status = 0; }
13797 done
13798
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13801 if ${ac_cv_c_compiler_gnu+:} false; then :
13802   $as_echo_n "(cached) " >&6
13803 else
13804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h.  */
13806
13807 int
13808 main ()
13809 {
13810 #ifndef __GNUC__
13811        choke me
13812 #endif
13813
13814   ;
13815   return 0;
13816 }
13817 _ACEOF
13818 if ac_fn_c_try_compile "$LINENO"; then :
13819   ac_compiler_gnu=yes
13820 else
13821   ac_compiler_gnu=no
13822 fi
13823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13825
13826 fi
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13829 if test $ac_compiler_gnu = yes; then
13830   GCC=yes
13831 else
13832   GCC=
13833 fi
13834 ac_test_CFLAGS=${CFLAGS+set}
13835 ac_save_CFLAGS=$CFLAGS
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13838 if ${ac_cv_prog_cc_g+:} false; then :
13839   $as_echo_n "(cached) " >&6
13840 else
13841   ac_save_c_werror_flag=$ac_c_werror_flag
13842    ac_c_werror_flag=yes
13843    ac_cv_prog_cc_g=no
13844    CFLAGS="-g"
13845    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h.  */
13847
13848 int
13849 main ()
13850 {
13851
13852   ;
13853   return 0;
13854 }
13855 _ACEOF
13856 if ac_fn_c_try_compile "$LINENO"; then :
13857   ac_cv_prog_cc_g=yes
13858 else
13859   CFLAGS=""
13860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h.  */
13862
13863 int
13864 main ()
13865 {
13866
13867   ;
13868   return 0;
13869 }
13870 _ACEOF
13871 if ac_fn_c_try_compile "$LINENO"; then :
13872
13873 else
13874   ac_c_werror_flag=$ac_save_c_werror_flag
13875          CFLAGS="-g"
13876          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h.  */
13878
13879 int
13880 main ()
13881 {
13882
13883   ;
13884   return 0;
13885 }
13886 _ACEOF
13887 if ac_fn_c_try_compile "$LINENO"; then :
13888   ac_cv_prog_cc_g=yes
13889 fi
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891 fi
13892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13893 fi
13894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895    ac_c_werror_flag=$ac_save_c_werror_flag
13896 fi
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13898 $as_echo "$ac_cv_prog_cc_g" >&6; }
13899 if test "$ac_test_CFLAGS" = set; then
13900   CFLAGS=$ac_save_CFLAGS
13901 elif test $ac_cv_prog_cc_g = yes; then
13902   if test "$GCC" = yes; then
13903     CFLAGS="-g -O2"
13904   else
13905     CFLAGS="-g"
13906   fi
13907 else
13908   if test "$GCC" = yes; then
13909     CFLAGS="-O2"
13910   else
13911     CFLAGS=
13912   fi
13913 fi
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13916 if ${ac_cv_prog_cc_c89+:} false; then :
13917   $as_echo_n "(cached) " >&6
13918 else
13919   ac_cv_prog_cc_c89=no
13920 ac_save_CC=$CC
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h.  */
13923 #include <stdarg.h>
13924 #include <stdio.h>
13925 struct stat;
13926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13927 struct buf { int x; };
13928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13929 static char *e (p, i)
13930      char **p;
13931      int i;
13932 {
13933   return p[i];
13934 }
13935 static char *f (char * (*g) (char **, int), char **p, ...)
13936 {
13937   char *s;
13938   va_list v;
13939   va_start (v,p);
13940   s = g (p, va_arg (v,int));
13941   va_end (v);
13942   return s;
13943 }
13944
13945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13946    function prototypes and stuff, but not '\xHH' hex character constants.
13947    These don't provoke an error unfortunately, instead are silently treated
13948    as 'x'.  The following induces an error, until -std is added to get
13949    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13950    array size at least.  It's necessary to write '\x00'==0 to get something
13951    that's true only with -std.  */
13952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13953
13954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13955    inside strings and character constants.  */
13956 #define FOO(x) 'x'
13957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13958
13959 int test (int i, double x);
13960 struct s1 {int (*f) (int a);};
13961 struct s2 {int (*f) (double a);};
13962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13963 int argc;
13964 char **argv;
13965 int
13966 main ()
13967 {
13968 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13969   ;
13970   return 0;
13971 }
13972 _ACEOF
13973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13974         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13975 do
13976   CC="$ac_save_CC $ac_arg"
13977   if ac_fn_c_try_compile "$LINENO"; then :
13978   ac_cv_prog_cc_c89=$ac_arg
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext
13981   test "x$ac_cv_prog_cc_c89" != "xno" && break
13982 done
13983 rm -f conftest.$ac_ext
13984 CC=$ac_save_CC
13985
13986 fi
13987 # AC_CACHE_VAL
13988 case "x$ac_cv_prog_cc_c89" in
13989   x)
13990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13991 $as_echo "none needed" >&6; } ;;
13992   xno)
13993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13994 $as_echo "unsupported" >&6; } ;;
13995   *)
13996     CC="$CC $ac_cv_prog_cc_c89"
13997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13999 esac
14000 if test "x$ac_cv_prog_cc_c89" != xno; then :
14001
14002 fi
14003
14004 ac_ext=c
14005 ac_cpp='$CPP $CPPFLAGS'
14006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14009
14010 ac_ext=c
14011 ac_cpp='$CPP $CPPFLAGS'
14012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14016 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14017 if ${am_cv_prog_cc_c_o+:} false; then :
14018   $as_echo_n "(cached) " >&6
14019 else
14020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h.  */
14022
14023 int
14024 main ()
14025 {
14026
14027   ;
14028   return 0;
14029 }
14030 _ACEOF
14031   # Make sure it works both with $CC and with simple cc.
14032   # Following AC_PROG_CC_C_O, we do the test twice because some
14033   # compilers refuse to overwrite an existing .o file with -o,
14034   # though they will create one.
14035   am_cv_prog_cc_c_o=yes
14036   for am_i in 1 2; do
14037     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14038    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14039    ac_status=$?
14040    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041    (exit $ac_status); } \
14042          && test -f conftest2.$ac_objext; then
14043       : OK
14044     else
14045       am_cv_prog_cc_c_o=no
14046       break
14047     fi
14048   done
14049   rm -f core conftest*
14050   unset am_i
14051 fi
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14053 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14054 if test "$am_cv_prog_cc_c_o" != yes; then
14055    # Losing compiler, so override with the script.
14056    # FIXME: It is wrong to rewrite CC.
14057    # But if we don't then we get into trouble of one sort or another.
14058    # A longer-term fix would be to have automake use am__CC in this case,
14059    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14060    CC="$am_aux_dir/compile $CC"
14061 fi
14062 ac_ext=c
14063 ac_cpp='$CPP $CPPFLAGS'
14064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14067
14068
14069 depcc="$CC"   am_compiler_list=
14070
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14072 $as_echo_n "checking dependency style of $depcc... " >&6; }
14073 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14074   $as_echo_n "(cached) " >&6
14075 else
14076   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14077   # We make a subdir and do the tests there.  Otherwise we can end up
14078   # making bogus files that we don't know about and never remove.  For
14079   # instance it was reported that on HP-UX the gcc test will end up
14080   # making a dummy file named 'D' -- because '-MD' means "put the output
14081   # in D".
14082   rm -rf conftest.dir
14083   mkdir conftest.dir
14084   # Copy depcomp to subdir because otherwise we won't find it if we're
14085   # using a relative directory.
14086   cp "$am_depcomp" conftest.dir
14087   cd conftest.dir
14088   # We will build objects and dependencies in a subdirectory because
14089   # it helps to detect inapplicable dependency modes.  For instance
14090   # both Tru64's cc and ICC support -MD to output dependencies as a
14091   # side effect of compilation, but ICC will put the dependencies in
14092   # the current directory while Tru64 will put them in the object
14093   # directory.
14094   mkdir sub
14095
14096   am_cv_CC_dependencies_compiler_type=none
14097   if test "$am_compiler_list" = ""; then
14098      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14099   fi
14100   am__universal=false
14101   case " $depcc " in #(
14102      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14103      esac
14104
14105   for depmode in $am_compiler_list; do
14106     # Setup a source with many dependencies, because some compilers
14107     # like to wrap large dependency lists on column 80 (with \), and
14108     # we should not choose a depcomp mode which is confused by this.
14109     #
14110     # We need to recreate these files for each test, as the compiler may
14111     # overwrite some of them when testing with obscure command lines.
14112     # This happens at least with the AIX C compiler.
14113     : > sub/conftest.c
14114     for i in 1 2 3 4 5 6; do
14115       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14116       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14117       # Solaris 10 /bin/sh.
14118       echo '/* dummy */' > sub/conftst$i.h
14119     done
14120     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14121
14122     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14123     # mode.  It turns out that the SunPro C++ compiler does not properly
14124     # handle '-M -o', and we need to detect this.  Also, some Intel
14125     # versions had trouble with output in subdirs.
14126     am__obj=sub/conftest.${OBJEXT-o}
14127     am__minus_obj="-o $am__obj"
14128     case $depmode in
14129     gcc)
14130       # This depmode causes a compiler race in universal mode.
14131       test "$am__universal" = false || continue
14132       ;;
14133     nosideeffect)
14134       # After this tag, mechanisms are not by side-effect, so they'll
14135       # only be used when explicitly requested.
14136       if test "x$enable_dependency_tracking" = xyes; then
14137         continue
14138       else
14139         break
14140       fi
14141       ;;
14142     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14143       # This compiler won't grok '-c -o', but also, the minuso test has
14144       # not run yet.  These depmodes are late enough in the game, and
14145       # so weak that their functioning should not be impacted.
14146       am__obj=conftest.${OBJEXT-o}
14147       am__minus_obj=
14148       ;;
14149     none) break ;;
14150     esac
14151     if depmode=$depmode \
14152        source=sub/conftest.c object=$am__obj \
14153        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14154        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14155          >/dev/null 2>conftest.err &&
14156        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14157        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14158        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14159        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14160       # icc doesn't choke on unknown options, it will just issue warnings
14161       # or remarks (even with -Werror).  So we grep stderr for any message
14162       # that says an option was ignored or not supported.
14163       # When given -MP, icc 7.0 and 7.1 complain thusly:
14164       #   icc: Command line warning: ignoring option '-M'; no argument required
14165       # The diagnosis changed in icc 8.0:
14166       #   icc: Command line remark: option '-MP' not supported
14167       if (grep 'ignoring option' conftest.err ||
14168           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14169         am_cv_CC_dependencies_compiler_type=$depmode
14170         break
14171       fi
14172     fi
14173   done
14174
14175   cd ..
14176   rm -rf conftest.dir
14177 else
14178   am_cv_CC_dependencies_compiler_type=none
14179 fi
14180
14181 fi
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14183 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14185
14186  if
14187   test "x$enable_dependency_tracking" != xno \
14188   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14189   am__fastdepCC_TRUE=
14190   am__fastdepCC_FALSE='#'
14191 else
14192   am__fastdepCC_TRUE='#'
14193   am__fastdepCC_FALSE=
14194 fi
14195
14196
14197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14198 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14199 if ${ac_cv_prog_cc_c99+:} false; then :
14200   $as_echo_n "(cached) " >&6
14201 else
14202   ac_cv_prog_cc_c99=no
14203 ac_save_CC=$CC
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h.  */
14206 #include <stdarg.h>
14207 #include <stdbool.h>
14208 #include <stdlib.h>
14209 #include <wchar.h>
14210 #include <stdio.h>
14211
14212 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14213 #define debug(...) fprintf (stderr, __VA_ARGS__)
14214 #define showlist(...) puts (#__VA_ARGS__)
14215 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14216 static void
14217 test_varargs_macros (void)
14218 {
14219   int x = 1234;
14220   int y = 5678;
14221   debug ("Flag");
14222   debug ("X = %d\n", x);
14223   showlist (The first, second, and third items.);
14224   report (x>y, "x is %d but y is %d", x, y);
14225 }
14226
14227 // Check long long types.
14228 #define BIG64 18446744073709551615ull
14229 #define BIG32 4294967295ul
14230 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14231 #if !BIG_OK
14232   your preprocessor is broken;
14233 #endif
14234 #if BIG_OK
14235 #else
14236   your preprocessor is broken;
14237 #endif
14238 static long long int bignum = -9223372036854775807LL;
14239 static unsigned long long int ubignum = BIG64;
14240
14241 struct incomplete_array
14242 {
14243   int datasize;
14244   double data[];
14245 };
14246
14247 struct named_init {
14248   int number;
14249   const wchar_t *name;
14250   double average;
14251 };
14252
14253 typedef const char *ccp;
14254
14255 static inline int
14256 test_restrict (ccp restrict text)
14257 {
14258   // See if C++-style comments work.
14259   // Iterate through items via the restricted pointer.
14260   // Also check for declarations in for loops.
14261   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14262     continue;
14263   return 0;
14264 }
14265
14266 // Check varargs and va_copy.
14267 static void
14268 test_varargs (const char *format, ...)
14269 {
14270   va_list args;
14271   va_start (args, format);
14272   va_list args_copy;
14273   va_copy (args_copy, args);
14274
14275   const char *str;
14276   int number;
14277   float fnumber;
14278
14279   while (*format)
14280     {
14281       switch (*format++)
14282         {
14283         case 's': // string
14284           str = va_arg (args_copy, const char *);
14285           break;
14286         case 'd': // int
14287           number = va_arg (args_copy, int);
14288           break;
14289         case 'f': // float
14290           fnumber = va_arg (args_copy, double);
14291           break;
14292         default:
14293           break;
14294         }
14295     }
14296   va_end (args_copy);
14297   va_end (args);
14298 }
14299
14300 int
14301 main ()
14302 {
14303
14304   // Check bool.
14305   _Bool success = false;
14306
14307   // Check restrict.
14308   if (test_restrict ("String literal") == 0)
14309     success = true;
14310   char *restrict newvar = "Another string";
14311
14312   // Check varargs.
14313   test_varargs ("s, d' f .", "string", 65, 34.234);
14314   test_varargs_macros ();
14315
14316   // Check flexible array members.
14317   struct incomplete_array *ia =
14318     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14319   ia->datasize = 10;
14320   for (int i = 0; i < ia->datasize; ++i)
14321     ia->data[i] = i * 1.234;
14322
14323   // Check named initializers.
14324   struct named_init ni = {
14325     .number = 34,
14326     .name = L"Test wide string",
14327     .average = 543.34343,
14328   };
14329
14330   ni.number = 58;
14331
14332   int dynamic_array[ni.number];
14333   dynamic_array[ni.number - 1] = 543;
14334
14335   // work around unused variable warnings
14336   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14337           || dynamic_array[ni.number - 1] != 543);
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14344 do
14345   CC="$ac_save_CC $ac_arg"
14346   if ac_fn_c_try_compile "$LINENO"; then :
14347   ac_cv_prog_cc_c99=$ac_arg
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext
14350   test "x$ac_cv_prog_cc_c99" != "xno" && break
14351 done
14352 rm -f conftest.$ac_ext
14353 CC=$ac_save_CC
14354
14355 fi
14356 # AC_CACHE_VAL
14357 case "x$ac_cv_prog_cc_c99" in
14358   x)
14359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14360 $as_echo "none needed" >&6; } ;;
14361   xno)
14362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14363 $as_echo "unsupported" >&6; } ;;
14364   *)
14365     CC="$CC $ac_cv_prog_cc_c99"
14366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14367 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14368 esac
14369 if test "x$ac_cv_prog_cc_c99" != xno; then :
14370
14371 fi
14372
14373
14374
14375 ac_ext=cpp
14376 ac_cpp='$CXXCPP $CPPFLAGS'
14377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14380 if test -z "$CXX"; then
14381   if test -n "$CCC"; then
14382     CXX=$CCC
14383   else
14384     if test -n "$ac_tool_prefix"; then
14385   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14386   do
14387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14390 $as_echo_n "checking for $ac_word... " >&6; }
14391 if ${ac_cv_prog_CXX+:} false; then :
14392   $as_echo_n "(cached) " >&6
14393 else
14394   if test -n "$CXX"; then
14395   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14396 else
14397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398 for as_dir in $PATH
14399 do
14400   IFS=$as_save_IFS
14401   test -z "$as_dir" && as_dir=.
14402     for ac_exec_ext in '' $ac_executable_extensions; do
14403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14404     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14406     break 2
14407   fi
14408 done
14409   done
14410 IFS=$as_save_IFS
14411
14412 fi
14413 fi
14414 CXX=$ac_cv_prog_CXX
14415 if test -n "$CXX"; then
14416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14417 $as_echo "$CXX" >&6; }
14418 else
14419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14420 $as_echo "no" >&6; }
14421 fi
14422
14423
14424     test -n "$CXX" && break
14425   done
14426 fi
14427 if test -z "$CXX"; then
14428   ac_ct_CXX=$CXX
14429   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14430 do
14431   # Extract the first word of "$ac_prog", so it can be a program name with args.
14432 set dummy $ac_prog; ac_word=$2
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434 $as_echo_n "checking for $ac_word... " >&6; }
14435 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14436   $as_echo_n "(cached) " >&6
14437 else
14438   if test -n "$ac_ct_CXX"; then
14439   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14440 else
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14443 do
14444   IFS=$as_save_IFS
14445   test -z "$as_dir" && as_dir=.
14446     for ac_exec_ext in '' $ac_executable_extensions; do
14447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14448     ac_cv_prog_ac_ct_CXX="$ac_prog"
14449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450     break 2
14451   fi
14452 done
14453   done
14454 IFS=$as_save_IFS
14455
14456 fi
14457 fi
14458 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14459 if test -n "$ac_ct_CXX"; then
14460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14461 $as_echo "$ac_ct_CXX" >&6; }
14462 else
14463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464 $as_echo "no" >&6; }
14465 fi
14466
14467
14468   test -n "$ac_ct_CXX" && break
14469 done
14470
14471   if test "x$ac_ct_CXX" = x; then
14472     CXX="g++"
14473   else
14474     case $cross_compiling:$ac_tool_warned in
14475 yes:)
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14478 ac_tool_warned=yes ;;
14479 esac
14480     CXX=$ac_ct_CXX
14481   fi
14482 fi
14483
14484   fi
14485 fi
14486 # Provide some information about the compiler.
14487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14488 set X $ac_compile
14489 ac_compiler=$2
14490 for ac_option in --version -v -V -qversion; do
14491   { { ac_try="$ac_compiler $ac_option >&5"
14492 case "(($ac_try" in
14493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494   *) ac_try_echo=$ac_try;;
14495 esac
14496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14497 $as_echo "$ac_try_echo"; } >&5
14498   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14499   ac_status=$?
14500   if test -s conftest.err; then
14501     sed '10a\
14502 ... rest of stderr output deleted ...
14503          10q' conftest.err >conftest.er1
14504     cat conftest.er1 >&5
14505   fi
14506   rm -f conftest.er1 conftest.err
14507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14508   test $ac_status = 0; }
14509 done
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14512 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14513 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14514   $as_echo_n "(cached) " >&6
14515 else
14516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h.  */
14518
14519 int
14520 main ()
14521 {
14522 #ifndef __GNUC__
14523        choke me
14524 #endif
14525
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 if ac_fn_cxx_try_compile "$LINENO"; then :
14531   ac_compiler_gnu=yes
14532 else
14533   ac_compiler_gnu=no
14534 fi
14535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14537
14538 fi
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14540 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14541 if test $ac_compiler_gnu = yes; then
14542   GXX=yes
14543 else
14544   GXX=
14545 fi
14546 ac_test_CXXFLAGS=${CXXFLAGS+set}
14547 ac_save_CXXFLAGS=$CXXFLAGS
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14549 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14550 if ${ac_cv_prog_cxx_g+:} false; then :
14551   $as_echo_n "(cached) " >&6
14552 else
14553   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14554    ac_cxx_werror_flag=yes
14555    ac_cv_prog_cxx_g=no
14556    CXXFLAGS="-g"
14557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h.  */
14559
14560 int
14561 main ()
14562 {
14563
14564   ;
14565   return 0;
14566 }
14567 _ACEOF
14568 if ac_fn_cxx_try_compile "$LINENO"; then :
14569   ac_cv_prog_cxx_g=yes
14570 else
14571   CXXFLAGS=""
14572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h.  */
14574
14575 int
14576 main ()
14577 {
14578
14579   ;
14580   return 0;
14581 }
14582 _ACEOF
14583 if ac_fn_cxx_try_compile "$LINENO"; then :
14584
14585 else
14586   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14587          CXXFLAGS="-g"
14588          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h.  */
14590
14591 int
14592 main ()
14593 {
14594
14595   ;
14596   return 0;
14597 }
14598 _ACEOF
14599 if ac_fn_cxx_try_compile "$LINENO"; then :
14600   ac_cv_prog_cxx_g=yes
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 fi
14604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605 fi
14606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14608 fi
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14610 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14611 if test "$ac_test_CXXFLAGS" = set; then
14612   CXXFLAGS=$ac_save_CXXFLAGS
14613 elif test $ac_cv_prog_cxx_g = yes; then
14614   if test "$GXX" = yes; then
14615     CXXFLAGS="-g -O2"
14616   else
14617     CXXFLAGS="-g"
14618   fi
14619 else
14620   if test "$GXX" = yes; then
14621     CXXFLAGS="-O2"
14622   else
14623     CXXFLAGS=
14624   fi
14625 fi
14626 ac_ext=c
14627 ac_cpp='$CPP $CPPFLAGS'
14628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14631
14632 depcc="$CXX"  am_compiler_list=
14633
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14635 $as_echo_n "checking dependency style of $depcc... " >&6; }
14636 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14637   $as_echo_n "(cached) " >&6
14638 else
14639   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14640   # We make a subdir and do the tests there.  Otherwise we can end up
14641   # making bogus files that we don't know about and never remove.  For
14642   # instance it was reported that on HP-UX the gcc test will end up
14643   # making a dummy file named 'D' -- because '-MD' means "put the output
14644   # in D".
14645   rm -rf conftest.dir
14646   mkdir conftest.dir
14647   # Copy depcomp to subdir because otherwise we won't find it if we're
14648   # using a relative directory.
14649   cp "$am_depcomp" conftest.dir
14650   cd conftest.dir
14651   # We will build objects and dependencies in a subdirectory because
14652   # it helps to detect inapplicable dependency modes.  For instance
14653   # both Tru64's cc and ICC support -MD to output dependencies as a
14654   # side effect of compilation, but ICC will put the dependencies in
14655   # the current directory while Tru64 will put them in the object
14656   # directory.
14657   mkdir sub
14658
14659   am_cv_CXX_dependencies_compiler_type=none
14660   if test "$am_compiler_list" = ""; then
14661      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14662   fi
14663   am__universal=false
14664   case " $depcc " in #(
14665      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14666      esac
14667
14668   for depmode in $am_compiler_list; do
14669     # Setup a source with many dependencies, because some compilers
14670     # like to wrap large dependency lists on column 80 (with \), and
14671     # we should not choose a depcomp mode which is confused by this.
14672     #
14673     # We need to recreate these files for each test, as the compiler may
14674     # overwrite some of them when testing with obscure command lines.
14675     # This happens at least with the AIX C compiler.
14676     : > sub/conftest.c
14677     for i in 1 2 3 4 5 6; do
14678       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14679       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14680       # Solaris 10 /bin/sh.
14681       echo '/* dummy */' > sub/conftst$i.h
14682     done
14683     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14684
14685     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14686     # mode.  It turns out that the SunPro C++ compiler does not properly
14687     # handle '-M -o', and we need to detect this.  Also, some Intel
14688     # versions had trouble with output in subdirs.
14689     am__obj=sub/conftest.${OBJEXT-o}
14690     am__minus_obj="-o $am__obj"
14691     case $depmode in
14692     gcc)
14693       # This depmode causes a compiler race in universal mode.
14694       test "$am__universal" = false || continue
14695       ;;
14696     nosideeffect)
14697       # After this tag, mechanisms are not by side-effect, so they'll
14698       # only be used when explicitly requested.
14699       if test "x$enable_dependency_tracking" = xyes; then
14700         continue
14701       else
14702         break
14703       fi
14704       ;;
14705     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14706       # This compiler won't grok '-c -o', but also, the minuso test has
14707       # not run yet.  These depmodes are late enough in the game, and
14708       # so weak that their functioning should not be impacted.
14709       am__obj=conftest.${OBJEXT-o}
14710       am__minus_obj=
14711       ;;
14712     none) break ;;
14713     esac
14714     if depmode=$depmode \
14715        source=sub/conftest.c object=$am__obj \
14716        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14717        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14718          >/dev/null 2>conftest.err &&
14719        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14720        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14721        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14722        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14723       # icc doesn't choke on unknown options, it will just issue warnings
14724       # or remarks (even with -Werror).  So we grep stderr for any message
14725       # that says an option was ignored or not supported.
14726       # When given -MP, icc 7.0 and 7.1 complain thusly:
14727       #   icc: Command line warning: ignoring option '-M'; no argument required
14728       # The diagnosis changed in icc 8.0:
14729       #   icc: Command line remark: option '-MP' not supported
14730       if (grep 'ignoring option' conftest.err ||
14731           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14732         am_cv_CXX_dependencies_compiler_type=$depmode
14733         break
14734       fi
14735     fi
14736   done
14737
14738   cd ..
14739   rm -rf conftest.dir
14740 else
14741   am_cv_CXX_dependencies_compiler_type=none
14742 fi
14743
14744 fi
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14746 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14747 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14748
14749  if
14750   test "x$enable_dependency_tracking" != xno \
14751   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14752   am__fastdepCXX_TRUE=
14753   am__fastdepCXX_FALSE='#'
14754 else
14755   am__fastdepCXX_TRUE='#'
14756   am__fastdepCXX_FALSE=
14757 fi
14758
14759
14760
14761
14762 func_stripname_cnf ()
14763 {
14764   case $2 in
14765   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14766   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14767   esac
14768 } # func_stripname_cnf
14769
14770       if test -n "$CXX" && ( test no != "$CXX" &&
14771     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14772     (test g++ != "$CXX"))); then
14773   ac_ext=cpp
14774 ac_cpp='$CXXCPP $CPPFLAGS'
14775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14779 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14780 if test -z "$CXXCPP"; then
14781   if ${ac_cv_prog_CXXCPP+:} false; then :
14782   $as_echo_n "(cached) " >&6
14783 else
14784       # Double quotes because CXXCPP needs to be expanded
14785     for CXXCPP in "$CXX -E" "/lib/cpp"
14786     do
14787       ac_preproc_ok=false
14788 for ac_cxx_preproc_warn_flag in '' yes
14789 do
14790   # Use a header file that comes with gcc, so configuring glibc
14791   # with a fresh cross-compiler works.
14792   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14793   # <limits.h> exists even on freestanding compilers.
14794   # On the NeXT, cc -E runs the code through the compiler's parser,
14795   # not just through cpp. "Syntax error" is here to catch this case.
14796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h.  */
14798 #ifdef __STDC__
14799 # include <limits.h>
14800 #else
14801 # include <assert.h>
14802 #endif
14803                      Syntax error
14804 _ACEOF
14805 if ac_fn_cxx_try_cpp "$LINENO"; then :
14806
14807 else
14808   # Broken: fails on valid input.
14809 continue
14810 fi
14811 rm -f conftest.err conftest.i conftest.$ac_ext
14812
14813   # OK, works on sane cases.  Now check whether nonexistent headers
14814   # can be detected and how.
14815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h.  */
14817 #include <ac_nonexistent.h>
14818 _ACEOF
14819 if ac_fn_cxx_try_cpp "$LINENO"; then :
14820   # Broken: success on invalid input.
14821 continue
14822 else
14823   # Passes both tests.
14824 ac_preproc_ok=:
14825 break
14826 fi
14827 rm -f conftest.err conftest.i conftest.$ac_ext
14828
14829 done
14830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14831 rm -f conftest.i conftest.err conftest.$ac_ext
14832 if $ac_preproc_ok; then :
14833   break
14834 fi
14835
14836     done
14837     ac_cv_prog_CXXCPP=$CXXCPP
14838
14839 fi
14840   CXXCPP=$ac_cv_prog_CXXCPP
14841 else
14842   ac_cv_prog_CXXCPP=$CXXCPP
14843 fi
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14845 $as_echo "$CXXCPP" >&6; }
14846 ac_preproc_ok=false
14847 for ac_cxx_preproc_warn_flag in '' yes
14848 do
14849   # Use a header file that comes with gcc, so configuring glibc
14850   # with a fresh cross-compiler works.
14851   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14852   # <limits.h> exists even on freestanding compilers.
14853   # On the NeXT, cc -E runs the code through the compiler's parser,
14854   # not just through cpp. "Syntax error" is here to catch this case.
14855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h.  */
14857 #ifdef __STDC__
14858 # include <limits.h>
14859 #else
14860 # include <assert.h>
14861 #endif
14862                      Syntax error
14863 _ACEOF
14864 if ac_fn_cxx_try_cpp "$LINENO"; then :
14865
14866 else
14867   # Broken: fails on valid input.
14868 continue
14869 fi
14870 rm -f conftest.err conftest.i conftest.$ac_ext
14871
14872   # OK, works on sane cases.  Now check whether nonexistent headers
14873   # can be detected and how.
14874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h.  */
14876 #include <ac_nonexistent.h>
14877 _ACEOF
14878 if ac_fn_cxx_try_cpp "$LINENO"; then :
14879   # Broken: success on invalid input.
14880 continue
14881 else
14882   # Passes both tests.
14883 ac_preproc_ok=:
14884 break
14885 fi
14886 rm -f conftest.err conftest.i conftest.$ac_ext
14887
14888 done
14889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14890 rm -f conftest.i conftest.err conftest.$ac_ext
14891 if $ac_preproc_ok; then :
14892
14893 else
14894   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14896 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14897 See \`config.log' for more details" "$LINENO" 5; }
14898 fi
14899
14900 ac_ext=c
14901 ac_cpp='$CPP $CPPFLAGS'
14902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14905
14906 else
14907   _lt_caught_CXX_error=yes
14908 fi
14909
14910 ac_ext=cpp
14911 ac_cpp='$CXXCPP $CPPFLAGS'
14912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14915
14916 archive_cmds_need_lc_CXX=no
14917 allow_undefined_flag_CXX=
14918 always_export_symbols_CXX=no
14919 archive_expsym_cmds_CXX=
14920 compiler_needs_object_CXX=no
14921 export_dynamic_flag_spec_CXX=
14922 hardcode_direct_CXX=no
14923 hardcode_direct_absolute_CXX=no
14924 hardcode_libdir_flag_spec_CXX=
14925 hardcode_libdir_separator_CXX=
14926 hardcode_minus_L_CXX=no
14927 hardcode_shlibpath_var_CXX=unsupported
14928 hardcode_automatic_CXX=no
14929 inherit_rpath_CXX=no
14930 module_cmds_CXX=
14931 module_expsym_cmds_CXX=
14932 link_all_deplibs_CXX=unknown
14933 old_archive_cmds_CXX=$old_archive_cmds
14934 reload_flag_CXX=$reload_flag
14935 reload_cmds_CXX=$reload_cmds
14936 no_undefined_flag_CXX=
14937 whole_archive_flag_spec_CXX=
14938 enable_shared_with_static_runtimes_CXX=no
14939
14940 # Source file extension for C++ test sources.
14941 ac_ext=cpp
14942
14943 # Object file extension for compiled C++ test sources.
14944 objext=o
14945 objext_CXX=$objext
14946
14947 # No sense in running all these tests if we already determined that
14948 # the CXX compiler isn't working.  Some variables (like enable_shared)
14949 # are currently assumed to apply to all compilers on this platform,
14950 # and will be corrupted by setting them based on a non-working compiler.
14951 if test yes != "$_lt_caught_CXX_error"; then
14952   # Code to be used in simple compile tests
14953   lt_simple_compile_test_code="int some_variable = 0;"
14954
14955   # Code to be used in simple link tests
14956   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14957
14958   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14959
14960
14961
14962
14963
14964
14965 # If no C compiler was specified, use CC.
14966 LTCC=${LTCC-"$CC"}
14967
14968 # If no C compiler flags were specified, use CFLAGS.
14969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14970
14971 # Allow CC to be a program name with arguments.
14972 compiler=$CC
14973
14974
14975   # save warnings/boilerplate of simple test code
14976   ac_outfile=conftest.$ac_objext
14977 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14979 _lt_compiler_boilerplate=`cat conftest.err`
14980 $RM conftest*
14981
14982   ac_outfile=conftest.$ac_objext
14983 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14985 _lt_linker_boilerplate=`cat conftest.err`
14986 $RM -r conftest*
14987
14988
14989   # Allow CC to be a program name with arguments.
14990   lt_save_CC=$CC
14991   lt_save_CFLAGS=$CFLAGS
14992   lt_save_LD=$LD
14993   lt_save_GCC=$GCC
14994   GCC=$GXX
14995   lt_save_with_gnu_ld=$with_gnu_ld
14996   lt_save_path_LD=$lt_cv_path_LD
14997   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14998     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14999   else
15000     $as_unset lt_cv_prog_gnu_ld
15001   fi
15002   if test -n "${lt_cv_path_LDCXX+set}"; then
15003     lt_cv_path_LD=$lt_cv_path_LDCXX
15004   else
15005     $as_unset lt_cv_path_LD
15006   fi
15007   test -z "${LDCXX+set}" || LD=$LDCXX
15008   CC=${CXX-"c++"}
15009   CFLAGS=$CXXFLAGS
15010   compiler=$CC
15011   compiler_CXX=$CC
15012   func_cc_basename $compiler
15013 cc_basename=$func_cc_basename_result
15014
15015
15016   if test -n "$compiler"; then
15017     # We don't want -fno-exception when compiling C++ code, so set the
15018     # no_builtin_flag separately
15019     if test yes = "$GXX"; then
15020       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15021     else
15022       lt_prog_compiler_no_builtin_flag_CXX=
15023     fi
15024
15025     if test yes = "$GXX"; then
15026       # Set up default GNU C++ configuration
15027
15028
15029
15030 # Check whether --with-gnu-ld was given.
15031 if test "${with_gnu_ld+set}" = set; then :
15032   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15033 else
15034   with_gnu_ld=no
15035 fi
15036
15037 ac_prog=ld
15038 if test yes = "$GCC"; then
15039   # Check if gcc -print-prog-name=ld gives a path.
15040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15041 $as_echo_n "checking for ld used by $CC... " >&6; }
15042   case $host in
15043   *-*-mingw*)
15044     # gcc leaves a trailing carriage return, which upsets mingw
15045     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15046   *)
15047     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15048   esac
15049   case $ac_prog in
15050     # Accept absolute paths.
15051     [\\/]* | ?:[\\/]*)
15052       re_direlt='/[^/][^/]*/\.\./'
15053       # Canonicalize the pathname of ld
15054       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15055       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15056         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15057       done
15058       test -z "$LD" && LD=$ac_prog
15059       ;;
15060   "")
15061     # If it fails, then pretend we aren't using GCC.
15062     ac_prog=ld
15063     ;;
15064   *)
15065     # If it is relative, then search for the first ld in PATH.
15066     with_gnu_ld=unknown
15067     ;;
15068   esac
15069 elif test yes = "$with_gnu_ld"; then
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15071 $as_echo_n "checking for GNU ld... " >&6; }
15072 else
15073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15074 $as_echo_n "checking for non-GNU ld... " >&6; }
15075 fi
15076 if ${lt_cv_path_LD+:} false; then :
15077   $as_echo_n "(cached) " >&6
15078 else
15079   if test -z "$LD"; then
15080   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15081   for ac_dir in $PATH; do
15082     IFS=$lt_save_ifs
15083     test -z "$ac_dir" && ac_dir=.
15084     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15085       lt_cv_path_LD=$ac_dir/$ac_prog
15086       # Check to see if the program is GNU ld.  I'd rather use --version,
15087       # but apparently some variants of GNU ld only accept -v.
15088       # Break only if it was the GNU/non-GNU ld that we prefer.
15089       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15090       *GNU* | *'with BFD'*)
15091         test no != "$with_gnu_ld" && break
15092         ;;
15093       *)
15094         test yes != "$with_gnu_ld" && break
15095         ;;
15096       esac
15097     fi
15098   done
15099   IFS=$lt_save_ifs
15100 else
15101   lt_cv_path_LD=$LD # Let the user override the test with a path.
15102 fi
15103 fi
15104
15105 LD=$lt_cv_path_LD
15106 if test -n "$LD"; then
15107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15108 $as_echo "$LD" >&6; }
15109 else
15110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111 $as_echo "no" >&6; }
15112 fi
15113 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15115 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15116 if ${lt_cv_prog_gnu_ld+:} false; then :
15117   $as_echo_n "(cached) " >&6
15118 else
15119   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15120 case `$LD -v 2>&1 </dev/null` in
15121 *GNU* | *'with BFD'*)
15122   lt_cv_prog_gnu_ld=yes
15123   ;;
15124 *)
15125   lt_cv_prog_gnu_ld=no
15126   ;;
15127 esac
15128 fi
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15130 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15131 with_gnu_ld=$lt_cv_prog_gnu_ld
15132
15133
15134
15135
15136
15137
15138
15139       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15140       # archiving commands below assume that GNU ld is being used.
15141       if test yes = "$with_gnu_ld"; then
15142         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15143         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'
15144
15145         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15146         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15147
15148         # If archive_cmds runs LD, not CC, wlarc should be empty
15149         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15150         #     investigate it a little bit more. (MM)
15151         wlarc='$wl'
15152
15153         # ancient GNU ld didn't support --whole-archive et. al.
15154         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15155           $GREP 'no-whole-archive' > /dev/null; then
15156           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15157         else
15158           whole_archive_flag_spec_CXX=
15159         fi
15160       else
15161         with_gnu_ld=no
15162         wlarc=
15163
15164         # A generic and very simple default shared library creation
15165         # command for GNU C++ for the case where it uses the native
15166         # linker, instead of GNU ld.  If possible, this setting should
15167         # overridden to take advantage of the native linker features on
15168         # the platform it is being used on.
15169         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15170       fi
15171
15172       # Commands to make compiler produce verbose output that lists
15173       # what "hidden" libraries, object files and flags are used when
15174       # linking a shared library.
15175       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15176
15177     else
15178       GXX=no
15179       with_gnu_ld=no
15180       wlarc=
15181     fi
15182
15183     # PORTME: fill in a description of your system's C++ link characteristics
15184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15185 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15186     ld_shlibs_CXX=yes
15187     case $host_os in
15188       aix3*)
15189         # FIXME: insert proper C++ library support
15190         ld_shlibs_CXX=no
15191         ;;
15192       aix[4-9]*)
15193         if test ia64 = "$host_cpu"; then
15194           # On IA64, the linker does run time linking by default, so we don't
15195           # have to do anything special.
15196           aix_use_runtimelinking=no
15197           exp_sym_flag='-Bexport'
15198           no_entry_flag=
15199         else
15200           aix_use_runtimelinking=no
15201
15202           # Test if we are trying to use run time linking or normal
15203           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15204           # have runtime linking enabled, and use it for executables.
15205           # For shared libraries, we enable/disable runtime linking
15206           # depending on the kind of the shared library created -
15207           # when "with_aix_soname,aix_use_runtimelinking" is:
15208           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15209           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15210           #            lib.a           static archive
15211           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15212           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15213           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15214           #            lib.a(lib.so.V) shared, rtl:no
15215           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15216           #            lib.a           static archive
15217           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15218             for ld_flag in $LDFLAGS; do
15219               case $ld_flag in
15220               *-brtl*)
15221                 aix_use_runtimelinking=yes
15222                 break
15223                 ;;
15224               esac
15225             done
15226             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15227               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15228               # so we don't have lib.a shared libs to link our executables.
15229               # We have to force runtime linking in this case.
15230               aix_use_runtimelinking=yes
15231               LDFLAGS="$LDFLAGS -Wl,-brtl"
15232             fi
15233             ;;
15234           esac
15235
15236           exp_sym_flag='-bexport'
15237           no_entry_flag='-bnoentry'
15238         fi
15239
15240         # When large executables or shared objects are built, AIX ld can
15241         # have problems creating the table of contents.  If linking a library
15242         # or program results in "error TOC overflow" add -mminimal-toc to
15243         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15244         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15245
15246         archive_cmds_CXX=''
15247         hardcode_direct_CXX=yes
15248         hardcode_direct_absolute_CXX=yes
15249         hardcode_libdir_separator_CXX=':'
15250         link_all_deplibs_CXX=yes
15251         file_list_spec_CXX='$wl-f,'
15252         case $with_aix_soname,$aix_use_runtimelinking in
15253         aix,*) ;;       # no import file
15254         svr4,* | *,yes) # use import file
15255           # The Import File defines what to hardcode.
15256           hardcode_direct_CXX=no
15257           hardcode_direct_absolute_CXX=no
15258           ;;
15259         esac
15260
15261         if test yes = "$GXX"; then
15262           case $host_os in aix4.[012]|aix4.[012].*)
15263           # We only want to do this on AIX 4.2 and lower, the check
15264           # below for broken collect2 doesn't work under 4.3+
15265           collect2name=`$CC -print-prog-name=collect2`
15266           if test -f "$collect2name" &&
15267              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15268           then
15269             # We have reworked collect2
15270             :
15271           else
15272             # We have old collect2
15273             hardcode_direct_CXX=unsupported
15274             # It fails to find uninstalled libraries when the uninstalled
15275             # path is not listed in the libpath.  Setting hardcode_minus_L
15276             # to unsupported forces relinking
15277             hardcode_minus_L_CXX=yes
15278             hardcode_libdir_flag_spec_CXX='-L$libdir'
15279             hardcode_libdir_separator_CXX=
15280           fi
15281           esac
15282           shared_flag='-shared'
15283           if test yes = "$aix_use_runtimelinking"; then
15284             shared_flag=$shared_flag' $wl-G'
15285           fi
15286           # Need to ensure runtime linking is disabled for the traditional
15287           # shared library, or the linker may eventually find shared libraries
15288           # /with/ Import File - we do not want to mix them.
15289           shared_flag_aix='-shared'
15290           shared_flag_svr4='-shared $wl-G'
15291         else
15292           # not using gcc
15293           if test ia64 = "$host_cpu"; then
15294           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15295           # chokes on -Wl,-G. The following line is correct:
15296           shared_flag='-G'
15297           else
15298             if test yes = "$aix_use_runtimelinking"; then
15299               shared_flag='$wl-G'
15300             else
15301               shared_flag='$wl-bM:SRE'
15302             fi
15303             shared_flag_aix='$wl-bM:SRE'
15304             shared_flag_svr4='$wl-G'
15305           fi
15306         fi
15307
15308         export_dynamic_flag_spec_CXX='$wl-bexpall'
15309         # It seems that -bexpall does not export symbols beginning with
15310         # underscore (_), so it is better to generate a list of symbols to
15311         # export.
15312         always_export_symbols_CXX=yes
15313         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15314           # Warning - without using the other runtime loading flags (-brtl),
15315           # -berok will link without error, but may produce a broken library.
15316           # The "-G" linker flag allows undefined symbols.
15317           no_undefined_flag_CXX='-bernotok'
15318           # Determine the default libpath from the value encoded in an empty
15319           # executable.
15320           if test set = "${lt_cv_aix_libpath+set}"; then
15321   aix_libpath=$lt_cv_aix_libpath
15322 else
15323   if ${lt_cv_aix_libpath__CXX+:} false; then :
15324   $as_echo_n "(cached) " >&6
15325 else
15326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h.  */
15328
15329 int
15330 main ()
15331 {
15332
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 if ac_fn_cxx_try_link "$LINENO"; then :
15338
15339   lt_aix_libpath_sed='
15340       /Import File Strings/,/^$/ {
15341           /^0/ {
15342               s/^0  *\([^ ]*\) *$/\1/
15343               p
15344           }
15345       }'
15346   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347   # Check for a 64-bit object if we didn't find anything.
15348   if test -z "$lt_cv_aix_libpath__CXX"; then
15349     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15350   fi
15351 fi
15352 rm -f core conftest.err conftest.$ac_objext \
15353     conftest$ac_exeext conftest.$ac_ext
15354   if test -z "$lt_cv_aix_libpath__CXX"; then
15355     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15356   fi
15357
15358 fi
15359
15360   aix_libpath=$lt_cv_aix_libpath__CXX
15361 fi
15362
15363           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15364
15365           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
15366         else
15367           if test ia64 = "$host_cpu"; then
15368             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15369             allow_undefined_flag_CXX="-z nodefs"
15370             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"
15371           else
15372             # Determine the default libpath from the value encoded in an
15373             # empty executable.
15374             if test set = "${lt_cv_aix_libpath+set}"; then
15375   aix_libpath=$lt_cv_aix_libpath
15376 else
15377   if ${lt_cv_aix_libpath__CXX+:} false; then :
15378   $as_echo_n "(cached) " >&6
15379 else
15380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h.  */
15382
15383 int
15384 main ()
15385 {
15386
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 if ac_fn_cxx_try_link "$LINENO"; then :
15392
15393   lt_aix_libpath_sed='
15394       /Import File Strings/,/^$/ {
15395           /^0/ {
15396               s/^0  *\([^ ]*\) *$/\1/
15397               p
15398           }
15399       }'
15400   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15401   # Check for a 64-bit object if we didn't find anything.
15402   if test -z "$lt_cv_aix_libpath__CXX"; then
15403     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15404   fi
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext \
15407     conftest$ac_exeext conftest.$ac_ext
15408   if test -z "$lt_cv_aix_libpath__CXX"; then
15409     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15410   fi
15411
15412 fi
15413
15414   aix_libpath=$lt_cv_aix_libpath__CXX
15415 fi
15416
15417             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15418             # Warning - without using the other run time loading flags,
15419             # -berok will link without error, but may produce a broken library.
15420             no_undefined_flag_CXX=' $wl-bernotok'
15421             allow_undefined_flag_CXX=' $wl-berok'
15422             if test yes = "$with_gnu_ld"; then
15423               # We only use this code for GNU lds that support --whole-archive.
15424               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15425             else
15426               # Exported symbols can be pulled into shared objects from archives
15427               whole_archive_flag_spec_CXX='$convenience'
15428             fi
15429             archive_cmds_need_lc_CXX=yes
15430             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15431             # -brtl affects multiple linker settings, -berok does not and is overridden later
15432             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15433             if test svr4 != "$with_aix_soname"; then
15434               # This is similar to how AIX traditionally builds its shared
15435               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15436               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'
15437             fi
15438             if test aix != "$with_aix_soname"; then
15439               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'
15440             else
15441               # used by -dlpreopen to get the symbols
15442               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15443             fi
15444             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15445           fi
15446         fi
15447         ;;
15448
15449       beos*)
15450         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15451           allow_undefined_flag_CXX=unsupported
15452           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15453           # support --undefined.  This deserves some investigation.  FIXME
15454           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15455         else
15456           ld_shlibs_CXX=no
15457         fi
15458         ;;
15459
15460       chorus*)
15461         case $cc_basename in
15462           *)
15463           # FIXME: insert proper C++ library support
15464           ld_shlibs_CXX=no
15465           ;;
15466         esac
15467         ;;
15468
15469       cygwin* | mingw* | pw32* | cegcc*)
15470         case $GXX,$cc_basename in
15471         ,cl* | no,cl*)
15472           # Native MSVC
15473           # hardcode_libdir_flag_spec is actually meaningless, as there is
15474           # no search path for DLLs.
15475           hardcode_libdir_flag_spec_CXX=' '
15476           allow_undefined_flag_CXX=unsupported
15477           always_export_symbols_CXX=yes
15478           file_list_spec_CXX='@'
15479           # Tell ltmain to make .lib files, not .a files.
15480           libext=lib
15481           # Tell ltmain to make .dll files, not .so files.
15482           shrext_cmds=.dll
15483           # FIXME: Setting linknames here is a bad hack.
15484           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15485           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15486               cp "$export_symbols" "$output_objdir/$soname.def";
15487               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15488             else
15489               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15490             fi~
15491             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15492             linknames='
15493           # The linker will not automatically build a static lib if we build a DLL.
15494           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15495           enable_shared_with_static_runtimes_CXX=yes
15496           # Don't use ranlib
15497           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15498           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15499             lt_tool_outputfile="@TOOL_OUTPUT@"~
15500             case $lt_outputfile in
15501               *.exe|*.EXE) ;;
15502               *)
15503                 lt_outputfile=$lt_outputfile.exe
15504                 lt_tool_outputfile=$lt_tool_outputfile.exe
15505                 ;;
15506             esac~
15507             func_to_tool_file "$lt_outputfile"~
15508             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15509               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15510               $RM "$lt_outputfile.manifest";
15511             fi'
15512           ;;
15513         *)
15514           # g++
15515           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15516           # as there is no search path for DLLs.
15517           hardcode_libdir_flag_spec_CXX='-L$libdir'
15518           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15519           allow_undefined_flag_CXX=unsupported
15520           always_export_symbols_CXX=no
15521           enable_shared_with_static_runtimes_CXX=yes
15522
15523           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15524             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'
15525             # If the export-symbols file already is a .def file, use it as
15526             # is; otherwise, prepend EXPORTS...
15527             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15528               cp $export_symbols $output_objdir/$soname.def;
15529             else
15530               echo EXPORTS > $output_objdir/$soname.def;
15531               cat $export_symbols >> $output_objdir/$soname.def;
15532             fi~
15533             $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'
15534           else
15535             ld_shlibs_CXX=no
15536           fi
15537           ;;
15538         esac
15539         ;;
15540       darwin* | rhapsody*)
15541
15542
15543   archive_cmds_need_lc_CXX=no
15544   hardcode_direct_CXX=no
15545   hardcode_automatic_CXX=yes
15546   hardcode_shlibpath_var_CXX=unsupported
15547   if test yes = "$lt_cv_ld_force_load"; then
15548     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\"`'
15549
15550   else
15551     whole_archive_flag_spec_CXX=''
15552   fi
15553   link_all_deplibs_CXX=yes
15554   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15555   case $cc_basename in
15556      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15557      *) _lt_dar_can_shared=$GCC ;;
15558   esac
15559   if test yes = "$_lt_dar_can_shared"; then
15560     output_verbose_link_cmd=func_echo_all
15561     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"
15562     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15563     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"
15564     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"
15565        if test yes != "$lt_cv_apple_cc_single_mod"; then
15566       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"
15567       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"
15568     fi
15569
15570   else
15571   ld_shlibs_CXX=no
15572   fi
15573
15574         ;;
15575
15576       os2*)
15577         hardcode_libdir_flag_spec_CXX='-L$libdir'
15578         hardcode_minus_L_CXX=yes
15579         allow_undefined_flag_CXX=unsupported
15580         shrext_cmds=.dll
15581         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15582           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15583           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15584           $ECHO EXPORTS >> $output_objdir/$libname.def~
15585           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15586           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15587           emximp -o $lib $output_objdir/$libname.def'
15588         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15589           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15590           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15591           $ECHO EXPORTS >> $output_objdir/$libname.def~
15592           prefix_cmds="$SED"~
15593           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15594             prefix_cmds="$prefix_cmds -e 1d";
15595           fi~
15596           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15597           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15598           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15599           emximp -o $lib $output_objdir/$libname.def'
15600         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15601         enable_shared_with_static_runtimes_CXX=yes
15602         ;;
15603
15604       dgux*)
15605         case $cc_basename in
15606           ec++*)
15607             # FIXME: insert proper C++ library support
15608             ld_shlibs_CXX=no
15609             ;;
15610           ghcx*)
15611             # Green Hills C++ Compiler
15612             # FIXME: insert proper C++ library support
15613             ld_shlibs_CXX=no
15614             ;;
15615           *)
15616             # FIXME: insert proper C++ library support
15617             ld_shlibs_CXX=no
15618             ;;
15619         esac
15620         ;;
15621
15622       freebsd2.*)
15623         # C++ shared libraries reported to be fairly broken before
15624         # switch to ELF
15625         ld_shlibs_CXX=no
15626         ;;
15627
15628       freebsd-elf*)
15629         archive_cmds_need_lc_CXX=no
15630         ;;
15631
15632       freebsd* | dragonfly*)
15633         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15634         # conventions
15635         ld_shlibs_CXX=yes
15636         ;;
15637
15638       haiku*)
15639         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15640         link_all_deplibs_CXX=yes
15641         ;;
15642
15643       hpux9*)
15644         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15645         hardcode_libdir_separator_CXX=:
15646         export_dynamic_flag_spec_CXX='$wl-E'
15647         hardcode_direct_CXX=yes
15648         hardcode_minus_L_CXX=yes # Not in the search PATH,
15649                                              # but as the default
15650                                              # location of the library.
15651
15652         case $cc_basename in
15653           CC*)
15654             # FIXME: insert proper C++ library support
15655             ld_shlibs_CXX=no
15656             ;;
15657           aCC*)
15658             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'
15659             # Commands to make compiler produce verbose output that lists
15660             # what "hidden" libraries, object files and flags are used when
15661             # linking a shared library.
15662             #
15663             # There doesn't appear to be a way to prevent this compiler from
15664             # explicitly linking system object files so we need to strip them
15665             # from the output so that they don't get included in the library
15666             # dependencies.
15667             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"'
15668             ;;
15669           *)
15670             if test yes = "$GXX"; then
15671               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'
15672             else
15673               # FIXME: insert proper C++ library support
15674               ld_shlibs_CXX=no
15675             fi
15676             ;;
15677         esac
15678         ;;
15679
15680       hpux10*|hpux11*)
15681         if test no = "$with_gnu_ld"; then
15682           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15683           hardcode_libdir_separator_CXX=:
15684
15685           case $host_cpu in
15686             hppa*64*|ia64*)
15687               ;;
15688             *)
15689               export_dynamic_flag_spec_CXX='$wl-E'
15690               ;;
15691           esac
15692         fi
15693         case $host_cpu in
15694           hppa*64*|ia64*)
15695             hardcode_direct_CXX=no
15696             hardcode_shlibpath_var_CXX=no
15697             ;;
15698           *)
15699             hardcode_direct_CXX=yes
15700             hardcode_direct_absolute_CXX=yes
15701             hardcode_minus_L_CXX=yes # Not in the search PATH,
15702                                                  # but as the default
15703                                                  # location of the library.
15704             ;;
15705         esac
15706
15707         case $cc_basename in
15708           CC*)
15709             # FIXME: insert proper C++ library support
15710             ld_shlibs_CXX=no
15711             ;;
15712           aCC*)
15713             case $host_cpu in
15714               hppa*64*)
15715                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15716                 ;;
15717               ia64*)
15718                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15719                 ;;
15720               *)
15721                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15722                 ;;
15723             esac
15724             # Commands to make compiler produce verbose output that lists
15725             # what "hidden" libraries, object files and flags are used when
15726             # linking a shared library.
15727             #
15728             # There doesn't appear to be a way to prevent this compiler from
15729             # explicitly linking system object files so we need to strip them
15730             # from the output so that they don't get included in the library
15731             # dependencies.
15732             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"'
15733             ;;
15734           *)
15735             if test yes = "$GXX"; then
15736               if test no = "$with_gnu_ld"; then
15737                 case $host_cpu in
15738                   hppa*64*)
15739                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15740                     ;;
15741                   ia64*)
15742                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15743                     ;;
15744                   *)
15745                     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'
15746                     ;;
15747                 esac
15748               fi
15749             else
15750               # FIXME: insert proper C++ library support
15751               ld_shlibs_CXX=no
15752             fi
15753             ;;
15754         esac
15755         ;;
15756
15757       interix[3-9]*)
15758         hardcode_direct_CXX=no
15759         hardcode_shlibpath_var_CXX=no
15760         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15761         export_dynamic_flag_spec_CXX='$wl-E'
15762         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15763         # Instead, shared libraries are loaded at an image base (0x10000000 by
15764         # default) and relocated if they conflict, which is a slow very memory
15765         # consuming and fragmenting process.  To avoid this, we pick a random,
15766         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15767         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15768         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'
15769         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'
15770         ;;
15771       irix5* | irix6*)
15772         case $cc_basename in
15773           CC*)
15774             # SGI C++
15775             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'
15776
15777             # Archives containing C++ object files must be created using
15778             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15779             # necessary to make sure instantiated templates are included
15780             # in the archive.
15781             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15782             ;;
15783           *)
15784             if test yes = "$GXX"; then
15785               if test no = "$with_gnu_ld"; then
15786                 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'
15787               else
15788                 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'
15789               fi
15790             fi
15791             link_all_deplibs_CXX=yes
15792             ;;
15793         esac
15794         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15795         hardcode_libdir_separator_CXX=:
15796         inherit_rpath_CXX=yes
15797         ;;
15798
15799       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15800         case $cc_basename in
15801           KCC*)
15802             # Kuck and Associates, Inc. (KAI) C++ Compiler
15803
15804             # KCC will only create a shared library if the output file
15805             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15806             # to its proper name (with version) after linking.
15807             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'
15808             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'
15809             # Commands to make compiler produce verbose output that lists
15810             # what "hidden" libraries, object files and flags are used when
15811             # linking a shared library.
15812             #
15813             # There doesn't appear to be a way to prevent this compiler from
15814             # explicitly linking system object files so we need to strip them
15815             # from the output so that they don't get included in the library
15816             # dependencies.
15817             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"'
15818
15819             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15820             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15821
15822             # Archives containing C++ object files must be created using
15823             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15824             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15825             ;;
15826           icpc* | ecpc* )
15827             # Intel C++
15828             with_gnu_ld=yes
15829             # version 8.0 and above of icpc choke on multiply defined symbols
15830             # if we add $predep_objects and $postdep_objects, however 7.1 and
15831             # earlier do not add the objects themselves.
15832             case `$CC -V 2>&1` in
15833               *"Version 7."*)
15834                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15835                 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'
15836                 ;;
15837               *)  # Version 8.0 or newer
15838                 tmp_idyn=
15839                 case $host_cpu in
15840                   ia64*) tmp_idyn=' -i_dynamic';;
15841                 esac
15842                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15843                 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'
15844                 ;;
15845             esac
15846             archive_cmds_need_lc_CXX=no
15847             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15848             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15849             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15850             ;;
15851           pgCC* | pgcpp*)
15852             # Portland Group C++ compiler
15853             case `$CC -V` in
15854             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15855               prelink_cmds_CXX='tpldir=Template.dir~
15856                rm -rf $tpldir~
15857                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15858                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15859               old_archive_cmds_CXX='tpldir=Template.dir~
15860                 rm -rf $tpldir~
15861                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15862                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15863                 $RANLIB $oldlib'
15864               archive_cmds_CXX='tpldir=Template.dir~
15865                 rm -rf $tpldir~
15866                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15867                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15868               archive_expsym_cmds_CXX='tpldir=Template.dir~
15869                 rm -rf $tpldir~
15870                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15871                 $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'
15872               ;;
15873             *) # Version 6 and above use weak symbols
15874               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15875               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'
15876               ;;
15877             esac
15878
15879             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15880             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15881             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'
15882             ;;
15883           cxx*)
15884             # Compaq C++
15885             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15886             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'
15887
15888             runpath_var=LD_RUN_PATH
15889             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15890             hardcode_libdir_separator_CXX=:
15891
15892             # Commands to make compiler produce verbose output that lists
15893             # what "hidden" libraries, object files and flags are used when
15894             # linking a shared library.
15895             #
15896             # There doesn't appear to be a way to prevent this compiler from
15897             # explicitly linking system object files so we need to strip them
15898             # from the output so that they don't get included in the library
15899             # dependencies.
15900             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'
15901             ;;
15902           xl* | mpixl* | bgxl*)
15903             # IBM XL 8.0 on PPC, with GNU ld
15904             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15905             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15906             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15907             if test yes = "$supports_anon_versioning"; then
15908               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15909                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15910                 echo "local: *; };" >> $output_objdir/$libname.ver~
15911                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15912             fi
15913             ;;
15914           *)
15915             case `$CC -V 2>&1 | sed 5q` in
15916             *Sun\ C*)
15917               # Sun C++ 5.9
15918               no_undefined_flag_CXX=' -zdefs'
15919               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15920               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'
15921               hardcode_libdir_flag_spec_CXX='-R$libdir'
15922               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'
15923               compiler_needs_object_CXX=yes
15924
15925               # Not sure whether something based on
15926               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15927               # would be better.
15928               output_verbose_link_cmd='func_echo_all'
15929
15930               # Archives containing C++ object files must be created using
15931               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15932               # necessary to make sure instantiated templates are included
15933               # in the archive.
15934               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15935               ;;
15936             esac
15937             ;;
15938         esac
15939         ;;
15940
15941       lynxos*)
15942         # FIXME: insert proper C++ library support
15943         ld_shlibs_CXX=no
15944         ;;
15945
15946       m88k*)
15947         # FIXME: insert proper C++ library support
15948         ld_shlibs_CXX=no
15949         ;;
15950
15951       mvs*)
15952         case $cc_basename in
15953           cxx*)
15954             # FIXME: insert proper C++ library support
15955             ld_shlibs_CXX=no
15956             ;;
15957           *)
15958             # FIXME: insert proper C++ library support
15959             ld_shlibs_CXX=no
15960             ;;
15961         esac
15962         ;;
15963
15964       netbsd*)
15965         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15966           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15967           wlarc=
15968           hardcode_libdir_flag_spec_CXX='-R$libdir'
15969           hardcode_direct_CXX=yes
15970           hardcode_shlibpath_var_CXX=no
15971         fi
15972         # Workaround some broken pre-1.5 toolchains
15973         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15974         ;;
15975
15976       *nto* | *qnx*)
15977         ld_shlibs_CXX=yes
15978         ;;
15979
15980       openbsd* | bitrig*)
15981         if test -f /usr/libexec/ld.so; then
15982           hardcode_direct_CXX=yes
15983           hardcode_shlibpath_var_CXX=no
15984           hardcode_direct_absolute_CXX=yes
15985           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15986           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15987           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15988             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15989             export_dynamic_flag_spec_CXX='$wl-E'
15990             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15991           fi
15992           output_verbose_link_cmd=func_echo_all
15993         else
15994           ld_shlibs_CXX=no
15995         fi
15996         ;;
15997
15998       osf3* | osf4* | osf5*)
15999         case $cc_basename in
16000           KCC*)
16001             # Kuck and Associates, Inc. (KAI) C++ Compiler
16002
16003             # KCC will only create a shared library if the output file
16004             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16005             # to its proper name (with version) after linking.
16006             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'
16007
16008             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16009             hardcode_libdir_separator_CXX=:
16010
16011             # Archives containing C++ object files must be created using
16012             # the KAI C++ compiler.
16013             case $host in
16014               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16015               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16016             esac
16017             ;;
16018           RCC*)
16019             # Rational C++ 2.4.1
16020             # FIXME: insert proper C++ library support
16021             ld_shlibs_CXX=no
16022             ;;
16023           cxx*)
16024             case $host in
16025               osf3*)
16026                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16027                 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'
16028                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16029                 ;;
16030               *)
16031                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16032                 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'
16033                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16034                   echo "-hidden">> $lib.exp~
16035                   $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~
16036                   $RM $lib.exp'
16037                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16038                 ;;
16039             esac
16040
16041             hardcode_libdir_separator_CXX=:
16042
16043             # Commands to make compiler produce verbose output that lists
16044             # what "hidden" libraries, object files and flags are used when
16045             # linking a shared library.
16046             #
16047             # There doesn't appear to be a way to prevent this compiler from
16048             # explicitly linking system object files so we need to strip them
16049             # from the output so that they don't get included in the library
16050             # dependencies.
16051             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"'
16052             ;;
16053           *)
16054             if test yes,no = "$GXX,$with_gnu_ld"; then
16055               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16056               case $host in
16057                 osf3*)
16058                   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'
16059                   ;;
16060                 *)
16061                   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'
16062                   ;;
16063               esac
16064
16065               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16066               hardcode_libdir_separator_CXX=:
16067
16068               # Commands to make compiler produce verbose output that lists
16069               # what "hidden" libraries, object files and flags are used when
16070               # linking a shared library.
16071               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16072
16073             else
16074               # FIXME: insert proper C++ library support
16075               ld_shlibs_CXX=no
16076             fi
16077             ;;
16078         esac
16079         ;;
16080
16081       psos*)
16082         # FIXME: insert proper C++ library support
16083         ld_shlibs_CXX=no
16084         ;;
16085
16086       sunos4*)
16087         case $cc_basename in
16088           CC*)
16089             # Sun C++ 4.x
16090             # FIXME: insert proper C++ library support
16091             ld_shlibs_CXX=no
16092             ;;
16093           lcc*)
16094             # Lucid
16095             # FIXME: insert proper C++ library support
16096             ld_shlibs_CXX=no
16097             ;;
16098           *)
16099             # FIXME: insert proper C++ library support
16100             ld_shlibs_CXX=no
16101             ;;
16102         esac
16103         ;;
16104
16105       solaris*)
16106         case $cc_basename in
16107           CC* | sunCC*)
16108             # Sun C++ 4.2, 5.x and Centerline C++
16109             archive_cmds_need_lc_CXX=yes
16110             no_undefined_flag_CXX=' -zdefs'
16111             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16112             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16113               $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'
16114
16115             hardcode_libdir_flag_spec_CXX='-R$libdir'
16116             hardcode_shlibpath_var_CXX=no
16117             case $host_os in
16118               solaris2.[0-5] | solaris2.[0-5].*) ;;
16119               *)
16120                 # The compiler driver will combine and reorder linker options,
16121                 # but understands '-z linker_flag'.
16122                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16123                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16124                 ;;
16125             esac
16126             link_all_deplibs_CXX=yes
16127
16128             output_verbose_link_cmd='func_echo_all'
16129
16130             # Archives containing C++ object files must be created using
16131             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16132             # necessary to make sure instantiated templates are included
16133             # in the archive.
16134             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16135             ;;
16136           gcx*)
16137             # Green Hills C++ Compiler
16138             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16139
16140             # The C++ compiler must be used to create the archive.
16141             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16142             ;;
16143           *)
16144             # GNU C++ compiler with Solaris linker
16145             if test yes,no = "$GXX,$with_gnu_ld"; then
16146               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16147               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16148                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16149                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16150                   $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'
16151
16152                 # Commands to make compiler produce verbose output that lists
16153                 # what "hidden" libraries, object files and flags are used when
16154                 # linking a shared library.
16155                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16156               else
16157                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16158                 # platform.
16159                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16160                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16161                   $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'
16162
16163                 # Commands to make compiler produce verbose output that lists
16164                 # what "hidden" libraries, object files and flags are used when
16165                 # linking a shared library.
16166                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16167               fi
16168
16169               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16170               case $host_os in
16171                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16172                 *)
16173                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16174                   ;;
16175               esac
16176             fi
16177             ;;
16178         esac
16179         ;;
16180
16181     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16182       no_undefined_flag_CXX='$wl-z,text'
16183       archive_cmds_need_lc_CXX=no
16184       hardcode_shlibpath_var_CXX=no
16185       runpath_var='LD_RUN_PATH'
16186
16187       case $cc_basename in
16188         CC*)
16189           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16190           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16191           ;;
16192         *)
16193           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16194           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16195           ;;
16196       esac
16197       ;;
16198
16199       sysv5* | sco3.2v5* | sco5v6*)
16200         # Note: We CANNOT use -z defs as we might desire, because we do not
16201         # link with -lc, and that would cause any symbols used from libc to
16202         # always be unresolved, which means just about no library would
16203         # ever link correctly.  If we're not using GNU ld we use -z text
16204         # though, which does catch some bad symbols but isn't as heavy-handed
16205         # as -z defs.
16206         no_undefined_flag_CXX='$wl-z,text'
16207         allow_undefined_flag_CXX='$wl-z,nodefs'
16208         archive_cmds_need_lc_CXX=no
16209         hardcode_shlibpath_var_CXX=no
16210         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16211         hardcode_libdir_separator_CXX=':'
16212         link_all_deplibs_CXX=yes
16213         export_dynamic_flag_spec_CXX='$wl-Bexport'
16214         runpath_var='LD_RUN_PATH'
16215
16216         case $cc_basename in
16217           CC*)
16218             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16219             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16220             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16221               '"$old_archive_cmds_CXX"
16222             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16223               '"$reload_cmds_CXX"
16224             ;;
16225           *)
16226             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16228             ;;
16229         esac
16230       ;;
16231
16232       tandem*)
16233         case $cc_basename in
16234           NCC*)
16235             # NonStop-UX NCC 3.20
16236             # FIXME: insert proper C++ library support
16237             ld_shlibs_CXX=no
16238             ;;
16239           *)
16240             # FIXME: insert proper C++ library support
16241             ld_shlibs_CXX=no
16242             ;;
16243         esac
16244         ;;
16245
16246       vxworks*)
16247         # FIXME: insert proper C++ library support
16248         ld_shlibs_CXX=no
16249         ;;
16250
16251       *)
16252         # FIXME: insert proper C++ library support
16253         ld_shlibs_CXX=no
16254         ;;
16255     esac
16256
16257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16258 $as_echo "$ld_shlibs_CXX" >&6; }
16259     test no = "$ld_shlibs_CXX" && can_build_shared=no
16260
16261     GCC_CXX=$GXX
16262     LD_CXX=$LD
16263
16264     ## CAVEAT EMPTOR:
16265     ## There is no encapsulation within the following macros, do not change
16266     ## the running order or otherwise move them around unless you know exactly
16267     ## what you are doing...
16268     # Dependencies to place before and after the object being linked:
16269 predep_objects_CXX=
16270 postdep_objects_CXX=
16271 predeps_CXX=
16272 postdeps_CXX=
16273 compiler_lib_search_path_CXX=
16274
16275 cat > conftest.$ac_ext <<_LT_EOF
16276 class Foo
16277 {
16278 public:
16279   Foo (void) { a = 0; }
16280 private:
16281   int a;
16282 };
16283 _LT_EOF
16284
16285
16286 _lt_libdeps_save_CFLAGS=$CFLAGS
16287 case "$CC $CFLAGS " in #(
16288 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16289 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16290 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16291 esac
16292
16293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16294   (eval $ac_compile) 2>&5
16295   ac_status=$?
16296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297   test $ac_status = 0; }; then
16298   # Parse the compiler output and extract the necessary
16299   # objects, libraries and library flags.
16300
16301   # Sentinel used to keep track of whether or not we are before
16302   # the conftest object file.
16303   pre_test_object_deps_done=no
16304
16305   for p in `eval "$output_verbose_link_cmd"`; do
16306     case $prev$p in
16307
16308     -L* | -R* | -l*)
16309        # Some compilers place space between "-{L,R}" and the path.
16310        # Remove the space.
16311        if test x-L = "$p" ||
16312           test x-R = "$p"; then
16313          prev=$p
16314          continue
16315        fi
16316
16317        # Expand the sysroot to ease extracting the directories later.
16318        if test -z "$prev"; then
16319          case $p in
16320          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16321          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16322          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16323          esac
16324        fi
16325        case $p in
16326        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16327        esac
16328        if test no = "$pre_test_object_deps_done"; then
16329          case $prev in
16330          -L | -R)
16331            # Internal compiler library paths should come after those
16332            # provided the user.  The postdeps already come after the
16333            # user supplied libs so there is no need to process them.
16334            if test -z "$compiler_lib_search_path_CXX"; then
16335              compiler_lib_search_path_CXX=$prev$p
16336            else
16337              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16338            fi
16339            ;;
16340          # The "-l" case would never come before the object being
16341          # linked, so don't bother handling this case.
16342          esac
16343        else
16344          if test -z "$postdeps_CXX"; then
16345            postdeps_CXX=$prev$p
16346          else
16347            postdeps_CXX="${postdeps_CXX} $prev$p"
16348          fi
16349        fi
16350        prev=
16351        ;;
16352
16353     *.lto.$objext) ;; # Ignore GCC LTO objects
16354     *.$objext)
16355        # This assumes that the test object file only shows up
16356        # once in the compiler output.
16357        if test "$p" = "conftest.$objext"; then
16358          pre_test_object_deps_done=yes
16359          continue
16360        fi
16361
16362        if test no = "$pre_test_object_deps_done"; then
16363          if test -z "$predep_objects_CXX"; then
16364            predep_objects_CXX=$p
16365          else
16366            predep_objects_CXX="$predep_objects_CXX $p"
16367          fi
16368        else
16369          if test -z "$postdep_objects_CXX"; then
16370            postdep_objects_CXX=$p
16371          else
16372            postdep_objects_CXX="$postdep_objects_CXX $p"
16373          fi
16374        fi
16375        ;;
16376
16377     *) ;; # Ignore the rest.
16378
16379     esac
16380   done
16381
16382   # Clean up.
16383   rm -f a.out a.exe
16384 else
16385   echo "libtool.m4: error: problem compiling CXX test program"
16386 fi
16387
16388 $RM -f confest.$objext
16389 CFLAGS=$_lt_libdeps_save_CFLAGS
16390
16391 # PORTME: override above test on systems where it is broken
16392 case $host_os in
16393 interix[3-9]*)
16394   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16395   # hack all around it, let's just trust "g++" to DTRT.
16396   predep_objects_CXX=
16397   postdep_objects_CXX=
16398   postdeps_CXX=
16399   ;;
16400 esac
16401
16402
16403 case " $postdeps_CXX " in
16404 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16405 esac
16406  compiler_lib_search_dirs_CXX=
16407 if test -n "${compiler_lib_search_path_CXX}"; then
16408  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16409 fi
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441     lt_prog_compiler_wl_CXX=
16442 lt_prog_compiler_pic_CXX=
16443 lt_prog_compiler_static_CXX=
16444
16445
16446   # C++ specific cases for pic, static, wl, etc.
16447   if test yes = "$GXX"; then
16448     lt_prog_compiler_wl_CXX='-Wl,'
16449     lt_prog_compiler_static_CXX='-static'
16450
16451     case $host_os in
16452     aix*)
16453       # All AIX code is PIC.
16454       if test ia64 = "$host_cpu"; then
16455         # AIX 5 now supports IA64 processor
16456         lt_prog_compiler_static_CXX='-Bstatic'
16457       fi
16458       lt_prog_compiler_pic_CXX='-fPIC'
16459       ;;
16460
16461     amigaos*)
16462       case $host_cpu in
16463       powerpc)
16464             # see comment about AmigaOS4 .so support
16465             lt_prog_compiler_pic_CXX='-fPIC'
16466         ;;
16467       m68k)
16468             # FIXME: we need at least 68020 code to build shared libraries, but
16469             # adding the '-m68020' flag to GCC prevents building anything better,
16470             # like '-m68040'.
16471             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16472         ;;
16473       esac
16474       ;;
16475
16476     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16477       # PIC is the default for these OSes.
16478       ;;
16479     mingw* | cygwin* | os2* | pw32* | cegcc*)
16480       # This hack is so that the source file can tell whether it is being
16481       # built for inclusion in a dll (and should export symbols for example).
16482       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16483       # (--disable-auto-import) libraries
16484       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16485       case $host_os in
16486       os2*)
16487         lt_prog_compiler_static_CXX='$wl-static'
16488         ;;
16489       esac
16490       ;;
16491     darwin* | rhapsody*)
16492       # PIC is the default on this platform
16493       # Common symbols not allowed in MH_DYLIB files
16494       lt_prog_compiler_pic_CXX='-fno-common'
16495       ;;
16496     *djgpp*)
16497       # DJGPP does not support shared libraries at all
16498       lt_prog_compiler_pic_CXX=
16499       ;;
16500     haiku*)
16501       # PIC is the default for Haiku.
16502       # The "-static" flag exists, but is broken.
16503       lt_prog_compiler_static_CXX=
16504       ;;
16505     interix[3-9]*)
16506       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16507       # Instead, we relocate shared libraries at runtime.
16508       ;;
16509     sysv4*MP*)
16510       if test -d /usr/nec; then
16511         lt_prog_compiler_pic_CXX=-Kconform_pic
16512       fi
16513       ;;
16514     hpux*)
16515       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16516       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16517       # sets the default TLS model and affects inlining.
16518       case $host_cpu in
16519       hppa*64*)
16520         ;;
16521       *)
16522         lt_prog_compiler_pic_CXX='-fPIC'
16523         ;;
16524       esac
16525       ;;
16526     *qnx* | *nto*)
16527       # QNX uses GNU C++, but need to define -shared option too, otherwise
16528       # it will coredump.
16529       lt_prog_compiler_pic_CXX='-fPIC -shared'
16530       ;;
16531     *)
16532       lt_prog_compiler_pic_CXX='-fPIC'
16533       ;;
16534     esac
16535   else
16536     case $host_os in
16537       aix[4-9]*)
16538         # All AIX code is PIC.
16539         if test ia64 = "$host_cpu"; then
16540           # AIX 5 now supports IA64 processor
16541           lt_prog_compiler_static_CXX='-Bstatic'
16542         else
16543           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16544         fi
16545         ;;
16546       chorus*)
16547         case $cc_basename in
16548         cxch68*)
16549           # Green Hills C++ Compiler
16550           # _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"
16551           ;;
16552         esac
16553         ;;
16554       mingw* | cygwin* | os2* | pw32* | cegcc*)
16555         # This hack is so that the source file can tell whether it is being
16556         # built for inclusion in a dll (and should export symbols for example).
16557         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16558         ;;
16559       dgux*)
16560         case $cc_basename in
16561           ec++*)
16562             lt_prog_compiler_pic_CXX='-KPIC'
16563             ;;
16564           ghcx*)
16565             # Green Hills C++ Compiler
16566             lt_prog_compiler_pic_CXX='-pic'
16567             ;;
16568           *)
16569             ;;
16570         esac
16571         ;;
16572       freebsd* | dragonfly*)
16573         # FreeBSD uses GNU C++
16574         ;;
16575       hpux9* | hpux10* | hpux11*)
16576         case $cc_basename in
16577           CC*)
16578             lt_prog_compiler_wl_CXX='-Wl,'
16579             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16580             if test ia64 != "$host_cpu"; then
16581               lt_prog_compiler_pic_CXX='+Z'
16582             fi
16583             ;;
16584           aCC*)
16585             lt_prog_compiler_wl_CXX='-Wl,'
16586             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16587             case $host_cpu in
16588             hppa*64*|ia64*)
16589               # +Z the default
16590               ;;
16591             *)
16592               lt_prog_compiler_pic_CXX='+Z'
16593               ;;
16594             esac
16595             ;;
16596           *)
16597             ;;
16598         esac
16599         ;;
16600       interix*)
16601         # This is c89, which is MS Visual C++ (no shared libs)
16602         # Anyone wants to do a port?
16603         ;;
16604       irix5* | irix6* | nonstopux*)
16605         case $cc_basename in
16606           CC*)
16607             lt_prog_compiler_wl_CXX='-Wl,'
16608             lt_prog_compiler_static_CXX='-non_shared'
16609             # CC pic flag -KPIC is the default.
16610             ;;
16611           *)
16612             ;;
16613         esac
16614         ;;
16615       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16616         case $cc_basename in
16617           KCC*)
16618             # KAI C++ Compiler
16619             lt_prog_compiler_wl_CXX='--backend -Wl,'
16620             lt_prog_compiler_pic_CXX='-fPIC'
16621             ;;
16622           ecpc* )
16623             # old Intel C++ for x86_64, which still supported -KPIC.
16624             lt_prog_compiler_wl_CXX='-Wl,'
16625             lt_prog_compiler_pic_CXX='-KPIC'
16626             lt_prog_compiler_static_CXX='-static'
16627             ;;
16628           icpc* )
16629             # Intel C++, used to be incompatible with GCC.
16630             # ICC 10 doesn't accept -KPIC any more.
16631             lt_prog_compiler_wl_CXX='-Wl,'
16632             lt_prog_compiler_pic_CXX='-fPIC'
16633             lt_prog_compiler_static_CXX='-static'
16634             ;;
16635           pgCC* | pgcpp*)
16636             # Portland Group C++ compiler
16637             lt_prog_compiler_wl_CXX='-Wl,'
16638             lt_prog_compiler_pic_CXX='-fpic'
16639             lt_prog_compiler_static_CXX='-Bstatic'
16640             ;;
16641           cxx*)
16642             # Compaq C++
16643             # Make sure the PIC flag is empty.  It appears that all Alpha
16644             # Linux and Compaq Tru64 Unix objects are PIC.
16645             lt_prog_compiler_pic_CXX=
16646             lt_prog_compiler_static_CXX='-non_shared'
16647             ;;
16648           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16649             # IBM XL 8.0, 9.0 on PPC and BlueGene
16650             lt_prog_compiler_wl_CXX='-Wl,'
16651             lt_prog_compiler_pic_CXX='-qpic'
16652             lt_prog_compiler_static_CXX='-qstaticlink'
16653             ;;
16654           *)
16655             case `$CC -V 2>&1 | sed 5q` in
16656             *Sun\ C*)
16657               # Sun C++ 5.9
16658               lt_prog_compiler_pic_CXX='-KPIC'
16659               lt_prog_compiler_static_CXX='-Bstatic'
16660               lt_prog_compiler_wl_CXX='-Qoption ld '
16661               ;;
16662             esac
16663             ;;
16664         esac
16665         ;;
16666       lynxos*)
16667         ;;
16668       m88k*)
16669         ;;
16670       mvs*)
16671         case $cc_basename in
16672           cxx*)
16673             lt_prog_compiler_pic_CXX='-W c,exportall'
16674             ;;
16675           *)
16676             ;;
16677         esac
16678         ;;
16679       netbsd* | netbsdelf*-gnu)
16680         ;;
16681       *qnx* | *nto*)
16682         # QNX uses GNU C++, but need to define -shared option too, otherwise
16683         # it will coredump.
16684         lt_prog_compiler_pic_CXX='-fPIC -shared'
16685         ;;
16686       osf3* | osf4* | osf5*)
16687         case $cc_basename in
16688           KCC*)
16689             lt_prog_compiler_wl_CXX='--backend -Wl,'
16690             ;;
16691           RCC*)
16692             # Rational C++ 2.4.1
16693             lt_prog_compiler_pic_CXX='-pic'
16694             ;;
16695           cxx*)
16696             # Digital/Compaq C++
16697             lt_prog_compiler_wl_CXX='-Wl,'
16698             # Make sure the PIC flag is empty.  It appears that all Alpha
16699             # Linux and Compaq Tru64 Unix objects are PIC.
16700             lt_prog_compiler_pic_CXX=
16701             lt_prog_compiler_static_CXX='-non_shared'
16702             ;;
16703           *)
16704             ;;
16705         esac
16706         ;;
16707       psos*)
16708         ;;
16709       solaris*)
16710         case $cc_basename in
16711           CC* | sunCC*)
16712             # Sun C++ 4.2, 5.x and Centerline C++
16713             lt_prog_compiler_pic_CXX='-KPIC'
16714             lt_prog_compiler_static_CXX='-Bstatic'
16715             lt_prog_compiler_wl_CXX='-Qoption ld '
16716             ;;
16717           gcx*)
16718             # Green Hills C++ Compiler
16719             lt_prog_compiler_pic_CXX='-PIC'
16720             ;;
16721           *)
16722             ;;
16723         esac
16724         ;;
16725       sunos4*)
16726         case $cc_basename in
16727           CC*)
16728             # Sun C++ 4.x
16729             lt_prog_compiler_pic_CXX='-pic'
16730             lt_prog_compiler_static_CXX='-Bstatic'
16731             ;;
16732           lcc*)
16733             # Lucid
16734             lt_prog_compiler_pic_CXX='-pic'
16735             ;;
16736           *)
16737             ;;
16738         esac
16739         ;;
16740       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16741         case $cc_basename in
16742           CC*)
16743             lt_prog_compiler_wl_CXX='-Wl,'
16744             lt_prog_compiler_pic_CXX='-KPIC'
16745             lt_prog_compiler_static_CXX='-Bstatic'
16746             ;;
16747         esac
16748         ;;
16749       tandem*)
16750         case $cc_basename in
16751           NCC*)
16752             # NonStop-UX NCC 3.20
16753             lt_prog_compiler_pic_CXX='-KPIC'
16754             ;;
16755           *)
16756             ;;
16757         esac
16758         ;;
16759       vxworks*)
16760         ;;
16761       *)
16762         lt_prog_compiler_can_build_shared_CXX=no
16763         ;;
16764     esac
16765   fi
16766
16767 case $host_os in
16768   # For platforms that do not support PIC, -DPIC is meaningless:
16769   *djgpp*)
16770     lt_prog_compiler_pic_CXX=
16771     ;;
16772   *)
16773     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16774     ;;
16775 esac
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16778 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16779 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16780   $as_echo_n "(cached) " >&6
16781 else
16782   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16783 fi
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16785 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16786 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16787
16788 #
16789 # Check to make sure the PIC flag actually works.
16790 #
16791 if test -n "$lt_prog_compiler_pic_CXX"; then
16792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16793 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16794 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16795   $as_echo_n "(cached) " >&6
16796 else
16797   lt_cv_prog_compiler_pic_works_CXX=no
16798    ac_outfile=conftest.$ac_objext
16799    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16800    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16801    # Insert the option either (1) after the last *FLAGS variable, or
16802    # (2) before a word containing "conftest.", or (3) at the end.
16803    # Note that $ac_compile itself does not contain backslashes and begins
16804    # with a dollar sign (not a hyphen), so the echo should work correctly.
16805    # The option is referenced via a variable to avoid confusing sed.
16806    lt_compile=`echo "$ac_compile" | $SED \
16807    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16808    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16809    -e 's:$: $lt_compiler_flag:'`
16810    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16811    (eval "$lt_compile" 2>conftest.err)
16812    ac_status=$?
16813    cat conftest.err >&5
16814    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815    if (exit $ac_status) && test -s "$ac_outfile"; then
16816      # The compiler can only warn and ignore the option if not recognized
16817      # So say no if there are warnings other than the usual output.
16818      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16819      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16820      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16821        lt_cv_prog_compiler_pic_works_CXX=yes
16822      fi
16823    fi
16824    $RM conftest*
16825
16826 fi
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16828 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16829
16830 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16831     case $lt_prog_compiler_pic_CXX in
16832      "" | " "*) ;;
16833      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16834      esac
16835 else
16836     lt_prog_compiler_pic_CXX=
16837      lt_prog_compiler_can_build_shared_CXX=no
16838 fi
16839
16840 fi
16841
16842
16843
16844
16845
16846 #
16847 # Check to make sure the static flag actually works.
16848 #
16849 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16851 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16852 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16853   $as_echo_n "(cached) " >&6
16854 else
16855   lt_cv_prog_compiler_static_works_CXX=no
16856    save_LDFLAGS=$LDFLAGS
16857    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16858    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16859    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16860      # The linker can only warn and ignore the option if not recognized
16861      # So say no if there are warnings
16862      if test -s conftest.err; then
16863        # Append any errors to the config.log.
16864        cat conftest.err 1>&5
16865        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16866        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16867        if diff conftest.exp conftest.er2 >/dev/null; then
16868          lt_cv_prog_compiler_static_works_CXX=yes
16869        fi
16870      else
16871        lt_cv_prog_compiler_static_works_CXX=yes
16872      fi
16873    fi
16874    $RM -r conftest*
16875    LDFLAGS=$save_LDFLAGS
16876
16877 fi
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16879 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16880
16881 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16882     :
16883 else
16884     lt_prog_compiler_static_CXX=
16885 fi
16886
16887
16888
16889
16890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16891 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16892 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16893   $as_echo_n "(cached) " >&6
16894 else
16895   lt_cv_prog_compiler_c_o_CXX=no
16896    $RM -r conftest 2>/dev/null
16897    mkdir conftest
16898    cd conftest
16899    mkdir out
16900    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16901
16902    lt_compiler_flag="-o out/conftest2.$ac_objext"
16903    # Insert the option either (1) after the last *FLAGS variable, or
16904    # (2) before a word containing "conftest.", or (3) at the end.
16905    # Note that $ac_compile itself does not contain backslashes and begins
16906    # with a dollar sign (not a hyphen), so the echo should work correctly.
16907    lt_compile=`echo "$ac_compile" | $SED \
16908    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16909    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16910    -e 's:$: $lt_compiler_flag:'`
16911    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16912    (eval "$lt_compile" 2>out/conftest.err)
16913    ac_status=$?
16914    cat out/conftest.err >&5
16915    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16917    then
16918      # The compiler can only warn and ignore the option if not recognized
16919      # So say no if there are warnings
16920      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16921      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16922      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16923        lt_cv_prog_compiler_c_o_CXX=yes
16924      fi
16925    fi
16926    chmod u+w . 2>&5
16927    $RM conftest*
16928    # SGI C++ compiler will create directory out/ii_files/ for
16929    # template instantiation
16930    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16931    $RM out/* && rmdir out
16932    cd ..
16933    $RM -r conftest
16934    $RM conftest*
16935
16936 fi
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16938 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16939
16940
16941
16942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16943 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16944 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16945   $as_echo_n "(cached) " >&6
16946 else
16947   lt_cv_prog_compiler_c_o_CXX=no
16948    $RM -r conftest 2>/dev/null
16949    mkdir conftest
16950    cd conftest
16951    mkdir out
16952    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16953
16954    lt_compiler_flag="-o out/conftest2.$ac_objext"
16955    # Insert the option either (1) after the last *FLAGS variable, or
16956    # (2) before a word containing "conftest.", or (3) at the end.
16957    # Note that $ac_compile itself does not contain backslashes and begins
16958    # with a dollar sign (not a hyphen), so the echo should work correctly.
16959    lt_compile=`echo "$ac_compile" | $SED \
16960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16962    -e 's:$: $lt_compiler_flag:'`
16963    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16964    (eval "$lt_compile" 2>out/conftest.err)
16965    ac_status=$?
16966    cat out/conftest.err >&5
16967    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16969    then
16970      # The compiler can only warn and ignore the option if not recognized
16971      # So say no if there are warnings
16972      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16973      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16974      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16975        lt_cv_prog_compiler_c_o_CXX=yes
16976      fi
16977    fi
16978    chmod u+w . 2>&5
16979    $RM conftest*
16980    # SGI C++ compiler will create directory out/ii_files/ for
16981    # template instantiation
16982    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16983    $RM out/* && rmdir out
16984    cd ..
16985    $RM -r conftest
16986    $RM conftest*
16987
16988 fi
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16990 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16991
16992
16993
16994
16995 hard_links=nottested
16996 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16997   # do not overwrite the value of need_locks provided by the user
16998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16999 $as_echo_n "checking if we can lock with hard links... " >&6; }
17000   hard_links=yes
17001   $RM conftest*
17002   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17003   touch conftest.a
17004   ln conftest.a conftest.b 2>&5 || hard_links=no
17005   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17007 $as_echo "$hard_links" >&6; }
17008   if test no = "$hard_links"; then
17009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17010 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17011     need_locks=warn
17012   fi
17013 else
17014   need_locks=no
17015 fi
17016
17017
17018
17019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17021
17022   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17023   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17024   case $host_os in
17025   aix[4-9]*)
17026     # If we're using GNU nm, then we don't want the "-C" option.
17027     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17028     # Without the "-l" option, or with the "-B" option, AIX nm treats
17029     # weak defined symbols like other global defined symbols, whereas
17030     # GNU nm marks them as "W".
17031     # While the 'weak' keyword is ignored in the Export File, we need
17032     # it in the Import File for the 'aix-soname' feature, so we have
17033     # to replace the "-B" option with "-P" for AIX nm.
17034     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17035       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'
17036     else
17037       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'
17038     fi
17039     ;;
17040   pw32*)
17041     export_symbols_cmds_CXX=$ltdll_cmds
17042     ;;
17043   cygwin* | mingw* | cegcc*)
17044     case $cc_basename in
17045     cl*)
17046       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17047       ;;
17048     *)
17049       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'
17050       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17051       ;;
17052     esac
17053     ;;
17054   linux* | k*bsd*-gnu | gnu*)
17055     link_all_deplibs_CXX=no
17056     ;;
17057   *)
17058     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17059     ;;
17060   esac
17061
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17063 $as_echo "$ld_shlibs_CXX" >&6; }
17064 test no = "$ld_shlibs_CXX" && can_build_shared=no
17065
17066 with_gnu_ld_CXX=$with_gnu_ld
17067
17068
17069
17070
17071
17072
17073 #
17074 # Do we need to explicitly link libc?
17075 #
17076 case "x$archive_cmds_need_lc_CXX" in
17077 x|xyes)
17078   # Assume -lc should be added
17079   archive_cmds_need_lc_CXX=yes
17080
17081   if test yes,yes = "$GCC,$enable_shared"; then
17082     case $archive_cmds_CXX in
17083     *'~'*)
17084       # FIXME: we may have to deal with multi-command sequences.
17085       ;;
17086     '$CC '*)
17087       # Test whether the compiler implicitly links with -lc since on some
17088       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17089       # to ld, don't add -lc before -lgcc.
17090       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17091 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17092 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17093   $as_echo_n "(cached) " >&6
17094 else
17095   $RM conftest*
17096         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17097
17098         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17099   (eval $ac_compile) 2>&5
17100   ac_status=$?
17101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17102   test $ac_status = 0; } 2>conftest.err; then
17103           soname=conftest
17104           lib=conftest
17105           libobjs=conftest.$ac_objext
17106           deplibs=
17107           wl=$lt_prog_compiler_wl_CXX
17108           pic_flag=$lt_prog_compiler_pic_CXX
17109           compiler_flags=-v
17110           linker_flags=-v
17111           verstring=
17112           output_objdir=.
17113           libname=conftest
17114           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17115           allow_undefined_flag_CXX=
17116           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17117   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17118   ac_status=$?
17119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17120   test $ac_status = 0; }
17121           then
17122             lt_cv_archive_cmds_need_lc_CXX=no
17123           else
17124             lt_cv_archive_cmds_need_lc_CXX=yes
17125           fi
17126           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17127         else
17128           cat conftest.err 1>&5
17129         fi
17130         $RM conftest*
17131
17132 fi
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17134 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17135       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17136       ;;
17137     esac
17138   fi
17139   ;;
17140 esac
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
17195
17196
17197
17198
17199
17200
17201
17202
17203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17204 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17205
17206 library_names_spec=
17207 libname_spec='lib$name'
17208 soname_spec=
17209 shrext_cmds=.so
17210 postinstall_cmds=
17211 postuninstall_cmds=
17212 finish_cmds=
17213 finish_eval=
17214 shlibpath_var=
17215 shlibpath_overrides_runpath=unknown
17216 version_type=none
17217 dynamic_linker="$host_os ld.so"
17218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17219 need_lib_prefix=unknown
17220 hardcode_into_libs=no
17221
17222 # when you set need_version to no, make sure it does not cause -set_version
17223 # flags to be left without arguments
17224 need_version=unknown
17225
17226
17227
17228 case $host_os in
17229 aix3*)
17230   version_type=linux # correct to gnu/linux during the next big refactor
17231   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17232   shlibpath_var=LIBPATH
17233
17234   # AIX 3 has no versioning support, so we append a major version to the name.
17235   soname_spec='$libname$release$shared_ext$major'
17236   ;;
17237
17238 aix[4-9]*)
17239   version_type=linux # correct to gnu/linux during the next big refactor
17240   need_lib_prefix=no
17241   need_version=no
17242   hardcode_into_libs=yes
17243   if test ia64 = "$host_cpu"; then
17244     # AIX 5 supports IA64
17245     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17246     shlibpath_var=LD_LIBRARY_PATH
17247   else
17248     # With GCC up to 2.95.x, collect2 would create an import file
17249     # for dependence libraries.  The import file would start with
17250     # the line '#! .'.  This would cause the generated library to
17251     # depend on '.', always an invalid library.  This was fixed in
17252     # development snapshots of GCC prior to 3.0.
17253     case $host_os in
17254       aix4 | aix4.[01] | aix4.[01].*)
17255       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17256            echo ' yes '
17257            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17258         :
17259       else
17260         can_build_shared=no
17261       fi
17262       ;;
17263     esac
17264     # Using Import Files as archive members, it is possible to support
17265     # filename-based versioning of shared library archives on AIX. While
17266     # this would work for both with and without runtime linking, it will
17267     # prevent static linking of such archives. So we do filename-based
17268     # shared library versioning with .so extension only, which is used
17269     # when both runtime linking and shared linking is enabled.
17270     # Unfortunately, runtime linking may impact performance, so we do
17271     # not want this to be the default eventually. Also, we use the
17272     # versioned .so libs for executables only if there is the -brtl
17273     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17274     # To allow for filename-based versioning support, we need to create
17275     # libNAME.so.V as an archive file, containing:
17276     # *) an Import File, referring to the versioned filename of the
17277     #    archive as well as the shared archive member, telling the
17278     #    bitwidth (32 or 64) of that shared object, and providing the
17279     #    list of exported symbols of that shared object, eventually
17280     #    decorated with the 'weak' keyword
17281     # *) the shared object with the F_LOADONLY flag set, to really avoid
17282     #    it being seen by the linker.
17283     # At run time we better use the real file rather than another symlink,
17284     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17285
17286     case $with_aix_soname,$aix_use_runtimelinking in
17287     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17288     # soname into executable. Probably we can add versioning support to
17289     # collect2, so additional links can be useful in future.
17290     aix,yes) # traditional libtool
17291       dynamic_linker='AIX unversionable lib.so'
17292       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17293       # instead of lib<name>.a to let people know that these are not
17294       # typical AIX shared libraries.
17295       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17296       ;;
17297     aix,no) # traditional AIX only
17298       dynamic_linker='AIX lib.a(lib.so.V)'
17299       # We preserve .a as extension for shared libraries through AIX4.2
17300       # and later when we are not doing run time linking.
17301       library_names_spec='$libname$release.a $libname.a'
17302       soname_spec='$libname$release$shared_ext$major'
17303       ;;
17304     svr4,*) # full svr4 only
17305       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17306       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17307       # We do not specify a path in Import Files, so LIBPATH fires.
17308       shlibpath_overrides_runpath=yes
17309       ;;
17310     *,yes) # both, prefer svr4
17311       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17312       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17313       # unpreferred sharedlib libNAME.a needs extra handling
17314       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"'
17315       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"'
17316       # We do not specify a path in Import Files, so LIBPATH fires.
17317       shlibpath_overrides_runpath=yes
17318       ;;
17319     *,no) # both, prefer aix
17320       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17321       library_names_spec='$libname$release.a $libname.a'
17322       soname_spec='$libname$release$shared_ext$major'
17323       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17324       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)'
17325       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"'
17326       ;;
17327     esac
17328     shlibpath_var=LIBPATH
17329   fi
17330   ;;
17331
17332 amigaos*)
17333   case $host_cpu in
17334   powerpc)
17335     # Since July 2007 AmigaOS4 officially supports .so libraries.
17336     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17337     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17338     ;;
17339   m68k)
17340     library_names_spec='$libname.ixlibrary $libname.a'
17341     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17342     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'
17343     ;;
17344   esac
17345   ;;
17346
17347 beos*)
17348   library_names_spec='$libname$shared_ext'
17349   dynamic_linker="$host_os ld.so"
17350   shlibpath_var=LIBRARY_PATH
17351   ;;
17352
17353 bsdi[45]*)
17354   version_type=linux # correct to gnu/linux during the next big refactor
17355   need_version=no
17356   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17357   soname_spec='$libname$release$shared_ext$major'
17358   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17359   shlibpath_var=LD_LIBRARY_PATH
17360   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17361   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17362   # the default ld.so.conf also contains /usr/contrib/lib and
17363   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17364   # libtool to hard-code these into programs
17365   ;;
17366
17367 cygwin* | mingw* | pw32* | cegcc*)
17368   version_type=windows
17369   shrext_cmds=.dll
17370   need_version=no
17371   need_lib_prefix=no
17372
17373   case $GCC,$cc_basename in
17374   yes,*)
17375     # gcc
17376     library_names_spec='$libname.dll.a'
17377     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17378     postinstall_cmds='base_file=`basename \$file`~
17379       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17380       dldir=$destdir/`dirname \$dlpath`~
17381       test -d \$dldir || mkdir -p \$dldir~
17382       $install_prog $dir/$dlname \$dldir/$dlname~
17383       chmod a+x \$dldir/$dlname~
17384       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17385         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17386       fi'
17387     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17388       dlpath=$dir/\$dldll~
17389        $RM \$dlpath'
17390     shlibpath_overrides_runpath=yes
17391
17392     case $host_os in
17393     cygwin*)
17394       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17395       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17396
17397       ;;
17398     mingw* | cegcc*)
17399       # MinGW DLLs use traditional 'lib' prefix
17400       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17401       ;;
17402     pw32*)
17403       # pw32 DLLs use 'pw' prefix rather than 'lib'
17404       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17405       ;;
17406     esac
17407     dynamic_linker='Win32 ld.exe'
17408     ;;
17409
17410   *,cl*)
17411     # Native MSVC
17412     libname_spec='$name'
17413     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17414     library_names_spec='$libname.dll.lib'
17415
17416     case $build_os in
17417     mingw*)
17418       sys_lib_search_path_spec=
17419       lt_save_ifs=$IFS
17420       IFS=';'
17421       for lt_path in $LIB
17422       do
17423         IFS=$lt_save_ifs
17424         # Let DOS variable expansion print the short 8.3 style file name.
17425         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17426         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17427       done
17428       IFS=$lt_save_ifs
17429       # Convert to MSYS style.
17430       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17431       ;;
17432     cygwin*)
17433       # Convert to unix form, then to dos form, then back to unix form
17434       # but this time dos style (no spaces!) so that the unix form looks
17435       # like /cygdrive/c/PROGRA~1:/cygdr...
17436       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17437       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17438       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17439       ;;
17440     *)
17441       sys_lib_search_path_spec=$LIB
17442       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17443         # It is most probably a Windows format PATH.
17444         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17445       else
17446         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17447       fi
17448       # FIXME: find the short name or the path components, as spaces are
17449       # common. (e.g. "Program Files" -> "PROGRA~1")
17450       ;;
17451     esac
17452
17453     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17454     postinstall_cmds='base_file=`basename \$file`~
17455       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17456       dldir=$destdir/`dirname \$dlpath`~
17457       test -d \$dldir || mkdir -p \$dldir~
17458       $install_prog $dir/$dlname \$dldir/$dlname'
17459     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17460       dlpath=$dir/\$dldll~
17461        $RM \$dlpath'
17462     shlibpath_overrides_runpath=yes
17463     dynamic_linker='Win32 link.exe'
17464     ;;
17465
17466   *)
17467     # Assume MSVC wrapper
17468     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17469     dynamic_linker='Win32 ld.exe'
17470     ;;
17471   esac
17472   # FIXME: first we should search . and the directory the executable is in
17473   shlibpath_var=PATH
17474   ;;
17475
17476 darwin* | rhapsody*)
17477   dynamic_linker="$host_os dyld"
17478   version_type=darwin
17479   need_lib_prefix=no
17480   need_version=no
17481   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17482   soname_spec='$libname$release$major$shared_ext'
17483   shlibpath_overrides_runpath=yes
17484   shlibpath_var=DYLD_LIBRARY_PATH
17485   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17486
17487   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17488   ;;
17489
17490 dgux*)
17491   version_type=linux # correct to gnu/linux during the next big refactor
17492   need_lib_prefix=no
17493   need_version=no
17494   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17495   soname_spec='$libname$release$shared_ext$major'
17496   shlibpath_var=LD_LIBRARY_PATH
17497   ;;
17498
17499 freebsd* | dragonfly*)
17500   # DragonFly does not have aout.  When/if they implement a new
17501   # versioning mechanism, adjust this.
17502   if test -x /usr/bin/objformat; then
17503     objformat=`/usr/bin/objformat`
17504   else
17505     case $host_os in
17506     freebsd[23].*) objformat=aout ;;
17507     *) objformat=elf ;;
17508     esac
17509   fi
17510   version_type=freebsd-$objformat
17511   case $version_type in
17512     freebsd-elf*)
17513       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17514       soname_spec='$libname$release$shared_ext$major'
17515       need_version=no
17516       need_lib_prefix=no
17517       ;;
17518     freebsd-*)
17519       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17520       need_version=yes
17521       ;;
17522   esac
17523   shlibpath_var=LD_LIBRARY_PATH
17524   case $host_os in
17525   freebsd2.*)
17526     shlibpath_overrides_runpath=yes
17527     ;;
17528   freebsd3.[01]* | freebsdelf3.[01]*)
17529     shlibpath_overrides_runpath=yes
17530     hardcode_into_libs=yes
17531     ;;
17532   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17533   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17534     shlibpath_overrides_runpath=no
17535     hardcode_into_libs=yes
17536     ;;
17537   *) # from 4.6 on, and DragonFly
17538     shlibpath_overrides_runpath=yes
17539     hardcode_into_libs=yes
17540     ;;
17541   esac
17542   ;;
17543
17544 haiku*)
17545   version_type=linux # correct to gnu/linux during the next big refactor
17546   need_lib_prefix=no
17547   need_version=no
17548   dynamic_linker="$host_os runtime_loader"
17549   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17550   soname_spec='$libname$release$shared_ext$major'
17551   shlibpath_var=LIBRARY_PATH
17552   shlibpath_overrides_runpath=no
17553   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17554   hardcode_into_libs=yes
17555   ;;
17556
17557 hpux9* | hpux10* | hpux11*)
17558   # Give a soname corresponding to the major version so that dld.sl refuses to
17559   # link against other versions.
17560   version_type=sunos
17561   need_lib_prefix=no
17562   need_version=no
17563   case $host_cpu in
17564   ia64*)
17565     shrext_cmds='.so'
17566     hardcode_into_libs=yes
17567     dynamic_linker="$host_os dld.so"
17568     shlibpath_var=LD_LIBRARY_PATH
17569     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17570     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17571     soname_spec='$libname$release$shared_ext$major'
17572     if test 32 = "$HPUX_IA64_MODE"; then
17573       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17574       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17575     else
17576       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17577       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17578     fi
17579     ;;
17580   hppa*64*)
17581     shrext_cmds='.sl'
17582     hardcode_into_libs=yes
17583     dynamic_linker="$host_os dld.sl"
17584     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17585     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17586     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17587     soname_spec='$libname$release$shared_ext$major'
17588     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17589     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17590     ;;
17591   *)
17592     shrext_cmds='.sl'
17593     dynamic_linker="$host_os dld.sl"
17594     shlibpath_var=SHLIB_PATH
17595     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17596     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17597     soname_spec='$libname$release$shared_ext$major'
17598     ;;
17599   esac
17600   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17601   postinstall_cmds='chmod 555 $lib'
17602   # or fails outright, so override atomically:
17603   install_override_mode=555
17604   ;;
17605
17606 interix[3-9]*)
17607   version_type=linux # correct to gnu/linux during the next big refactor
17608   need_lib_prefix=no
17609   need_version=no
17610   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17611   soname_spec='$libname$release$shared_ext$major'
17612   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17613   shlibpath_var=LD_LIBRARY_PATH
17614   shlibpath_overrides_runpath=no
17615   hardcode_into_libs=yes
17616   ;;
17617
17618 irix5* | irix6* | nonstopux*)
17619   case $host_os in
17620     nonstopux*) version_type=nonstopux ;;
17621     *)
17622         if test yes = "$lt_cv_prog_gnu_ld"; then
17623                 version_type=linux # correct to gnu/linux during the next big refactor
17624         else
17625                 version_type=irix
17626         fi ;;
17627   esac
17628   need_lib_prefix=no
17629   need_version=no
17630   soname_spec='$libname$release$shared_ext$major'
17631   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17632   case $host_os in
17633   irix5* | nonstopux*)
17634     libsuff= shlibsuff=
17635     ;;
17636   *)
17637     case $LD in # libtool.m4 will add one of these switches to LD
17638     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17639       libsuff= shlibsuff= libmagic=32-bit;;
17640     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17641       libsuff=32 shlibsuff=N32 libmagic=N32;;
17642     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17643       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17644     *) libsuff= shlibsuff= libmagic=never-match;;
17645     esac
17646     ;;
17647   esac
17648   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17649   shlibpath_overrides_runpath=no
17650   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17651   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17652   hardcode_into_libs=yes
17653   ;;
17654
17655 # No shared lib support for Linux oldld, aout, or coff.
17656 linux*oldld* | linux*aout* | linux*coff*)
17657   dynamic_linker=no
17658   ;;
17659
17660 linux*android*)
17661   version_type=none # Android doesn't support versioned libraries.
17662   need_lib_prefix=no
17663   need_version=no
17664   library_names_spec='$libname$release$shared_ext'
17665   soname_spec='$libname$release$shared_ext'
17666   finish_cmds=
17667   shlibpath_var=LD_LIBRARY_PATH
17668   shlibpath_overrides_runpath=yes
17669
17670   # This implies no fast_install, which is unacceptable.
17671   # Some rework will be needed to allow for fast_install
17672   # before this can be enabled.
17673   hardcode_into_libs=yes
17674
17675   dynamic_linker='Android linker'
17676   # Don't embed -rpath directories since the linker doesn't support them.
17677   hardcode_libdir_flag_spec_CXX='-L$libdir'
17678   ;;
17679
17680 # This must be glibc/ELF.
17681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17682   version_type=linux # correct to gnu/linux during the next big refactor
17683   need_lib_prefix=no
17684   need_version=no
17685   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17686   soname_spec='$libname$release$shared_ext$major'
17687   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17688   shlibpath_var=LD_LIBRARY_PATH
17689   shlibpath_overrides_runpath=no
17690
17691   # Some binutils ld are patched to set DT_RUNPATH
17692   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17693   $as_echo_n "(cached) " >&6
17694 else
17695   lt_cv_shlibpath_overrides_runpath=no
17696     save_LDFLAGS=$LDFLAGS
17697     save_libdir=$libdir
17698     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17699          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17701 /* end confdefs.h.  */
17702
17703 int
17704 main ()
17705 {
17706
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 if ac_fn_cxx_try_link "$LINENO"; then :
17712   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17713   lt_cv_shlibpath_overrides_runpath=yes
17714 fi
17715 fi
17716 rm -f core conftest.err conftest.$ac_objext \
17717     conftest$ac_exeext conftest.$ac_ext
17718     LDFLAGS=$save_LDFLAGS
17719     libdir=$save_libdir
17720
17721 fi
17722
17723   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17724
17725   # This implies no fast_install, which is unacceptable.
17726   # Some rework will be needed to allow for fast_install
17727   # before this can be enabled.
17728   hardcode_into_libs=yes
17729
17730   # Ideally, we could use ldconfig to report *all* directores which are
17731   # searched for libraries, however this is still not possible.  Aside from not
17732   # being certain /sbin/ldconfig is available, command
17733   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17734   # even though it is searched at run-time.  Try to do the best guess by
17735   # appending ld.so.conf contents (and includes) to the search path.
17736   if test -f /etc/ld.so.conf; then
17737     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' ' '`
17738     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17739   fi
17740
17741   # We used to test for /lib/ld.so.1 and disable shared libraries on
17742   # powerpc, because MkLinux only supported shared libraries with the
17743   # GNU dynamic linker.  Since this was broken with cross compilers,
17744   # most powerpc-linux boxes support dynamic linking these days and
17745   # people can always --disable-shared, the test was removed, and we
17746   # assume the GNU/Linux dynamic linker is in use.
17747   dynamic_linker='GNU/Linux ld.so'
17748   ;;
17749
17750 netbsdelf*-gnu)
17751   version_type=linux
17752   need_lib_prefix=no
17753   need_version=no
17754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17755   soname_spec='${libname}${release}${shared_ext}$major'
17756   shlibpath_var=LD_LIBRARY_PATH
17757   shlibpath_overrides_runpath=no
17758   hardcode_into_libs=yes
17759   dynamic_linker='NetBSD ld.elf_so'
17760   ;;
17761
17762 netbsd*)
17763   version_type=sunos
17764   need_lib_prefix=no
17765   need_version=no
17766   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17767     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17768     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17769     dynamic_linker='NetBSD (a.out) ld.so'
17770   else
17771     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17772     soname_spec='$libname$release$shared_ext$major'
17773     dynamic_linker='NetBSD ld.elf_so'
17774   fi
17775   shlibpath_var=LD_LIBRARY_PATH
17776   shlibpath_overrides_runpath=yes
17777   hardcode_into_libs=yes
17778   ;;
17779
17780 newsos6)
17781   version_type=linux # correct to gnu/linux during the next big refactor
17782   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17783   shlibpath_var=LD_LIBRARY_PATH
17784   shlibpath_overrides_runpath=yes
17785   ;;
17786
17787 *nto* | *qnx*)
17788   version_type=qnx
17789   need_lib_prefix=no
17790   need_version=no
17791   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17792   soname_spec='$libname$release$shared_ext$major'
17793   shlibpath_var=LD_LIBRARY_PATH
17794   shlibpath_overrides_runpath=no
17795   hardcode_into_libs=yes
17796   dynamic_linker='ldqnx.so'
17797   ;;
17798
17799 openbsd* | bitrig*)
17800   version_type=sunos
17801   sys_lib_dlsearch_path_spec=/usr/lib
17802   need_lib_prefix=no
17803   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17804     need_version=no
17805   else
17806     need_version=yes
17807   fi
17808   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17809   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17810   shlibpath_var=LD_LIBRARY_PATH
17811   shlibpath_overrides_runpath=yes
17812   ;;
17813
17814 os2*)
17815   libname_spec='$name'
17816   version_type=windows
17817   shrext_cmds=.dll
17818   need_version=no
17819   need_lib_prefix=no
17820   # OS/2 can only load a DLL with a base name of 8 characters or less.
17821   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17822     v=$($ECHO $release$versuffix | tr -d .-);
17823     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17824     $ECHO $n$v`$shared_ext'
17825   library_names_spec='${libname}_dll.$libext'
17826   dynamic_linker='OS/2 ld.exe'
17827   shlibpath_var=BEGINLIBPATH
17828   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17829   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17830   postinstall_cmds='base_file=`basename \$file`~
17831     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17832     dldir=$destdir/`dirname \$dlpath`~
17833     test -d \$dldir || mkdir -p \$dldir~
17834     $install_prog $dir/$dlname \$dldir/$dlname~
17835     chmod a+x \$dldir/$dlname~
17836     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17837       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17838     fi'
17839   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17840     dlpath=$dir/\$dldll~
17841     $RM \$dlpath'
17842   ;;
17843
17844 osf3* | osf4* | osf5*)
17845   version_type=osf
17846   need_lib_prefix=no
17847   need_version=no
17848   soname_spec='$libname$release$shared_ext$major'
17849   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17850   shlibpath_var=LD_LIBRARY_PATH
17851   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17852   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17853   ;;
17854
17855 rdos*)
17856   dynamic_linker=no
17857   ;;
17858
17859 solaris*)
17860   version_type=linux # correct to gnu/linux during the next big refactor
17861   need_lib_prefix=no
17862   need_version=no
17863   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17864   soname_spec='$libname$release$shared_ext$major'
17865   shlibpath_var=LD_LIBRARY_PATH
17866   shlibpath_overrides_runpath=yes
17867   hardcode_into_libs=yes
17868   # ldd complains unless libraries are executable
17869   postinstall_cmds='chmod +x $lib'
17870   ;;
17871
17872 sunos4*)
17873   version_type=sunos
17874   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17875   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17876   shlibpath_var=LD_LIBRARY_PATH
17877   shlibpath_overrides_runpath=yes
17878   if test yes = "$with_gnu_ld"; then
17879     need_lib_prefix=no
17880   fi
17881   need_version=yes
17882   ;;
17883
17884 sysv4 | sysv4.3*)
17885   version_type=linux # correct to gnu/linux during the next big refactor
17886   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17887   soname_spec='$libname$release$shared_ext$major'
17888   shlibpath_var=LD_LIBRARY_PATH
17889   case $host_vendor in
17890     sni)
17891       shlibpath_overrides_runpath=no
17892       need_lib_prefix=no
17893       runpath_var=LD_RUN_PATH
17894       ;;
17895     siemens)
17896       need_lib_prefix=no
17897       ;;
17898     motorola)
17899       need_lib_prefix=no
17900       need_version=no
17901       shlibpath_overrides_runpath=no
17902       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17903       ;;
17904   esac
17905   ;;
17906
17907 sysv4*MP*)
17908   if test -d /usr/nec; then
17909     version_type=linux # correct to gnu/linux during the next big refactor
17910     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17911     soname_spec='$libname$shared_ext.$major'
17912     shlibpath_var=LD_LIBRARY_PATH
17913   fi
17914   ;;
17915
17916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17917   version_type=sco
17918   need_lib_prefix=no
17919   need_version=no
17920   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17921   soname_spec='$libname$release$shared_ext$major'
17922   shlibpath_var=LD_LIBRARY_PATH
17923   shlibpath_overrides_runpath=yes
17924   hardcode_into_libs=yes
17925   if test yes = "$with_gnu_ld"; then
17926     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17927   else
17928     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17929     case $host_os in
17930       sco3.2v5*)
17931         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17932         ;;
17933     esac
17934   fi
17935   sys_lib_dlsearch_path_spec='/usr/lib'
17936   ;;
17937
17938 tpf*)
17939   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17940   version_type=linux # correct to gnu/linux during the next big refactor
17941   need_lib_prefix=no
17942   need_version=no
17943   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17944   shlibpath_var=LD_LIBRARY_PATH
17945   shlibpath_overrides_runpath=no
17946   hardcode_into_libs=yes
17947   ;;
17948
17949 uts4*)
17950   version_type=linux # correct to gnu/linux during the next big refactor
17951   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17952   soname_spec='$libname$release$shared_ext$major'
17953   shlibpath_var=LD_LIBRARY_PATH
17954   ;;
17955
17956 *)
17957   dynamic_linker=no
17958   ;;
17959 esac
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17961 $as_echo "$dynamic_linker" >&6; }
17962 test no = "$dynamic_linker" && can_build_shared=no
17963
17964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17965 if test yes = "$GCC"; then
17966   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17967 fi
17968
17969 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17970   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17971 fi
17972
17973 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17974   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17975 fi
17976
17977 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17978 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17979
17980 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17981 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17982
17983 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17984 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
18017
18018
18019
18020
18021
18022
18023
18024
18025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18026 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18027 hardcode_action_CXX=
18028 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18029    test -n "$runpath_var_CXX" ||
18030    test yes = "$hardcode_automatic_CXX"; then
18031
18032   # We can hardcode non-existent directories.
18033   if test no != "$hardcode_direct_CXX" &&
18034      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18035      # have to relink, otherwise we might link with an installed library
18036      # when we should be linking with a yet-to-be-installed one
18037      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18038      test no != "$hardcode_minus_L_CXX"; then
18039     # Linking always hardcodes the temporary library directory.
18040     hardcode_action_CXX=relink
18041   else
18042     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18043     hardcode_action_CXX=immediate
18044   fi
18045 else
18046   # We cannot hardcode anything, or else we can only hardcode existing
18047   # directories.
18048   hardcode_action_CXX=unsupported
18049 fi
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18051 $as_echo "$hardcode_action_CXX" >&6; }
18052
18053 if test relink = "$hardcode_action_CXX" ||
18054    test yes = "$inherit_rpath_CXX"; then
18055   # Fast installation is not supported
18056   enable_fast_install=no
18057 elif test yes = "$shlibpath_overrides_runpath" ||
18058      test no = "$enable_shared"; then
18059   # Fast installation is not necessary
18060   enable_fast_install=needless
18061 fi
18062
18063
18064
18065
18066
18067
18068
18069   fi # test -n "$compiler"
18070
18071   CC=$lt_save_CC
18072   CFLAGS=$lt_save_CFLAGS
18073   LDCXX=$LD
18074   LD=$lt_save_LD
18075   GCC=$lt_save_GCC
18076   with_gnu_ld=$lt_save_with_gnu_ld
18077   lt_cv_path_LDCXX=$lt_cv_path_LD
18078   lt_cv_path_LD=$lt_save_path_LD
18079   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18080   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18081 fi # test yes != "$_lt_caught_CXX_error"
18082
18083 ac_ext=c
18084 ac_cpp='$CPP $CPPFLAGS'
18085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18088
18089
18090 # Check whether --enable-largefile was given.
18091 if test "${enable_largefile+set}" = set; then :
18092   enableval=$enable_largefile;
18093 fi
18094
18095 if test "$enable_largefile" != no; then
18096
18097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18098 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18099 if ${ac_cv_sys_largefile_CC+:} false; then :
18100   $as_echo_n "(cached) " >&6
18101 else
18102   ac_cv_sys_largefile_CC=no
18103      if test "$GCC" != yes; then
18104        ac_save_CC=$CC
18105        while :; do
18106          # IRIX 6.2 and later do not support large files by default,
18107          # so use the C compiler's -n32 option if that helps.
18108          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h.  */
18110 #include <sys/types.h>
18111  /* Check that off_t can represent 2**63 - 1 correctly.
18112     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18113     since some C++ compilers masquerading as C compilers
18114     incorrectly reject 9223372036854775807.  */
18115 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18116   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18117                        && LARGE_OFF_T % 2147483647 == 1)
18118                       ? 1 : -1];
18119 int
18120 main ()
18121 {
18122
18123   ;
18124   return 0;
18125 }
18126 _ACEOF
18127          if ac_fn_c_try_compile "$LINENO"; then :
18128   break
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext
18131          CC="$CC -n32"
18132          if ac_fn_c_try_compile "$LINENO"; then :
18133   ac_cv_sys_largefile_CC=' -n32'; break
18134 fi
18135 rm -f core conftest.err conftest.$ac_objext
18136          break
18137        done
18138        CC=$ac_save_CC
18139        rm -f conftest.$ac_ext
18140     fi
18141 fi
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18143 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18144   if test "$ac_cv_sys_largefile_CC" != no; then
18145     CC=$CC$ac_cv_sys_largefile_CC
18146   fi
18147
18148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18149 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18150 if ${ac_cv_sys_file_offset_bits+:} false; then :
18151   $as_echo_n "(cached) " >&6
18152 else
18153   while :; do
18154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h.  */
18156 #include <sys/types.h>
18157  /* Check that off_t can represent 2**63 - 1 correctly.
18158     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18159     since some C++ compilers masquerading as C compilers
18160     incorrectly reject 9223372036854775807.  */
18161 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18162   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18163                        && LARGE_OFF_T % 2147483647 == 1)
18164                       ? 1 : -1];
18165 int
18166 main ()
18167 {
18168
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 if ac_fn_c_try_compile "$LINENO"; then :
18174   ac_cv_sys_file_offset_bits=no; break
18175 fi
18176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h.  */
18179 #define _FILE_OFFSET_BITS 64
18180 #include <sys/types.h>
18181  /* Check that off_t can represent 2**63 - 1 correctly.
18182     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18183     since some C++ compilers masquerading as C compilers
18184     incorrectly reject 9223372036854775807.  */
18185 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18186   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18187                        && LARGE_OFF_T % 2147483647 == 1)
18188                       ? 1 : -1];
18189 int
18190 main ()
18191 {
18192
18193   ;
18194   return 0;
18195 }
18196 _ACEOF
18197 if ac_fn_c_try_compile "$LINENO"; then :
18198   ac_cv_sys_file_offset_bits=64; break
18199 fi
18200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18201   ac_cv_sys_file_offset_bits=unknown
18202   break
18203 done
18204 fi
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18206 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18207 case $ac_cv_sys_file_offset_bits in #(
18208   no | unknown) ;;
18209   *)
18210 cat >>confdefs.h <<_ACEOF
18211 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18212 _ACEOF
18213 ;;
18214 esac
18215 rm -rf conftest*
18216   if test $ac_cv_sys_file_offset_bits = unknown; then
18217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18218 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18219 if ${ac_cv_sys_large_files+:} false; then :
18220   $as_echo_n "(cached) " >&6
18221 else
18222   while :; do
18223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h.  */
18225 #include <sys/types.h>
18226  /* Check that off_t can represent 2**63 - 1 correctly.
18227     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18228     since some C++ compilers masquerading as C compilers
18229     incorrectly reject 9223372036854775807.  */
18230 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18231   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18232                        && LARGE_OFF_T % 2147483647 == 1)
18233                       ? 1 : -1];
18234 int
18235 main ()
18236 {
18237
18238   ;
18239   return 0;
18240 }
18241 _ACEOF
18242 if ac_fn_c_try_compile "$LINENO"; then :
18243   ac_cv_sys_large_files=no; break
18244 fi
18245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h.  */
18248 #define _LARGE_FILES 1
18249 #include <sys/types.h>
18250  /* Check that off_t can represent 2**63 - 1 correctly.
18251     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18252     since some C++ compilers masquerading as C compilers
18253     incorrectly reject 9223372036854775807.  */
18254 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18255   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18256                        && LARGE_OFF_T % 2147483647 == 1)
18257                       ? 1 : -1];
18258 int
18259 main ()
18260 {
18261
18262   ;
18263   return 0;
18264 }
18265 _ACEOF
18266 if ac_fn_c_try_compile "$LINENO"; then :
18267   ac_cv_sys_large_files=1; break
18268 fi
18269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18270   ac_cv_sys_large_files=unknown
18271   break
18272 done
18273 fi
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18275 $as_echo "$ac_cv_sys_large_files" >&6; }
18276 case $ac_cv_sys_large_files in #(
18277   no | unknown) ;;
18278   *)
18279 cat >>confdefs.h <<_ACEOF
18280 #define _LARGE_FILES $ac_cv_sys_large_files
18281 _ACEOF
18282 ;;
18283 esac
18284 rm -rf conftest*
18285   fi
18286
18287
18288 fi
18289
18290
18291
18292 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18293         if test -n "$ac_tool_prefix"; then
18294   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18295 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18297 $as_echo_n "checking for $ac_word... " >&6; }
18298 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18299   $as_echo_n "(cached) " >&6
18300 else
18301   case $PKG_CONFIG in
18302   [\\/]* | ?:[\\/]*)
18303   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18304   ;;
18305   *)
18306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18307 for as_dir in $PATH
18308 do
18309   IFS=$as_save_IFS
18310   test -z "$as_dir" && as_dir=.
18311     for ac_exec_ext in '' $ac_executable_extensions; do
18312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18313     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18315     break 2
18316   fi
18317 done
18318   done
18319 IFS=$as_save_IFS
18320
18321   ;;
18322 esac
18323 fi
18324 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18325 if test -n "$PKG_CONFIG"; then
18326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18327 $as_echo "$PKG_CONFIG" >&6; }
18328 else
18329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18330 $as_echo "no" >&6; }
18331 fi
18332
18333
18334 fi
18335 if test -z "$ac_cv_path_PKG_CONFIG"; then
18336   ac_pt_PKG_CONFIG=$PKG_CONFIG
18337   # Extract the first word of "pkg-config", so it can be a program name with args.
18338 set dummy pkg-config; ac_word=$2
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18340 $as_echo_n "checking for $ac_word... " >&6; }
18341 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18342   $as_echo_n "(cached) " >&6
18343 else
18344   case $ac_pt_PKG_CONFIG in
18345   [\\/]* | ?:[\\/]*)
18346   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18347   ;;
18348   *)
18349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18350 for as_dir in $PATH
18351 do
18352   IFS=$as_save_IFS
18353   test -z "$as_dir" && as_dir=.
18354     for ac_exec_ext in '' $ac_executable_extensions; do
18355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18356     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18358     break 2
18359   fi
18360 done
18361   done
18362 IFS=$as_save_IFS
18363
18364   ;;
18365 esac
18366 fi
18367 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18368 if test -n "$ac_pt_PKG_CONFIG"; then
18369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18370 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18371 else
18372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18373 $as_echo "no" >&6; }
18374 fi
18375
18376   if test "x$ac_pt_PKG_CONFIG" = x; then
18377     PKG_CONFIG=""
18378   else
18379     case $cross_compiling:$ac_tool_warned in
18380 yes:)
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18383 ac_tool_warned=yes ;;
18384 esac
18385     PKG_CONFIG=$ac_pt_PKG_CONFIG
18386   fi
18387 else
18388   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18389 fi
18390
18391 fi
18392 if test -n "$PKG_CONFIG"; then
18393         _pkg_min_version=0.20
18394         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18395 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18396         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18397                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18398 $as_echo "yes" >&6; }
18399         else
18400                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18401 $as_echo "no" >&6; }
18402                 PKG_CONFIG=""
18403         fi
18404
18405 fi
18406
18407 RAGEL=${RAGEL-"${am_missing_run}ragel"}
18408
18409
18410 GIT=${GIT-"${am_missing_run}git"}
18411
18412
18413 # Version
18414
18415
18416
18417
18418 HB_VERSION_MAJOR=1
18419 HB_VERSION_MINOR=7
18420 HB_VERSION_MICRO=6
18421 HB_VERSION=1.7.6
18422
18423
18424
18425
18426
18427 # Libtool version
18428
18429
18430
18431
18432 HB_LIBTOOL_VERSION_INFO=10706:0:10706
18433
18434
18435
18436 # Check whether --with-libstdc++ was given.
18437 if test "${with_libstdc__+set}" = set; then :
18438   withval=$with_libstdc__; with_libstdcxx=$withval
18439 else
18440   with_libstdcxx=no
18441 fi
18442
18443  if test "x$with_libstdcxx" = "xyes"; then
18444   WITH_LIBSTDCXX_TRUE=
18445   WITH_LIBSTDCXX_FALSE='#'
18446 else
18447   WITH_LIBSTDCXX_TRUE='#'
18448   WITH_LIBSTDCXX_FALSE=
18449 fi
18450
18451
18452 # Documentation
18453 have_gtk_doc=false
18454
18455
18456
18457
18458   gtk_doc_requires="gtk-doc >= 1.15"
18459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
18460 $as_echo_n "checking for gtk-doc... " >&6; }
18461   if test -n "$PKG_CONFIG" && \
18462     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
18463   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
18464   ac_status=$?
18465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18466   test $ac_status = 0; }; then
18467   have_gtk_doc=yes
18468 else
18469   have_gtk_doc=no
18470 fi
18471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
18472 $as_echo "$have_gtk_doc" >&6; }
18473
18474   if test "$have_gtk_doc" = "no"; then
18475       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18476   You will not be able to create source packages with 'make dist'
18477   because $gtk_doc_requires is not found." >&5
18478 $as_echo "$as_me: WARNING:
18479   You will not be able to create source packages with 'make dist'
18480   because $gtk_doc_requires is not found." >&2;}
18481   fi
18482
18483             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18484 set dummy gtkdoc-check; ac_word=$2
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18486 $as_echo_n "checking for $ac_word... " >&6; }
18487 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
18488   $as_echo_n "(cached) " >&6
18489 else
18490   if test -n "$GTKDOC_CHECK"; then
18491   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
18492 else
18493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18494 for as_dir in $PATH
18495 do
18496   IFS=$as_save_IFS
18497   test -z "$as_dir" && as_dir=.
18498     for ac_exec_ext in '' $ac_executable_extensions; do
18499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18500     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
18501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18502     break 2
18503   fi
18504 done
18505   done
18506 IFS=$as_save_IFS
18507
18508 fi
18509 fi
18510 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
18511 if test -n "$GTKDOC_CHECK"; then
18512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18513 $as_echo "$GTKDOC_CHECK" >&6; }
18514 else
18515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18516 $as_echo "no" >&6; }
18517 fi
18518
18519
18520   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18521 set dummy gtkdoc-check; ac_word=$2
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18523 $as_echo_n "checking for $ac_word... " >&6; }
18524 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
18525   $as_echo_n "(cached) " >&6
18526 else
18527   case $GTKDOC_CHECK_PATH in
18528   [\\/]* | ?:[\\/]*)
18529   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
18530   ;;
18531   *)
18532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18533 for as_dir in $PATH
18534 do
18535   IFS=$as_save_IFS
18536   test -z "$as_dir" && as_dir=.
18537     for ac_exec_ext in '' $ac_executable_extensions; do
18538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18539     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
18540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18541     break 2
18542   fi
18543 done
18544   done
18545 IFS=$as_save_IFS
18546
18547   ;;
18548 esac
18549 fi
18550 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
18551 if test -n "$GTKDOC_CHECK_PATH"; then
18552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
18553 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
18554 else
18555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18556 $as_echo "no" >&6; }
18557 fi
18558
18559
18560   for ac_prog in gtkdoc-rebase
18561 do
18562   # Extract the first word of "$ac_prog", so it can be a program name with args.
18563 set dummy $ac_prog; ac_word=$2
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18565 $as_echo_n "checking for $ac_word... " >&6; }
18566 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
18567   $as_echo_n "(cached) " >&6
18568 else
18569   case $GTKDOC_REBASE in
18570   [\\/]* | ?:[\\/]*)
18571   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18572   ;;
18573   *)
18574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $PATH
18576 do
18577   IFS=$as_save_IFS
18578   test -z "$as_dir" && as_dir=.
18579     for ac_exec_ext in '' $ac_executable_extensions; do
18580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18583     break 2
18584   fi
18585 done
18586   done
18587 IFS=$as_save_IFS
18588
18589   ;;
18590 esac
18591 fi
18592 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18593 if test -n "$GTKDOC_REBASE"; then
18594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18595 $as_echo "$GTKDOC_REBASE" >&6; }
18596 else
18597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18598 $as_echo "no" >&6; }
18599 fi
18600
18601
18602   test -n "$GTKDOC_REBASE" && break
18603 done
18604 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18605
18606   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18607 set dummy gtkdoc-mkpdf; ac_word=$2
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18609 $as_echo_n "checking for $ac_word... " >&6; }
18610 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
18611   $as_echo_n "(cached) " >&6
18612 else
18613   case $GTKDOC_MKPDF in
18614   [\\/]* | ?:[\\/]*)
18615   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18616   ;;
18617   *)
18618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18619 for as_dir in $PATH
18620 do
18621   IFS=$as_save_IFS
18622   test -z "$as_dir" && as_dir=.
18623     for ac_exec_ext in '' $ac_executable_extensions; do
18624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18625     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18627     break 2
18628   fi
18629 done
18630   done
18631 IFS=$as_save_IFS
18632
18633   ;;
18634 esac
18635 fi
18636 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18637 if test -n "$GTKDOC_MKPDF"; then
18638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18639 $as_echo "$GTKDOC_MKPDF" >&6; }
18640 else
18641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18643 fi
18644
18645
18646
18647
18648 # Check whether --with-html-dir was given.
18649 if test "${with_html_dir+set}" = set; then :
18650   withval=$with_html_dir;
18651 else
18652   with_html_dir='${datadir}/gtk-doc/html'
18653 fi
18654
18655   HTML_DIR="$with_html_dir"
18656
18657
18658     # Check whether --enable-gtk-doc was given.
18659 if test "${enable_gtk_doc+set}" = set; then :
18660   enableval=$enable_gtk_doc;
18661 else
18662   enable_gtk_doc=no
18663 fi
18664
18665
18666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18667 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18669 $as_echo "$enable_gtk_doc" >&6; }
18670
18671   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
18672     as_fn_error $? "
18673   You must have $gtk_doc_requires installed to build documentation for
18674   $PACKAGE_NAME. Please install gtk-doc or disable building the
18675   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
18676   fi
18677
18678     if test "x$PACKAGE_NAME" != "xglib"; then
18679
18680 pkg_failed=no
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
18682 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
18683
18684 if test -n "$PKG_CONFIG"; then
18685     if test -n "$GTKDOC_DEPS_CFLAGS"; then
18686         pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
18687     else
18688         if test -n "$PKG_CONFIG" && \
18689     { { $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
18690   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
18691   ac_status=$?
18692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18693   test $ac_status = 0; }; then
18694   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
18695 else
18696   pkg_failed=yes
18697 fi
18698     fi
18699 else
18700         pkg_failed=untried
18701 fi
18702 if test -n "$PKG_CONFIG"; then
18703     if test -n "$GTKDOC_DEPS_LIBS"; then
18704         pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
18705     else
18706         if test -n "$PKG_CONFIG" && \
18707     { { $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
18708   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
18709   ac_status=$?
18710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18711   test $ac_status = 0; }; then
18712   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
18713 else
18714   pkg_failed=yes
18715 fi
18716     fi
18717 else
18718         pkg_failed=untried
18719 fi
18720
18721
18722
18723 if test $pkg_failed = yes; then
18724
18725 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18726         _pkg_short_errors_supported=yes
18727 else
18728         _pkg_short_errors_supported=no
18729 fi
18730         if test $_pkg_short_errors_supported = yes; then
18731                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
18732         else
18733                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
18734         fi
18735         # Put the nasty error message in config.log where it belongs
18736         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
18737
18738         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18739 $as_echo "no" >&6; }
18740                 :
18741 elif test $pkg_failed = untried; then
18742         :
18743 else
18744         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
18745         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
18746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18747 $as_echo "yes" >&6; }
18748         :
18749 fi
18750   fi
18751
18752     # Check whether --enable-gtk-doc-html was given.
18753 if test "${enable_gtk_doc_html+set}" = set; then :
18754   enableval=$enable_gtk_doc_html;
18755 else
18756   enable_gtk_doc_html=yes
18757 fi
18758
18759     # Check whether --enable-gtk-doc-pdf was given.
18760 if test "${enable_gtk_doc_pdf+set}" = set; then :
18761   enableval=$enable_gtk_doc_pdf;
18762 else
18763   enable_gtk_doc_pdf=no
18764 fi
18765
18766
18767   if test -z "$GTKDOC_MKPDF"; then
18768     enable_gtk_doc_pdf=no
18769   fi
18770
18771   if test -z "$AM_DEFAULT_VERBOSITY"; then
18772     AM_DEFAULT_VERBOSITY=1
18773   fi
18774
18775
18776    if test x$have_gtk_doc = xyes; then
18777   HAVE_GTK_DOC_TRUE=
18778   HAVE_GTK_DOC_FALSE='#'
18779 else
18780   HAVE_GTK_DOC_TRUE='#'
18781   HAVE_GTK_DOC_FALSE=
18782 fi
18783
18784    if test x$enable_gtk_doc = xyes; then
18785   ENABLE_GTK_DOC_TRUE=
18786   ENABLE_GTK_DOC_FALSE='#'
18787 else
18788   ENABLE_GTK_DOC_TRUE='#'
18789   ENABLE_GTK_DOC_FALSE=
18790 fi
18791
18792    if test x$enable_gtk_doc_html = xyes; then
18793   GTK_DOC_BUILD_HTML_TRUE=
18794   GTK_DOC_BUILD_HTML_FALSE='#'
18795 else
18796   GTK_DOC_BUILD_HTML_TRUE='#'
18797   GTK_DOC_BUILD_HTML_FALSE=
18798 fi
18799
18800    if test x$enable_gtk_doc_pdf = xyes; then
18801   GTK_DOC_BUILD_PDF_TRUE=
18802   GTK_DOC_BUILD_PDF_FALSE='#'
18803 else
18804   GTK_DOC_BUILD_PDF_TRUE='#'
18805   GTK_DOC_BUILD_PDF_FALSE=
18806 fi
18807
18808    if test -n "$LIBTOOL"; then
18809   GTK_DOC_USE_LIBTOOL_TRUE=
18810   GTK_DOC_USE_LIBTOOL_FALSE='#'
18811 else
18812   GTK_DOC_USE_LIBTOOL_TRUE='#'
18813   GTK_DOC_USE_LIBTOOL_FALSE=
18814 fi
18815
18816    if test -n "$GTKDOC_REBASE"; then
18817   GTK_DOC_USE_REBASE_TRUE=
18818   GTK_DOC_USE_REBASE_FALSE='#'
18819 else
18820   GTK_DOC_USE_REBASE_TRUE='#'
18821   GTK_DOC_USE_REBASE_FALSE=
18822 fi
18823
18824
18825         if test "x$enable_gtk_doc" = xyes; then
18826                 have_gtk_doc=true
18827         fi
18828
18829
18830 # Functions, and headers
18831 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l setlinebuf
18832 do :
18833   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18834 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18835 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18836   cat >>confdefs.h <<_ACEOF
18837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18838 _ACEOF
18839
18840 fi
18841 done
18842
18843 for ac_header in unistd.h sys/mman.h xlocale.h
18844 do :
18845   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18846 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18847 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18848   cat >>confdefs.h <<_ACEOF
18849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18850 _ACEOF
18851
18852 fi
18853
18854 done
18855
18856
18857 # Compiler flags
18858
18859 # The cast to long int works around a bug in the HP C Compiler,
18860 # see AC_CHECK_SIZEOF for more information.
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
18862 $as_echo_n "checking alignment of struct{char;}... " >&6; }
18863 if ${ac_cv_alignof_struct_char__+:} false; then :
18864   $as_echo_n "(cached) " >&6
18865 else
18866   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
18867 #ifndef offsetof
18868 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18869 #endif
18870 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
18871
18872 else
18873   if test "$ac_cv_type_struct_char__" = yes; then
18874      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18876 as_fn_error 77 "cannot compute alignment of struct{char;}
18877 See \`config.log' for more details" "$LINENO" 5; }
18878    else
18879      ac_cv_alignof_struct_char__=0
18880    fi
18881 fi
18882
18883 fi
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
18885 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
18886
18887
18888
18889 cat >>confdefs.h <<_ACEOF
18890 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
18891 _ACEOF
18892
18893
18894 if test "x$GCC" = "xyes"; then
18895
18896         # Make symbols link locally
18897         LDFLAGS="$LDFLAGS -Bsymbolic-functions"
18898
18899         # Assorted warnings
18900         CXXFLAGS="$CXXFLAGS -Wcast-align"
18901
18902         case "$host" in
18903                 *-*-mingw*)
18904                 ;;
18905                 *)
18906                         # Hide inline methods
18907                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
18908                 ;;
18909         esac
18910
18911         case "$host" in
18912                 arm-*-*)
18913                         if test "x$ac_cv_alignof_struct_char__" != x1; then
18914                                 # Request byte alignment
18915                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
18916                         fi
18917                 ;;
18918         esac
18919 fi
18920
18921  if test "x$GCC" = "xyes"; then
18922   HAVE_GCC_TRUE=
18923   HAVE_GCC_FALSE='#'
18924 else
18925   HAVE_GCC_TRUE='#'
18926   HAVE_GCC_FALSE=
18927 fi
18928
18929
18930 hb_os_win32=no
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
18932 $as_echo_n "checking for native Win32... " >&6; }
18933 case "$host" in
18934   *-*-mingw*)
18935     hb_os_win32=yes
18936     ;;
18937 esac
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
18939 $as_echo "$hb_os_win32" >&6; }
18940  if test "$hb_os_win32" = "yes"; then
18941   OS_WIN32_TRUE=
18942   OS_WIN32_FALSE='#'
18943 else
18944   OS_WIN32_TRUE='#'
18945   OS_WIN32_FALSE=
18946 fi
18947
18948
18949 have_pthread=false
18950 if test "$hb_os_win32" = no; then
18951
18952
18953
18954
18955 ac_ext=c
18956 ac_cpp='$CPP $CPPFLAGS'
18957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18960
18961 ax_pthread_ok=no
18962
18963 # We used to check for pthread.h first, but this fails if pthread.h
18964 # requires special compiler flags (e.g. on Tru64 or Sequent).
18965 # It gets checked for in the link test anyway.
18966
18967 # First of all, check if the user has set any of the PTHREAD_LIBS,
18968 # etcetera environment variables, and if threads linking works using
18969 # them:
18970 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
18971         ax_pthread_save_CC="$CC"
18972         ax_pthread_save_CFLAGS="$CFLAGS"
18973         ax_pthread_save_LIBS="$LIBS"
18974         if test "x$PTHREAD_CC" != "x"; then :
18975   CC="$PTHREAD_CC"
18976 fi
18977         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18978         LIBS="$PTHREAD_LIBS $LIBS"
18979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
18980 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
18981         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h.  */
18983
18984 /* Override any GCC internal prototype to avoid an error.
18985    Use char because int might match the return type of a GCC
18986    builtin and then its argument prototype would still apply.  */
18987 #ifdef __cplusplus
18988 extern "C"
18989 #endif
18990 char pthread_join ();
18991 int
18992 main ()
18993 {
18994 return pthread_join ();
18995   ;
18996   return 0;
18997 }
18998 _ACEOF
18999 if ac_fn_c_try_link "$LINENO"; then :
19000   ax_pthread_ok=yes
19001 fi
19002 rm -f core conftest.err conftest.$ac_objext \
19003     conftest$ac_exeext conftest.$ac_ext
19004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19005 $as_echo "$ax_pthread_ok" >&6; }
19006         if test "x$ax_pthread_ok" = "xno"; then
19007                 PTHREAD_LIBS=""
19008                 PTHREAD_CFLAGS=""
19009         fi
19010         CC="$ax_pthread_save_CC"
19011         CFLAGS="$ax_pthread_save_CFLAGS"
19012         LIBS="$ax_pthread_save_LIBS"
19013 fi
19014
19015 # We must check for the threads library under a number of different
19016 # names; the ordering is very important because some systems
19017 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19018 # libraries is broken (non-POSIX).
19019
19020 # Create a list of thread flags to try.  Items starting with a "-" are
19021 # C compiler flags, and other items are library names, except for "none"
19022 # which indicates that we try without any flags at all, and "pthread-config"
19023 # which is a program returning the flags for the Pth emulation library.
19024
19025 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19026
19027 # The ordering *is* (sometimes) important.  Some notes on the
19028 # individual items follow:
19029
19030 # pthreads: AIX (must check this before -lpthread)
19031 # none: in case threads are in libc; should be tried before -Kthread and
19032 #       other compiler flags to prevent continual compiler warnings
19033 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19034 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19035 #           (Note: HP C rejects this with "bad form for `-t' option")
19036 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19037 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19038 #      doesn't hurt to check since this sometimes defines pthreads and
19039 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
19040 #      is present but should not be used directly; and before -mthreads,
19041 #      because the compiler interprets this as "-mt" + "-hreads")
19042 # -mthreads: Mingw32/gcc, Lynx/gcc
19043 # pthread: Linux, etcetera
19044 # --thread-safe: KAI C++
19045 # pthread-config: use pthread-config program (for GNU Pth library)
19046
19047 case $host_os in
19048
19049         freebsd*)
19050
19051         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19052         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19053
19054         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19055         ;;
19056
19057         hpux*)
19058
19059         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19060         # multi-threading and also sets -lpthread."
19061
19062         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19063         ;;
19064
19065         openedition*)
19066
19067         # IBM z/OS requires a feature-test macro to be defined in order to
19068         # enable POSIX threads at all, so give the user a hint if this is
19069         # not set. (We don't define these ourselves, as they can affect
19070         # other portions of the system API in unpredictable ways.)
19071
19072         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h.  */
19074
19075 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19076              AX_PTHREAD_ZOS_MISSING
19077 #            endif
19078
19079 _ACEOF
19080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19081   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19082   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19083 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19084 fi
19085 rm -f conftest*
19086
19087         ;;
19088
19089         solaris*)
19090
19091         # On Solaris (at least, for some versions), libc contains stubbed
19092         # (non-functional) versions of the pthreads routines, so link-based
19093         # tests will erroneously succeed. (N.B.: The stubs are missing
19094         # pthread_cleanup_push, or rather a function called by this macro,
19095         # so we could check for that, but who knows whether they'll stub
19096         # that too in a future libc.)  So we'll check first for the
19097         # standard Solaris way of linking pthreads (-mt -lpthread).
19098
19099         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
19100         ;;
19101 esac
19102
19103 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19104
19105 if test "x$GCC" = "xyes"; then :
19106   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
19107 fi
19108
19109 # The presence of a feature test macro requesting re-entrant function
19110 # definitions is, on some systems, a strong hint that pthreads support is
19111 # correctly enabled
19112
19113 case $host_os in
19114         darwin* | hpux* | linux* | osf* | solaris*)
19115         ax_pthread_check_macro="_REENTRANT"
19116         ;;
19117
19118         aix*)
19119         ax_pthread_check_macro="_THREAD_SAFE"
19120         ;;
19121
19122         *)
19123         ax_pthread_check_macro="--"
19124         ;;
19125 esac
19126 if test "x$ax_pthread_check_macro" = "x--"; then :
19127   ax_pthread_check_cond=0
19128 else
19129   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19130 fi
19131
19132 # Are we compiling with Clang?
19133
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19135 $as_echo_n "checking whether $CC is Clang... " >&6; }
19136 if ${ax_cv_PTHREAD_CLANG+:} false; then :
19137   $as_echo_n "(cached) " >&6
19138 else
19139   ax_cv_PTHREAD_CLANG=no
19140      # Note that Autoconf sets GCC=yes for Clang as well as GCC
19141      if test "x$GCC" = "xyes"; then
19142         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19143 /* end confdefs.h.  */
19144 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19145 #            if defined(__clang__) && defined(__llvm__)
19146              AX_PTHREAD_CC_IS_CLANG
19147 #            endif
19148
19149 _ACEOF
19150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19151   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
19152   ax_cv_PTHREAD_CLANG=yes
19153 fi
19154 rm -f conftest*
19155
19156      fi
19157
19158 fi
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19160 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
19161 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19162
19163 ax_pthread_clang_warning=no
19164
19165 # Clang needs special handling, because older versions handle the -pthread
19166 # option in a rather... idiosyncratic way
19167
19168 if test "x$ax_pthread_clang" = "xyes"; then
19169
19170         # Clang takes -pthread; it has never supported any other flag
19171
19172         # (Note 1: This will need to be revisited if a system that Clang
19173         # supports has POSIX threads in a separate library.  This tends not
19174         # to be the way of modern systems, but it's conceivable.)
19175
19176         # (Note 2: On some systems, notably Darwin, -pthread is not needed
19177         # to get POSIX threads support; the API is always present and
19178         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
19179         # -pthread does define _REENTRANT, and while the Darwin headers
19180         # ignore this macro, third-party headers might not.)
19181
19182         PTHREAD_CFLAGS="-pthread"
19183         PTHREAD_LIBS=
19184
19185         ax_pthread_ok=yes
19186
19187         # However, older versions of Clang make a point of warning the user
19188         # that, in an invocation where only linking and no compilation is
19189         # taking place, the -pthread option has no effect ("argument unused
19190         # during compilation").  They expect -pthread to be passed in only
19191         # when source code is being compiled.
19192         #
19193         # Problem is, this is at odds with the way Automake and most other
19194         # C build frameworks function, which is that the same flags used in
19195         # compilation (CFLAGS) are also used in linking.  Many systems
19196         # supported by AX_PTHREAD require exactly this for POSIX threads
19197         # support, and in fact it is often not straightforward to specify a
19198         # flag that is used only in the compilation phase and not in
19199         # linking.  Such a scenario is extremely rare in practice.
19200         #
19201         # Even though use of the -pthread flag in linking would only print
19202         # a warning, this can be a nuisance for well-run software projects
19203         # that build with -Werror.  So if the active version of Clang has
19204         # this misfeature, we search for an option to squash it.
19205
19206         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
19207 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
19208 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
19209   $as_echo_n "(cached) " >&6
19210 else
19211   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
19212              # Create an alternate version of $ac_link that compiles and
19213              # links in two steps (.c -> .o, .o -> exe) instead of one
19214              # (.c -> exe), because the warning occurs only in the second
19215              # step
19216              ax_pthread_save_ac_link="$ac_link"
19217              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
19218              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
19219              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
19220              ax_pthread_save_CFLAGS="$CFLAGS"
19221              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
19222                 if test "x$ax_pthread_try" = "xunknown"; then :
19223   break
19224 fi
19225                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
19226                 ac_link="$ax_pthread_save_ac_link"
19227                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19228 /* end confdefs.h.  */
19229 int main(void){return 0;}
19230 _ACEOF
19231 if ac_fn_c_try_link "$LINENO"; then :
19232   ac_link="$ax_pthread_2step_ac_link"
19233                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h.  */
19235 int main(void){return 0;}
19236 _ACEOF
19237 if ac_fn_c_try_link "$LINENO"; then :
19238   break
19239 fi
19240 rm -f core conftest.err conftest.$ac_objext \
19241     conftest$ac_exeext conftest.$ac_ext
19242
19243 fi
19244 rm -f core conftest.err conftest.$ac_objext \
19245     conftest$ac_exeext conftest.$ac_ext
19246              done
19247              ac_link="$ax_pthread_save_ac_link"
19248              CFLAGS="$ax_pthread_save_CFLAGS"
19249              if test "x$ax_pthread_try" = "x"; then :
19250   ax_pthread_try=no
19251 fi
19252              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
19253
19254 fi
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
19256 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
19257
19258         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
19259                 no | unknown) ;;
19260                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
19261         esac
19262
19263 fi # $ax_pthread_clang = yes
19264
19265 if test "x$ax_pthread_ok" = "xno"; then
19266 for ax_pthread_try_flag in $ax_pthread_flags; do
19267
19268         case $ax_pthread_try_flag in
19269                 none)
19270                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19271 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19272                 ;;
19273
19274                 -mt,pthread)
19275                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19276 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19277                 PTHREAD_CFLAGS="-mt"
19278                 PTHREAD_LIBS="-lpthread"
19279                 ;;
19280
19281                 -*)
19282                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19283 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19284                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
19285                 ;;
19286
19287                 pthread-config)
19288                 # Extract the first word of "pthread-config", so it can be a program name with args.
19289 set dummy pthread-config; ac_word=$2
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19291 $as_echo_n "checking for $ac_word... " >&6; }
19292 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19293   $as_echo_n "(cached) " >&6
19294 else
19295   if test -n "$ax_pthread_config"; then
19296   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19297 else
19298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19299 for as_dir in $PATH
19300 do
19301   IFS=$as_save_IFS
19302   test -z "$as_dir" && as_dir=.
19303     for ac_exec_ext in '' $ac_executable_extensions; do
19304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19305     ac_cv_prog_ax_pthread_config="yes"
19306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19307     break 2
19308   fi
19309 done
19310   done
19311 IFS=$as_save_IFS
19312
19313   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19314 fi
19315 fi
19316 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19317 if test -n "$ax_pthread_config"; then
19318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19319 $as_echo "$ax_pthread_config" >&6; }
19320 else
19321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322 $as_echo "no" >&6; }
19323 fi
19324
19325
19326                 if test "x$ax_pthread_config" = "xno"; then :
19327   continue
19328 fi
19329                 PTHREAD_CFLAGS="`pthread-config --cflags`"
19330                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19331                 ;;
19332
19333                 *)
19334                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19335 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19336                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
19337                 ;;
19338         esac
19339
19340         ax_pthread_save_CFLAGS="$CFLAGS"
19341         ax_pthread_save_LIBS="$LIBS"
19342         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19343         LIBS="$PTHREAD_LIBS $LIBS"
19344
19345         # Check for various functions.  We must include pthread.h,
19346         # since some functions may be macros.  (On the Sequent, we
19347         # need a special flag -Kthread to make this header compile.)
19348         # We check for pthread_join because it is in -lpthread on IRIX
19349         # while pthread_create is in libc.  We check for pthread_attr_init
19350         # due to DEC craziness with -lpthreads.  We check for
19351         # pthread_cleanup_push because it is one of the few pthread
19352         # functions on Solaris that doesn't have a non-functional libc stub.
19353         # We try pthread_create on general principles.
19354
19355         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h.  */
19357 #include <pthread.h>
19358 #                       if $ax_pthread_check_cond
19359 #                        error "$ax_pthread_check_macro must be defined"
19360 #                       endif
19361                         static void routine(void *a) { a = 0; }
19362                         static void *start_routine(void *a) { return a; }
19363 int
19364 main ()
19365 {
19366 pthread_t th; pthread_attr_t attr;
19367                         pthread_create(&th, 0, start_routine, 0);
19368                         pthread_join(th, 0);
19369                         pthread_attr_init(&attr);
19370                         pthread_cleanup_push(routine, 0);
19371                         pthread_cleanup_pop(0) /* ; */
19372   ;
19373   return 0;
19374 }
19375 _ACEOF
19376 if ac_fn_c_try_link "$LINENO"; then :
19377   ax_pthread_ok=yes
19378 fi
19379 rm -f core conftest.err conftest.$ac_objext \
19380     conftest$ac_exeext conftest.$ac_ext
19381
19382         CFLAGS="$ax_pthread_save_CFLAGS"
19383         LIBS="$ax_pthread_save_LIBS"
19384
19385         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19386 $as_echo "$ax_pthread_ok" >&6; }
19387         if test "x$ax_pthread_ok" = "xyes"; then :
19388   break
19389 fi
19390
19391         PTHREAD_LIBS=""
19392         PTHREAD_CFLAGS=""
19393 done
19394 fi
19395
19396 # Various other checks:
19397 if test "x$ax_pthread_ok" = "xyes"; then
19398         ax_pthread_save_CFLAGS="$CFLAGS"
19399         ax_pthread_save_LIBS="$LIBS"
19400         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19401         LIBS="$PTHREAD_LIBS $LIBS"
19402
19403         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19405 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19406 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19407   $as_echo_n "(cached) " >&6
19408 else
19409   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19410              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19411                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19412 /* end confdefs.h.  */
19413 #include <pthread.h>
19414 int
19415 main ()
19416 {
19417 int attr = $ax_pthread_attr; return attr /* ; */
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 if ac_fn_c_try_link "$LINENO"; then :
19423   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
19424 fi
19425 rm -f core conftest.err conftest.$ac_objext \
19426     conftest$ac_exeext conftest.$ac_ext
19427              done
19428
19429 fi
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19431 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19432         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
19433                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
19434                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
19435
19436 cat >>confdefs.h <<_ACEOF
19437 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19438 _ACEOF
19439
19440                ax_pthread_joinable_attr_defined=yes
19441
19442 fi
19443
19444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
19445 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
19446 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19447   $as_echo_n "(cached) " >&6
19448 else
19449   ax_cv_PTHREAD_SPECIAL_FLAGS=no
19450              case $host_os in
19451              solaris*)
19452              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
19453              ;;
19454              esac
19455
19456 fi
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19458 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19459         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19460                test "x$ax_pthread_special_flags_added" != "xyes"; then :
19461   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19462                ax_pthread_special_flags_added=yes
19463 fi
19464
19465         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19466 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19467 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19468   $as_echo_n "(cached) " >&6
19469 else
19470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h.  */
19472 #include <pthread.h>
19473 int
19474 main ()
19475 {
19476 int i = PTHREAD_PRIO_INHERIT;
19477   ;
19478   return 0;
19479 }
19480 _ACEOF
19481 if ac_fn_c_try_link "$LINENO"; then :
19482   ax_cv_PTHREAD_PRIO_INHERIT=yes
19483 else
19484   ax_cv_PTHREAD_PRIO_INHERIT=no
19485 fi
19486 rm -f core conftest.err conftest.$ac_objext \
19487     conftest$ac_exeext conftest.$ac_ext
19488
19489 fi
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19491 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19492         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
19493                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
19494
19495 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19496
19497                ax_pthread_prio_inherit_defined=yes
19498
19499 fi
19500
19501         CFLAGS="$ax_pthread_save_CFLAGS"
19502         LIBS="$ax_pthread_save_LIBS"
19503
19504         # More AIX lossage: compile with *_r variant
19505         if test "x$GCC" != "xyes"; then
19506             case $host_os in
19507                 aix*)
19508                 case "x/$CC" in #(
19509   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19510     #handle absolute path differently from PATH based program lookup
19511                      case "x$CC" in #(
19512   x/*) :
19513     if as_fn_executable_p ${CC}_r; then :
19514   PTHREAD_CC="${CC}_r"
19515 fi ;; #(
19516   *) :
19517     for ac_prog in ${CC}_r
19518 do
19519   # Extract the first word of "$ac_prog", so it can be a program name with args.
19520 set dummy $ac_prog; ac_word=$2
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19522 $as_echo_n "checking for $ac_word... " >&6; }
19523 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19524   $as_echo_n "(cached) " >&6
19525 else
19526   if test -n "$PTHREAD_CC"; then
19527   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19528 else
19529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19530 for as_dir in $PATH
19531 do
19532   IFS=$as_save_IFS
19533   test -z "$as_dir" && as_dir=.
19534     for ac_exec_ext in '' $ac_executable_extensions; do
19535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19536     ac_cv_prog_PTHREAD_CC="$ac_prog"
19537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19538     break 2
19539   fi
19540 done
19541   done
19542 IFS=$as_save_IFS
19543
19544 fi
19545 fi
19546 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19547 if test -n "$PTHREAD_CC"; then
19548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19549 $as_echo "$PTHREAD_CC" >&6; }
19550 else
19551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19552 $as_echo "no" >&6; }
19553 fi
19554
19555
19556   test -n "$PTHREAD_CC" && break
19557 done
19558 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19559  ;;
19560 esac ;; #(
19561   *) :
19562      ;;
19563 esac
19564                 ;;
19565             esac
19566         fi
19567 fi
19568
19569 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19570
19571
19572
19573
19574
19575 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19576 if test "x$ax_pthread_ok" = "xyes"; then
19577         have_pthread=true
19578         :
19579 else
19580         ax_pthread_ok=no
19581
19582 fi
19583 ac_ext=c
19584 ac_cpp='$CPP $CPPFLAGS'
19585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19588
19589
19590 fi
19591 if $have_pthread; then
19592
19593 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19594
19595 fi
19596  if $have_pthread; then
19597   HAVE_PTHREAD_TRUE=
19598   HAVE_PTHREAD_FALSE='#'
19599 else
19600   HAVE_PTHREAD_TRUE='#'
19601   HAVE_PTHREAD_FALSE=
19602 fi
19603
19604
19605
19606 have_ot=true
19607 if $have_ot; then
19608
19609 $as_echo "#define HAVE_OT 1" >>confdefs.h
19610
19611 fi
19612  if $have_ot; then
19613   HAVE_OT_TRUE=
19614   HAVE_OT_FALSE='#'
19615 else
19616   HAVE_OT_TRUE='#'
19617   HAVE_OT_FALSE=
19618 fi
19619
19620
19621 have_fallback=true
19622 if $have_fallback; then
19623
19624 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
19625
19626 fi
19627  if $have_fallback; then
19628   HAVE_FALLBACK_TRUE=
19629   HAVE_FALLBACK_FALSE='#'
19630 else
19631   HAVE_FALLBACK_TRUE='#'
19632   HAVE_FALLBACK_FALSE=
19633 fi
19634
19635
19636
19637
19638 # Check whether --with-glib was given.
19639 if test "${with_glib+set}" = set; then :
19640   withval=$with_glib;
19641 else
19642   with_glib=auto
19643 fi
19644
19645 have_glib=false
19646 GLIB_DEPS="glib-2.0 >= 2.19.1"
19647
19648 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
19649
19650 pkg_failed=no
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19652 $as_echo_n "checking for GLIB... " >&6; }
19653
19654 if test -n "$PKG_CONFIG"; then
19655     if test -n "$GLIB_CFLAGS"; then
19656         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19657     else
19658         if test -n "$PKG_CONFIG" && \
19659     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19660   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19661   ac_status=$?
19662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19663   test $ac_status = 0; }; then
19664   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
19665 else
19666   pkg_failed=yes
19667 fi
19668     fi
19669 else
19670         pkg_failed=untried
19671 fi
19672 if test -n "$PKG_CONFIG"; then
19673     if test -n "$GLIB_LIBS"; then
19674         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19675     else
19676         if test -n "$PKG_CONFIG" && \
19677     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19678   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19679   ac_status=$?
19680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19681   test $ac_status = 0; }; then
19682   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
19683 else
19684   pkg_failed=yes
19685 fi
19686     fi
19687 else
19688         pkg_failed=untried
19689 fi
19690
19691
19692
19693 if test $pkg_failed = yes; then
19694
19695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19696         _pkg_short_errors_supported=yes
19697 else
19698         _pkg_short_errors_supported=no
19699 fi
19700         if test $_pkg_short_errors_supported = yes; then
19701                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_DEPS"`
19702         else
19703                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_DEPS"`
19704         fi
19705         # Put the nasty error message in config.log where it belongs
19706         echo "$GLIB_PKG_ERRORS" >&5
19707
19708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19709 $as_echo "no" >&6; }
19710                 :
19711 elif test $pkg_failed = untried; then
19712         :
19713 else
19714         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19715         GLIB_LIBS=$pkg_cv_GLIB_LIBS
19716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19717 $as_echo "yes" >&6; }
19718         have_glib=true
19719 fi
19720 fi
19721 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
19722         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
19723 fi
19724 if $have_glib; then
19725
19726 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
19727
19728 fi
19729  if $have_glib; then
19730   HAVE_GLIB_TRUE=
19731   HAVE_GLIB_FALSE='#'
19732 else
19733   HAVE_GLIB_TRUE='#'
19734   HAVE_GLIB_FALSE=
19735 fi
19736
19737
19738
19739
19740 # Check whether --with-gobject was given.
19741 if test "${with_gobject+set}" = set; then :
19742   withval=$with_gobject;
19743 else
19744   with_gobject=no
19745 fi
19746
19747 have_gobject=false
19748 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
19749
19750 pkg_failed=no
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
19752 $as_echo_n "checking for GOBJECT... " >&6; }
19753
19754 if test -n "$PKG_CONFIG"; then
19755     if test -n "$GOBJECT_CFLAGS"; then
19756         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
19757     else
19758         if test -n "$PKG_CONFIG" && \
19759     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19760   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19761   ac_status=$?
19762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19763   test $ac_status = 0; }; then
19764   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
19765 else
19766   pkg_failed=yes
19767 fi
19768     fi
19769 else
19770         pkg_failed=untried
19771 fi
19772 if test -n "$PKG_CONFIG"; then
19773     if test -n "$GOBJECT_LIBS"; then
19774         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
19775     else
19776         if test -n "$PKG_CONFIG" && \
19777     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19778   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19779   ac_status=$?
19780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19781   test $ac_status = 0; }; then
19782   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
19783 else
19784   pkg_failed=yes
19785 fi
19786     fi
19787 else
19788         pkg_failed=untried
19789 fi
19790
19791
19792
19793 if test $pkg_failed = yes; then
19794
19795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19796         _pkg_short_errors_supported=yes
19797 else
19798         _pkg_short_errors_supported=no
19799 fi
19800         if test $_pkg_short_errors_supported = yes; then
19801                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
19802         else
19803                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
19804         fi
19805         # Put the nasty error message in config.log where it belongs
19806         echo "$GOBJECT_PKG_ERRORS" >&5
19807
19808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809 $as_echo "no" >&6; }
19810                 :
19811 elif test $pkg_failed = untried; then
19812         :
19813 else
19814         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
19815         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
19816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19817 $as_echo "yes" >&6; }
19818         have_gobject=true
19819 fi
19820 fi
19821 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
19822         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
19823 fi
19824 if $have_gobject; then
19825
19826 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
19827
19828         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
19829
19830 fi
19831  if $have_gobject; then
19832   HAVE_GOBJECT_TRUE=
19833   HAVE_GOBJECT_FALSE='#'
19834 else
19835   HAVE_GOBJECT_TRUE='#'
19836   HAVE_GOBJECT_FALSE=
19837 fi
19838
19839
19840
19841
19842
19843 # Gobject-Introspection
19844 have_introspection=false
19845
19846         if $have_gobject; then
19847
19848
19849
19850                 # Check whether --enable-introspection was given.
19851 if test "${enable_introspection+set}" = set; then :
19852   enableval=$enable_introspection;
19853 else
19854   enable_introspection=auto
19855 fi
19856
19857
19858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
19859 $as_echo_n "checking for gobject-introspection... " >&6; }
19860
19861         case $enable_introspection in #(
19862   no) :
19863             found_introspection="no (disabled, use --enable-introspection to enable)"
19864      ;; #(
19865       yes) :
19866             if test -n "$PKG_CONFIG" && \
19867     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
19868   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
19869   ac_status=$?
19870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871   test $ac_status = 0; }; then
19872   :
19873 else
19874   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
19875 fi
19876         if test -n "$PKG_CONFIG" && \
19877     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19878   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19879   ac_status=$?
19880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19881   test $ac_status = 0; }; then
19882   found_introspection=yes
19883 else
19884   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
19885 fi
19886      ;; #(
19887       auto) :
19888             if test -n "$PKG_CONFIG" && \
19889     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19890   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19891   ac_status=$?
19892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19893   test $ac_status = 0; }; then
19894   found_introspection=yes
19895 else
19896   found_introspection=no
19897 fi
19898                 enable_introspection=$found_introspection
19899      ;; #(
19900   *) :
19901                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
19902      ;;
19903 esac
19904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
19905 $as_echo "$found_introspection" >&6; }
19906
19907     INTROSPECTION_SCANNER=
19908     INTROSPECTION_COMPILER=
19909     INTROSPECTION_GENERATE=
19910     INTROSPECTION_GIRDIR=
19911     INTROSPECTION_TYPELIBDIR=
19912     if test "x$found_introspection" = "xyes"; then
19913        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
19914        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
19915        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
19916        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
19917        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
19918        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
19919        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
19920        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
19921     fi
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931      if test "x$found_introspection" = "xyes"; then
19932   HAVE_INTROSPECTION_TRUE=
19933   HAVE_INTROSPECTION_FALSE='#'
19934 else
19935   HAVE_INTROSPECTION_TRUE='#'
19936   HAVE_INTROSPECTION_FALSE=
19937 fi
19938
19939
19940
19941                 if test "x$found_introspection" = xyes; then
19942                         have_introspection=true
19943                 fi
19944         else
19945                  if false; then
19946   HAVE_INTROSPECTION_TRUE=
19947   HAVE_INTROSPECTION_FALSE='#'
19948 else
19949   HAVE_INTROSPECTION_TRUE='#'
19950   HAVE_INTROSPECTION_FALSE=
19951 fi
19952
19953         fi
19954
19955
19956
19957
19958 # Check whether --with-cairo was given.
19959 if test "${with_cairo+set}" = set; then :
19960   withval=$with_cairo;
19961 else
19962   with_cairo=auto
19963 fi
19964
19965 have_cairo=false
19966 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
19967
19968 pkg_failed=no
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
19970 $as_echo_n "checking for CAIRO... " >&6; }
19971
19972 if test -n "$PKG_CONFIG"; then
19973     if test -n "$CAIRO_CFLAGS"; then
19974         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
19975     else
19976         if test -n "$PKG_CONFIG" && \
19977     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
19978   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
19979   ac_status=$?
19980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19981   test $ac_status = 0; }; then
19982   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
19983 else
19984   pkg_failed=yes
19985 fi
19986     fi
19987 else
19988         pkg_failed=untried
19989 fi
19990 if test -n "$PKG_CONFIG"; then
19991     if test -n "$CAIRO_LIBS"; then
19992         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
19993     else
19994         if test -n "$PKG_CONFIG" && \
19995     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
19996   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
19997   ac_status=$?
19998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19999   test $ac_status = 0; }; then
20000   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20001 else
20002   pkg_failed=yes
20003 fi
20004     fi
20005 else
20006         pkg_failed=untried
20007 fi
20008
20009
20010
20011 if test $pkg_failed = yes; then
20012
20013 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20014         _pkg_short_errors_supported=yes
20015 else
20016         _pkg_short_errors_supported=no
20017 fi
20018         if test $_pkg_short_errors_supported = yes; then
20019                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
20020         else
20021                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
20022         fi
20023         # Put the nasty error message in config.log where it belongs
20024         echo "$CAIRO_PKG_ERRORS" >&5
20025
20026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20027 $as_echo "no" >&6; }
20028                 :
20029 elif test $pkg_failed = untried; then
20030         :
20031 else
20032         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20033         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20035 $as_echo "yes" >&6; }
20036         have_cairo=true
20037 fi
20038 fi
20039 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20040         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20041 fi
20042 if $have_cairo; then
20043
20044 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20045
20046 fi
20047  if $have_cairo; then
20048   HAVE_CAIRO_TRUE=
20049   HAVE_CAIRO_FALSE='#'
20050 else
20051   HAVE_CAIRO_TRUE='#'
20052   HAVE_CAIRO_FALSE=
20053 fi
20054
20055
20056 have_cairo_ft=false
20057 if $have_cairo; then
20058
20059 pkg_failed=no
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20061 $as_echo_n "checking for CAIRO_FT... " >&6; }
20062
20063 if test -n "$PKG_CONFIG"; then
20064     if test -n "$CAIRO_FT_CFLAGS"; then
20065         pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20066     else
20067         if test -n "$PKG_CONFIG" && \
20068     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20069   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20070   ac_status=$?
20071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20072   test $ac_status = 0; }; then
20073   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20074 else
20075   pkg_failed=yes
20076 fi
20077     fi
20078 else
20079         pkg_failed=untried
20080 fi
20081 if test -n "$PKG_CONFIG"; then
20082     if test -n "$CAIRO_FT_LIBS"; then
20083         pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20084     else
20085         if test -n "$PKG_CONFIG" && \
20086     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20087   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20088   ac_status=$?
20089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20090   test $ac_status = 0; }; then
20091   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20092 else
20093   pkg_failed=yes
20094 fi
20095     fi
20096 else
20097         pkg_failed=untried
20098 fi
20099
20100
20101
20102 if test $pkg_failed = yes; then
20103
20104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20105         _pkg_short_errors_supported=yes
20106 else
20107         _pkg_short_errors_supported=no
20108 fi
20109         if test $_pkg_short_errors_supported = yes; then
20110                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
20111         else
20112                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
20113         fi
20114         # Put the nasty error message in config.log where it belongs
20115         echo "$CAIRO_FT_PKG_ERRORS" >&5
20116
20117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20118 $as_echo "no" >&6; }
20119                 :
20120 elif test $pkg_failed = untried; then
20121         :
20122 else
20123         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
20124         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
20125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20126 $as_echo "yes" >&6; }
20127         have_cairo_ft=true
20128 fi
20129 fi
20130 if $have_cairo_ft; then
20131
20132 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
20133
20134 fi
20135  if $have_cairo_ft; then
20136   HAVE_CAIRO_FT_TRUE=
20137   HAVE_CAIRO_FT_FALSE='#'
20138 else
20139   HAVE_CAIRO_FT_TRUE='#'
20140   HAVE_CAIRO_FT_FALSE=
20141 fi
20142
20143
20144
20145
20146 # Check whether --with-fontconfig was given.
20147 if test "${with_fontconfig+set}" = set; then :
20148   withval=$with_fontconfig;
20149 else
20150   with_fontconfig=auto
20151 fi
20152
20153 have_fontconfig=false
20154 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
20155
20156 pkg_failed=no
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
20158 $as_echo_n "checking for FONTCONFIG... " >&6; }
20159
20160 if test -n "$PKG_CONFIG"; then
20161     if test -n "$FONTCONFIG_CFLAGS"; then
20162         pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
20163     else
20164         if test -n "$PKG_CONFIG" && \
20165     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20166   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20167   ac_status=$?
20168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20169   test $ac_status = 0; }; then
20170   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
20171 else
20172   pkg_failed=yes
20173 fi
20174     fi
20175 else
20176         pkg_failed=untried
20177 fi
20178 if test -n "$PKG_CONFIG"; then
20179     if test -n "$FONTCONFIG_LIBS"; then
20180         pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
20181     else
20182         if test -n "$PKG_CONFIG" && \
20183     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20184   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20185   ac_status=$?
20186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20187   test $ac_status = 0; }; then
20188   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
20189 else
20190   pkg_failed=yes
20191 fi
20192     fi
20193 else
20194         pkg_failed=untried
20195 fi
20196
20197
20198
20199 if test $pkg_failed = yes; then
20200
20201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20202         _pkg_short_errors_supported=yes
20203 else
20204         _pkg_short_errors_supported=no
20205 fi
20206         if test $_pkg_short_errors_supported = yes; then
20207                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
20208         else
20209                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
20210         fi
20211         # Put the nasty error message in config.log where it belongs
20212         echo "$FONTCONFIG_PKG_ERRORS" >&5
20213
20214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20215 $as_echo "no" >&6; }
20216                 :
20217 elif test $pkg_failed = untried; then
20218         :
20219 else
20220         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20221         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20223 $as_echo "yes" >&6; }
20224         have_fontconfig=true
20225 fi
20226 fi
20227 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
20228         as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
20229 fi
20230 if $have_fontconfig; then
20231
20232 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
20233
20234 fi
20235  if $have_fontconfig; then
20236   HAVE_FONTCONFIG_TRUE=
20237   HAVE_FONTCONFIG_FALSE='#'
20238 else
20239   HAVE_FONTCONFIG_TRUE='#'
20240   HAVE_FONTCONFIG_FALSE=
20241 fi
20242
20243
20244
20245
20246 # Check whether --with-icu was given.
20247 if test "${with_icu+set}" = set; then :
20248   withval=$with_icu;
20249 else
20250   with_icu=auto
20251 fi
20252
20253 have_icu=false
20254 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
20255
20256 pkg_failed=no
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20258 $as_echo_n "checking for ICU... " >&6; }
20259
20260 if test -n "$PKG_CONFIG"; then
20261     if test -n "$ICU_CFLAGS"; then
20262         pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20263     else
20264         if test -n "$PKG_CONFIG" && \
20265     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20266   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20267   ac_status=$?
20268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20269   test $ac_status = 0; }; then
20270   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
20271 else
20272   pkg_failed=yes
20273 fi
20274     fi
20275 else
20276         pkg_failed=untried
20277 fi
20278 if test -n "$PKG_CONFIG"; then
20279     if test -n "$ICU_LIBS"; then
20280         pkg_cv_ICU_LIBS="$ICU_LIBS"
20281     else
20282         if test -n "$PKG_CONFIG" && \
20283     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20284   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20285   ac_status=$?
20286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20287   test $ac_status = 0; }; then
20288   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
20289 else
20290   pkg_failed=yes
20291 fi
20292     fi
20293 else
20294         pkg_failed=untried
20295 fi
20296
20297
20298
20299 if test $pkg_failed = yes; then
20300
20301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20302         _pkg_short_errors_supported=yes
20303 else
20304         _pkg_short_errors_supported=no
20305 fi
20306         if test $_pkg_short_errors_supported = yes; then
20307                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
20308         else
20309                 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
20310         fi
20311         # Put the nasty error message in config.log where it belongs
20312         echo "$ICU_PKG_ERRORS" >&5
20313
20314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20315 $as_echo "no" >&6; }
20316                 :
20317 elif test $pkg_failed = untried; then
20318         :
20319 else
20320         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20321         ICU_LIBS=$pkg_cv_ICU_LIBS
20322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20323 $as_echo "yes" >&6; }
20324         have_icu=true
20325 fi
20326
20327                 if test "$have_icu" != "true"; then
20328                 if test -n "$ac_tool_prefix"; then
20329   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
20330 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20332 $as_echo_n "checking for $ac_word... " >&6; }
20333 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
20334   $as_echo_n "(cached) " >&6
20335 else
20336   if test -n "$ICU_CONFIG"; then
20337   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
20338 else
20339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20340 for as_dir in $PATH
20341 do
20342   IFS=$as_save_IFS
20343   test -z "$as_dir" && as_dir=.
20344     for ac_exec_ext in '' $ac_executable_extensions; do
20345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20346     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
20347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20348     break 2
20349   fi
20350 done
20351   done
20352 IFS=$as_save_IFS
20353
20354 fi
20355 fi
20356 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
20357 if test -n "$ICU_CONFIG"; then
20358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
20359 $as_echo "$ICU_CONFIG" >&6; }
20360 else
20361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20362 $as_echo "no" >&6; }
20363 fi
20364
20365
20366 fi
20367 if test -z "$ac_cv_prog_ICU_CONFIG"; then
20368   ac_ct_ICU_CONFIG=$ICU_CONFIG
20369   # Extract the first word of "icu-config", so it can be a program name with args.
20370 set dummy icu-config; ac_word=$2
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20372 $as_echo_n "checking for $ac_word... " >&6; }
20373 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
20374   $as_echo_n "(cached) " >&6
20375 else
20376   if test -n "$ac_ct_ICU_CONFIG"; then
20377   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
20378 else
20379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20380 for as_dir in $PATH
20381 do
20382   IFS=$as_save_IFS
20383   test -z "$as_dir" && as_dir=.
20384     for ac_exec_ext in '' $ac_executable_extensions; do
20385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20386     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
20387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20388     break 2
20389   fi
20390 done
20391   done
20392 IFS=$as_save_IFS
20393
20394 fi
20395 fi
20396 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
20397 if test -n "$ac_ct_ICU_CONFIG"; then
20398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
20399 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
20400 else
20401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20402 $as_echo "no" >&6; }
20403 fi
20404
20405   if test "x$ac_ct_ICU_CONFIG" = x; then
20406     ICU_CONFIG="no"
20407   else
20408     case $cross_compiling:$ac_tool_warned in
20409 yes:)
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20412 ac_tool_warned=yes ;;
20413 esac
20414     ICU_CONFIG=$ac_ct_ICU_CONFIG
20415   fi
20416 else
20417   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
20418 fi
20419
20420                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
20421 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
20422                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
20423                         have_icu=true
20424                         # We don't use --cflags as this gives us a lot of things that we don't
20425                         # necessarily want, like debugging and optimization flags
20426                         # See man (1) icu-config for more info.
20427                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
20428                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
20429
20430
20431                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20432 $as_echo "yes" >&6; }
20433                 else
20434                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20435 $as_echo "no" >&6; }
20436                 fi
20437         fi
20438 fi
20439 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
20440         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
20441 fi
20442
20443 if $have_icu; then
20444         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
20445
20446 $as_echo "#define HAVE_ICU 1" >>confdefs.h
20447
20448         if test "x$with_icu" = "xbuiltin"; then
20449
20450 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
20451
20452         fi
20453 fi
20454  if $have_icu; then
20455   HAVE_ICU_TRUE=
20456   HAVE_ICU_FALSE='#'
20457 else
20458   HAVE_ICU_TRUE='#'
20459   HAVE_ICU_FALSE=
20460 fi
20461
20462  if $have_icu && test "x$with_icu" = "xbuiltin"; then
20463   HAVE_ICU_BUILTIN_TRUE=
20464   HAVE_ICU_BUILTIN_FALSE='#'
20465 else
20466   HAVE_ICU_BUILTIN_TRUE='#'
20467   HAVE_ICU_BUILTIN_FALSE=
20468 fi
20469
20470
20471
20472
20473 # Check whether --with-ucdn was given.
20474 if test "${with_ucdn+set}" = set; then :
20475   withval=$with_ucdn;
20476 else
20477   with_ucdn=yes
20478 fi
20479
20480 have_ucdn=false
20481 if test "x$with_ucdn" = "xyes"; then
20482         have_ucdn=true
20483 fi
20484 if $have_ucdn; then
20485
20486 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
20487
20488 fi
20489  if $have_ucdn; then
20490   HAVE_UCDN_TRUE=
20491   HAVE_UCDN_FALSE='#'
20492 else
20493   HAVE_UCDN_TRUE='#'
20494   HAVE_UCDN_FALSE=
20495 fi
20496
20497
20498
20499
20500 # Check whether --with-graphite2 was given.
20501 if test "${with_graphite2+set}" = set; then :
20502   withval=$with_graphite2;
20503 else
20504   with_graphite2=no
20505 fi
20506
20507 have_graphite2=false
20508 GRAPHITE2_DEPS="graphite2"
20509
20510 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
20511
20512 pkg_failed=no
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
20514 $as_echo_n "checking for GRAPHITE2... " >&6; }
20515
20516 if test -n "$PKG_CONFIG"; then
20517     if test -n "$GRAPHITE2_CFLAGS"; then
20518         pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
20519     else
20520         if test -n "$PKG_CONFIG" && \
20521     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20522   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20523   ac_status=$?
20524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20525   test $ac_status = 0; }; then
20526   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
20527 else
20528   pkg_failed=yes
20529 fi
20530     fi
20531 else
20532         pkg_failed=untried
20533 fi
20534 if test -n "$PKG_CONFIG"; then
20535     if test -n "$GRAPHITE2_LIBS"; then
20536         pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
20537     else
20538         if test -n "$PKG_CONFIG" && \
20539     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20540   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20541   ac_status=$?
20542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20543   test $ac_status = 0; }; then
20544   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
20545 else
20546   pkg_failed=yes
20547 fi
20548     fi
20549 else
20550         pkg_failed=untried
20551 fi
20552
20553
20554
20555 if test $pkg_failed = yes; then
20556
20557 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20558         _pkg_short_errors_supported=yes
20559 else
20560         _pkg_short_errors_supported=no
20561 fi
20562         if test $_pkg_short_errors_supported = yes; then
20563                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
20564         else
20565                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
20566         fi
20567         # Put the nasty error message in config.log where it belongs
20568         echo "$GRAPHITE2_PKG_ERRORS" >&5
20569
20570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20571 $as_echo "no" >&6; }
20572                 :
20573 elif test $pkg_failed = untried; then
20574         :
20575 else
20576         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
20577         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
20578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20579 $as_echo "yes" >&6; }
20580         have_graphite2=true
20581 fi
20582         if test "x$have_graphite2" != "xtrue"; then
20583                 # If pkg-config is not available, graphite2 can still be there
20584                 ac_save_CFLAGS="$CFLAGS"
20585                 ac_save_CPPFLAGS="$CPPFLAGS"
20586                 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
20587                 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
20588                 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
20589 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
20590   have_graphite2=true
20591 else
20592   :
20593 fi
20594
20595
20596                 CPPFLAGS="$ac_save_CPPFLAGS"
20597                 CFLAGS="$ac_save_CFLAGS"
20598         fi
20599 fi
20600 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
20601         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
20602 fi
20603 if $have_graphite2; then
20604
20605 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
20606
20607 fi
20608  if $have_graphite2; then
20609   HAVE_GRAPHITE2_TRUE=
20610   HAVE_GRAPHITE2_FALSE='#'
20611 else
20612   HAVE_GRAPHITE2_TRUE='#'
20613   HAVE_GRAPHITE2_FALSE=
20614 fi
20615
20616
20617
20618
20619 # Check whether --with-freetype was given.
20620 if test "${with_freetype+set}" = set; then :
20621   withval=$with_freetype;
20622 else
20623   with_freetype=auto
20624 fi
20625
20626 have_freetype=false
20627 FREETYPE_DEPS="freetype2 >= 12.0.6"
20628
20629 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
20630         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
20631
20632 pkg_failed=no
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20634 $as_echo_n "checking for FREETYPE... " >&6; }
20635
20636 if test -n "$PKG_CONFIG"; then
20637     if test -n "$FREETYPE_CFLAGS"; then
20638         pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20639     else
20640         if test -n "$PKG_CONFIG" && \
20641     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20642   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20643   ac_status=$?
20644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20645   test $ac_status = 0; }; then
20646   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
20647 else
20648   pkg_failed=yes
20649 fi
20650     fi
20651 else
20652         pkg_failed=untried
20653 fi
20654 if test -n "$PKG_CONFIG"; then
20655     if test -n "$FREETYPE_LIBS"; then
20656         pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
20657     else
20658         if test -n "$PKG_CONFIG" && \
20659     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20660   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20661   ac_status=$?
20662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20663   test $ac_status = 0; }; then
20664   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
20665 else
20666   pkg_failed=yes
20667 fi
20668     fi
20669 else
20670         pkg_failed=untried
20671 fi
20672
20673
20674
20675 if test $pkg_failed = yes; then
20676
20677 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20678         _pkg_short_errors_supported=yes
20679 else
20680         _pkg_short_errors_supported=no
20681 fi
20682         if test $_pkg_short_errors_supported = yes; then
20683                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
20684         else
20685                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
20686         fi
20687         # Put the nasty error message in config.log where it belongs
20688         echo "$FREETYPE_PKG_ERRORS" >&5
20689
20690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20691 $as_echo "no" >&6; }
20692                 :
20693 elif test $pkg_failed = untried; then
20694         :
20695 else
20696         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20697         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20699 $as_echo "yes" >&6; }
20700         have_freetype=true
20701 fi
20702 fi
20703 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
20704         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
20705 fi
20706 if $have_freetype; then
20707
20708 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
20709
20710         save_libs=$LIBS
20711         LIBS="$LIBS $FREETYPE_LIBS"
20712         for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
20713 do :
20714   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20715 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20716 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20717   cat >>confdefs.h <<_ACEOF
20718 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20719 _ACEOF
20720
20721 fi
20722 done
20723
20724         LIBS=$save_libs
20725 fi
20726  if $have_freetype; then
20727   HAVE_FREETYPE_TRUE=
20728   HAVE_FREETYPE_FALSE='#'
20729 else
20730   HAVE_FREETYPE_TRUE='#'
20731   HAVE_FREETYPE_FALSE=
20732 fi
20733
20734
20735
20736
20737 # Check whether --with-uniscribe was given.
20738 if test "${with_uniscribe+set}" = set; then :
20739   withval=$with_uniscribe;
20740 else
20741   with_uniscribe=no
20742 fi
20743
20744 have_uniscribe=false
20745 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
20746         for ac_header in usp10.h windows.h
20747 do :
20748   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20749 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20751   cat >>confdefs.h <<_ACEOF
20752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20753 _ACEOF
20754  have_uniscribe=true
20755 fi
20756
20757 done
20758
20759 fi
20760 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
20761         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
20762 fi
20763 if $have_uniscribe; then
20764         UNISCRIBE_CFLAGS=
20765         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
20766
20767
20768
20769 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
20770
20771 fi
20772  if $have_uniscribe; then
20773   HAVE_UNISCRIBE_TRUE=
20774   HAVE_UNISCRIBE_FALSE='#'
20775 else
20776   HAVE_UNISCRIBE_TRUE='#'
20777   HAVE_UNISCRIBE_FALSE=
20778 fi
20779
20780
20781
20782
20783 # Check whether --with-directwrite was given.
20784 if test "${with_directwrite+set}" = set; then :
20785   withval=$with_directwrite;
20786 else
20787   with_directwrite=no
20788 fi
20789
20790 have_directwrite=false
20791 ac_ext=cpp
20792 ac_cpp='$CXXCPP $CPPFLAGS'
20793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20796
20797 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
20798
20799 for ac_header in dwrite.h
20800 do :
20801   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
20802 if test "x$ac_cv_header_dwrite_h" = xyes; then :
20803   cat >>confdefs.h <<_ACEOF
20804 #define HAVE_DWRITE_H 1
20805 _ACEOF
20806  have_directwrite=true
20807 fi
20808
20809 done
20810
20811 fi
20812 ac_ext=c
20813 ac_cpp='$CPP $CPPFLAGS'
20814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20817
20818 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
20819         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
20820 fi
20821 if $have_directwrite; then
20822         DIRECTWRITE_CXXFLAGS=
20823         DIRECTWRITE_LIBS="-ldwrite"
20824
20825
20826
20827 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
20828
20829 fi
20830  if $have_directwrite; then
20831   HAVE_DIRECTWRITE_TRUE=
20832   HAVE_DIRECTWRITE_FALSE='#'
20833 else
20834   HAVE_DIRECTWRITE_TRUE='#'
20835   HAVE_DIRECTWRITE_FALSE=
20836 fi
20837
20838
20839
20840
20841 # Check whether --with-coretext was given.
20842 if test "${with_coretext+set}" = set; then :
20843   withval=$with_coretext;
20844 else
20845   with_coretext=no
20846 fi
20847
20848 have_coretext=false
20849 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
20850         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
20851 "
20852 if test "x$ac_cv_type_CTFontRef" = xyes; then :
20853   have_coretext=true
20854 fi
20855
20856
20857         if $have_coretext; then
20858                 CORETEXT_CFLAGS=
20859                 CORETEXT_LIBS="-framework ApplicationServices"
20860
20861
20862         else
20863                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
20864                 if test "x$have_coretext" != "xtrue"; then
20865                         # Check for a different symbol to avoid getting cached result.
20866                         ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
20867 "
20868 if test "x$ac_cv_type_CTRunRef" = xyes; then :
20869   have_coretext=true
20870 fi
20871
20872                 fi
20873
20874                 if $have_coretext; then
20875                         CORETEXT_CFLAGS=
20876                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
20877
20878
20879                 fi
20880         fi
20881 fi
20882 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
20883         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
20884 fi
20885 if $have_coretext; then
20886
20887 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
20888
20889 fi
20890  if $have_coretext; then
20891   HAVE_CORETEXT_TRUE=
20892   HAVE_CORETEXT_FALSE='#'
20893 else
20894   HAVE_CORETEXT_TRUE='#'
20895   HAVE_CORETEXT_FALSE=
20896 fi
20897
20898
20899
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
20901 $as_echo_n "checking for Intel atomic primitives... " >&6; }
20902 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
20903   $as_echo_n "(cached) " >&6
20904 else
20905
20906         hb_cv_have_intel_atomic_primitives=false
20907         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h.  */
20909
20910                 void memory_barrier (void) { __sync_synchronize (); }
20911                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
20912                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
20913                 void mutex_unlock (int *m) { __sync_lock_release (m); }
20914
20915 int
20916 main ()
20917 {
20918
20919   ;
20920   return 0;
20921 }
20922 _ACEOF
20923 if ac_fn_c_try_link "$LINENO"; then :
20924   hb_cv_have_intel_atomic_primitives=true
20925
20926 fi
20927 rm -f core conftest.err conftest.$ac_objext \
20928     conftest$ac_exeext conftest.$ac_ext
20929
20930 fi
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
20932 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
20933 if $hb_cv_have_intel_atomic_primitives; then
20934
20935 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
20936
20937 fi
20938
20939
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
20941 $as_echo_n "checking for Solaris atomic operations... " >&6; }
20942 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
20943   $as_echo_n "(cached) " >&6
20944 else
20945
20946         hb_cv_have_solaris_atomic_ops=false
20947         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20948 /* end confdefs.h.  */
20949
20950                 #include <atomic.h>
20951                 /* This requires Solaris Studio 12.2 or newer: */
20952                 #include <mbarrier.h>
20953                 void memory_barrier (void) { __machine_rw_barrier (); }
20954                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
20955                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
20956
20957 int
20958 main ()
20959 {
20960
20961   ;
20962   return 0;
20963 }
20964 _ACEOF
20965 if ac_fn_c_try_link "$LINENO"; then :
20966   hb_cv_have_solaris_atomic_ops=true
20967
20968 fi
20969 rm -f core conftest.err conftest.$ac_objext \
20970     conftest$ac_exeext conftest.$ac_ext
20971
20972 fi
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
20974 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
20975 if $hb_cv_have_solaris_atomic_ops; then
20976
20977 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
20978
20979 fi
20980
20981 if test "$os_win32" = no && ! $have_pthread; then
20982         for ac_header in sched.h
20983 do :
20984   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
20985 if test "x$ac_cv_header_sched_h" = xyes; then :
20986   cat >>confdefs.h <<_ACEOF
20987 #define HAVE_SCHED_H 1
20988 _ACEOF
20989
20990 fi
20991
20992 done
20993
20994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
20995 $as_echo_n "checking for library containing sched_yield... " >&6; }
20996 if ${ac_cv_search_sched_yield+:} false; then :
20997   $as_echo_n "(cached) " >&6
20998 else
20999   ac_func_search_save_LIBS=$LIBS
21000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21001 /* end confdefs.h.  */
21002
21003 /* Override any GCC internal prototype to avoid an error.
21004    Use char because int might match the return type of a GCC
21005    builtin and then its argument prototype would still apply.  */
21006 #ifdef __cplusplus
21007 extern "C"
21008 #endif
21009 char sched_yield ();
21010 int
21011 main ()
21012 {
21013 return sched_yield ();
21014   ;
21015   return 0;
21016 }
21017 _ACEOF
21018 for ac_lib in '' rt; do
21019   if test -z "$ac_lib"; then
21020     ac_res="none required"
21021   else
21022     ac_res=-l$ac_lib
21023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21024   fi
21025   if ac_fn_c_try_link "$LINENO"; then :
21026   ac_cv_search_sched_yield=$ac_res
21027 fi
21028 rm -f core conftest.err conftest.$ac_objext \
21029     conftest$ac_exeext
21030   if ${ac_cv_search_sched_yield+:} false; then :
21031   break
21032 fi
21033 done
21034 if ${ac_cv_search_sched_yield+:} false; then :
21035
21036 else
21037   ac_cv_search_sched_yield=no
21038 fi
21039 rm conftest.$ac_ext
21040 LIBS=$ac_func_search_save_LIBS
21041 fi
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21043 $as_echo "$ac_cv_search_sched_yield" >&6; }
21044 ac_res=$ac_cv_search_sched_yield
21045 if test "$ac_res" != no; then :
21046   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21047
21048 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21049
21050 fi
21051
21052 fi
21053
21054
21055 ac_config_files="$ac_config_files Makefile src/Makefile src/hb-version.h 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/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
21056
21057
21058 cat >confcache <<\_ACEOF
21059 # This file is a shell script that caches the results of configure
21060 # tests run on this system so they can be shared between configure
21061 # scripts and configure runs, see configure's option --config-cache.
21062 # It is not useful on other systems.  If it contains results you don't
21063 # want to keep, you may remove or edit it.
21064 #
21065 # config.status only pays attention to the cache file if you give it
21066 # the --recheck option to rerun configure.
21067 #
21068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21070 # following values.
21071
21072 _ACEOF
21073
21074 # The following way of writing the cache mishandles newlines in values,
21075 # but we know of no workaround that is simple, portable, and efficient.
21076 # So, we kill variables containing newlines.
21077 # Ultrix sh set writes to stderr and can't be redirected directly,
21078 # and sets the high bit in the cache file unless we assign to the vars.
21079 (
21080   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21081     eval ac_val=\$$ac_var
21082     case $ac_val in #(
21083     *${as_nl}*)
21084       case $ac_var in #(
21085       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21087       esac
21088       case $ac_var in #(
21089       _ | IFS | as_nl) ;; #(
21090       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21091       *) { eval $ac_var=; unset $ac_var;} ;;
21092       esac ;;
21093     esac
21094   done
21095
21096   (set) 2>&1 |
21097     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21098     *${as_nl}ac_space=\ *)
21099       # `set' does not quote correctly, so add quotes: double-quote
21100       # substitution turns \\\\ into \\, and sed turns \\ into \.
21101       sed -n \
21102         "s/'/'\\\\''/g;
21103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21104       ;; #(
21105     *)
21106       # `set' quotes correctly as required by POSIX, so do not add quotes.
21107       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21108       ;;
21109     esac |
21110     sort
21111 ) |
21112   sed '
21113      /^ac_cv_env_/b end
21114      t clear
21115      :clear
21116      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21117      t end
21118      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21119      :end' >>confcache
21120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21121   if test -w "$cache_file"; then
21122     if test "x$cache_file" != "x/dev/null"; then
21123       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21124 $as_echo "$as_me: updating cache $cache_file" >&6;}
21125       if test ! -f "$cache_file" || test -h "$cache_file"; then
21126         cat confcache >"$cache_file"
21127       else
21128         case $cache_file in #(
21129         */* | ?:*)
21130           mv -f confcache "$cache_file"$$ &&
21131           mv -f "$cache_file"$$ "$cache_file" ;; #(
21132         *)
21133           mv -f confcache "$cache_file" ;;
21134         esac
21135       fi
21136     fi
21137   else
21138     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21139 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21140   fi
21141 fi
21142 rm -f confcache
21143
21144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21145 # Let make expand exec_prefix.
21146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21147
21148 DEFS=-DHAVE_CONFIG_H
21149
21150 ac_libobjs=
21151 ac_ltlibobjs=
21152 U=
21153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21154   # 1. Remove the extension, and $U if already installed.
21155   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21156   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21157   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21158   #    will be set to the directory where LIBOBJS objects are built.
21159   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21160   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21161 done
21162 LIBOBJS=$ac_libobjs
21163
21164 LTLIBOBJS=$ac_ltlibobjs
21165
21166
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21168 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21169    if test -n "$am_sleep_pid"; then
21170      # Hide warnings about reused PIDs.
21171      wait $am_sleep_pid 2>/dev/null
21172    fi
21173    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21174 $as_echo "done" >&6; }
21175  if test -n "$EXEEXT"; then
21176   am__EXEEXT_TRUE=
21177   am__EXEEXT_FALSE='#'
21178 else
21179   am__EXEEXT_TRUE='#'
21180   am__EXEEXT_FALSE=
21181 fi
21182
21183 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21184   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21186 fi
21187 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21188   as_fn_error $? "conditional \"AMDEP\" was never defined.
21189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21190 fi
21191 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21192   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21194 fi
21195 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21196   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21198 fi
21199 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21200   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21202 fi
21203 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21204   as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21206 fi
21207 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21208   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21210 fi
21211 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21212   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21214 fi
21215 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21216   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21218 fi
21219 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21220   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21222 fi
21223 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21224   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21226 fi
21227 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21228   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21230 fi
21231 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21232   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21234 fi
21235 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21236   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21238 fi
21239 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21240   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21242 fi
21243 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
21244   as_fn_error $? "conditional \"HAVE_OT\" was never defined.
21245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21246 fi
21247 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
21248   as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
21249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21250 fi
21251 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21252   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21254 fi
21255 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21256   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
21257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21258 fi
21259 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21260   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21262 fi
21263 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21264   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21266 fi
21267 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
21268   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
21269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21270 fi
21271 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
21272   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
21273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21274 fi
21275 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
21276   as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
21277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21278 fi
21279 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
21280   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
21281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21282 fi
21283 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
21284   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
21285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21286 fi
21287 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
21288   as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
21289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21290 fi
21291 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
21292   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
21293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21294 fi
21295 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
21296   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
21297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21298 fi
21299 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
21300   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
21301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21302 fi
21303 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
21304   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
21305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21306 fi
21307 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
21308   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
21309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21310 fi
21311
21312 : "${CONFIG_STATUS=./config.status}"
21313 ac_write_fail=0
21314 ac_clean_files_save=$ac_clean_files
21315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21317 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21318 as_write_fail=0
21319 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21320 #! $SHELL
21321 # Generated by $as_me.
21322 # Run this file to recreate the current configuration.
21323 # Compiler output produced by configure, useful for debugging
21324 # configure, is in config.log if it exists.
21325
21326 debug=false
21327 ac_cs_recheck=false
21328 ac_cs_silent=false
21329
21330 SHELL=\${CONFIG_SHELL-$SHELL}
21331 export SHELL
21332 _ASEOF
21333 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21334 ## -------------------- ##
21335 ## M4sh Initialization. ##
21336 ## -------------------- ##
21337
21338 # Be more Bourne compatible
21339 DUALCASE=1; export DUALCASE # for MKS sh
21340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21341   emulate sh
21342   NULLCMD=:
21343   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21344   # is contrary to our usage.  Disable this feature.
21345   alias -g '${1+"$@"}'='"$@"'
21346   setopt NO_GLOB_SUBST
21347 else
21348   case `(set -o) 2>/dev/null` in #(
21349   *posix*) :
21350     set -o posix ;; #(
21351   *) :
21352      ;;
21353 esac
21354 fi
21355
21356
21357 as_nl='
21358 '
21359 export as_nl
21360 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21361 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21364 # Prefer a ksh shell builtin over an external printf program on Solaris,
21365 # but without wasting forks for bash or zsh.
21366 if test -z "$BASH_VERSION$ZSH_VERSION" \
21367     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21368   as_echo='print -r --'
21369   as_echo_n='print -rn --'
21370 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21371   as_echo='printf %s\n'
21372   as_echo_n='printf %s'
21373 else
21374   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21375     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21376     as_echo_n='/usr/ucb/echo -n'
21377   else
21378     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21379     as_echo_n_body='eval
21380       arg=$1;
21381       case $arg in #(
21382       *"$as_nl"*)
21383         expr "X$arg" : "X\\(.*\\)$as_nl";
21384         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21385       esac;
21386       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21387     '
21388     export as_echo_n_body
21389     as_echo_n='sh -c $as_echo_n_body as_echo'
21390   fi
21391   export as_echo_body
21392   as_echo='sh -c $as_echo_body as_echo'
21393 fi
21394
21395 # The user is always right.
21396 if test "${PATH_SEPARATOR+set}" != set; then
21397   PATH_SEPARATOR=:
21398   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21399     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21400       PATH_SEPARATOR=';'
21401   }
21402 fi
21403
21404
21405 # IFS
21406 # We need space, tab and new line, in precisely that order.  Quoting is
21407 # there to prevent editors from complaining about space-tab.
21408 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21409 # splitting by setting IFS to empty value.)
21410 IFS=" ""        $as_nl"
21411
21412 # Find who we are.  Look in the path if we contain no directory separator.
21413 as_myself=
21414 case $0 in #((
21415   *[\\/]* ) as_myself=$0 ;;
21416   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21417 for as_dir in $PATH
21418 do
21419   IFS=$as_save_IFS
21420   test -z "$as_dir" && as_dir=.
21421     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21422   done
21423 IFS=$as_save_IFS
21424
21425      ;;
21426 esac
21427 # We did not find ourselves, most probably we were run as `sh COMMAND'
21428 # in which case we are not to be found in the path.
21429 if test "x$as_myself" = x; then
21430   as_myself=$0
21431 fi
21432 if test ! -f "$as_myself"; then
21433   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21434   exit 1
21435 fi
21436
21437 # Unset variables that we do not need and which cause bugs (e.g. in
21438 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21439 # suppresses any "Segmentation fault" message there.  '((' could
21440 # trigger a bug in pdksh 5.2.14.
21441 for as_var in BASH_ENV ENV MAIL MAILPATH
21442 do eval test x\${$as_var+set} = xset \
21443   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21444 done
21445 PS1='$ '
21446 PS2='> '
21447 PS4='+ '
21448
21449 # NLS nuisances.
21450 LC_ALL=C
21451 export LC_ALL
21452 LANGUAGE=C
21453 export LANGUAGE
21454
21455 # CDPATH.
21456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21457
21458
21459 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21460 # ----------------------------------------
21461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21463 # script with STATUS, using 1 if that was 0.
21464 as_fn_error ()
21465 {
21466   as_status=$1; test $as_status -eq 0 && as_status=1
21467   if test "$4"; then
21468     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21469     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21470   fi
21471   $as_echo "$as_me: error: $2" >&2
21472   as_fn_exit $as_status
21473 } # as_fn_error
21474
21475
21476 # as_fn_set_status STATUS
21477 # -----------------------
21478 # Set $? to STATUS, without forking.
21479 as_fn_set_status ()
21480 {
21481   return $1
21482 } # as_fn_set_status
21483
21484 # as_fn_exit STATUS
21485 # -----------------
21486 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21487 as_fn_exit ()
21488 {
21489   set +e
21490   as_fn_set_status $1
21491   exit $1
21492 } # as_fn_exit
21493
21494 # as_fn_unset VAR
21495 # ---------------
21496 # Portably unset VAR.
21497 as_fn_unset ()
21498 {
21499   { eval $1=; unset $1;}
21500 }
21501 as_unset=as_fn_unset
21502 # as_fn_append VAR VALUE
21503 # ----------------------
21504 # Append the text in VALUE to the end of the definition contained in VAR. Take
21505 # advantage of any shell optimizations that allow amortized linear growth over
21506 # repeated appends, instead of the typical quadratic growth present in naive
21507 # implementations.
21508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21509   eval 'as_fn_append ()
21510   {
21511     eval $1+=\$2
21512   }'
21513 else
21514   as_fn_append ()
21515   {
21516     eval $1=\$$1\$2
21517   }
21518 fi # as_fn_append
21519
21520 # as_fn_arith ARG...
21521 # ------------------
21522 # Perform arithmetic evaluation on the ARGs, and store the result in the
21523 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21524 # must be portable across $(()) and expr.
21525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21526   eval 'as_fn_arith ()
21527   {
21528     as_val=$(( $* ))
21529   }'
21530 else
21531   as_fn_arith ()
21532   {
21533     as_val=`expr "$@" || test $? -eq 1`
21534   }
21535 fi # as_fn_arith
21536
21537
21538 if expr a : '\(a\)' >/dev/null 2>&1 &&
21539    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21540   as_expr=expr
21541 else
21542   as_expr=false
21543 fi
21544
21545 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21546   as_basename=basename
21547 else
21548   as_basename=false
21549 fi
21550
21551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21552   as_dirname=dirname
21553 else
21554   as_dirname=false
21555 fi
21556
21557 as_me=`$as_basename -- "$0" ||
21558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21559          X"$0" : 'X\(//\)$' \| \
21560          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21561 $as_echo X/"$0" |
21562     sed '/^.*\/\([^/][^/]*\)\/*$/{
21563             s//\1/
21564             q
21565           }
21566           /^X\/\(\/\/\)$/{
21567             s//\1/
21568             q
21569           }
21570           /^X\/\(\/\).*/{
21571             s//\1/
21572             q
21573           }
21574           s/.*/./; q'`
21575
21576 # Avoid depending upon Character Ranges.
21577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21580 as_cr_digits='0123456789'
21581 as_cr_alnum=$as_cr_Letters$as_cr_digits
21582
21583 ECHO_C= ECHO_N= ECHO_T=
21584 case `echo -n x` in #(((((
21585 -n*)
21586   case `echo 'xy\c'` in
21587   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21588   xy)  ECHO_C='\c';;
21589   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21590        ECHO_T=' ';;
21591   esac;;
21592 *)
21593   ECHO_N='-n';;
21594 esac
21595
21596 rm -f conf$$ conf$$.exe conf$$.file
21597 if test -d conf$$.dir; then
21598   rm -f conf$$.dir/conf$$.file
21599 else
21600   rm -f conf$$.dir
21601   mkdir conf$$.dir 2>/dev/null
21602 fi
21603 if (echo >conf$$.file) 2>/dev/null; then
21604   if ln -s conf$$.file conf$$ 2>/dev/null; then
21605     as_ln_s='ln -s'
21606     # ... but there are two gotchas:
21607     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21608     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21609     # In both cases, we have to default to `cp -pR'.
21610     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21611       as_ln_s='cp -pR'
21612   elif ln conf$$.file conf$$ 2>/dev/null; then
21613     as_ln_s=ln
21614   else
21615     as_ln_s='cp -pR'
21616   fi
21617 else
21618   as_ln_s='cp -pR'
21619 fi
21620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21621 rmdir conf$$.dir 2>/dev/null
21622
21623
21624 # as_fn_mkdir_p
21625 # -------------
21626 # Create "$as_dir" as a directory, including parents if necessary.
21627 as_fn_mkdir_p ()
21628 {
21629
21630   case $as_dir in #(
21631   -*) as_dir=./$as_dir;;
21632   esac
21633   test -d "$as_dir" || eval $as_mkdir_p || {
21634     as_dirs=
21635     while :; do
21636       case $as_dir in #(
21637       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21638       *) as_qdir=$as_dir;;
21639       esac
21640       as_dirs="'$as_qdir' $as_dirs"
21641       as_dir=`$as_dirname -- "$as_dir" ||
21642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21643          X"$as_dir" : 'X\(//\)[^/]' \| \
21644          X"$as_dir" : 'X\(//\)$' \| \
21645          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21646 $as_echo X"$as_dir" |
21647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21648             s//\1/
21649             q
21650           }
21651           /^X\(\/\/\)[^/].*/{
21652             s//\1/
21653             q
21654           }
21655           /^X\(\/\/\)$/{
21656             s//\1/
21657             q
21658           }
21659           /^X\(\/\).*/{
21660             s//\1/
21661             q
21662           }
21663           s/.*/./; q'`
21664       test -d "$as_dir" && break
21665     done
21666     test -z "$as_dirs" || eval "mkdir $as_dirs"
21667   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21668
21669
21670 } # as_fn_mkdir_p
21671 if mkdir -p . 2>/dev/null; then
21672   as_mkdir_p='mkdir -p "$as_dir"'
21673 else
21674   test -d ./-p && rmdir ./-p
21675   as_mkdir_p=false
21676 fi
21677
21678
21679 # as_fn_executable_p FILE
21680 # -----------------------
21681 # Test if FILE is an executable regular file.
21682 as_fn_executable_p ()
21683 {
21684   test -f "$1" && test -x "$1"
21685 } # as_fn_executable_p
21686 as_test_x='test -x'
21687 as_executable_p=as_fn_executable_p
21688
21689 # Sed expression to map a string onto a valid CPP name.
21690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21691
21692 # Sed expression to map a string onto a valid variable name.
21693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21694
21695
21696 exec 6>&1
21697 ## ----------------------------------- ##
21698 ## Main body of $CONFIG_STATUS script. ##
21699 ## ----------------------------------- ##
21700 _ASEOF
21701 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21702
21703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21704 # Save the log message, to keep $0 and so on meaningful, and to
21705 # report actual input values of CONFIG_FILES etc. instead of their
21706 # values after options handling.
21707 ac_log="
21708 This file was extended by HarfBuzz $as_me 1.7.6, which was
21709 generated by GNU Autoconf 2.69.  Invocation command line was
21710
21711   CONFIG_FILES    = $CONFIG_FILES
21712   CONFIG_HEADERS  = $CONFIG_HEADERS
21713   CONFIG_LINKS    = $CONFIG_LINKS
21714   CONFIG_COMMANDS = $CONFIG_COMMANDS
21715   $ $0 $@
21716
21717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21718 "
21719
21720 _ACEOF
21721
21722 case $ac_config_files in *"
21723 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21724 esac
21725
21726 case $ac_config_headers in *"
21727 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21728 esac
21729
21730
21731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21732 # Files that config.status was made for.
21733 config_files="$ac_config_files"
21734 config_headers="$ac_config_headers"
21735 config_commands="$ac_config_commands"
21736
21737 _ACEOF
21738
21739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21740 ac_cs_usage="\
21741 \`$as_me' instantiates files and other configuration actions
21742 from templates according to the current configuration.  Unless the files
21743 and actions are specified as TAGs, all are instantiated by default.
21744
21745 Usage: $0 [OPTION]... [TAG]...
21746
21747   -h, --help       print this help, then exit
21748   -V, --version    print version number and configuration settings, then exit
21749       --config     print configuration, then exit
21750   -q, --quiet, --silent
21751                    do not print progress messages
21752   -d, --debug      don't remove temporary files
21753       --recheck    update $as_me by reconfiguring in the same conditions
21754       --file=FILE[:TEMPLATE]
21755                    instantiate the configuration file FILE
21756       --header=FILE[:TEMPLATE]
21757                    instantiate the configuration header FILE
21758
21759 Configuration files:
21760 $config_files
21761
21762 Configuration headers:
21763 $config_headers
21764
21765 Configuration commands:
21766 $config_commands
21767
21768 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
21769 HarfBuzz home page: <http://harfbuzz.org/>."
21770
21771 _ACEOF
21772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21773 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21774 ac_cs_version="\\
21775 HarfBuzz config.status 1.7.6
21776 configured by $0, generated by GNU Autoconf 2.69,
21777   with options \\"\$ac_cs_config\\"
21778
21779 Copyright (C) 2012 Free Software Foundation, Inc.
21780 This config.status script is free software; the Free Software Foundation
21781 gives unlimited permission to copy, distribute and modify it."
21782
21783 ac_pwd='$ac_pwd'
21784 srcdir='$srcdir'
21785 INSTALL='$INSTALL'
21786 MKDIR_P='$MKDIR_P'
21787 AWK='$AWK'
21788 test -n "\$AWK" || AWK=awk
21789 _ACEOF
21790
21791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21792 # The default lists apply if the user does not specify any file.
21793 ac_need_defaults=:
21794 while test $# != 0
21795 do
21796   case $1 in
21797   --*=?*)
21798     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21799     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21800     ac_shift=:
21801     ;;
21802   --*=)
21803     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21804     ac_optarg=
21805     ac_shift=:
21806     ;;
21807   *)
21808     ac_option=$1
21809     ac_optarg=$2
21810     ac_shift=shift
21811     ;;
21812   esac
21813
21814   case $ac_option in
21815   # Handling of the options.
21816   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21817     ac_cs_recheck=: ;;
21818   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21819     $as_echo "$ac_cs_version"; exit ;;
21820   --config | --confi | --conf | --con | --co | --c )
21821     $as_echo "$ac_cs_config"; exit ;;
21822   --debug | --debu | --deb | --de | --d | -d )
21823     debug=: ;;
21824   --file | --fil | --fi | --f )
21825     $ac_shift
21826     case $ac_optarg in
21827     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21828     '') as_fn_error $? "missing file argument" ;;
21829     esac
21830     as_fn_append CONFIG_FILES " '$ac_optarg'"
21831     ac_need_defaults=false;;
21832   --header | --heade | --head | --hea )
21833     $ac_shift
21834     case $ac_optarg in
21835     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21836     esac
21837     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21838     ac_need_defaults=false;;
21839   --he | --h)
21840     # Conflict between --help and --header
21841     as_fn_error $? "ambiguous option: \`$1'
21842 Try \`$0 --help' for more information.";;
21843   --help | --hel | -h )
21844     $as_echo "$ac_cs_usage"; exit ;;
21845   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21846   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21847     ac_cs_silent=: ;;
21848
21849   # This is an error.
21850   -*) as_fn_error $? "unrecognized option: \`$1'
21851 Try \`$0 --help' for more information." ;;
21852
21853   *) as_fn_append ac_config_targets " $1"
21854      ac_need_defaults=false ;;
21855
21856   esac
21857   shift
21858 done
21859
21860 ac_configure_extra_args=
21861
21862 if $ac_cs_silent; then
21863   exec 6>/dev/null
21864   ac_configure_extra_args="$ac_configure_extra_args --silent"
21865 fi
21866
21867 _ACEOF
21868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21869 if \$ac_cs_recheck; then
21870   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21871   shift
21872   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21873   CONFIG_SHELL='$SHELL'
21874   export CONFIG_SHELL
21875   exec "\$@"
21876 fi
21877
21878 _ACEOF
21879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21880 exec 5>>config.log
21881 {
21882   echo
21883   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21884 ## Running $as_me. ##
21885 _ASBOX
21886   $as_echo "$ac_log"
21887 } >&5
21888
21889 _ACEOF
21890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21891 #
21892 # INIT-COMMANDS
21893 #
21894 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21895
21896
21897 # The HP-UX ksh and POSIX shell print the target directory to stdout
21898 # if CDPATH is set.
21899 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21900
21901 sed_quote_subst='$sed_quote_subst'
21902 double_quote_subst='$double_quote_subst'
21903 delay_variable_subst='$delay_variable_subst'
21904 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21905 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21906 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21907 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21908 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21909 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21910 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21911 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21912 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21913 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21914 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21915 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21916 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21917 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21918 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21919 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21920 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21921 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21922 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21923 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21924 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21925 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21926 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21927 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21928 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21929 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21930 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21931 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21932 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21933 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21934 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21935 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21936 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21937 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21938 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21939 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21940 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21941 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21942 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21943 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21944 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21945 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21946 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21947 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21948 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21949 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21950 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21951 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21952 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21953 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21954 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21955 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21956 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21957 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21958 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21959 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21960 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21961 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21962 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"`'
21963 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21964 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21965 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21966 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21967 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21968 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21969 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21970 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21971 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21972 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21973 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21974 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21975 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21976 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21977 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21978 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21979 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21980 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21981 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21982 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21983 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21984 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21985 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21986 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21987 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21988 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21989 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21990 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21991 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21992 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21993 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21994 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21995 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21996 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21997 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21998 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21999 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22000 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22001 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22002 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22003 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22004 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22005 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22006 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22007 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22008 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22009 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22010 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22011 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22012 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22013 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22014 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22015 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22016 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22017 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22018 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22019 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22020 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22021 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22022 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22023 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22024 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22025 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22026 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22027 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22028 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22029 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22030 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22031 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22032 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22033 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22034 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22035 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22036 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22037 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22038 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22039 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22040 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22041 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22042 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22043 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22044 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22045 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22046 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22047 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22048 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22049 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22050 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22051 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22052 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22053 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22054 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22055 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22056 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22057 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22058 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22059 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22060 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22061 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22062 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22063 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22064 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22065 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22066 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22067 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22068 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22069 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22070 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22071 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22072 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22073 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22074 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22075 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22076 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22077 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22078 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22079 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22080 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22081 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22082 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22083 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22084 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22085 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22086 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22087 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22088 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22089 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22090 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22091 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22092 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22093
22094 LTCC='$LTCC'
22095 LTCFLAGS='$LTCFLAGS'
22096 compiler='$compiler_DEFAULT'
22097
22098 # A function that is used when there is no print builtin or printf.
22099 func_fallback_echo ()
22100 {
22101   eval 'cat <<_LTECHO_EOF
22102 \$1
22103 _LTECHO_EOF'
22104 }
22105
22106 # Quote evaled strings.
22107 for var in SHELL \
22108 ECHO \
22109 PATH_SEPARATOR \
22110 SED \
22111 GREP \
22112 EGREP \
22113 FGREP \
22114 LD \
22115 NM \
22116 LN_S \
22117 lt_SP2NL \
22118 lt_NL2SP \
22119 reload_flag \
22120 OBJDUMP \
22121 deplibs_check_method \
22122 file_magic_cmd \
22123 file_magic_glob \
22124 want_nocaseglob \
22125 DLLTOOL \
22126 sharedlib_from_linklib_cmd \
22127 AR \
22128 AR_FLAGS \
22129 archiver_list_spec \
22130 STRIP \
22131 RANLIB \
22132 CC \
22133 CFLAGS \
22134 compiler \
22135 lt_cv_sys_global_symbol_pipe \
22136 lt_cv_sys_global_symbol_to_cdecl \
22137 lt_cv_sys_global_symbol_to_import \
22138 lt_cv_sys_global_symbol_to_c_name_address \
22139 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22140 lt_cv_nm_interface \
22141 nm_file_list_spec \
22142 lt_cv_truncate_bin \
22143 lt_prog_compiler_no_builtin_flag \
22144 lt_prog_compiler_pic \
22145 lt_prog_compiler_wl \
22146 lt_prog_compiler_static \
22147 lt_cv_prog_compiler_c_o \
22148 need_locks \
22149 MANIFEST_TOOL \
22150 DSYMUTIL \
22151 NMEDIT \
22152 LIPO \
22153 OTOOL \
22154 OTOOL64 \
22155 shrext_cmds \
22156 export_dynamic_flag_spec \
22157 whole_archive_flag_spec \
22158 compiler_needs_object \
22159 with_gnu_ld \
22160 allow_undefined_flag \
22161 no_undefined_flag \
22162 hardcode_libdir_flag_spec \
22163 hardcode_libdir_separator \
22164 exclude_expsyms \
22165 include_expsyms \
22166 file_list_spec \
22167 variables_saved_for_relink \
22168 libname_spec \
22169 library_names_spec \
22170 soname_spec \
22171 install_override_mode \
22172 finish_eval \
22173 old_striplib \
22174 striplib \
22175 compiler_lib_search_dirs \
22176 predep_objects \
22177 postdep_objects \
22178 predeps \
22179 postdeps \
22180 compiler_lib_search_path \
22181 LD_CXX \
22182 reload_flag_CXX \
22183 compiler_CXX \
22184 lt_prog_compiler_no_builtin_flag_CXX \
22185 lt_prog_compiler_pic_CXX \
22186 lt_prog_compiler_wl_CXX \
22187 lt_prog_compiler_static_CXX \
22188 lt_cv_prog_compiler_c_o_CXX \
22189 export_dynamic_flag_spec_CXX \
22190 whole_archive_flag_spec_CXX \
22191 compiler_needs_object_CXX \
22192 with_gnu_ld_CXX \
22193 allow_undefined_flag_CXX \
22194 no_undefined_flag_CXX \
22195 hardcode_libdir_flag_spec_CXX \
22196 hardcode_libdir_separator_CXX \
22197 exclude_expsyms_CXX \
22198 include_expsyms_CXX \
22199 file_list_spec_CXX \
22200 compiler_lib_search_dirs_CXX \
22201 predep_objects_CXX \
22202 postdep_objects_CXX \
22203 predeps_CXX \
22204 postdeps_CXX \
22205 compiler_lib_search_path_CXX; do
22206     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22207     *[\\\\\\\`\\"\\\$]*)
22208       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22209       ;;
22210     *)
22211       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22212       ;;
22213     esac
22214 done
22215
22216 # Double-quote double-evaled strings.
22217 for var in reload_cmds \
22218 old_postinstall_cmds \
22219 old_postuninstall_cmds \
22220 old_archive_cmds \
22221 extract_expsyms_cmds \
22222 old_archive_from_new_cmds \
22223 old_archive_from_expsyms_cmds \
22224 archive_cmds \
22225 archive_expsym_cmds \
22226 module_cmds \
22227 module_expsym_cmds \
22228 export_symbols_cmds \
22229 prelink_cmds \
22230 postlink_cmds \
22231 postinstall_cmds \
22232 postuninstall_cmds \
22233 finish_cmds \
22234 sys_lib_search_path_spec \
22235 configure_time_dlsearch_path \
22236 configure_time_lt_sys_library_path \
22237 reload_cmds_CXX \
22238 old_archive_cmds_CXX \
22239 old_archive_from_new_cmds_CXX \
22240 old_archive_from_expsyms_cmds_CXX \
22241 archive_cmds_CXX \
22242 archive_expsym_cmds_CXX \
22243 module_cmds_CXX \
22244 module_expsym_cmds_CXX \
22245 export_symbols_cmds_CXX \
22246 prelink_cmds_CXX \
22247 postlink_cmds_CXX; do
22248     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22249     *[\\\\\\\`\\"\\\$]*)
22250       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22251       ;;
22252     *)
22253       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22254       ;;
22255     esac
22256 done
22257
22258 ac_aux_dir='$ac_aux_dir'
22259
22260 # See if we are running on zsh, and set the options that allow our
22261 # commands through without removal of \ escapes INIT.
22262 if test -n "\${ZSH_VERSION+set}"; then
22263    setopt NO_GLOB_SUBST
22264 fi
22265
22266
22267     PACKAGE='$PACKAGE'
22268     VERSION='$VERSION'
22269     RM='$RM'
22270     ofile='$ofile'
22271
22272
22273
22274
22275
22276
22277 _ACEOF
22278
22279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22280
22281 # Handling of arguments.
22282 for ac_config_target in $ac_config_targets
22283 do
22284   case $ac_config_target in
22285     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22286     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22287     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22288     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22289     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22290     "src/hb-version.h") CONFIG_FILES="$CONFIG_FILES src/hb-version.h" ;;
22291     "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
22292     "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
22293     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22294     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22295     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
22296     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
22297     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
22298     "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
22299     "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
22300     "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
22301     "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
22302     "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
22303     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22304     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
22305
22306   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22307   esac
22308 done
22309
22310
22311 # If the user did not use the arguments to specify the items to instantiate,
22312 # then the envvar interface is used.  Set only those that are not.
22313 # We use the long form for the default assignment because of an extremely
22314 # bizarre bug on SunOS 4.1.3.
22315 if $ac_need_defaults; then
22316   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22317   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22318   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22319 fi
22320
22321 # Have a temporary directory for convenience.  Make it in the build tree
22322 # simply because there is no reason against having it here, and in addition,
22323 # creating and moving files from /tmp can sometimes cause problems.
22324 # Hook for its removal unless debugging.
22325 # Note that there is a small window in which the directory will not be cleaned:
22326 # after its creation but before its name has been assigned to `$tmp'.
22327 $debug ||
22328 {
22329   tmp= ac_tmp=
22330   trap 'exit_status=$?
22331   : "${ac_tmp:=$tmp}"
22332   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22333 ' 0
22334   trap 'as_fn_exit 1' 1 2 13 15
22335 }
22336 # Create a (secure) tmp directory for tmp files.
22337
22338 {
22339   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22340   test -d "$tmp"
22341 }  ||
22342 {
22343   tmp=./conf$$-$RANDOM
22344   (umask 077 && mkdir "$tmp")
22345 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22346 ac_tmp=$tmp
22347
22348 # Set up the scripts for CONFIG_FILES section.
22349 # No need to generate them if there are no CONFIG_FILES.
22350 # This happens for instance with `./config.status config.h'.
22351 if test -n "$CONFIG_FILES"; then
22352
22353
22354 ac_cr=`echo X | tr X '\015'`
22355 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22356 # But we know of no other shell where ac_cr would be empty at this
22357 # point, so we can use a bashism as a fallback.
22358 if test "x$ac_cr" = x; then
22359   eval ac_cr=\$\'\\r\'
22360 fi
22361 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22362 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22363   ac_cs_awk_cr='\\r'
22364 else
22365   ac_cs_awk_cr=$ac_cr
22366 fi
22367
22368 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22369 _ACEOF
22370
22371
22372 {
22373   echo "cat >conf$$subs.awk <<_ACEOF" &&
22374   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22375   echo "_ACEOF"
22376 } >conf$$subs.sh ||
22377   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22378 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22379 ac_delim='%!_!# '
22380 for ac_last_try in false false false false false :; do
22381   . ./conf$$subs.sh ||
22382     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22383
22384   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22385   if test $ac_delim_n = $ac_delim_num; then
22386     break
22387   elif $ac_last_try; then
22388     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22389   else
22390     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22391   fi
22392 done
22393 rm -f conf$$subs.sh
22394
22395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22396 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22397 _ACEOF
22398 sed -n '
22399 h
22400 s/^/S["/; s/!.*/"]=/
22401 p
22402 g
22403 s/^[^!]*!//
22404 :repl
22405 t repl
22406 s/'"$ac_delim"'$//
22407 t delim
22408 :nl
22409 h
22410 s/\(.\{148\}\)..*/\1/
22411 t more1
22412 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22413 p
22414 n
22415 b repl
22416 :more1
22417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22418 p
22419 g
22420 s/.\{148\}//
22421 t nl
22422 :delim
22423 h
22424 s/\(.\{148\}\)..*/\1/
22425 t more2
22426 s/["\\]/\\&/g; s/^/"/; s/$/"/
22427 p
22428 b
22429 :more2
22430 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22431 p
22432 g
22433 s/.\{148\}//
22434 t delim
22435 ' <conf$$subs.awk | sed '
22436 /^[^""]/{
22437   N
22438   s/\n//
22439 }
22440 ' >>$CONFIG_STATUS || ac_write_fail=1
22441 rm -f conf$$subs.awk
22442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22443 _ACAWK
22444 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22445   for (key in S) S_is_set[key] = 1
22446   FS = "\a"
22447
22448 }
22449 {
22450   line = $ 0
22451   nfields = split(line, field, "@")
22452   substed = 0
22453   len = length(field[1])
22454   for (i = 2; i < nfields; i++) {
22455     key = field[i]
22456     keylen = length(key)
22457     if (S_is_set[key]) {
22458       value = S[key]
22459       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22460       len += length(value) + length(field[++i])
22461       substed = 1
22462     } else
22463       len += 1 + keylen
22464   }
22465
22466   print line
22467 }
22468
22469 _ACAWK
22470 _ACEOF
22471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22472 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22473   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22474 else
22475   cat
22476 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22477   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22478 _ACEOF
22479
22480 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22481 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22482 # trailing colons and then remove the whole line if VPATH becomes empty
22483 # (actually we leave an empty line to preserve line numbers).
22484 if test "x$srcdir" = x.; then
22485   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22486 h
22487 s///
22488 s/^/:/
22489 s/[      ]*$/:/
22490 s/:\$(srcdir):/:/g
22491 s/:\${srcdir}:/:/g
22492 s/:@srcdir@:/:/g
22493 s/^:*//
22494 s/:*$//
22495 x
22496 s/\(=[   ]*\).*/\1/
22497 G
22498 s/\n//
22499 s/^[^=]*=[       ]*$//
22500 }'
22501 fi
22502
22503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22504 fi # test -n "$CONFIG_FILES"
22505
22506 # Set up the scripts for CONFIG_HEADERS section.
22507 # No need to generate them if there are no CONFIG_HEADERS.
22508 # This happens for instance with `./config.status Makefile'.
22509 if test -n "$CONFIG_HEADERS"; then
22510 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22511 BEGIN {
22512 _ACEOF
22513
22514 # Transform confdefs.h into an awk script `defines.awk', embedded as
22515 # here-document in config.status, that substitutes the proper values into
22516 # config.h.in to produce config.h.
22517
22518 # Create a delimiter string that does not exist in confdefs.h, to ease
22519 # handling of long lines.
22520 ac_delim='%!_!# '
22521 for ac_last_try in false false :; do
22522   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22523   if test -z "$ac_tt"; then
22524     break
22525   elif $ac_last_try; then
22526     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22527   else
22528     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22529   fi
22530 done
22531
22532 # For the awk script, D is an array of macro values keyed by name,
22533 # likewise P contains macro parameters if any.  Preserve backslash
22534 # newline sequences.
22535
22536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22537 sed -n '
22538 s/.\{148\}/&'"$ac_delim"'/g
22539 t rset
22540 :rset
22541 s/^[     ]*#[    ]*define[       ][      ]*/ /
22542 t def
22543 d
22544 :def
22545 s/\\$//
22546 t bsnl
22547 s/["\\]/\\&/g
22548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22549 D["\1"]=" \3"/p
22550 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22551 d
22552 :bsnl
22553 s/["\\]/\\&/g
22554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22555 D["\1"]=" \3\\\\\\n"\\/p
22556 t cont
22557 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22558 t cont
22559 d
22560 :cont
22561 n
22562 s/.\{148\}/&'"$ac_delim"'/g
22563 t clear
22564 :clear
22565 s/\\$//
22566 t bsnlc
22567 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22568 d
22569 :bsnlc
22570 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22571 b cont
22572 ' <confdefs.h | sed '
22573 s/'"$ac_delim"'/"\\\
22574 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22575
22576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22577   for (key in D) D_is_set[key] = 1
22578   FS = "\a"
22579 }
22580 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22581   line = \$ 0
22582   split(line, arg, " ")
22583   if (arg[1] == "#") {
22584     defundef = arg[2]
22585     mac1 = arg[3]
22586   } else {
22587     defundef = substr(arg[1], 2)
22588     mac1 = arg[2]
22589   }
22590   split(mac1, mac2, "(") #)
22591   macro = mac2[1]
22592   prefix = substr(line, 1, index(line, defundef) - 1)
22593   if (D_is_set[macro]) {
22594     # Preserve the white space surrounding the "#".
22595     print prefix "define", macro P[macro] D[macro]
22596     next
22597   } else {
22598     # Replace #undef with comments.  This is necessary, for example,
22599     # in the case of _POSIX_SOURCE, which is predefined and required
22600     # on some systems where configure will not decide to define it.
22601     if (defundef == "undef") {
22602       print "/*", prefix defundef, macro, "*/"
22603       next
22604     }
22605   }
22606 }
22607 { print }
22608 _ACAWK
22609 _ACEOF
22610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22611   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22612 fi # test -n "$CONFIG_HEADERS"
22613
22614
22615 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22616 shift
22617 for ac_tag
22618 do
22619   case $ac_tag in
22620   :[FHLC]) ac_mode=$ac_tag; continue;;
22621   esac
22622   case $ac_mode$ac_tag in
22623   :[FHL]*:*);;
22624   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22625   :[FH]-) ac_tag=-:-;;
22626   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22627   esac
22628   ac_save_IFS=$IFS
22629   IFS=:
22630   set x $ac_tag
22631   IFS=$ac_save_IFS
22632   shift
22633   ac_file=$1
22634   shift
22635
22636   case $ac_mode in
22637   :L) ac_source=$1;;
22638   :[FH])
22639     ac_file_inputs=
22640     for ac_f
22641     do
22642       case $ac_f in
22643       -) ac_f="$ac_tmp/stdin";;
22644       *) # Look for the file first in the build tree, then in the source tree
22645          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22646          # because $ac_f cannot contain `:'.
22647          test -f "$ac_f" ||
22648            case $ac_f in
22649            [\\/$]*) false;;
22650            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22651            esac ||
22652            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22653       esac
22654       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22655       as_fn_append ac_file_inputs " '$ac_f'"
22656     done
22657
22658     # Let's still pretend it is `configure' which instantiates (i.e., don't
22659     # use $as_me), people would be surprised to read:
22660     #    /* config.h.  Generated by config.status.  */
22661     configure_input='Generated from '`
22662           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22663         `' by configure.'
22664     if test x"$ac_file" != x-; then
22665       configure_input="$ac_file.  $configure_input"
22666       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22667 $as_echo "$as_me: creating $ac_file" >&6;}
22668     fi
22669     # Neutralize special characters interpreted by sed in replacement strings.
22670     case $configure_input in #(
22671     *\&* | *\|* | *\\* )
22672        ac_sed_conf_input=`$as_echo "$configure_input" |
22673        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22674     *) ac_sed_conf_input=$configure_input;;
22675     esac
22676
22677     case $ac_tag in
22678     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22679       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22680     esac
22681     ;;
22682   esac
22683
22684   ac_dir=`$as_dirname -- "$ac_file" ||
22685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22686          X"$ac_file" : 'X\(//\)[^/]' \| \
22687          X"$ac_file" : 'X\(//\)$' \| \
22688          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22689 $as_echo X"$ac_file" |
22690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22691             s//\1/
22692             q
22693           }
22694           /^X\(\/\/\)[^/].*/{
22695             s//\1/
22696             q
22697           }
22698           /^X\(\/\/\)$/{
22699             s//\1/
22700             q
22701           }
22702           /^X\(\/\).*/{
22703             s//\1/
22704             q
22705           }
22706           s/.*/./; q'`
22707   as_dir="$ac_dir"; as_fn_mkdir_p
22708   ac_builddir=.
22709
22710 case "$ac_dir" in
22711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22712 *)
22713   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22714   # A ".." for each directory in $ac_dir_suffix.
22715   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22716   case $ac_top_builddir_sub in
22717   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22718   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22719   esac ;;
22720 esac
22721 ac_abs_top_builddir=$ac_pwd
22722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22723 # for backward compatibility:
22724 ac_top_builddir=$ac_top_build_prefix
22725
22726 case $srcdir in
22727   .)  # We are building in place.
22728     ac_srcdir=.
22729     ac_top_srcdir=$ac_top_builddir_sub
22730     ac_abs_top_srcdir=$ac_pwd ;;
22731   [\\/]* | ?:[\\/]* )  # Absolute name.
22732     ac_srcdir=$srcdir$ac_dir_suffix;
22733     ac_top_srcdir=$srcdir
22734     ac_abs_top_srcdir=$srcdir ;;
22735   *) # Relative name.
22736     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22737     ac_top_srcdir=$ac_top_build_prefix$srcdir
22738     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22739 esac
22740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22741
22742
22743   case $ac_mode in
22744   :F)
22745   #
22746   # CONFIG_FILE
22747   #
22748
22749   case $INSTALL in
22750   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22751   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22752   esac
22753   ac_MKDIR_P=$MKDIR_P
22754   case $MKDIR_P in
22755   [\\/$]* | ?:[\\/]* ) ;;
22756   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22757   esac
22758 _ACEOF
22759
22760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22761 # If the template does not know about datarootdir, expand it.
22762 # FIXME: This hack should be removed a few years after 2.60.
22763 ac_datarootdir_hack=; ac_datarootdir_seen=
22764 ac_sed_dataroot='
22765 /datarootdir/ {
22766   p
22767   q
22768 }
22769 /@datadir@/p
22770 /@docdir@/p
22771 /@infodir@/p
22772 /@localedir@/p
22773 /@mandir@/p'
22774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22775 *datarootdir*) ac_datarootdir_seen=yes;;
22776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22777   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22778 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22779 _ACEOF
22780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22781   ac_datarootdir_hack='
22782   s&@datadir@&$datadir&g
22783   s&@docdir@&$docdir&g
22784   s&@infodir@&$infodir&g
22785   s&@localedir@&$localedir&g
22786   s&@mandir@&$mandir&g
22787   s&\\\${datarootdir}&$datarootdir&g' ;;
22788 esac
22789 _ACEOF
22790
22791 # Neutralize VPATH when `$srcdir' = `.'.
22792 # Shell code in configure.ac might set extrasub.
22793 # FIXME: do we really want to maintain this feature?
22794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22795 ac_sed_extra="$ac_vpsub
22796 $extrasub
22797 _ACEOF
22798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22799 :t
22800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22801 s|@configure_input@|$ac_sed_conf_input|;t t
22802 s&@top_builddir@&$ac_top_builddir_sub&;t t
22803 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22804 s&@srcdir@&$ac_srcdir&;t t
22805 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22806 s&@top_srcdir@&$ac_top_srcdir&;t t
22807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22808 s&@builddir@&$ac_builddir&;t t
22809 s&@abs_builddir@&$ac_abs_builddir&;t t
22810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22811 s&@INSTALL@&$ac_INSTALL&;t t
22812 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22813 $ac_datarootdir_hack
22814 "
22815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22816   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22817
22818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22819   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22820   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22821       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22822   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22823 which seems to be undefined.  Please make sure it is defined" >&5
22824 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22825 which seems to be undefined.  Please make sure it is defined" >&2;}
22826
22827   rm -f "$ac_tmp/stdin"
22828   case $ac_file in
22829   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22830   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22831   esac \
22832   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22833  ;;
22834   :H)
22835   #
22836   # CONFIG_HEADER
22837   #
22838   if test x"$ac_file" != x-; then
22839     {
22840       $as_echo "/* $configure_input  */" \
22841       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22842     } >"$ac_tmp/config.h" \
22843       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22844     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22845       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22846 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22847     else
22848       rm -f "$ac_file"
22849       mv "$ac_tmp/config.h" "$ac_file" \
22850         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22851     fi
22852   else
22853     $as_echo "/* $configure_input  */" \
22854       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22855       || as_fn_error $? "could not create -" "$LINENO" 5
22856   fi
22857 # Compute "$ac_file"'s index in $config_headers.
22858 _am_arg="$ac_file"
22859 _am_stamp_count=1
22860 for _am_header in $config_headers :; do
22861   case $_am_header in
22862     $_am_arg | $_am_arg:* )
22863       break ;;
22864     * )
22865       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22866   esac
22867 done
22868 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22869 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22870          X"$_am_arg" : 'X\(//\)[^/]' \| \
22871          X"$_am_arg" : 'X\(//\)$' \| \
22872          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22873 $as_echo X"$_am_arg" |
22874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22875             s//\1/
22876             q
22877           }
22878           /^X\(\/\/\)[^/].*/{
22879             s//\1/
22880             q
22881           }
22882           /^X\(\/\/\)$/{
22883             s//\1/
22884             q
22885           }
22886           /^X\(\/\).*/{
22887             s//\1/
22888             q
22889           }
22890           s/.*/./; q'`/stamp-h$_am_stamp_count
22891  ;;
22892
22893   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22894 $as_echo "$as_me: executing $ac_file commands" >&6;}
22895  ;;
22896   esac
22897
22898
22899   case $ac_file$ac_mode in
22900     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22901   # Older Autoconf quotes --file arguments for eval, but not when files
22902   # are listed without --file.  Let's play safe and only enable the eval
22903   # if we detect the quoting.
22904   case $CONFIG_FILES in
22905   *\'*) eval set x "$CONFIG_FILES" ;;
22906   *)   set x $CONFIG_FILES ;;
22907   esac
22908   shift
22909   for mf
22910   do
22911     # Strip MF so we end up with the name of the file.
22912     mf=`echo "$mf" | sed -e 's/:.*$//'`
22913     # Check whether this is an Automake generated Makefile or not.
22914     # We used to match only the files named 'Makefile.in', but
22915     # some people rename them; so instead we look at the file content.
22916     # Grep'ing the first line is not enough: some people post-process
22917     # each Makefile.in and add a new line on top of each file to say so.
22918     # Grep'ing the whole file is not good either: AIX grep has a line
22919     # limit of 2048, but all sed's we know have understand at least 4000.
22920     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22921       dirpart=`$as_dirname -- "$mf" ||
22922 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22923          X"$mf" : 'X\(//\)[^/]' \| \
22924          X"$mf" : 'X\(//\)$' \| \
22925          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22926 $as_echo X"$mf" |
22927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22928             s//\1/
22929             q
22930           }
22931           /^X\(\/\/\)[^/].*/{
22932             s//\1/
22933             q
22934           }
22935           /^X\(\/\/\)$/{
22936             s//\1/
22937             q
22938           }
22939           /^X\(\/\).*/{
22940             s//\1/
22941             q
22942           }
22943           s/.*/./; q'`
22944     else
22945       continue
22946     fi
22947     # Extract the definition of DEPDIR, am__include, and am__quote
22948     # from the Makefile without running 'make'.
22949     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22950     test -z "$DEPDIR" && continue
22951     am__include=`sed -n 's/^am__include = //p' < "$mf"`
22952     test -z "$am__include" && continue
22953     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22954     # Find all dependency output files, they are included files with
22955     # $(DEPDIR) in their names.  We invoke sed twice because it is the
22956     # simplest approach to changing $(DEPDIR) to its actual value in the
22957     # expansion.
22958     for file in `sed -n "
22959       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22960          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22961       # Make sure the directory exists.
22962       test -f "$dirpart/$file" && continue
22963       fdir=`$as_dirname -- "$file" ||
22964 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22965          X"$file" : 'X\(//\)[^/]' \| \
22966          X"$file" : 'X\(//\)$' \| \
22967          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22968 $as_echo X"$file" |
22969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22970             s//\1/
22971             q
22972           }
22973           /^X\(\/\/\)[^/].*/{
22974             s//\1/
22975             q
22976           }
22977           /^X\(\/\/\)$/{
22978             s//\1/
22979             q
22980           }
22981           /^X\(\/\).*/{
22982             s//\1/
22983             q
22984           }
22985           s/.*/./; q'`
22986       as_dir=$dirpart/$fdir; as_fn_mkdir_p
22987       # echo "creating $dirpart/$file"
22988       echo '# dummy' > "$dirpart/$file"
22989     done
22990   done
22991 }
22992  ;;
22993     "libtool":C)
22994
22995     # See if we are running on zsh, and set the options that allow our
22996     # commands through without removal of \ escapes.
22997     if test -n "${ZSH_VERSION+set}"; then
22998       setopt NO_GLOB_SUBST
22999     fi
23000
23001     cfgfile=${ofile}T
23002     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23003     $RM "$cfgfile"
23004
23005     cat <<_LT_EOF >> "$cfgfile"
23006 #! $SHELL
23007 # Generated automatically by $as_me ($PACKAGE) $VERSION
23008 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23009
23010 # Provide generalized library-building support services.
23011 # Written by Gordon Matzigkeit, 1996
23012
23013 # Copyright (C) 2014 Free Software Foundation, Inc.
23014 # This is free software; see the source for copying conditions.  There is NO
23015 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23016
23017 # GNU Libtool is free software; you can redistribute it and/or modify
23018 # it under the terms of the GNU General Public License as published by
23019 # the Free Software Foundation; either version 2 of of the License, or
23020 # (at your option) any later version.
23021 #
23022 # As a special exception to the GNU General Public License, if you
23023 # distribute this file as part of a program or library that is built
23024 # using GNU Libtool, you may include this file under the  same
23025 # distribution terms that you use for the rest of that program.
23026 #
23027 # GNU Libtool is distributed in the hope that it will be useful, but
23028 # WITHOUT ANY WARRANTY; without even the implied warranty of
23029 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23030 # GNU General Public License for more details.
23031 #
23032 # You should have received a copy of the GNU General Public License
23033 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23034
23035
23036 # The names of the tagged configurations supported by this script.
23037 available_tags='CXX '
23038
23039 # Configured defaults for sys_lib_dlsearch_path munging.
23040 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23041
23042 # ### BEGIN LIBTOOL CONFIG
23043
23044 # Which release of libtool.m4 was used?
23045 macro_version=$macro_version
23046 macro_revision=$macro_revision
23047
23048 # Whether or not to build static libraries.
23049 build_old_libs=$enable_static
23050
23051 # Whether or not to build shared libraries.
23052 build_libtool_libs=$enable_shared
23053
23054 # What type of objects to build.
23055 pic_mode=$pic_mode
23056
23057 # Whether or not to optimize for fast installation.
23058 fast_install=$enable_fast_install
23059
23060 # Shared archive member basename,for filename based shared library versioning on AIX.
23061 shared_archive_member_spec=$shared_archive_member_spec
23062
23063 # Shell to use when invoking shell scripts.
23064 SHELL=$lt_SHELL
23065
23066 # An echo program that protects backslashes.
23067 ECHO=$lt_ECHO
23068
23069 # The PATH separator for the build system.
23070 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23071
23072 # The host system.
23073 host_alias=$host_alias
23074 host=$host
23075 host_os=$host_os
23076
23077 # The build system.
23078 build_alias=$build_alias
23079 build=$build
23080 build_os=$build_os
23081
23082 # A sed program that does not truncate output.
23083 SED=$lt_SED
23084
23085 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23086 Xsed="\$SED -e 1s/^X//"
23087
23088 # A grep program that handles long lines.
23089 GREP=$lt_GREP
23090
23091 # An ERE matcher.
23092 EGREP=$lt_EGREP
23093
23094 # A literal string matcher.
23095 FGREP=$lt_FGREP
23096
23097 # A BSD- or MS-compatible name lister.
23098 NM=$lt_NM
23099
23100 # Whether we need soft or hard links.
23101 LN_S=$lt_LN_S
23102
23103 # What is the maximum length of a command?
23104 max_cmd_len=$max_cmd_len
23105
23106 # Object file suffix (normally "o").
23107 objext=$ac_objext
23108
23109 # Executable file suffix (normally "").
23110 exeext=$exeext
23111
23112 # whether the shell understands "unset".
23113 lt_unset=$lt_unset
23114
23115 # turn spaces into newlines.
23116 SP2NL=$lt_lt_SP2NL
23117
23118 # turn newlines into spaces.
23119 NL2SP=$lt_lt_NL2SP
23120
23121 # convert \$build file names to \$host format.
23122 to_host_file_cmd=$lt_cv_to_host_file_cmd
23123
23124 # convert \$build files to toolchain format.
23125 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23126
23127 # An object symbol dumper.
23128 OBJDUMP=$lt_OBJDUMP
23129
23130 # Method to check whether dependent libraries are shared objects.
23131 deplibs_check_method=$lt_deplibs_check_method
23132
23133 # Command to use when deplibs_check_method = "file_magic".
23134 file_magic_cmd=$lt_file_magic_cmd
23135
23136 # How to find potential files when deplibs_check_method = "file_magic".
23137 file_magic_glob=$lt_file_magic_glob
23138
23139 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23140 want_nocaseglob=$lt_want_nocaseglob
23141
23142 # DLL creation program.
23143 DLLTOOL=$lt_DLLTOOL
23144
23145 # Command to associate shared and link libraries.
23146 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23147
23148 # The archiver.
23149 AR=$lt_AR
23150
23151 # Flags to create an archive.
23152 AR_FLAGS=$lt_AR_FLAGS
23153
23154 # How to feed a file listing to the archiver.
23155 archiver_list_spec=$lt_archiver_list_spec
23156
23157 # A symbol stripping program.
23158 STRIP=$lt_STRIP
23159
23160 # Commands used to install an old-style archive.
23161 RANLIB=$lt_RANLIB
23162 old_postinstall_cmds=$lt_old_postinstall_cmds
23163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23164
23165 # Whether to use a lock for old archive extraction.
23166 lock_old_archive_extraction=$lock_old_archive_extraction
23167
23168 # A C compiler.
23169 LTCC=$lt_CC
23170
23171 # LTCC compiler flags.
23172 LTCFLAGS=$lt_CFLAGS
23173
23174 # Take the output of nm and produce a listing of raw symbols and C names.
23175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23176
23177 # Transform the output of nm in a proper C declaration.
23178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23179
23180 # Transform the output of nm into a list of symbols to manually relocate.
23181 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23182
23183 # Transform the output of nm in a C name address pair.
23184 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23185
23186 # Transform the output of nm in a C name address pair when lib prefix is needed.
23187 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23188
23189 # The name lister interface.
23190 nm_interface=$lt_lt_cv_nm_interface
23191
23192 # Specify filename containing input files for \$NM.
23193 nm_file_list_spec=$lt_nm_file_list_spec
23194
23195 # The root where to search for dependent libraries,and where our libraries should be installed.
23196 lt_sysroot=$lt_sysroot
23197
23198 # Command to truncate a binary pipe.
23199 lt_truncate_bin=$lt_lt_cv_truncate_bin
23200
23201 # The name of the directory that contains temporary libtool files.
23202 objdir=$objdir
23203
23204 # Used to examine libraries when file_magic_cmd begins with "file".
23205 MAGIC_CMD=$MAGIC_CMD
23206
23207 # Must we lock files when doing compilation?
23208 need_locks=$lt_need_locks
23209
23210 # Manifest tool.
23211 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23212
23213 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23214 DSYMUTIL=$lt_DSYMUTIL
23215
23216 # Tool to change global to local symbols on Mac OS X.
23217 NMEDIT=$lt_NMEDIT
23218
23219 # Tool to manipulate fat objects and archives on Mac OS X.
23220 LIPO=$lt_LIPO
23221
23222 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23223 OTOOL=$lt_OTOOL
23224
23225 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23226 OTOOL64=$lt_OTOOL64
23227
23228 # Old archive suffix (normally "a").
23229 libext=$libext
23230
23231 # Shared library suffix (normally ".so").
23232 shrext_cmds=$lt_shrext_cmds
23233
23234 # The commands to extract the exported symbol list from a shared archive.
23235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23236
23237 # Variables whose values should be saved in libtool wrapper scripts and
23238 # restored at link time.
23239 variables_saved_for_relink=$lt_variables_saved_for_relink
23240
23241 # Do we need the "lib" prefix for modules?
23242 need_lib_prefix=$need_lib_prefix
23243
23244 # Do we need a version for libraries?
23245 need_version=$need_version
23246
23247 # Library versioning type.
23248 version_type=$version_type
23249
23250 # Shared library runtime path variable.
23251 runpath_var=$runpath_var
23252
23253 # Shared library path variable.
23254 shlibpath_var=$shlibpath_var
23255
23256 # Is shlibpath searched before the hard-coded library search path?
23257 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23258
23259 # Format of library name prefix.
23260 libname_spec=$lt_libname_spec
23261
23262 # List of archive names.  First name is the real one, the rest are links.
23263 # The last name is the one that the linker finds with -lNAME
23264 library_names_spec=$lt_library_names_spec
23265
23266 # The coded name of the library, if different from the real name.
23267 soname_spec=$lt_soname_spec
23268
23269 # Permission mode override for installation of shared libraries.
23270 install_override_mode=$lt_install_override_mode
23271
23272 # Command to use after installation of a shared archive.
23273 postinstall_cmds=$lt_postinstall_cmds
23274
23275 # Command to use after uninstallation of a shared archive.
23276 postuninstall_cmds=$lt_postuninstall_cmds
23277
23278 # Commands used to finish a libtool library installation in a directory.
23279 finish_cmds=$lt_finish_cmds
23280
23281 # As "finish_cmds", except a single script fragment to be evaled but
23282 # not shown.
23283 finish_eval=$lt_finish_eval
23284
23285 # Whether we should hardcode library paths into libraries.
23286 hardcode_into_libs=$hardcode_into_libs
23287
23288 # Compile-time system search path for libraries.
23289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23290
23291 # Detected run-time system search path for libraries.
23292 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23293
23294 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23295 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23296
23297 # Whether dlopen is supported.
23298 dlopen_support=$enable_dlopen
23299
23300 # Whether dlopen of programs is supported.
23301 dlopen_self=$enable_dlopen_self
23302
23303 # Whether dlopen of statically linked programs is supported.
23304 dlopen_self_static=$enable_dlopen_self_static
23305
23306 # Commands to strip libraries.
23307 old_striplib=$lt_old_striplib
23308 striplib=$lt_striplib
23309
23310
23311 # The linker used to build libraries.
23312 LD=$lt_LD
23313
23314 # How to create reloadable object files.
23315 reload_flag=$lt_reload_flag
23316 reload_cmds=$lt_reload_cmds
23317
23318 # Commands used to build an old-style archive.
23319 old_archive_cmds=$lt_old_archive_cmds
23320
23321 # A language specific compiler.
23322 CC=$lt_compiler
23323
23324 # Is the compiler the GNU compiler?
23325 with_gcc=$GCC
23326
23327 # Compiler flag to turn off builtin functions.
23328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23329
23330 # Additional compiler flags for building library objects.
23331 pic_flag=$lt_lt_prog_compiler_pic
23332
23333 # How to pass a linker flag through the compiler.
23334 wl=$lt_lt_prog_compiler_wl
23335
23336 # Compiler flag to prevent dynamic linking.
23337 link_static_flag=$lt_lt_prog_compiler_static
23338
23339 # Does compiler simultaneously support -c and -o options?
23340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23341
23342 # Whether or not to add -lc for building shared libraries.
23343 build_libtool_need_lc=$archive_cmds_need_lc
23344
23345 # Whether or not to disallow shared libs when runtime libs are static.
23346 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23347
23348 # Compiler flag to allow reflexive dlopens.
23349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23350
23351 # Compiler flag to generate shared objects directly from archives.
23352 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23353
23354 # Whether the compiler copes with passing no objects directly.
23355 compiler_needs_object=$lt_compiler_needs_object
23356
23357 # Create an old-style archive from a shared archive.
23358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23359
23360 # Create a temporary old-style archive to link instead of a shared archive.
23361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23362
23363 # Commands used to build a shared archive.
23364 archive_cmds=$lt_archive_cmds
23365 archive_expsym_cmds=$lt_archive_expsym_cmds
23366
23367 # Commands used to build a loadable module if different from building
23368 # a shared archive.
23369 module_cmds=$lt_module_cmds
23370 module_expsym_cmds=$lt_module_expsym_cmds
23371
23372 # Whether we are building with GNU ld or not.
23373 with_gnu_ld=$lt_with_gnu_ld
23374
23375 # Flag that allows shared libraries with undefined symbols to be built.
23376 allow_undefined_flag=$lt_allow_undefined_flag
23377
23378 # Flag that enforces no undefined symbols.
23379 no_undefined_flag=$lt_no_undefined_flag
23380
23381 # Flag to hardcode \$libdir into a binary during linking.
23382 # This must work even if \$libdir does not exist
23383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23384
23385 # Whether we need a single "-rpath" flag with a separated argument.
23386 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23387
23388 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23389 # DIR into the resulting binary.
23390 hardcode_direct=$hardcode_direct
23391
23392 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23393 # DIR into the resulting binary and the resulting library dependency is
23394 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23395 # library is relocated.
23396 hardcode_direct_absolute=$hardcode_direct_absolute
23397
23398 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23399 # into the resulting binary.
23400 hardcode_minus_L=$hardcode_minus_L
23401
23402 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23403 # into the resulting binary.
23404 hardcode_shlibpath_var=$hardcode_shlibpath_var
23405
23406 # Set to "yes" if building a shared library automatically hardcodes DIR
23407 # into the library and all subsequent libraries and executables linked
23408 # against it.
23409 hardcode_automatic=$hardcode_automatic
23410
23411 # Set to yes if linker adds runtime paths of dependent libraries
23412 # to runtime path list.
23413 inherit_rpath=$inherit_rpath
23414
23415 # Whether libtool must link a program against all its dependency libraries.
23416 link_all_deplibs=$link_all_deplibs
23417
23418 # Set to "yes" if exported symbols are required.
23419 always_export_symbols=$always_export_symbols
23420
23421 # The commands to list exported symbols.
23422 export_symbols_cmds=$lt_export_symbols_cmds
23423
23424 # Symbols that should not be listed in the preloaded symbols.
23425 exclude_expsyms=$lt_exclude_expsyms
23426
23427 # Symbols that must always be exported.
23428 include_expsyms=$lt_include_expsyms
23429
23430 # Commands necessary for linking programs (against libraries) with templates.
23431 prelink_cmds=$lt_prelink_cmds
23432
23433 # Commands necessary for finishing linking programs.
23434 postlink_cmds=$lt_postlink_cmds
23435
23436 # Specify filename containing input files.
23437 file_list_spec=$lt_file_list_spec
23438
23439 # How to hardcode a shared library path into an executable.
23440 hardcode_action=$hardcode_action
23441
23442 # The directories searched by this compiler when creating a shared library.
23443 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23444
23445 # Dependencies to place before and after the objects being linked to
23446 # create a shared library.
23447 predep_objects=$lt_predep_objects
23448 postdep_objects=$lt_postdep_objects
23449 predeps=$lt_predeps
23450 postdeps=$lt_postdeps
23451
23452 # The library search path used internally by the compiler when linking
23453 # a shared library.
23454 compiler_lib_search_path=$lt_compiler_lib_search_path
23455
23456 # ### END LIBTOOL CONFIG
23457
23458 _LT_EOF
23459
23460     cat <<'_LT_EOF' >> "$cfgfile"
23461
23462 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23463
23464 # func_munge_path_list VARIABLE PATH
23465 # -----------------------------------
23466 # VARIABLE is name of variable containing _space_ separated list of
23467 # directories to be munged by the contents of PATH, which is string
23468 # having a format:
23469 # "DIR[:DIR]:"
23470 #       string "DIR[ DIR]" will be prepended to VARIABLE
23471 # ":DIR[:DIR]"
23472 #       string "DIR[ DIR]" will be appended to VARIABLE
23473 # "DIRP[:DIRP]::[DIRA:]DIRA"
23474 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23475 #       "DIRA[ DIRA]" will be appended to VARIABLE
23476 # "DIR[:DIR]"
23477 #       VARIABLE will be replaced by "DIR[ DIR]"
23478 func_munge_path_list ()
23479 {
23480     case x$2 in
23481     x)
23482         ;;
23483     *:)
23484         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23485         ;;
23486     x:*)
23487         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23488         ;;
23489     *::*)
23490         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23491         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23492         ;;
23493     *)
23494         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23495         ;;
23496     esac
23497 }
23498
23499
23500 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23501 func_cc_basename ()
23502 {
23503     for cc_temp in $*""; do
23504       case $cc_temp in
23505         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23506         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23507         \-*) ;;
23508         *) break;;
23509       esac
23510     done
23511     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23512 }
23513
23514
23515 # ### END FUNCTIONS SHARED WITH CONFIGURE
23516
23517 _LT_EOF
23518
23519   case $host_os in
23520   aix3*)
23521     cat <<\_LT_EOF >> "$cfgfile"
23522 # AIX sometimes has problems with the GCC collect2 program.  For some
23523 # reason, if we set the COLLECT_NAMES environment variable, the problems
23524 # vanish in a puff of smoke.
23525 if test set != "${COLLECT_NAMES+set}"; then
23526   COLLECT_NAMES=
23527   export COLLECT_NAMES
23528 fi
23529 _LT_EOF
23530     ;;
23531   esac
23532
23533
23534 ltmain=$ac_aux_dir/ltmain.sh
23535
23536
23537   # We use sed instead of cat because bash on DJGPP gets confused if
23538   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23539   # text mode, it properly converts lines to CR/LF.  This bash problem
23540   # is reportedly fixed, but why not run on old versions too?
23541   sed '$q' "$ltmain" >> "$cfgfile" \
23542      || (rm -f "$cfgfile"; exit 1)
23543
23544    mv -f "$cfgfile" "$ofile" ||
23545     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23546   chmod +x "$ofile"
23547
23548
23549     cat <<_LT_EOF >> "$ofile"
23550
23551 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23552
23553 # The linker used to build libraries.
23554 LD=$lt_LD_CXX
23555
23556 # How to create reloadable object files.
23557 reload_flag=$lt_reload_flag_CXX
23558 reload_cmds=$lt_reload_cmds_CXX
23559
23560 # Commands used to build an old-style archive.
23561 old_archive_cmds=$lt_old_archive_cmds_CXX
23562
23563 # A language specific compiler.
23564 CC=$lt_compiler_CXX
23565
23566 # Is the compiler the GNU compiler?
23567 with_gcc=$GCC_CXX
23568
23569 # Compiler flag to turn off builtin functions.
23570 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23571
23572 # Additional compiler flags for building library objects.
23573 pic_flag=$lt_lt_prog_compiler_pic_CXX
23574
23575 # How to pass a linker flag through the compiler.
23576 wl=$lt_lt_prog_compiler_wl_CXX
23577
23578 # Compiler flag to prevent dynamic linking.
23579 link_static_flag=$lt_lt_prog_compiler_static_CXX
23580
23581 # Does compiler simultaneously support -c and -o options?
23582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23583
23584 # Whether or not to add -lc for building shared libraries.
23585 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23586
23587 # Whether or not to disallow shared libs when runtime libs are static.
23588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23589
23590 # Compiler flag to allow reflexive dlopens.
23591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23592
23593 # Compiler flag to generate shared objects directly from archives.
23594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23595
23596 # Whether the compiler copes with passing no objects directly.
23597 compiler_needs_object=$lt_compiler_needs_object_CXX
23598
23599 # Create an old-style archive from a shared archive.
23600 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23601
23602 # Create a temporary old-style archive to link instead of a shared archive.
23603 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23604
23605 # Commands used to build a shared archive.
23606 archive_cmds=$lt_archive_cmds_CXX
23607 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23608
23609 # Commands used to build a loadable module if different from building
23610 # a shared archive.
23611 module_cmds=$lt_module_cmds_CXX
23612 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23613
23614 # Whether we are building with GNU ld or not.
23615 with_gnu_ld=$lt_with_gnu_ld_CXX
23616
23617 # Flag that allows shared libraries with undefined symbols to be built.
23618 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23619
23620 # Flag that enforces no undefined symbols.
23621 no_undefined_flag=$lt_no_undefined_flag_CXX
23622
23623 # Flag to hardcode \$libdir into a binary during linking.
23624 # This must work even if \$libdir does not exist
23625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23626
23627 # Whether we need a single "-rpath" flag with a separated argument.
23628 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23629
23630 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23631 # DIR into the resulting binary.
23632 hardcode_direct=$hardcode_direct_CXX
23633
23634 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23635 # DIR into the resulting binary and the resulting library dependency is
23636 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23637 # library is relocated.
23638 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23639
23640 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23641 # into the resulting binary.
23642 hardcode_minus_L=$hardcode_minus_L_CXX
23643
23644 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23645 # into the resulting binary.
23646 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23647
23648 # Set to "yes" if building a shared library automatically hardcodes DIR
23649 # into the library and all subsequent libraries and executables linked
23650 # against it.
23651 hardcode_automatic=$hardcode_automatic_CXX
23652
23653 # Set to yes if linker adds runtime paths of dependent libraries
23654 # to runtime path list.
23655 inherit_rpath=$inherit_rpath_CXX
23656
23657 # Whether libtool must link a program against all its dependency libraries.
23658 link_all_deplibs=$link_all_deplibs_CXX
23659
23660 # Set to "yes" if exported symbols are required.
23661 always_export_symbols=$always_export_symbols_CXX
23662
23663 # The commands to list exported symbols.
23664 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23665
23666 # Symbols that should not be listed in the preloaded symbols.
23667 exclude_expsyms=$lt_exclude_expsyms_CXX
23668
23669 # Symbols that must always be exported.
23670 include_expsyms=$lt_include_expsyms_CXX
23671
23672 # Commands necessary for linking programs (against libraries) with templates.
23673 prelink_cmds=$lt_prelink_cmds_CXX
23674
23675 # Commands necessary for finishing linking programs.
23676 postlink_cmds=$lt_postlink_cmds_CXX
23677
23678 # Specify filename containing input files.
23679 file_list_spec=$lt_file_list_spec_CXX
23680
23681 # How to hardcode a shared library path into an executable.
23682 hardcode_action=$hardcode_action_CXX
23683
23684 # The directories searched by this compiler when creating a shared library.
23685 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23686
23687 # Dependencies to place before and after the objects being linked to
23688 # create a shared library.
23689 predep_objects=$lt_predep_objects_CXX
23690 postdep_objects=$lt_postdep_objects_CXX
23691 predeps=$lt_predeps_CXX
23692 postdeps=$lt_postdeps_CXX
23693
23694 # The library search path used internally by the compiler when linking
23695 # a shared library.
23696 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23697
23698 # ### END LIBTOOL TAG CONFIG: CXX
23699 _LT_EOF
23700
23701  ;;
23702
23703   esac
23704 done # for ac_tag
23705
23706
23707 as_fn_exit 0
23708 _ACEOF
23709 ac_clean_files=$ac_clean_files_save
23710
23711 test $ac_write_fail = 0 ||
23712   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23713
23714
23715 # configure is writing to config.log, and then calls config.status.
23716 # config.status does its own redirection, appending to config.log.
23717 # Unfortunately, on DOS this fails, as config.log is still kept open
23718 # by configure, so config.status won't be able to write to it; its
23719 # output is simply discarded.  So we exec the FD to /dev/null,
23720 # effectively closing config.log, so it can be properly (re)opened and
23721 # appended to by config.status.  When coming back to configure, we
23722 # need to make the FD available again.
23723 if test "$no_create" != yes; then
23724   ac_cs_success=:
23725   ac_config_status_args=
23726   test "$silent" = yes &&
23727     ac_config_status_args="$ac_config_status_args --quiet"
23728   exec 5>/dev/null
23729   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23730   exec 5>>config.log
23731   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23732   # would make configure fail if this is the last instruction.
23733   $ac_cs_success || as_fn_exit 1
23734 fi
23735 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23736   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23737 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23738 fi
23739
23740
23741 { $as_echo "$as_me:${as_lineno-$LINENO}:
23742
23743 Build configuration:
23744
23745 Unicode callbacks (you want at least one):
23746         Builtin (UCDN):         ${have_ucdn}
23747         Glib:                   ${have_glib}
23748         ICU:                    ${have_icu}
23749
23750 Font callbacks (the more the merrier):
23751         FreeType:               ${have_freetype}
23752
23753 Tools used for command-line utilities:
23754         Cairo:                  ${have_cairo}
23755         Fontconfig:             ${have_fontconfig}
23756
23757 Additional shapers (the more the merrier):
23758         Graphite2:              ${have_graphite2}
23759
23760 Platform shapers (not normally needed):
23761         CoreText:               ${have_coretext}
23762         Uniscribe:              ${have_uniscribe}
23763         DirectWrite:            ${have_directwrite}
23764
23765 Other features:
23766         Documentation:          ${enable_gtk_doc}
23767         GObject bindings:       ${have_gobject}
23768         Introspection:          ${have_introspection}
23769 " >&5
23770 $as_echo "$as_me:
23771
23772 Build configuration:
23773
23774 Unicode callbacks (you want at least one):
23775         Builtin (UCDN):         ${have_ucdn}
23776         Glib:                   ${have_glib}
23777         ICU:                    ${have_icu}
23778
23779 Font callbacks (the more the merrier):
23780         FreeType:               ${have_freetype}
23781
23782 Tools used for command-line utilities:
23783         Cairo:                  ${have_cairo}
23784         Fontconfig:             ${have_fontconfig}
23785
23786 Additional shapers (the more the merrier):
23787         Graphite2:              ${have_graphite2}
23788
23789 Platform shapers (not normally needed):
23790         CoreText:               ${have_coretext}
23791         Uniscribe:              ${have_uniscribe}
23792         DirectWrite:            ${have_directwrite}
23793
23794 Other features:
23795         Documentation:          ${enable_gtk_doc}
23796         GObject bindings:       ${have_gobject}
23797         Introspection:          ${have_introspection}
23798 " >&6;}