Imported Upstream version 2.4.0
[platform/upstream/harfbuzz.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 2.4.0.
4 #
5 # Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/harfbuzz/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='2.4.0'
594 PACKAGE_STRING='HarfBuzz 2.4.0'
595 PACKAGE_BUGREPORT='https://github.com/harfbuzz/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
597
598 ac_unique_file="src/harfbuzz.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_CORETEXT_FALSE
640 HAVE_CORETEXT_TRUE
641 CORETEXT_LIBS
642 CORETEXT_CFLAGS
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
645 DIRECTWRITE_LIBS
646 DIRECTWRITE_CXXFLAGS
647 HAVE_UNISCRIBE_FALSE
648 HAVE_UNISCRIBE_TRUE
649 UNISCRIBE_LIBS
650 UNISCRIBE_CFLAGS
651 HAVE_FREETYPE_FALSE
652 HAVE_FREETYPE_TRUE
653 FREETYPE_LIBS
654 FREETYPE_CFLAGS
655 FREETYPE_DEPS
656 HAVE_GRAPHITE2_FALSE
657 HAVE_GRAPHITE2_TRUE
658 GRAPHITE2_LIBS
659 GRAPHITE2_CFLAGS
660 GRAPHITE2_DEPS
661 HAVE_UCDN_FALSE
662 HAVE_UCDN_TRUE
663 HAVE_ICU_BUILTIN_FALSE
664 HAVE_ICU_BUILTIN_TRUE
665 HAVE_ICU_FALSE
666 HAVE_ICU_TRUE
667 ICU_CONFIG
668 ICU_LIBS
669 ICU_CFLAGS
670 HAVE_FONTCONFIG_FALSE
671 HAVE_FONTCONFIG_TRUE
672 FONTCONFIG_LIBS
673 FONTCONFIG_CFLAGS
674 HAVE_CAIRO_FT_FALSE
675 HAVE_CAIRO_FT_TRUE
676 CAIRO_FT_LIBS
677 CAIRO_FT_CFLAGS
678 HAVE_CAIRO_FALSE
679 HAVE_CAIRO_TRUE
680 CAIRO_LIBS
681 CAIRO_CFLAGS
682 HAVE_INTROSPECTION_FALSE
683 HAVE_INTROSPECTION_TRUE
684 INTROSPECTION_MAKEFILE
685 INTROSPECTION_LIBS
686 INTROSPECTION_CFLAGS
687 INTROSPECTION_TYPELIBDIR
688 INTROSPECTION_GIRDIR
689 INTROSPECTION_GENERATE
690 INTROSPECTION_COMPILER
691 INTROSPECTION_SCANNER
692 have_gobject
693 HAVE_GOBJECT_FALSE
694 HAVE_GOBJECT_TRUE
695 GLIB_MKENUMS
696 GOBJECT_LIBS
697 GOBJECT_CFLAGS
698 HAVE_GLIB_FALSE
699 HAVE_GLIB_TRUE
700 GLIB_LIBS
701 GLIB_CFLAGS
702 GLIB_DEPS
703 HAVE_FALLBACK_FALSE
704 HAVE_FALLBACK_TRUE
705 HAVE_PTHREAD_FALSE
706 HAVE_PTHREAD_TRUE
707 PTHREAD_CFLAGS
708 PTHREAD_LIBS
709 PTHREAD_CC
710 ax_pthread_config
711 OS_WIN32_FALSE
712 OS_WIN32_TRUE
713 HAVE_GCC_FALSE
714 HAVE_GCC_TRUE
715 GTK_DOC_USE_REBASE_FALSE
716 GTK_DOC_USE_REBASE_TRUE
717 GTK_DOC_USE_LIBTOOL_FALSE
718 GTK_DOC_USE_LIBTOOL_TRUE
719 GTK_DOC_BUILD_PDF_FALSE
720 GTK_DOC_BUILD_PDF_TRUE
721 GTK_DOC_BUILD_HTML_FALSE
722 GTK_DOC_BUILD_HTML_TRUE
723 ENABLE_GTK_DOC_FALSE
724 ENABLE_GTK_DOC_TRUE
725 HAVE_GTK_DOC_FALSE
726 HAVE_GTK_DOC_TRUE
727 GTKDOC_DEPS_LIBS
728 GTKDOC_DEPS_CFLAGS
729 HTML_DIR
730 GTKDOC_MKPDF
731 GTKDOC_REBASE
732 GTKDOC_CHECK_PATH
733 GTKDOC_CHECK
734 WITH_LIBSTDCXX_FALSE
735 WITH_LIBSTDCXX_TRUE
736 HB_LIBTOOL_VERSION_INFO
737 HB_VERSION
738 HB_VERSION_MICRO
739 HB_VERSION_MINOR
740 HB_VERSION_MAJOR
741 GIT
742 RAGEL
743 PKG_CONFIG_LIBDIR
744 PKG_CONFIG_PATH
745 PKG_CONFIG
746 CXXCPP
747 am__fastdepCXX_FALSE
748 am__fastdepCXX_TRUE
749 CXXDEPMODE
750 ac_ct_CXX
751 CXXFLAGS
752 CXX
753 CPP
754 LT_SYS_LIBRARY_PATH
755 OTOOL64
756 OTOOL
757 LIPO
758 NMEDIT
759 DSYMUTIL
760 MANIFEST_TOOL
761 RANLIB
762 DLLTOOL
763 OBJDUMP
764 LN_S
765 NM
766 ac_ct_DUMPBIN
767 DUMPBIN
768 LD
769 FGREP
770 EGREP
771 GREP
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 LIBTOOL
781 am__fastdepCC_FALSE
782 am__fastdepCC_TRUE
783 CCDEPMODE
784 am__nodep
785 AMDEPBACKSLASH
786 AMDEP_FALSE
787 AMDEP_TRUE
788 am__include
789 DEPDIR
790 OBJEXT
791 EXEEXT
792 ac_ct_CC
793 CPPFLAGS
794 LDFLAGS
795 CFLAGS
796 CC
797 ac_ct_AR
798 AR
799 CODE_COVERAGE_RULES
800 CODE_COVERAGE_LDFLAGS
801 CODE_COVERAGE_LIBS
802 CODE_COVERAGE_CXXFLAGS
803 CODE_COVERAGE_CFLAGS
804 CODE_COVERAGE_CPPFLAGS
805 GENHTML
806 LCOV
807 GCOV
808 CODE_COVERAGE_ENABLED
809 CODE_COVERAGE_ENABLED_FALSE
810 CODE_COVERAGE_ENABLED_TRUE
811 SED
812 AM_BACKSLASH
813 AM_DEFAULT_VERBOSITY
814 AM_DEFAULT_V
815 AM_V
816 am__untar
817 am__tar
818 AMTAR
819 am__leading_dot
820 SET_MAKE
821 AWK
822 mkdir_p
823 MKDIR_P
824 INSTALL_STRIP_PROGRAM
825 STRIP
826 install_sh
827 MAKEINFO
828 AUTOHEADER
829 AUTOMAKE
830 AUTOCONF
831 ACLOCAL
832 VERSION
833 PACKAGE
834 CYGPATH_W
835 am__isrc
836 INSTALL_DATA
837 INSTALL_SCRIPT
838 INSTALL_PROGRAM
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL
877 am__quote'
878 ac_subst_files=''
879 ac_user_opts='
880 enable_option_checking
881 enable_silent_rules
882 with_gcov
883 enable_code_coverage
884 enable_dependency_tracking
885 enable_static
886 enable_shared
887 with_pic
888 enable_fast_install
889 with_aix_soname
890 with_gnu_ld
891 with_sysroot
892 enable_libtool_lock
893 enable_largefile
894 with_libstdc__
895 with_html_dir
896 enable_gtk_doc
897 enable_gtk_doc_html
898 enable_gtk_doc_pdf
899 with_glib
900 with_gobject
901 enable_introspection
902 with_cairo
903 with_fontconfig
904 with_icu
905 with_ucdn
906 with_graphite2
907 with_freetype
908 with_uniscribe
909 with_directwrite
910 with_coretext
911 '
912       ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 LT_SYS_LIBRARY_PATH
921 CPP
922 CXX
923 CXXFLAGS
924 CCC
925 CXXCPP
926 PKG_CONFIG
927 PKG_CONFIG_PATH
928 PKG_CONFIG_LIBDIR
929 GTKDOC_DEPS_CFLAGS
930 GTKDOC_DEPS_LIBS
931 GLIB_CFLAGS
932 GLIB_LIBS
933 GOBJECT_CFLAGS
934 GOBJECT_LIBS
935 CAIRO_CFLAGS
936 CAIRO_LIBS
937 CAIRO_FT_CFLAGS
938 CAIRO_FT_LIBS
939 FONTCONFIG_CFLAGS
940 FONTCONFIG_LIBS
941 ICU_CFLAGS
942 ICU_LIBS
943 GRAPHITE2_CFLAGS
944 GRAPHITE2_LIBS
945 FREETYPE_CFLAGS
946 FREETYPE_LIBS'
947
948
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
970
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
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   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238     ac_prev=sbindir ;;
1239   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240   | --sbi=* | --sb=*)
1241     sbindir=$ac_optarg ;;
1242
1243   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245   | --sharedst | --shareds | --shared | --share | --shar \
1246   | --sha | --sh)
1247     ac_prev=sharedstatedir ;;
1248   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251   | --sha=* | --sh=*)
1252     sharedstatedir=$ac_optarg ;;
1253
1254   -site | --site | --sit)
1255     ac_prev=site ;;
1256   -site=* | --site=* | --sit=*)
1257     site=$ac_optarg ;;
1258
1259   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260     ac_prev=srcdir ;;
1261   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262     srcdir=$ac_optarg ;;
1263
1264   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265   | --syscon | --sysco | --sysc | --sys | --sy)
1266     ac_prev=sysconfdir ;;
1267   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269     sysconfdir=$ac_optarg ;;
1270
1271   -target | --target | --targe | --targ | --tar | --ta | --t)
1272     ac_prev=target_alias ;;
1273   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274     target_alias=$ac_optarg ;;
1275
1276   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277     verbose=yes ;;
1278
1279   -version | --version | --versio | --versi | --vers | -V)
1280     ac_init_version=: ;;
1281
1282   -with-* | --with-*)
1283     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286       as_fn_error $? "invalid package name: $ac_useropt"
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval with_$ac_useropt=\$ac_optarg ;;
1297
1298   -without-* | --without-*)
1299     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302       as_fn_error $? "invalid package name: $ac_useropt"
1303     ac_useropt_orig=$ac_useropt
1304     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305     case $ac_user_opts in
1306       *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310          ac_unrecognized_sep=', ';;
1311     esac
1312     eval with_$ac_useropt=no ;;
1313
1314   --x)
1315     # Obsolete; use --with-x.
1316     with_x=yes ;;
1317
1318   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319   | --x-incl | --x-inc | --x-in | --x-i)
1320     ac_prev=x_includes ;;
1321   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323     x_includes=$ac_optarg ;;
1324
1325   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327     ac_prev=x_libraries ;;
1328   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330     x_libraries=$ac_optarg ;;
1331
1332   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information"
1334     ;;
1335
1336   *=*)
1337     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338     # Reject names that are not valid shell variable names.
1339     case $ac_envvar in #(
1340       '' | [0-9]* | *[!_$as_cr_alnum]* )
1341       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342     esac
1343     eval $ac_envvar=\$ac_optarg
1344     export $ac_envvar ;;
1345
1346   *)
1347     # FIXME: should be removed in autoconf 3.0.
1348     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352     ;;
1353
1354   esac
1355 done
1356
1357 if test -n "$ac_prev"; then
1358   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359   as_fn_error $? "missing argument to $ac_option"
1360 fi
1361
1362 if test -n "$ac_unrecognized_opts"; then
1363   case $enable_option_checking in
1364     no) ;;
1365     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367   esac
1368 fi
1369
1370 # Check all directory arguments for consistency.
1371 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372                 datadir sysconfdir sharedstatedir localstatedir includedir \
1373                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374                 libdir localedir mandir
1375 do
1376   eval ac_val=\$$ac_var
1377   # Remove trailing slashes.
1378   case $ac_val in
1379     */ )
1380       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381       eval $ac_var=\$ac_val;;
1382   esac
1383   # Be sure to have absolute directory names.
1384   case $ac_val in
1385     [\\/$]* | ?:[\\/]* )  continue;;
1386     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387   esac
1388   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1390
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1397
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400   if test "x$build_alias" = x; then
1401     cross_compiling=maybe
1402   elif test "x$build_alias" != "x$host_alias"; then
1403     cross_compiling=yes
1404   fi
1405 fi
1406
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410 test "$silent" = yes && exec 6>/dev/null
1411
1412
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416   as_fn_error $? "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418   as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423   ac_srcdir_defaulted=yes
1424   # Try the directory containing this script, then the parent directory.
1425   ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427          X"$as_myself" : 'X\(//\)[^/]' \| \
1428          X"$as_myself" : 'X\(//\)$' \| \
1429          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\/\)[^/].*/{
1436             s//\1/
1437             q
1438           }
1439           /^X\(\/\/\)$/{
1440             s//\1/
1441             q
1442           }
1443           /^X\(\/\).*/{
1444             s//\1/
1445             q
1446           }
1447           s/.*/./; q'`
1448   srcdir=$ac_confdir
1449   if test ! -r "$srcdir/$ac_unique_file"; then
1450     srcdir=..
1451   fi
1452 else
1453   ac_srcdir_defaulted=no
1454 fi
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458 fi
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462         pwd)`
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465   srcdir=.
1466 fi
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for ac_var in $ac_precious_vars; do
1474   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475   eval ac_env_${ac_var}_value=\$${ac_var}
1476   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 done
1479
1480 #
1481 # Report the --help message.
1482 #
1483 if test "$ac_init_help" = "long"; then
1484   # Omit some internal or obsolete options to make the list less imposing.
1485   # This message is too long to be a string in the A/UX 3.1 sh.
1486   cat <<_ACEOF
1487 \`configure' configures HarfBuzz 2.4.0 to adapt to many kinds of systems.
1488
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE.  See below for descriptions of some of the useful variables.
1493
1494 Defaults for the options are specified in brackets.
1495
1496 Configuration:
1497   -h, --help              display this help and exit
1498       --help=short        display options specific to this package
1499       --help=recursive    display the short help of all the included packages
1500   -V, --version           display version information and exit
1501   -q, --quiet, --silent   do not print \`checking ...' messages
1502       --cache-file=FILE   cache test results in FILE [disabled]
1503   -C, --config-cache      alias for \`--cache-file=config.cache'
1504   -n, --no-create         do not create output files
1505       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1506
1507 Installation directories:
1508   --prefix=PREFIX         install architecture-independent files in PREFIX
1509                           [$ac_default_prefix]
1510   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1511                           [PREFIX]
1512
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1517
1518 For better control, use the options below.
1519
1520 Fine tuning of the installation directories:
1521   --bindir=DIR            user executables [EPREFIX/bin]
1522   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1523   --libexecdir=DIR        program executables [EPREFIX/libexec]
1524   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1525   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1526   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1527   --libdir=DIR            object code libraries [EPREFIX/lib]
1528   --includedir=DIR        C header files [PREFIX/include]
1529   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1530   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1531   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1532   --infodir=DIR           info documentation [DATAROOTDIR/info]
1533   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1534   --mandir=DIR            man documentation [DATAROOTDIR/man]
1535   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1536   --htmldir=DIR           html documentation [DOCDIR]
1537   --dvidir=DIR            dvi documentation [DOCDIR]
1538   --pdfdir=DIR            pdf documentation [DOCDIR]
1539   --psdir=DIR             ps documentation [DOCDIR]
1540 _ACEOF
1541
1542   cat <<\_ACEOF
1543
1544 Program names:
1545   --program-prefix=PREFIX            prepend PREFIX to installed program names
1546   --program-suffix=SUFFIX            append SUFFIX to installed program names
1547   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1548
1549 System types:
1550   --build=BUILD     configure for building on BUILD [guessed]
1551   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1552 _ACEOF
1553 fi
1554
1555 if test -n "$ac_init_help"; then
1556   case $ac_init_help in
1557      short | recursive ) echo "Configuration of HarfBuzz 2.4.0:";;
1558    esac
1559   cat <<\_ACEOF
1560
1561 Optional Features:
1562   --disable-option-checking  ignore unrecognized --enable/--with options
1563   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1564   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1565   --enable-silent-rules   less verbose build output (undo: "make V=1")
1566   --disable-silent-rules  verbose build output (undo: "make V=0")
1567   --enable-code-coverage  Whether to enable code coverage support
1568   --enable-dependency-tracking
1569                           do not reject slow dependency extractors
1570   --disable-dependency-tracking
1571                           speeds up one-time build
1572   --enable-static[=PKGS]  build static libraries [default=no]
1573   --enable-shared[=PKGS]  build shared libraries [default=yes]
1574   --enable-fast-install[=PKGS]
1575                           optimize for fast installation [default=yes]
1576   --disable-libtool-lock  avoid locking (might break parallel builds)
1577   --disable-largefile     omit support for large files
1578   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1579   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1580   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1581   --enable-introspection=[no/auto/yes]
1582                           Enable introspection for this build
1583
1584 Optional Packages:
1585   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1586   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1587   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1588   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1589                           both]
1590   --with-aix-soname=aix|svr4|both
1591                           shared library versioning (aka "SONAME") variant to
1592                           provide on AIX, [default=aix].
1593   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1594   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1595                           compiler's sysroot if not specified).
1596   --with-libstdc++=[yes/no]
1597                           Allow linking with libstdc++ [default=no]
1598   --with-html-dir=PATH    path to installed docs
1599   --with-glib=[yes/no/auto]
1600                           Use glib [default=auto]
1601   --with-gobject=[yes/no/auto]
1602                           Use gobject [default=no]
1603   --with-cairo=[yes/no/auto]
1604                           Use cairo [default=auto]
1605   --with-fontconfig=[yes/no/auto]
1606                           Use fontconfig [default=auto]
1607   --with-icu=[yes/no/builtin/auto]
1608                           Use ICU [default=auto]
1609   --with-ucdn=[yes/no]    Use builtin UCDN library [default=yes]
1610   --with-graphite2=[yes/no/auto]
1611                           Use the graphite2 library [default=no]
1612   --with-freetype=[yes/no/auto]
1613                           Use the FreeType library [default=auto]
1614   --with-uniscribe=[yes/no/auto]
1615                           Use the Uniscribe library [default=no]
1616   --with-directwrite=[yes/no/auto]
1617                           Use the DirectWrite library (experimental)
1618                           [default=no]
1619   --with-coretext=[yes/no/auto]
1620                           Use CoreText [default=no]
1621
1622 Some influential environment variables:
1623   CC          C compiler command
1624   CFLAGS      C compiler flags
1625   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1626               nonstandard directory <lib dir>
1627   LIBS        libraries to pass to the linker, e.g. -l<library>
1628   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1629               you have headers in a nonstandard directory <include dir>
1630   LT_SYS_LIBRARY_PATH
1631               User-defined run-time library search path.
1632   CPP         C preprocessor
1633   CXX         C++ compiler command
1634   CXXFLAGS    C++ compiler flags
1635   CXXCPP      C++ preprocessor
1636   PKG_CONFIG  path to pkg-config utility
1637   PKG_CONFIG_PATH
1638               directories to add to pkg-config's search path
1639   PKG_CONFIG_LIBDIR
1640               path overriding pkg-config's built-in search path
1641   GTKDOC_DEPS_CFLAGS
1642               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1643   GTKDOC_DEPS_LIBS
1644               linker flags for GTKDOC_DEPS, overriding pkg-config
1645   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1646   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1647   GOBJECT_CFLAGS
1648               C compiler flags for GOBJECT, overriding pkg-config
1649   GOBJECT_LIBS
1650               linker flags for GOBJECT, overriding pkg-config
1651   CAIRO_CFLAGS
1652               C compiler flags for CAIRO, overriding pkg-config
1653   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1654   CAIRO_FT_CFLAGS
1655               C compiler flags for CAIRO_FT, overriding pkg-config
1656   CAIRO_FT_LIBS
1657               linker flags for CAIRO_FT, overriding pkg-config
1658   FONTCONFIG_CFLAGS
1659               C compiler flags for FONTCONFIG, overriding pkg-config
1660   FONTCONFIG_LIBS
1661               linker flags for FONTCONFIG, overriding pkg-config
1662   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1663   ICU_LIBS    linker flags for ICU, overriding pkg-config
1664   GRAPHITE2_CFLAGS
1665               C compiler flags for GRAPHITE2, overriding pkg-config
1666   GRAPHITE2_LIBS
1667               linker flags for GRAPHITE2, overriding pkg-config
1668   FREETYPE_CFLAGS
1669               C compiler flags for FREETYPE, overriding pkg-config
1670   FREETYPE_LIBS
1671               linker flags for FREETYPE, overriding pkg-config
1672
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1675
1676 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1677 HarfBuzz home page: <http://harfbuzz.org/>.
1678 _ACEOF
1679 ac_status=$?
1680 fi
1681
1682 if test "$ac_init_help" = "recursive"; then
1683   # If there are subdirs, report their specific --help.
1684   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1685     test -d "$ac_dir" ||
1686       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1687       continue
1688     ac_builddir=.
1689
1690 case "$ac_dir" in
1691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1692 *)
1693   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1694   # A ".." for each directory in $ac_dir_suffix.
1695   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1696   case $ac_top_builddir_sub in
1697   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699   esac ;;
1700 esac
1701 ac_abs_top_builddir=$ac_pwd
1702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1703 # for backward compatibility:
1704 ac_top_builddir=$ac_top_build_prefix
1705
1706 case $srcdir in
1707   .)  # We are building in place.
1708     ac_srcdir=.
1709     ac_top_srcdir=$ac_top_builddir_sub
1710     ac_abs_top_srcdir=$ac_pwd ;;
1711   [\\/]* | ?:[\\/]* )  # Absolute name.
1712     ac_srcdir=$srcdir$ac_dir_suffix;
1713     ac_top_srcdir=$srcdir
1714     ac_abs_top_srcdir=$srcdir ;;
1715   *) # Relative name.
1716     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1717     ac_top_srcdir=$ac_top_build_prefix$srcdir
1718     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1719 esac
1720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1721
1722     cd "$ac_dir" || { ac_status=$?; continue; }
1723     # Check for guested configure.
1724     if test -f "$ac_srcdir/configure.gnu"; then
1725       echo &&
1726       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1727     elif test -f "$ac_srcdir/configure"; then
1728       echo &&
1729       $SHELL "$ac_srcdir/configure" --help=recursive
1730     else
1731       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1732     fi || ac_status=$?
1733     cd "$ac_pwd" || { ac_status=$?; break; }
1734   done
1735 fi
1736
1737 test -n "$ac_init_help" && exit $ac_status
1738 if $ac_init_version; then
1739   cat <<\_ACEOF
1740 HarfBuzz configure 2.4.0
1741 generated by GNU Autoconf 2.69
1742
1743 Copyright (C) 2012 Free Software Foundation, Inc.
1744 This configure script is free software; the Free Software Foundation
1745 gives unlimited permission to copy, distribute and modify it.
1746 _ACEOF
1747   exit
1748 fi
1749
1750 ## ------------------------ ##
1751 ## Autoconf initialization. ##
1752 ## ------------------------ ##
1753
1754 # ac_fn_c_try_compile LINENO
1755 # --------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_compile ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   rm -f conftest.$ac_objext
1761   if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_compile") 2>conftest.err
1769   ac_status=$?
1770   if test -s conftest.err; then
1771     grep -v '^ *+' conftest.err >conftest.er1
1772     cat conftest.er1 >&5
1773     mv -f conftest.er1 conftest.err
1774   fi
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && {
1777          test -z "$ac_c_werror_flag" ||
1778          test ! -s conftest.err
1779        } && test -s conftest.$ac_objext; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785         ac_retval=1
1786 fi
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788   as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_compile
1791
1792 # ac_fn_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_link ()
1796 {
1797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798   rm -f conftest.$ac_objext conftest$ac_exeext
1799   if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_link") 2>conftest.err
1807   ac_status=$?
1808   if test -s conftest.err; then
1809     grep -v '^ *+' conftest.err >conftest.er1
1810     cat conftest.er1 >&5
1811     mv -f conftest.er1 conftest.err
1812   fi
1813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814   test $ac_status = 0; } && {
1815          test -z "$ac_c_werror_flag" ||
1816          test ! -s conftest.err
1817        } && test -s conftest$ac_exeext && {
1818          test "$cross_compiling" = yes ||
1819          test -x conftest$ac_exeext
1820        }; then :
1821   ac_retval=0
1822 else
1823   $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826         ac_retval=1
1827 fi
1828   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830   # interfere with the next link command; also delete a directory that is
1831   # left behind by Apple's compiler.  We do this before executing the actions.
1832   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834   as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists and can be compiled using the include files in
1841 # INCLUDES, setting the cache variable VAR accordingly.
1842 ac_fn_c_check_header_compile ()
1843 {
1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848   $as_echo_n "(cached) " >&6
1849 else
1850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h.  */
1852 $4
1853 #include <$2>
1854 _ACEOF
1855 if ac_fn_c_try_compile "$LINENO"; then :
1856   eval "$3=yes"
1857 else
1858   eval "$3=no"
1859 fi
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861 fi
1862 eval ac_res=\$$3
1863                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867 } # ac_fn_c_check_header_compile
1868
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_cpp ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883   ac_status=$?
1884   if test -s conftest.err; then
1885     grep -v '^ *+' conftest.err >conftest.er1
1886     cat conftest.er1 >&5
1887     mv -f conftest.er1 conftest.err
1888   fi
1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890   test $ac_status = 0; } > conftest.i && {
1891          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892          test ! -s conftest.err
1893        }; then :
1894   ac_retval=0
1895 else
1896   $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899     ac_retval=1
1900 fi
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902   as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_cpp
1905
1906 # ac_fn_c_try_run LINENO
1907 # ----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1909 # that executables *can* be run.
1910 ac_fn_c_try_run ()
1911 {
1912   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913   if { { ac_try="$ac_link"
1914 case "(($ac_try" in
1915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916   *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920   (eval "$ac_link") 2>&5
1921   ac_status=$?
1922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1924   { { case "(($ac_try" in
1925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926   *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930   (eval "$ac_try") 2>&5
1931   ac_status=$?
1932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933   test $ac_status = 0; }; }; then :
1934   ac_retval=0
1935 else
1936   $as_echo "$as_me: program exited with status $ac_status" >&5
1937        $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940        ac_retval=$ac_status
1941 fi
1942   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944   as_fn_set_status $ac_retval
1945
1946 } # ac_fn_c_try_run
1947
1948 # ac_fn_c_check_func LINENO FUNC VAR
1949 # ----------------------------------
1950 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1951 ac_fn_c_check_func ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957   $as_echo_n "(cached) " >&6
1958 else
1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1963 #define $2 innocuous_$2
1964
1965 /* System header to define __stub macros and hopefully few prototypes,
1966     which can conflict with char $2 (); below.
1967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1968     <limits.h> exists even on freestanding compilers.  */
1969
1970 #ifdef __STDC__
1971 # include <limits.h>
1972 #else
1973 # include <assert.h>
1974 #endif
1975
1976 #undef $2
1977
1978 /* Override any GCC internal prototype to avoid an error.
1979    Use char because int might match the return type of a GCC
1980    builtin and then its argument prototype would still apply.  */
1981 #ifdef __cplusplus
1982 extern "C"
1983 #endif
1984 char $2 ();
1985 /* The GNU C library defines this for functions which it implements
1986     to always fail with ENOSYS.  Some functions are actually named
1987     something starting with __ and the normal name is an alias.  */
1988 #if defined __stub_$2 || defined __stub___$2
1989 choke me
1990 #endif
1991
1992 int
1993 main ()
1994 {
1995 return $2 ();
1996   ;
1997   return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_link "$LINENO"; then :
2001   eval "$3=yes"
2002 else
2003   eval "$3=no"
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext \
2006     conftest$ac_exeext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_c_check_func
2014
2015 # ac_fn_cxx_try_compile LINENO
2016 # ----------------------------
2017 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_cxx_try_compile ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   rm -f conftest.$ac_objext
2022   if { { ac_try="$ac_compile"
2023 case "(($ac_try" in
2024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025   *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029   (eval "$ac_compile") 2>conftest.err
2030   ac_status=$?
2031   if test -s conftest.err; then
2032     grep -v '^ *+' conftest.err >conftest.er1
2033     cat conftest.er1 >&5
2034     mv -f conftest.er1 conftest.err
2035   fi
2036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037   test $ac_status = 0; } && {
2038          test -z "$ac_cxx_werror_flag" ||
2039          test ! -s conftest.err
2040        } && test -s conftest.$ac_objext; then :
2041   ac_retval=0
2042 else
2043   $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046         ac_retval=1
2047 fi
2048   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049   as_fn_set_status $ac_retval
2050
2051 } # ac_fn_cxx_try_compile
2052
2053 # ac_fn_cxx_try_cpp LINENO
2054 # ------------------------
2055 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2056 ac_fn_cxx_try_cpp ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   if { { ac_try="$ac_cpp conftest.$ac_ext"
2060 case "(($ac_try" in
2061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062   *) ac_try_echo=$ac_try;;
2063 esac
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2067   ac_status=$?
2068   if test -s conftest.err; then
2069     grep -v '^ *+' conftest.err >conftest.er1
2070     cat conftest.er1 >&5
2071     mv -f conftest.er1 conftest.err
2072   fi
2073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074   test $ac_status = 0; } > conftest.i && {
2075          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2076          test ! -s conftest.err
2077        }; then :
2078   ac_retval=0
2079 else
2080   $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.$ac_ext >&5
2082
2083     ac_retval=1
2084 fi
2085   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086   as_fn_set_status $ac_retval
2087
2088 } # ac_fn_cxx_try_cpp
2089
2090 # ac_fn_cxx_try_link LINENO
2091 # -------------------------
2092 # Try to link conftest.$ac_ext, and return whether this succeeded.
2093 ac_fn_cxx_try_link ()
2094 {
2095   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096   rm -f conftest.$ac_objext conftest$ac_exeext
2097   if { { ac_try="$ac_link"
2098 case "(($ac_try" in
2099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100   *) ac_try_echo=$ac_try;;
2101 esac
2102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103 $as_echo "$ac_try_echo"; } >&5
2104   (eval "$ac_link") 2>conftest.err
2105   ac_status=$?
2106   if test -s conftest.err; then
2107     grep -v '^ *+' conftest.err >conftest.er1
2108     cat conftest.er1 >&5
2109     mv -f conftest.er1 conftest.err
2110   fi
2111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112   test $ac_status = 0; } && {
2113          test -z "$ac_cxx_werror_flag" ||
2114          test ! -s conftest.err
2115        } && test -s conftest$ac_exeext && {
2116          test "$cross_compiling" = yes ||
2117          test -x conftest$ac_exeext
2118        }; then :
2119   ac_retval=0
2120 else
2121   $as_echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.$ac_ext >&5
2123
2124         ac_retval=1
2125 fi
2126   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2127   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2128   # interfere with the next link command; also delete a directory that is
2129   # left behind by Apple's compiler.  We do this before executing the actions.
2130   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132   as_fn_set_status $ac_retval
2133
2134 } # ac_fn_cxx_try_link
2135
2136 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2137 # ---------------------------------------------
2138 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2139 # accordingly.
2140 ac_fn_c_check_decl ()
2141 {
2142   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143   as_decl_name=`echo $2|sed 's/ *(.*//'`
2144   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2146 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2147 if eval \${$3+:} false; then :
2148   $as_echo_n "(cached) " >&6
2149 else
2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 int
2154 main ()
2155 {
2156 #ifndef $as_decl_name
2157 #ifdef __cplusplus
2158   (void) $as_decl_use;
2159 #else
2160   (void) $as_decl_name;
2161 #endif
2162 #endif
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169   eval "$3=yes"
2170 else
2171   eval "$3=no"
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 fi
2175 eval ac_res=\$$3
2176                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179
2180 } # ac_fn_c_check_decl
2181
2182 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2183 # -------------------------------------------------------
2184 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2185 # the include files in INCLUDES and setting the cache variable VAR
2186 # accordingly.
2187 ac_fn_c_check_header_mongrel ()
2188 {
2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190   if eval \${$3+:} false; then :
2191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if eval \${$3+:} false; then :
2194   $as_echo_n "(cached) " >&6
2195 fi
2196 eval ac_res=\$$3
2197                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198 $as_echo "$ac_res" >&6; }
2199 else
2200   # Is the header compilable?
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2202 $as_echo_n "checking $2 usability... " >&6; }
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h.  */
2205 $4
2206 #include <$2>
2207 _ACEOF
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209   ac_header_compiler=yes
2210 else
2211   ac_header_compiler=no
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2215 $as_echo "$ac_header_compiler" >&6; }
2216
2217 # Is the header present?
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2219 $as_echo_n "checking $2 presence... " >&6; }
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 #include <$2>
2223 _ACEOF
2224 if ac_fn_c_try_cpp "$LINENO"; then :
2225   ac_header_preproc=yes
2226 else
2227   ac_header_preproc=no
2228 fi
2229 rm -f conftest.err conftest.i conftest.$ac_ext
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2231 $as_echo "$ac_header_preproc" >&6; }
2232
2233 # So?  What about this header?
2234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2235   yes:no: )
2236     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2237 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2238     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240     ;;
2241   no:yes:* )
2242     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2243 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2244     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2245 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2246     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2247 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2248     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2249 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2250     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2251 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2252 ( $as_echo "## -------------------------------------------------------------- ##
2253 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2254 ## -------------------------------------------------------------- ##"
2255      ) | sed "s/^/$as_me: WARNING:     /" >&2
2256     ;;
2257 esac
2258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261   $as_echo_n "(cached) " >&6
2262 else
2263   eval "$3=\$ac_header_compiler"
2264 fi
2265 eval ac_res=\$$3
2266                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 fi
2269   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270
2271 } # ac_fn_c_check_header_mongrel
2272
2273 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2274 # --------------------------------------------
2275 # Tries to find the compile-time value of EXPR in a program that includes
2276 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2277 # computed
2278 ac_fn_c_compute_int ()
2279 {
2280   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281   if test "$cross_compiling" = yes; then
2282     # Depending upon the size, compute the lo and hi bounds.
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $4
2286 int
2287 main ()
2288 {
2289 static int test_array [1 - 2 * !(($2) >= 0)];
2290 test_array [0] = 0;
2291 return test_array [0];
2292
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298   ac_lo=0 ac_mid=0
2299   while :; do
2300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $4
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2307 test_array [0] = 0;
2308 return test_array [0];
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315   ac_hi=$ac_mid; break
2316 else
2317   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2318                         if test $ac_lo -le $ac_mid; then
2319                           ac_lo= ac_hi=
2320                           break
2321                         fi
2322                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2323 fi
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325   done
2326 else
2327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h.  */
2329 $4
2330 int
2331 main ()
2332 {
2333 static int test_array [1 - 2 * !(($2) < 0)];
2334 test_array [0] = 0;
2335 return test_array [0];
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342   ac_hi=-1 ac_mid=-1
2343   while :; do
2344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h.  */
2346 $4
2347 int
2348 main ()
2349 {
2350 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2351 test_array [0] = 0;
2352 return test_array [0];
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359   ac_lo=$ac_mid; break
2360 else
2361   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2362                         if test $ac_mid -le $ac_hi; then
2363                           ac_lo= ac_hi=
2364                           break
2365                         fi
2366                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369   done
2370 else
2371   ac_lo= ac_hi=
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 fi
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 # Binary search between lo and hi bounds.
2377 while test "x$ac_lo" != "x$ac_hi"; do
2378   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h.  */
2381 $4
2382 int
2383 main ()
2384 {
2385 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2386 test_array [0] = 0;
2387 return test_array [0];
2388
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394   ac_hi=$ac_mid
2395 else
2396   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 done
2400 case $ac_lo in #((
2401 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2402 '') ac_retval=1 ;;
2403 esac
2404   else
2405     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h.  */
2407 $4
2408 static long int longval () { return $2; }
2409 static unsigned long int ulongval () { return $2; }
2410 #include <stdio.h>
2411 #include <stdlib.h>
2412 int
2413 main ()
2414 {
2415
2416   FILE *f = fopen ("conftest.val", "w");
2417   if (! f)
2418     return 1;
2419   if (($2) < 0)
2420     {
2421       long int i = longval ();
2422       if (i != ($2))
2423         return 1;
2424       fprintf (f, "%ld", i);
2425     }
2426   else
2427     {
2428       unsigned long int i = ulongval ();
2429       if (i != ($2))
2430         return 1;
2431       fprintf (f, "%lu", i);
2432     }
2433   /* Do not output a trailing newline, as this causes \r\n confusion
2434      on some platforms.  */
2435   return ferror (f) || fclose (f) != 0;
2436
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 if ac_fn_c_try_run "$LINENO"; then :
2442   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2443 else
2444   ac_retval=1
2445 fi
2446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2447   conftest.$ac_objext conftest.beam conftest.$ac_ext
2448 rm -f conftest.val
2449
2450   fi
2451   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2452   as_fn_set_status $ac_retval
2453
2454 } # ac_fn_c_compute_int
2455
2456 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2457 # ---------------------------------------------------------
2458 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2459 # the include files in INCLUDES and setting the cache variable VAR
2460 # accordingly.
2461 ac_fn_cxx_check_header_mongrel ()
2462 {
2463   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464   if eval \${$3+:} false; then :
2465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2466 $as_echo_n "checking for $2... " >&6; }
2467 if eval \${$3+:} false; then :
2468   $as_echo_n "(cached) " >&6
2469 fi
2470 eval ac_res=\$$3
2471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 else
2474   # Is the header compilable?
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2476 $as_echo_n "checking $2 usability... " >&6; }
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h.  */
2479 $4
2480 #include <$2>
2481 _ACEOF
2482 if ac_fn_cxx_try_compile "$LINENO"; then :
2483   ac_header_compiler=yes
2484 else
2485   ac_header_compiler=no
2486 fi
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2489 $as_echo "$ac_header_compiler" >&6; }
2490
2491 # Is the header present?
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2493 $as_echo_n "checking $2 presence... " >&6; }
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h.  */
2496 #include <$2>
2497 _ACEOF
2498 if ac_fn_cxx_try_cpp "$LINENO"; then :
2499   ac_header_preproc=yes
2500 else
2501   ac_header_preproc=no
2502 fi
2503 rm -f conftest.err conftest.i conftest.$ac_ext
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2505 $as_echo "$ac_header_preproc" >&6; }
2506
2507 # So?  What about this header?
2508 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2509   yes:no: )
2510     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2511 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2512     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2513 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2514     ;;
2515   no:yes:* )
2516     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2517 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2518     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2519 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2520     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2521 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2522     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2523 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2524     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2525 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2526 ( $as_echo "## -------------------------------------------------------------- ##
2527 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2528 ## -------------------------------------------------------------- ##"
2529      ) | sed "s/^/$as_me: WARNING:     /" >&2
2530     ;;
2531 esac
2532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2533 $as_echo_n "checking for $2... " >&6; }
2534 if eval \${$3+:} false; then :
2535   $as_echo_n "(cached) " >&6
2536 else
2537   eval "$3=\$ac_header_compiler"
2538 fi
2539 eval ac_res=\$$3
2540                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2541 $as_echo "$ac_res" >&6; }
2542 fi
2543   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2544
2545 } # ac_fn_cxx_check_header_mongrel
2546
2547 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2548 # -------------------------------------------
2549 # Tests whether TYPE exists after having included INCLUDES, setting cache
2550 # variable VAR accordingly.
2551 ac_fn_c_check_type ()
2552 {
2553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555 $as_echo_n "checking for $2... " >&6; }
2556 if eval \${$3+:} false; then :
2557   $as_echo_n "(cached) " >&6
2558 else
2559   eval "$3=no"
2560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h.  */
2562 $4
2563 int
2564 main ()
2565 {
2566 if (sizeof ($2))
2567          return 0;
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 if ac_fn_c_try_compile "$LINENO"; then :
2573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h.  */
2575 $4
2576 int
2577 main ()
2578 {
2579 if (sizeof (($2)))
2580             return 0;
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 if ac_fn_c_try_compile "$LINENO"; then :
2586
2587 else
2588   eval "$3=yes"
2589 fi
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 fi
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 fi
2594 eval ac_res=\$$3
2595                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598
2599 } # ac_fn_c_check_type
2600 cat >config.log <<_ACEOF
2601 This file contains any messages produced by compilers while
2602 running configure, to aid debugging if configure makes a mistake.
2603
2604 It was created by HarfBuzz $as_me 2.4.0, which was
2605 generated by GNU Autoconf 2.69.  Invocation command line was
2606
2607   $ $0 $@
2608
2609 _ACEOF
2610 exec 5>>config.log
2611 {
2612 cat <<_ASUNAME
2613 ## --------- ##
2614 ## Platform. ##
2615 ## --------- ##
2616
2617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2622
2623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2624 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2625
2626 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2627 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2629 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2630 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2631 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2632 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2633
2634 _ASUNAME
2635
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641     $as_echo "PATH: $as_dir"
2642   done
2643 IFS=$as_save_IFS
2644
2645 } >&5
2646
2647 cat >&5 <<_ACEOF
2648
2649
2650 ## ----------- ##
2651 ## Core tests. ##
2652 ## ----------- ##
2653
2654 _ACEOF
2655
2656
2657 # Keep a trace of the command line.
2658 # Strip out --no-create and --no-recursion so they do not pile up.
2659 # Strip out --silent because we don't want to record it for future runs.
2660 # Also quote any args containing shell meta-characters.
2661 # Make two passes to allow for proper duplicate-argument suppression.
2662 ac_configure_args=
2663 ac_configure_args0=
2664 ac_configure_args1=
2665 ac_must_keep_next=false
2666 for ac_pass in 1 2
2667 do
2668   for ac_arg
2669   do
2670     case $ac_arg in
2671     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2672     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2673     | -silent | --silent | --silen | --sile | --sil)
2674       continue ;;
2675     *\'*)
2676       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2677     esac
2678     case $ac_pass in
2679     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2680     2)
2681       as_fn_append ac_configure_args1 " '$ac_arg'"
2682       if test $ac_must_keep_next = true; then
2683         ac_must_keep_next=false # Got value, back to normal.
2684       else
2685         case $ac_arg in
2686           *=* | --config-cache | -C | -disable-* | --disable-* \
2687           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2688           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2689           | -with-* | --with-* | -without-* | --without-* | --x)
2690             case "$ac_configure_args0 " in
2691               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2692             esac
2693             ;;
2694           -* ) ac_must_keep_next=true ;;
2695         esac
2696       fi
2697       as_fn_append ac_configure_args " '$ac_arg'"
2698       ;;
2699     esac
2700   done
2701 done
2702 { ac_configure_args0=; unset ac_configure_args0;}
2703 { ac_configure_args1=; unset ac_configure_args1;}
2704
2705 # When interrupted or exit'd, cleanup temporary files, and complete
2706 # config.log.  We remove comments because anyway the quotes in there
2707 # would cause problems or look ugly.
2708 # WARNING: Use '\'' to represent an apostrophe within the trap.
2709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2710 trap 'exit_status=$?
2711   # Save into config.log some information that might help in debugging.
2712   {
2713     echo
2714
2715     $as_echo "## ---------------- ##
2716 ## Cache variables. ##
2717 ## ---------------- ##"
2718     echo
2719     # The following way of writing the cache mishandles newlines in values,
2720 (
2721   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2722     eval ac_val=\$$ac_var
2723     case $ac_val in #(
2724     *${as_nl}*)
2725       case $ac_var in #(
2726       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2728       esac
2729       case $ac_var in #(
2730       _ | IFS | as_nl) ;; #(
2731       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2732       *) { eval $ac_var=; unset $ac_var;} ;;
2733       esac ;;
2734     esac
2735   done
2736   (set) 2>&1 |
2737     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2738     *${as_nl}ac_space=\ *)
2739       sed -n \
2740         "s/'\''/'\''\\\\'\'''\''/g;
2741           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2742       ;; #(
2743     *)
2744       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2745       ;;
2746     esac |
2747     sort
2748 )
2749     echo
2750
2751     $as_echo "## ----------------- ##
2752 ## Output variables. ##
2753 ## ----------------- ##"
2754     echo
2755     for ac_var in $ac_subst_vars
2756     do
2757       eval ac_val=\$$ac_var
2758       case $ac_val in
2759       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2760       esac
2761       $as_echo "$ac_var='\''$ac_val'\''"
2762     done | sort
2763     echo
2764
2765     if test -n "$ac_subst_files"; then
2766       $as_echo "## ------------------- ##
2767 ## File substitutions. ##
2768 ## ------------------- ##"
2769       echo
2770       for ac_var in $ac_subst_files
2771       do
2772         eval ac_val=\$$ac_var
2773         case $ac_val in
2774         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2775         esac
2776         $as_echo "$ac_var='\''$ac_val'\''"
2777       done | sort
2778       echo
2779     fi
2780
2781     if test -s confdefs.h; then
2782       $as_echo "## ----------- ##
2783 ## confdefs.h. ##
2784 ## ----------- ##"
2785       echo
2786       cat confdefs.h
2787       echo
2788     fi
2789     test "$ac_signal" != 0 &&
2790       $as_echo "$as_me: caught signal $ac_signal"
2791     $as_echo "$as_me: exit $exit_status"
2792   } >&5
2793   rm -f core *.core core.conftest.* &&
2794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2795     exit $exit_status
2796 ' 0
2797 for ac_signal in 1 2 13 15; do
2798   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2799 done
2800 ac_signal=0
2801
2802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2803 rm -f -r conftest* confdefs.h
2804
2805 $as_echo "/* confdefs.h */" > confdefs.h
2806
2807 # Predefined preprocessor variables.
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_NAME "$PACKAGE_NAME"
2811 _ACEOF
2812
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2815 _ACEOF
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2819 _ACEOF
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_STRING "$PACKAGE_STRING"
2823 _ACEOF
2824
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2827 _ACEOF
2828
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_URL "$PACKAGE_URL"
2831 _ACEOF
2832
2833
2834 # Let the site file select an alternate cache file if it wants to.
2835 # Prefer an explicitly selected file to automatically selected ones.
2836 ac_site_file1=NONE
2837 ac_site_file2=NONE
2838 if test -n "$CONFIG_SITE"; then
2839   # We do not want a PATH search for config.site.
2840   case $CONFIG_SITE in #((
2841     -*)  ac_site_file1=./$CONFIG_SITE;;
2842     */*) ac_site_file1=$CONFIG_SITE;;
2843     *)   ac_site_file1=./$CONFIG_SITE;;
2844   esac
2845 elif test "x$prefix" != xNONE; then
2846   ac_site_file1=$prefix/share/config.site
2847   ac_site_file2=$prefix/etc/config.site
2848 else
2849   ac_site_file1=$ac_default_prefix/share/config.site
2850   ac_site_file2=$ac_default_prefix/etc/config.site
2851 fi
2852 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2853 do
2854   test "x$ac_site_file" = xNONE && continue
2855   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2856     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2857 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2858     sed 's/^/| /' "$ac_site_file" >&5
2859     . "$ac_site_file" \
2860       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862 as_fn_error $? "failed to load site script $ac_site_file
2863 See \`config.log' for more details" "$LINENO" 5; }
2864   fi
2865 done
2866
2867 if test -r "$cache_file"; then
2868   # Some versions of bash will fail to source /dev/null (special files
2869   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2870   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2871     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2872 $as_echo "$as_me: loading cache $cache_file" >&6;}
2873     case $cache_file in
2874       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2875       *)                      . "./$cache_file";;
2876     esac
2877   fi
2878 else
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2880 $as_echo "$as_me: creating cache $cache_file" >&6;}
2881   >$cache_file
2882 fi
2883
2884 # Check that the precious variables saved in the cache have kept the same
2885 # value.
2886 ac_cache_corrupted=false
2887 for ac_var in $ac_precious_vars; do
2888   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2889   eval ac_new_set=\$ac_env_${ac_var}_set
2890   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2891   eval ac_new_val=\$ac_env_${ac_var}_value
2892   case $ac_old_set,$ac_new_set in
2893     set,)
2894       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2895 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2896       ac_cache_corrupted=: ;;
2897     ,set)
2898       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2899 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2900       ac_cache_corrupted=: ;;
2901     ,);;
2902     *)
2903       if test "x$ac_old_val" != "x$ac_new_val"; then
2904         # differences in whitespace do not lead to failure.
2905         ac_old_val_w=`echo x $ac_old_val`
2906         ac_new_val_w=`echo x $ac_new_val`
2907         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2908           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2909 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2910           ac_cache_corrupted=:
2911         else
2912           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2913 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2914           eval $ac_var=\$ac_old_val
2915         fi
2916         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2917 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2918         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2919 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2920       fi;;
2921   esac
2922   # Pass precious variables to config.status.
2923   if test "$ac_new_set" = set; then
2924     case $ac_new_val in
2925     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2926     *) ac_arg=$ac_var=$ac_new_val ;;
2927     esac
2928     case " $ac_configure_args " in
2929       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2930       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2931     esac
2932   fi
2933 done
2934 if $ac_cache_corrupted; then
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2938 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2939   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2940 fi
2941 ## -------------------- ##
2942 ## Main body of script. ##
2943 ## -------------------- ##
2944
2945 ac_ext=c
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950
2951
2952
2953
2954
2955 ac_config_headers="$ac_config_headers config.h"
2956
2957
2958 am__api_version='1.16'
2959
2960 ac_aux_dir=
2961 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2962   if test -f "$ac_dir/install-sh"; then
2963     ac_aux_dir=$ac_dir
2964     ac_install_sh="$ac_aux_dir/install-sh -c"
2965     break
2966   elif test -f "$ac_dir/install.sh"; then
2967     ac_aux_dir=$ac_dir
2968     ac_install_sh="$ac_aux_dir/install.sh -c"
2969     break
2970   elif test -f "$ac_dir/shtool"; then
2971     ac_aux_dir=$ac_dir
2972     ac_install_sh="$ac_aux_dir/shtool install -c"
2973     break
2974   fi
2975 done
2976 if test -z "$ac_aux_dir"; then
2977   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2978 fi
2979
2980 # These three variables are undocumented and unsupported,
2981 # and are intended to be withdrawn in a future Autoconf release.
2982 # They can cause serious problems if a builder's source tree is in a directory
2983 # whose full name contains unusual characters.
2984 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2985 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2986 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2987
2988
2989 # Find a good install program.  We prefer a C program (faster),
2990 # so one script is as good as another.  But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2995 # AIX /bin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 # Reject install programs that cannot install multiple files.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3004 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3005 if test -z "$INSTALL"; then
3006 if ${ac_cv_path_install+:} false; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014     # Account for people who put trailing slashes in PATH elements.
3015 case $as_dir/ in #((
3016   ./ | .// | /[cC]/* | \
3017   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3018   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3019   /usr/ucb/* ) ;;
3020   *)
3021     # OSF1 and SCO ODT 3.0 have their own names for install.
3022     # Don't use installbsd from OSF since it installs stuff as root
3023     # by default.
3024     for ac_prog in ginstall scoinst install; do
3025       for ac_exec_ext in '' $ac_executable_extensions; do
3026         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3027           if test $ac_prog = install &&
3028             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3029             # AIX install.  It has an incompatible calling convention.
3030             :
3031           elif test $ac_prog = install &&
3032             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033             # program-specific install script used by HP pwplus--don't use.
3034             :
3035           else
3036             rm -rf conftest.one conftest.two conftest.dir
3037             echo one > conftest.one
3038             echo two > conftest.two
3039             mkdir conftest.dir
3040             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3041               test -s conftest.one && test -s conftest.two &&
3042               test -s conftest.dir/conftest.one &&
3043               test -s conftest.dir/conftest.two
3044             then
3045               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3046               break 3
3047             fi
3048           fi
3049         fi
3050       done
3051     done
3052     ;;
3053 esac
3054
3055   done
3056 IFS=$as_save_IFS
3057
3058 rm -rf conftest.one conftest.two conftest.dir
3059
3060 fi
3061   if test "${ac_cv_path_install+set}" = set; then
3062     INSTALL=$ac_cv_path_install
3063   else
3064     # As a last resort, use the slow shell script.  Don't cache a
3065     # value for INSTALL within a source directory, because that will
3066     # break other packages using the cache if that directory is
3067     # removed, or if the value is a relative name.
3068     INSTALL=$ac_install_sh
3069   fi
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3072 $as_echo "$INSTALL" >&6; }
3073
3074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075 # It thinks the first close brace ends the variable substitution.
3076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3077
3078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3079
3080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3081
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3083 $as_echo_n "checking whether build environment is sane... " >&6; }
3084 # Reject unsafe characters in $srcdir or the absolute working directory
3085 # name.  Accept space and tab only in the latter.
3086 am_lf='
3087 '
3088 case `pwd` in
3089   *[\\\"\#\$\&\'\`$am_lf]*)
3090     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3091 esac
3092 case $srcdir in
3093   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3094     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3095 esac
3096
3097 # Do 'set' in a subshell so we don't clobber the current shell's
3098 # arguments.  Must try -L first in case configure is actually a
3099 # symlink; some systems play weird games with the mod time of symlinks
3100 # (eg FreeBSD returns the mod time of the symlink's containing
3101 # directory).
3102 if (
3103    am_has_slept=no
3104    for am_try in 1 2; do
3105      echo "timestamp, slept: $am_has_slept" > conftest.file
3106      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3107      if test "$*" = "X"; then
3108         # -L didn't work.
3109         set X `ls -t "$srcdir/configure" conftest.file`
3110      fi
3111      if test "$*" != "X $srcdir/configure conftest.file" \
3112         && test "$*" != "X conftest.file $srcdir/configure"; then
3113
3114         # If neither matched, then we have a broken ls.  This can happen
3115         # if, for instance, CONFIG_SHELL is bash and it inherits a
3116         # broken ls alias from the environment.  This has actually
3117         # happened.  Such a system could not be considered "sane".
3118         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3119   alias in your environment" "$LINENO" 5
3120      fi
3121      if test "$2" = conftest.file || test $am_try -eq 2; then
3122        break
3123      fi
3124      # Just in case.
3125      sleep 1
3126      am_has_slept=yes
3127    done
3128    test "$2" = conftest.file
3129    )
3130 then
3131    # Ok.
3132    :
3133 else
3134    as_fn_error $? "newly created file is older than distributed files!
3135 Check your system clock" "$LINENO" 5
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139 # If we didn't sleep, we still need to ensure time stamps of config.status and
3140 # generated files are strictly newer.
3141 am_sleep_pid=
3142 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3143   ( sleep 1 ) &
3144   am_sleep_pid=$!
3145 fi
3146
3147 rm -f conftest.file
3148
3149 test "$program_prefix" != NONE &&
3150   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3151 # Use a double $ so make ignores it.
3152 test "$program_suffix" != NONE &&
3153   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3154 # Double any \ or $.
3155 # By default was `s,x,x', remove it if useless.
3156 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3157 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3158
3159 # Expand $ac_aux_dir to an absolute path.
3160 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3161
3162 if test x"${MISSING+set}" != xset; then
3163   case $am_aux_dir in
3164   *\ * | *\     *)
3165     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3166   *)
3167     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3168   esac
3169 fi
3170 # Use eval to expand $SHELL
3171 if eval "$MISSING --is-lightweight"; then
3172   am_missing_run="$MISSING "
3173 else
3174   am_missing_run=
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3176 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3177 fi
3178
3179 if test x"${install_sh+set}" != xset; then
3180   case $am_aux_dir in
3181   *\ * | *\     *)
3182     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3183   *)
3184     install_sh="\${SHELL} $am_aux_dir/install-sh"
3185   esac
3186 fi
3187
3188 # Installed binaries are usually stripped using 'strip' when the user
3189 # run "make install-strip".  However 'strip' might not be the right
3190 # tool to use in cross-compilation environments, therefore Automake
3191 # will honor the 'STRIP' environment variable to overrule this program.
3192 if test "$cross_compiling" != no; then
3193   if test -n "$ac_tool_prefix"; then
3194   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}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_STRIP+:} false; then :
3199   $as_echo_n "(cached) " >&6
3200 else
3201   if test -n "$STRIP"; then
3202   ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 STRIP=$ac_cv_prog_STRIP
3222 if test -n "$STRIP"; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3224 $as_echo "$STRIP" >&6; }
3225 else
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231 fi
3232 if test -z "$ac_cv_prog_STRIP"; then
3233   ac_ct_STRIP=$STRIP
3234   # Extract the first word of "strip", so it can be a program name with args.
3235 set dummy strip; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3239   $as_echo_n "(cached) " >&6
3240 else
3241   if test -n "$ac_ct_STRIP"; then
3242   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247   IFS=$as_save_IFS
3248   test -z "$as_dir" && as_dir=.
3249     for ac_exec_ext in '' $ac_executable_extensions; do
3250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251     ac_cv_prog_ac_ct_STRIP="strip"
3252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253     break 2
3254   fi
3255 done
3256   done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3262 if test -n "$ac_ct_STRIP"; then
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3264 $as_echo "$ac_ct_STRIP" >&6; }
3265 else
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 fi
3269
3270   if test "x$ac_ct_STRIP" = x; then
3271     STRIP=":"
3272   else
3273     case $cross_compiling:$ac_tool_warned in
3274 yes:)
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3277 ac_tool_warned=yes ;;
3278 esac
3279     STRIP=$ac_ct_STRIP
3280   fi
3281 else
3282   STRIP="$ac_cv_prog_STRIP"
3283 fi
3284
3285 fi
3286 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3287
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3289 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3290 if test -z "$MKDIR_P"; then
3291   if ${ac_cv_path_mkdir+:} false; then :
3292   $as_echo_n "(cached) " >&6
3293 else
3294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299     for ac_prog in mkdir gmkdir; do
3300          for ac_exec_ext in '' $ac_executable_extensions; do
3301            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3302            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3303              'mkdir (GNU coreutils) '* | \
3304              'mkdir (coreutils) '* | \
3305              'mkdir (fileutils) '4.1*)
3306                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3307                break 3;;
3308            esac
3309          done
3310        done
3311   done
3312 IFS=$as_save_IFS
3313
3314 fi
3315
3316   test -d ./--version && rmdir ./--version
3317   if test "${ac_cv_path_mkdir+set}" = set; then
3318     MKDIR_P="$ac_cv_path_mkdir -p"
3319   else
3320     # As a last resort, use the slow shell script.  Don't cache a
3321     # value for MKDIR_P within a source directory, because that will
3322     # break other packages using the cache if that directory is
3323     # removed, or if the value is a relative name.
3324     MKDIR_P="$ac_install_sh -d"
3325   fi
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3328 $as_echo "$MKDIR_P" >&6; }
3329
3330 for ac_prog in gawk mawk nawk awk
3331 do
3332   # Extract the first word of "$ac_prog", so it can be a program name with args.
3333 set dummy $ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_AWK+:} false; then :
3337   $as_echo_n "(cached) " >&6
3338 else
3339   if test -n "$AWK"; then
3340   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347     for ac_exec_ext in '' $ac_executable_extensions; do
3348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349     ac_cv_prog_AWK="$ac_prog"
3350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354   done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 AWK=$ac_cv_prog_AWK
3360 if test -n "$AWK"; then
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3362 $as_echo "$AWK" >&6; }
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369   test -n "$AWK" && break
3370 done
3371
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3373 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3374 set x ${MAKE-make}
3375 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3376 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   cat >conftest.make <<\_ACEOF
3380 SHELL = /bin/sh
3381 all:
3382         @echo '@@@%%%=$(MAKE)=@@@%%%'
3383 _ACEOF
3384 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3385 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3386   *@@@%%%=?*=@@@%%%*)
3387     eval ac_cv_prog_make_${ac_make}_set=yes;;
3388   *)
3389     eval ac_cv_prog_make_${ac_make}_set=no;;
3390 esac
3391 rm -f conftest.make
3392 fi
3393 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3396   SET_MAKE=
3397 else
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400   SET_MAKE="MAKE=${MAKE-make}"
3401 fi
3402
3403 rm -rf .tst 2>/dev/null
3404 mkdir .tst 2>/dev/null
3405 if test -d .tst; then
3406   am__leading_dot=.
3407 else
3408   am__leading_dot=_
3409 fi
3410 rmdir .tst 2>/dev/null
3411
3412 # Check whether --enable-silent-rules was given.
3413 if test "${enable_silent_rules+set}" = set; then :
3414   enableval=$enable_silent_rules;
3415 fi
3416
3417 case $enable_silent_rules in # (((
3418   yes) AM_DEFAULT_VERBOSITY=0;;
3419    no) AM_DEFAULT_VERBOSITY=1;;
3420     *) AM_DEFAULT_VERBOSITY=1;;
3421 esac
3422 am_make=${MAKE-make}
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3424 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3425 if ${am_cv_make_support_nested_variables+:} false; then :
3426   $as_echo_n "(cached) " >&6
3427 else
3428   if $as_echo 'TRUE=$(BAR$(V))
3429 BAR0=false
3430 BAR1=true
3431 V=1
3432 am__doit:
3433         @$(TRUE)
3434 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3435   am_cv_make_support_nested_variables=yes
3436 else
3437   am_cv_make_support_nested_variables=no
3438 fi
3439 fi
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3441 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3442 if test $am_cv_make_support_nested_variables = yes; then
3443     AM_V='$(V)'
3444   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3445 else
3446   AM_V=$AM_DEFAULT_VERBOSITY
3447   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3448 fi
3449 AM_BACKSLASH='\'
3450
3451 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3452   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3453   # is not polluted with repeated "-I."
3454   am__isrc=' -I$(srcdir)'
3455   # test to see if srcdir already configured
3456   if test -f $srcdir/config.status; then
3457     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3458   fi
3459 fi
3460
3461 # test whether we have cygpath
3462 if test -z "$CYGPATH_W"; then
3463   if (cygpath --version) >/dev/null 2>/dev/null; then
3464     CYGPATH_W='cygpath -w'
3465   else
3466     CYGPATH_W=echo
3467   fi
3468 fi
3469
3470
3471 # Define the identity of the package.
3472  PACKAGE='harfbuzz'
3473  VERSION='2.4.0'
3474
3475
3476 # Some tools Automake needs.
3477
3478 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3479
3480
3481 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3482
3483
3484 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3485
3486
3487 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3488
3489
3490 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3491
3492 # For better backward compatibility.  To be removed once Automake 1.9.x
3493 # dies out for good.  For more background, see:
3494 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3495 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3496 mkdir_p='$(MKDIR_P)'
3497
3498 # We need awk for the "check" target (and possibly the TAP driver).  The
3499 # system "awk" is bad on some platforms.
3500 # Always define AMTAR for backward compatibility.  Yes, it's still used
3501 # in the wild :-(  We should find a proper way to deprecate it ...
3502 AMTAR='$${TAR-tar}'
3503
3504
3505 # We'll loop over all known methods to create a tar archive until one works.
3506 _am_tools='gnutar plaintar pax cpio none'
3507
3508 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3509       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3510       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3511       # and bug#13588).
3512       am_max_uid=2097151 # 2^21 - 1
3513       am_max_gid=$am_max_uid
3514       # The $UID and $GID variables are not portable, so we need to resort
3515       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3516       # below are definitely unexpected, so allow the users to see them
3517       # (that is, avoid stderr redirection).
3518       am_uid=`id -u || echo unknown`
3519       am_gid=`id -g || echo unknown`
3520       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3521 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3522       if test $am_uid -le $am_max_uid; then
3523          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3524 $as_echo "yes" >&6; }
3525       else
3526          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528          _am_tools=none
3529       fi
3530       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3531 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3532       if test $am_gid -le $am_max_gid; then
3533          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3534 $as_echo "yes" >&6; }
3535       else
3536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538         _am_tools=none
3539       fi
3540
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3542 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3543
3544   # Go ahead even if we have the value already cached.  We do so because we
3545   # need to set the values for the 'am__tar' and 'am__untar' variables.
3546   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3547
3548   for _am_tool in $_am_tools; do
3549     case $_am_tool in
3550     gnutar)
3551       for _am_tar in tar gnutar gtar; do
3552         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3553    ($_am_tar --version) >&5 2>&5
3554    ac_status=$?
3555    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556    (exit $ac_status); } && break
3557       done
3558       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3559       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3560       am__untar="$_am_tar -xf -"
3561       ;;
3562     plaintar)
3563       # Must skip GNU tar: if it does not support --format= it doesn't create
3564       # ustar tarball either.
3565       (tar --version) >/dev/null 2>&1 && continue
3566       am__tar='tar chf - "$$tardir"'
3567       am__tar_='tar chf - "$tardir"'
3568       am__untar='tar xf -'
3569       ;;
3570     pax)
3571       am__tar='pax -L -x ustar -w "$$tardir"'
3572       am__tar_='pax -L -x ustar -w "$tardir"'
3573       am__untar='pax -r'
3574       ;;
3575     cpio)
3576       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3577       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3578       am__untar='cpio -i -H ustar -d'
3579       ;;
3580     none)
3581       am__tar=false
3582       am__tar_=false
3583       am__untar=false
3584       ;;
3585     esac
3586
3587     # If the value was cached, stop now.  We just wanted to have am__tar
3588     # and am__untar set.
3589     test -n "${am_cv_prog_tar_ustar}" && break
3590
3591     # tar/untar a dummy directory, and stop if the command works.
3592     rm -rf conftest.dir
3593     mkdir conftest.dir
3594     echo GrepMe > conftest.dir/file
3595     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3596    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3597    ac_status=$?
3598    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599    (exit $ac_status); }
3600     rm -rf conftest.dir
3601     if test -s conftest.tar; then
3602       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3603    ($am__untar <conftest.tar) >&5 2>&5
3604    ac_status=$?
3605    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606    (exit $ac_status); }
3607       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3608    (cat conftest.dir/file) >&5 2>&5
3609    ac_status=$?
3610    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611    (exit $ac_status); }
3612       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3613     fi
3614   done
3615   rm -rf conftest.dir
3616
3617   if ${am_cv_prog_tar_ustar+:} false; then :
3618   $as_echo_n "(cached) " >&6
3619 else
3620   am_cv_prog_tar_ustar=$_am_tool
3621 fi
3622
3623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3624 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3625
3626
3627
3628
3629
3630
3631 # POSIX will say in a future version that running "rm -f" with no argument
3632 # is OK; and we want to be able to make that assumption in our Makefile
3633 # recipes.  So use an aggressive probe to check that the usage we want is
3634 # actually supported "in the wild" to an acceptable degree.
3635 # See automake bug#10828.
3636 # To make any issue more visible, cause the running configure to be aborted
3637 # by default if the 'rm' program in use doesn't match our expectations; the
3638 # user can still override this though.
3639 if rm -f && rm -fr && rm -rf; then : OK; else
3640   cat >&2 <<'END'
3641 Oops!
3642
3643 Your 'rm' program seems unable to run without file operands specified
3644 on the command line, even when the '-f' option is present.  This is contrary
3645 to the behaviour of most rm programs out there, and not conforming with
3646 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3647
3648 Please tell bug-automake@gnu.org about your system, including the value
3649 of your $PATH and any error possibly output before this message.  This
3650 can help us improve future automake versions.
3651
3652 END
3653   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3654     echo 'Configuration will proceed anyway, since you have set the' >&2
3655     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3656     echo >&2
3657   else
3658     cat >&2 <<'END'
3659 Aborting the configuration process, to ensure you take notice of the issue.
3660
3661 You can download and install GNU coreutils to get an 'rm' implementation
3662 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3663
3664 If you want to complete the configuration process using your problematic
3665 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3666 to "yes", and re-run configure.
3667
3668 END
3669     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3670   fi
3671 fi
3672
3673 # Check whether --enable-silent-rules was given.
3674 if test "${enable_silent_rules+set}" = set; then :
3675   enableval=$enable_silent_rules;
3676 fi
3677
3678 case $enable_silent_rules in # (((
3679   yes) AM_DEFAULT_VERBOSITY=0;;
3680    no) AM_DEFAULT_VERBOSITY=1;;
3681     *) AM_DEFAULT_VERBOSITY=0;;
3682 esac
3683 am_make=${MAKE-make}
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3685 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3686 if ${am_cv_make_support_nested_variables+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   if $as_echo 'TRUE=$(BAR$(V))
3690 BAR0=false
3691 BAR1=true
3692 V=1
3693 am__doit:
3694         @$(TRUE)
3695 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3696   am_cv_make_support_nested_variables=yes
3697 else
3698   am_cv_make_support_nested_variables=no
3699 fi
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3702 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3703 if test $am_cv_make_support_nested_variables = yes; then
3704     AM_V='$(V)'
3705   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3706 else
3707   AM_V=$AM_DEFAULT_VERBOSITY
3708   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3709 fi
3710 AM_BACKSLASH='\'
3711
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3713 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3714 if ${ac_cv_path_SED+:} false; then :
3715   $as_echo_n "(cached) " >&6
3716 else
3717             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3718      for ac_i in 1 2 3 4 5 6 7; do
3719        ac_script="$ac_script$as_nl$ac_script"
3720      done
3721      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3722      { ac_script=; unset ac_script;}
3723      if test -z "$SED"; then
3724   ac_path_SED_found=false
3725   # Loop through the user's path and test for each of PROGNAME-LIST
3726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_prog in sed gsed; do
3732     for ac_exec_ext in '' $ac_executable_extensions; do
3733       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3734       as_fn_executable_p "$ac_path_SED" || continue
3735 # Check for GNU ac_path_SED and select it if it is found.
3736   # Check for GNU $ac_path_SED
3737 case `"$ac_path_SED" --version 2>&1` in
3738 *GNU*)
3739   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3740 *)
3741   ac_count=0
3742   $as_echo_n 0123456789 >"conftest.in"
3743   while :
3744   do
3745     cat "conftest.in" "conftest.in" >"conftest.tmp"
3746     mv "conftest.tmp" "conftest.in"
3747     cp "conftest.in" "conftest.nl"
3748     $as_echo '' >> "conftest.nl"
3749     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3750     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3751     as_fn_arith $ac_count + 1 && ac_count=$as_val
3752     if test $ac_count -gt ${ac_path_SED_max-0}; then
3753       # Best one so far, save it but keep looking for a better one
3754       ac_cv_path_SED="$ac_path_SED"
3755       ac_path_SED_max=$ac_count
3756     fi
3757     # 10*(2^10) chars as input seems more than enough
3758     test $ac_count -gt 10 && break
3759   done
3760   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3761 esac
3762
3763       $ac_path_SED_found && break 3
3764     done
3765   done
3766   done
3767 IFS=$as_save_IFS
3768   if test -z "$ac_cv_path_SED"; then
3769     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3770   fi
3771 else
3772   ac_cv_path_SED=$SED
3773 fi
3774
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3777 $as_echo "$ac_cv_path_SED" >&6; }
3778  SED="$ac_cv_path_SED"
3779   rm -f conftest.sed
3780
3781
3782
3783
3784         # allow to override gcov location
3785
3786 # Check whether --with-gcov was given.
3787 if test "${with_gcov+set}" = set; then :
3788   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3789 else
3790   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3791 fi
3792
3793
3794         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3795 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3796         # Check whether --enable-code-coverage was given.
3797 if test "${enable_code_coverage+set}" = set; then :
3798   enableval=$enable_code_coverage;
3799 else
3800   enable_code_coverage=no
3801 fi
3802
3803
3804          if test x$enable_code_coverage = xyes; then
3805   CODE_COVERAGE_ENABLED_TRUE=
3806   CODE_COVERAGE_ENABLED_FALSE='#'
3807 else
3808   CODE_COVERAGE_ENABLED_TRUE='#'
3809   CODE_COVERAGE_ENABLED_FALSE=
3810 fi
3811
3812         CODE_COVERAGE_ENABLED=$enable_code_coverage
3813
3814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3815 $as_echo "$enable_code_coverage" >&6; }
3816
3817         if  test "$enable_code_coverage" = "yes" ; then :
3818
3819                 # check for gcov
3820                 if test -n "$ac_tool_prefix"; then
3821   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3822 set dummy ${ac_tool_prefix}$_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_GCOV+:} false; then :
3826   $as_echo_n "(cached) " >&6
3827 else
3828   if test -n "$GCOV"; then
3829   ac_cv_prog_GCOV="$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_GCOV="${ac_tool_prefix}$_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 GCOV=$ac_cv_prog_GCOV
3849 if test -n "$GCOV"; then
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3851 $as_echo "$GCOV" >&6; }
3852 else
3853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3855 fi
3856
3857
3858 fi
3859 if test -z "$ac_cv_prog_GCOV"; then
3860   ac_ct_GCOV=$GCOV
3861   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3862 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 $as_echo_n "checking for $ac_word... " >&6; }
3865 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3866   $as_echo_n "(cached) " >&6
3867 else
3868   if test -n "$ac_ct_GCOV"; then
3869   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876     for ac_exec_ext in '' $ac_executable_extensions; do
3877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880     break 2
3881   fi
3882 done
3883   done
3884 IFS=$as_save_IFS
3885
3886 fi
3887 fi
3888 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3889 if test -n "$ac_ct_GCOV"; then
3890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3891 $as_echo "$ac_ct_GCOV" >&6; }
3892 else
3893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3895 fi
3896
3897   if test "x$ac_ct_GCOV" = x; then
3898     GCOV=":"
3899   else
3900     case $cross_compiling:$ac_tool_warned in
3901 yes:)
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3904 ac_tool_warned=yes ;;
3905 esac
3906     GCOV=$ac_ct_GCOV
3907   fi
3908 else
3909   GCOV="$ac_cv_prog_GCOV"
3910 fi
3911
3912                 if test "X$GCOV" = "X:"; then :
3913   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3914 fi
3915
3916
3917                                 if  test "$GCC" = "no" ; then :
3918
3919                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3920
3921 fi
3922
3923                 # Extract the first word of "lcov", so it can be a program name with args.
3924 set dummy lcov; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_prog_LCOV+:} false; then :
3928   $as_echo_n "(cached) " >&6
3929 else
3930   if test -n "$LCOV"; then
3931   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936   IFS=$as_save_IFS
3937   test -z "$as_dir" && as_dir=.
3938     for ac_exec_ext in '' $ac_executable_extensions; do
3939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940     ac_cv_prog_LCOV="lcov"
3941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942     break 2
3943   fi
3944 done
3945   done
3946 IFS=$as_save_IFS
3947
3948 fi
3949 fi
3950 LCOV=$ac_cv_prog_LCOV
3951 if test -n "$LCOV"; then
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3953 $as_echo "$LCOV" >&6; }
3954 else
3955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3957 fi
3958
3959
3960                 # Extract the first word of "genhtml", so it can be a program name with args.
3961 set dummy genhtml; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_GENHTML+:} false; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   if test -n "$GENHTML"; then
3968   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975     for ac_exec_ext in '' $ac_executable_extensions; do
3976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977     ac_cv_prog_GENHTML="genhtml"
3978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979     break 2
3980   fi
3981 done
3982   done
3983 IFS=$as_save_IFS
3984
3985 fi
3986 fi
3987 GENHTML=$ac_cv_prog_GENHTML
3988 if test -n "$GENHTML"; then
3989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3990 $as_echo "$GENHTML" >&6; }
3991 else
3992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 fi
3995
3996
3997
3998                 if  test -z "$LCOV" ; then :
3999
4000                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
4001
4002 fi
4003
4004                 if  test -z "$GENHTML" ; then :
4005
4006                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
4007
4008 fi
4009
4010                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
4011                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4012                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4013                 CODE_COVERAGE_LIBS="-lgcov"
4014                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
4015
4016
4017
4018
4019
4020
4021
4022                 CODE_COVERAGE_RULES_CHECK='
4023         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
4024         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
4025 '
4026                 CODE_COVERAGE_RULES_CAPTURE='
4027         $(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)
4028         $(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)
4029         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
4030         $(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)
4031         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4032 '
4033                 CODE_COVERAGE_RULES_CLEAN='
4034 clean: code-coverage-clean
4035 distclean: code-coverage-clean
4036 code-coverage-clean:
4037         -$(LCOV) --directory $(top_builddir) -z
4038         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4039         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4040 '
4041
4042 else
4043
4044                 CODE_COVERAGE_RULES_CHECK='
4045         @echo "Need to reconfigure with --enable-code-coverage"
4046 '
4047                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4048                 CODE_COVERAGE_RULES_CLEAN=''
4049
4050 fi
4051
4052 CODE_COVERAGE_RULES='
4053 # Code coverage
4054 #
4055 # Optional:
4056 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4057 #    Multiple directories may be specified, separated by whitespace.
4058 #    (Default: $(top_builddir))
4059 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4060 #    by lcov for code coverage. (Default:
4061 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4062 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4063 #    reports to be created. (Default:
4064 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4065 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4066 #    set to 0 to disable it and leave empty to stay with the default.
4067 #    (Default: empty)
4068 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4069 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4070 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4071 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4072 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4073 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4074 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4075 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4076 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4077 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4078 #    lcov instance. (Default: empty)
4079 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4080 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4081 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4082 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4083 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4084 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4085 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4086 #
4087 # The generated report will be titled using the $(PACKAGE_NAME) and
4088 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4089 # use the git-version-gen script, available online.
4090
4091 # Optional variables
4092 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4093 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4094 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4095 CODE_COVERAGE_BRANCH_COVERAGE ?=
4096 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4097 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4098 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4099 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4100 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4101 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4102 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4103 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4104 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4105 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4106 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4107 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4108 CODE_COVERAGE_IGNORE_PATTERN ?=
4109
4110 GITIGNOREFILES ?=
4111 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4112
4113 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4114 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4115 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
4116  $(CODE_COVERAGE_OUTPUT_FILE);
4117 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4118 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4119 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
4120  $(CODE_COVERAGE_IGNORE_PATTERN);
4121 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4122 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4123 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4124 code_coverage_quiet = $(code_coverage_quiet_$(V))
4125 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4126 code_coverage_quiet_0 = --quiet
4127
4128 # sanitizes the test-name: replaces with underscores: dashes and dots
4129 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4130
4131 # Use recursive makes in order to ignore errors during check
4132 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4133
4134 # Capture code coverage data
4135 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4136
4137 # Hook rule executed before code-coverage-capture, overridable by the user
4138 code-coverage-capture-hook:
4139
4140 '"$CODE_COVERAGE_RULES_CLEAN"'
4141
4142 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4143 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4144
4145 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4146 '
4147
4148
4149
4150
4151
4152 # Initialize libtool
4153 DEPDIR="${am__leading_dot}deps"
4154
4155 ac_config_commands="$ac_config_commands depfiles"
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4158 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4159 cat > confinc.mk << 'END'
4160 am__doit:
4161         @echo this is the am__doit target >confinc.out
4162 .PHONY: am__doit
4163 END
4164 am__include="#"
4165 am__quote=
4166 # BSD make does it like this.
4167 echo '.include "confinc.mk" # ignored' > confmf.BSD
4168 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4169 echo 'include confinc.mk # ignored' > confmf.GNU
4170 _am_result=no
4171 for s in GNU BSD; do
4172   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4173    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4174    ac_status=$?
4175    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176    (exit $ac_status); }
4177   case $?:`cat confinc.out 2>/dev/null` in #(
4178   '0:this is the am__doit target') :
4179     case $s in #(
4180   BSD) :
4181     am__include='.include' am__quote='"' ;; #(
4182   *) :
4183     am__include='include' am__quote='' ;;
4184 esac ;; #(
4185   *) :
4186      ;;
4187 esac
4188   if test "$am__include" != "#"; then
4189     _am_result="yes ($s style)"
4190     break
4191   fi
4192 done
4193 rm -f confinc.* confmf.*
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4195 $as_echo "${_am_result}" >&6; }
4196
4197 # Check whether --enable-dependency-tracking was given.
4198 if test "${enable_dependency_tracking+set}" = set; then :
4199   enableval=$enable_dependency_tracking;
4200 fi
4201
4202 if test "x$enable_dependency_tracking" != xno; then
4203   am_depcomp="$ac_aux_dir/depcomp"
4204   AMDEPBACKSLASH='\'
4205   am__nodep='_no'
4206 fi
4207  if test "x$enable_dependency_tracking" != xno; then
4208   AMDEP_TRUE=
4209   AMDEP_FALSE='#'
4210 else
4211   AMDEP_TRUE='#'
4212   AMDEP_FALSE=
4213 fi
4214
4215
4216 ac_ext=c
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 if test -n "$ac_tool_prefix"; then
4222   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4223 set dummy ${ac_tool_prefix}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_CC+:} false; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   if test -n "$CC"; then
4230   ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 CC=$ac_cv_prog_CC
4250 if test -n "$CC"; then
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4252 $as_echo "$CC" >&6; }
4253 else
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258
4259 fi
4260 if test -z "$ac_cv_prog_CC"; then
4261   ac_ct_CC=$CC
4262   # Extract the first word of "gcc", so it can be a program name with args.
4263 set dummy gcc; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   if test -n "$ac_ct_CC"; then
4270   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277     for ac_exec_ext in '' $ac_executable_extensions; do
4278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279     ac_cv_prog_ac_ct_CC="gcc"
4280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284   done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4293 else
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298   if test "x$ac_ct_CC" = x; then
4299     CC=""
4300   else
4301     case $cross_compiling:$ac_tool_warned in
4302 yes:)
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4306 esac
4307     CC=$ac_ct_CC
4308   fi
4309 else
4310   CC="$ac_cv_prog_CC"
4311 fi
4312
4313 if test -z "$CC"; then
4314           if test -n "$ac_tool_prefix"; then
4315     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328   IFS=$as_save_IFS
4329   test -z "$as_dir" && as_dir=.
4330     for ac_exec_ext in '' $ac_executable_extensions; do
4331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332     ac_cv_prog_CC="${ac_tool_prefix}cc"
4333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334     break 2
4335   fi
4336 done
4337   done
4338 IFS=$as_save_IFS
4339
4340 fi
4341 fi
4342 CC=$ac_cv_prog_CC
4343 if test -n "$CC"; then
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345 $as_echo "$CC" >&6; }
4346 else
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351
4352   fi
4353 fi
4354 if test -z "$CC"; then
4355   # Extract the first word of "cc", so it can be a program name with args.
4356 set dummy cc; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_CC+:} false; then :
4360   $as_echo_n "(cached) " >&6
4361 else
4362   if test -n "$CC"; then
4363   ac_cv_prog_CC="$CC" # Let the user override the test.
4364 else
4365   ac_prog_rejected=no
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369   IFS=$as_save_IFS
4370   test -z "$as_dir" && as_dir=.
4371     for ac_exec_ext in '' $ac_executable_extensions; do
4372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4374        ac_prog_rejected=yes
4375        continue
4376      fi
4377     ac_cv_prog_CC="cc"
4378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379     break 2
4380   fi
4381 done
4382   done
4383 IFS=$as_save_IFS
4384
4385 if test $ac_prog_rejected = yes; then
4386   # We found a bogon in the path, so make sure we never use it.
4387   set dummy $ac_cv_prog_CC
4388   shift
4389   if test $# != 0; then
4390     # We chose a different compiler from the bogus one.
4391     # However, it has the same basename, so the bogon will be chosen
4392     # first if we set CC to just the basename; use the full file name.
4393     shift
4394     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4395   fi
4396 fi
4397 fi
4398 fi
4399 CC=$ac_cv_prog_CC
4400 if test -n "$CC"; then
4401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402 $as_echo "$CC" >&6; }
4403 else
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 fi
4407
4408
4409 fi
4410 if test -z "$CC"; then
4411   if test -n "$ac_tool_prefix"; then
4412   for ac_prog in cl.exe
4413   do
4414     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_CC+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   if test -n "$CC"; then
4422   ac_cv_prog_CC="$CC" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429     for ac_exec_ext in '' $ac_executable_extensions; do
4430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436   done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 CC=$ac_cv_prog_CC
4442 if test -n "$CC"; then
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444 $as_echo "$CC" >&6; }
4445 else
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448 fi
4449
4450
4451     test -n "$CC" && break
4452   done
4453 fi
4454 if test -z "$CC"; then
4455   ac_ct_CC=$CC
4456   for ac_prog in cl.exe
4457 do
4458   # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4463   $as_echo_n "(cached) " >&6
4464 else
4465   if test -n "$ac_ct_CC"; then
4466   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473     for ac_exec_ext in '' $ac_executable_extensions; do
4474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475     ac_cv_prog_ac_ct_CC="$ac_prog"
4476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477     break 2
4478   fi
4479 done
4480   done
4481 IFS=$as_save_IFS
4482
4483 fi
4484 fi
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4488 $as_echo "$ac_ct_CC" >&6; }
4489 else
4490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4493
4494
4495   test -n "$ac_ct_CC" && break
4496 done
4497
4498   if test "x$ac_ct_CC" = x; then
4499     CC=""
4500   else
4501     case $cross_compiling:$ac_tool_warned in
4502 yes:)
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507     CC=$ac_ct_CC
4508   fi
4509 fi
4510
4511 fi
4512
4513
4514 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error $? "no acceptable C compiler found in \$PATH
4517 See \`config.log' for more details" "$LINENO" 5; }
4518
4519 # Provide some information about the compiler.
4520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4521 set X $ac_compile
4522 ac_compiler=$2
4523 for ac_option in --version -v -V -qversion; do
4524   { { ac_try="$ac_compiler $ac_option >&5"
4525 case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4532   ac_status=$?
4533   if test -s conftest.err; then
4534     sed '10a\
4535 ... rest of stderr output deleted ...
4536          10q' conftest.err >conftest.er1
4537     cat conftest.er1 >&5
4538   fi
4539   rm -f conftest.er1 conftest.err
4540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541   test $ac_status = 0; }
4542 done
4543
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h.  */
4546
4547 int
4548 main ()
4549 {
4550
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 ac_clean_files_save=$ac_clean_files
4556 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4557 # Try to create an executable without -o first, disregard a.out.
4558 # It will help us diagnose broken compilers, and finding out an intuition
4559 # of exeext.
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4561 $as_echo_n "checking whether the C compiler works... " >&6; }
4562 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4563
4564 # The possible output files:
4565 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4566
4567 ac_rmfiles=
4568 for ac_file in $ac_files
4569 do
4570   case $ac_file in
4571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4572     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4573   esac
4574 done
4575 rm -f $ac_rmfiles
4576
4577 if { { ac_try="$ac_link_default"
4578 case "(($ac_try" in
4579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580   *) ac_try_echo=$ac_try;;
4581 esac
4582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583 $as_echo "$ac_try_echo"; } >&5
4584   (eval "$ac_link_default") 2>&5
4585   ac_status=$?
4586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587   test $ac_status = 0; }; then :
4588   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4589 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4590 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4591 # so that the user can short-circuit this test for compilers unknown to
4592 # Autoconf.
4593 for ac_file in $ac_files ''
4594 do
4595   test -f "$ac_file" || continue
4596   case $ac_file in
4597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4598         ;;
4599     [ab].out )
4600         # We found the default executable, but exeext='' is most
4601         # certainly right.
4602         break;;
4603     *.* )
4604         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4605         then :; else
4606            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4607         fi
4608         # We set ac_cv_exeext here because the later test for it is not
4609         # safe: cross compilers may not add the suffix if given an `-o'
4610         # argument, so we may need to know it at that point already.
4611         # Even if this section looks crufty: it has the advantage of
4612         # actually working.
4613         break;;
4614     * )
4615         break;;
4616   esac
4617 done
4618 test "$ac_cv_exeext" = no && ac_cv_exeext=
4619
4620 else
4621   ac_file=''
4622 fi
4623 if test -z "$ac_file"; then :
4624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4626 $as_echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4631 as_fn_error 77 "C compiler cannot create executables
4632 See \`config.log' for more details" "$LINENO" 5; }
4633 else
4634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635 $as_echo "yes" >&6; }
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4638 $as_echo_n "checking for C compiler default output file name... " >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4640 $as_echo "$ac_file" >&6; }
4641 ac_exeext=$ac_cv_exeext
4642
4643 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4644 ac_clean_files=$ac_clean_files_save
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4646 $as_echo_n "checking for suffix of executables... " >&6; }
4647 if { { ac_try="$ac_link"
4648 case "(($ac_try" in
4649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650   *) ac_try_echo=$ac_try;;
4651 esac
4652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653 $as_echo "$ac_try_echo"; } >&5
4654   (eval "$ac_link") 2>&5
4655   ac_status=$?
4656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657   test $ac_status = 0; }; then :
4658   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4659 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4660 # work properly (i.e., refer to `conftest.exe'), while it won't with
4661 # `rm'.
4662 for ac_file in conftest.exe conftest conftest.*; do
4663   test -f "$ac_file" || continue
4664   case $ac_file in
4665     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4666     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4667           break;;
4668     * ) break;;
4669   esac
4670 done
4671 else
4672   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4674 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4675 See \`config.log' for more details" "$LINENO" 5; }
4676 fi
4677 rm -f conftest conftest$ac_cv_exeext
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4679 $as_echo "$ac_cv_exeext" >&6; }
4680
4681 rm -f conftest.$ac_ext
4682 EXEEXT=$ac_cv_exeext
4683 ac_exeext=$EXEEXT
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h.  */
4686 #include <stdio.h>
4687 int
4688 main ()
4689 {
4690 FILE *f = fopen ("conftest.out", "w");
4691  return ferror (f) || fclose (f) != 0;
4692
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 ac_clean_files="$ac_clean_files conftest.out"
4698 # Check that the compiler produces executables we can run.  If not, either
4699 # the compiler is broken, or we cross compile.
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4701 $as_echo_n "checking whether we are cross compiling... " >&6; }
4702 if test "$cross_compiling" != yes; then
4703   { { ac_try="$ac_link"
4704 case "(($ac_try" in
4705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706   *) ac_try_echo=$ac_try;;
4707 esac
4708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709 $as_echo "$ac_try_echo"; } >&5
4710   (eval "$ac_link") 2>&5
4711   ac_status=$?
4712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713   test $ac_status = 0; }
4714   if { ac_try='./conftest$ac_cv_exeext'
4715   { { case "(($ac_try" in
4716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717   *) ac_try_echo=$ac_try;;
4718 esac
4719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4720 $as_echo "$ac_try_echo"; } >&5
4721   (eval "$ac_try") 2>&5
4722   ac_status=$?
4723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4724   test $ac_status = 0; }; }; then
4725     cross_compiling=no
4726   else
4727     if test "$cross_compiling" = maybe; then
4728         cross_compiling=yes
4729     else
4730         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4732 as_fn_error $? "cannot run C compiled programs.
4733 If you meant to cross compile, use \`--host'.
4734 See \`config.log' for more details" "$LINENO" 5; }
4735     fi
4736   fi
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4739 $as_echo "$cross_compiling" >&6; }
4740
4741 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4742 ac_clean_files=$ac_clean_files_save
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4744 $as_echo_n "checking for suffix of object files... " >&6; }
4745 if ${ac_cv_objext+:} false; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h.  */
4750
4751 int
4752 main ()
4753 {
4754
4755   ;
4756   return 0;
4757 }
4758 _ACEOF
4759 rm -f conftest.o conftest.obj
4760 if { { ac_try="$ac_compile"
4761 case "(($ac_try" in
4762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763   *) ac_try_echo=$ac_try;;
4764 esac
4765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4766 $as_echo "$ac_try_echo"; } >&5
4767   (eval "$ac_compile") 2>&5
4768   ac_status=$?
4769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770   test $ac_status = 0; }; then :
4771   for ac_file in conftest.o conftest.obj conftest.*; do
4772   test -f "$ac_file" || continue;
4773   case $ac_file in
4774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4775     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4776        break;;
4777   esac
4778 done
4779 else
4780   $as_echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4785 as_fn_error $? "cannot compute suffix of object files: cannot compile
4786 See \`config.log' for more details" "$LINENO" 5; }
4787 fi
4788 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4791 $as_echo "$ac_cv_objext" >&6; }
4792 OBJEXT=$ac_cv_objext
4793 ac_objext=$OBJEXT
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4795 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4796 if ${ac_cv_c_compiler_gnu+:} false; then :
4797   $as_echo_n "(cached) " >&6
4798 else
4799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h.  */
4801
4802 int
4803 main ()
4804 {
4805 #ifndef __GNUC__
4806        choke me
4807 #endif
4808
4809   ;
4810   return 0;
4811 }
4812 _ACEOF
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814   ac_compiler_gnu=yes
4815 else
4816   ac_compiler_gnu=no
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4820
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4823 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4824 if test $ac_compiler_gnu = yes; then
4825   GCC=yes
4826 else
4827   GCC=
4828 fi
4829 ac_test_CFLAGS=${CFLAGS+set}
4830 ac_save_CFLAGS=$CFLAGS
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4832 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4833 if ${ac_cv_prog_cc_g+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   ac_save_c_werror_flag=$ac_c_werror_flag
4837    ac_c_werror_flag=yes
4838    ac_cv_prog_cc_g=no
4839    CFLAGS="-g"
4840    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h.  */
4842
4843 int
4844 main ()
4845 {
4846
4847   ;
4848   return 0;
4849 }
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852   ac_cv_prog_cc_g=yes
4853 else
4854   CFLAGS=""
4855       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h.  */
4857
4858 int
4859 main ()
4860 {
4861
4862   ;
4863   return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"; then :
4867
4868 else
4869   ac_c_werror_flag=$ac_save_c_werror_flag
4870          CFLAGS="-g"
4871          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h.  */
4873
4874 int
4875 main ()
4876 {
4877
4878   ;
4879   return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883   ac_cv_prog_cc_g=yes
4884 fi
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890    ac_c_werror_flag=$ac_save_c_werror_flag
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4893 $as_echo "$ac_cv_prog_cc_g" >&6; }
4894 if test "$ac_test_CFLAGS" = set; then
4895   CFLAGS=$ac_save_CFLAGS
4896 elif test $ac_cv_prog_cc_g = yes; then
4897   if test "$GCC" = yes; then
4898     CFLAGS="-g -O2"
4899   else
4900     CFLAGS="-g"
4901   fi
4902 else
4903   if test "$GCC" = yes; then
4904     CFLAGS="-O2"
4905   else
4906     CFLAGS=
4907   fi
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4911 if ${ac_cv_prog_cc_c89+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   ac_cv_prog_cc_c89=no
4915 ac_save_CC=$CC
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h.  */
4918 #include <stdarg.h>
4919 #include <stdio.h>
4920 struct stat;
4921 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4922 struct buf { int x; };
4923 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4924 static char *e (p, i)
4925      char **p;
4926      int i;
4927 {
4928   return p[i];
4929 }
4930 static char *f (char * (*g) (char **, int), char **p, ...)
4931 {
4932   char *s;
4933   va_list v;
4934   va_start (v,p);
4935   s = g (p, va_arg (v,int));
4936   va_end (v);
4937   return s;
4938 }
4939
4940 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4941    function prototypes and stuff, but not '\xHH' hex character constants.
4942    These don't provoke an error unfortunately, instead are silently treated
4943    as 'x'.  The following induces an error, until -std is added to get
4944    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4945    array size at least.  It's necessary to write '\x00'==0 to get something
4946    that's true only with -std.  */
4947 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4948
4949 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4950    inside strings and character constants.  */
4951 #define FOO(x) 'x'
4952 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4953
4954 int test (int i, double x);
4955 struct s1 {int (*f) (int a);};
4956 struct s2 {int (*f) (double a);};
4957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4958 int argc;
4959 char **argv;
4960 int
4961 main ()
4962 {
4963 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4969         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4970 do
4971   CC="$ac_save_CC $ac_arg"
4972   if ac_fn_c_try_compile "$LINENO"; then :
4973   ac_cv_prog_cc_c89=$ac_arg
4974 fi
4975 rm -f core conftest.err conftest.$ac_objext
4976   test "x$ac_cv_prog_cc_c89" != "xno" && break
4977 done
4978 rm -f conftest.$ac_ext
4979 CC=$ac_save_CC
4980
4981 fi
4982 # AC_CACHE_VAL
4983 case "x$ac_cv_prog_cc_c89" in
4984   x)
4985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4986 $as_echo "none needed" >&6; } ;;
4987   xno)
4988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4989 $as_echo "unsupported" >&6; } ;;
4990   *)
4991     CC="$CC $ac_cv_prog_cc_c89"
4992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4993 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4994 esac
4995 if test "x$ac_cv_prog_cc_c89" != xno; then :
4996
4997 fi
4998
4999 ac_ext=c
5000 ac_cpp='$CPP $CPPFLAGS'
5001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004
5005 ac_ext=c
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5011 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5012 if ${am_cv_prog_cc_c_o+:} false; then :
5013   $as_echo_n "(cached) " >&6
5014 else
5015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h.  */
5017
5018 int
5019 main ()
5020 {
5021
5022   ;
5023   return 0;
5024 }
5025 _ACEOF
5026   # Make sure it works both with $CC and with simple cc.
5027   # Following AC_PROG_CC_C_O, we do the test twice because some
5028   # compilers refuse to overwrite an existing .o file with -o,
5029   # though they will create one.
5030   am_cv_prog_cc_c_o=yes
5031   for am_i in 1 2; do
5032     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5033    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5034    ac_status=$?
5035    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036    (exit $ac_status); } \
5037          && test -f conftest2.$ac_objext; then
5038       : OK
5039     else
5040       am_cv_prog_cc_c_o=no
5041       break
5042     fi
5043   done
5044   rm -f core conftest*
5045   unset am_i
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5048 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5049 if test "$am_cv_prog_cc_c_o" != yes; then
5050    # Losing compiler, so override with the script.
5051    # FIXME: It is wrong to rewrite CC.
5052    # But if we don't then we get into trouble of one sort or another.
5053    # A longer-term fix would be to have automake use am__CC in this case,
5054    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5055    CC="$am_aux_dir/compile $CC"
5056 fi
5057 ac_ext=c
5058 ac_cpp='$CPP $CPPFLAGS'
5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062
5063
5064 depcc="$CC"   am_compiler_list=
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5067 $as_echo_n "checking dependency style of $depcc... " >&6; }
5068 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5072   # We make a subdir and do the tests there.  Otherwise we can end up
5073   # making bogus files that we don't know about and never remove.  For
5074   # instance it was reported that on HP-UX the gcc test will end up
5075   # making a dummy file named 'D' -- because '-MD' means "put the output
5076   # in D".
5077   rm -rf conftest.dir
5078   mkdir conftest.dir
5079   # Copy depcomp to subdir because otherwise we won't find it if we're
5080   # using a relative directory.
5081   cp "$am_depcomp" conftest.dir
5082   cd conftest.dir
5083   # We will build objects and dependencies in a subdirectory because
5084   # it helps to detect inapplicable dependency modes.  For instance
5085   # both Tru64's cc and ICC support -MD to output dependencies as a
5086   # side effect of compilation, but ICC will put the dependencies in
5087   # the current directory while Tru64 will put them in the object
5088   # directory.
5089   mkdir sub
5090
5091   am_cv_CC_dependencies_compiler_type=none
5092   if test "$am_compiler_list" = ""; then
5093      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5094   fi
5095   am__universal=false
5096   case " $depcc " in #(
5097      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5098      esac
5099
5100   for depmode in $am_compiler_list; do
5101     # Setup a source with many dependencies, because some compilers
5102     # like to wrap large dependency lists on column 80 (with \), and
5103     # we should not choose a depcomp mode which is confused by this.
5104     #
5105     # We need to recreate these files for each test, as the compiler may
5106     # overwrite some of them when testing with obscure command lines.
5107     # This happens at least with the AIX C compiler.
5108     : > sub/conftest.c
5109     for i in 1 2 3 4 5 6; do
5110       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5111       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5112       # Solaris 10 /bin/sh.
5113       echo '/* dummy */' > sub/conftst$i.h
5114     done
5115     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5116
5117     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5118     # mode.  It turns out that the SunPro C++ compiler does not properly
5119     # handle '-M -o', and we need to detect this.  Also, some Intel
5120     # versions had trouble with output in subdirs.
5121     am__obj=sub/conftest.${OBJEXT-o}
5122     am__minus_obj="-o $am__obj"
5123     case $depmode in
5124     gcc)
5125       # This depmode causes a compiler race in universal mode.
5126       test "$am__universal" = false || continue
5127       ;;
5128     nosideeffect)
5129       # After this tag, mechanisms are not by side-effect, so they'll
5130       # only be used when explicitly requested.
5131       if test "x$enable_dependency_tracking" = xyes; then
5132         continue
5133       else
5134         break
5135       fi
5136       ;;
5137     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5138       # This compiler won't grok '-c -o', but also, the minuso test has
5139       # not run yet.  These depmodes are late enough in the game, and
5140       # so weak that their functioning should not be impacted.
5141       am__obj=conftest.${OBJEXT-o}
5142       am__minus_obj=
5143       ;;
5144     none) break ;;
5145     esac
5146     if depmode=$depmode \
5147        source=sub/conftest.c object=$am__obj \
5148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5149        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5150          >/dev/null 2>conftest.err &&
5151        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5152        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5153        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5154        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5155       # icc doesn't choke on unknown options, it will just issue warnings
5156       # or remarks (even with -Werror).  So we grep stderr for any message
5157       # that says an option was ignored or not supported.
5158       # When given -MP, icc 7.0 and 7.1 complain thusly:
5159       #   icc: Command line warning: ignoring option '-M'; no argument required
5160       # The diagnosis changed in icc 8.0:
5161       #   icc: Command line remark: option '-MP' not supported
5162       if (grep 'ignoring option' conftest.err ||
5163           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5164         am_cv_CC_dependencies_compiler_type=$depmode
5165         break
5166       fi
5167     fi
5168   done
5169
5170   cd ..
5171   rm -rf conftest.dir
5172 else
5173   am_cv_CC_dependencies_compiler_type=none
5174 fi
5175
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5178 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5179 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5180
5181  if
5182   test "x$enable_dependency_tracking" != xno \
5183   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5184   am__fastdepCC_TRUE=
5185   am__fastdepCC_FALSE='#'
5186 else
5187   am__fastdepCC_TRUE='#'
5188   am__fastdepCC_FALSE=
5189 fi
5190
5191
5192
5193 if test -n "$ac_tool_prefix"; then
5194   for ac_prog in ar lib "link -lib"
5195   do
5196     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_prog_AR+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   if test -n "$AR"; then
5204   ac_cv_prog_AR="$AR" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211     for ac_exec_ext in '' $ac_executable_extensions; do
5212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215     break 2
5216   fi
5217 done
5218   done
5219 IFS=$as_save_IFS
5220
5221 fi
5222 fi
5223 AR=$ac_cv_prog_AR
5224 if test -n "$AR"; then
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5226 $as_echo "$AR" >&6; }
5227 else
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231
5232
5233     test -n "$AR" && break
5234   done
5235 fi
5236 if test -z "$AR"; then
5237   ac_ct_AR=$AR
5238   for ac_prog in ar lib "link -lib"
5239 do
5240   # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5245   $as_echo_n "(cached) " >&6
5246 else
5247   if test -n "$ac_ct_AR"; then
5248   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255     for ac_exec_ext in '' $ac_executable_extensions; do
5256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257     ac_cv_prog_ac_ct_AR="$ac_prog"
5258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262   done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5268 if test -n "$ac_ct_AR"; then
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5270 $as_echo "$ac_ct_AR" >&6; }
5271 else
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276
5277   test -n "$ac_ct_AR" && break
5278 done
5279
5280   if test "x$ac_ct_AR" = x; then
5281     AR="false"
5282   else
5283     case $cross_compiling:$ac_tool_warned in
5284 yes:)
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287 ac_tool_warned=yes ;;
5288 esac
5289     AR=$ac_ct_AR
5290   fi
5291 fi
5292
5293 : ${AR=ar}
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5296 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5297 if ${am_cv_ar_interface+:} false; then :
5298   $as_echo_n "(cached) " >&6
5299 else
5300   ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306    am_cv_ar_interface=ar
5307    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h.  */
5309 int some_variable = 0;
5310 _ACEOF
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5313       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5314   (eval $am_ar_try) 2>&5
5315   ac_status=$?
5316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317   test $ac_status = 0; }
5318       if test "$ac_status" -eq 0; then
5319         am_cv_ar_interface=ar
5320       else
5321         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5322         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5323   (eval $am_ar_try) 2>&5
5324   ac_status=$?
5325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326   test $ac_status = 0; }
5327         if test "$ac_status" -eq 0; then
5328           am_cv_ar_interface=lib
5329         else
5330           am_cv_ar_interface=unknown
5331         fi
5332       fi
5333       rm -f conftest.lib libconftest.a
5334
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337    ac_ext=c
5338 ac_cpp='$CPP $CPPFLAGS'
5339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5345 $as_echo "$am_cv_ar_interface" >&6; }
5346
5347 case $am_cv_ar_interface in
5348 ar)
5349   ;;
5350 lib)
5351   # Microsoft lib, so override with the ar-lib wrapper script.
5352   # FIXME: It is wrong to rewrite AR.
5353   # But if we don't then we get into trouble of one sort or another.
5354   # A longer-term fix would be to have automake use am__AR in this case,
5355   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5356   # similar.
5357   AR="$am_aux_dir/ar-lib $AR"
5358   ;;
5359 unknown)
5360   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5361   ;;
5362 esac
5363
5364
5365 case `pwd` in
5366   *\ * | *\     *)
5367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5368 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5369 esac
5370
5371
5372
5373 macro_version='2.4.6.42-b88ce'
5374 macro_revision='2.4.6.42'
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 ltmain=$ac_aux_dir/ltmain.sh
5389
5390 # Make sure we can run config.sub.
5391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5392   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5393
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5395 $as_echo_n "checking build system type... " >&6; }
5396 if ${ac_cv_build+:} false; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   ac_build_alias=$build_alias
5400 test "x$ac_build_alias" = x &&
5401   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5402 test "x$ac_build_alias" = x &&
5403   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5404 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5405   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5406
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5409 $as_echo "$ac_cv_build" >&6; }
5410 case $ac_cv_build in
5411 *-*-*) ;;
5412 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5413 esac
5414 build=$ac_cv_build
5415 ac_save_IFS=$IFS; IFS='-'
5416 set x $ac_cv_build
5417 shift
5418 build_cpu=$1
5419 build_vendor=$2
5420 shift; shift
5421 # Remember, the first character of IFS is used to create $*,
5422 # except with old shells:
5423 build_os=$*
5424 IFS=$ac_save_IFS
5425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5429 $as_echo_n "checking host system type... " >&6; }
5430 if ${ac_cv_host+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   if test "x$host_alias" = x; then
5434   ac_cv_host=$ac_cv_build
5435 else
5436   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5437     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5438 fi
5439
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5442 $as_echo "$ac_cv_host" >&6; }
5443 case $ac_cv_host in
5444 *-*-*) ;;
5445 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5446 esac
5447 host=$ac_cv_host
5448 ac_save_IFS=$IFS; IFS='-'
5449 set x $ac_cv_host
5450 shift
5451 host_cpu=$1
5452 host_vendor=$2
5453 shift; shift
5454 # Remember, the first character of IFS is used to create $*,
5455 # except with old shells:
5456 host_os=$*
5457 IFS=$ac_save_IFS
5458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5459
5460
5461 # Backslashify metacharacters that are still active within
5462 # double-quoted strings.
5463 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5464
5465 # Same as above, but do not quote variable references.
5466 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5467
5468 # Sed substitution to delay expansion of an escaped shell variable in a
5469 # double_quote_subst'ed string.
5470 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5471
5472 # Sed substitution to delay expansion of an escaped single quote.
5473 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5474
5475 # Sed substitution to avoid accidental globbing in evaled expressions
5476 no_glob_subst='s/\*/\\\*/g'
5477
5478 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5479 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5480 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5483 $as_echo_n "checking how to print strings... " >&6; }
5484 # Test print first, because it will be a builtin if present.
5485 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5486    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5487   ECHO='print -r --'
5488 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5489   ECHO='printf %s\n'
5490 else
5491   # Use this function as a fallback that always works.
5492   func_fallback_echo ()
5493   {
5494     eval 'cat <<_LTECHO_EOF
5495 $1
5496 _LTECHO_EOF'
5497   }
5498   ECHO='func_fallback_echo'
5499 fi
5500
5501 # func_echo_all arg...
5502 # Invoke $ECHO with all args, space-separated.
5503 func_echo_all ()
5504 {
5505     $ECHO ""
5506 }
5507
5508 case $ECHO in
5509   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5510 $as_echo "printf" >&6; } ;;
5511   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5512 $as_echo "print -r" >&6; } ;;
5513   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5514 $as_echo "cat" >&6; } ;;
5515 esac
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5531 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5532 if ${ac_cv_path_SED+:} false; then :
5533   $as_echo_n "(cached) " >&6
5534 else
5535             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5536      for ac_i in 1 2 3 4 5 6 7; do
5537        ac_script="$ac_script$as_nl$ac_script"
5538      done
5539      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5540      { ac_script=; unset ac_script;}
5541      if test -z "$SED"; then
5542   ac_path_SED_found=false
5543   # Loop through the user's path and test for each of PROGNAME-LIST
5544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549     for ac_prog in sed gsed; do
5550     for ac_exec_ext in '' $ac_executable_extensions; do
5551       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5552       as_fn_executable_p "$ac_path_SED" || continue
5553 # Check for GNU ac_path_SED and select it if it is found.
5554   # Check for GNU $ac_path_SED
5555 case `"$ac_path_SED" --version 2>&1` in
5556 *GNU*)
5557   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5558 *)
5559   ac_count=0
5560   $as_echo_n 0123456789 >"conftest.in"
5561   while :
5562   do
5563     cat "conftest.in" "conftest.in" >"conftest.tmp"
5564     mv "conftest.tmp" "conftest.in"
5565     cp "conftest.in" "conftest.nl"
5566     $as_echo '' >> "conftest.nl"
5567     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5568     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5569     as_fn_arith $ac_count + 1 && ac_count=$as_val
5570     if test $ac_count -gt ${ac_path_SED_max-0}; then
5571       # Best one so far, save it but keep looking for a better one
5572       ac_cv_path_SED="$ac_path_SED"
5573       ac_path_SED_max=$ac_count
5574     fi
5575     # 10*(2^10) chars as input seems more than enough
5576     test $ac_count -gt 10 && break
5577   done
5578   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5579 esac
5580
5581       $ac_path_SED_found && break 3
5582     done
5583   done
5584   done
5585 IFS=$as_save_IFS
5586   if test -z "$ac_cv_path_SED"; then
5587     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5588   fi
5589 else
5590   ac_cv_path_SED=$SED
5591 fi
5592
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5595 $as_echo "$ac_cv_path_SED" >&6; }
5596  SED="$ac_cv_path_SED"
5597   rm -f conftest.sed
5598
5599 test -z "$SED" && SED=sed
5600 Xsed="$SED -e 1s/^X//"
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5613 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5614 if ${ac_cv_path_GREP+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   if test -z "$GREP"; then
5618   ac_path_GREP_found=false
5619   # Loop through the user's path and test for each of PROGNAME-LIST
5620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625     for ac_prog in grep ggrep; do
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5628       as_fn_executable_p "$ac_path_GREP" || continue
5629 # Check for GNU ac_path_GREP and select it if it is found.
5630   # Check for GNU $ac_path_GREP
5631 case `"$ac_path_GREP" --version 2>&1` in
5632 *GNU*)
5633   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5634 *)
5635   ac_count=0
5636   $as_echo_n 0123456789 >"conftest.in"
5637   while :
5638   do
5639     cat "conftest.in" "conftest.in" >"conftest.tmp"
5640     mv "conftest.tmp" "conftest.in"
5641     cp "conftest.in" "conftest.nl"
5642     $as_echo 'GREP' >> "conftest.nl"
5643     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645     as_fn_arith $ac_count + 1 && ac_count=$as_val
5646     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5647       # Best one so far, save it but keep looking for a better one
5648       ac_cv_path_GREP="$ac_path_GREP"
5649       ac_path_GREP_max=$ac_count
5650     fi
5651     # 10*(2^10) chars as input seems more than enough
5652     test $ac_count -gt 10 && break
5653   done
5654   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 esac
5656
5657       $ac_path_GREP_found && break 3
5658     done
5659   done
5660   done
5661 IFS=$as_save_IFS
5662   if test -z "$ac_cv_path_GREP"; then
5663     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5664   fi
5665 else
5666   ac_cv_path_GREP=$GREP
5667 fi
5668
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5671 $as_echo "$ac_cv_path_GREP" >&6; }
5672  GREP="$ac_cv_path_GREP"
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5676 $as_echo_n "checking for egrep... " >&6; }
5677 if ${ac_cv_path_EGREP+:} false; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5681    then ac_cv_path_EGREP="$GREP -E"
5682    else
5683      if test -z "$EGREP"; then
5684   ac_path_EGREP_found=false
5685   # Loop through the user's path and test for each of PROGNAME-LIST
5686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691     for ac_prog in egrep; do
5692     for ac_exec_ext in '' $ac_executable_extensions; do
5693       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5694       as_fn_executable_p "$ac_path_EGREP" || continue
5695 # Check for GNU ac_path_EGREP and select it if it is found.
5696   # Check for GNU $ac_path_EGREP
5697 case `"$ac_path_EGREP" --version 2>&1` in
5698 *GNU*)
5699   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5700 *)
5701   ac_count=0
5702   $as_echo_n 0123456789 >"conftest.in"
5703   while :
5704   do
5705     cat "conftest.in" "conftest.in" >"conftest.tmp"
5706     mv "conftest.tmp" "conftest.in"
5707     cp "conftest.in" "conftest.nl"
5708     $as_echo 'EGREP' >> "conftest.nl"
5709     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5710     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5711     as_fn_arith $ac_count + 1 && ac_count=$as_val
5712     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5713       # Best one so far, save it but keep looking for a better one
5714       ac_cv_path_EGREP="$ac_path_EGREP"
5715       ac_path_EGREP_max=$ac_count
5716     fi
5717     # 10*(2^10) chars as input seems more than enough
5718     test $ac_count -gt 10 && break
5719   done
5720   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5721 esac
5722
5723       $ac_path_EGREP_found && break 3
5724     done
5725   done
5726   done
5727 IFS=$as_save_IFS
5728   if test -z "$ac_cv_path_EGREP"; then
5729     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5730   fi
5731 else
5732   ac_cv_path_EGREP=$EGREP
5733 fi
5734
5735    fi
5736 fi
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5738 $as_echo "$ac_cv_path_EGREP" >&6; }
5739  EGREP="$ac_cv_path_EGREP"
5740
5741
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5743 $as_echo_n "checking for fgrep... " >&6; }
5744 if ${ac_cv_path_FGREP+:} false; then :
5745   $as_echo_n "(cached) " >&6
5746 else
5747   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5748    then ac_cv_path_FGREP="$GREP -F"
5749    else
5750      if test -z "$FGREP"; then
5751   ac_path_FGREP_found=false
5752   # Loop through the user's path and test for each of PROGNAME-LIST
5753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758     for ac_prog in fgrep; do
5759     for ac_exec_ext in '' $ac_executable_extensions; do
5760       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5761       as_fn_executable_p "$ac_path_FGREP" || continue
5762 # Check for GNU ac_path_FGREP and select it if it is found.
5763   # Check for GNU $ac_path_FGREP
5764 case `"$ac_path_FGREP" --version 2>&1` in
5765 *GNU*)
5766   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5767 *)
5768   ac_count=0
5769   $as_echo_n 0123456789 >"conftest.in"
5770   while :
5771   do
5772     cat "conftest.in" "conftest.in" >"conftest.tmp"
5773     mv "conftest.tmp" "conftest.in"
5774     cp "conftest.in" "conftest.nl"
5775     $as_echo 'FGREP' >> "conftest.nl"
5776     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5777     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5778     as_fn_arith $ac_count + 1 && ac_count=$as_val
5779     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5780       # Best one so far, save it but keep looking for a better one
5781       ac_cv_path_FGREP="$ac_path_FGREP"
5782       ac_path_FGREP_max=$ac_count
5783     fi
5784     # 10*(2^10) chars as input seems more than enough
5785     test $ac_count -gt 10 && break
5786   done
5787   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5788 esac
5789
5790       $ac_path_FGREP_found && break 3
5791     done
5792   done
5793   done
5794 IFS=$as_save_IFS
5795   if test -z "$ac_cv_path_FGREP"; then
5796     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5797   fi
5798 else
5799   ac_cv_path_FGREP=$FGREP
5800 fi
5801
5802    fi
5803 fi
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5805 $as_echo "$ac_cv_path_FGREP" >&6; }
5806  FGREP="$ac_cv_path_FGREP"
5807
5808
5809 test -z "$GREP" && GREP=grep
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829 # Check whether --with-gnu-ld was given.
5830 if test "${with_gnu_ld+set}" = set; then :
5831   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5832 else
5833   with_gnu_ld=no
5834 fi
5835
5836 ac_prog=ld
5837 if test yes = "$GCC"; then
5838   # Check if gcc -print-prog-name=ld gives a path.
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5840 $as_echo_n "checking for ld used by $CC... " >&6; }
5841   case $host in
5842   *-*-mingw*)
5843     # gcc leaves a trailing carriage return, which upsets mingw
5844     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5845   *)
5846     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5847   esac
5848   case $ac_prog in
5849     # Accept absolute paths.
5850     [\\/]* | ?:[\\/]*)
5851       re_direlt='/[^/][^/]*/\.\./'
5852       # Canonicalize the pathname of ld
5853       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5854       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5855         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5856       done
5857       test -z "$LD" && LD=$ac_prog
5858       ;;
5859   "")
5860     # If it fails, then pretend we aren't using GCC.
5861     ac_prog=ld
5862     ;;
5863   *)
5864     # If it is relative, then search for the first ld in PATH.
5865     with_gnu_ld=unknown
5866     ;;
5867   esac
5868 elif test yes = "$with_gnu_ld"; then
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5870 $as_echo_n "checking for GNU ld... " >&6; }
5871 else
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5873 $as_echo_n "checking for non-GNU ld... " >&6; }
5874 fi
5875 if ${lt_cv_path_LD+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   if test -z "$LD"; then
5879   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5880   for ac_dir in $PATH; do
5881     IFS=$lt_save_ifs
5882     test -z "$ac_dir" && ac_dir=.
5883     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5884       lt_cv_path_LD=$ac_dir/$ac_prog
5885       # Check to see if the program is GNU ld.  I'd rather use --version,
5886       # but apparently some variants of GNU ld only accept -v.
5887       # Break only if it was the GNU/non-GNU ld that we prefer.
5888       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5889       *GNU* | *'with BFD'*)
5890         test no != "$with_gnu_ld" && break
5891         ;;
5892       *)
5893         test yes != "$with_gnu_ld" && break
5894         ;;
5895       esac
5896     fi
5897   done
5898   IFS=$lt_save_ifs
5899 else
5900   lt_cv_path_LD=$LD # Let the user override the test with a path.
5901 fi
5902 fi
5903
5904 LD=$lt_cv_path_LD
5905 if test -n "$LD"; then
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5907 $as_echo "$LD" >&6; }
5908 else
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5914 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5915 if ${lt_cv_prog_gnu_ld+:} false; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5919 case `$LD -v 2>&1 </dev/null` in
5920 *GNU* | *'with BFD'*)
5921   lt_cv_prog_gnu_ld=yes
5922   ;;
5923 *)
5924   lt_cv_prog_gnu_ld=no
5925   ;;
5926 esac
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5929 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5930 with_gnu_ld=$lt_cv_prog_gnu_ld
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5941 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5942 if ${lt_cv_path_NM+:} false; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   if test -n "$NM"; then
5946   # Let the user override the test.
5947   lt_cv_path_NM=$NM
5948 else
5949   lt_nm_to_check=${ac_tool_prefix}nm
5950   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5951     lt_nm_to_check="$lt_nm_to_check nm"
5952   fi
5953   for lt_tmp_nm in $lt_nm_to_check; do
5954     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5955     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5956       IFS=$lt_save_ifs
5957       test -z "$ac_dir" && ac_dir=.
5958       tmp_nm=$ac_dir/$lt_tmp_nm
5959       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5960         # Check to see if the nm accepts a BSD-compat flag.
5961         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5962         #   nm: unknown option "B" ignored
5963         # Tru64's nm complains that /dev/null is an invalid object file
5964         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5965         case $build_os in
5966         mingw*) lt_bad_file=conftest.nm/nofile ;;
5967         *) lt_bad_file=/dev/null ;;
5968         esac
5969         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5970         *$lt_bad_file* | *'Invalid file or object type'*)
5971           lt_cv_path_NM="$tmp_nm -B"
5972           break 2
5973           ;;
5974         *)
5975           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5976           */dev/null*)
5977             lt_cv_path_NM="$tmp_nm -p"
5978             break 2
5979             ;;
5980           *)
5981             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5982             continue # so that we can try to find one that supports BSD flags
5983             ;;
5984           esac
5985           ;;
5986         esac
5987       fi
5988     done
5989     IFS=$lt_save_ifs
5990   done
5991   : ${lt_cv_path_NM=no}
5992 fi
5993 fi
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5995 $as_echo "$lt_cv_path_NM" >&6; }
5996 if test no != "$lt_cv_path_NM"; then
5997   NM=$lt_cv_path_NM
5998 else
5999   # Didn't find any BSD compatible name lister, look for dumpbin.
6000   if test -n "$DUMPBIN"; then :
6001     # Let the user override the test.
6002   else
6003     if test -n "$ac_tool_prefix"; then
6004   for ac_prog in dumpbin "link -dump"
6005   do
6006     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_DUMPBIN+:} false; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013   if test -n "$DUMPBIN"; then
6014   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021     for ac_exec_ext in '' $ac_executable_extensions; do
6022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028   done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 DUMPBIN=$ac_cv_prog_DUMPBIN
6034 if test -n "$DUMPBIN"; then
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6036 $as_echo "$DUMPBIN" >&6; }
6037 else
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042
6043     test -n "$DUMPBIN" && break
6044   done
6045 fi
6046 if test -z "$DUMPBIN"; then
6047   ac_ct_DUMPBIN=$DUMPBIN
6048   for ac_prog in dumpbin "link -dump"
6049 do
6050   # Extract the first word of "$ac_prog", so it can be a program name with args.
6051 set dummy $ac_prog; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   if test -n "$ac_ct_DUMPBIN"; then
6058   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065     for ac_exec_ext in '' $ac_executable_extensions; do
6066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072   done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6078 if test -n "$ac_ct_DUMPBIN"; then
6079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6080 $as_echo "$ac_ct_DUMPBIN" >&6; }
6081 else
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 fi
6085
6086
6087   test -n "$ac_ct_DUMPBIN" && break
6088 done
6089
6090   if test "x$ac_ct_DUMPBIN" = x; then
6091     DUMPBIN=":"
6092   else
6093     case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099     DUMPBIN=$ac_ct_DUMPBIN
6100   fi
6101 fi
6102
6103     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6104     *COFF*)
6105       DUMPBIN="$DUMPBIN -symbols -headers"
6106       ;;
6107     *)
6108       DUMPBIN=:
6109       ;;
6110     esac
6111   fi
6112
6113   if test : != "$DUMPBIN"; then
6114     NM=$DUMPBIN
6115   fi
6116 fi
6117 test -z "$NM" && NM=nm
6118
6119
6120
6121
6122
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6125 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6126 if ${lt_cv_nm_interface+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   lt_cv_nm_interface="BSD nm"
6130   echo "int some_variable = 0;" > conftest.$ac_ext
6131   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6132   (eval "$ac_compile" 2>conftest.err)
6133   cat conftest.err >&5
6134   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6135   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6136   cat conftest.err >&5
6137   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6138   cat conftest.out >&5
6139   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6140     lt_cv_nm_interface="MS dumpbin"
6141   fi
6142   rm -f conftest*
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6145 $as_echo "$lt_cv_nm_interface" >&6; }
6146
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6148 $as_echo_n "checking whether ln -s works... " >&6; }
6149 LN_S=$as_ln_s
6150 if test "$LN_S" = "ln -s"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6152 $as_echo "yes" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6155 $as_echo "no, using $LN_S" >&6; }
6156 fi
6157
6158 # find the maximum length of command line arguments
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6160 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6161 if ${lt_cv_sys_max_cmd_len+:} false; then :
6162   $as_echo_n "(cached) " >&6
6163 else
6164     i=0
6165   teststring=ABCD
6166
6167   case $build_os in
6168   msdosdjgpp*)
6169     # On DJGPP, this test can blow up pretty badly due to problems in libc
6170     # (any single argument exceeding 2000 bytes causes a buffer overrun
6171     # during glob expansion).  Even if it were fixed, the result of this
6172     # check would be larger than it should be.
6173     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6174     ;;
6175
6176   gnu*)
6177     # Under GNU Hurd, this test is not required because there is
6178     # no limit to the length of command line arguments.
6179     # Libtool will interpret -1 as no limit whatsoever
6180     lt_cv_sys_max_cmd_len=-1;
6181     ;;
6182
6183   cygwin* | mingw* | cegcc*)
6184     # On Win9x/ME, this test blows up -- it succeeds, but takes
6185     # about 5 minutes as the teststring grows exponentially.
6186     # Worse, since 9x/ME are not pre-emptively multitasking,
6187     # you end up with a "frozen" computer, even though with patience
6188     # the test eventually succeeds (with a max line length of 256k).
6189     # Instead, let's just punt: use the minimum linelength reported by
6190     # all of the supported platforms: 8192 (on NT/2K/XP).
6191     lt_cv_sys_max_cmd_len=8192;
6192     ;;
6193
6194   mint*)
6195     # On MiNT this can take a long time and run out of memory.
6196     lt_cv_sys_max_cmd_len=8192;
6197     ;;
6198
6199   amigaos*)
6200     # On AmigaOS with pdksh, this test takes hours, literally.
6201     # So we just punt and use a minimum line length of 8192.
6202     lt_cv_sys_max_cmd_len=8192;
6203     ;;
6204
6205   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6206     # This has been around since 386BSD, at least.  Likely further.
6207     if test -x /sbin/sysctl; then
6208       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6209     elif test -x /usr/sbin/sysctl; then
6210       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6211     else
6212       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6213     fi
6214     # And add a safety zone
6215     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6217     ;;
6218
6219   interix*)
6220     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6221     lt_cv_sys_max_cmd_len=196608
6222     ;;
6223
6224   os2*)
6225     # The test takes a long time on OS/2.
6226     lt_cv_sys_max_cmd_len=8192
6227     ;;
6228
6229   osf*)
6230     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6231     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6232     # nice to cause kernel panics so lets avoid the loop below.
6233     # First set a reasonable default.
6234     lt_cv_sys_max_cmd_len=16384
6235     #
6236     if test -x /sbin/sysconfig; then
6237       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6238         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6239       esac
6240     fi
6241     ;;
6242   sco3.2v5*)
6243     lt_cv_sys_max_cmd_len=102400
6244     ;;
6245   sysv5* | sco5v6* | sysv4.2uw2*)
6246     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6247     if test -n "$kargmax"; then
6248       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6249     else
6250       lt_cv_sys_max_cmd_len=32768
6251     fi
6252     ;;
6253   *)
6254     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6255     if test -n "$lt_cv_sys_max_cmd_len" && \
6256        test undefined != "$lt_cv_sys_max_cmd_len"; then
6257       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6258       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6259     else
6260       # Make teststring a little bigger before we do anything with it.
6261       # a 1K string should be a reasonable start.
6262       for i in 1 2 3 4 5 6 7 8; do
6263         teststring=$teststring$teststring
6264       done
6265       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6266       # If test is not a shell built-in, we'll probably end up computing a
6267       # maximum length that is only half of the actual maximum length, but
6268       # we can't tell.
6269       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6270                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6271               test 17 != "$i" # 1/2 MB should be enough
6272       do
6273         i=`expr $i + 1`
6274         teststring=$teststring$teststring
6275       done
6276       # Only check the string length outside the loop.
6277       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6278       teststring=
6279       # Add a significant safety factor because C++ compilers can tack on
6280       # massive amounts of additional arguments before passing them to the
6281       # linker.  It appears as though 1/2 is a usable value.
6282       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6283     fi
6284     ;;
6285   esac
6286
6287 fi
6288
6289 if test -n "$lt_cv_sys_max_cmd_len"; then
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6291 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6292 else
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6294 $as_echo "none" >&6; }
6295 fi
6296 max_cmd_len=$lt_cv_sys_max_cmd_len
6297
6298
6299
6300
6301
6302
6303 : ${CP="cp -f"}
6304 : ${MV="mv -f"}
6305 : ${RM="rm -f"}
6306
6307 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6308   lt_unset=unset
6309 else
6310   lt_unset=false
6311 fi
6312
6313
6314
6315
6316
6317 # test EBCDIC or ASCII
6318 case `echo X|tr X '\101'` in
6319  A) # ASCII based system
6320     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6321   lt_SP2NL='tr \040 \012'
6322   lt_NL2SP='tr \015\012 \040\040'
6323   ;;
6324  *) # EBCDIC based system
6325   lt_SP2NL='tr \100 \n'
6326   lt_NL2SP='tr \r\n \100\100'
6327   ;;
6328 esac
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6339 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6340 if ${lt_cv_to_host_file_cmd+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   case $host in
6344   *-*-mingw* )
6345     case $build in
6346       *-*-mingw* ) # actually msys
6347         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6348         ;;
6349       *-*-cygwin* )
6350         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6351         ;;
6352       * ) # otherwise, assume *nix
6353         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6354         ;;
6355     esac
6356     ;;
6357   *-*-cygwin* )
6358     case $build in
6359       *-*-mingw* ) # actually msys
6360         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6361         ;;
6362       *-*-cygwin* )
6363         lt_cv_to_host_file_cmd=func_convert_file_noop
6364         ;;
6365       * ) # otherwise, assume *nix
6366         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6367         ;;
6368     esac
6369     ;;
6370   * ) # unhandled hosts (and "normal" native builds)
6371     lt_cv_to_host_file_cmd=func_convert_file_noop
6372     ;;
6373 esac
6374
6375 fi
6376
6377 to_host_file_cmd=$lt_cv_to_host_file_cmd
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6379 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6380
6381
6382
6383
6384
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6386 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6387 if ${lt_cv_to_tool_file_cmd+:} false; then :
6388   $as_echo_n "(cached) " >&6
6389 else
6390   #assume ordinary cross tools, or native build.
6391 lt_cv_to_tool_file_cmd=func_convert_file_noop
6392 case $host in
6393   *-*-mingw* )
6394     case $build in
6395       *-*-mingw* ) # actually msys
6396         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6397         ;;
6398     esac
6399     ;;
6400 esac
6401
6402 fi
6403
6404 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6406 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6407
6408
6409
6410
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6413 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6414 if ${lt_cv_ld_reload_flag+:} false; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   lt_cv_ld_reload_flag='-r'
6418 fi
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6420 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6421 reload_flag=$lt_cv_ld_reload_flag
6422 case $reload_flag in
6423 "" | " "*) ;;
6424 *) reload_flag=" $reload_flag" ;;
6425 esac
6426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6427 case $host_os in
6428   cygwin* | mingw* | pw32* | cegcc*)
6429     if test yes != "$GCC"; then
6430       reload_cmds=false
6431     fi
6432     ;;
6433   darwin*)
6434     if test yes = "$GCC"; then
6435       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6436     else
6437       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6438     fi
6439     ;;
6440 esac
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450 if test -n "$ac_tool_prefix"; then
6451   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6452 set dummy ${ac_tool_prefix}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_OBJDUMP+:} false; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458   if test -n "$OBJDUMP"; then
6459   ac_cv_prog_OBJDUMP="$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_OBJDUMP="${ac_tool_prefix}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 OBJDUMP=$ac_cv_prog_OBJDUMP
6479 if test -n "$OBJDUMP"; then
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6481 $as_echo "$OBJDUMP" >&6; }
6482 else
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487
6488 fi
6489 if test -z "$ac_cv_prog_OBJDUMP"; then
6490   ac_ct_OBJDUMP=$OBJDUMP
6491   # Extract the first word of "objdump", so it can be a program name with args.
6492 set dummy objdump; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6496   $as_echo_n "(cached) " >&6
6497 else
6498   if test -n "$ac_ct_OBJDUMP"; then
6499   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504   IFS=$as_save_IFS
6505   test -z "$as_dir" && as_dir=.
6506     for ac_exec_ext in '' $ac_executable_extensions; do
6507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510     break 2
6511   fi
6512 done
6513   done
6514 IFS=$as_save_IFS
6515
6516 fi
6517 fi
6518 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6519 if test -n "$ac_ct_OBJDUMP"; then
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6521 $as_echo "$ac_ct_OBJDUMP" >&6; }
6522 else
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6525 fi
6526
6527   if test "x$ac_ct_OBJDUMP" = x; then
6528     OBJDUMP="false"
6529   else
6530     case $cross_compiling:$ac_tool_warned in
6531 yes:)
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536     OBJDUMP=$ac_ct_OBJDUMP
6537   fi
6538 else
6539   OBJDUMP="$ac_cv_prog_OBJDUMP"
6540 fi
6541
6542 test -z "$OBJDUMP" && OBJDUMP=objdump
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6553 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6554 if ${lt_cv_deplibs_check_method+:} false; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   lt_cv_file_magic_cmd='$MAGIC_CMD'
6558 lt_cv_file_magic_test_file=
6559 lt_cv_deplibs_check_method='unknown'
6560 # Need to set the preceding variable on all platforms that support
6561 # interlibrary dependencies.
6562 # 'none' -- dependencies not supported.
6563 # 'unknown' -- same as none, but documents that we really don't know.
6564 # 'pass_all' -- all dependencies passed with no checks.
6565 # 'test_compile' -- check by making test program.
6566 # 'file_magic [[regex]]' -- check by looking for files in library path
6567 # that responds to the $file_magic_cmd with a given extended regex.
6568 # If you have 'file' or equivalent on your system and you're not sure
6569 # whether 'pass_all' will *always* work, you probably want this one.
6570
6571 case $host_os in
6572 aix[4-9]*)
6573   lt_cv_deplibs_check_method=pass_all
6574   ;;
6575
6576 beos*)
6577   lt_cv_deplibs_check_method=pass_all
6578   ;;
6579
6580 bsdi[45]*)
6581   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6582   lt_cv_file_magic_cmd='/usr/bin/file -L'
6583   lt_cv_file_magic_test_file=/shlib/libc.so
6584   ;;
6585
6586 cygwin*)
6587   # func_win32_libid is a shell function defined in ltmain.sh
6588   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6589   lt_cv_file_magic_cmd='func_win32_libid'
6590   ;;
6591
6592 mingw* | pw32*)
6593   # Base MSYS/MinGW do not provide the 'file' command needed by
6594   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6595   # unless we find 'file', for example because we are cross-compiling.
6596   if ( file / ) >/dev/null 2>&1; then
6597     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6598     lt_cv_file_magic_cmd='func_win32_libid'
6599   else
6600     # Keep this pattern in sync with the one in func_win32_libid.
6601     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6602     lt_cv_file_magic_cmd='$OBJDUMP -f'
6603   fi
6604   ;;
6605
6606 cegcc*)
6607   # use the weaker test based on 'objdump'. See mingw*.
6608   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6609   lt_cv_file_magic_cmd='$OBJDUMP -f'
6610   ;;
6611
6612 darwin* | rhapsody*)
6613   lt_cv_deplibs_check_method=pass_all
6614   ;;
6615
6616 freebsd* | dragonfly*)
6617   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6618     case $host_cpu in
6619     i*86 )
6620       # Not sure whether the presence of OpenBSD here was a mistake.
6621       # Let's accept both of them until this is cleared up.
6622       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6623       lt_cv_file_magic_cmd=/usr/bin/file
6624       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6625       ;;
6626     esac
6627   else
6628     lt_cv_deplibs_check_method=pass_all
6629   fi
6630   ;;
6631
6632 haiku*)
6633   lt_cv_deplibs_check_method=pass_all
6634   ;;
6635
6636 hpux10.20* | hpux11*)
6637   lt_cv_file_magic_cmd=/usr/bin/file
6638   case $host_cpu in
6639   ia64*)
6640     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6641     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6642     ;;
6643   hppa*64*)
6644     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]'
6645     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6646     ;;
6647   *)
6648     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6649     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6650     ;;
6651   esac
6652   ;;
6653
6654 interix[3-9]*)
6655   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6656   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6657   ;;
6658
6659 irix5* | irix6* | nonstopux*)
6660   case $LD in
6661   *-32|*"-32 ") libmagic=32-bit;;
6662   *-n32|*"-n32 ") libmagic=N32;;
6663   *-64|*"-64 ") libmagic=64-bit;;
6664   *) libmagic=never-match;;
6665   esac
6666   lt_cv_deplibs_check_method=pass_all
6667   ;;
6668
6669 # This must be glibc/ELF.
6670 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6671   lt_cv_deplibs_check_method=pass_all
6672   ;;
6673
6674 netbsd*)
6675   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6676     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6677   else
6678     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6679   fi
6680   ;;
6681
6682 newos6*)
6683   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6684   lt_cv_file_magic_cmd=/usr/bin/file
6685   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6686   ;;
6687
6688 *nto* | *qnx*)
6689   lt_cv_deplibs_check_method=pass_all
6690   ;;
6691
6692 openbsd* | bitrig*)
6693   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6694     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6695   else
6696     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6697   fi
6698   ;;
6699
6700 osf3* | osf4* | osf5*)
6701   lt_cv_deplibs_check_method=pass_all
6702   ;;
6703
6704 rdos*)
6705   lt_cv_deplibs_check_method=pass_all
6706   ;;
6707
6708 solaris*)
6709   lt_cv_deplibs_check_method=pass_all
6710   ;;
6711
6712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6713   lt_cv_deplibs_check_method=pass_all
6714   ;;
6715
6716 sysv4 | sysv4.3*)
6717   case $host_vendor in
6718   motorola)
6719     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]'
6720     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6721     ;;
6722   ncr)
6723     lt_cv_deplibs_check_method=pass_all
6724     ;;
6725   sequent)
6726     lt_cv_file_magic_cmd='/bin/file'
6727     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6728     ;;
6729   sni)
6730     lt_cv_file_magic_cmd='/bin/file'
6731     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6732     lt_cv_file_magic_test_file=/lib/libc.so
6733     ;;
6734   siemens)
6735     lt_cv_deplibs_check_method=pass_all
6736     ;;
6737   pc)
6738     lt_cv_deplibs_check_method=pass_all
6739     ;;
6740   esac
6741   ;;
6742
6743 tpf*)
6744   lt_cv_deplibs_check_method=pass_all
6745   ;;
6746 os2*)
6747   lt_cv_deplibs_check_method=pass_all
6748   ;;
6749 esac
6750
6751 fi
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6753 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6754
6755 file_magic_glob=
6756 want_nocaseglob=no
6757 if test "$build" = "$host"; then
6758   case $host_os in
6759   mingw* | pw32*)
6760     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6761       want_nocaseglob=yes
6762     else
6763       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6764     fi
6765     ;;
6766   esac
6767 fi
6768
6769 file_magic_cmd=$lt_cv_file_magic_cmd
6770 deplibs_check_method=$lt_cv_deplibs_check_method
6771 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794 if test -n "$ac_tool_prefix"; then
6795   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6796 set dummy ${ac_tool_prefix}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_DLLTOOL+:} false; then :
6800   $as_echo_n "(cached) " >&6
6801 else
6802   if test -n "$DLLTOOL"; then
6803   ac_cv_prog_DLLTOOL="$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_DLLTOOL="${ac_tool_prefix}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 DLLTOOL=$ac_cv_prog_DLLTOOL
6823 if test -n "$DLLTOOL"; then
6824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6825 $as_echo "$DLLTOOL" >&6; }
6826 else
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6829 fi
6830
6831
6832 fi
6833 if test -z "$ac_cv_prog_DLLTOOL"; then
6834   ac_ct_DLLTOOL=$DLLTOOL
6835   # Extract the first word of "dlltool", so it can be a program name with args.
6836 set dummy dlltool; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6840   $as_echo_n "(cached) " >&6
6841 else
6842   if test -n "$ac_ct_DLLTOOL"; then
6843   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848   IFS=$as_save_IFS
6849   test -z "$as_dir" && as_dir=.
6850     for ac_exec_ext in '' $ac_executable_extensions; do
6851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6852     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854     break 2
6855   fi
6856 done
6857   done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6863 if test -n "$ac_ct_DLLTOOL"; then
6864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6865 $as_echo "$ac_ct_DLLTOOL" >&6; }
6866 else
6867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871   if test "x$ac_ct_DLLTOOL" = x; then
6872     DLLTOOL="false"
6873   else
6874     case $cross_compiling:$ac_tool_warned in
6875 yes:)
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878 ac_tool_warned=yes ;;
6879 esac
6880     DLLTOOL=$ac_ct_DLLTOOL
6881   fi
6882 else
6883   DLLTOOL="$ac_cv_prog_DLLTOOL"
6884 fi
6885
6886 test -z "$DLLTOOL" && DLLTOOL=dlltool
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6898 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6899 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902   lt_cv_sharedlib_from_linklib_cmd='unknown'
6903
6904 case $host_os in
6905 cygwin* | mingw* | pw32* | cegcc*)
6906   # two different shell functions defined in ltmain.sh;
6907   # decide which one to use based on capabilities of $DLLTOOL
6908   case `$DLLTOOL --help 2>&1` in
6909   *--identify-strict*)
6910     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6911     ;;
6912   *)
6913     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6914     ;;
6915   esac
6916   ;;
6917 *)
6918   # fallback: assume linklib IS sharedlib
6919   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6920   ;;
6921 esac
6922
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6925 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6926 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6927 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6928
6929
6930
6931
6932
6933
6934
6935 if test -n "$ac_tool_prefix"; then
6936   for ac_prog in ar
6937   do
6938     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_AR+:} false; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$AR"; then
6946   ac_cv_prog_AR="$AR" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953     for ac_exec_ext in '' $ac_executable_extensions; do
6954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960   done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 AR=$ac_cv_prog_AR
6966 if test -n "$AR"; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6968 $as_echo "$AR" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975     test -n "$AR" && break
6976   done
6977 fi
6978 if test -z "$AR"; then
6979   ac_ct_AR=$AR
6980   for ac_prog in ar
6981 do
6982   # Extract the first word of "$ac_prog", so it can be a program name with args.
6983 set dummy $ac_prog; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   if test -n "$ac_ct_AR"; then
6990   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997     for ac_exec_ext in '' $ac_executable_extensions; do
6998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999     ac_cv_prog_ac_ct_AR="$ac_prog"
7000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004   done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7010 if test -n "$ac_ct_AR"; then
7011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7012 $as_echo "$ac_ct_AR" >&6; }
7013 else
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019   test -n "$ac_ct_AR" && break
7020 done
7021
7022   if test "x$ac_ct_AR" = x; then
7023     AR="false"
7024   else
7025     case $cross_compiling:$ac_tool_warned in
7026 yes:)
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029 ac_tool_warned=yes ;;
7030 esac
7031     AR=$ac_ct_AR
7032   fi
7033 fi
7034
7035 : ${AR=ar}
7036
7037
7038
7039
7040
7041
7042 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7043 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7044 # higher priority because thats what people were doing historically (setting
7045 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7046 # variable obsoleted/removed.
7047
7048 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7049 lt_ar_flags=$AR_FLAGS
7050
7051
7052
7053
7054
7055
7056 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7057 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7058
7059
7060
7061
7062
7063
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7065 $as_echo_n "checking for archiver @FILE support... " >&6; }
7066 if ${lt_cv_ar_at_file+:} false; then :
7067   $as_echo_n "(cached) " >&6
7068 else
7069   lt_cv_ar_at_file=no
7070    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h.  */
7072
7073 int
7074 main ()
7075 {
7076
7077   ;
7078   return 0;
7079 }
7080 _ACEOF
7081 if ac_fn_c_try_compile "$LINENO"; then :
7082   echo conftest.$ac_objext > conftest.lst
7083       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7084       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7085   (eval $lt_ar_try) 2>&5
7086   ac_status=$?
7087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088   test $ac_status = 0; }
7089       if test 0 -eq "$ac_status"; then
7090         # Ensure the archiver fails upon bogus file names.
7091         rm -f conftest.$ac_objext libconftest.a
7092         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7093   (eval $lt_ar_try) 2>&5
7094   ac_status=$?
7095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7096   test $ac_status = 0; }
7097         if test 0 -ne "$ac_status"; then
7098           lt_cv_ar_at_file=@
7099         fi
7100       fi
7101       rm -f conftest.* libconftest.a
7102
7103 fi
7104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105
7106 fi
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7108 $as_echo "$lt_cv_ar_at_file" >&6; }
7109
7110 if test no = "$lt_cv_ar_at_file"; then
7111   archiver_list_spec=
7112 else
7113   archiver_list_spec=$lt_cv_ar_at_file
7114 fi
7115
7116
7117
7118
7119
7120
7121
7122 if test -n "$ac_tool_prefix"; then
7123   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7124 set dummy ${ac_tool_prefix}strip; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_STRIP+:} false; then :
7128   $as_echo_n "(cached) " >&6
7129 else
7130   if test -n "$STRIP"; then
7131   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138     for ac_exec_ext in '' $ac_executable_extensions; do
7139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145   done
7146 IFS=$as_save_IFS
7147
7148 fi
7149 fi
7150 STRIP=$ac_cv_prog_STRIP
7151 if test -n "$STRIP"; then
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7153 $as_echo "$STRIP" >&6; }
7154 else
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7157 fi
7158
7159
7160 fi
7161 if test -z "$ac_cv_prog_STRIP"; then
7162   ac_ct_STRIP=$STRIP
7163   # Extract the first word of "strip", so it can be a program name with args.
7164 set dummy strip; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170   if test -n "$ac_ct_STRIP"; then
7171   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178     for ac_exec_ext in '' $ac_executable_extensions; do
7179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180     ac_cv_prog_ac_ct_STRIP="strip"
7181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185   done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7191 if test -n "$ac_ct_STRIP"; then
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7193 $as_echo "$ac_ct_STRIP" >&6; }
7194 else
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 fi
7198
7199   if test "x$ac_ct_STRIP" = x; then
7200     STRIP=":"
7201   else
7202     case $cross_compiling:$ac_tool_warned in
7203 yes:)
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7206 ac_tool_warned=yes ;;
7207 esac
7208     STRIP=$ac_ct_STRIP
7209   fi
7210 else
7211   STRIP="$ac_cv_prog_STRIP"
7212 fi
7213
7214 test -z "$STRIP" && STRIP=:
7215
7216
7217
7218
7219
7220
7221 if test -n "$ac_tool_prefix"; then
7222   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_RANLIB+:} false; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   if test -n "$RANLIB"; then
7230   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237     for ac_exec_ext in '' $ac_executable_extensions; do
7238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244   done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 RANLIB=$ac_cv_prog_RANLIB
7250 if test -n "$RANLIB"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7252 $as_echo "$RANLIB" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258
7259 fi
7260 if test -z "$ac_cv_prog_RANLIB"; then
7261   ac_ct_RANLIB=$RANLIB
7262   # Extract the first word of "ranlib", so it can be a program name with args.
7263 set dummy ranlib; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   if test -n "$ac_ct_RANLIB"; then
7270   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277     for ac_exec_ext in '' $ac_executable_extensions; do
7278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279     ac_cv_prog_ac_ct_RANLIB="ranlib"
7280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284   done
7285 IFS=$as_save_IFS
7286
7287 fi
7288 fi
7289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7290 if test -n "$ac_ct_RANLIB"; then
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7292 $as_echo "$ac_ct_RANLIB" >&6; }
7293 else
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7296 fi
7297
7298   if test "x$ac_ct_RANLIB" = x; then
7299     RANLIB=":"
7300   else
7301     case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307     RANLIB=$ac_ct_RANLIB
7308   fi
7309 else
7310   RANLIB="$ac_cv_prog_RANLIB"
7311 fi
7312
7313 test -z "$RANLIB" && RANLIB=:
7314
7315
7316
7317
7318
7319
7320 # Determine commands to create old-style static archives.
7321 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7322 old_postinstall_cmds='chmod 644 $oldlib'
7323 old_postuninstall_cmds=
7324
7325 if test -n "$RANLIB"; then
7326   case $host_os in
7327   bitrig* | openbsd*)
7328     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7329     ;;
7330   *)
7331     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7332     ;;
7333   esac
7334   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7335 fi
7336
7337 case $host_os in
7338   darwin*)
7339     lock_old_archive_extraction=yes ;;
7340   *)
7341     lock_old_archive_extraction=no ;;
7342 esac
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382 # If no C compiler was specified, use CC.
7383 LTCC=${LTCC-"$CC"}
7384
7385 # If no C compiler flags were specified, use CFLAGS.
7386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7387
7388 # Allow CC to be a program name with arguments.
7389 compiler=$CC
7390
7391
7392 # Check for command to grab the raw symbol name followed by C symbol from nm.
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7394 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7395 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7396   $as_echo_n "(cached) " >&6
7397 else
7398
7399 # These are sane defaults that work on at least a few old systems.
7400 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7401
7402 # Character class describing NM global symbol codes.
7403 symcode='[BCDEGRST]'
7404
7405 # Regexp to match symbols that can be accessed directly from C.
7406 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7407
7408 # Define system-specific variables.
7409 case $host_os in
7410 aix*)
7411   symcode='[BCDT]'
7412   ;;
7413 cygwin* | mingw* | pw32* | cegcc*)
7414   symcode='[ABCDGISTW]'
7415   ;;
7416 hpux*)
7417   if test ia64 = "$host_cpu"; then
7418     symcode='[ABCDEGRST]'
7419   fi
7420   ;;
7421 irix* | nonstopux*)
7422   symcode='[BCDEGRST]'
7423   ;;
7424 osf*)
7425   symcode='[BCDEGQRST]'
7426   ;;
7427 solaris*)
7428   symcode='[BDRT]'
7429   ;;
7430 sco3.2v5*)
7431   symcode='[DT]'
7432   ;;
7433 sysv4.2uw2*)
7434   symcode='[DT]'
7435   ;;
7436 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7437   symcode='[ABDT]'
7438   ;;
7439 sysv4)
7440   symcode='[DFNSTU]'
7441   ;;
7442 esac
7443
7444 # If we're using GNU nm, then use its standard symbol codes.
7445 case `$NM -V 2>&1` in
7446 *GNU* | *'with BFD'*)
7447   symcode='[ABCDGIRSTW]' ;;
7448 esac
7449
7450 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7451   # Gets list of data symbols to import.
7452   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7453   # Adjust the below global symbol transforms to fixup imported variables.
7454   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7455   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7456   lt_c_name_lib_hook="\
7457   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7458   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7459 else
7460   # Disable hooks by default.
7461   lt_cv_sys_global_symbol_to_import=
7462   lt_cdecl_hook=
7463   lt_c_name_hook=
7464   lt_c_name_lib_hook=
7465 fi
7466
7467 # Transform an extracted symbol line into a proper C declaration.
7468 # Some systems (esp. on ia64) link data and code symbols differently,
7469 # so use this general approach.
7470 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7471 $lt_cdecl_hook\
7472 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7473 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7474
7475 # Transform an extracted symbol line into symbol name and symbol address
7476 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7477 $lt_c_name_hook\
7478 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7479 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7480
7481 # Transform an extracted symbol line into symbol name with lib prefix and
7482 # symbol address.
7483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7484 $lt_c_name_lib_hook\
7485 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7486 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7487 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7488
7489 # Handle CRLF in mingw tool chain
7490 opt_cr=
7491 case $build_os in
7492 mingw*)
7493   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7494   ;;
7495 esac
7496
7497 # Try without a prefix underscore, then with it.
7498 for ac_symprfx in "" "_"; do
7499
7500   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7501   symxfrm="\\1 $ac_symprfx\\2 \\2"
7502
7503   # Write the raw and C identifiers.
7504   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7505     # Fake it for dumpbin and say T for any non-static function,
7506     # D for any global variable and I for any imported variable.
7507     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7508     # which start with @ or ?.
7509     lt_cv_sys_global_symbol_pipe="$AWK '"\
7510 "     {last_section=section; section=\$ 3};"\
7511 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7512 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7513 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7514 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7515 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7516 "     \$ 0!~/External *\|/{next};"\
7517 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7518 "     {if(hide[section]) next};"\
7519 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7520 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7521 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7522 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7523 "     ' prfx=^$ac_symprfx"
7524   else
7525     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7526   fi
7527   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7528
7529   # Check to see that the pipe works correctly.
7530   pipe_works=no
7531
7532   rm -f conftest*
7533   cat > conftest.$ac_ext <<_LT_EOF
7534 #ifdef __cplusplus
7535 extern "C" {
7536 #endif
7537 char nm_test_var;
7538 void nm_test_func(void);
7539 void nm_test_func(void){}
7540 #ifdef __cplusplus
7541 }
7542 #endif
7543 int main(){nm_test_var='a';nm_test_func();return(0);}
7544 _LT_EOF
7545
7546   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7547   (eval $ac_compile) 2>&5
7548   ac_status=$?
7549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550   test $ac_status = 0; }; then
7551     # Now try to grab the symbols.
7552     nlist=conftest.nm
7553     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7554   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7555   ac_status=$?
7556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557   test $ac_status = 0; } && test -s "$nlist"; then
7558       # Try sorting and uniquifying the output.
7559       if sort "$nlist" | uniq > "$nlist"T; then
7560         mv -f "$nlist"T "$nlist"
7561       else
7562         rm -f "$nlist"T
7563       fi
7564
7565       # Make sure that we snagged all the symbols we need.
7566       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7567         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7568           cat <<_LT_EOF > conftest.$ac_ext
7569 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7570 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7571 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7572    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7573 # define LT_DLSYM_CONST
7574 #elif defined __osf__
7575 /* This system does not cope well with relocations in const data.  */
7576 # define LT_DLSYM_CONST
7577 #else
7578 # define LT_DLSYM_CONST const
7579 #endif
7580
7581 #ifdef __cplusplus
7582 extern "C" {
7583 #endif
7584
7585 _LT_EOF
7586           # Now generate the symbol file.
7587           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7588
7589           cat <<_LT_EOF >> conftest.$ac_ext
7590
7591 /* The mapping between symbol names and symbols.  */
7592 LT_DLSYM_CONST struct {
7593   const char *name;
7594   void       *address;
7595 }
7596 lt__PROGRAM__LTX_preloaded_symbols[] =
7597 {
7598   { "@PROGRAM@", (void *) 0 },
7599 _LT_EOF
7600           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7601           cat <<\_LT_EOF >> conftest.$ac_ext
7602   {0, (void *) 0}
7603 };
7604
7605 /* This works around a problem in FreeBSD linker */
7606 #ifdef FREEBSD_WORKAROUND
7607 static const void *lt_preloaded_setup() {
7608   return lt__PROGRAM__LTX_preloaded_symbols;
7609 }
7610 #endif
7611
7612 #ifdef __cplusplus
7613 }
7614 #endif
7615 _LT_EOF
7616           # Now try linking the two files.
7617           mv conftest.$ac_objext conftstm.$ac_objext
7618           lt_globsym_save_LIBS=$LIBS
7619           lt_globsym_save_CFLAGS=$CFLAGS
7620           LIBS=conftstm.$ac_objext
7621           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7622           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7623   (eval $ac_link) 2>&5
7624   ac_status=$?
7625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7627             pipe_works=yes
7628           fi
7629           LIBS=$lt_globsym_save_LIBS
7630           CFLAGS=$lt_globsym_save_CFLAGS
7631         else
7632           echo "cannot find nm_test_func in $nlist" >&5
7633         fi
7634       else
7635         echo "cannot find nm_test_var in $nlist" >&5
7636       fi
7637     else
7638       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7639     fi
7640   else
7641     echo "$progname: failed program was:" >&5
7642     cat conftest.$ac_ext >&5
7643   fi
7644   rm -rf conftest* conftst*
7645
7646   # Do not use the global_symbol_pipe unless it works.
7647   if test yes = "$pipe_works"; then
7648     break
7649   else
7650     lt_cv_sys_global_symbol_pipe=
7651   fi
7652 done
7653
7654 fi
7655
7656 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7657   lt_cv_sys_global_symbol_to_cdecl=
7658 fi
7659 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7661 $as_echo "failed" >&6; }
7662 else
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7664 $as_echo "ok" >&6; }
7665 fi
7666
7667 # Response file support.
7668 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7669   nm_file_list_spec='@'
7670 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7671   nm_file_list_spec='@'
7672 fi
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7711 $as_echo_n "checking for sysroot... " >&6; }
7712
7713 # Check whether --with-sysroot was given.
7714 if test "${with_sysroot+set}" = set; then :
7715   withval=$with_sysroot;
7716 else
7717   with_sysroot=no
7718 fi
7719
7720
7721 lt_sysroot=
7722 case $with_sysroot in #(
7723  yes)
7724    if test yes = "$GCC"; then
7725      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7726    fi
7727    ;; #(
7728  /*)
7729    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7730    ;; #(
7731  no|'')
7732    ;; #(
7733  *)
7734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7735 $as_echo "$with_sysroot" >&6; }
7736    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7737    ;;
7738 esac
7739
7740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7741 $as_echo "${lt_sysroot:-no}" >&6; }
7742
7743
7744
7745
7746
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7748 $as_echo_n "checking for a working dd... " >&6; }
7749 if ${ac_cv_path_lt_DD+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   printf 0123456789abcdef0123456789abcdef >conftest.i
7753 cat conftest.i conftest.i >conftest2.i
7754 : ${lt_DD:=$DD}
7755 if test -z "$lt_DD"; then
7756   ac_path_lt_DD_found=false
7757   # Loop through the user's path and test for each of PROGNAME-LIST
7758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761   IFS=$as_save_IFS
7762   test -z "$as_dir" && as_dir=.
7763     for ac_prog in dd; do
7764     for ac_exec_ext in '' $ac_executable_extensions; do
7765       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7766       as_fn_executable_p "$ac_path_lt_DD" || continue
7767 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7768   cmp -s conftest.i conftest.out \
7769   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7770 fi
7771       $ac_path_lt_DD_found && break 3
7772     done
7773   done
7774   done
7775 IFS=$as_save_IFS
7776   if test -z "$ac_cv_path_lt_DD"; then
7777     :
7778   fi
7779 else
7780   ac_cv_path_lt_DD=$lt_DD
7781 fi
7782
7783 rm -f conftest.i conftest2.i conftest.out
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7786 $as_echo "$ac_cv_path_lt_DD" >&6; }
7787
7788
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7790 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7791 if ${lt_cv_truncate_bin+:} false; then :
7792   $as_echo_n "(cached) " >&6
7793 else
7794   printf 0123456789abcdef0123456789abcdef >conftest.i
7795 cat conftest.i conftest.i >conftest2.i
7796 lt_cv_truncate_bin=
7797 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7798   cmp -s conftest.i conftest.out \
7799   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7800 fi
7801 rm -f conftest.i conftest2.i conftest.out
7802 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7803 fi
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7805 $as_echo "$lt_cv_truncate_bin" >&6; }
7806
7807
7808
7809
7810
7811
7812
7813 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7814 func_cc_basename ()
7815 {
7816     for cc_temp in $*""; do
7817       case $cc_temp in
7818         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7819         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7820         \-*) ;;
7821         *) break;;
7822       esac
7823     done
7824     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7825 }
7826
7827 # Check whether --enable-libtool-lock was given.
7828 if test "${enable_libtool_lock+set}" = set; then :
7829   enableval=$enable_libtool_lock;
7830 fi
7831
7832 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7833
7834 # Some flags need to be propagated to the compiler or linker for good
7835 # libtool support.
7836 case $host in
7837 ia64-*-hpux*)
7838   # Find out what ABI is being produced by ac_compile, and set mode
7839   # options accordingly.
7840   echo 'int i;' > conftest.$ac_ext
7841   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7842   (eval $ac_compile) 2>&5
7843   ac_status=$?
7844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7845   test $ac_status = 0; }; then
7846     case `/usr/bin/file conftest.$ac_objext` in
7847       *ELF-32*)
7848         HPUX_IA64_MODE=32
7849         ;;
7850       *ELF-64*)
7851         HPUX_IA64_MODE=64
7852         ;;
7853     esac
7854   fi
7855   rm -rf conftest*
7856   ;;
7857 *-*-irix6*)
7858   # Find out what ABI is being produced by ac_compile, and set linker
7859   # options accordingly.
7860   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7861   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7862   (eval $ac_compile) 2>&5
7863   ac_status=$?
7864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7865   test $ac_status = 0; }; then
7866     if test yes = "$lt_cv_prog_gnu_ld"; then
7867       case `/usr/bin/file conftest.$ac_objext` in
7868         *32-bit*)
7869           LD="${LD-ld} -melf32bsmip"
7870           ;;
7871         *N32*)
7872           LD="${LD-ld} -melf32bmipn32"
7873           ;;
7874         *64-bit*)
7875           LD="${LD-ld} -melf64bmip"
7876         ;;
7877       esac
7878     else
7879       case `/usr/bin/file conftest.$ac_objext` in
7880         *32-bit*)
7881           LD="${LD-ld} -32"
7882           ;;
7883         *N32*)
7884           LD="${LD-ld} -n32"
7885           ;;
7886         *64-bit*)
7887           LD="${LD-ld} -64"
7888           ;;
7889       esac
7890     fi
7891   fi
7892   rm -rf conftest*
7893   ;;
7894
7895 mips64*-*linux*)
7896   # Find out what ABI is being produced by ac_compile, and set linker
7897   # options accordingly.
7898   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7899   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7900   (eval $ac_compile) 2>&5
7901   ac_status=$?
7902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903   test $ac_status = 0; }; then
7904     emul=elf
7905     case `/usr/bin/file conftest.$ac_objext` in
7906       *32-bit*)
7907         emul="${emul}32"
7908         ;;
7909       *64-bit*)
7910         emul="${emul}64"
7911         ;;
7912     esac
7913     case `/usr/bin/file conftest.$ac_objext` in
7914       *MSB*)
7915         emul="${emul}btsmip"
7916         ;;
7917       *LSB*)
7918         emul="${emul}ltsmip"
7919         ;;
7920     esac
7921     case `/usr/bin/file conftest.$ac_objext` in
7922       *N32*)
7923         emul="${emul}n32"
7924         ;;
7925     esac
7926     LD="${LD-ld} -m $emul"
7927   fi
7928   rm -rf conftest*
7929   ;;
7930
7931 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7932 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7933   # Find out what ABI is being produced by ac_compile, and set linker
7934   # options accordingly.  Note that the listed cases only cover the
7935   # situations where additional linker options are needed (such as when
7936   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7937   # vice versa); the common cases where no linker options are needed do
7938   # not appear in the list.
7939   echo 'int i;' > conftest.$ac_ext
7940   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7941   (eval $ac_compile) 2>&5
7942   ac_status=$?
7943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944   test $ac_status = 0; }; then
7945     case `/usr/bin/file conftest.o` in
7946       *32-bit*)
7947         case $host in
7948           x86_64-*kfreebsd*-gnu)
7949             LD="${LD-ld} -m elf_i386_fbsd"
7950             ;;
7951           x86_64-*linux*)
7952             case `/usr/bin/file conftest.o` in
7953               *x86-64*)
7954                 LD="${LD-ld} -m elf32_x86_64"
7955                 ;;
7956               *)
7957                 LD="${LD-ld} -m elf_i386"
7958                 ;;
7959             esac
7960             ;;
7961           powerpc64le-*linux*)
7962             LD="${LD-ld} -m elf32lppclinux"
7963             ;;
7964           powerpc64-*linux*)
7965             LD="${LD-ld} -m elf32ppclinux"
7966             ;;
7967           s390x-*linux*)
7968             LD="${LD-ld} -m elf_s390"
7969             ;;
7970           sparc64-*linux*)
7971             LD="${LD-ld} -m elf32_sparc"
7972             ;;
7973         esac
7974         ;;
7975       *64-bit*)
7976         case $host in
7977           x86_64-*kfreebsd*-gnu)
7978             LD="${LD-ld} -m elf_x86_64_fbsd"
7979             ;;
7980           x86_64-*linux*)
7981             LD="${LD-ld} -m elf_x86_64"
7982             ;;
7983           powerpcle-*linux*)
7984             LD="${LD-ld} -m elf64lppc"
7985             ;;
7986           powerpc-*linux*)
7987             LD="${LD-ld} -m elf64ppc"
7988             ;;
7989           s390*-*linux*|s390*-*tpf*)
7990             LD="${LD-ld} -m elf64_s390"
7991             ;;
7992           sparc*-*linux*)
7993             LD="${LD-ld} -m elf64_sparc"
7994             ;;
7995         esac
7996         ;;
7997     esac
7998   fi
7999   rm -rf conftest*
8000   ;;
8001
8002 *-*-sco3.2v5*)
8003   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8004   SAVE_CFLAGS=$CFLAGS
8005   CFLAGS="$CFLAGS -belf"
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8007 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8008 if ${lt_cv_cc_needs_belf+:} false; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011   ac_ext=c
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016
8017      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h.  */
8019
8020 int
8021 main ()
8022 {
8023
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 if ac_fn_c_try_link "$LINENO"; then :
8029   lt_cv_cc_needs_belf=yes
8030 else
8031   lt_cv_cc_needs_belf=no
8032 fi
8033 rm -f core conftest.err conftest.$ac_objext \
8034     conftest$ac_exeext conftest.$ac_ext
8035      ac_ext=c
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
8041 fi
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8043 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8044   if test yes != "$lt_cv_cc_needs_belf"; then
8045     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8046     CFLAGS=$SAVE_CFLAGS
8047   fi
8048   ;;
8049 *-*solaris*)
8050   # Find out what ABI is being produced by ac_compile, and set linker
8051   # options accordingly.
8052   echo 'int i;' > conftest.$ac_ext
8053   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8054   (eval $ac_compile) 2>&5
8055   ac_status=$?
8056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057   test $ac_status = 0; }; then
8058     case `/usr/bin/file conftest.o` in
8059     *64-bit*)
8060       case $lt_cv_prog_gnu_ld in
8061       yes*)
8062         case $host in
8063         i?86-*-solaris*|x86_64-*-solaris*)
8064           LD="${LD-ld} -m elf_x86_64"
8065           ;;
8066         sparc*-*-solaris*)
8067           LD="${LD-ld} -m elf64_sparc"
8068           ;;
8069         esac
8070         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8071         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8072           LD=${LD-ld}_sol2
8073         fi
8074         ;;
8075       *)
8076         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8077           LD="${LD-ld} -64"
8078         fi
8079         ;;
8080       esac
8081       ;;
8082     esac
8083   fi
8084   rm -rf conftest*
8085   ;;
8086 esac
8087
8088 need_locks=$enable_libtool_lock
8089
8090 if test -n "$ac_tool_prefix"; then
8091   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8092 set dummy ${ac_tool_prefix}mt; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098   if test -n "$MANIFEST_TOOL"; then
8099   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8100 else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8103 do
8104   IFS=$as_save_IFS
8105   test -z "$as_dir" && as_dir=.
8106     for ac_exec_ext in '' $ac_executable_extensions; do
8107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110     break 2
8111   fi
8112 done
8113   done
8114 IFS=$as_save_IFS
8115
8116 fi
8117 fi
8118 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8119 if test -n "$MANIFEST_TOOL"; then
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8121 $as_echo "$MANIFEST_TOOL" >&6; }
8122 else
8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126
8127
8128 fi
8129 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8130   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8131   # Extract the first word of "mt", so it can be a program name with args.
8132 set dummy mt; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   if test -n "$ac_ct_MANIFEST_TOOL"; then
8139   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144   IFS=$as_save_IFS
8145   test -z "$as_dir" && as_dir=.
8146     for ac_exec_ext in '' $ac_executable_extensions; do
8147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150     break 2
8151   fi
8152 done
8153   done
8154 IFS=$as_save_IFS
8155
8156 fi
8157 fi
8158 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8159 if test -n "$ac_ct_MANIFEST_TOOL"; then
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8161 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8162 else
8163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8168     MANIFEST_TOOL=":"
8169   else
8170     case $cross_compiling:$ac_tool_warned in
8171 yes:)
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8174 ac_tool_warned=yes ;;
8175 esac
8176     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8177   fi
8178 else
8179   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8180 fi
8181
8182 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8184 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8185 if ${lt_cv_path_mainfest_tool+:} false; then :
8186   $as_echo_n "(cached) " >&6
8187 else
8188   lt_cv_path_mainfest_tool=no
8189   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8190   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8191   cat conftest.err >&5
8192   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8193     lt_cv_path_mainfest_tool=yes
8194   fi
8195   rm -f conftest*
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8198 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8199 if test yes != "$lt_cv_path_mainfest_tool"; then
8200   MANIFEST_TOOL=:
8201 fi
8202
8203
8204
8205
8206
8207
8208   case $host_os in
8209     rhapsody* | darwin*)
8210     if test -n "$ac_tool_prefix"; then
8211   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   if test -n "$DSYMUTIL"; then
8219   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224   IFS=$as_save_IFS
8225   test -z "$as_dir" && as_dir=.
8226     for ac_exec_ext in '' $ac_executable_extensions; do
8227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230     break 2
8231   fi
8232 done
8233   done
8234 IFS=$as_save_IFS
8235
8236 fi
8237 fi
8238 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8239 if test -n "$DSYMUTIL"; then
8240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8241 $as_echo "$DSYMUTIL" >&6; }
8242 else
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8245 fi
8246
8247
8248 fi
8249 if test -z "$ac_cv_prog_DSYMUTIL"; then
8250   ac_ct_DSYMUTIL=$DSYMUTIL
8251   # Extract the first word of "dsymutil", so it can be a program name with args.
8252 set dummy dsymutil; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8256   $as_echo_n "(cached) " >&6
8257 else
8258   if test -n "$ac_ct_DSYMUTIL"; then
8259   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8260 else
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8263 do
8264   IFS=$as_save_IFS
8265   test -z "$as_dir" && as_dir=.
8266     for ac_exec_ext in '' $ac_executable_extensions; do
8267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270     break 2
8271   fi
8272 done
8273   done
8274 IFS=$as_save_IFS
8275
8276 fi
8277 fi
8278 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8279 if test -n "$ac_ct_DSYMUTIL"; then
8280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8281 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8282 else
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8285 fi
8286
8287   if test "x$ac_ct_DSYMUTIL" = x; then
8288     DSYMUTIL=":"
8289   else
8290     case $cross_compiling:$ac_tool_warned in
8291 yes:)
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294 ac_tool_warned=yes ;;
8295 esac
8296     DSYMUTIL=$ac_ct_DSYMUTIL
8297   fi
8298 else
8299   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8300 fi
8301
8302     if test -n "$ac_tool_prefix"; then
8303   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8304 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if ${ac_cv_prog_NMEDIT+:} false; then :
8308   $as_echo_n "(cached) " >&6
8309 else
8310   if test -n "$NMEDIT"; then
8311   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316   IFS=$as_save_IFS
8317   test -z "$as_dir" && as_dir=.
8318     for ac_exec_ext in '' $ac_executable_extensions; do
8319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322     break 2
8323   fi
8324 done
8325   done
8326 IFS=$as_save_IFS
8327
8328 fi
8329 fi
8330 NMEDIT=$ac_cv_prog_NMEDIT
8331 if test -n "$NMEDIT"; then
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8333 $as_echo "$NMEDIT" >&6; }
8334 else
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8337 fi
8338
8339
8340 fi
8341 if test -z "$ac_cv_prog_NMEDIT"; then
8342   ac_ct_NMEDIT=$NMEDIT
8343   # Extract the first word of "nmedit", so it can be a program name with args.
8344 set dummy nmedit; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8348   $as_echo_n "(cached) " >&6
8349 else
8350   if test -n "$ac_ct_NMEDIT"; then
8351   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356   IFS=$as_save_IFS
8357   test -z "$as_dir" && as_dir=.
8358     for ac_exec_ext in '' $ac_executable_extensions; do
8359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362     break 2
8363   fi
8364 done
8365   done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8371 if test -n "$ac_ct_NMEDIT"; then
8372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8373 $as_echo "$ac_ct_NMEDIT" >&6; }
8374 else
8375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379   if test "x$ac_ct_NMEDIT" = x; then
8380     NMEDIT=":"
8381   else
8382     case $cross_compiling:$ac_tool_warned in
8383 yes:)
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386 ac_tool_warned=yes ;;
8387 esac
8388     NMEDIT=$ac_ct_NMEDIT
8389   fi
8390 else
8391   NMEDIT="$ac_cv_prog_NMEDIT"
8392 fi
8393
8394     if test -n "$ac_tool_prefix"; then
8395   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8396 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_prog_LIPO+:} false; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   if test -n "$LIPO"; then
8403   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408   IFS=$as_save_IFS
8409   test -z "$as_dir" && as_dir=.
8410     for ac_exec_ext in '' $ac_executable_extensions; do
8411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414     break 2
8415   fi
8416 done
8417   done
8418 IFS=$as_save_IFS
8419
8420 fi
8421 fi
8422 LIPO=$ac_cv_prog_LIPO
8423 if test -n "$LIPO"; then
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8425 $as_echo "$LIPO" >&6; }
8426 else
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430
8431
8432 fi
8433 if test -z "$ac_cv_prog_LIPO"; then
8434   ac_ct_LIPO=$LIPO
8435   # Extract the first word of "lipo", so it can be a program name with args.
8436 set dummy lipo; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8440   $as_echo_n "(cached) " >&6
8441 else
8442   if test -n "$ac_ct_LIPO"; then
8443   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8447 do
8448   IFS=$as_save_IFS
8449   test -z "$as_dir" && as_dir=.
8450     for ac_exec_ext in '' $ac_executable_extensions; do
8451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452     ac_cv_prog_ac_ct_LIPO="lipo"
8453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454     break 2
8455   fi
8456 done
8457   done
8458 IFS=$as_save_IFS
8459
8460 fi
8461 fi
8462 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8463 if test -n "$ac_ct_LIPO"; then
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8465 $as_echo "$ac_ct_LIPO" >&6; }
8466 else
8467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8469 fi
8470
8471   if test "x$ac_ct_LIPO" = x; then
8472     LIPO=":"
8473   else
8474     case $cross_compiling:$ac_tool_warned in
8475 yes:)
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8478 ac_tool_warned=yes ;;
8479 esac
8480     LIPO=$ac_ct_LIPO
8481   fi
8482 else
8483   LIPO="$ac_cv_prog_LIPO"
8484 fi
8485
8486     if test -n "$ac_tool_prefix"; then
8487   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8488 set dummy ${ac_tool_prefix}otool; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_prog_OTOOL+:} false; then :
8492   $as_echo_n "(cached) " >&6
8493 else
8494   if test -n "$OTOOL"; then
8495   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8499 do
8500   IFS=$as_save_IFS
8501   test -z "$as_dir" && as_dir=.
8502     for ac_exec_ext in '' $ac_executable_extensions; do
8503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506     break 2
8507   fi
8508 done
8509   done
8510 IFS=$as_save_IFS
8511
8512 fi
8513 fi
8514 OTOOL=$ac_cv_prog_OTOOL
8515 if test -n "$OTOOL"; then
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8517 $as_echo "$OTOOL" >&6; }
8518 else
8519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8521 fi
8522
8523
8524 fi
8525 if test -z "$ac_cv_prog_OTOOL"; then
8526   ac_ct_OTOOL=$OTOOL
8527   # Extract the first word of "otool", so it can be a program name with args.
8528 set dummy otool; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8532   $as_echo_n "(cached) " >&6
8533 else
8534   if test -n "$ac_ct_OTOOL"; then
8535   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8536 else
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8539 do
8540   IFS=$as_save_IFS
8541   test -z "$as_dir" && as_dir=.
8542     for ac_exec_ext in '' $ac_executable_extensions; do
8543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544     ac_cv_prog_ac_ct_OTOOL="otool"
8545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546     break 2
8547   fi
8548 done
8549   done
8550 IFS=$as_save_IFS
8551
8552 fi
8553 fi
8554 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8555 if test -n "$ac_ct_OTOOL"; then
8556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8557 $as_echo "$ac_ct_OTOOL" >&6; }
8558 else
8559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561 fi
8562
8563   if test "x$ac_ct_OTOOL" = x; then
8564     OTOOL=":"
8565   else
8566     case $cross_compiling:$ac_tool_warned in
8567 yes:)
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570 ac_tool_warned=yes ;;
8571 esac
8572     OTOOL=$ac_ct_OTOOL
8573   fi
8574 else
8575   OTOOL="$ac_cv_prog_OTOOL"
8576 fi
8577
8578     if test -n "$ac_tool_prefix"; then
8579   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8580 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if ${ac_cv_prog_OTOOL64+:} false; then :
8584   $as_echo_n "(cached) " >&6
8585 else
8586   if test -n "$OTOOL64"; then
8587   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8588 else
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in $PATH
8591 do
8592   IFS=$as_save_IFS
8593   test -z "$as_dir" && as_dir=.
8594     for ac_exec_ext in '' $ac_executable_extensions; do
8595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8598     break 2
8599   fi
8600 done
8601   done
8602 IFS=$as_save_IFS
8603
8604 fi
8605 fi
8606 OTOOL64=$ac_cv_prog_OTOOL64
8607 if test -n "$OTOOL64"; then
8608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8609 $as_echo "$OTOOL64" >&6; }
8610 else
8611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8613 fi
8614
8615
8616 fi
8617 if test -z "$ac_cv_prog_OTOOL64"; then
8618   ac_ct_OTOOL64=$OTOOL64
8619   # Extract the first word of "otool64", so it can be a program name with args.
8620 set dummy otool64; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8624   $as_echo_n "(cached) " >&6
8625 else
8626   if test -n "$ac_ct_OTOOL64"; then
8627   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632   IFS=$as_save_IFS
8633   test -z "$as_dir" && as_dir=.
8634     for ac_exec_ext in '' $ac_executable_extensions; do
8635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8636     ac_cv_prog_ac_ct_OTOOL64="otool64"
8637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8638     break 2
8639   fi
8640 done
8641   done
8642 IFS=$as_save_IFS
8643
8644 fi
8645 fi
8646 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8647 if test -n "$ac_ct_OTOOL64"; then
8648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8649 $as_echo "$ac_ct_OTOOL64" >&6; }
8650 else
8651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8653 fi
8654
8655   if test "x$ac_ct_OTOOL64" = x; then
8656     OTOOL64=":"
8657   else
8658     case $cross_compiling:$ac_tool_warned in
8659 yes:)
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8662 ac_tool_warned=yes ;;
8663 esac
8664     OTOOL64=$ac_ct_OTOOL64
8665   fi
8666 else
8667   OTOOL64="$ac_cv_prog_OTOOL64"
8668 fi
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8697 $as_echo_n "checking for -single_module linker flag... " >&6; }
8698 if ${lt_cv_apple_cc_single_mod+:} false; then :
8699   $as_echo_n "(cached) " >&6
8700 else
8701   lt_cv_apple_cc_single_mod=no
8702       if test -z "$LT_MULTI_MODULE"; then
8703         # By default we will add the -single_module flag. You can override
8704         # by either setting the environment variable LT_MULTI_MODULE
8705         # non-empty at configure time, or by adding -multi_module to the
8706         # link flags.
8707         rm -rf libconftest.dylib*
8708         echo "int foo(void){return 1;}" > conftest.c
8709         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8710 -dynamiclib -Wl,-single_module conftest.c" >&5
8711         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8712           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8713         _lt_result=$?
8714         # If there is a non-empty error log, and "single_module"
8715         # appears in it, assume the flag caused a linker warning
8716         if test -s conftest.err && $GREP single_module conftest.err; then
8717           cat conftest.err >&5
8718         # Otherwise, if the output was created with a 0 exit code from
8719         # the compiler, it worked.
8720         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8721           lt_cv_apple_cc_single_mod=yes
8722         else
8723           cat conftest.err >&5
8724         fi
8725         rm -rf libconftest.dylib*
8726         rm -f conftest.*
8727       fi
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8730 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8731
8732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8733 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8734 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   lt_cv_ld_exported_symbols_list=no
8738       save_LDFLAGS=$LDFLAGS
8739       echo "_main" > conftest.sym
8740       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8741       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h.  */
8743
8744 int
8745 main ()
8746 {
8747
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_c_try_link "$LINENO"; then :
8753   lt_cv_ld_exported_symbols_list=yes
8754 else
8755   lt_cv_ld_exported_symbols_list=no
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext \
8758     conftest$ac_exeext conftest.$ac_ext
8759         LDFLAGS=$save_LDFLAGS
8760
8761 fi
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8763 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8764
8765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8766 $as_echo_n "checking for -force_load linker flag... " >&6; }
8767 if ${lt_cv_ld_force_load+:} false; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   lt_cv_ld_force_load=no
8771       cat > conftest.c << _LT_EOF
8772 int forced_loaded() { return 2;}
8773 _LT_EOF
8774       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8775       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8776       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8777       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8778       echo "$RANLIB libconftest.a" >&5
8779       $RANLIB libconftest.a 2>&5
8780       cat > conftest.c << _LT_EOF
8781 int main() { return 0;}
8782 _LT_EOF
8783       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8784       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8785       _lt_result=$?
8786       if test -s conftest.err && $GREP force_load conftest.err; then
8787         cat conftest.err >&5
8788       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8789         lt_cv_ld_force_load=yes
8790       else
8791         cat conftest.err >&5
8792       fi
8793         rm -f conftest.err libconftest.a conftest conftest.c
8794         rm -rf conftest.dSYM
8795
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8798 $as_echo "$lt_cv_ld_force_load" >&6; }
8799     case $host_os in
8800     rhapsody* | darwin1.[012])
8801       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8802     darwin1.*)
8803       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8804     darwin*) # darwin 5.x on
8805       # if running on 10.5 or later, the deployment target defaults
8806       # to the OS version, if on x86, and 10.4, the deployment
8807       # target defaults to 10.4. Don't you love it?
8808       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8809         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8810           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8811         10.[012][,.]*)
8812           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8813         10.*)
8814           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8815       esac
8816     ;;
8817   esac
8818     if test yes = "$lt_cv_apple_cc_single_mod"; then
8819       _lt_dar_single_mod='$single_module'
8820     fi
8821     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8822       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8823     else
8824       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8825     fi
8826     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8827       _lt_dsymutil='~$DSYMUTIL $lib || :'
8828     else
8829       _lt_dsymutil=
8830     fi
8831     ;;
8832   esac
8833
8834 # func_munge_path_list VARIABLE PATH
8835 # -----------------------------------
8836 # VARIABLE is name of variable containing _space_ separated list of
8837 # directories to be munged by the contents of PATH, which is string
8838 # having a format:
8839 # "DIR[:DIR]:"
8840 #       string "DIR[ DIR]" will be prepended to VARIABLE
8841 # ":DIR[:DIR]"
8842 #       string "DIR[ DIR]" will be appended to VARIABLE
8843 # "DIRP[:DIRP]::[DIRA:]DIRA"
8844 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8845 #       "DIRA[ DIRA]" will be appended to VARIABLE
8846 # "DIR[:DIR]"
8847 #       VARIABLE will be replaced by "DIR[ DIR]"
8848 func_munge_path_list ()
8849 {
8850     case x$2 in
8851     x)
8852         ;;
8853     *:)
8854         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8855         ;;
8856     x:*)
8857         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8858         ;;
8859     *::*)
8860         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8861         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8862         ;;
8863     *)
8864         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8865         ;;
8866     esac
8867 }
8868
8869 ac_ext=c
8870 ac_cpp='$CPP $CPPFLAGS'
8871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8875 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8876 # On Suns, sometimes $CPP names a directory.
8877 if test -n "$CPP" && test -d "$CPP"; then
8878   CPP=
8879 fi
8880 if test -z "$CPP"; then
8881   if ${ac_cv_prog_CPP+:} false; then :
8882   $as_echo_n "(cached) " >&6
8883 else
8884       # Double quotes because CPP needs to be expanded
8885     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8886     do
8887       ac_preproc_ok=false
8888 for ac_c_preproc_warn_flag in '' yes
8889 do
8890   # Use a header file that comes with gcc, so configuring glibc
8891   # with a fresh cross-compiler works.
8892   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8893   # <limits.h> exists even on freestanding compilers.
8894   # On the NeXT, cc -E runs the code through the compiler's parser,
8895   # not just through cpp. "Syntax error" is here to catch this case.
8896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897 /* end confdefs.h.  */
8898 #ifdef __STDC__
8899 # include <limits.h>
8900 #else
8901 # include <assert.h>
8902 #endif
8903                      Syntax error
8904 _ACEOF
8905 if ac_fn_c_try_cpp "$LINENO"; then :
8906
8907 else
8908   # Broken: fails on valid input.
8909 continue
8910 fi
8911 rm -f conftest.err conftest.i conftest.$ac_ext
8912
8913   # OK, works on sane cases.  Now check whether nonexistent headers
8914   # can be detected and how.
8915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h.  */
8917 #include <ac_nonexistent.h>
8918 _ACEOF
8919 if ac_fn_c_try_cpp "$LINENO"; then :
8920   # Broken: success on invalid input.
8921 continue
8922 else
8923   # Passes both tests.
8924 ac_preproc_ok=:
8925 break
8926 fi
8927 rm -f conftest.err conftest.i conftest.$ac_ext
8928
8929 done
8930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8931 rm -f conftest.i conftest.err conftest.$ac_ext
8932 if $ac_preproc_ok; then :
8933   break
8934 fi
8935
8936     done
8937     ac_cv_prog_CPP=$CPP
8938
8939 fi
8940   CPP=$ac_cv_prog_CPP
8941 else
8942   ac_cv_prog_CPP=$CPP
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8945 $as_echo "$CPP" >&6; }
8946 ac_preproc_ok=false
8947 for ac_c_preproc_warn_flag in '' yes
8948 do
8949   # Use a header file that comes with gcc, so configuring glibc
8950   # with a fresh cross-compiler works.
8951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8952   # <limits.h> exists even on freestanding compilers.
8953   # On the NeXT, cc -E runs the code through the compiler's parser,
8954   # not just through cpp. "Syntax error" is here to catch this case.
8955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h.  */
8957 #ifdef __STDC__
8958 # include <limits.h>
8959 #else
8960 # include <assert.h>
8961 #endif
8962                      Syntax error
8963 _ACEOF
8964 if ac_fn_c_try_cpp "$LINENO"; then :
8965
8966 else
8967   # Broken: fails on valid input.
8968 continue
8969 fi
8970 rm -f conftest.err conftest.i conftest.$ac_ext
8971
8972   # OK, works on sane cases.  Now check whether nonexistent headers
8973   # can be detected and how.
8974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976 #include <ac_nonexistent.h>
8977 _ACEOF
8978 if ac_fn_c_try_cpp "$LINENO"; then :
8979   # Broken: success on invalid input.
8980 continue
8981 else
8982   # Passes both tests.
8983 ac_preproc_ok=:
8984 break
8985 fi
8986 rm -f conftest.err conftest.i conftest.$ac_ext
8987
8988 done
8989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8990 rm -f conftest.i conftest.err conftest.$ac_ext
8991 if $ac_preproc_ok; then :
8992
8993 else
8994   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8996 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8997 See \`config.log' for more details" "$LINENO" 5; }
8998 fi
8999
9000 ac_ext=c
9001 ac_cpp='$CPP $CPPFLAGS'
9002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9005
9006
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9008 $as_echo_n "checking for ANSI C header files... " >&6; }
9009 if ${ac_cv_header_stdc+:} false; then :
9010   $as_echo_n "(cached) " >&6
9011 else
9012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h.  */
9014 #include <stdlib.h>
9015 #include <stdarg.h>
9016 #include <string.h>
9017 #include <float.h>
9018
9019 int
9020 main ()
9021 {
9022
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 if ac_fn_c_try_compile "$LINENO"; then :
9028   ac_cv_header_stdc=yes
9029 else
9030   ac_cv_header_stdc=no
9031 fi
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033
9034 if test $ac_cv_header_stdc = yes; then
9035   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h.  */
9038 #include <string.h>
9039
9040 _ACEOF
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042   $EGREP "memchr" >/dev/null 2>&1; then :
9043
9044 else
9045   ac_cv_header_stdc=no
9046 fi
9047 rm -f conftest*
9048
9049 fi
9050
9051 if test $ac_cv_header_stdc = yes; then
9052   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h.  */
9055 #include <stdlib.h>
9056
9057 _ACEOF
9058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9059   $EGREP "free" >/dev/null 2>&1; then :
9060
9061 else
9062   ac_cv_header_stdc=no
9063 fi
9064 rm -f conftest*
9065
9066 fi
9067
9068 if test $ac_cv_header_stdc = yes; then
9069   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9070   if test "$cross_compiling" = yes; then :
9071   :
9072 else
9073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h.  */
9075 #include <ctype.h>
9076 #include <stdlib.h>
9077 #if ((' ' & 0x0FF) == 0x020)
9078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9080 #else
9081 # define ISLOWER(c) \
9082                    (('a' <= (c) && (c) <= 'i') \
9083                      || ('j' <= (c) && (c) <= 'r') \
9084                      || ('s' <= (c) && (c) <= 'z'))
9085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9086 #endif
9087
9088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9089 int
9090 main ()
9091 {
9092   int i;
9093   for (i = 0; i < 256; i++)
9094     if (XOR (islower (i), ISLOWER (i))
9095         || toupper (i) != TOUPPER (i))
9096       return 2;
9097   return 0;
9098 }
9099 _ACEOF
9100 if ac_fn_c_try_run "$LINENO"; then :
9101
9102 else
9103   ac_cv_header_stdc=no
9104 fi
9105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9106   conftest.$ac_objext conftest.beam conftest.$ac_ext
9107 fi
9108
9109 fi
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9112 $as_echo "$ac_cv_header_stdc" >&6; }
9113 if test $ac_cv_header_stdc = yes; then
9114
9115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9116
9117 fi
9118
9119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9120 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9121                   inttypes.h stdint.h unistd.h
9122 do :
9123   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9124 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9125 "
9126 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9127   cat >>confdefs.h <<_ACEOF
9128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9129 _ACEOF
9130
9131 fi
9132
9133 done
9134
9135
9136 for ac_header in dlfcn.h
9137 do :
9138   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9139 "
9140 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9141   cat >>confdefs.h <<_ACEOF
9142 #define HAVE_DLFCN_H 1
9143 _ACEOF
9144
9145 fi
9146
9147 done
9148
9149
9150
9151
9152
9153 # Set options
9154 # Check whether --enable-static was given.
9155 if test "${enable_static+set}" = set; then :
9156   enableval=$enable_static; p=${PACKAGE-default}
9157     case $enableval in
9158     yes) enable_static=yes ;;
9159     no) enable_static=no ;;
9160     *)
9161      enable_static=no
9162       # Look at the argument we got.  We use all the common list separators.
9163       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9164       for pkg in $enableval; do
9165         IFS=$lt_save_ifs
9166         if test "X$pkg" = "X$p"; then
9167           enable_static=yes
9168         fi
9169       done
9170       IFS=$lt_save_ifs
9171       ;;
9172     esac
9173 else
9174   enable_static=no
9175 fi
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186         enable_dlopen=no
9187
9188
9189   enable_win32_dll=no
9190
9191
9192             # Check whether --enable-shared was given.
9193 if test "${enable_shared+set}" = set; then :
9194   enableval=$enable_shared; p=${PACKAGE-default}
9195     case $enableval in
9196     yes) enable_shared=yes ;;
9197     no) enable_shared=no ;;
9198     *)
9199       enable_shared=no
9200       # Look at the argument we got.  We use all the common list separators.
9201       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9202       for pkg in $enableval; do
9203         IFS=$lt_save_ifs
9204         if test "X$pkg" = "X$p"; then
9205           enable_shared=yes
9206         fi
9207       done
9208       IFS=$lt_save_ifs
9209       ;;
9210     esac
9211 else
9212   enable_shared=yes
9213 fi
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225 # Check whether --with-pic was given.
9226 if test "${with_pic+set}" = set; then :
9227   withval=$with_pic; lt_p=${PACKAGE-default}
9228     case $withval in
9229     yes|no) pic_mode=$withval ;;
9230     *)
9231       pic_mode=default
9232       # Look at the argument we got.  We use all the common list separators.
9233       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9234       for lt_pkg in $withval; do
9235         IFS=$lt_save_ifs
9236         if test "X$lt_pkg" = "X$lt_p"; then
9237           pic_mode=yes
9238         fi
9239       done
9240       IFS=$lt_save_ifs
9241       ;;
9242     esac
9243 else
9244   pic_mode=default
9245 fi
9246
9247
9248
9249
9250
9251
9252
9253
9254   # Check whether --enable-fast-install was given.
9255 if test "${enable_fast_install+set}" = set; then :
9256   enableval=$enable_fast_install; p=${PACKAGE-default}
9257     case $enableval in
9258     yes) enable_fast_install=yes ;;
9259     no) enable_fast_install=no ;;
9260     *)
9261       enable_fast_install=no
9262       # Look at the argument we got.  We use all the common list separators.
9263       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9264       for pkg in $enableval; do
9265         IFS=$lt_save_ifs
9266         if test "X$pkg" = "X$p"; then
9267           enable_fast_install=yes
9268         fi
9269       done
9270       IFS=$lt_save_ifs
9271       ;;
9272     esac
9273 else
9274   enable_fast_install=yes
9275 fi
9276
9277
9278
9279
9280
9281
9282
9283
9284   shared_archive_member_spec=
9285 case $host,$enable_shared in
9286 power*-*-aix[5-9]*,yes)
9287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9288 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9289
9290 # Check whether --with-aix-soname was given.
9291 if test "${with_aix_soname+set}" = set; then :
9292   withval=$with_aix_soname; case $withval in
9293     aix|svr4|both)
9294       ;;
9295     *)
9296       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9297       ;;
9298     esac
9299     lt_cv_with_aix_soname=$with_aix_soname
9300 else
9301   if ${lt_cv_with_aix_soname+:} false; then :
9302   $as_echo_n "(cached) " >&6
9303 else
9304   lt_cv_with_aix_soname=aix
9305 fi
9306
9307     with_aix_soname=$lt_cv_with_aix_soname
9308 fi
9309
9310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9311 $as_echo "$with_aix_soname" >&6; }
9312   if test aix != "$with_aix_soname"; then
9313     # For the AIX way of multilib, we name the shared archive member
9314     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9315     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9316     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9317     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9318     if test 64 = "${OBJECT_MODE-32}"; then
9319       shared_archive_member_spec=shr_64
9320     else
9321       shared_archive_member_spec=shr
9322     fi
9323   fi
9324   ;;
9325 *)
9326   with_aix_soname=aix
9327   ;;
9328 esac
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339 # This can be used to rebuild libtool when needed
9340 LIBTOOL_DEPS=$ltmain
9341
9342 # Always use our own libtool.
9343 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374 test -z "$LN_S" && LN_S="ln -s"
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389 if test -n "${ZSH_VERSION+set}"; then
9390    setopt NO_GLOB_SUBST
9391 fi
9392
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9394 $as_echo_n "checking for objdir... " >&6; }
9395 if ${lt_cv_objdir+:} false; then :
9396   $as_echo_n "(cached) " >&6
9397 else
9398   rm -f .libs 2>/dev/null
9399 mkdir .libs 2>/dev/null
9400 if test -d .libs; then
9401   lt_cv_objdir=.libs
9402 else
9403   # MS-DOS does not allow filenames that begin with a dot.
9404   lt_cv_objdir=_libs
9405 fi
9406 rmdir .libs 2>/dev/null
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9409 $as_echo "$lt_cv_objdir" >&6; }
9410 objdir=$lt_cv_objdir
9411
9412
9413
9414
9415
9416 cat >>confdefs.h <<_ACEOF
9417 #define LT_OBJDIR "$lt_cv_objdir/"
9418 _ACEOF
9419
9420
9421
9422
9423 case $host_os in
9424 aix3*)
9425   # AIX sometimes has problems with the GCC collect2 program.  For some
9426   # reason, if we set the COLLECT_NAMES environment variable, the problems
9427   # vanish in a puff of smoke.
9428   if test set != "${COLLECT_NAMES+set}"; then
9429     COLLECT_NAMES=
9430     export COLLECT_NAMES
9431   fi
9432   ;;
9433 esac
9434
9435 # Global variables:
9436 ofile=libtool
9437 can_build_shared=yes
9438
9439 # All known linkers require a '.a' archive for static linking (except MSVC and
9440 # ICC, which need '.lib').
9441 libext=a
9442
9443 with_gnu_ld=$lt_cv_prog_gnu_ld
9444
9445 old_CC=$CC
9446 old_CFLAGS=$CFLAGS
9447
9448 # Set sane defaults for various variables
9449 test -z "$CC" && CC=cc
9450 test -z "$LTCC" && LTCC=$CC
9451 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9452 test -z "$LD" && LD=ld
9453 test -z "$ac_objext" && ac_objext=o
9454
9455 func_cc_basename $compiler
9456 cc_basename=$func_cc_basename_result
9457
9458
9459 # Only perform the check for file, if the check method requires it
9460 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9461 case $deplibs_check_method in
9462 file_magic*)
9463   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9465 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9466 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9467   $as_echo_n "(cached) " >&6
9468 else
9469   case $MAGIC_CMD in
9470 [\\/*] |  ?:[\\/]*)
9471   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9472   ;;
9473 *)
9474   lt_save_MAGIC_CMD=$MAGIC_CMD
9475   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9476   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9477   for ac_dir in $ac_dummy; do
9478     IFS=$lt_save_ifs
9479     test -z "$ac_dir" && ac_dir=.
9480     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9481       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9482       if test -n "$file_magic_test_file"; then
9483         case $deplibs_check_method in
9484         "file_magic "*)
9485           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9486           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9487           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9488             $EGREP "$file_magic_regex" > /dev/null; then
9489             :
9490           else
9491             cat <<_LT_EOF 1>&2
9492
9493 *** Warning: the command libtool uses to detect shared libraries,
9494 *** $file_magic_cmd, produces output that libtool cannot recognize.
9495 *** The result is that libtool may fail to recognize shared libraries
9496 *** as such.  This will affect the creation of libtool libraries that
9497 *** depend on shared libraries, but programs linked with such libtool
9498 *** libraries will work regardless of this problem.  Nevertheless, you
9499 *** may want to report the problem to your system manager and/or to
9500 *** bug-libtool@gnu.org
9501
9502 _LT_EOF
9503           fi ;;
9504         esac
9505       fi
9506       break
9507     fi
9508   done
9509   IFS=$lt_save_ifs
9510   MAGIC_CMD=$lt_save_MAGIC_CMD
9511   ;;
9512 esac
9513 fi
9514
9515 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9516 if test -n "$MAGIC_CMD"; then
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9518 $as_echo "$MAGIC_CMD" >&6; }
9519 else
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9522 fi
9523
9524
9525
9526
9527
9528 if test -z "$lt_cv_path_MAGIC_CMD"; then
9529   if test -n "$ac_tool_prefix"; then
9530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9531 $as_echo_n "checking for file... " >&6; }
9532 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9533   $as_echo_n "(cached) " >&6
9534 else
9535   case $MAGIC_CMD in
9536 [\\/*] |  ?:[\\/]*)
9537   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9538   ;;
9539 *)
9540   lt_save_MAGIC_CMD=$MAGIC_CMD
9541   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9542   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9543   for ac_dir in $ac_dummy; do
9544     IFS=$lt_save_ifs
9545     test -z "$ac_dir" && ac_dir=.
9546     if test -f "$ac_dir/file"; then
9547       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9548       if test -n "$file_magic_test_file"; then
9549         case $deplibs_check_method in
9550         "file_magic "*)
9551           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9552           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9553           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9554             $EGREP "$file_magic_regex" > /dev/null; then
9555             :
9556           else
9557             cat <<_LT_EOF 1>&2
9558
9559 *** Warning: the command libtool uses to detect shared libraries,
9560 *** $file_magic_cmd, produces output that libtool cannot recognize.
9561 *** The result is that libtool may fail to recognize shared libraries
9562 *** as such.  This will affect the creation of libtool libraries that
9563 *** depend on shared libraries, but programs linked with such libtool
9564 *** libraries will work regardless of this problem.  Nevertheless, you
9565 *** may want to report the problem to your system manager and/or to
9566 *** bug-libtool@gnu.org
9567
9568 _LT_EOF
9569           fi ;;
9570         esac
9571       fi
9572       break
9573     fi
9574   done
9575   IFS=$lt_save_ifs
9576   MAGIC_CMD=$lt_save_MAGIC_CMD
9577   ;;
9578 esac
9579 fi
9580
9581 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9582 if test -n "$MAGIC_CMD"; then
9583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9584 $as_echo "$MAGIC_CMD" >&6; }
9585 else
9586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9588 fi
9589
9590
9591   else
9592     MAGIC_CMD=:
9593   fi
9594 fi
9595
9596   fi
9597   ;;
9598 esac
9599
9600 # Use C for the default configuration in the libtool script
9601
9602 lt_save_CC=$CC
9603 ac_ext=c
9604 ac_cpp='$CPP $CPPFLAGS'
9605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9608
9609
9610 # Source file extension for C test sources.
9611 ac_ext=c
9612
9613 # Object file extension for compiled C test sources.
9614 objext=o
9615 objext=$objext
9616
9617 # Code to be used in simple compile tests
9618 lt_simple_compile_test_code="int some_variable = 0;"
9619
9620 # Code to be used in simple link tests
9621 lt_simple_link_test_code='int main(){return(0);}'
9622
9623
9624
9625
9626
9627
9628
9629 # If no C compiler was specified, use CC.
9630 LTCC=${LTCC-"$CC"}
9631
9632 # If no C compiler flags were specified, use CFLAGS.
9633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9634
9635 # Allow CC to be a program name with arguments.
9636 compiler=$CC
9637
9638 # Save the default compiler, since it gets overwritten when the other
9639 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9640 compiler_DEFAULT=$CC
9641
9642 # save warnings/boilerplate of simple test code
9643 ac_outfile=conftest.$ac_objext
9644 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9646 _lt_compiler_boilerplate=`cat conftest.err`
9647 $RM conftest*
9648
9649 ac_outfile=conftest.$ac_objext
9650 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9652 _lt_linker_boilerplate=`cat conftest.err`
9653 $RM -r conftest*
9654
9655
9656 ## CAVEAT EMPTOR:
9657 ## There is no encapsulation within the following macros, do not change
9658 ## the running order or otherwise move them around unless you know exactly
9659 ## what you are doing...
9660 if test -n "$compiler"; then
9661
9662 lt_prog_compiler_no_builtin_flag=
9663
9664 if test yes = "$GCC"; then
9665   case $cc_basename in
9666   nvcc*)
9667     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9668   *)
9669     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9670   esac
9671
9672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9673 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9674 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9675   $as_echo_n "(cached) " >&6
9676 else
9677   lt_cv_prog_compiler_rtti_exceptions=no
9678    ac_outfile=conftest.$ac_objext
9679    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9680    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9681    # Insert the option either (1) after the last *FLAGS variable, or
9682    # (2) before a word containing "conftest.", or (3) at the end.
9683    # Note that $ac_compile itself does not contain backslashes and begins
9684    # with a dollar sign (not a hyphen), so the echo should work correctly.
9685    # The option is referenced via a variable to avoid confusing sed.
9686    lt_compile=`echo "$ac_compile" | $SED \
9687    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9688    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9689    -e 's:$: $lt_compiler_flag:'`
9690    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9691    (eval "$lt_compile" 2>conftest.err)
9692    ac_status=$?
9693    cat conftest.err >&5
9694    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695    if (exit $ac_status) && test -s "$ac_outfile"; then
9696      # The compiler can only warn and ignore the option if not recognized
9697      # So say no if there are warnings other than the usual output.
9698      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9699      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9700      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9701        lt_cv_prog_compiler_rtti_exceptions=yes
9702      fi
9703    fi
9704    $RM conftest*
9705
9706 fi
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9708 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9709
9710 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9711     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9712 else
9713     :
9714 fi
9715
9716 fi
9717
9718
9719
9720
9721
9722
9723   lt_prog_compiler_wl=
9724 lt_prog_compiler_pic=
9725 lt_prog_compiler_static=
9726
9727
9728   if test yes = "$GCC"; then
9729     lt_prog_compiler_wl='-Wl,'
9730     lt_prog_compiler_static='-static'
9731
9732     case $host_os in
9733       aix*)
9734       # All AIX code is PIC.
9735       if test ia64 = "$host_cpu"; then
9736         # AIX 5 now supports IA64 processor
9737         lt_prog_compiler_static='-Bstatic'
9738       fi
9739       lt_prog_compiler_pic='-fPIC'
9740       ;;
9741
9742     amigaos*)
9743       case $host_cpu in
9744       powerpc)
9745             # see comment about AmigaOS4 .so support
9746             lt_prog_compiler_pic='-fPIC'
9747         ;;
9748       m68k)
9749             # FIXME: we need at least 68020 code to build shared libraries, but
9750             # adding the '-m68020' flag to GCC prevents building anything better,
9751             # like '-m68040'.
9752             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9753         ;;
9754       esac
9755       ;;
9756
9757     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9758       # PIC is the default for these OSes.
9759       ;;
9760
9761     mingw* | cygwin* | pw32* | os2* | cegcc*)
9762       # This hack is so that the source file can tell whether it is being
9763       # built for inclusion in a dll (and should export symbols for example).
9764       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9765       # (--disable-auto-import) libraries
9766       lt_prog_compiler_pic='-DDLL_EXPORT'
9767       case $host_os in
9768       os2*)
9769         lt_prog_compiler_static='$wl-static'
9770         ;;
9771       esac
9772       ;;
9773
9774     darwin* | rhapsody*)
9775       # PIC is the default on this platform
9776       # Common symbols not allowed in MH_DYLIB files
9777       lt_prog_compiler_pic='-fno-common'
9778       ;;
9779
9780     haiku*)
9781       # PIC is the default for Haiku.
9782       # The "-static" flag exists, but is broken.
9783       lt_prog_compiler_static=
9784       ;;
9785
9786     hpux*)
9787       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9788       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9789       # sets the default TLS model and affects inlining.
9790       case $host_cpu in
9791       hppa*64*)
9792         # +Z the default
9793         ;;
9794       *)
9795         lt_prog_compiler_pic='-fPIC'
9796         ;;
9797       esac
9798       ;;
9799
9800     interix[3-9]*)
9801       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9802       # Instead, we relocate shared libraries at runtime.
9803       ;;
9804
9805     msdosdjgpp*)
9806       # Just because we use GCC doesn't mean we suddenly get shared libraries
9807       # on systems that don't support them.
9808       lt_prog_compiler_can_build_shared=no
9809       enable_shared=no
9810       ;;
9811
9812     *nto* | *qnx*)
9813       # QNX uses GNU C++, but need to define -shared option too, otherwise
9814       # it will coredump.
9815       lt_prog_compiler_pic='-fPIC -shared'
9816       ;;
9817
9818     sysv4*MP*)
9819       if test -d /usr/nec; then
9820         lt_prog_compiler_pic=-Kconform_pic
9821       fi
9822       ;;
9823
9824     *)
9825       lt_prog_compiler_pic='-fPIC'
9826       ;;
9827     esac
9828
9829     case $cc_basename in
9830     nvcc*) # Cuda Compiler Driver 2.2
9831       lt_prog_compiler_wl='-Xlinker '
9832       if test -n "$lt_prog_compiler_pic"; then
9833         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9834       fi
9835       ;;
9836     esac
9837   else
9838     # PORTME Check for flag to pass linker flags through the system compiler.
9839     case $host_os in
9840     aix*)
9841       lt_prog_compiler_wl='-Wl,'
9842       if test ia64 = "$host_cpu"; then
9843         # AIX 5 now supports IA64 processor
9844         lt_prog_compiler_static='-Bstatic'
9845       else
9846         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9847       fi
9848       ;;
9849
9850     darwin* | rhapsody*)
9851       # PIC is the default on this platform
9852       # Common symbols not allowed in MH_DYLIB files
9853       lt_prog_compiler_pic='-fno-common'
9854       case $cc_basename in
9855       nagfor*)
9856         # NAG Fortran compiler
9857         lt_prog_compiler_wl='-Wl,-Wl,,'
9858         lt_prog_compiler_pic='-PIC'
9859         lt_prog_compiler_static='-Bstatic'
9860         ;;
9861       esac
9862       ;;
9863
9864     mingw* | cygwin* | pw32* | os2* | cegcc*)
9865       # This hack is so that the source file can tell whether it is being
9866       # built for inclusion in a dll (and should export symbols for example).
9867       lt_prog_compiler_pic='-DDLL_EXPORT'
9868       case $host_os in
9869       os2*)
9870         lt_prog_compiler_static='$wl-static'
9871         ;;
9872       esac
9873       ;;
9874
9875     hpux9* | hpux10* | hpux11*)
9876       lt_prog_compiler_wl='-Wl,'
9877       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9878       # not for PA HP-UX.
9879       case $host_cpu in
9880       hppa*64*|ia64*)
9881         # +Z the default
9882         ;;
9883       *)
9884         lt_prog_compiler_pic='+Z'
9885         ;;
9886       esac
9887       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9888       lt_prog_compiler_static='$wl-a ${wl}archive'
9889       ;;
9890
9891     irix5* | irix6* | nonstopux*)
9892       lt_prog_compiler_wl='-Wl,'
9893       # PIC (with -KPIC) is the default.
9894       lt_prog_compiler_static='-non_shared'
9895       ;;
9896
9897     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9898       case $cc_basename in
9899       # old Intel for x86_64, which still supported -KPIC.
9900       ecc*)
9901         lt_prog_compiler_wl='-Wl,'
9902         lt_prog_compiler_pic='-KPIC'
9903         lt_prog_compiler_static='-static'
9904         ;;
9905       # icc used to be incompatible with GCC.
9906       # ICC 10 doesn't accept -KPIC any more.
9907       icc* | ifort*)
9908         lt_prog_compiler_wl='-Wl,'
9909         lt_prog_compiler_pic='-fPIC'
9910         lt_prog_compiler_static='-static'
9911         ;;
9912       # Lahey Fortran 8.1.
9913       lf95*)
9914         lt_prog_compiler_wl='-Wl,'
9915         lt_prog_compiler_pic='--shared'
9916         lt_prog_compiler_static='--static'
9917         ;;
9918       nagfor*)
9919         # NAG Fortran compiler
9920         lt_prog_compiler_wl='-Wl,-Wl,,'
9921         lt_prog_compiler_pic='-PIC'
9922         lt_prog_compiler_static='-Bstatic'
9923         ;;
9924       tcc*)
9925         # Fabrice Bellard et al's Tiny C Compiler
9926         lt_prog_compiler_wl='-Wl,'
9927         lt_prog_compiler_pic='-fPIC'
9928         lt_prog_compiler_static='-static'
9929         ;;
9930       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9931         # Portland Group compilers (*not* the Pentium gcc compiler,
9932         # which looks to be a dead project)
9933         lt_prog_compiler_wl='-Wl,'
9934         lt_prog_compiler_pic='-fpic'
9935         lt_prog_compiler_static='-Bstatic'
9936         ;;
9937       ccc*)
9938         lt_prog_compiler_wl='-Wl,'
9939         # All Alpha code is PIC.
9940         lt_prog_compiler_static='-non_shared'
9941         ;;
9942       xl* | bgxl* | bgf* | mpixl*)
9943         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9944         lt_prog_compiler_wl='-Wl,'
9945         lt_prog_compiler_pic='-qpic'
9946         lt_prog_compiler_static='-qstaticlink'
9947         ;;
9948       *)
9949         case `$CC -V 2>&1 | sed 5q` in
9950         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9951           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9952           lt_prog_compiler_pic='-KPIC'
9953           lt_prog_compiler_static='-Bstatic'
9954           lt_prog_compiler_wl=''
9955           ;;
9956         *Sun\ F* | *Sun*Fortran*)
9957           lt_prog_compiler_pic='-KPIC'
9958           lt_prog_compiler_static='-Bstatic'
9959           lt_prog_compiler_wl='-Qoption ld '
9960           ;;
9961         *Sun\ C*)
9962           # Sun C 5.9
9963           lt_prog_compiler_pic='-KPIC'
9964           lt_prog_compiler_static='-Bstatic'
9965           lt_prog_compiler_wl='-Wl,'
9966           ;;
9967         *Intel*\ [CF]*Compiler*)
9968           lt_prog_compiler_wl='-Wl,'
9969           lt_prog_compiler_pic='-fPIC'
9970           lt_prog_compiler_static='-static'
9971           ;;
9972         *Portland\ Group*)
9973           lt_prog_compiler_wl='-Wl,'
9974           lt_prog_compiler_pic='-fpic'
9975           lt_prog_compiler_static='-Bstatic'
9976           ;;
9977         esac
9978         ;;
9979       esac
9980       ;;
9981
9982     newsos6)
9983       lt_prog_compiler_pic='-KPIC'
9984       lt_prog_compiler_static='-Bstatic'
9985       ;;
9986
9987     *nto* | *qnx*)
9988       # QNX uses GNU C++, but need to define -shared option too, otherwise
9989       # it will coredump.
9990       lt_prog_compiler_pic='-fPIC -shared'
9991       ;;
9992
9993     osf3* | osf4* | osf5*)
9994       lt_prog_compiler_wl='-Wl,'
9995       # All OSF/1 code is PIC.
9996       lt_prog_compiler_static='-non_shared'
9997       ;;
9998
9999     rdos*)
10000       lt_prog_compiler_static='-non_shared'
10001       ;;
10002
10003     solaris*)
10004       lt_prog_compiler_pic='-KPIC'
10005       lt_prog_compiler_static='-Bstatic'
10006       case $cc_basename in
10007       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10008         lt_prog_compiler_wl='-Qoption ld ';;
10009       *)
10010         lt_prog_compiler_wl='-Wl,';;
10011       esac
10012       ;;
10013
10014     sunos4*)
10015       lt_prog_compiler_wl='-Qoption ld '
10016       lt_prog_compiler_pic='-PIC'
10017       lt_prog_compiler_static='-Bstatic'
10018       ;;
10019
10020     sysv4 | sysv4.2uw2* | sysv4.3*)
10021       lt_prog_compiler_wl='-Wl,'
10022       lt_prog_compiler_pic='-KPIC'
10023       lt_prog_compiler_static='-Bstatic'
10024       ;;
10025
10026     sysv4*MP*)
10027       if test -d /usr/nec; then
10028         lt_prog_compiler_pic='-Kconform_pic'
10029         lt_prog_compiler_static='-Bstatic'
10030       fi
10031       ;;
10032
10033     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10034       lt_prog_compiler_wl='-Wl,'
10035       lt_prog_compiler_pic='-KPIC'
10036       lt_prog_compiler_static='-Bstatic'
10037       ;;
10038
10039     unicos*)
10040       lt_prog_compiler_wl='-Wl,'
10041       lt_prog_compiler_can_build_shared=no
10042       ;;
10043
10044     uts4*)
10045       lt_prog_compiler_pic='-pic'
10046       lt_prog_compiler_static='-Bstatic'
10047       ;;
10048
10049     *)
10050       lt_prog_compiler_can_build_shared=no
10051       ;;
10052     esac
10053   fi
10054
10055 case $host_os in
10056   # For platforms that do not support PIC, -DPIC is meaningless:
10057   *djgpp*)
10058     lt_prog_compiler_pic=
10059     ;;
10060   *)
10061     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10062     ;;
10063 esac
10064
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10066 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10067 if ${lt_cv_prog_compiler_pic+:} false; then :
10068   $as_echo_n "(cached) " >&6
10069 else
10070   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10071 fi
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10073 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10074 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10075
10076 #
10077 # Check to make sure the PIC flag actually works.
10078 #
10079 if test -n "$lt_prog_compiler_pic"; then
10080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10081 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10082 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   lt_cv_prog_compiler_pic_works=no
10086    ac_outfile=conftest.$ac_objext
10087    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10088    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10089    # Insert the option either (1) after the last *FLAGS variable, or
10090    # (2) before a word containing "conftest.", or (3) at the end.
10091    # Note that $ac_compile itself does not contain backslashes and begins
10092    # with a dollar sign (not a hyphen), so the echo should work correctly.
10093    # The option is referenced via a variable to avoid confusing sed.
10094    lt_compile=`echo "$ac_compile" | $SED \
10095    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10096    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10097    -e 's:$: $lt_compiler_flag:'`
10098    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10099    (eval "$lt_compile" 2>conftest.err)
10100    ac_status=$?
10101    cat conftest.err >&5
10102    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103    if (exit $ac_status) && test -s "$ac_outfile"; then
10104      # The compiler can only warn and ignore the option if not recognized
10105      # So say no if there are warnings other than the usual output.
10106      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10107      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10108      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10109        lt_cv_prog_compiler_pic_works=yes
10110      fi
10111    fi
10112    $RM conftest*
10113
10114 fi
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10116 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10117
10118 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10119     case $lt_prog_compiler_pic in
10120      "" | " "*) ;;
10121      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10122      esac
10123 else
10124     lt_prog_compiler_pic=
10125      lt_prog_compiler_can_build_shared=no
10126 fi
10127
10128 fi
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140 #
10141 # Check to make sure the static flag actually works.
10142 #
10143 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10145 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10146 if ${lt_cv_prog_compiler_static_works+:} false; then :
10147   $as_echo_n "(cached) " >&6
10148 else
10149   lt_cv_prog_compiler_static_works=no
10150    save_LDFLAGS=$LDFLAGS
10151    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10152    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10153    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10154      # The linker can only warn and ignore the option if not recognized
10155      # So say no if there are warnings
10156      if test -s conftest.err; then
10157        # Append any errors to the config.log.
10158        cat conftest.err 1>&5
10159        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10160        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10161        if diff conftest.exp conftest.er2 >/dev/null; then
10162          lt_cv_prog_compiler_static_works=yes
10163        fi
10164      else
10165        lt_cv_prog_compiler_static_works=yes
10166      fi
10167    fi
10168    $RM -r conftest*
10169    LDFLAGS=$save_LDFLAGS
10170
10171 fi
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10173 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10174
10175 if test yes = "$lt_cv_prog_compiler_static_works"; then
10176     :
10177 else
10178     lt_prog_compiler_static=
10179 fi
10180
10181
10182
10183
10184
10185
10186
10187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10188 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10189 if ${lt_cv_prog_compiler_c_o+:} false; then :
10190   $as_echo_n "(cached) " >&6
10191 else
10192   lt_cv_prog_compiler_c_o=no
10193    $RM -r conftest 2>/dev/null
10194    mkdir conftest
10195    cd conftest
10196    mkdir out
10197    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10198
10199    lt_compiler_flag="-o out/conftest2.$ac_objext"
10200    # Insert the option either (1) after the last *FLAGS variable, or
10201    # (2) before a word containing "conftest.", or (3) at the end.
10202    # Note that $ac_compile itself does not contain backslashes and begins
10203    # with a dollar sign (not a hyphen), so the echo should work correctly.
10204    lt_compile=`echo "$ac_compile" | $SED \
10205    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10207    -e 's:$: $lt_compiler_flag:'`
10208    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10209    (eval "$lt_compile" 2>out/conftest.err)
10210    ac_status=$?
10211    cat out/conftest.err >&5
10212    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10214    then
10215      # The compiler can only warn and ignore the option if not recognized
10216      # So say no if there are warnings
10217      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10218      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10219      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10220        lt_cv_prog_compiler_c_o=yes
10221      fi
10222    fi
10223    chmod u+w . 2>&5
10224    $RM conftest*
10225    # SGI C++ compiler will create directory out/ii_files/ for
10226    # template instantiation
10227    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10228    $RM out/* && rmdir out
10229    cd ..
10230    $RM -r conftest
10231    $RM conftest*
10232
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10235 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10236
10237
10238
10239
10240
10241
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10244 if ${lt_cv_prog_compiler_c_o+:} false; then :
10245   $as_echo_n "(cached) " >&6
10246 else
10247   lt_cv_prog_compiler_c_o=no
10248    $RM -r conftest 2>/dev/null
10249    mkdir conftest
10250    cd conftest
10251    mkdir out
10252    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10253
10254    lt_compiler_flag="-o out/conftest2.$ac_objext"
10255    # Insert the option either (1) after the last *FLAGS variable, or
10256    # (2) before a word containing "conftest.", or (3) at the end.
10257    # Note that $ac_compile itself does not contain backslashes and begins
10258    # with a dollar sign (not a hyphen), so the echo should work correctly.
10259    lt_compile=`echo "$ac_compile" | $SED \
10260    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10261    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10262    -e 's:$: $lt_compiler_flag:'`
10263    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10264    (eval "$lt_compile" 2>out/conftest.err)
10265    ac_status=$?
10266    cat out/conftest.err >&5
10267    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10269    then
10270      # The compiler can only warn and ignore the option if not recognized
10271      # So say no if there are warnings
10272      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10273      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10274      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10275        lt_cv_prog_compiler_c_o=yes
10276      fi
10277    fi
10278    chmod u+w . 2>&5
10279    $RM conftest*
10280    # SGI C++ compiler will create directory out/ii_files/ for
10281    # template instantiation
10282    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10283    $RM out/* && rmdir out
10284    cd ..
10285    $RM -r conftest
10286    $RM conftest*
10287
10288 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10290 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10291
10292
10293
10294
10295 hard_links=nottested
10296 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10297   # do not overwrite the value of need_locks provided by the user
10298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10299 $as_echo_n "checking if we can lock with hard links... " >&6; }
10300   hard_links=yes
10301   $RM conftest*
10302   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10303   touch conftest.a
10304   ln conftest.a conftest.b 2>&5 || hard_links=no
10305   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10307 $as_echo "$hard_links" >&6; }
10308   if test no = "$hard_links"; then
10309     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10310 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10311     need_locks=warn
10312   fi
10313 else
10314   need_locks=no
10315 fi
10316
10317
10318
10319
10320
10321
10322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10323 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10324
10325   runpath_var=
10326   allow_undefined_flag=
10327   always_export_symbols=no
10328   archive_cmds=
10329   archive_expsym_cmds=
10330   compiler_needs_object=no
10331   enable_shared_with_static_runtimes=no
10332   export_dynamic_flag_spec=
10333   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10334   hardcode_automatic=no
10335   hardcode_direct=no
10336   hardcode_direct_absolute=no
10337   hardcode_libdir_flag_spec=
10338   hardcode_libdir_separator=
10339   hardcode_minus_L=no
10340   hardcode_shlibpath_var=unsupported
10341   inherit_rpath=no
10342   link_all_deplibs=unknown
10343   module_cmds=
10344   module_expsym_cmds=
10345   old_archive_from_new_cmds=
10346   old_archive_from_expsyms_cmds=
10347   thread_safe_flag_spec=
10348   whole_archive_flag_spec=
10349   # include_expsyms should be a list of space-separated symbols to be *always*
10350   # included in the symbol list
10351   include_expsyms=
10352   # exclude_expsyms can be an extended regexp of symbols to exclude
10353   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10354   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10355   # as well as any symbol that contains 'd'.
10356   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10357   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10358   # platforms (ab)use it in PIC code, but their linkers get confused if
10359   # the symbol is explicitly referenced.  Since portable code cannot
10360   # rely on this symbol name, it's probably fine to never include it in
10361   # preloaded symbol tables.
10362   # Exclude shared library initialization/finalization symbols.
10363   extract_expsyms_cmds=
10364
10365   case $host_os in
10366   cygwin* | mingw* | pw32* | cegcc*)
10367     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10368     # When not using gcc, we currently assume that we are using
10369     # Microsoft Visual C++ or Intel C++ Compiler.
10370     if test yes != "$GCC"; then
10371       with_gnu_ld=no
10372     fi
10373     ;;
10374   interix*)
10375     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10376     with_gnu_ld=yes
10377     ;;
10378   openbsd* | bitrig*)
10379     with_gnu_ld=no
10380     ;;
10381   esac
10382
10383   ld_shlibs=yes
10384
10385   # On some targets, GNU ld is compatible enough with the native linker
10386   # that we're better off using the native interface for both.
10387   lt_use_gnu_ld_interface=no
10388   if test yes = "$with_gnu_ld"; then
10389     case $host_os in
10390       aix*)
10391         # The AIX port of GNU ld has always aspired to compatibility
10392         # with the native linker.  However, as the warning in the GNU ld
10393         # block says, versions before 2.19.5* couldn't really create working
10394         # shared libraries, regardless of the interface used.
10395         case `$LD -v 2>&1` in
10396           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10397           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10398           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10399           *)
10400             lt_use_gnu_ld_interface=yes
10401             ;;
10402         esac
10403         ;;
10404       *)
10405         lt_use_gnu_ld_interface=yes
10406         ;;
10407     esac
10408   fi
10409
10410   if test yes = "$lt_use_gnu_ld_interface"; then
10411     # If archive_cmds runs LD, not CC, wlarc should be empty
10412     wlarc='$wl'
10413
10414     # Set some defaults for GNU ld with shared library support. These
10415     # are reset later if shared libraries are not supported. Putting them
10416     # here allows them to be overridden if necessary.
10417     runpath_var=LD_RUN_PATH
10418     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10419     export_dynamic_flag_spec='$wl--export-dynamic'
10420     # ancient GNU ld didn't support --whole-archive et. al.
10421     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10422       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10423     else
10424       whole_archive_flag_spec=
10425     fi
10426     supports_anon_versioning=no
10427     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10428       *GNU\ gold*) supports_anon_versioning=yes ;;
10429       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10430       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10431       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10432       *\ 2.11.*) ;; # other 2.11 versions
10433       *) supports_anon_versioning=yes ;;
10434     esac
10435
10436     # See if GNU ld supports shared libraries.
10437     case $host_os in
10438     aix[3-9]*)
10439       # On AIX/PPC, the GNU linker is very broken
10440       if test ia64 != "$host_cpu"; then
10441         ld_shlibs=no
10442         cat <<_LT_EOF 1>&2
10443
10444 *** Warning: the GNU linker, at least up to release 2.19, is reported
10445 *** to be unable to reliably create shared libraries on AIX.
10446 *** Therefore, libtool is disabling shared libraries support.  If you
10447 *** really care for shared libraries, you may want to install binutils
10448 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10449 *** You will then need to restart the configuration process.
10450
10451 _LT_EOF
10452       fi
10453       ;;
10454
10455     amigaos*)
10456       case $host_cpu in
10457       powerpc)
10458             # see comment about AmigaOS4 .so support
10459             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10460             archive_expsym_cmds=''
10461         ;;
10462       m68k)
10463             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)'
10464             hardcode_libdir_flag_spec='-L$libdir'
10465             hardcode_minus_L=yes
10466         ;;
10467       esac
10468       ;;
10469
10470     beos*)
10471       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10472         allow_undefined_flag=unsupported
10473         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10474         # support --undefined.  This deserves some investigation.  FIXME
10475         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10476       else
10477         ld_shlibs=no
10478       fi
10479       ;;
10480
10481     cygwin* | mingw* | pw32* | cegcc*)
10482       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10483       # as there is no search path for DLLs.
10484       hardcode_libdir_flag_spec='-L$libdir'
10485       export_dynamic_flag_spec='$wl--export-all-symbols'
10486       allow_undefined_flag=unsupported
10487       always_export_symbols=no
10488       enable_shared_with_static_runtimes=yes
10489       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'
10490       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10491
10492       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10493         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10494         # If the export-symbols file already is a .def file, use it as
10495         # is; otherwise, prepend EXPORTS...
10496         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10497           cp $export_symbols $output_objdir/$soname.def;
10498         else
10499           echo EXPORTS > $output_objdir/$soname.def;
10500           cat $export_symbols >> $output_objdir/$soname.def;
10501         fi~
10502         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10503       else
10504         ld_shlibs=no
10505       fi
10506       ;;
10507
10508     haiku*)
10509       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10510       link_all_deplibs=yes
10511       ;;
10512
10513     os2*)
10514       hardcode_libdir_flag_spec='-L$libdir'
10515       hardcode_minus_L=yes
10516       allow_undefined_flag=unsupported
10517       shrext_cmds=.dll
10518       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10519         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10520         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10521         $ECHO EXPORTS >> $output_objdir/$libname.def~
10522         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10523         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10524         emximp -o $lib $output_objdir/$libname.def'
10525       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10526         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10527         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10528         $ECHO EXPORTS >> $output_objdir/$libname.def~
10529         prefix_cmds="$SED"~
10530         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10531           prefix_cmds="$prefix_cmds -e 1d";
10532         fi~
10533         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10534         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10535         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10536         emximp -o $lib $output_objdir/$libname.def'
10537       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10538       enable_shared_with_static_runtimes=yes
10539       file_list_spec='@'
10540       ;;
10541
10542     interix[3-9]*)
10543       hardcode_direct=no
10544       hardcode_shlibpath_var=no
10545       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10546       export_dynamic_flag_spec='$wl-E'
10547       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10548       # Instead, shared libraries are loaded at an image base (0x10000000 by
10549       # default) and relocated if they conflict, which is a slow very memory
10550       # consuming and fragmenting process.  To avoid this, we pick a random,
10551       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10552       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10553       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10554       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'
10555       ;;
10556
10557     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10558       tmp_diet=no
10559       if test linux-dietlibc = "$host_os"; then
10560         case $cc_basename in
10561           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10562         esac
10563       fi
10564       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10565          && test no = "$tmp_diet"
10566       then
10567         tmp_addflag=' $pic_flag'
10568         tmp_sharedflag='-shared'
10569         case $cc_basename,$host_cpu in
10570         pgcc*)                          # Portland Group C compiler
10571           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'
10572           tmp_addflag=' $pic_flag'
10573           ;;
10574         pgf77* | pgf90* | pgf95* | pgfortran*)
10575                                         # Portland Group f77 and f90 compilers
10576           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'
10577           tmp_addflag=' $pic_flag -Mnomain' ;;
10578         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10579           tmp_addflag=' -i_dynamic' ;;
10580         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10581           tmp_addflag=' -i_dynamic -nofor_main' ;;
10582         ifc* | ifort*)                  # Intel Fortran compiler
10583           tmp_addflag=' -nofor_main' ;;
10584         lf95*)                          # Lahey Fortran 8.1
10585           whole_archive_flag_spec=
10586           tmp_sharedflag='--shared' ;;
10587         nagfor*)                        # NAGFOR 5.3
10588           tmp_sharedflag='-Wl,-shared' ;;
10589         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10590           tmp_sharedflag='-qmkshrobj'
10591           tmp_addflag= ;;
10592         nvcc*)  # Cuda Compiler Driver 2.2
10593           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'
10594           compiler_needs_object=yes
10595           ;;
10596         esac
10597         case `$CC -V 2>&1 | sed 5q` in
10598         *Sun\ C*)                       # Sun C 5.9
10599           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'
10600           compiler_needs_object=yes
10601           tmp_sharedflag='-G' ;;
10602         *Sun\ F*)                       # Sun Fortran 8.3
10603           tmp_sharedflag='-G' ;;
10604         esac
10605         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10606
10607         if test yes = "$supports_anon_versioning"; then
10608           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10609             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10610             echo "local: *; };" >> $output_objdir/$libname.ver~
10611             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10612         fi
10613
10614         case $cc_basename in
10615         tcc*)
10616           export_dynamic_flag_spec='-rdynamic'
10617           ;;
10618         xlf* | bgf* | bgxlf* | mpixlf*)
10619           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10620           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10621           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10622           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10623           if test yes = "$supports_anon_versioning"; then
10624             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10625               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10626               echo "local: *; };" >> $output_objdir/$libname.ver~
10627               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10628           fi
10629           ;;
10630         esac
10631       else
10632         ld_shlibs=no
10633       fi
10634       ;;
10635
10636     netbsd*)
10637       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10638         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10639         wlarc=
10640       else
10641         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10642         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10643       fi
10644       ;;
10645
10646     solaris*)
10647       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10648         ld_shlibs=no
10649         cat <<_LT_EOF 1>&2
10650
10651 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10652 *** create shared libraries on Solaris systems.  Therefore, libtool
10653 *** is disabling shared libraries support.  We urge you to upgrade GNU
10654 *** binutils to release 2.9.1 or newer.  Another option is to modify
10655 *** your PATH or compiler configuration so that the native linker is
10656 *** used, and then restart.
10657
10658 _LT_EOF
10659       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10660         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10661         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10662       else
10663         ld_shlibs=no
10664       fi
10665       ;;
10666
10667     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10668       case `$LD -v 2>&1` in
10669         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10670         ld_shlibs=no
10671         cat <<_LT_EOF 1>&2
10672
10673 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10674 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10675 *** is disabling shared libraries support.  We urge you to upgrade GNU
10676 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10677 *** your PATH or compiler configuration so that the native linker is
10678 *** used, and then restart.
10679
10680 _LT_EOF
10681         ;;
10682         *)
10683           # For security reasons, it is highly recommended that you always
10684           # use absolute paths for naming shared libraries, and exclude the
10685           # DT_RUNPATH tag from executables and libraries.  But doing so
10686           # requires that you compile everything twice, which is a pain.
10687           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10688             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10689             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10690             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10691           else
10692             ld_shlibs=no
10693           fi
10694         ;;
10695       esac
10696       ;;
10697
10698     sunos4*)
10699       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10700       wlarc=
10701       hardcode_direct=yes
10702       hardcode_shlibpath_var=no
10703       ;;
10704
10705     *)
10706       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10707         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10708         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10709       else
10710         ld_shlibs=no
10711       fi
10712       ;;
10713     esac
10714
10715     if test no = "$ld_shlibs"; then
10716       runpath_var=
10717       hardcode_libdir_flag_spec=
10718       export_dynamic_flag_spec=
10719       whole_archive_flag_spec=
10720     fi
10721   else
10722     # PORTME fill in a description of your system's linker (not GNU ld)
10723     case $host_os in
10724     aix3*)
10725       allow_undefined_flag=unsupported
10726       always_export_symbols=yes
10727       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'
10728       # Note: this linker hardcodes the directories in LIBPATH if there
10729       # are no directories specified by -L.
10730       hardcode_minus_L=yes
10731       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10732         # Neither direct hardcoding nor static linking is supported with a
10733         # broken collect2.
10734         hardcode_direct=unsupported
10735       fi
10736       ;;
10737
10738     aix[4-9]*)
10739       if test ia64 = "$host_cpu"; then
10740         # On IA64, the linker does run time linking by default, so we don't
10741         # have to do anything special.
10742         aix_use_runtimelinking=no
10743         exp_sym_flag='-Bexport'
10744         no_entry_flag=
10745       else
10746         # If we're using GNU nm, then we don't want the "-C" option.
10747         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10748         # Without the "-l" option, or with the "-B" option, AIX nm treats
10749         # weak defined symbols like other global defined symbols, whereas
10750         # GNU nm marks them as "W".
10751         # While the 'weak' keyword is ignored in the Export File, we need
10752         # it in the Import File for the 'aix-soname' feature, so we have
10753         # to replace the "-B" option with "-P" for AIX nm.
10754         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10755           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'
10756         else
10757           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 == "L") || (\$ 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'
10758         fi
10759         aix_use_runtimelinking=no
10760
10761         # Test if we are trying to use run time linking or normal
10762         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10763         # have runtime linking enabled, and use it for executables.
10764         # For shared libraries, we enable/disable runtime linking
10765         # depending on the kind of the shared library created -
10766         # when "with_aix_soname,aix_use_runtimelinking" is:
10767         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10768         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10769         #            lib.a           static archive
10770         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10771         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10772         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10773         #            lib.a(lib.so.V) shared, rtl:no
10774         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10775         #            lib.a           static archive
10776         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10777           for ld_flag in $LDFLAGS; do
10778           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10779             aix_use_runtimelinking=yes
10780             break
10781           fi
10782           done
10783           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10784             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10785             # so we don't have lib.a shared libs to link our executables.
10786             # We have to force runtime linking in this case.
10787             aix_use_runtimelinking=yes
10788             LDFLAGS="$LDFLAGS -Wl,-brtl"
10789           fi
10790           ;;
10791         esac
10792
10793         exp_sym_flag='-bexport'
10794         no_entry_flag='-bnoentry'
10795       fi
10796
10797       # When large executables or shared objects are built, AIX ld can
10798       # have problems creating the table of contents.  If linking a library
10799       # or program results in "error TOC overflow" add -mminimal-toc to
10800       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10801       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10802
10803       archive_cmds=''
10804       hardcode_direct=yes
10805       hardcode_direct_absolute=yes
10806       hardcode_libdir_separator=':'
10807       link_all_deplibs=yes
10808       file_list_spec='$wl-f,'
10809       case $with_aix_soname,$aix_use_runtimelinking in
10810       aix,*) ;; # traditional, no import file
10811       svr4,* | *,yes) # use import file
10812         # The Import File defines what to hardcode.
10813         hardcode_direct=no
10814         hardcode_direct_absolute=no
10815         ;;
10816       esac
10817
10818       if test yes = "$GCC"; then
10819         case $host_os in aix4.[012]|aix4.[012].*)
10820         # We only want to do this on AIX 4.2 and lower, the check
10821         # below for broken collect2 doesn't work under 4.3+
10822           collect2name=`$CC -print-prog-name=collect2`
10823           if test -f "$collect2name" &&
10824            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10825           then
10826           # We have reworked collect2
10827           :
10828           else
10829           # We have old collect2
10830           hardcode_direct=unsupported
10831           # It fails to find uninstalled libraries when the uninstalled
10832           # path is not listed in the libpath.  Setting hardcode_minus_L
10833           # to unsupported forces relinking
10834           hardcode_minus_L=yes
10835           hardcode_libdir_flag_spec='-L$libdir'
10836           hardcode_libdir_separator=
10837           fi
10838           ;;
10839         esac
10840         shared_flag='-shared'
10841         if test yes = "$aix_use_runtimelinking"; then
10842           shared_flag="$shared_flag "'$wl-G'
10843         fi
10844         # Need to ensure runtime linking is disabled for the traditional
10845         # shared library, or the linker may eventually find shared libraries
10846         # /with/ Import File - we do not want to mix them.
10847         shared_flag_aix='-shared'
10848         shared_flag_svr4='-shared $wl-G'
10849       else
10850         # not using gcc
10851         if test ia64 = "$host_cpu"; then
10852         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10853         # chokes on -Wl,-G. The following line is correct:
10854           shared_flag='-G'
10855         else
10856           if test yes = "$aix_use_runtimelinking"; then
10857             shared_flag='$wl-G'
10858           else
10859             shared_flag='$wl-bM:SRE'
10860           fi
10861           shared_flag_aix='$wl-bM:SRE'
10862           shared_flag_svr4='$wl-G'
10863         fi
10864       fi
10865
10866       export_dynamic_flag_spec='$wl-bexpall'
10867       # It seems that -bexpall does not export symbols beginning with
10868       # underscore (_), so it is better to generate a list of symbols to export.
10869       always_export_symbols=yes
10870       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10871         # Warning - without using the other runtime loading flags (-brtl),
10872         # -berok will link without error, but may produce a broken library.
10873         allow_undefined_flag='-berok'
10874         # Determine the default libpath from the value encoded in an
10875         # empty executable.
10876         if test set = "${lt_cv_aix_libpath+set}"; then
10877   aix_libpath=$lt_cv_aix_libpath
10878 else
10879   if ${lt_cv_aix_libpath_+:} false; then :
10880   $as_echo_n "(cached) " >&6
10881 else
10882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h.  */
10884
10885 int
10886 main ()
10887 {
10888
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894
10895   lt_aix_libpath_sed='
10896       /Import File Strings/,/^$/ {
10897           /^0/ {
10898               s/^0  *\([^ ]*\) *$/\1/
10899               p
10900           }
10901       }'
10902   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10903   # Check for a 64-bit object if we didn't find anything.
10904   if test -z "$lt_cv_aix_libpath_"; then
10905     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10906   fi
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext \
10909     conftest$ac_exeext conftest.$ac_ext
10910   if test -z "$lt_cv_aix_libpath_"; then
10911     lt_cv_aix_libpath_=/usr/lib:/lib
10912   fi
10913
10914 fi
10915
10916   aix_libpath=$lt_cv_aix_libpath_
10917 fi
10918
10919         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10920         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
10921       else
10922         if test ia64 = "$host_cpu"; then
10923           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10924           allow_undefined_flag="-z nodefs"
10925           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"
10926         else
10927          # Determine the default libpath from the value encoded in an
10928          # empty executable.
10929          if test set = "${lt_cv_aix_libpath+set}"; then
10930   aix_libpath=$lt_cv_aix_libpath
10931 else
10932   if ${lt_cv_aix_libpath_+:} false; then :
10933   $as_echo_n "(cached) " >&6
10934 else
10935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h.  */
10937
10938 int
10939 main ()
10940 {
10941
10942   ;
10943   return 0;
10944 }
10945 _ACEOF
10946 if ac_fn_c_try_link "$LINENO"; then :
10947
10948   lt_aix_libpath_sed='
10949       /Import File Strings/,/^$/ {
10950           /^0/ {
10951               s/^0  *\([^ ]*\) *$/\1/
10952               p
10953           }
10954       }'
10955   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10956   # Check for a 64-bit object if we didn't find anything.
10957   if test -z "$lt_cv_aix_libpath_"; then
10958     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10959   fi
10960 fi
10961 rm -f core conftest.err conftest.$ac_objext \
10962     conftest$ac_exeext conftest.$ac_ext
10963   if test -z "$lt_cv_aix_libpath_"; then
10964     lt_cv_aix_libpath_=/usr/lib:/lib
10965   fi
10966
10967 fi
10968
10969   aix_libpath=$lt_cv_aix_libpath_
10970 fi
10971
10972          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10973           # Warning - without using the other run time loading flags,
10974           # -berok will link without error, but may produce a broken library.
10975           no_undefined_flag=' $wl-bernotok'
10976           allow_undefined_flag=' $wl-berok'
10977           if test yes = "$with_gnu_ld"; then
10978             # We only use this code for GNU lds that support --whole-archive.
10979             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10980           else
10981             # Exported symbols can be pulled into shared objects from archives
10982             whole_archive_flag_spec='$convenience'
10983           fi
10984           archive_cmds_need_lc=yes
10985           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10986           # -brtl affects multiple linker settings, -berok does not and is overridden later
10987           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10988           if test svr4 != "$with_aix_soname"; then
10989             # This is similar to how AIX traditionally builds its shared libraries.
10990             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'
10991           fi
10992           if test aix != "$with_aix_soname"; then
10993             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'
10994           else
10995             # used by -dlpreopen to get the symbols
10996             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10997           fi
10998           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10999         fi
11000       fi
11001       ;;
11002
11003     amigaos*)
11004       case $host_cpu in
11005       powerpc)
11006             # see comment about AmigaOS4 .so support
11007             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11008             archive_expsym_cmds=''
11009         ;;
11010       m68k)
11011             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)'
11012             hardcode_libdir_flag_spec='-L$libdir'
11013             hardcode_minus_L=yes
11014         ;;
11015       esac
11016       ;;
11017
11018     bsdi[45]*)
11019       export_dynamic_flag_spec=-rdynamic
11020       ;;
11021
11022     cygwin* | mingw* | pw32* | cegcc*)
11023       # When not using gcc, we currently assume that we are using
11024       # Microsoft Visual C++ or Intel C++ Compiler.
11025       # hardcode_libdir_flag_spec is actually meaningless, as there is
11026       # no search path for DLLs.
11027       case $cc_basename in
11028       cl* | icl*)
11029         # Native MSVC or ICC
11030         hardcode_libdir_flag_spec=' '
11031         allow_undefined_flag=unsupported
11032         always_export_symbols=yes
11033         file_list_spec='@'
11034         # Tell ltmain to make .lib files, not .a files.
11035         libext=lib
11036         # Tell ltmain to make .dll files, not .so files.
11037         shrext_cmds=.dll
11038         # FIXME: Setting linknames here is a bad hack.
11039         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11040         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11041             cp "$export_symbols" "$output_objdir/$soname.def";
11042             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11043           else
11044             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11045           fi~
11046           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11047           linknames='
11048         # The linker will not automatically build a static lib if we build a DLL.
11049         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11050         enable_shared_with_static_runtimes=yes
11051         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11052         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11053         # Don't use ranlib
11054         old_postinstall_cmds='chmod 644 $oldlib'
11055         postlink_cmds='lt_outputfile="@OUTPUT@"~
11056           lt_tool_outputfile="@TOOL_OUTPUT@"~
11057           case $lt_outputfile in
11058             *.exe|*.EXE) ;;
11059             *)
11060               lt_outputfile=$lt_outputfile.exe
11061               lt_tool_outputfile=$lt_tool_outputfile.exe
11062               ;;
11063           esac~
11064           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11065             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11066             $RM "$lt_outputfile.manifest";
11067           fi'
11068         ;;
11069       *)
11070         # Assume MSVC and ICC wrapper
11071         hardcode_libdir_flag_spec=' '
11072         allow_undefined_flag=unsupported
11073         # Tell ltmain to make .lib files, not .a files.
11074         libext=lib
11075         # Tell ltmain to make .dll files, not .so files.
11076         shrext_cmds=.dll
11077         # FIXME: Setting linknames here is a bad hack.
11078         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11079         # The linker will automatically build a .lib file if we build a DLL.
11080         old_archive_from_new_cmds='true'
11081         # FIXME: Should let the user specify the lib program.
11082         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11083         enable_shared_with_static_runtimes=yes
11084         ;;
11085       esac
11086       ;;
11087
11088     darwin* | rhapsody*)
11089
11090
11091   archive_cmds_need_lc=no
11092   hardcode_direct=no
11093   hardcode_automatic=yes
11094   hardcode_shlibpath_var=unsupported
11095   if test yes = "$lt_cv_ld_force_load"; then
11096     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\"`'
11097
11098   else
11099     whole_archive_flag_spec=''
11100   fi
11101   link_all_deplibs=yes
11102   allow_undefined_flag=$_lt_dar_allow_undefined
11103   case $cc_basename in
11104      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11105      *) _lt_dar_can_shared=$GCC ;;
11106   esac
11107   if test yes = "$_lt_dar_can_shared"; then
11108     output_verbose_link_cmd=func_echo_all
11109     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11110     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11111     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"
11112     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"
11113
11114   else
11115   ld_shlibs=no
11116   fi
11117
11118       ;;
11119
11120     dgux*)
11121       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11122       hardcode_libdir_flag_spec='-L$libdir'
11123       hardcode_shlibpath_var=no
11124       ;;
11125
11126     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11127     # support.  Future versions do this automatically, but an explicit c++rt0.o
11128     # does not break anything, and helps significantly (at the cost of a little
11129     # extra space).
11130     freebsd2.2*)
11131       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11132       hardcode_libdir_flag_spec='-R$libdir'
11133       hardcode_direct=yes
11134       hardcode_shlibpath_var=no
11135       ;;
11136
11137     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11138     freebsd2.*)
11139       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11140       hardcode_direct=yes
11141       hardcode_minus_L=yes
11142       hardcode_shlibpath_var=no
11143       ;;
11144
11145     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11146     freebsd* | dragonfly*)
11147       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11148       hardcode_libdir_flag_spec='-R$libdir'
11149       hardcode_direct=yes
11150       hardcode_shlibpath_var=no
11151       ;;
11152
11153     hpux9*)
11154       if test yes = "$GCC"; then
11155         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'
11156       else
11157         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'
11158       fi
11159       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11160       hardcode_libdir_separator=:
11161       hardcode_direct=yes
11162
11163       # hardcode_minus_L: Not really in the search PATH,
11164       # but as the default location of the library.
11165       hardcode_minus_L=yes
11166       export_dynamic_flag_spec='$wl-E'
11167       ;;
11168
11169     hpux10*)
11170       if test yes,no = "$GCC,$with_gnu_ld"; then
11171         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11172       else
11173         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11174       fi
11175       if test no = "$with_gnu_ld"; then
11176         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11177         hardcode_libdir_separator=:
11178         hardcode_direct=yes
11179         hardcode_direct_absolute=yes
11180         export_dynamic_flag_spec='$wl-E'
11181         # hardcode_minus_L: Not really in the search PATH,
11182         # but as the default location of the library.
11183         hardcode_minus_L=yes
11184       fi
11185       ;;
11186
11187     hpux11*)
11188       if test yes,no = "$GCC,$with_gnu_ld"; then
11189         case $host_cpu in
11190         hppa*64*)
11191           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11192           ;;
11193         ia64*)
11194           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11195           ;;
11196         *)
11197           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11198           ;;
11199         esac
11200       else
11201         case $host_cpu in
11202         hppa*64*)
11203           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11204           ;;
11205         ia64*)
11206           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11207           ;;
11208         *)
11209
11210           # Older versions of the 11.00 compiler do not understand -b yet
11211           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11212           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11213 $as_echo_n "checking if $CC understands -b... " >&6; }
11214 if ${lt_cv_prog_compiler__b+:} false; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   lt_cv_prog_compiler__b=no
11218    save_LDFLAGS=$LDFLAGS
11219    LDFLAGS="$LDFLAGS -b"
11220    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11221    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11222      # The linker can only warn and ignore the option if not recognized
11223      # So say no if there are warnings
11224      if test -s conftest.err; then
11225        # Append any errors to the config.log.
11226        cat conftest.err 1>&5
11227        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11228        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11229        if diff conftest.exp conftest.er2 >/dev/null; then
11230          lt_cv_prog_compiler__b=yes
11231        fi
11232      else
11233        lt_cv_prog_compiler__b=yes
11234      fi
11235    fi
11236    $RM -r conftest*
11237    LDFLAGS=$save_LDFLAGS
11238
11239 fi
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11241 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11242
11243 if test yes = "$lt_cv_prog_compiler__b"; then
11244     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11245 else
11246     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11247 fi
11248
11249           ;;
11250         esac
11251       fi
11252       if test no = "$with_gnu_ld"; then
11253         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11254         hardcode_libdir_separator=:
11255
11256         case $host_cpu in
11257         hppa*64*|ia64*)
11258           hardcode_direct=no
11259           hardcode_shlibpath_var=no
11260           ;;
11261         *)
11262           hardcode_direct=yes
11263           hardcode_direct_absolute=yes
11264           export_dynamic_flag_spec='$wl-E'
11265
11266           # hardcode_minus_L: Not really in the search PATH,
11267           # but as the default location of the library.
11268           hardcode_minus_L=yes
11269           ;;
11270         esac
11271       fi
11272       ;;
11273
11274     irix5* | irix6* | nonstopux*)
11275       if test yes = "$GCC"; then
11276         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'
11277         # Try to use the -exported_symbol ld option, if it does not
11278         # work, assume that -exports_file does not work either and
11279         # implicitly export all symbols.
11280         # This should be the same for all languages, so no per-tag cache variable.
11281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11282 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11283 if ${lt_cv_irix_exported_symbol+:} false; then :
11284   $as_echo_n "(cached) " >&6
11285 else
11286   save_LDFLAGS=$LDFLAGS
11287            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11288            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h.  */
11290 int foo (void) { return 0; }
11291 _ACEOF
11292 if ac_fn_c_try_link "$LINENO"; then :
11293   lt_cv_irix_exported_symbol=yes
11294 else
11295   lt_cv_irix_exported_symbol=no
11296 fi
11297 rm -f core conftest.err conftest.$ac_objext \
11298     conftest$ac_exeext conftest.$ac_ext
11299            LDFLAGS=$save_LDFLAGS
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11302 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11303         if test yes = "$lt_cv_irix_exported_symbol"; then
11304           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'
11305         fi
11306       else
11307         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'
11308         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'
11309       fi
11310       archive_cmds_need_lc='no'
11311       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11312       hardcode_libdir_separator=:
11313       inherit_rpath=yes
11314       link_all_deplibs=yes
11315       ;;
11316
11317     linux*)
11318       case $cc_basename in
11319       tcc*)
11320         # Fabrice Bellard et al's Tiny C Compiler
11321         ld_shlibs=yes
11322         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11323         ;;
11324       esac
11325       ;;
11326
11327     netbsd*)
11328       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11329         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11330       else
11331         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11332       fi
11333       hardcode_libdir_flag_spec='-R$libdir'
11334       hardcode_direct=yes
11335       hardcode_shlibpath_var=no
11336       ;;
11337
11338     newsos6)
11339       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11340       hardcode_direct=yes
11341       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11342       hardcode_libdir_separator=:
11343       hardcode_shlibpath_var=no
11344       ;;
11345
11346     *nto* | *qnx*)
11347       ;;
11348
11349     openbsd* | bitrig*)
11350       if test -f /usr/libexec/ld.so; then
11351         hardcode_direct=yes
11352         hardcode_shlibpath_var=no
11353         hardcode_direct_absolute=yes
11354         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11355           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11356           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11357           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11358           export_dynamic_flag_spec='$wl-E'
11359         else
11360           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11361           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11362         fi
11363       else
11364         ld_shlibs=no
11365       fi
11366       ;;
11367
11368     os2*)
11369       hardcode_libdir_flag_spec='-L$libdir'
11370       hardcode_minus_L=yes
11371       allow_undefined_flag=unsupported
11372       shrext_cmds=.dll
11373       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11374         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11375         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11376         $ECHO EXPORTS >> $output_objdir/$libname.def~
11377         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11378         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11379         emximp -o $lib $output_objdir/$libname.def'
11380       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11381         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11382         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11383         $ECHO EXPORTS >> $output_objdir/$libname.def~
11384         prefix_cmds="$SED"~
11385         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11386           prefix_cmds="$prefix_cmds -e 1d";
11387         fi~
11388         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11389         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11390         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11391         emximp -o $lib $output_objdir/$libname.def'
11392       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11393       enable_shared_with_static_runtimes=yes
11394       file_list_spec='@'
11395       ;;
11396
11397     osf3*)
11398       if test yes = "$GCC"; then
11399         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11400         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'
11401       else
11402         allow_undefined_flag=' -expect_unresolved \*'
11403         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'
11404       fi
11405       archive_cmds_need_lc='no'
11406       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11407       hardcode_libdir_separator=:
11408       ;;
11409
11410     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11411       if test yes = "$GCC"; then
11412         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11413         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'
11414         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11415       else
11416         allow_undefined_flag=' -expect_unresolved \*'
11417         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'
11418         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~
11419           $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'
11420
11421         # Both c and cxx compiler support -rpath directly
11422         hardcode_libdir_flag_spec='-rpath $libdir'
11423       fi
11424       archive_cmds_need_lc='no'
11425       hardcode_libdir_separator=:
11426       ;;
11427
11428     solaris*)
11429       no_undefined_flag=' -z defs'
11430       if test yes = "$GCC"; then
11431         wlarc='$wl'
11432         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11433         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11434           $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'
11435       else
11436         case `$CC -V 2>&1` in
11437         *"Compilers 5.0"*)
11438           wlarc=''
11439           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11441             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11442           ;;
11443         *)
11444           wlarc='$wl'
11445           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11446           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11447             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11448           ;;
11449         esac
11450       fi
11451       hardcode_libdir_flag_spec='-R$libdir'
11452       hardcode_shlibpath_var=no
11453       case $host_os in
11454       solaris2.[0-5] | solaris2.[0-5].*) ;;
11455       *)
11456         # The compiler driver will combine and reorder linker options,
11457         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11458         # but is careful enough not to reorder.
11459         # Supported since Solaris 2.6 (maybe 2.5.1?)
11460         if test yes = "$GCC"; then
11461           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11462         else
11463           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11464         fi
11465         ;;
11466       esac
11467       link_all_deplibs=yes
11468       ;;
11469
11470     sunos4*)
11471       if test sequent = "$host_vendor"; then
11472         # Use $CC to link under sequent, because it throws in some extra .o
11473         # files that make .init and .fini sections work.
11474         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11475       else
11476         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11477       fi
11478       hardcode_libdir_flag_spec='-L$libdir'
11479       hardcode_direct=yes
11480       hardcode_minus_L=yes
11481       hardcode_shlibpath_var=no
11482       ;;
11483
11484     sysv4)
11485       case $host_vendor in
11486         sni)
11487           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11488           hardcode_direct=yes # is this really true???
11489         ;;
11490         siemens)
11491           ## LD is ld it makes a PLAMLIB
11492           ## CC just makes a GrossModule.
11493           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11494           reload_cmds='$CC -r -o $output$reload_objs'
11495           hardcode_direct=no
11496         ;;
11497         motorola)
11498           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11499           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11500         ;;
11501       esac
11502       runpath_var='LD_RUN_PATH'
11503       hardcode_shlibpath_var=no
11504       ;;
11505
11506     sysv4.3*)
11507       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11508       hardcode_shlibpath_var=no
11509       export_dynamic_flag_spec='-Bexport'
11510       ;;
11511
11512     sysv4*MP*)
11513       if test -d /usr/nec; then
11514         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11515         hardcode_shlibpath_var=no
11516         runpath_var=LD_RUN_PATH
11517         hardcode_runpath_var=yes
11518         ld_shlibs=yes
11519       fi
11520       ;;
11521
11522     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11523       no_undefined_flag='$wl-z,text'
11524       archive_cmds_need_lc=no
11525       hardcode_shlibpath_var=no
11526       runpath_var='LD_RUN_PATH'
11527
11528       if test yes = "$GCC"; then
11529         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11530         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11531       else
11532         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11533         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11534       fi
11535       ;;
11536
11537     sysv5* | sco3.2v5* | sco5v6*)
11538       # Note: We CANNOT use -z defs as we might desire, because we do not
11539       # link with -lc, and that would cause any symbols used from libc to
11540       # always be unresolved, which means just about no library would
11541       # ever link correctly.  If we're not using GNU ld we use -z text
11542       # though, which does catch some bad symbols but isn't as heavy-handed
11543       # as -z defs.
11544       no_undefined_flag='$wl-z,text'
11545       allow_undefined_flag='$wl-z,nodefs'
11546       archive_cmds_need_lc=no
11547       hardcode_shlibpath_var=no
11548       hardcode_libdir_flag_spec='$wl-R,$libdir'
11549       hardcode_libdir_separator=':'
11550       link_all_deplibs=yes
11551       export_dynamic_flag_spec='$wl-Bexport'
11552       runpath_var='LD_RUN_PATH'
11553
11554       if test yes = "$GCC"; then
11555         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11556         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11557       else
11558         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11559         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11560       fi
11561       ;;
11562
11563     uts4*)
11564       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11565       hardcode_libdir_flag_spec='-L$libdir'
11566       hardcode_shlibpath_var=no
11567       ;;
11568
11569     *)
11570       ld_shlibs=no
11571       ;;
11572     esac
11573
11574     if test sni = "$host_vendor"; then
11575       case $host in
11576       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11577         export_dynamic_flag_spec='$wl-Blargedynsym'
11578         ;;
11579       esac
11580     fi
11581   fi
11582
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11584 $as_echo "$ld_shlibs" >&6; }
11585 test no = "$ld_shlibs" && can_build_shared=no
11586
11587 with_gnu_ld=$with_gnu_ld
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603 #
11604 # Do we need to explicitly link libc?
11605 #
11606 case "x$archive_cmds_need_lc" in
11607 x|xyes)
11608   # Assume -lc should be added
11609   archive_cmds_need_lc=yes
11610
11611   if test yes,yes = "$GCC,$enable_shared"; then
11612     case $archive_cmds in
11613     *'~'*)
11614       # FIXME: we may have to deal with multi-command sequences.
11615       ;;
11616     '$CC '*)
11617       # Test whether the compiler implicitly links with -lc since on some
11618       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11619       # to ld, don't add -lc before -lgcc.
11620       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11621 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11622 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11623   $as_echo_n "(cached) " >&6
11624 else
11625   $RM conftest*
11626         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11627
11628         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11629   (eval $ac_compile) 2>&5
11630   ac_status=$?
11631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11632   test $ac_status = 0; } 2>conftest.err; then
11633           soname=conftest
11634           lib=conftest
11635           libobjs=conftest.$ac_objext
11636           deplibs=
11637           wl=$lt_prog_compiler_wl
11638           pic_flag=$lt_prog_compiler_pic
11639           compiler_flags=-v
11640           linker_flags=-v
11641           verstring=
11642           output_objdir=.
11643           libname=conftest
11644           lt_save_allow_undefined_flag=$allow_undefined_flag
11645           allow_undefined_flag=
11646           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11647   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11648   ac_status=$?
11649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11650   test $ac_status = 0; }
11651           then
11652             lt_cv_archive_cmds_need_lc=no
11653           else
11654             lt_cv_archive_cmds_need_lc=yes
11655           fi
11656           allow_undefined_flag=$lt_save_allow_undefined_flag
11657         else
11658           cat conftest.err 1>&5
11659         fi
11660         $RM conftest*
11661
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11664 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11665       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11666       ;;
11667     esac
11668   fi
11669   ;;
11670 esac
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11824 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11825
11826 if test yes = "$GCC"; then
11827   case $host_os in
11828     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11829     *) lt_awk_arg='/^libraries:/' ;;
11830   esac
11831   case $host_os in
11832     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11833     *) lt_sed_strip_eq='s|=/|/|g' ;;
11834   esac
11835   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11836   case $lt_search_path_spec in
11837   *\;*)
11838     # if the path contains ";" then we assume it to be the separator
11839     # otherwise default to the standard path separator (i.e. ":") - it is
11840     # assumed that no part of a normal pathname contains ";" but that should
11841     # okay in the real world where ";" in dirpaths is itself problematic.
11842     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11843     ;;
11844   *)
11845     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11846     ;;
11847   esac
11848   # Ok, now we have the path, separated by spaces, we can step through it
11849   # and add multilib dir if necessary...
11850   lt_tmp_lt_search_path_spec=
11851   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11852   # ...but if some path component already ends with the multilib dir we assume
11853   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11854   case "$lt_multi_os_dir; $lt_search_path_spec " in
11855   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11856     lt_multi_os_dir=
11857     ;;
11858   esac
11859   for lt_sys_path in $lt_search_path_spec; do
11860     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11861       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11862     elif test -n "$lt_multi_os_dir"; then
11863       test -d "$lt_sys_path" && \
11864         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11865     fi
11866   done
11867   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11868 BEGIN {RS = " "; FS = "/|\n";} {
11869   lt_foo = "";
11870   lt_count = 0;
11871   for (lt_i = NF; lt_i > 0; lt_i--) {
11872     if ($lt_i != "" && $lt_i != ".") {
11873       if ($lt_i == "..") {
11874         lt_count++;
11875       } else {
11876         if (lt_count == 0) {
11877           lt_foo = "/" $lt_i lt_foo;
11878         } else {
11879           lt_count--;
11880         }
11881       }
11882     }
11883   }
11884   if (lt_foo != "") { lt_freq[lt_foo]++; }
11885   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11886 }'`
11887   # AWK program above erroneously prepends '/' to C:/dos/paths
11888   # for these hosts.
11889   case $host_os in
11890     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11891       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11892   esac
11893   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11894 else
11895   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11896 fi
11897 library_names_spec=
11898 libname_spec='lib$name'
11899 soname_spec=
11900 shrext_cmds=.so
11901 postinstall_cmds=
11902 postuninstall_cmds=
11903 finish_cmds=
11904 finish_eval=
11905 shlibpath_var=
11906 shlibpath_overrides_runpath=unknown
11907 version_type=none
11908 dynamic_linker="$host_os ld.so"
11909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11910 need_lib_prefix=unknown
11911 hardcode_into_libs=no
11912
11913 # when you set need_version to no, make sure it does not cause -set_version
11914 # flags to be left without arguments
11915 need_version=unknown
11916
11917
11918
11919 case $host_os in
11920 aix3*)
11921   version_type=linux # correct to gnu/linux during the next big refactor
11922   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11923   shlibpath_var=LIBPATH
11924
11925   # AIX 3 has no versioning support, so we append a major version to the name.
11926   soname_spec='$libname$release$shared_ext$major'
11927   ;;
11928
11929 aix[4-9]*)
11930   version_type=linux # correct to gnu/linux during the next big refactor
11931   need_lib_prefix=no
11932   need_version=no
11933   hardcode_into_libs=yes
11934   if test ia64 = "$host_cpu"; then
11935     # AIX 5 supports IA64
11936     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11937     shlibpath_var=LD_LIBRARY_PATH
11938   else
11939     # With GCC up to 2.95.x, collect2 would create an import file
11940     # for dependence libraries.  The import file would start with
11941     # the line '#! .'.  This would cause the generated library to
11942     # depend on '.', always an invalid library.  This was fixed in
11943     # development snapshots of GCC prior to 3.0.
11944     case $host_os in
11945       aix4 | aix4.[01] | aix4.[01].*)
11946       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11947            echo ' yes '
11948            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11949         :
11950       else
11951         can_build_shared=no
11952       fi
11953       ;;
11954     esac
11955     # Using Import Files as archive members, it is possible to support
11956     # filename-based versioning of shared library archives on AIX. While
11957     # this would work for both with and without runtime linking, it will
11958     # prevent static linking of such archives. So we do filename-based
11959     # shared library versioning with .so extension only, which is used
11960     # when both runtime linking and shared linking is enabled.
11961     # Unfortunately, runtime linking may impact performance, so we do
11962     # not want this to be the default eventually. Also, we use the
11963     # versioned .so libs for executables only if there is the -brtl
11964     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11965     # To allow for filename-based versioning support, we need to create
11966     # libNAME.so.V as an archive file, containing:
11967     # *) an Import File, referring to the versioned filename of the
11968     #    archive as well as the shared archive member, telling the
11969     #    bitwidth (32 or 64) of that shared object, and providing the
11970     #    list of exported symbols of that shared object, eventually
11971     #    decorated with the 'weak' keyword
11972     # *) the shared object with the F_LOADONLY flag set, to really avoid
11973     #    it being seen by the linker.
11974     # At run time we better use the real file rather than another symlink,
11975     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11976
11977     case $with_aix_soname,$aix_use_runtimelinking in
11978     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11979     # soname into executable. Probably we can add versioning support to
11980     # collect2, so additional links can be useful in future.
11981     aix,yes) # traditional libtool
11982       dynamic_linker='AIX unversionable lib.so'
11983       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11984       # instead of lib<name>.a to let people know that these are not
11985       # typical AIX shared libraries.
11986       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11987       ;;
11988     aix,no) # traditional AIX only
11989       dynamic_linker='AIX lib.a(lib.so.V)'
11990       # We preserve .a as extension for shared libraries through AIX4.2
11991       # and later when we are not doing run time linking.
11992       library_names_spec='$libname$release.a $libname.a'
11993       soname_spec='$libname$release$shared_ext$major'
11994       ;;
11995     svr4,*) # full svr4 only
11996       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11997       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11998       # We do not specify a path in Import Files, so LIBPATH fires.
11999       shlibpath_overrides_runpath=yes
12000       ;;
12001     *,yes) # both, prefer svr4
12002       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12003       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12004       # unpreferred sharedlib libNAME.a needs extra handling
12005       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"'
12006       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"'
12007       # We do not specify a path in Import Files, so LIBPATH fires.
12008       shlibpath_overrides_runpath=yes
12009       ;;
12010     *,no) # both, prefer aix
12011       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12012       library_names_spec='$libname$release.a $libname.a'
12013       soname_spec='$libname$release$shared_ext$major'
12014       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12015       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)'
12016       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"'
12017       ;;
12018     esac
12019     shlibpath_var=LIBPATH
12020   fi
12021   ;;
12022
12023 amigaos*)
12024   case $host_cpu in
12025   powerpc)
12026     # Since July 2007 AmigaOS4 officially supports .so libraries.
12027     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12028     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12029     ;;
12030   m68k)
12031     library_names_spec='$libname.ixlibrary $libname.a'
12032     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12033     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'
12034     ;;
12035   esac
12036   ;;
12037
12038 beos*)
12039   library_names_spec='$libname$shared_ext'
12040   dynamic_linker="$host_os ld.so"
12041   shlibpath_var=LIBRARY_PATH
12042   ;;
12043
12044 bsdi[45]*)
12045   version_type=linux # correct to gnu/linux during the next big refactor
12046   need_version=no
12047   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12048   soname_spec='$libname$release$shared_ext$major'
12049   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12050   shlibpath_var=LD_LIBRARY_PATH
12051   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12052   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12053   # the default ld.so.conf also contains /usr/contrib/lib and
12054   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12055   # libtool to hard-code these into programs
12056   ;;
12057
12058 cygwin* | mingw* | pw32* | cegcc*)
12059   version_type=windows
12060   shrext_cmds=.dll
12061   need_version=no
12062   need_lib_prefix=no
12063
12064   case $GCC,$cc_basename in
12065   yes,*)
12066     # gcc
12067     library_names_spec='$libname.dll.a'
12068     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12069     postinstall_cmds='base_file=`basename \$file`~
12070       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12071       dldir=$destdir/`dirname \$dlpath`~
12072       test -d \$dldir || mkdir -p \$dldir~
12073       $install_prog $dir/$dlname \$dldir/$dlname~
12074       chmod a+x \$dldir/$dlname~
12075       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12076         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12077       fi'
12078     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12079       dlpath=$dir/\$dldll~
12080        $RM \$dlpath'
12081     shlibpath_overrides_runpath=yes
12082
12083     case $host_os in
12084     cygwin*)
12085       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12086       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12087
12088       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12089       ;;
12090     mingw* | cegcc*)
12091       # MinGW DLLs use traditional 'lib' prefix
12092       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12093       ;;
12094     pw32*)
12095       # pw32 DLLs use 'pw' prefix rather than 'lib'
12096       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12097       ;;
12098     esac
12099     dynamic_linker='Win32 ld.exe'
12100     ;;
12101
12102   *,cl* | *,icl*)
12103     # Native MSVC or ICC
12104     libname_spec='$name'
12105     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12106     library_names_spec='$libname.dll.lib'
12107
12108     case $build_os in
12109     mingw*)
12110       sys_lib_search_path_spec=
12111       lt_save_ifs=$IFS
12112       IFS=';'
12113       for lt_path in $LIB
12114       do
12115         IFS=$lt_save_ifs
12116         # Let DOS variable expansion print the short 8.3 style file name.
12117         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12118         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12119       done
12120       IFS=$lt_save_ifs
12121       # Convert to MSYS style.
12122       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12123       ;;
12124     cygwin*)
12125       # Convert to unix form, then to dos form, then back to unix form
12126       # but this time dos style (no spaces!) so that the unix form looks
12127       # like /cygdrive/c/PROGRA~1:/cygdr...
12128       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12129       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12130       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12131       ;;
12132     *)
12133       sys_lib_search_path_spec=$LIB
12134       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12135         # It is most probably a Windows format PATH.
12136         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12137       else
12138         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12139       fi
12140       # FIXME: find the short name or the path components, as spaces are
12141       # common. (e.g. "Program Files" -> "PROGRA~1")
12142       ;;
12143     esac
12144
12145     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12146     postinstall_cmds='base_file=`basename \$file`~
12147       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12148       dldir=$destdir/`dirname \$dlpath`~
12149       test -d \$dldir || mkdir -p \$dldir~
12150       $install_prog $dir/$dlname \$dldir/$dlname'
12151     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12152       dlpath=$dir/\$dldll~
12153        $RM \$dlpath'
12154     shlibpath_overrides_runpath=yes
12155     dynamic_linker='Win32 link.exe'
12156     ;;
12157
12158   *)
12159     # Assume MSVC and ICC wrapper
12160     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12161     dynamic_linker='Win32 ld.exe'
12162     ;;
12163   esac
12164   # FIXME: first we should search . and the directory the executable is in
12165   shlibpath_var=PATH
12166   ;;
12167
12168 darwin* | rhapsody*)
12169   dynamic_linker="$host_os dyld"
12170   version_type=darwin
12171   need_lib_prefix=no
12172   need_version=no
12173   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12174   soname_spec='$libname$release$major$shared_ext'
12175   shlibpath_overrides_runpath=yes
12176   shlibpath_var=DYLD_LIBRARY_PATH
12177   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12178
12179   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12180   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12181   ;;
12182
12183 dgux*)
12184   version_type=linux # correct to gnu/linux during the next big refactor
12185   need_lib_prefix=no
12186   need_version=no
12187   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12188   soname_spec='$libname$release$shared_ext$major'
12189   shlibpath_var=LD_LIBRARY_PATH
12190   ;;
12191
12192 freebsd* | dragonfly*)
12193   # DragonFly does not have aout.  When/if they implement a new
12194   # versioning mechanism, adjust this.
12195   if test -x /usr/bin/objformat; then
12196     objformat=`/usr/bin/objformat`
12197   else
12198     case $host_os in
12199     freebsd[23].*) objformat=aout ;;
12200     *) objformat=elf ;;
12201     esac
12202   fi
12203   version_type=freebsd-$objformat
12204   case $version_type in
12205     freebsd-elf*)
12206       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12207       soname_spec='$libname$release$shared_ext$major'
12208       need_version=no
12209       need_lib_prefix=no
12210       ;;
12211     freebsd-*)
12212       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12213       need_version=yes
12214       ;;
12215   esac
12216   shlibpath_var=LD_LIBRARY_PATH
12217   case $host_os in
12218   freebsd2.*)
12219     shlibpath_overrides_runpath=yes
12220     ;;
12221   freebsd3.[01]* | freebsdelf3.[01]*)
12222     shlibpath_overrides_runpath=yes
12223     hardcode_into_libs=yes
12224     ;;
12225   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12226   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12227     shlibpath_overrides_runpath=no
12228     hardcode_into_libs=yes
12229     ;;
12230   *) # from 4.6 on, and DragonFly
12231     shlibpath_overrides_runpath=yes
12232     hardcode_into_libs=yes
12233     ;;
12234   esac
12235   ;;
12236
12237 haiku*)
12238   version_type=linux # correct to gnu/linux during the next big refactor
12239   need_lib_prefix=no
12240   need_version=no
12241   dynamic_linker="$host_os runtime_loader"
12242   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12243   soname_spec='$libname$release$shared_ext$major'
12244   shlibpath_var=LIBRARY_PATH
12245   shlibpath_overrides_runpath=no
12246   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12247   hardcode_into_libs=yes
12248   ;;
12249
12250 hpux9* | hpux10* | hpux11*)
12251   # Give a soname corresponding to the major version so that dld.sl refuses to
12252   # link against other versions.
12253   version_type=sunos
12254   need_lib_prefix=no
12255   need_version=no
12256   case $host_cpu in
12257   ia64*)
12258     shrext_cmds='.so'
12259     hardcode_into_libs=yes
12260     dynamic_linker="$host_os dld.so"
12261     shlibpath_var=LD_LIBRARY_PATH
12262     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12263     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12264     soname_spec='$libname$release$shared_ext$major'
12265     if test 32 = "$HPUX_IA64_MODE"; then
12266       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12267       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12268     else
12269       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12270       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12271     fi
12272     ;;
12273   hppa*64*)
12274     shrext_cmds='.sl'
12275     hardcode_into_libs=yes
12276     dynamic_linker="$host_os dld.sl"
12277     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12278     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12279     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12280     soname_spec='$libname$release$shared_ext$major'
12281     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12282     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12283     ;;
12284   *)
12285     shrext_cmds='.sl'
12286     dynamic_linker="$host_os dld.sl"
12287     shlibpath_var=SHLIB_PATH
12288     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12289     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12290     soname_spec='$libname$release$shared_ext$major'
12291     ;;
12292   esac
12293   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12294   postinstall_cmds='chmod 555 $lib'
12295   # or fails outright, so override atomically:
12296   install_override_mode=555
12297   ;;
12298
12299 interix[3-9]*)
12300   version_type=linux # correct to gnu/linux during the next big refactor
12301   need_lib_prefix=no
12302   need_version=no
12303   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304   soname_spec='$libname$release$shared_ext$major'
12305   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12306   shlibpath_var=LD_LIBRARY_PATH
12307   shlibpath_overrides_runpath=no
12308   hardcode_into_libs=yes
12309   ;;
12310
12311 irix5* | irix6* | nonstopux*)
12312   case $host_os in
12313     nonstopux*) version_type=nonstopux ;;
12314     *)
12315         if test yes = "$lt_cv_prog_gnu_ld"; then
12316                 version_type=linux # correct to gnu/linux during the next big refactor
12317         else
12318                 version_type=irix
12319         fi ;;
12320   esac
12321   need_lib_prefix=no
12322   need_version=no
12323   soname_spec='$libname$release$shared_ext$major'
12324   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12325   case $host_os in
12326   irix5* | nonstopux*)
12327     libsuff= shlibsuff=
12328     ;;
12329   *)
12330     case $LD in # libtool.m4 will add one of these switches to LD
12331     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12332       libsuff= shlibsuff= libmagic=32-bit;;
12333     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12334       libsuff=32 shlibsuff=N32 libmagic=N32;;
12335     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12336       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12337     *) libsuff= shlibsuff= libmagic=never-match;;
12338     esac
12339     ;;
12340   esac
12341   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12342   shlibpath_overrides_runpath=no
12343   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12344   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12345   hardcode_into_libs=yes
12346   ;;
12347
12348 # No shared lib support for Linux oldld, aout, or coff.
12349 linux*oldld* | linux*aout* | linux*coff*)
12350   dynamic_linker=no
12351   ;;
12352
12353 linux*android*)
12354   version_type=none # Android doesn't support versioned libraries.
12355   need_lib_prefix=no
12356   need_version=no
12357   library_names_spec='$libname$release$shared_ext'
12358   soname_spec='$libname$release$shared_ext'
12359   finish_cmds=
12360   shlibpath_var=LD_LIBRARY_PATH
12361   shlibpath_overrides_runpath=yes
12362
12363   # This implies no fast_install, which is unacceptable.
12364   # Some rework will be needed to allow for fast_install
12365   # before this can be enabled.
12366   hardcode_into_libs=yes
12367
12368   dynamic_linker='Android linker'
12369   # Don't embed -rpath directories since the linker doesn't support them.
12370   hardcode_libdir_flag_spec='-L$libdir'
12371   ;;
12372
12373 # This must be glibc/ELF.
12374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12375   version_type=linux # correct to gnu/linux during the next big refactor
12376   need_lib_prefix=no
12377   need_version=no
12378   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12379   soname_spec='$libname$release$shared_ext$major'
12380   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12381   shlibpath_var=LD_LIBRARY_PATH
12382   shlibpath_overrides_runpath=no
12383
12384   # Some binutils ld are patched to set DT_RUNPATH
12385   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388   lt_cv_shlibpath_overrides_runpath=no
12389     save_LDFLAGS=$LDFLAGS
12390     save_libdir=$libdir
12391     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12392          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12393     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h.  */
12395
12396 int
12397 main ()
12398 {
12399
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_link "$LINENO"; then :
12405   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12406   lt_cv_shlibpath_overrides_runpath=yes
12407 fi
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext \
12410     conftest$ac_exeext conftest.$ac_ext
12411     LDFLAGS=$save_LDFLAGS
12412     libdir=$save_libdir
12413
12414 fi
12415
12416   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12417
12418   # This implies no fast_install, which is unacceptable.
12419   # Some rework will be needed to allow for fast_install
12420   # before this can be enabled.
12421   hardcode_into_libs=yes
12422
12423   # Ideally, we could use ldconfig to report *all* directores which are
12424   # searched for libraries, however this is still not possible.  Aside from not
12425   # being certain /sbin/ldconfig is available, command
12426   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12427   # even though it is searched at run-time.  Try to do the best guess by
12428   # appending ld.so.conf contents (and includes) to the search path.
12429   if test -f /etc/ld.so.conf; then
12430     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' ' '`
12431     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12432   fi
12433
12434   # We used to test for /lib/ld.so.1 and disable shared libraries on
12435   # powerpc, because MkLinux only supported shared libraries with the
12436   # GNU dynamic linker.  Since this was broken with cross compilers,
12437   # most powerpc-linux boxes support dynamic linking these days and
12438   # people can always --disable-shared, the test was removed, and we
12439   # assume the GNU/Linux dynamic linker is in use.
12440   dynamic_linker='GNU/Linux ld.so'
12441   ;;
12442
12443 netbsd*)
12444   version_type=sunos
12445   need_lib_prefix=no
12446   need_version=no
12447   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12448     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12449     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12450     dynamic_linker='NetBSD (a.out) ld.so'
12451   else
12452     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12453     soname_spec='$libname$release$shared_ext$major'
12454     dynamic_linker='NetBSD ld.elf_so'
12455   fi
12456   shlibpath_var=LD_LIBRARY_PATH
12457   shlibpath_overrides_runpath=yes
12458   hardcode_into_libs=yes
12459   ;;
12460
12461 newsos6)
12462   version_type=linux # correct to gnu/linux during the next big refactor
12463   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12464   shlibpath_var=LD_LIBRARY_PATH
12465   shlibpath_overrides_runpath=yes
12466   ;;
12467
12468 *nto* | *qnx*)
12469   version_type=qnx
12470   need_lib_prefix=no
12471   need_version=no
12472   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12473   soname_spec='$libname$release$shared_ext$major'
12474   shlibpath_var=LD_LIBRARY_PATH
12475   shlibpath_overrides_runpath=no
12476   hardcode_into_libs=yes
12477   dynamic_linker='ldqnx.so'
12478   ;;
12479
12480 openbsd* | bitrig*)
12481   version_type=sunos
12482   sys_lib_dlsearch_path_spec=/usr/lib
12483   need_lib_prefix=no
12484   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12485     need_version=no
12486   else
12487     need_version=yes
12488   fi
12489   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12490   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12491   shlibpath_var=LD_LIBRARY_PATH
12492   shlibpath_overrides_runpath=yes
12493   ;;
12494
12495 os2*)
12496   libname_spec='$name'
12497   version_type=windows
12498   shrext_cmds=.dll
12499   need_version=no
12500   need_lib_prefix=no
12501   # OS/2 can only load a DLL with a base name of 8 characters or less.
12502   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12503     v=$($ECHO $release$versuffix | tr -d .-);
12504     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12505     $ECHO $n$v`$shared_ext'
12506   library_names_spec='${libname}_dll.$libext'
12507   dynamic_linker='OS/2 ld.exe'
12508   shlibpath_var=BEGINLIBPATH
12509   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12510   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12511   postinstall_cmds='base_file=`basename \$file`~
12512     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12513     dldir=$destdir/`dirname \$dlpath`~
12514     test -d \$dldir || mkdir -p \$dldir~
12515     $install_prog $dir/$dlname \$dldir/$dlname~
12516     chmod a+x \$dldir/$dlname~
12517     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12518       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12519     fi'
12520   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12521     dlpath=$dir/\$dldll~
12522     $RM \$dlpath'
12523   ;;
12524
12525 osf3* | osf4* | osf5*)
12526   version_type=osf
12527   need_lib_prefix=no
12528   need_version=no
12529   soname_spec='$libname$release$shared_ext$major'
12530   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12531   shlibpath_var=LD_LIBRARY_PATH
12532   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12533   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12534   ;;
12535
12536 rdos*)
12537   dynamic_linker=no
12538   ;;
12539
12540 solaris*)
12541   version_type=linux # correct to gnu/linux during the next big refactor
12542   need_lib_prefix=no
12543   need_version=no
12544   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12545   soname_spec='$libname$release$shared_ext$major'
12546   shlibpath_var=LD_LIBRARY_PATH
12547   shlibpath_overrides_runpath=yes
12548   hardcode_into_libs=yes
12549   # ldd complains unless libraries are executable
12550   postinstall_cmds='chmod +x $lib'
12551   ;;
12552
12553 sunos4*)
12554   version_type=sunos
12555   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12556   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12557   shlibpath_var=LD_LIBRARY_PATH
12558   shlibpath_overrides_runpath=yes
12559   if test yes = "$with_gnu_ld"; then
12560     need_lib_prefix=no
12561   fi
12562   need_version=yes
12563   ;;
12564
12565 sysv4 | sysv4.3*)
12566   version_type=linux # correct to gnu/linux during the next big refactor
12567   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12568   soname_spec='$libname$release$shared_ext$major'
12569   shlibpath_var=LD_LIBRARY_PATH
12570   case $host_vendor in
12571     sni)
12572       shlibpath_overrides_runpath=no
12573       need_lib_prefix=no
12574       runpath_var=LD_RUN_PATH
12575       ;;
12576     siemens)
12577       need_lib_prefix=no
12578       ;;
12579     motorola)
12580       need_lib_prefix=no
12581       need_version=no
12582       shlibpath_overrides_runpath=no
12583       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12584       ;;
12585   esac
12586   ;;
12587
12588 sysv4*MP*)
12589   if test -d /usr/nec; then
12590     version_type=linux # correct to gnu/linux during the next big refactor
12591     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12592     soname_spec='$libname$shared_ext.$major'
12593     shlibpath_var=LD_LIBRARY_PATH
12594   fi
12595   ;;
12596
12597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12598   version_type=sco
12599   need_lib_prefix=no
12600   need_version=no
12601   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12602   soname_spec='$libname$release$shared_ext$major'
12603   shlibpath_var=LD_LIBRARY_PATH
12604   shlibpath_overrides_runpath=yes
12605   hardcode_into_libs=yes
12606   if test yes = "$with_gnu_ld"; then
12607     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12608   else
12609     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12610     case $host_os in
12611       sco3.2v5*)
12612         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12613         ;;
12614     esac
12615   fi
12616   sys_lib_dlsearch_path_spec='/usr/lib'
12617   ;;
12618
12619 tpf*)
12620   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12621   version_type=linux # correct to gnu/linux during the next big refactor
12622   need_lib_prefix=no
12623   need_version=no
12624   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12625   shlibpath_var=LD_LIBRARY_PATH
12626   shlibpath_overrides_runpath=no
12627   hardcode_into_libs=yes
12628   ;;
12629
12630 uts4*)
12631   version_type=linux # correct to gnu/linux during the next big refactor
12632   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12633   soname_spec='$libname$release$shared_ext$major'
12634   shlibpath_var=LD_LIBRARY_PATH
12635   ;;
12636
12637 *)
12638   dynamic_linker=no
12639   ;;
12640 esac
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12642 $as_echo "$dynamic_linker" >&6; }
12643 test no = "$dynamic_linker" && can_build_shared=no
12644
12645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12646 if test yes = "$GCC"; then
12647   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12648 fi
12649
12650 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12651   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12652 fi
12653
12654 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12655   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12656 fi
12657
12658 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12659 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12660
12661 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12662 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12663
12664 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12665 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12765 hardcode_action=
12766 if test -n "$hardcode_libdir_flag_spec" ||
12767    test -n "$runpath_var" ||
12768    test yes = "$hardcode_automatic"; then
12769
12770   # We can hardcode non-existent directories.
12771   if test no != "$hardcode_direct" &&
12772      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12773      # have to relink, otherwise we might link with an installed library
12774      # when we should be linking with a yet-to-be-installed one
12775      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12776      test no != "$hardcode_minus_L"; then
12777     # Linking always hardcodes the temporary library directory.
12778     hardcode_action=relink
12779   else
12780     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12781     hardcode_action=immediate
12782   fi
12783 else
12784   # We cannot hardcode anything, or else we can only hardcode existing
12785   # directories.
12786   hardcode_action=unsupported
12787 fi
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12789 $as_echo "$hardcode_action" >&6; }
12790
12791 if test relink = "$hardcode_action" ||
12792    test yes = "$inherit_rpath"; then
12793   # Fast installation is not supported
12794   enable_fast_install=no
12795 elif test yes = "$shlibpath_overrides_runpath" ||
12796      test no = "$enable_shared"; then
12797   # Fast installation is not necessary
12798   enable_fast_install=needless
12799 fi
12800
12801
12802
12803
12804
12805
12806   if test yes != "$enable_dlopen"; then
12807   enable_dlopen=unknown
12808   enable_dlopen_self=unknown
12809   enable_dlopen_self_static=unknown
12810 else
12811   lt_cv_dlopen=no
12812   lt_cv_dlopen_libs=
12813
12814   case $host_os in
12815   beos*)
12816     lt_cv_dlopen=load_add_on
12817     lt_cv_dlopen_libs=
12818     lt_cv_dlopen_self=yes
12819     ;;
12820
12821   mingw* | pw32* | cegcc*)
12822     lt_cv_dlopen=LoadLibrary
12823     lt_cv_dlopen_libs=
12824     ;;
12825
12826   cygwin*)
12827     lt_cv_dlopen=dlopen
12828     lt_cv_dlopen_libs=
12829     ;;
12830
12831   darwin*)
12832     # if libdl is installed we need to link against it
12833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12834 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12835 if ${ac_cv_lib_dl_dlopen+:} false; then :
12836   $as_echo_n "(cached) " >&6
12837 else
12838   ac_check_lib_save_LIBS=$LIBS
12839 LIBS="-ldl  $LIBS"
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h.  */
12842
12843 /* Override any GCC internal prototype to avoid an error.
12844    Use char because int might match the return type of a GCC
12845    builtin and then its argument prototype would still apply.  */
12846 #ifdef __cplusplus
12847 extern "C"
12848 #endif
12849 char dlopen ();
12850 int
12851 main ()
12852 {
12853 return dlopen ();
12854   ;
12855   return 0;
12856 }
12857 _ACEOF
12858 if ac_fn_c_try_link "$LINENO"; then :
12859   ac_cv_lib_dl_dlopen=yes
12860 else
12861   ac_cv_lib_dl_dlopen=no
12862 fi
12863 rm -f core conftest.err conftest.$ac_objext \
12864     conftest$ac_exeext conftest.$ac_ext
12865 LIBS=$ac_check_lib_save_LIBS
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12868 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12869 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12870   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12871 else
12872
12873     lt_cv_dlopen=dyld
12874     lt_cv_dlopen_libs=
12875     lt_cv_dlopen_self=yes
12876
12877 fi
12878
12879     ;;
12880
12881   tpf*)
12882     # Don't try to run any link tests for TPF.  We know it's impossible
12883     # because TPF is a cross-compiler, and we know how we open DSOs.
12884     lt_cv_dlopen=dlopen
12885     lt_cv_dlopen_libs=
12886     lt_cv_dlopen_self=no
12887     ;;
12888
12889   *)
12890     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12891 if test "x$ac_cv_func_shl_load" = xyes; then :
12892   lt_cv_dlopen=shl_load
12893 else
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12895 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12896 if ${ac_cv_lib_dld_shl_load+:} false; then :
12897   $as_echo_n "(cached) " >&6
12898 else
12899   ac_check_lib_save_LIBS=$LIBS
12900 LIBS="-ldld  $LIBS"
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h.  */
12903
12904 /* Override any GCC internal prototype to avoid an error.
12905    Use char because int might match the return type of a GCC
12906    builtin and then its argument prototype would still apply.  */
12907 #ifdef __cplusplus
12908 extern "C"
12909 #endif
12910 char shl_load ();
12911 int
12912 main ()
12913 {
12914 return shl_load ();
12915   ;
12916   return 0;
12917 }
12918 _ACEOF
12919 if ac_fn_c_try_link "$LINENO"; then :
12920   ac_cv_lib_dld_shl_load=yes
12921 else
12922   ac_cv_lib_dld_shl_load=no
12923 fi
12924 rm -f core conftest.err conftest.$ac_objext \
12925     conftest$ac_exeext conftest.$ac_ext
12926 LIBS=$ac_check_lib_save_LIBS
12927 fi
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12929 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12930 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12931   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12932 else
12933   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12934 if test "x$ac_cv_func_dlopen" = xyes; then :
12935   lt_cv_dlopen=dlopen
12936 else
12937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12938 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12939 if ${ac_cv_lib_dl_dlopen+:} false; then :
12940   $as_echo_n "(cached) " >&6
12941 else
12942   ac_check_lib_save_LIBS=$LIBS
12943 LIBS="-ldl  $LIBS"
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h.  */
12946
12947 /* Override any GCC internal prototype to avoid an error.
12948    Use char because int might match the return type of a GCC
12949    builtin and then its argument prototype would still apply.  */
12950 #ifdef __cplusplus
12951 extern "C"
12952 #endif
12953 char dlopen ();
12954 int
12955 main ()
12956 {
12957 return dlopen ();
12958   ;
12959   return 0;
12960 }
12961 _ACEOF
12962 if ac_fn_c_try_link "$LINENO"; then :
12963   ac_cv_lib_dl_dlopen=yes
12964 else
12965   ac_cv_lib_dl_dlopen=no
12966 fi
12967 rm -f core conftest.err conftest.$ac_objext \
12968     conftest$ac_exeext conftest.$ac_ext
12969 LIBS=$ac_check_lib_save_LIBS
12970 fi
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12972 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12973 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12974   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12975 else
12976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12977 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12978 if ${ac_cv_lib_svld_dlopen+:} false; then :
12979   $as_echo_n "(cached) " >&6
12980 else
12981   ac_check_lib_save_LIBS=$LIBS
12982 LIBS="-lsvld  $LIBS"
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h.  */
12985
12986 /* Override any GCC internal prototype to avoid an error.
12987    Use char because int might match the return type of a GCC
12988    builtin and then its argument prototype would still apply.  */
12989 #ifdef __cplusplus
12990 extern "C"
12991 #endif
12992 char dlopen ();
12993 int
12994 main ()
12995 {
12996 return dlopen ();
12997   ;
12998   return 0;
12999 }
13000 _ACEOF
13001 if ac_fn_c_try_link "$LINENO"; then :
13002   ac_cv_lib_svld_dlopen=yes
13003 else
13004   ac_cv_lib_svld_dlopen=no
13005 fi
13006 rm -f core conftest.err conftest.$ac_objext \
13007     conftest$ac_exeext conftest.$ac_ext
13008 LIBS=$ac_check_lib_save_LIBS
13009 fi
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13011 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13012 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13013   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13014 else
13015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13016 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13017 if ${ac_cv_lib_dld_dld_link+:} false; then :
13018   $as_echo_n "(cached) " >&6
13019 else
13020   ac_check_lib_save_LIBS=$LIBS
13021 LIBS="-ldld  $LIBS"
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h.  */
13024
13025 /* Override any GCC internal prototype to avoid an error.
13026    Use char because int might match the return type of a GCC
13027    builtin and then its argument prototype would still apply.  */
13028 #ifdef __cplusplus
13029 extern "C"
13030 #endif
13031 char dld_link ();
13032 int
13033 main ()
13034 {
13035 return dld_link ();
13036   ;
13037   return 0;
13038 }
13039 _ACEOF
13040 if ac_fn_c_try_link "$LINENO"; then :
13041   ac_cv_lib_dld_dld_link=yes
13042 else
13043   ac_cv_lib_dld_dld_link=no
13044 fi
13045 rm -f core conftest.err conftest.$ac_objext \
13046     conftest$ac_exeext conftest.$ac_ext
13047 LIBS=$ac_check_lib_save_LIBS
13048 fi
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13050 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13051 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13052   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13053 fi
13054
13055
13056 fi
13057
13058
13059 fi
13060
13061
13062 fi
13063
13064
13065 fi
13066
13067
13068 fi
13069
13070     ;;
13071   esac
13072
13073   if test no = "$lt_cv_dlopen"; then
13074     enable_dlopen=no
13075   else
13076     enable_dlopen=yes
13077   fi
13078
13079   case $lt_cv_dlopen in
13080   dlopen)
13081     save_CPPFLAGS=$CPPFLAGS
13082     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13083
13084     save_LDFLAGS=$LDFLAGS
13085     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13086
13087     save_LIBS=$LIBS
13088     LIBS="$lt_cv_dlopen_libs $LIBS"
13089
13090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13091 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13092 if ${lt_cv_dlopen_self+:} false; then :
13093   $as_echo_n "(cached) " >&6
13094 else
13095           if test yes = "$cross_compiling"; then :
13096   lt_cv_dlopen_self=cross
13097 else
13098   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13099   lt_status=$lt_dlunknown
13100   cat > conftest.$ac_ext <<_LT_EOF
13101 #line $LINENO "configure"
13102 #include "confdefs.h"
13103
13104 #if HAVE_DLFCN_H
13105 #include <dlfcn.h>
13106 #endif
13107
13108 #include <stdio.h>
13109
13110 #ifdef RTLD_GLOBAL
13111 #  define LT_DLGLOBAL           RTLD_GLOBAL
13112 #else
13113 #  ifdef DL_GLOBAL
13114 #    define LT_DLGLOBAL         DL_GLOBAL
13115 #  else
13116 #    define LT_DLGLOBAL         0
13117 #  endif
13118 #endif
13119
13120 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13121    find out it does not work in some platform. */
13122 #ifndef LT_DLLAZY_OR_NOW
13123 #  ifdef RTLD_LAZY
13124 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13125 #  else
13126 #    ifdef DL_LAZY
13127 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13128 #    else
13129 #      ifdef RTLD_NOW
13130 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13131 #      else
13132 #        ifdef DL_NOW
13133 #          define LT_DLLAZY_OR_NOW      DL_NOW
13134 #        else
13135 #          define LT_DLLAZY_OR_NOW      0
13136 #        endif
13137 #      endif
13138 #    endif
13139 #  endif
13140 #endif
13141
13142 /* When -fvisibility=hidden is used, assume the code has been annotated
13143    correspondingly for the symbols needed.  */
13144 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13145 int fnord () __attribute__((visibility("default")));
13146 #endif
13147
13148 int fnord () { return 42; }
13149 int main ()
13150 {
13151   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13152   int status = $lt_dlunknown;
13153
13154   if (self)
13155     {
13156       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13157       else
13158         {
13159           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13160           else puts (dlerror ());
13161         }
13162       /* dlclose (self); */
13163     }
13164   else
13165     puts (dlerror ());
13166
13167   return status;
13168 }
13169 _LT_EOF
13170   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13171   (eval $ac_link) 2>&5
13172   ac_status=$?
13173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13174   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13175     (./conftest; exit; ) >&5 2>/dev/null
13176     lt_status=$?
13177     case x$lt_status in
13178       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13179       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13180       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13181     esac
13182   else :
13183     # compilation failed
13184     lt_cv_dlopen_self=no
13185   fi
13186 fi
13187 rm -fr conftest*
13188
13189
13190 fi
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13192 $as_echo "$lt_cv_dlopen_self" >&6; }
13193
13194     if test yes = "$lt_cv_dlopen_self"; then
13195       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13196       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13197 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13198 if ${lt_cv_dlopen_self_static+:} false; then :
13199   $as_echo_n "(cached) " >&6
13200 else
13201           if test yes = "$cross_compiling"; then :
13202   lt_cv_dlopen_self_static=cross
13203 else
13204   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13205   lt_status=$lt_dlunknown
13206   cat > conftest.$ac_ext <<_LT_EOF
13207 #line $LINENO "configure"
13208 #include "confdefs.h"
13209
13210 #if HAVE_DLFCN_H
13211 #include <dlfcn.h>
13212 #endif
13213
13214 #include <stdio.h>
13215
13216 #ifdef RTLD_GLOBAL
13217 #  define LT_DLGLOBAL           RTLD_GLOBAL
13218 #else
13219 #  ifdef DL_GLOBAL
13220 #    define LT_DLGLOBAL         DL_GLOBAL
13221 #  else
13222 #    define LT_DLGLOBAL         0
13223 #  endif
13224 #endif
13225
13226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13227    find out it does not work in some platform. */
13228 #ifndef LT_DLLAZY_OR_NOW
13229 #  ifdef RTLD_LAZY
13230 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13231 #  else
13232 #    ifdef DL_LAZY
13233 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13234 #    else
13235 #      ifdef RTLD_NOW
13236 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13237 #      else
13238 #        ifdef DL_NOW
13239 #          define LT_DLLAZY_OR_NOW      DL_NOW
13240 #        else
13241 #          define LT_DLLAZY_OR_NOW      0
13242 #        endif
13243 #      endif
13244 #    endif
13245 #  endif
13246 #endif
13247
13248 /* When -fvisibility=hidden is used, assume the code has been annotated
13249    correspondingly for the symbols needed.  */
13250 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13251 int fnord () __attribute__((visibility("default")));
13252 #endif
13253
13254 int fnord () { return 42; }
13255 int main ()
13256 {
13257   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13258   int status = $lt_dlunknown;
13259
13260   if (self)
13261     {
13262       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13263       else
13264         {
13265           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13266           else puts (dlerror ());
13267         }
13268       /* dlclose (self); */
13269     }
13270   else
13271     puts (dlerror ());
13272
13273   return status;
13274 }
13275 _LT_EOF
13276   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13277   (eval $ac_link) 2>&5
13278   ac_status=$?
13279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13280   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13281     (./conftest; exit; ) >&5 2>/dev/null
13282     lt_status=$?
13283     case x$lt_status in
13284       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13285       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13286       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13287     esac
13288   else :
13289     # compilation failed
13290     lt_cv_dlopen_self_static=no
13291   fi
13292 fi
13293 rm -fr conftest*
13294
13295
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13298 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13299     fi
13300
13301     CPPFLAGS=$save_CPPFLAGS
13302     LDFLAGS=$save_LDFLAGS
13303     LIBS=$save_LIBS
13304     ;;
13305   esac
13306
13307   case $lt_cv_dlopen_self in
13308   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13309   *) enable_dlopen_self=unknown ;;
13310   esac
13311
13312   case $lt_cv_dlopen_self_static in
13313   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13314   *) enable_dlopen_self_static=unknown ;;
13315   esac
13316 fi
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334 striplib=
13335 old_striplib=
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13337 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13338 if test -z "$STRIP"; then
13339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13341 else
13342   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13343     old_striplib="$STRIP --strip-debug"
13344     striplib="$STRIP --strip-unneeded"
13345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13346 $as_echo "yes" >&6; }
13347   else
13348     case $host_os in
13349     darwin*)
13350       # FIXME - insert some real tests, host_os isn't really good enough
13351       striplib="$STRIP -x"
13352       old_striplib="$STRIP -S"
13353       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13354 $as_echo "yes" >&6; }
13355       ;;
13356     freebsd*)
13357       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13358         old_striplib="$STRIP --strip-debug"
13359         striplib="$STRIP --strip-unneeded"
13360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361 $as_echo "yes" >&6; }
13362       else
13363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364 $as_echo "no" >&6; }
13365       fi
13366       ;;
13367     *)
13368       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13370       ;;
13371     esac
13372   fi
13373 fi
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386   # Report what library types will actually be built
13387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13388 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13390 $as_echo "$can_build_shared" >&6; }
13391
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13393 $as_echo_n "checking whether to build shared libraries... " >&6; }
13394   test no = "$can_build_shared" && enable_shared=no
13395
13396   # On AIX, shared libraries and static libraries use the same namespace, and
13397   # are all built from PIC.
13398   case $host_os in
13399   aix3*)
13400     test yes = "$enable_shared" && enable_static=no
13401     if test -n "$RANLIB"; then
13402       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13403       postinstall_cmds='$RANLIB $lib'
13404     fi
13405     ;;
13406
13407   aix[4-9]*)
13408     if test ia64 != "$host_cpu"; then
13409       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13410       yes,aix,yes) ;;                   # shared object as lib.so file only
13411       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13412       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13413       esac
13414     fi
13415     ;;
13416   esac
13417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13418 $as_echo "$enable_shared" >&6; }
13419
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13421 $as_echo_n "checking whether to build static libraries... " >&6; }
13422   # Make sure either enable_shared or enable_static is yes.
13423   test yes = "$enable_shared" || enable_static=yes
13424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13425 $as_echo "$enable_static" >&6; }
13426
13427
13428
13429
13430 fi
13431 ac_ext=c
13432 ac_cpp='$CPP $CPPFLAGS'
13433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13436
13437 CC=$lt_save_CC
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453         ac_config_commands="$ac_config_commands libtool"
13454
13455
13456
13457
13458 # Only expand once:
13459
13460
13461
13462 # Check for programs
13463 ac_ext=c
13464 ac_cpp='$CPP $CPPFLAGS'
13465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13468 if test -n "$ac_tool_prefix"; then
13469   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472 $as_echo_n "checking for $ac_word... " >&6; }
13473 if ${ac_cv_prog_CC+:} false; then :
13474   $as_echo_n "(cached) " >&6
13475 else
13476   if test -n "$CC"; then
13477   ac_cv_prog_CC="$CC" # Let the user override the test.
13478 else
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13481 do
13482   IFS=$as_save_IFS
13483   test -z "$as_dir" && as_dir=.
13484     for ac_exec_ext in '' $ac_executable_extensions; do
13485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13486     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13488     break 2
13489   fi
13490 done
13491   done
13492 IFS=$as_save_IFS
13493
13494 fi
13495 fi
13496 CC=$ac_cv_prog_CC
13497 if test -n "$CC"; then
13498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13499 $as_echo "$CC" >&6; }
13500 else
13501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502 $as_echo "no" >&6; }
13503 fi
13504
13505
13506 fi
13507 if test -z "$ac_cv_prog_CC"; then
13508   ac_ct_CC=$CC
13509   # Extract the first word of "gcc", so it can be a program name with args.
13510 set dummy gcc; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13514   $as_echo_n "(cached) " >&6
13515 else
13516   if test -n "$ac_ct_CC"; then
13517   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13518 else
13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520 for as_dir in $PATH
13521 do
13522   IFS=$as_save_IFS
13523   test -z "$as_dir" && as_dir=.
13524     for ac_exec_ext in '' $ac_executable_extensions; do
13525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13526     ac_cv_prog_ac_ct_CC="gcc"
13527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528     break 2
13529   fi
13530 done
13531   done
13532 IFS=$as_save_IFS
13533
13534 fi
13535 fi
13536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13537 if test -n "$ac_ct_CC"; then
13538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13539 $as_echo "$ac_ct_CC" >&6; }
13540 else
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13543 fi
13544
13545   if test "x$ac_ct_CC" = x; then
13546     CC=""
13547   else
13548     case $cross_compiling:$ac_tool_warned in
13549 yes:)
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13552 ac_tool_warned=yes ;;
13553 esac
13554     CC=$ac_ct_CC
13555   fi
13556 else
13557   CC="$ac_cv_prog_CC"
13558 fi
13559
13560 if test -z "$CC"; then
13561           if test -n "$ac_tool_prefix"; then
13562     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13563 set dummy ${ac_tool_prefix}cc; ac_word=$2
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565 $as_echo_n "checking for $ac_word... " >&6; }
13566 if ${ac_cv_prog_CC+:} false; then :
13567   $as_echo_n "(cached) " >&6
13568 else
13569   if test -n "$CC"; then
13570   ac_cv_prog_CC="$CC" # Let the user override the test.
13571 else
13572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573 for as_dir in $PATH
13574 do
13575   IFS=$as_save_IFS
13576   test -z "$as_dir" && as_dir=.
13577     for ac_exec_ext in '' $ac_executable_extensions; do
13578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13579     ac_cv_prog_CC="${ac_tool_prefix}cc"
13580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13581     break 2
13582   fi
13583 done
13584   done
13585 IFS=$as_save_IFS
13586
13587 fi
13588 fi
13589 CC=$ac_cv_prog_CC
13590 if test -n "$CC"; then
13591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13592 $as_echo "$CC" >&6; }
13593 else
13594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13596 fi
13597
13598
13599   fi
13600 fi
13601 if test -z "$CC"; then
13602   # Extract the first word of "cc", so it can be a program name with args.
13603 set dummy cc; ac_word=$2
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13605 $as_echo_n "checking for $ac_word... " >&6; }
13606 if ${ac_cv_prog_CC+:} false; then :
13607   $as_echo_n "(cached) " >&6
13608 else
13609   if test -n "$CC"; then
13610   ac_cv_prog_CC="$CC" # Let the user override the test.
13611 else
13612   ac_prog_rejected=no
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13615 do
13616   IFS=$as_save_IFS
13617   test -z "$as_dir" && as_dir=.
13618     for ac_exec_ext in '' $ac_executable_extensions; do
13619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13621        ac_prog_rejected=yes
13622        continue
13623      fi
13624     ac_cv_prog_CC="cc"
13625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626     break 2
13627   fi
13628 done
13629   done
13630 IFS=$as_save_IFS
13631
13632 if test $ac_prog_rejected = yes; then
13633   # We found a bogon in the path, so make sure we never use it.
13634   set dummy $ac_cv_prog_CC
13635   shift
13636   if test $# != 0; then
13637     # We chose a different compiler from the bogus one.
13638     # However, it has the same basename, so the bogon will be chosen
13639     # first if we set CC to just the basename; use the full file name.
13640     shift
13641     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13642   fi
13643 fi
13644 fi
13645 fi
13646 CC=$ac_cv_prog_CC
13647 if test -n "$CC"; then
13648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13649 $as_echo "$CC" >&6; }
13650 else
13651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653 fi
13654
13655
13656 fi
13657 if test -z "$CC"; then
13658   if test -n "$ac_tool_prefix"; then
13659   for ac_prog in cl.exe
13660   do
13661     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13664 $as_echo_n "checking for $ac_word... " >&6; }
13665 if ${ac_cv_prog_CC+:} false; then :
13666   $as_echo_n "(cached) " >&6
13667 else
13668   if test -n "$CC"; then
13669   ac_cv_prog_CC="$CC" # Let the user override the test.
13670 else
13671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672 for as_dir in $PATH
13673 do
13674   IFS=$as_save_IFS
13675   test -z "$as_dir" && as_dir=.
13676     for ac_exec_ext in '' $ac_executable_extensions; do
13677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13680     break 2
13681   fi
13682 done
13683   done
13684 IFS=$as_save_IFS
13685
13686 fi
13687 fi
13688 CC=$ac_cv_prog_CC
13689 if test -n "$CC"; then
13690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13691 $as_echo "$CC" >&6; }
13692 else
13693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694 $as_echo "no" >&6; }
13695 fi
13696
13697
13698     test -n "$CC" && break
13699   done
13700 fi
13701 if test -z "$CC"; then
13702   ac_ct_CC=$CC
13703   for ac_prog in cl.exe
13704 do
13705   # Extract the first word of "$ac_prog", so it can be a program name with args.
13706 set dummy $ac_prog; ac_word=$2
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13708 $as_echo_n "checking for $ac_word... " >&6; }
13709 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13710   $as_echo_n "(cached) " >&6
13711 else
13712   if test -n "$ac_ct_CC"; then
13713   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13714 else
13715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 for as_dir in $PATH
13717 do
13718   IFS=$as_save_IFS
13719   test -z "$as_dir" && as_dir=.
13720     for ac_exec_ext in '' $ac_executable_extensions; do
13721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722     ac_cv_prog_ac_ct_CC="$ac_prog"
13723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724     break 2
13725   fi
13726 done
13727   done
13728 IFS=$as_save_IFS
13729
13730 fi
13731 fi
13732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13733 if test -n "$ac_ct_CC"; then
13734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13735 $as_echo "$ac_ct_CC" >&6; }
13736 else
13737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738 $as_echo "no" >&6; }
13739 fi
13740
13741
13742   test -n "$ac_ct_CC" && break
13743 done
13744
13745   if test "x$ac_ct_CC" = x; then
13746     CC=""
13747   else
13748     case $cross_compiling:$ac_tool_warned in
13749 yes:)
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13752 ac_tool_warned=yes ;;
13753 esac
13754     CC=$ac_ct_CC
13755   fi
13756 fi
13757
13758 fi
13759
13760
13761 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13763 as_fn_error $? "no acceptable C compiler found in \$PATH
13764 See \`config.log' for more details" "$LINENO" 5; }
13765
13766 # Provide some information about the compiler.
13767 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13768 set X $ac_compile
13769 ac_compiler=$2
13770 for ac_option in --version -v -V -qversion; do
13771   { { ac_try="$ac_compiler $ac_option >&5"
13772 case "(($ac_try" in
13773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774   *) ac_try_echo=$ac_try;;
13775 esac
13776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13777 $as_echo "$ac_try_echo"; } >&5
13778   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13779   ac_status=$?
13780   if test -s conftest.err; then
13781     sed '10a\
13782 ... rest of stderr output deleted ...
13783          10q' conftest.err >conftest.er1
13784     cat conftest.er1 >&5
13785   fi
13786   rm -f conftest.er1 conftest.err
13787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13788   test $ac_status = 0; }
13789 done
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13792 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13793 if ${ac_cv_c_compiler_gnu+:} false; then :
13794   $as_echo_n "(cached) " >&6
13795 else
13796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h.  */
13798
13799 int
13800 main ()
13801 {
13802 #ifndef __GNUC__
13803        choke me
13804 #endif
13805
13806   ;
13807   return 0;
13808 }
13809 _ACEOF
13810 if ac_fn_c_try_compile "$LINENO"; then :
13811   ac_compiler_gnu=yes
13812 else
13813   ac_compiler_gnu=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13817
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13821 if test $ac_compiler_gnu = yes; then
13822   GCC=yes
13823 else
13824   GCC=
13825 fi
13826 ac_test_CFLAGS=${CFLAGS+set}
13827 ac_save_CFLAGS=$CFLAGS
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13830 if ${ac_cv_prog_cc_g+:} false; then :
13831   $as_echo_n "(cached) " >&6
13832 else
13833   ac_save_c_werror_flag=$ac_c_werror_flag
13834    ac_c_werror_flag=yes
13835    ac_cv_prog_cc_g=no
13836    CFLAGS="-g"
13837    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h.  */
13839
13840 int
13841 main ()
13842 {
13843
13844   ;
13845   return 0;
13846 }
13847 _ACEOF
13848 if ac_fn_c_try_compile "$LINENO"; then :
13849   ac_cv_prog_cc_g=yes
13850 else
13851   CFLAGS=""
13852       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h.  */
13854
13855 int
13856 main ()
13857 {
13858
13859   ;
13860   return 0;
13861 }
13862 _ACEOF
13863 if ac_fn_c_try_compile "$LINENO"; then :
13864
13865 else
13866   ac_c_werror_flag=$ac_save_c_werror_flag
13867          CFLAGS="-g"
13868          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h.  */
13870
13871 int
13872 main ()
13873 {
13874
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 if ac_fn_c_try_compile "$LINENO"; then :
13880   ac_cv_prog_cc_g=yes
13881 fi
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885 fi
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887    ac_c_werror_flag=$ac_save_c_werror_flag
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13890 $as_echo "$ac_cv_prog_cc_g" >&6; }
13891 if test "$ac_test_CFLAGS" = set; then
13892   CFLAGS=$ac_save_CFLAGS
13893 elif test $ac_cv_prog_cc_g = yes; then
13894   if test "$GCC" = yes; then
13895     CFLAGS="-g -O2"
13896   else
13897     CFLAGS="-g"
13898   fi
13899 else
13900   if test "$GCC" = yes; then
13901     CFLAGS="-O2"
13902   else
13903     CFLAGS=
13904   fi
13905 fi
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13907 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13908 if ${ac_cv_prog_cc_c89+:} false; then :
13909   $as_echo_n "(cached) " >&6
13910 else
13911   ac_cv_prog_cc_c89=no
13912 ac_save_CC=$CC
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h.  */
13915 #include <stdarg.h>
13916 #include <stdio.h>
13917 struct stat;
13918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13919 struct buf { int x; };
13920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13921 static char *e (p, i)
13922      char **p;
13923      int i;
13924 {
13925   return p[i];
13926 }
13927 static char *f (char * (*g) (char **, int), char **p, ...)
13928 {
13929   char *s;
13930   va_list v;
13931   va_start (v,p);
13932   s = g (p, va_arg (v,int));
13933   va_end (v);
13934   return s;
13935 }
13936
13937 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13938    function prototypes and stuff, but not '\xHH' hex character constants.
13939    These don't provoke an error unfortunately, instead are silently treated
13940    as 'x'.  The following induces an error, until -std is added to get
13941    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13942    array size at least.  It's necessary to write '\x00'==0 to get something
13943    that's true only with -std.  */
13944 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13945
13946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13947    inside strings and character constants.  */
13948 #define FOO(x) 'x'
13949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13950
13951 int test (int i, double x);
13952 struct s1 {int (*f) (int a);};
13953 struct s2 {int (*f) (double a);};
13954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13955 int argc;
13956 char **argv;
13957 int
13958 main ()
13959 {
13960 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13961   ;
13962   return 0;
13963 }
13964 _ACEOF
13965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13966         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13967 do
13968   CC="$ac_save_CC $ac_arg"
13969   if ac_fn_c_try_compile "$LINENO"; then :
13970   ac_cv_prog_cc_c89=$ac_arg
13971 fi
13972 rm -f core conftest.err conftest.$ac_objext
13973   test "x$ac_cv_prog_cc_c89" != "xno" && break
13974 done
13975 rm -f conftest.$ac_ext
13976 CC=$ac_save_CC
13977
13978 fi
13979 # AC_CACHE_VAL
13980 case "x$ac_cv_prog_cc_c89" in
13981   x)
13982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13983 $as_echo "none needed" >&6; } ;;
13984   xno)
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13986 $as_echo "unsupported" >&6; } ;;
13987   *)
13988     CC="$CC $ac_cv_prog_cc_c89"
13989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13990 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13991 esac
13992 if test "x$ac_cv_prog_cc_c89" != xno; then :
13993
13994 fi
13995
13996 ac_ext=c
13997 ac_cpp='$CPP $CPPFLAGS'
13998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14001
14002 ac_ext=c
14003 ac_cpp='$CPP $CPPFLAGS'
14004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14008 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14009 if ${am_cv_prog_cc_c_o+:} false; then :
14010   $as_echo_n "(cached) " >&6
14011 else
14012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h.  */
14014
14015 int
14016 main ()
14017 {
14018
14019   ;
14020   return 0;
14021 }
14022 _ACEOF
14023   # Make sure it works both with $CC and with simple cc.
14024   # Following AC_PROG_CC_C_O, we do the test twice because some
14025   # compilers refuse to overwrite an existing .o file with -o,
14026   # though they will create one.
14027   am_cv_prog_cc_c_o=yes
14028   for am_i in 1 2; do
14029     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14030    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14031    ac_status=$?
14032    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033    (exit $ac_status); } \
14034          && test -f conftest2.$ac_objext; then
14035       : OK
14036     else
14037       am_cv_prog_cc_c_o=no
14038       break
14039     fi
14040   done
14041   rm -f core conftest*
14042   unset am_i
14043 fi
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14045 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14046 if test "$am_cv_prog_cc_c_o" != yes; then
14047    # Losing compiler, so override with the script.
14048    # FIXME: It is wrong to rewrite CC.
14049    # But if we don't then we get into trouble of one sort or another.
14050    # A longer-term fix would be to have automake use am__CC in this case,
14051    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14052    CC="$am_aux_dir/compile $CC"
14053 fi
14054 ac_ext=c
14055 ac_cpp='$CPP $CPPFLAGS'
14056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14059
14060
14061 depcc="$CC"   am_compiler_list=
14062
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14064 $as_echo_n "checking dependency style of $depcc... " >&6; }
14065 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14066   $as_echo_n "(cached) " >&6
14067 else
14068   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14069   # We make a subdir and do the tests there.  Otherwise we can end up
14070   # making bogus files that we don't know about and never remove.  For
14071   # instance it was reported that on HP-UX the gcc test will end up
14072   # making a dummy file named 'D' -- because '-MD' means "put the output
14073   # in D".
14074   rm -rf conftest.dir
14075   mkdir conftest.dir
14076   # Copy depcomp to subdir because otherwise we won't find it if we're
14077   # using a relative directory.
14078   cp "$am_depcomp" conftest.dir
14079   cd conftest.dir
14080   # We will build objects and dependencies in a subdirectory because
14081   # it helps to detect inapplicable dependency modes.  For instance
14082   # both Tru64's cc and ICC support -MD to output dependencies as a
14083   # side effect of compilation, but ICC will put the dependencies in
14084   # the current directory while Tru64 will put them in the object
14085   # directory.
14086   mkdir sub
14087
14088   am_cv_CC_dependencies_compiler_type=none
14089   if test "$am_compiler_list" = ""; then
14090      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14091   fi
14092   am__universal=false
14093   case " $depcc " in #(
14094      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14095      esac
14096
14097   for depmode in $am_compiler_list; do
14098     # Setup a source with many dependencies, because some compilers
14099     # like to wrap large dependency lists on column 80 (with \), and
14100     # we should not choose a depcomp mode which is confused by this.
14101     #
14102     # We need to recreate these files for each test, as the compiler may
14103     # overwrite some of them when testing with obscure command lines.
14104     # This happens at least with the AIX C compiler.
14105     : > sub/conftest.c
14106     for i in 1 2 3 4 5 6; do
14107       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14108       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14109       # Solaris 10 /bin/sh.
14110       echo '/* dummy */' > sub/conftst$i.h
14111     done
14112     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14113
14114     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14115     # mode.  It turns out that the SunPro C++ compiler does not properly
14116     # handle '-M -o', and we need to detect this.  Also, some Intel
14117     # versions had trouble with output in subdirs.
14118     am__obj=sub/conftest.${OBJEXT-o}
14119     am__minus_obj="-o $am__obj"
14120     case $depmode in
14121     gcc)
14122       # This depmode causes a compiler race in universal mode.
14123       test "$am__universal" = false || continue
14124       ;;
14125     nosideeffect)
14126       # After this tag, mechanisms are not by side-effect, so they'll
14127       # only be used when explicitly requested.
14128       if test "x$enable_dependency_tracking" = xyes; then
14129         continue
14130       else
14131         break
14132       fi
14133       ;;
14134     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14135       # This compiler won't grok '-c -o', but also, the minuso test has
14136       # not run yet.  These depmodes are late enough in the game, and
14137       # so weak that their functioning should not be impacted.
14138       am__obj=conftest.${OBJEXT-o}
14139       am__minus_obj=
14140       ;;
14141     none) break ;;
14142     esac
14143     if depmode=$depmode \
14144        source=sub/conftest.c object=$am__obj \
14145        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14146        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14147          >/dev/null 2>conftest.err &&
14148        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14149        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14150        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14151        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14152       # icc doesn't choke on unknown options, it will just issue warnings
14153       # or remarks (even with -Werror).  So we grep stderr for any message
14154       # that says an option was ignored or not supported.
14155       # When given -MP, icc 7.0 and 7.1 complain thusly:
14156       #   icc: Command line warning: ignoring option '-M'; no argument required
14157       # The diagnosis changed in icc 8.0:
14158       #   icc: Command line remark: option '-MP' not supported
14159       if (grep 'ignoring option' conftest.err ||
14160           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14161         am_cv_CC_dependencies_compiler_type=$depmode
14162         break
14163       fi
14164     fi
14165   done
14166
14167   cd ..
14168   rm -rf conftest.dir
14169 else
14170   am_cv_CC_dependencies_compiler_type=none
14171 fi
14172
14173 fi
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14175 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14176 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14177
14178  if
14179   test "x$enable_dependency_tracking" != xno \
14180   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14181   am__fastdepCC_TRUE=
14182   am__fastdepCC_FALSE='#'
14183 else
14184   am__fastdepCC_TRUE='#'
14185   am__fastdepCC_FALSE=
14186 fi
14187
14188
14189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14190 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14191 if ${ac_cv_prog_cc_c99+:} false; then :
14192   $as_echo_n "(cached) " >&6
14193 else
14194   ac_cv_prog_cc_c99=no
14195 ac_save_CC=$CC
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h.  */
14198 #include <stdarg.h>
14199 #include <stdbool.h>
14200 #include <stdlib.h>
14201 #include <wchar.h>
14202 #include <stdio.h>
14203
14204 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14205 #define debug(...) fprintf (stderr, __VA_ARGS__)
14206 #define showlist(...) puts (#__VA_ARGS__)
14207 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14208 static void
14209 test_varargs_macros (void)
14210 {
14211   int x = 1234;
14212   int y = 5678;
14213   debug ("Flag");
14214   debug ("X = %d\n", x);
14215   showlist (The first, second, and third items.);
14216   report (x>y, "x is %d but y is %d", x, y);
14217 }
14218
14219 // Check long long types.
14220 #define BIG64 18446744073709551615ull
14221 #define BIG32 4294967295ul
14222 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14223 #if !BIG_OK
14224   your preprocessor is broken;
14225 #endif
14226 #if BIG_OK
14227 #else
14228   your preprocessor is broken;
14229 #endif
14230 static long long int bignum = -9223372036854775807LL;
14231 static unsigned long long int ubignum = BIG64;
14232
14233 struct incomplete_array
14234 {
14235   int datasize;
14236   double data[];
14237 };
14238
14239 struct named_init {
14240   int number;
14241   const wchar_t *name;
14242   double average;
14243 };
14244
14245 typedef const char *ccp;
14246
14247 static inline int
14248 test_restrict (ccp restrict text)
14249 {
14250   // See if C++-style comments work.
14251   // Iterate through items via the restricted pointer.
14252   // Also check for declarations in for loops.
14253   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14254     continue;
14255   return 0;
14256 }
14257
14258 // Check varargs and va_copy.
14259 static void
14260 test_varargs (const char *format, ...)
14261 {
14262   va_list args;
14263   va_start (args, format);
14264   va_list args_copy;
14265   va_copy (args_copy, args);
14266
14267   const char *str;
14268   int number;
14269   float fnumber;
14270
14271   while (*format)
14272     {
14273       switch (*format++)
14274         {
14275         case 's': // string
14276           str = va_arg (args_copy, const char *);
14277           break;
14278         case 'd': // int
14279           number = va_arg (args_copy, int);
14280           break;
14281         case 'f': // float
14282           fnumber = va_arg (args_copy, double);
14283           break;
14284         default:
14285           break;
14286         }
14287     }
14288   va_end (args_copy);
14289   va_end (args);
14290 }
14291
14292 int
14293 main ()
14294 {
14295
14296   // Check bool.
14297   _Bool success = false;
14298
14299   // Check restrict.
14300   if (test_restrict ("String literal") == 0)
14301     success = true;
14302   char *restrict newvar = "Another string";
14303
14304   // Check varargs.
14305   test_varargs ("s, d' f .", "string", 65, 34.234);
14306   test_varargs_macros ();
14307
14308   // Check flexible array members.
14309   struct incomplete_array *ia =
14310     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14311   ia->datasize = 10;
14312   for (int i = 0; i < ia->datasize; ++i)
14313     ia->data[i] = i * 1.234;
14314
14315   // Check named initializers.
14316   struct named_init ni = {
14317     .number = 34,
14318     .name = L"Test wide string",
14319     .average = 543.34343,
14320   };
14321
14322   ni.number = 58;
14323
14324   int dynamic_array[ni.number];
14325   dynamic_array[ni.number - 1] = 543;
14326
14327   // work around unused variable warnings
14328   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14329           || dynamic_array[ni.number - 1] != 543);
14330
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14336 do
14337   CC="$ac_save_CC $ac_arg"
14338   if ac_fn_c_try_compile "$LINENO"; then :
14339   ac_cv_prog_cc_c99=$ac_arg
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext
14342   test "x$ac_cv_prog_cc_c99" != "xno" && break
14343 done
14344 rm -f conftest.$ac_ext
14345 CC=$ac_save_CC
14346
14347 fi
14348 # AC_CACHE_VAL
14349 case "x$ac_cv_prog_cc_c99" in
14350   x)
14351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14352 $as_echo "none needed" >&6; } ;;
14353   xno)
14354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14355 $as_echo "unsupported" >&6; } ;;
14356   *)
14357     CC="$CC $ac_cv_prog_cc_c99"
14358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14359 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14360 esac
14361 if test "x$ac_cv_prog_cc_c99" != xno; then :
14362
14363 fi
14364
14365
14366
14367 ac_ext=cpp
14368 ac_cpp='$CXXCPP $CPPFLAGS'
14369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14372 if test -z "$CXX"; then
14373   if test -n "$CCC"; then
14374     CXX=$CCC
14375   else
14376     if test -n "$ac_tool_prefix"; then
14377   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14378   do
14379     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382 $as_echo_n "checking for $ac_word... " >&6; }
14383 if ${ac_cv_prog_CXX+:} false; then :
14384   $as_echo_n "(cached) " >&6
14385 else
14386   if test -n "$CXX"; then
14387   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14388 else
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14391 do
14392   IFS=$as_save_IFS
14393   test -z "$as_dir" && as_dir=.
14394     for ac_exec_ext in '' $ac_executable_extensions; do
14395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14396     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14398     break 2
14399   fi
14400 done
14401   done
14402 IFS=$as_save_IFS
14403
14404 fi
14405 fi
14406 CXX=$ac_cv_prog_CXX
14407 if test -n "$CXX"; then
14408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14409 $as_echo "$CXX" >&6; }
14410 else
14411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412 $as_echo "no" >&6; }
14413 fi
14414
14415
14416     test -n "$CXX" && break
14417   done
14418 fi
14419 if test -z "$CXX"; then
14420   ac_ct_CXX=$CXX
14421   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14422 do
14423   # Extract the first word of "$ac_prog", so it can be a program name with args.
14424 set dummy $ac_prog; ac_word=$2
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14426 $as_echo_n "checking for $ac_word... " >&6; }
14427 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14428   $as_echo_n "(cached) " >&6
14429 else
14430   if test -n "$ac_ct_CXX"; then
14431   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14432 else
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14435 do
14436   IFS=$as_save_IFS
14437   test -z "$as_dir" && as_dir=.
14438     for ac_exec_ext in '' $ac_executable_extensions; do
14439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14440     ac_cv_prog_ac_ct_CXX="$ac_prog"
14441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14442     break 2
14443   fi
14444 done
14445   done
14446 IFS=$as_save_IFS
14447
14448 fi
14449 fi
14450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14451 if test -n "$ac_ct_CXX"; then
14452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14453 $as_echo "$ac_ct_CXX" >&6; }
14454 else
14455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456 $as_echo "no" >&6; }
14457 fi
14458
14459
14460   test -n "$ac_ct_CXX" && break
14461 done
14462
14463   if test "x$ac_ct_CXX" = x; then
14464     CXX="g++"
14465   else
14466     case $cross_compiling:$ac_tool_warned in
14467 yes:)
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14470 ac_tool_warned=yes ;;
14471 esac
14472     CXX=$ac_ct_CXX
14473   fi
14474 fi
14475
14476   fi
14477 fi
14478 # Provide some information about the compiler.
14479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14480 set X $ac_compile
14481 ac_compiler=$2
14482 for ac_option in --version -v -V -qversion; do
14483   { { ac_try="$ac_compiler $ac_option >&5"
14484 case "(($ac_try" in
14485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486   *) ac_try_echo=$ac_try;;
14487 esac
14488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14489 $as_echo "$ac_try_echo"; } >&5
14490   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14491   ac_status=$?
14492   if test -s conftest.err; then
14493     sed '10a\
14494 ... rest of stderr output deleted ...
14495          10q' conftest.err >conftest.er1
14496     cat conftest.er1 >&5
14497   fi
14498   rm -f conftest.er1 conftest.err
14499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14500   test $ac_status = 0; }
14501 done
14502
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14504 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14505 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14506   $as_echo_n "(cached) " >&6
14507 else
14508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h.  */
14510
14511 int
14512 main ()
14513 {
14514 #ifndef __GNUC__
14515        choke me
14516 #endif
14517
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 if ac_fn_cxx_try_compile "$LINENO"; then :
14523   ac_compiler_gnu=yes
14524 else
14525   ac_compiler_gnu=no
14526 fi
14527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14529
14530 fi
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14532 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14533 if test $ac_compiler_gnu = yes; then
14534   GXX=yes
14535 else
14536   GXX=
14537 fi
14538 ac_test_CXXFLAGS=${CXXFLAGS+set}
14539 ac_save_CXXFLAGS=$CXXFLAGS
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14541 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14542 if ${ac_cv_prog_cxx_g+:} false; then :
14543   $as_echo_n "(cached) " >&6
14544 else
14545   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14546    ac_cxx_werror_flag=yes
14547    ac_cv_prog_cxx_g=no
14548    CXXFLAGS="-g"
14549    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h.  */
14551
14552 int
14553 main ()
14554 {
14555
14556   ;
14557   return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_cxx_try_compile "$LINENO"; then :
14561   ac_cv_prog_cxx_g=yes
14562 else
14563   CXXFLAGS=""
14564       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h.  */
14566
14567 int
14568 main ()
14569 {
14570
14571   ;
14572   return 0;
14573 }
14574 _ACEOF
14575 if ac_fn_cxx_try_compile "$LINENO"; then :
14576
14577 else
14578   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14579          CXXFLAGS="-g"
14580          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h.  */
14582
14583 int
14584 main ()
14585 {
14586
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 if ac_fn_cxx_try_compile "$LINENO"; then :
14592   ac_cv_prog_cxx_g=yes
14593 fi
14594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14600 fi
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14602 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14603 if test "$ac_test_CXXFLAGS" = set; then
14604   CXXFLAGS=$ac_save_CXXFLAGS
14605 elif test $ac_cv_prog_cxx_g = yes; then
14606   if test "$GXX" = yes; then
14607     CXXFLAGS="-g -O2"
14608   else
14609     CXXFLAGS="-g"
14610   fi
14611 else
14612   if test "$GXX" = yes; then
14613     CXXFLAGS="-O2"
14614   else
14615     CXXFLAGS=
14616   fi
14617 fi
14618 ac_ext=c
14619 ac_cpp='$CPP $CPPFLAGS'
14620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14623
14624 depcc="$CXX"  am_compiler_list=
14625
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14627 $as_echo_n "checking dependency style of $depcc... " >&6; }
14628 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14629   $as_echo_n "(cached) " >&6
14630 else
14631   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14632   # We make a subdir and do the tests there.  Otherwise we can end up
14633   # making bogus files that we don't know about and never remove.  For
14634   # instance it was reported that on HP-UX the gcc test will end up
14635   # making a dummy file named 'D' -- because '-MD' means "put the output
14636   # in D".
14637   rm -rf conftest.dir
14638   mkdir conftest.dir
14639   # Copy depcomp to subdir because otherwise we won't find it if we're
14640   # using a relative directory.
14641   cp "$am_depcomp" conftest.dir
14642   cd conftest.dir
14643   # We will build objects and dependencies in a subdirectory because
14644   # it helps to detect inapplicable dependency modes.  For instance
14645   # both Tru64's cc and ICC support -MD to output dependencies as a
14646   # side effect of compilation, but ICC will put the dependencies in
14647   # the current directory while Tru64 will put them in the object
14648   # directory.
14649   mkdir sub
14650
14651   am_cv_CXX_dependencies_compiler_type=none
14652   if test "$am_compiler_list" = ""; then
14653      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14654   fi
14655   am__universal=false
14656   case " $depcc " in #(
14657      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14658      esac
14659
14660   for depmode in $am_compiler_list; do
14661     # Setup a source with many dependencies, because some compilers
14662     # like to wrap large dependency lists on column 80 (with \), and
14663     # we should not choose a depcomp mode which is confused by this.
14664     #
14665     # We need to recreate these files for each test, as the compiler may
14666     # overwrite some of them when testing with obscure command lines.
14667     # This happens at least with the AIX C compiler.
14668     : > sub/conftest.c
14669     for i in 1 2 3 4 5 6; do
14670       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14671       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14672       # Solaris 10 /bin/sh.
14673       echo '/* dummy */' > sub/conftst$i.h
14674     done
14675     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14676
14677     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14678     # mode.  It turns out that the SunPro C++ compiler does not properly
14679     # handle '-M -o', and we need to detect this.  Also, some Intel
14680     # versions had trouble with output in subdirs.
14681     am__obj=sub/conftest.${OBJEXT-o}
14682     am__minus_obj="-o $am__obj"
14683     case $depmode in
14684     gcc)
14685       # This depmode causes a compiler race in universal mode.
14686       test "$am__universal" = false || continue
14687       ;;
14688     nosideeffect)
14689       # After this tag, mechanisms are not by side-effect, so they'll
14690       # only be used when explicitly requested.
14691       if test "x$enable_dependency_tracking" = xyes; then
14692         continue
14693       else
14694         break
14695       fi
14696       ;;
14697     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14698       # This compiler won't grok '-c -o', but also, the minuso test has
14699       # not run yet.  These depmodes are late enough in the game, and
14700       # so weak that their functioning should not be impacted.
14701       am__obj=conftest.${OBJEXT-o}
14702       am__minus_obj=
14703       ;;
14704     none) break ;;
14705     esac
14706     if depmode=$depmode \
14707        source=sub/conftest.c object=$am__obj \
14708        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14709        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14710          >/dev/null 2>conftest.err &&
14711        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14712        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14713        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14714        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14715       # icc doesn't choke on unknown options, it will just issue warnings
14716       # or remarks (even with -Werror).  So we grep stderr for any message
14717       # that says an option was ignored or not supported.
14718       # When given -MP, icc 7.0 and 7.1 complain thusly:
14719       #   icc: Command line warning: ignoring option '-M'; no argument required
14720       # The diagnosis changed in icc 8.0:
14721       #   icc: Command line remark: option '-MP' not supported
14722       if (grep 'ignoring option' conftest.err ||
14723           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14724         am_cv_CXX_dependencies_compiler_type=$depmode
14725         break
14726       fi
14727     fi
14728   done
14729
14730   cd ..
14731   rm -rf conftest.dir
14732 else
14733   am_cv_CXX_dependencies_compiler_type=none
14734 fi
14735
14736 fi
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14738 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14739 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14740
14741  if
14742   test "x$enable_dependency_tracking" != xno \
14743   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14744   am__fastdepCXX_TRUE=
14745   am__fastdepCXX_FALSE='#'
14746 else
14747   am__fastdepCXX_TRUE='#'
14748   am__fastdepCXX_FALSE=
14749 fi
14750
14751
14752
14753
14754 func_stripname_cnf ()
14755 {
14756   case $2 in
14757   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14758   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14759   esac
14760 } # func_stripname_cnf
14761
14762       if test -n "$CXX" && ( test no != "$CXX" &&
14763     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14764     (test g++ != "$CXX"))); then
14765   ac_ext=cpp
14766 ac_cpp='$CXXCPP $CPPFLAGS'
14767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14771 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14772 if test -z "$CXXCPP"; then
14773   if ${ac_cv_prog_CXXCPP+:} false; then :
14774   $as_echo_n "(cached) " >&6
14775 else
14776       # Double quotes because CXXCPP needs to be expanded
14777     for CXXCPP in "$CXX -E" "/lib/cpp"
14778     do
14779       ac_preproc_ok=false
14780 for ac_cxx_preproc_warn_flag in '' yes
14781 do
14782   # Use a header file that comes with gcc, so configuring glibc
14783   # with a fresh cross-compiler works.
14784   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14785   # <limits.h> exists even on freestanding compilers.
14786   # On the NeXT, cc -E runs the code through the compiler's parser,
14787   # not just through cpp. "Syntax error" is here to catch this case.
14788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h.  */
14790 #ifdef __STDC__
14791 # include <limits.h>
14792 #else
14793 # include <assert.h>
14794 #endif
14795                      Syntax error
14796 _ACEOF
14797 if ac_fn_cxx_try_cpp "$LINENO"; then :
14798
14799 else
14800   # Broken: fails on valid input.
14801 continue
14802 fi
14803 rm -f conftest.err conftest.i conftest.$ac_ext
14804
14805   # OK, works on sane cases.  Now check whether nonexistent headers
14806   # can be detected and how.
14807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h.  */
14809 #include <ac_nonexistent.h>
14810 _ACEOF
14811 if ac_fn_cxx_try_cpp "$LINENO"; then :
14812   # Broken: success on invalid input.
14813 continue
14814 else
14815   # Passes both tests.
14816 ac_preproc_ok=:
14817 break
14818 fi
14819 rm -f conftest.err conftest.i conftest.$ac_ext
14820
14821 done
14822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14823 rm -f conftest.i conftest.err conftest.$ac_ext
14824 if $ac_preproc_ok; then :
14825   break
14826 fi
14827
14828     done
14829     ac_cv_prog_CXXCPP=$CXXCPP
14830
14831 fi
14832   CXXCPP=$ac_cv_prog_CXXCPP
14833 else
14834   ac_cv_prog_CXXCPP=$CXXCPP
14835 fi
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14837 $as_echo "$CXXCPP" >&6; }
14838 ac_preproc_ok=false
14839 for ac_cxx_preproc_warn_flag in '' yes
14840 do
14841   # Use a header file that comes with gcc, so configuring glibc
14842   # with a fresh cross-compiler works.
14843   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14844   # <limits.h> exists even on freestanding compilers.
14845   # On the NeXT, cc -E runs the code through the compiler's parser,
14846   # not just through cpp. "Syntax error" is here to catch this case.
14847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h.  */
14849 #ifdef __STDC__
14850 # include <limits.h>
14851 #else
14852 # include <assert.h>
14853 #endif
14854                      Syntax error
14855 _ACEOF
14856 if ac_fn_cxx_try_cpp "$LINENO"; then :
14857
14858 else
14859   # Broken: fails on valid input.
14860 continue
14861 fi
14862 rm -f conftest.err conftest.i conftest.$ac_ext
14863
14864   # OK, works on sane cases.  Now check whether nonexistent headers
14865   # can be detected and how.
14866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h.  */
14868 #include <ac_nonexistent.h>
14869 _ACEOF
14870 if ac_fn_cxx_try_cpp "$LINENO"; then :
14871   # Broken: success on invalid input.
14872 continue
14873 else
14874   # Passes both tests.
14875 ac_preproc_ok=:
14876 break
14877 fi
14878 rm -f conftest.err conftest.i conftest.$ac_ext
14879
14880 done
14881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14882 rm -f conftest.i conftest.err conftest.$ac_ext
14883 if $ac_preproc_ok; then :
14884
14885 else
14886   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14888 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14889 See \`config.log' for more details" "$LINENO" 5; }
14890 fi
14891
14892 ac_ext=c
14893 ac_cpp='$CPP $CPPFLAGS'
14894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14897
14898 else
14899   _lt_caught_CXX_error=yes
14900 fi
14901
14902 ac_ext=cpp
14903 ac_cpp='$CXXCPP $CPPFLAGS'
14904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14907
14908 archive_cmds_need_lc_CXX=no
14909 allow_undefined_flag_CXX=
14910 always_export_symbols_CXX=no
14911 archive_expsym_cmds_CXX=
14912 compiler_needs_object_CXX=no
14913 export_dynamic_flag_spec_CXX=
14914 hardcode_direct_CXX=no
14915 hardcode_direct_absolute_CXX=no
14916 hardcode_libdir_flag_spec_CXX=
14917 hardcode_libdir_separator_CXX=
14918 hardcode_minus_L_CXX=no
14919 hardcode_shlibpath_var_CXX=unsupported
14920 hardcode_automatic_CXX=no
14921 inherit_rpath_CXX=no
14922 module_cmds_CXX=
14923 module_expsym_cmds_CXX=
14924 link_all_deplibs_CXX=unknown
14925 old_archive_cmds_CXX=$old_archive_cmds
14926 reload_flag_CXX=$reload_flag
14927 reload_cmds_CXX=$reload_cmds
14928 no_undefined_flag_CXX=
14929 whole_archive_flag_spec_CXX=
14930 enable_shared_with_static_runtimes_CXX=no
14931
14932 # Source file extension for C++ test sources.
14933 ac_ext=cpp
14934
14935 # Object file extension for compiled C++ test sources.
14936 objext=o
14937 objext_CXX=$objext
14938
14939 # No sense in running all these tests if we already determined that
14940 # the CXX compiler isn't working.  Some variables (like enable_shared)
14941 # are currently assumed to apply to all compilers on this platform,
14942 # and will be corrupted by setting them based on a non-working compiler.
14943 if test yes != "$_lt_caught_CXX_error"; then
14944   # Code to be used in simple compile tests
14945   lt_simple_compile_test_code="int some_variable = 0;"
14946
14947   # Code to be used in simple link tests
14948   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14949
14950   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14951
14952
14953
14954
14955
14956
14957 # If no C compiler was specified, use CC.
14958 LTCC=${LTCC-"$CC"}
14959
14960 # If no C compiler flags were specified, use CFLAGS.
14961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14962
14963 # Allow CC to be a program name with arguments.
14964 compiler=$CC
14965
14966
14967   # save warnings/boilerplate of simple test code
14968   ac_outfile=conftest.$ac_objext
14969 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14970 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14971 _lt_compiler_boilerplate=`cat conftest.err`
14972 $RM conftest*
14973
14974   ac_outfile=conftest.$ac_objext
14975 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14976 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14977 _lt_linker_boilerplate=`cat conftest.err`
14978 $RM -r conftest*
14979
14980
14981   # Allow CC to be a program name with arguments.
14982   lt_save_CC=$CC
14983   lt_save_CFLAGS=$CFLAGS
14984   lt_save_LD=$LD
14985   lt_save_GCC=$GCC
14986   GCC=$GXX
14987   lt_save_with_gnu_ld=$with_gnu_ld
14988   lt_save_path_LD=$lt_cv_path_LD
14989   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14990     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14991   else
14992     $as_unset lt_cv_prog_gnu_ld
14993   fi
14994   if test -n "${lt_cv_path_LDCXX+set}"; then
14995     lt_cv_path_LD=$lt_cv_path_LDCXX
14996   else
14997     $as_unset lt_cv_path_LD
14998   fi
14999   test -z "${LDCXX+set}" || LD=$LDCXX
15000   CC=${CXX-"c++"}
15001   CFLAGS=$CXXFLAGS
15002   compiler=$CC
15003   compiler_CXX=$CC
15004   func_cc_basename $compiler
15005 cc_basename=$func_cc_basename_result
15006
15007
15008   if test -n "$compiler"; then
15009     # We don't want -fno-exception when compiling C++ code, so set the
15010     # no_builtin_flag separately
15011     if test yes = "$GXX"; then
15012       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15013     else
15014       lt_prog_compiler_no_builtin_flag_CXX=
15015     fi
15016
15017     if test yes = "$GXX"; then
15018       # Set up default GNU C++ configuration
15019
15020
15021
15022 # Check whether --with-gnu-ld was given.
15023 if test "${with_gnu_ld+set}" = set; then :
15024   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15025 else
15026   with_gnu_ld=no
15027 fi
15028
15029 ac_prog=ld
15030 if test yes = "$GCC"; then
15031   # Check if gcc -print-prog-name=ld gives a path.
15032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15033 $as_echo_n "checking for ld used by $CC... " >&6; }
15034   case $host in
15035   *-*-mingw*)
15036     # gcc leaves a trailing carriage return, which upsets mingw
15037     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15038   *)
15039     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15040   esac
15041   case $ac_prog in
15042     # Accept absolute paths.
15043     [\\/]* | ?:[\\/]*)
15044       re_direlt='/[^/][^/]*/\.\./'
15045       # Canonicalize the pathname of ld
15046       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15047       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15048         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15049       done
15050       test -z "$LD" && LD=$ac_prog
15051       ;;
15052   "")
15053     # If it fails, then pretend we aren't using GCC.
15054     ac_prog=ld
15055     ;;
15056   *)
15057     # If it is relative, then search for the first ld in PATH.
15058     with_gnu_ld=unknown
15059     ;;
15060   esac
15061 elif test yes = "$with_gnu_ld"; then
15062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15063 $as_echo_n "checking for GNU ld... " >&6; }
15064 else
15065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15066 $as_echo_n "checking for non-GNU ld... " >&6; }
15067 fi
15068 if ${lt_cv_path_LD+:} false; then :
15069   $as_echo_n "(cached) " >&6
15070 else
15071   if test -z "$LD"; then
15072   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15073   for ac_dir in $PATH; do
15074     IFS=$lt_save_ifs
15075     test -z "$ac_dir" && ac_dir=.
15076     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15077       lt_cv_path_LD=$ac_dir/$ac_prog
15078       # Check to see if the program is GNU ld.  I'd rather use --version,
15079       # but apparently some variants of GNU ld only accept -v.
15080       # Break only if it was the GNU/non-GNU ld that we prefer.
15081       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15082       *GNU* | *'with BFD'*)
15083         test no != "$with_gnu_ld" && break
15084         ;;
15085       *)
15086         test yes != "$with_gnu_ld" && break
15087         ;;
15088       esac
15089     fi
15090   done
15091   IFS=$lt_save_ifs
15092 else
15093   lt_cv_path_LD=$LD # Let the user override the test with a path.
15094 fi
15095 fi
15096
15097 LD=$lt_cv_path_LD
15098 if test -n "$LD"; then
15099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15100 $as_echo "$LD" >&6; }
15101 else
15102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103 $as_echo "no" >&6; }
15104 fi
15105 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15108 if ${lt_cv_prog_gnu_ld+:} false; then :
15109   $as_echo_n "(cached) " >&6
15110 else
15111   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15112 case `$LD -v 2>&1 </dev/null` in
15113 *GNU* | *'with BFD'*)
15114   lt_cv_prog_gnu_ld=yes
15115   ;;
15116 *)
15117   lt_cv_prog_gnu_ld=no
15118   ;;
15119 esac
15120 fi
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15123 with_gnu_ld=$lt_cv_prog_gnu_ld
15124
15125
15126
15127
15128
15129
15130
15131       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15132       # archiving commands below assume that GNU ld is being used.
15133       if test yes = "$with_gnu_ld"; then
15134         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15135         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'
15136
15137         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15138         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15139
15140         # If archive_cmds runs LD, not CC, wlarc should be empty
15141         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15142         #     investigate it a little bit more. (MM)
15143         wlarc='$wl'
15144
15145         # ancient GNU ld didn't support --whole-archive et. al.
15146         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15147           $GREP 'no-whole-archive' > /dev/null; then
15148           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15149         else
15150           whole_archive_flag_spec_CXX=
15151         fi
15152       else
15153         with_gnu_ld=no
15154         wlarc=
15155
15156         # A generic and very simple default shared library creation
15157         # command for GNU C++ for the case where it uses the native
15158         # linker, instead of GNU ld.  If possible, this setting should
15159         # overridden to take advantage of the native linker features on
15160         # the platform it is being used on.
15161         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15162       fi
15163
15164       # Commands to make compiler produce verbose output that lists
15165       # what "hidden" libraries, object files and flags are used when
15166       # linking a shared library.
15167       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15168
15169     else
15170       GXX=no
15171       with_gnu_ld=no
15172       wlarc=
15173     fi
15174
15175     # PORTME: fill in a description of your system's C++ link characteristics
15176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15178     ld_shlibs_CXX=yes
15179     case $host_os in
15180       aix3*)
15181         # FIXME: insert proper C++ library support
15182         ld_shlibs_CXX=no
15183         ;;
15184       aix[4-9]*)
15185         if test ia64 = "$host_cpu"; then
15186           # On IA64, the linker does run time linking by default, so we don't
15187           # have to do anything special.
15188           aix_use_runtimelinking=no
15189           exp_sym_flag='-Bexport'
15190           no_entry_flag=
15191         else
15192           aix_use_runtimelinking=no
15193
15194           # Test if we are trying to use run time linking or normal
15195           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15196           # have runtime linking enabled, and use it for executables.
15197           # For shared libraries, we enable/disable runtime linking
15198           # depending on the kind of the shared library created -
15199           # when "with_aix_soname,aix_use_runtimelinking" is:
15200           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15201           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15202           #            lib.a           static archive
15203           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15204           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15205           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15206           #            lib.a(lib.so.V) shared, rtl:no
15207           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15208           #            lib.a           static archive
15209           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15210             for ld_flag in $LDFLAGS; do
15211               case $ld_flag in
15212               *-brtl*)
15213                 aix_use_runtimelinking=yes
15214                 break
15215                 ;;
15216               esac
15217             done
15218             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15219               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15220               # so we don't have lib.a shared libs to link our executables.
15221               # We have to force runtime linking in this case.
15222               aix_use_runtimelinking=yes
15223               LDFLAGS="$LDFLAGS -Wl,-brtl"
15224             fi
15225             ;;
15226           esac
15227
15228           exp_sym_flag='-bexport'
15229           no_entry_flag='-bnoentry'
15230         fi
15231
15232         # When large executables or shared objects are built, AIX ld can
15233         # have problems creating the table of contents.  If linking a library
15234         # or program results in "error TOC overflow" add -mminimal-toc to
15235         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15236         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15237
15238         archive_cmds_CXX=''
15239         hardcode_direct_CXX=yes
15240         hardcode_direct_absolute_CXX=yes
15241         hardcode_libdir_separator_CXX=':'
15242         link_all_deplibs_CXX=yes
15243         file_list_spec_CXX='$wl-f,'
15244         case $with_aix_soname,$aix_use_runtimelinking in
15245         aix,*) ;;       # no import file
15246         svr4,* | *,yes) # use import file
15247           # The Import File defines what to hardcode.
15248           hardcode_direct_CXX=no
15249           hardcode_direct_absolute_CXX=no
15250           ;;
15251         esac
15252
15253         if test yes = "$GXX"; then
15254           case $host_os in aix4.[012]|aix4.[012].*)
15255           # We only want to do this on AIX 4.2 and lower, the check
15256           # below for broken collect2 doesn't work under 4.3+
15257           collect2name=`$CC -print-prog-name=collect2`
15258           if test -f "$collect2name" &&
15259              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15260           then
15261             # We have reworked collect2
15262             :
15263           else
15264             # We have old collect2
15265             hardcode_direct_CXX=unsupported
15266             # It fails to find uninstalled libraries when the uninstalled
15267             # path is not listed in the libpath.  Setting hardcode_minus_L
15268             # to unsupported forces relinking
15269             hardcode_minus_L_CXX=yes
15270             hardcode_libdir_flag_spec_CXX='-L$libdir'
15271             hardcode_libdir_separator_CXX=
15272           fi
15273           esac
15274           shared_flag='-shared'
15275           if test yes = "$aix_use_runtimelinking"; then
15276             shared_flag=$shared_flag' $wl-G'
15277           fi
15278           # Need to ensure runtime linking is disabled for the traditional
15279           # shared library, or the linker may eventually find shared libraries
15280           # /with/ Import File - we do not want to mix them.
15281           shared_flag_aix='-shared'
15282           shared_flag_svr4='-shared $wl-G'
15283         else
15284           # not using gcc
15285           if test ia64 = "$host_cpu"; then
15286           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15287           # chokes on -Wl,-G. The following line is correct:
15288           shared_flag='-G'
15289           else
15290             if test yes = "$aix_use_runtimelinking"; then
15291               shared_flag='$wl-G'
15292             else
15293               shared_flag='$wl-bM:SRE'
15294             fi
15295             shared_flag_aix='$wl-bM:SRE'
15296             shared_flag_svr4='$wl-G'
15297           fi
15298         fi
15299
15300         export_dynamic_flag_spec_CXX='$wl-bexpall'
15301         # It seems that -bexpall does not export symbols beginning with
15302         # underscore (_), so it is better to generate a list of symbols to
15303         # export.
15304         always_export_symbols_CXX=yes
15305         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15306           # Warning - without using the other runtime loading flags (-brtl),
15307           # -berok will link without error, but may produce a broken library.
15308           # The "-G" linker flag allows undefined symbols.
15309           no_undefined_flag_CXX='-bernotok'
15310           # Determine the default libpath from the value encoded in an empty
15311           # executable.
15312           if test set = "${lt_cv_aix_libpath+set}"; then
15313   aix_libpath=$lt_cv_aix_libpath
15314 else
15315   if ${lt_cv_aix_libpath__CXX+:} false; then :
15316   $as_echo_n "(cached) " >&6
15317 else
15318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h.  */
15320
15321 int
15322 main ()
15323 {
15324
15325   ;
15326   return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_cxx_try_link "$LINENO"; then :
15330
15331   lt_aix_libpath_sed='
15332       /Import File Strings/,/^$/ {
15333           /^0/ {
15334               s/^0  *\([^ ]*\) *$/\1/
15335               p
15336           }
15337       }'
15338   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15339   # Check for a 64-bit object if we didn't find anything.
15340   if test -z "$lt_cv_aix_libpath__CXX"; then
15341     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15342   fi
15343 fi
15344 rm -f core conftest.err conftest.$ac_objext \
15345     conftest$ac_exeext conftest.$ac_ext
15346   if test -z "$lt_cv_aix_libpath__CXX"; then
15347     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15348   fi
15349
15350 fi
15351
15352   aix_libpath=$lt_cv_aix_libpath__CXX
15353 fi
15354
15355           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15356
15357           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
15358         else
15359           if test ia64 = "$host_cpu"; then
15360             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15361             allow_undefined_flag_CXX="-z nodefs"
15362             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"
15363           else
15364             # Determine the default libpath from the value encoded in an
15365             # empty executable.
15366             if test set = "${lt_cv_aix_libpath+set}"; then
15367   aix_libpath=$lt_cv_aix_libpath
15368 else
15369   if ${lt_cv_aix_libpath__CXX+:} false; then :
15370   $as_echo_n "(cached) " >&6
15371 else
15372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h.  */
15374
15375 int
15376 main ()
15377 {
15378
15379   ;
15380   return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_cxx_try_link "$LINENO"; then :
15384
15385   lt_aix_libpath_sed='
15386       /Import File Strings/,/^$/ {
15387           /^0/ {
15388               s/^0  *\([^ ]*\) *$/\1/
15389               p
15390           }
15391       }'
15392   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15393   # Check for a 64-bit object if we didn't find anything.
15394   if test -z "$lt_cv_aix_libpath__CXX"; then
15395     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15396   fi
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext \
15399     conftest$ac_exeext conftest.$ac_ext
15400   if test -z "$lt_cv_aix_libpath__CXX"; then
15401     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15402   fi
15403
15404 fi
15405
15406   aix_libpath=$lt_cv_aix_libpath__CXX
15407 fi
15408
15409             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15410             # Warning - without using the other run time loading flags,
15411             # -berok will link without error, but may produce a broken library.
15412             no_undefined_flag_CXX=' $wl-bernotok'
15413             allow_undefined_flag_CXX=' $wl-berok'
15414             if test yes = "$with_gnu_ld"; then
15415               # We only use this code for GNU lds that support --whole-archive.
15416               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15417             else
15418               # Exported symbols can be pulled into shared objects from archives
15419               whole_archive_flag_spec_CXX='$convenience'
15420             fi
15421             archive_cmds_need_lc_CXX=yes
15422             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15423             # -brtl affects multiple linker settings, -berok does not and is overridden later
15424             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15425             if test svr4 != "$with_aix_soname"; then
15426               # This is similar to how AIX traditionally builds its shared
15427               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15428               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'
15429             fi
15430             if test aix != "$with_aix_soname"; then
15431               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'
15432             else
15433               # used by -dlpreopen to get the symbols
15434               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15435             fi
15436             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15437           fi
15438         fi
15439         ;;
15440
15441       beos*)
15442         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15443           allow_undefined_flag_CXX=unsupported
15444           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15445           # support --undefined.  This deserves some investigation.  FIXME
15446           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15447         else
15448           ld_shlibs_CXX=no
15449         fi
15450         ;;
15451
15452       chorus*)
15453         case $cc_basename in
15454           *)
15455           # FIXME: insert proper C++ library support
15456           ld_shlibs_CXX=no
15457           ;;
15458         esac
15459         ;;
15460
15461       cygwin* | mingw* | pw32* | cegcc*)
15462         case $GXX,$cc_basename in
15463         ,cl* | no,cl* | ,icl* | no,icl*)
15464           # Native MSVC or ICC
15465           # hardcode_libdir_flag_spec is actually meaningless, as there is
15466           # no search path for DLLs.
15467           hardcode_libdir_flag_spec_CXX=' '
15468           allow_undefined_flag_CXX=unsupported
15469           always_export_symbols_CXX=yes
15470           file_list_spec_CXX='@'
15471           # Tell ltmain to make .lib files, not .a files.
15472           libext=lib
15473           # Tell ltmain to make .dll files, not .so files.
15474           shrext_cmds=.dll
15475           # FIXME: Setting linknames here is a bad hack.
15476           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15477           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15478               cp "$export_symbols" "$output_objdir/$soname.def";
15479               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15480             else
15481               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15482             fi~
15483             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15484             linknames='
15485           # The linker will not automatically build a static lib if we build a DLL.
15486           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15487           enable_shared_with_static_runtimes_CXX=yes
15488           # Don't use ranlib
15489           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15490           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15491             lt_tool_outputfile="@TOOL_OUTPUT@"~
15492             case $lt_outputfile in
15493               *.exe|*.EXE) ;;
15494               *)
15495                 lt_outputfile=$lt_outputfile.exe
15496                 lt_tool_outputfile=$lt_tool_outputfile.exe
15497                 ;;
15498             esac~
15499             func_to_tool_file "$lt_outputfile"~
15500             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15501               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15502               $RM "$lt_outputfile.manifest";
15503             fi'
15504           ;;
15505         *)
15506           # g++
15507           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15508           # as there is no search path for DLLs.
15509           hardcode_libdir_flag_spec_CXX='-L$libdir'
15510           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15511           allow_undefined_flag_CXX=unsupported
15512           always_export_symbols_CXX=no
15513           enable_shared_with_static_runtimes_CXX=yes
15514
15515           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15516             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'
15517             # If the export-symbols file already is a .def file, use it as
15518             # is; otherwise, prepend EXPORTS...
15519             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15520               cp $export_symbols $output_objdir/$soname.def;
15521             else
15522               echo EXPORTS > $output_objdir/$soname.def;
15523               cat $export_symbols >> $output_objdir/$soname.def;
15524             fi~
15525             $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'
15526           else
15527             ld_shlibs_CXX=no
15528           fi
15529           ;;
15530         esac
15531         ;;
15532       darwin* | rhapsody*)
15533
15534
15535   archive_cmds_need_lc_CXX=no
15536   hardcode_direct_CXX=no
15537   hardcode_automatic_CXX=yes
15538   hardcode_shlibpath_var_CXX=unsupported
15539   if test yes = "$lt_cv_ld_force_load"; then
15540     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\"`'
15541
15542   else
15543     whole_archive_flag_spec_CXX=''
15544   fi
15545   link_all_deplibs_CXX=yes
15546   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15547   case $cc_basename in
15548      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15549      *) _lt_dar_can_shared=$GCC ;;
15550   esac
15551   if test yes = "$_lt_dar_can_shared"; then
15552     output_verbose_link_cmd=func_echo_all
15553     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"
15554     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15555     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"
15556     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"
15557        if test yes != "$lt_cv_apple_cc_single_mod"; then
15558       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"
15559       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"
15560     fi
15561
15562   else
15563   ld_shlibs_CXX=no
15564   fi
15565
15566         ;;
15567
15568       os2*)
15569         hardcode_libdir_flag_spec_CXX='-L$libdir'
15570         hardcode_minus_L_CXX=yes
15571         allow_undefined_flag_CXX=unsupported
15572         shrext_cmds=.dll
15573         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15574           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15575           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15576           $ECHO EXPORTS >> $output_objdir/$libname.def~
15577           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15578           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15579           emximp -o $lib $output_objdir/$libname.def'
15580         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15581           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15582           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15583           $ECHO EXPORTS >> $output_objdir/$libname.def~
15584           prefix_cmds="$SED"~
15585           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15586             prefix_cmds="$prefix_cmds -e 1d";
15587           fi~
15588           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15589           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15590           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15591           emximp -o $lib $output_objdir/$libname.def'
15592         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15593         enable_shared_with_static_runtimes_CXX=yes
15594         file_list_spec_CXX='@'
15595         ;;
15596
15597       dgux*)
15598         case $cc_basename in
15599           ec++*)
15600             # FIXME: insert proper C++ library support
15601             ld_shlibs_CXX=no
15602             ;;
15603           ghcx*)
15604             # Green Hills C++ Compiler
15605             # FIXME: insert proper C++ library support
15606             ld_shlibs_CXX=no
15607             ;;
15608           *)
15609             # FIXME: insert proper C++ library support
15610             ld_shlibs_CXX=no
15611             ;;
15612         esac
15613         ;;
15614
15615       freebsd2.*)
15616         # C++ shared libraries reported to be fairly broken before
15617         # switch to ELF
15618         ld_shlibs_CXX=no
15619         ;;
15620
15621       freebsd-elf*)
15622         archive_cmds_need_lc_CXX=no
15623         ;;
15624
15625       freebsd* | dragonfly*)
15626         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15627         # conventions
15628         ld_shlibs_CXX=yes
15629         ;;
15630
15631       haiku*)
15632         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15633         link_all_deplibs_CXX=yes
15634         ;;
15635
15636       hpux9*)
15637         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15638         hardcode_libdir_separator_CXX=:
15639         export_dynamic_flag_spec_CXX='$wl-E'
15640         hardcode_direct_CXX=yes
15641         hardcode_minus_L_CXX=yes # Not in the search PATH,
15642                                              # but as the default
15643                                              # location of the library.
15644
15645         case $cc_basename in
15646           CC*)
15647             # FIXME: insert proper C++ library support
15648             ld_shlibs_CXX=no
15649             ;;
15650           aCC*)
15651             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'
15652             # Commands to make compiler produce verbose output that lists
15653             # what "hidden" libraries, object files and flags are used when
15654             # linking a shared library.
15655             #
15656             # There doesn't appear to be a way to prevent this compiler from
15657             # explicitly linking system object files so we need to strip them
15658             # from the output so that they don't get included in the library
15659             # dependencies.
15660             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"'
15661             ;;
15662           *)
15663             if test yes = "$GXX"; then
15664               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'
15665             else
15666               # FIXME: insert proper C++ library support
15667               ld_shlibs_CXX=no
15668             fi
15669             ;;
15670         esac
15671         ;;
15672
15673       hpux10*|hpux11*)
15674         if test no = "$with_gnu_ld"; then
15675           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15676           hardcode_libdir_separator_CXX=:
15677
15678           case $host_cpu in
15679             hppa*64*|ia64*)
15680               ;;
15681             *)
15682               export_dynamic_flag_spec_CXX='$wl-E'
15683               ;;
15684           esac
15685         fi
15686         case $host_cpu in
15687           hppa*64*|ia64*)
15688             hardcode_direct_CXX=no
15689             hardcode_shlibpath_var_CXX=no
15690             ;;
15691           *)
15692             hardcode_direct_CXX=yes
15693             hardcode_direct_absolute_CXX=yes
15694             hardcode_minus_L_CXX=yes # Not in the search PATH,
15695                                                  # but as the default
15696                                                  # location of the library.
15697             ;;
15698         esac
15699
15700         case $cc_basename in
15701           CC*)
15702             # FIXME: insert proper C++ library support
15703             ld_shlibs_CXX=no
15704             ;;
15705           aCC*)
15706             case $host_cpu in
15707               hppa*64*)
15708                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15709                 ;;
15710               ia64*)
15711                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15712                 ;;
15713               *)
15714                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15715                 ;;
15716             esac
15717             # Commands to make compiler produce verbose output that lists
15718             # what "hidden" libraries, object files and flags are used when
15719             # linking a shared library.
15720             #
15721             # There doesn't appear to be a way to prevent this compiler from
15722             # explicitly linking system object files so we need to strip them
15723             # from the output so that they don't get included in the library
15724             # dependencies.
15725             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"'
15726             ;;
15727           *)
15728             if test yes = "$GXX"; then
15729               if test no = "$with_gnu_ld"; then
15730                 case $host_cpu in
15731                   hppa*64*)
15732                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15733                     ;;
15734                   ia64*)
15735                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15736                     ;;
15737                   *)
15738                     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'
15739                     ;;
15740                 esac
15741               fi
15742             else
15743               # FIXME: insert proper C++ library support
15744               ld_shlibs_CXX=no
15745             fi
15746             ;;
15747         esac
15748         ;;
15749
15750       interix[3-9]*)
15751         hardcode_direct_CXX=no
15752         hardcode_shlibpath_var_CXX=no
15753         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15754         export_dynamic_flag_spec_CXX='$wl-E'
15755         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15756         # Instead, shared libraries are loaded at an image base (0x10000000 by
15757         # default) and relocated if they conflict, which is a slow very memory
15758         # consuming and fragmenting process.  To avoid this, we pick a random,
15759         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15760         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15761         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'
15762         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'
15763         ;;
15764       irix5* | irix6*)
15765         case $cc_basename in
15766           CC*)
15767             # SGI C++
15768             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'
15769
15770             # Archives containing C++ object files must be created using
15771             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15772             # necessary to make sure instantiated templates are included
15773             # in the archive.
15774             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15775             ;;
15776           *)
15777             if test yes = "$GXX"; then
15778               if test no = "$with_gnu_ld"; then
15779                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15780               else
15781                 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'
15782               fi
15783             fi
15784             link_all_deplibs_CXX=yes
15785             ;;
15786         esac
15787         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15788         hardcode_libdir_separator_CXX=:
15789         inherit_rpath_CXX=yes
15790         ;;
15791
15792       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15793         case $cc_basename in
15794           KCC*)
15795             # Kuck and Associates, Inc. (KAI) C++ Compiler
15796
15797             # KCC will only create a shared library if the output file
15798             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15799             # to its proper name (with version) after linking.
15800             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'
15801             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'
15802             # Commands to make compiler produce verbose output that lists
15803             # what "hidden" libraries, object files and flags are used when
15804             # linking a shared library.
15805             #
15806             # There doesn't appear to be a way to prevent this compiler from
15807             # explicitly linking system object files so we need to strip them
15808             # from the output so that they don't get included in the library
15809             # dependencies.
15810             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"'
15811
15812             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15813             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15814
15815             # Archives containing C++ object files must be created using
15816             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15817             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15818             ;;
15819           icpc* | ecpc* )
15820             # Intel C++
15821             with_gnu_ld=yes
15822             # version 8.0 and above of icpc choke on multiply defined symbols
15823             # if we add $predep_objects and $postdep_objects, however 7.1 and
15824             # earlier do not add the objects themselves.
15825             case `$CC -V 2>&1` in
15826               *"Version 7."*)
15827                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15828                 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'
15829                 ;;
15830               *)  # Version 8.0 or newer
15831                 tmp_idyn=
15832                 case $host_cpu in
15833                   ia64*) tmp_idyn=' -i_dynamic';;
15834                 esac
15835                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15836                 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'
15837                 ;;
15838             esac
15839             archive_cmds_need_lc_CXX=no
15840             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15841             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15842             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15843             ;;
15844           pgCC* | pgcpp*)
15845             # Portland Group C++ compiler
15846             case `$CC -V` in
15847             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15848               prelink_cmds_CXX='tpldir=Template.dir~
15849                rm -rf $tpldir~
15850                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15851                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15852               old_archive_cmds_CXX='tpldir=Template.dir~
15853                 rm -rf $tpldir~
15854                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15855                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15856                 $RANLIB $oldlib'
15857               archive_cmds_CXX='tpldir=Template.dir~
15858                 rm -rf $tpldir~
15859                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15860                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15861               archive_expsym_cmds_CXX='tpldir=Template.dir~
15862                 rm -rf $tpldir~
15863                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15864                 $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'
15865               ;;
15866             *) # Version 6 and above use weak symbols
15867               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15868               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'
15869               ;;
15870             esac
15871
15872             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15873             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15874             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'
15875             ;;
15876           cxx*)
15877             # Compaq C++
15878             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15879             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'
15880
15881             runpath_var=LD_RUN_PATH
15882             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15883             hardcode_libdir_separator_CXX=:
15884
15885             # Commands to make compiler produce verbose output that lists
15886             # what "hidden" libraries, object files and flags are used when
15887             # linking a shared library.
15888             #
15889             # There doesn't appear to be a way to prevent this compiler from
15890             # explicitly linking system object files so we need to strip them
15891             # from the output so that they don't get included in the library
15892             # dependencies.
15893             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'
15894             ;;
15895           xl* | mpixl* | bgxl*)
15896             # IBM XL 8.0 on PPC, with GNU ld
15897             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15898             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15899             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15900             if test yes = "$supports_anon_versioning"; then
15901               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15902                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15903                 echo "local: *; };" >> $output_objdir/$libname.ver~
15904                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15905             fi
15906             ;;
15907           *)
15908             case `$CC -V 2>&1 | sed 5q` in
15909             *Sun\ C*)
15910               # Sun C++ 5.9
15911               no_undefined_flag_CXX=' -zdefs'
15912               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15913               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'
15914               hardcode_libdir_flag_spec_CXX='-R$libdir'
15915               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'
15916               compiler_needs_object_CXX=yes
15917
15918               # Not sure whether something based on
15919               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15920               # would be better.
15921               output_verbose_link_cmd='func_echo_all'
15922
15923               # Archives containing C++ object files must be created using
15924               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15925               # necessary to make sure instantiated templates are included
15926               # in the archive.
15927               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15928               ;;
15929             esac
15930             ;;
15931         esac
15932         ;;
15933
15934       lynxos*)
15935         # FIXME: insert proper C++ library support
15936         ld_shlibs_CXX=no
15937         ;;
15938
15939       m88k*)
15940         # FIXME: insert proper C++ library support
15941         ld_shlibs_CXX=no
15942         ;;
15943
15944       mvs*)
15945         case $cc_basename in
15946           cxx*)
15947             # FIXME: insert proper C++ library support
15948             ld_shlibs_CXX=no
15949             ;;
15950           *)
15951             # FIXME: insert proper C++ library support
15952             ld_shlibs_CXX=no
15953             ;;
15954         esac
15955         ;;
15956
15957       netbsd*)
15958         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15959           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15960           wlarc=
15961           hardcode_libdir_flag_spec_CXX='-R$libdir'
15962           hardcode_direct_CXX=yes
15963           hardcode_shlibpath_var_CXX=no
15964         fi
15965         # Workaround some broken pre-1.5 toolchains
15966         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15967         ;;
15968
15969       *nto* | *qnx*)
15970         ld_shlibs_CXX=yes
15971         ;;
15972
15973       openbsd* | bitrig*)
15974         if test -f /usr/libexec/ld.so; then
15975           hardcode_direct_CXX=yes
15976           hardcode_shlibpath_var_CXX=no
15977           hardcode_direct_absolute_CXX=yes
15978           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15979           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15980           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15981             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15982             export_dynamic_flag_spec_CXX='$wl-E'
15983             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15984           fi
15985           output_verbose_link_cmd=func_echo_all
15986         else
15987           ld_shlibs_CXX=no
15988         fi
15989         ;;
15990
15991       osf3* | osf4* | osf5*)
15992         case $cc_basename in
15993           KCC*)
15994             # Kuck and Associates, Inc. (KAI) C++ Compiler
15995
15996             # KCC will only create a shared library if the output file
15997             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15998             # to its proper name (with version) after linking.
15999             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'
16000
16001             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16002             hardcode_libdir_separator_CXX=:
16003
16004             # Archives containing C++ object files must be created using
16005             # the KAI C++ compiler.
16006             case $host in
16007               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16008               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16009             esac
16010             ;;
16011           RCC*)
16012             # Rational C++ 2.4.1
16013             # FIXME: insert proper C++ library support
16014             ld_shlibs_CXX=no
16015             ;;
16016           cxx*)
16017             case $host in
16018               osf3*)
16019                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16020                 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'
16021                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16022                 ;;
16023               *)
16024                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16025                 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'
16026                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16027                   echo "-hidden">> $lib.exp~
16028                   $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~
16029                   $RM $lib.exp'
16030                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16031                 ;;
16032             esac
16033
16034             hardcode_libdir_separator_CXX=:
16035
16036             # Commands to make compiler produce verbose output that lists
16037             # what "hidden" libraries, object files and flags are used when
16038             # linking a shared library.
16039             #
16040             # There doesn't appear to be a way to prevent this compiler from
16041             # explicitly linking system object files so we need to strip them
16042             # from the output so that they don't get included in the library
16043             # dependencies.
16044             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"'
16045             ;;
16046           *)
16047             if test yes,no = "$GXX,$with_gnu_ld"; then
16048               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16049               case $host in
16050                 osf3*)
16051                   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'
16052                   ;;
16053                 *)
16054                   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'
16055                   ;;
16056               esac
16057
16058               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16059               hardcode_libdir_separator_CXX=:
16060
16061               # Commands to make compiler produce verbose output that lists
16062               # what "hidden" libraries, object files and flags are used when
16063               # linking a shared library.
16064               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16065
16066             else
16067               # FIXME: insert proper C++ library support
16068               ld_shlibs_CXX=no
16069             fi
16070             ;;
16071         esac
16072         ;;
16073
16074       psos*)
16075         # FIXME: insert proper C++ library support
16076         ld_shlibs_CXX=no
16077         ;;
16078
16079       sunos4*)
16080         case $cc_basename in
16081           CC*)
16082             # Sun C++ 4.x
16083             # FIXME: insert proper C++ library support
16084             ld_shlibs_CXX=no
16085             ;;
16086           lcc*)
16087             # Lucid
16088             # FIXME: insert proper C++ library support
16089             ld_shlibs_CXX=no
16090             ;;
16091           *)
16092             # FIXME: insert proper C++ library support
16093             ld_shlibs_CXX=no
16094             ;;
16095         esac
16096         ;;
16097
16098       solaris*)
16099         case $cc_basename in
16100           CC* | sunCC*)
16101             # Sun C++ 4.2, 5.x and Centerline C++
16102             archive_cmds_need_lc_CXX=yes
16103             no_undefined_flag_CXX=' -zdefs'
16104             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16105             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16106               $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'
16107
16108             hardcode_libdir_flag_spec_CXX='-R$libdir'
16109             hardcode_shlibpath_var_CXX=no
16110             case $host_os in
16111               solaris2.[0-5] | solaris2.[0-5].*) ;;
16112               *)
16113                 # The compiler driver will combine and reorder linker options,
16114                 # but understands '-z linker_flag'.
16115                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16116                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16117                 ;;
16118             esac
16119             link_all_deplibs_CXX=yes
16120
16121             output_verbose_link_cmd='func_echo_all'
16122
16123             # Archives containing C++ object files must be created using
16124             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16125             # necessary to make sure instantiated templates are included
16126             # in the archive.
16127             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16128             ;;
16129           gcx*)
16130             # Green Hills C++ Compiler
16131             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16132
16133             # The C++ compiler must be used to create the archive.
16134             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16135             ;;
16136           *)
16137             # GNU C++ compiler with Solaris linker
16138             if test yes,no = "$GXX,$with_gnu_ld"; then
16139               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16140               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16141                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16142                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16143                   $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'
16144
16145                 # Commands to make compiler produce verbose output that lists
16146                 # what "hidden" libraries, object files and flags are used when
16147                 # linking a shared library.
16148                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16149               else
16150                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16151                 # platform.
16152                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16153                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16154                   $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'
16155
16156                 # Commands to make compiler produce verbose output that lists
16157                 # what "hidden" libraries, object files and flags are used when
16158                 # linking a shared library.
16159                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16160               fi
16161
16162               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16163               case $host_os in
16164                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16165                 *)
16166                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16167                   ;;
16168               esac
16169             fi
16170             ;;
16171         esac
16172         ;;
16173
16174     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16175       no_undefined_flag_CXX='$wl-z,text'
16176       archive_cmds_need_lc_CXX=no
16177       hardcode_shlibpath_var_CXX=no
16178       runpath_var='LD_RUN_PATH'
16179
16180       case $cc_basename in
16181         CC*)
16182           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16183           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16184           ;;
16185         *)
16186           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16187           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16188           ;;
16189       esac
16190       ;;
16191
16192       sysv5* | sco3.2v5* | sco5v6*)
16193         # Note: We CANNOT use -z defs as we might desire, because we do not
16194         # link with -lc, and that would cause any symbols used from libc to
16195         # always be unresolved, which means just about no library would
16196         # ever link correctly.  If we're not using GNU ld we use -z text
16197         # though, which does catch some bad symbols but isn't as heavy-handed
16198         # as -z defs.
16199         no_undefined_flag_CXX='$wl-z,text'
16200         allow_undefined_flag_CXX='$wl-z,nodefs'
16201         archive_cmds_need_lc_CXX=no
16202         hardcode_shlibpath_var_CXX=no
16203         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16204         hardcode_libdir_separator_CXX=':'
16205         link_all_deplibs_CXX=yes
16206         export_dynamic_flag_spec_CXX='$wl-Bexport'
16207         runpath_var='LD_RUN_PATH'
16208
16209         case $cc_basename in
16210           CC*)
16211             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16212             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16213             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16214               '"$old_archive_cmds_CXX"
16215             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16216               '"$reload_cmds_CXX"
16217             ;;
16218           *)
16219             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16220             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16221             ;;
16222         esac
16223       ;;
16224
16225       tandem*)
16226         case $cc_basename in
16227           NCC*)
16228             # NonStop-UX NCC 3.20
16229             # FIXME: insert proper C++ library support
16230             ld_shlibs_CXX=no
16231             ;;
16232           *)
16233             # FIXME: insert proper C++ library support
16234             ld_shlibs_CXX=no
16235             ;;
16236         esac
16237         ;;
16238
16239       vxworks*)
16240         # FIXME: insert proper C++ library support
16241         ld_shlibs_CXX=no
16242         ;;
16243
16244       *)
16245         # FIXME: insert proper C++ library support
16246         ld_shlibs_CXX=no
16247         ;;
16248     esac
16249
16250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16251 $as_echo "$ld_shlibs_CXX" >&6; }
16252     test no = "$ld_shlibs_CXX" && can_build_shared=no
16253
16254     GCC_CXX=$GXX
16255     LD_CXX=$LD
16256
16257     ## CAVEAT EMPTOR:
16258     ## There is no encapsulation within the following macros, do not change
16259     ## the running order or otherwise move them around unless you know exactly
16260     ## what you are doing...
16261     # Dependencies to place before and after the object being linked:
16262 predep_objects_CXX=
16263 postdep_objects_CXX=
16264 predeps_CXX=
16265 postdeps_CXX=
16266 compiler_lib_search_path_CXX=
16267
16268 cat > conftest.$ac_ext <<_LT_EOF
16269 class Foo
16270 {
16271 public:
16272   Foo (void) { a = 0; }
16273 private:
16274   int a;
16275 };
16276 _LT_EOF
16277
16278
16279 _lt_libdeps_save_CFLAGS=$CFLAGS
16280 case "$CC $CFLAGS " in #(
16281 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16282 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16283 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16284 esac
16285
16286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16287   (eval $ac_compile) 2>&5
16288   ac_status=$?
16289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16290   test $ac_status = 0; }; then
16291   # Parse the compiler output and extract the necessary
16292   # objects, libraries and library flags.
16293
16294   # Sentinel used to keep track of whether or not we are before
16295   # the conftest object file.
16296   pre_test_object_deps_done=no
16297
16298   for p in `eval "$output_verbose_link_cmd"`; do
16299     case $prev$p in
16300
16301     -L* | -R* | -l*)
16302        # Some compilers place space between "-{L,R}" and the path.
16303        # Remove the space.
16304        if test x-L = "$p" ||
16305           test x-R = "$p"; then
16306          prev=$p
16307          continue
16308        fi
16309
16310        # Expand the sysroot to ease extracting the directories later.
16311        if test -z "$prev"; then
16312          case $p in
16313          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16314          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16315          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16316          esac
16317        fi
16318        case $p in
16319        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16320        esac
16321        if test no = "$pre_test_object_deps_done"; then
16322          case $prev in
16323          -L | -R)
16324            # Internal compiler library paths should come after those
16325            # provided the user.  The postdeps already come after the
16326            # user supplied libs so there is no need to process them.
16327            if test -z "$compiler_lib_search_path_CXX"; then
16328              compiler_lib_search_path_CXX=$prev$p
16329            else
16330              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16331            fi
16332            ;;
16333          # The "-l" case would never come before the object being
16334          # linked, so don't bother handling this case.
16335          esac
16336        else
16337          if test -z "$postdeps_CXX"; then
16338            postdeps_CXX=$prev$p
16339          else
16340            postdeps_CXX="${postdeps_CXX} $prev$p"
16341          fi
16342        fi
16343        prev=
16344        ;;
16345
16346     *.lto.$objext) ;; # Ignore GCC LTO objects
16347     *.$objext)
16348        # This assumes that the test object file only shows up
16349        # once in the compiler output.
16350        if test "$p" = "conftest.$objext"; then
16351          pre_test_object_deps_done=yes
16352          continue
16353        fi
16354
16355        if test no = "$pre_test_object_deps_done"; then
16356          if test -z "$predep_objects_CXX"; then
16357            predep_objects_CXX=$p
16358          else
16359            predep_objects_CXX="$predep_objects_CXX $p"
16360          fi
16361        else
16362          if test -z "$postdep_objects_CXX"; then
16363            postdep_objects_CXX=$p
16364          else
16365            postdep_objects_CXX="$postdep_objects_CXX $p"
16366          fi
16367        fi
16368        ;;
16369
16370     *) ;; # Ignore the rest.
16371
16372     esac
16373   done
16374
16375   # Clean up.
16376   rm -f a.out a.exe
16377 else
16378   echo "libtool.m4: error: problem compiling CXX test program"
16379 fi
16380
16381 $RM -f confest.$objext
16382 CFLAGS=$_lt_libdeps_save_CFLAGS
16383
16384 # PORTME: override above test on systems where it is broken
16385 case $host_os in
16386 interix[3-9]*)
16387   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16388   # hack all around it, let's just trust "g++" to DTRT.
16389   predep_objects_CXX=
16390   postdep_objects_CXX=
16391   postdeps_CXX=
16392   ;;
16393 esac
16394
16395
16396 case " $postdeps_CXX " in
16397 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16398 esac
16399  compiler_lib_search_dirs_CXX=
16400 if test -n "${compiler_lib_search_path_CXX}"; then
16401  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16402 fi
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434     lt_prog_compiler_wl_CXX=
16435 lt_prog_compiler_pic_CXX=
16436 lt_prog_compiler_static_CXX=
16437
16438
16439   # C++ specific cases for pic, static, wl, etc.
16440   if test yes = "$GXX"; then
16441     lt_prog_compiler_wl_CXX='-Wl,'
16442     lt_prog_compiler_static_CXX='-static'
16443
16444     case $host_os in
16445     aix*)
16446       # All AIX code is PIC.
16447       if test ia64 = "$host_cpu"; then
16448         # AIX 5 now supports IA64 processor
16449         lt_prog_compiler_static_CXX='-Bstatic'
16450       fi
16451       lt_prog_compiler_pic_CXX='-fPIC'
16452       ;;
16453
16454     amigaos*)
16455       case $host_cpu in
16456       powerpc)
16457             # see comment about AmigaOS4 .so support
16458             lt_prog_compiler_pic_CXX='-fPIC'
16459         ;;
16460       m68k)
16461             # FIXME: we need at least 68020 code to build shared libraries, but
16462             # adding the '-m68020' flag to GCC prevents building anything better,
16463             # like '-m68040'.
16464             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16465         ;;
16466       esac
16467       ;;
16468
16469     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16470       # PIC is the default for these OSes.
16471       ;;
16472     mingw* | cygwin* | os2* | pw32* | cegcc*)
16473       # This hack is so that the source file can tell whether it is being
16474       # built for inclusion in a dll (and should export symbols for example).
16475       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16476       # (--disable-auto-import) libraries
16477       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16478       case $host_os in
16479       os2*)
16480         lt_prog_compiler_static_CXX='$wl-static'
16481         ;;
16482       esac
16483       ;;
16484     darwin* | rhapsody*)
16485       # PIC is the default on this platform
16486       # Common symbols not allowed in MH_DYLIB files
16487       lt_prog_compiler_pic_CXX='-fno-common'
16488       ;;
16489     *djgpp*)
16490       # DJGPP does not support shared libraries at all
16491       lt_prog_compiler_pic_CXX=
16492       ;;
16493     haiku*)
16494       # PIC is the default for Haiku.
16495       # The "-static" flag exists, but is broken.
16496       lt_prog_compiler_static_CXX=
16497       ;;
16498     interix[3-9]*)
16499       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16500       # Instead, we relocate shared libraries at runtime.
16501       ;;
16502     sysv4*MP*)
16503       if test -d /usr/nec; then
16504         lt_prog_compiler_pic_CXX=-Kconform_pic
16505       fi
16506       ;;
16507     hpux*)
16508       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16509       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16510       # sets the default TLS model and affects inlining.
16511       case $host_cpu in
16512       hppa*64*)
16513         ;;
16514       *)
16515         lt_prog_compiler_pic_CXX='-fPIC'
16516         ;;
16517       esac
16518       ;;
16519     *qnx* | *nto*)
16520       # QNX uses GNU C++, but need to define -shared option too, otherwise
16521       # it will coredump.
16522       lt_prog_compiler_pic_CXX='-fPIC -shared'
16523       ;;
16524     *)
16525       lt_prog_compiler_pic_CXX='-fPIC'
16526       ;;
16527     esac
16528   else
16529     case $host_os in
16530       aix[4-9]*)
16531         # All AIX code is PIC.
16532         if test ia64 = "$host_cpu"; then
16533           # AIX 5 now supports IA64 processor
16534           lt_prog_compiler_static_CXX='-Bstatic'
16535         else
16536           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16537         fi
16538         ;;
16539       chorus*)
16540         case $cc_basename in
16541         cxch68*)
16542           # Green Hills C++ Compiler
16543           # _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"
16544           ;;
16545         esac
16546         ;;
16547       mingw* | cygwin* | os2* | pw32* | cegcc*)
16548         # This hack is so that the source file can tell whether it is being
16549         # built for inclusion in a dll (and should export symbols for example).
16550         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16551         ;;
16552       dgux*)
16553         case $cc_basename in
16554           ec++*)
16555             lt_prog_compiler_pic_CXX='-KPIC'
16556             ;;
16557           ghcx*)
16558             # Green Hills C++ Compiler
16559             lt_prog_compiler_pic_CXX='-pic'
16560             ;;
16561           *)
16562             ;;
16563         esac
16564         ;;
16565       freebsd* | dragonfly*)
16566         # FreeBSD uses GNU C++
16567         ;;
16568       hpux9* | hpux10* | hpux11*)
16569         case $cc_basename in
16570           CC*)
16571             lt_prog_compiler_wl_CXX='-Wl,'
16572             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16573             if test ia64 != "$host_cpu"; then
16574               lt_prog_compiler_pic_CXX='+Z'
16575             fi
16576             ;;
16577           aCC*)
16578             lt_prog_compiler_wl_CXX='-Wl,'
16579             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16580             case $host_cpu in
16581             hppa*64*|ia64*)
16582               # +Z the default
16583               ;;
16584             *)
16585               lt_prog_compiler_pic_CXX='+Z'
16586               ;;
16587             esac
16588             ;;
16589           *)
16590             ;;
16591         esac
16592         ;;
16593       interix*)
16594         # This is c89, which is MS Visual C++ (no shared libs)
16595         # Anyone wants to do a port?
16596         ;;
16597       irix5* | irix6* | nonstopux*)
16598         case $cc_basename in
16599           CC*)
16600             lt_prog_compiler_wl_CXX='-Wl,'
16601             lt_prog_compiler_static_CXX='-non_shared'
16602             # CC pic flag -KPIC is the default.
16603             ;;
16604           *)
16605             ;;
16606         esac
16607         ;;
16608       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16609         case $cc_basename in
16610           KCC*)
16611             # KAI C++ Compiler
16612             lt_prog_compiler_wl_CXX='--backend -Wl,'
16613             lt_prog_compiler_pic_CXX='-fPIC'
16614             ;;
16615           ecpc* )
16616             # old Intel C++ for x86_64, which still supported -KPIC.
16617             lt_prog_compiler_wl_CXX='-Wl,'
16618             lt_prog_compiler_pic_CXX='-KPIC'
16619             lt_prog_compiler_static_CXX='-static'
16620             ;;
16621           icpc* )
16622             # Intel C++, used to be incompatible with GCC.
16623             # ICC 10 doesn't accept -KPIC any more.
16624             lt_prog_compiler_wl_CXX='-Wl,'
16625             lt_prog_compiler_pic_CXX='-fPIC'
16626             lt_prog_compiler_static_CXX='-static'
16627             ;;
16628           pgCC* | pgcpp*)
16629             # Portland Group C++ compiler
16630             lt_prog_compiler_wl_CXX='-Wl,'
16631             lt_prog_compiler_pic_CXX='-fpic'
16632             lt_prog_compiler_static_CXX='-Bstatic'
16633             ;;
16634           cxx*)
16635             # Compaq C++
16636             # Make sure the PIC flag is empty.  It appears that all Alpha
16637             # Linux and Compaq Tru64 Unix objects are PIC.
16638             lt_prog_compiler_pic_CXX=
16639             lt_prog_compiler_static_CXX='-non_shared'
16640             ;;
16641           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16642             # IBM XL 8.0, 9.0 on PPC and BlueGene
16643             lt_prog_compiler_wl_CXX='-Wl,'
16644             lt_prog_compiler_pic_CXX='-qpic'
16645             lt_prog_compiler_static_CXX='-qstaticlink'
16646             ;;
16647           *)
16648             case `$CC -V 2>&1 | sed 5q` in
16649             *Sun\ C*)
16650               # Sun C++ 5.9
16651               lt_prog_compiler_pic_CXX='-KPIC'
16652               lt_prog_compiler_static_CXX='-Bstatic'
16653               lt_prog_compiler_wl_CXX='-Qoption ld '
16654               ;;
16655             esac
16656             ;;
16657         esac
16658         ;;
16659       lynxos*)
16660         ;;
16661       m88k*)
16662         ;;
16663       mvs*)
16664         case $cc_basename in
16665           cxx*)
16666             lt_prog_compiler_pic_CXX='-W c,exportall'
16667             ;;
16668           *)
16669             ;;
16670         esac
16671         ;;
16672       netbsd*)
16673         ;;
16674       *qnx* | *nto*)
16675         # QNX uses GNU C++, but need to define -shared option too, otherwise
16676         # it will coredump.
16677         lt_prog_compiler_pic_CXX='-fPIC -shared'
16678         ;;
16679       osf3* | osf4* | osf5*)
16680         case $cc_basename in
16681           KCC*)
16682             lt_prog_compiler_wl_CXX='--backend -Wl,'
16683             ;;
16684           RCC*)
16685             # Rational C++ 2.4.1
16686             lt_prog_compiler_pic_CXX='-pic'
16687             ;;
16688           cxx*)
16689             # Digital/Compaq C++
16690             lt_prog_compiler_wl_CXX='-Wl,'
16691             # Make sure the PIC flag is empty.  It appears that all Alpha
16692             # Linux and Compaq Tru64 Unix objects are PIC.
16693             lt_prog_compiler_pic_CXX=
16694             lt_prog_compiler_static_CXX='-non_shared'
16695             ;;
16696           *)
16697             ;;
16698         esac
16699         ;;
16700       psos*)
16701         ;;
16702       solaris*)
16703         case $cc_basename in
16704           CC* | sunCC*)
16705             # Sun C++ 4.2, 5.x and Centerline C++
16706             lt_prog_compiler_pic_CXX='-KPIC'
16707             lt_prog_compiler_static_CXX='-Bstatic'
16708             lt_prog_compiler_wl_CXX='-Qoption ld '
16709             ;;
16710           gcx*)
16711             # Green Hills C++ Compiler
16712             lt_prog_compiler_pic_CXX='-PIC'
16713             ;;
16714           *)
16715             ;;
16716         esac
16717         ;;
16718       sunos4*)
16719         case $cc_basename in
16720           CC*)
16721             # Sun C++ 4.x
16722             lt_prog_compiler_pic_CXX='-pic'
16723             lt_prog_compiler_static_CXX='-Bstatic'
16724             ;;
16725           lcc*)
16726             # Lucid
16727             lt_prog_compiler_pic_CXX='-pic'
16728             ;;
16729           *)
16730             ;;
16731         esac
16732         ;;
16733       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16734         case $cc_basename in
16735           CC*)
16736             lt_prog_compiler_wl_CXX='-Wl,'
16737             lt_prog_compiler_pic_CXX='-KPIC'
16738             lt_prog_compiler_static_CXX='-Bstatic'
16739             ;;
16740         esac
16741         ;;
16742       tandem*)
16743         case $cc_basename in
16744           NCC*)
16745             # NonStop-UX NCC 3.20
16746             lt_prog_compiler_pic_CXX='-KPIC'
16747             ;;
16748           *)
16749             ;;
16750         esac
16751         ;;
16752       vxworks*)
16753         ;;
16754       *)
16755         lt_prog_compiler_can_build_shared_CXX=no
16756         ;;
16757     esac
16758   fi
16759
16760 case $host_os in
16761   # For platforms that do not support PIC, -DPIC is meaningless:
16762   *djgpp*)
16763     lt_prog_compiler_pic_CXX=
16764     ;;
16765   *)
16766     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16767     ;;
16768 esac
16769
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16771 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16772 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16773   $as_echo_n "(cached) " >&6
16774 else
16775   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16776 fi
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16778 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16779 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16780
16781 #
16782 # Check to make sure the PIC flag actually works.
16783 #
16784 if test -n "$lt_prog_compiler_pic_CXX"; then
16785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16786 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16787 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16788   $as_echo_n "(cached) " >&6
16789 else
16790   lt_cv_prog_compiler_pic_works_CXX=no
16791    ac_outfile=conftest.$ac_objext
16792    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16793    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16794    # Insert the option either (1) after the last *FLAGS variable, or
16795    # (2) before a word containing "conftest.", or (3) at the end.
16796    # Note that $ac_compile itself does not contain backslashes and begins
16797    # with a dollar sign (not a hyphen), so the echo should work correctly.
16798    # The option is referenced via a variable to avoid confusing sed.
16799    lt_compile=`echo "$ac_compile" | $SED \
16800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16802    -e 's:$: $lt_compiler_flag:'`
16803    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16804    (eval "$lt_compile" 2>conftest.err)
16805    ac_status=$?
16806    cat conftest.err >&5
16807    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808    if (exit $ac_status) && test -s "$ac_outfile"; then
16809      # The compiler can only warn and ignore the option if not recognized
16810      # So say no if there are warnings other than the usual output.
16811      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16812      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16813      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16814        lt_cv_prog_compiler_pic_works_CXX=yes
16815      fi
16816    fi
16817    $RM conftest*
16818
16819 fi
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16821 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16822
16823 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16824     case $lt_prog_compiler_pic_CXX in
16825      "" | " "*) ;;
16826      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16827      esac
16828 else
16829     lt_prog_compiler_pic_CXX=
16830      lt_prog_compiler_can_build_shared_CXX=no
16831 fi
16832
16833 fi
16834
16835
16836
16837
16838
16839 #
16840 # Check to make sure the static flag actually works.
16841 #
16842 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16844 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16845 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16846   $as_echo_n "(cached) " >&6
16847 else
16848   lt_cv_prog_compiler_static_works_CXX=no
16849    save_LDFLAGS=$LDFLAGS
16850    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16851    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16852    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16853      # The linker can only warn and ignore the option if not recognized
16854      # So say no if there are warnings
16855      if test -s conftest.err; then
16856        # Append any errors to the config.log.
16857        cat conftest.err 1>&5
16858        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16859        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16860        if diff conftest.exp conftest.er2 >/dev/null; then
16861          lt_cv_prog_compiler_static_works_CXX=yes
16862        fi
16863      else
16864        lt_cv_prog_compiler_static_works_CXX=yes
16865      fi
16866    fi
16867    $RM -r conftest*
16868    LDFLAGS=$save_LDFLAGS
16869
16870 fi
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16872 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16873
16874 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16875     :
16876 else
16877     lt_prog_compiler_static_CXX=
16878 fi
16879
16880
16881
16882
16883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16884 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16885 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16886   $as_echo_n "(cached) " >&6
16887 else
16888   lt_cv_prog_compiler_c_o_CXX=no
16889    $RM -r conftest 2>/dev/null
16890    mkdir conftest
16891    cd conftest
16892    mkdir out
16893    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16894
16895    lt_compiler_flag="-o out/conftest2.$ac_objext"
16896    # Insert the option either (1) after the last *FLAGS variable, or
16897    # (2) before a word containing "conftest.", or (3) at the end.
16898    # Note that $ac_compile itself does not contain backslashes and begins
16899    # with a dollar sign (not a hyphen), so the echo should work correctly.
16900    lt_compile=`echo "$ac_compile" | $SED \
16901    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16902    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16903    -e 's:$: $lt_compiler_flag:'`
16904    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16905    (eval "$lt_compile" 2>out/conftest.err)
16906    ac_status=$?
16907    cat out/conftest.err >&5
16908    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16910    then
16911      # The compiler can only warn and ignore the option if not recognized
16912      # So say no if there are warnings
16913      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16914      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16915      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16916        lt_cv_prog_compiler_c_o_CXX=yes
16917      fi
16918    fi
16919    chmod u+w . 2>&5
16920    $RM conftest*
16921    # SGI C++ compiler will create directory out/ii_files/ for
16922    # template instantiation
16923    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16924    $RM out/* && rmdir out
16925    cd ..
16926    $RM -r conftest
16927    $RM conftest*
16928
16929 fi
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16931 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16932
16933
16934
16935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16936 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16937 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16938   $as_echo_n "(cached) " >&6
16939 else
16940   lt_cv_prog_compiler_c_o_CXX=no
16941    $RM -r conftest 2>/dev/null
16942    mkdir conftest
16943    cd conftest
16944    mkdir out
16945    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16946
16947    lt_compiler_flag="-o out/conftest2.$ac_objext"
16948    # Insert the option either (1) after the last *FLAGS variable, or
16949    # (2) before a word containing "conftest.", or (3) at the end.
16950    # Note that $ac_compile itself does not contain backslashes and begins
16951    # with a dollar sign (not a hyphen), so the echo should work correctly.
16952    lt_compile=`echo "$ac_compile" | $SED \
16953    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16954    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16955    -e 's:$: $lt_compiler_flag:'`
16956    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16957    (eval "$lt_compile" 2>out/conftest.err)
16958    ac_status=$?
16959    cat out/conftest.err >&5
16960    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16962    then
16963      # The compiler can only warn and ignore the option if not recognized
16964      # So say no if there are warnings
16965      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16966      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16967      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16968        lt_cv_prog_compiler_c_o_CXX=yes
16969      fi
16970    fi
16971    chmod u+w . 2>&5
16972    $RM conftest*
16973    # SGI C++ compiler will create directory out/ii_files/ for
16974    # template instantiation
16975    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16976    $RM out/* && rmdir out
16977    cd ..
16978    $RM -r conftest
16979    $RM conftest*
16980
16981 fi
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16983 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16984
16985
16986
16987
16988 hard_links=nottested
16989 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16990   # do not overwrite the value of need_locks provided by the user
16991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16992 $as_echo_n "checking if we can lock with hard links... " >&6; }
16993   hard_links=yes
16994   $RM conftest*
16995   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16996   touch conftest.a
16997   ln conftest.a conftest.b 2>&5 || hard_links=no
16998   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17000 $as_echo "$hard_links" >&6; }
17001   if test no = "$hard_links"; then
17002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17003 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17004     need_locks=warn
17005   fi
17006 else
17007   need_locks=no
17008 fi
17009
17010
17011
17012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17013 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17014
17015   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17016   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17017   case $host_os in
17018   aix[4-9]*)
17019     # If we're using GNU nm, then we don't want the "-C" option.
17020     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17021     # Without the "-l" option, or with the "-B" option, AIX nm treats
17022     # weak defined symbols like other global defined symbols, whereas
17023     # GNU nm marks them as "W".
17024     # While the 'weak' keyword is ignored in the Export File, we need
17025     # it in the Import File for the 'aix-soname' feature, so we have
17026     # to replace the "-B" option with "-P" for AIX nm.
17027     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17028       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'
17029     else
17030       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 == "L") || (\$ 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'
17031     fi
17032     ;;
17033   pw32*)
17034     export_symbols_cmds_CXX=$ltdll_cmds
17035     ;;
17036   cygwin* | mingw* | cegcc*)
17037     case $cc_basename in
17038     cl* | icl*)
17039       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17040       ;;
17041     *)
17042       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'
17043       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17044       ;;
17045     esac
17046     ;;
17047   *)
17048     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17049     ;;
17050   esac
17051
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17053 $as_echo "$ld_shlibs_CXX" >&6; }
17054 test no = "$ld_shlibs_CXX" && can_build_shared=no
17055
17056 with_gnu_ld_CXX=$with_gnu_ld
17057
17058
17059
17060
17061
17062
17063 #
17064 # Do we need to explicitly link libc?
17065 #
17066 case "x$archive_cmds_need_lc_CXX" in
17067 x|xyes)
17068   # Assume -lc should be added
17069   archive_cmds_need_lc_CXX=yes
17070
17071   if test yes,yes = "$GCC,$enable_shared"; then
17072     case $archive_cmds_CXX in
17073     *'~'*)
17074       # FIXME: we may have to deal with multi-command sequences.
17075       ;;
17076     '$CC '*)
17077       # Test whether the compiler implicitly links with -lc since on some
17078       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17079       # to ld, don't add -lc before -lgcc.
17080       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17081 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17082 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17083   $as_echo_n "(cached) " >&6
17084 else
17085   $RM conftest*
17086         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17087
17088         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17089   (eval $ac_compile) 2>&5
17090   ac_status=$?
17091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17092   test $ac_status = 0; } 2>conftest.err; then
17093           soname=conftest
17094           lib=conftest
17095           libobjs=conftest.$ac_objext
17096           deplibs=
17097           wl=$lt_prog_compiler_wl_CXX
17098           pic_flag=$lt_prog_compiler_pic_CXX
17099           compiler_flags=-v
17100           linker_flags=-v
17101           verstring=
17102           output_objdir=.
17103           libname=conftest
17104           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17105           allow_undefined_flag_CXX=
17106           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17107   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17108   ac_status=$?
17109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17110   test $ac_status = 0; }
17111           then
17112             lt_cv_archive_cmds_need_lc_CXX=no
17113           else
17114             lt_cv_archive_cmds_need_lc_CXX=yes
17115           fi
17116           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17117         else
17118           cat conftest.err 1>&5
17119         fi
17120         $RM conftest*
17121
17122 fi
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17124 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17125       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17126       ;;
17127     esac
17128   fi
17129   ;;
17130 esac
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17194 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17195
17196 library_names_spec=
17197 libname_spec='lib$name'
17198 soname_spec=
17199 shrext_cmds=.so
17200 postinstall_cmds=
17201 postuninstall_cmds=
17202 finish_cmds=
17203 finish_eval=
17204 shlibpath_var=
17205 shlibpath_overrides_runpath=unknown
17206 version_type=none
17207 dynamic_linker="$host_os ld.so"
17208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17209 need_lib_prefix=unknown
17210 hardcode_into_libs=no
17211
17212 # when you set need_version to no, make sure it does not cause -set_version
17213 # flags to be left without arguments
17214 need_version=unknown
17215
17216
17217
17218 case $host_os in
17219 aix3*)
17220   version_type=linux # correct to gnu/linux during the next big refactor
17221   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17222   shlibpath_var=LIBPATH
17223
17224   # AIX 3 has no versioning support, so we append a major version to the name.
17225   soname_spec='$libname$release$shared_ext$major'
17226   ;;
17227
17228 aix[4-9]*)
17229   version_type=linux # correct to gnu/linux during the next big refactor
17230   need_lib_prefix=no
17231   need_version=no
17232   hardcode_into_libs=yes
17233   if test ia64 = "$host_cpu"; then
17234     # AIX 5 supports IA64
17235     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17236     shlibpath_var=LD_LIBRARY_PATH
17237   else
17238     # With GCC up to 2.95.x, collect2 would create an import file
17239     # for dependence libraries.  The import file would start with
17240     # the line '#! .'.  This would cause the generated library to
17241     # depend on '.', always an invalid library.  This was fixed in
17242     # development snapshots of GCC prior to 3.0.
17243     case $host_os in
17244       aix4 | aix4.[01] | aix4.[01].*)
17245       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17246            echo ' yes '
17247            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17248         :
17249       else
17250         can_build_shared=no
17251       fi
17252       ;;
17253     esac
17254     # Using Import Files as archive members, it is possible to support
17255     # filename-based versioning of shared library archives on AIX. While
17256     # this would work for both with and without runtime linking, it will
17257     # prevent static linking of such archives. So we do filename-based
17258     # shared library versioning with .so extension only, which is used
17259     # when both runtime linking and shared linking is enabled.
17260     # Unfortunately, runtime linking may impact performance, so we do
17261     # not want this to be the default eventually. Also, we use the
17262     # versioned .so libs for executables only if there is the -brtl
17263     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17264     # To allow for filename-based versioning support, we need to create
17265     # libNAME.so.V as an archive file, containing:
17266     # *) an Import File, referring to the versioned filename of the
17267     #    archive as well as the shared archive member, telling the
17268     #    bitwidth (32 or 64) of that shared object, and providing the
17269     #    list of exported symbols of that shared object, eventually
17270     #    decorated with the 'weak' keyword
17271     # *) the shared object with the F_LOADONLY flag set, to really avoid
17272     #    it being seen by the linker.
17273     # At run time we better use the real file rather than another symlink,
17274     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17275
17276     case $with_aix_soname,$aix_use_runtimelinking in
17277     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17278     # soname into executable. Probably we can add versioning support to
17279     # collect2, so additional links can be useful in future.
17280     aix,yes) # traditional libtool
17281       dynamic_linker='AIX unversionable lib.so'
17282       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17283       # instead of lib<name>.a to let people know that these are not
17284       # typical AIX shared libraries.
17285       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17286       ;;
17287     aix,no) # traditional AIX only
17288       dynamic_linker='AIX lib.a(lib.so.V)'
17289       # We preserve .a as extension for shared libraries through AIX4.2
17290       # and later when we are not doing run time linking.
17291       library_names_spec='$libname$release.a $libname.a'
17292       soname_spec='$libname$release$shared_ext$major'
17293       ;;
17294     svr4,*) # full svr4 only
17295       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17296       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17297       # We do not specify a path in Import Files, so LIBPATH fires.
17298       shlibpath_overrides_runpath=yes
17299       ;;
17300     *,yes) # both, prefer svr4
17301       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17302       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17303       # unpreferred sharedlib libNAME.a needs extra handling
17304       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"'
17305       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"'
17306       # We do not specify a path in Import Files, so LIBPATH fires.
17307       shlibpath_overrides_runpath=yes
17308       ;;
17309     *,no) # both, prefer aix
17310       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17311       library_names_spec='$libname$release.a $libname.a'
17312       soname_spec='$libname$release$shared_ext$major'
17313       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17314       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)'
17315       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"'
17316       ;;
17317     esac
17318     shlibpath_var=LIBPATH
17319   fi
17320   ;;
17321
17322 amigaos*)
17323   case $host_cpu in
17324   powerpc)
17325     # Since July 2007 AmigaOS4 officially supports .so libraries.
17326     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17327     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17328     ;;
17329   m68k)
17330     library_names_spec='$libname.ixlibrary $libname.a'
17331     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17332     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'
17333     ;;
17334   esac
17335   ;;
17336
17337 beos*)
17338   library_names_spec='$libname$shared_ext'
17339   dynamic_linker="$host_os ld.so"
17340   shlibpath_var=LIBRARY_PATH
17341   ;;
17342
17343 bsdi[45]*)
17344   version_type=linux # correct to gnu/linux during the next big refactor
17345   need_version=no
17346   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17347   soname_spec='$libname$release$shared_ext$major'
17348   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17349   shlibpath_var=LD_LIBRARY_PATH
17350   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17351   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17352   # the default ld.so.conf also contains /usr/contrib/lib and
17353   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17354   # libtool to hard-code these into programs
17355   ;;
17356
17357 cygwin* | mingw* | pw32* | cegcc*)
17358   version_type=windows
17359   shrext_cmds=.dll
17360   need_version=no
17361   need_lib_prefix=no
17362
17363   case $GCC,$cc_basename in
17364   yes,*)
17365     # gcc
17366     library_names_spec='$libname.dll.a'
17367     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17368     postinstall_cmds='base_file=`basename \$file`~
17369       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17370       dldir=$destdir/`dirname \$dlpath`~
17371       test -d \$dldir || mkdir -p \$dldir~
17372       $install_prog $dir/$dlname \$dldir/$dlname~
17373       chmod a+x \$dldir/$dlname~
17374       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17375         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17376       fi'
17377     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17378       dlpath=$dir/\$dldll~
17379        $RM \$dlpath'
17380     shlibpath_overrides_runpath=yes
17381
17382     case $host_os in
17383     cygwin*)
17384       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17385       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17386
17387       ;;
17388     mingw* | cegcc*)
17389       # MinGW DLLs use traditional 'lib' prefix
17390       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17391       ;;
17392     pw32*)
17393       # pw32 DLLs use 'pw' prefix rather than 'lib'
17394       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17395       ;;
17396     esac
17397     dynamic_linker='Win32 ld.exe'
17398     ;;
17399
17400   *,cl* | *,icl*)
17401     # Native MSVC or ICC
17402     libname_spec='$name'
17403     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17404     library_names_spec='$libname.dll.lib'
17405
17406     case $build_os in
17407     mingw*)
17408       sys_lib_search_path_spec=
17409       lt_save_ifs=$IFS
17410       IFS=';'
17411       for lt_path in $LIB
17412       do
17413         IFS=$lt_save_ifs
17414         # Let DOS variable expansion print the short 8.3 style file name.
17415         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17416         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17417       done
17418       IFS=$lt_save_ifs
17419       # Convert to MSYS style.
17420       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17421       ;;
17422     cygwin*)
17423       # Convert to unix form, then to dos form, then back to unix form
17424       # but this time dos style (no spaces!) so that the unix form looks
17425       # like /cygdrive/c/PROGRA~1:/cygdr...
17426       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17427       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17428       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17429       ;;
17430     *)
17431       sys_lib_search_path_spec=$LIB
17432       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17433         # It is most probably a Windows format PATH.
17434         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17435       else
17436         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17437       fi
17438       # FIXME: find the short name or the path components, as spaces are
17439       # common. (e.g. "Program Files" -> "PROGRA~1")
17440       ;;
17441     esac
17442
17443     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17444     postinstall_cmds='base_file=`basename \$file`~
17445       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17446       dldir=$destdir/`dirname \$dlpath`~
17447       test -d \$dldir || mkdir -p \$dldir~
17448       $install_prog $dir/$dlname \$dldir/$dlname'
17449     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17450       dlpath=$dir/\$dldll~
17451        $RM \$dlpath'
17452     shlibpath_overrides_runpath=yes
17453     dynamic_linker='Win32 link.exe'
17454     ;;
17455
17456   *)
17457     # Assume MSVC and ICC wrapper
17458     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17459     dynamic_linker='Win32 ld.exe'
17460     ;;
17461   esac
17462   # FIXME: first we should search . and the directory the executable is in
17463   shlibpath_var=PATH
17464   ;;
17465
17466 darwin* | rhapsody*)
17467   dynamic_linker="$host_os dyld"
17468   version_type=darwin
17469   need_lib_prefix=no
17470   need_version=no
17471   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17472   soname_spec='$libname$release$major$shared_ext'
17473   shlibpath_overrides_runpath=yes
17474   shlibpath_var=DYLD_LIBRARY_PATH
17475   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17476
17477   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17478   ;;
17479
17480 dgux*)
17481   version_type=linux # correct to gnu/linux during the next big refactor
17482   need_lib_prefix=no
17483   need_version=no
17484   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17485   soname_spec='$libname$release$shared_ext$major'
17486   shlibpath_var=LD_LIBRARY_PATH
17487   ;;
17488
17489 freebsd* | dragonfly*)
17490   # DragonFly does not have aout.  When/if they implement a new
17491   # versioning mechanism, adjust this.
17492   if test -x /usr/bin/objformat; then
17493     objformat=`/usr/bin/objformat`
17494   else
17495     case $host_os in
17496     freebsd[23].*) objformat=aout ;;
17497     *) objformat=elf ;;
17498     esac
17499   fi
17500   version_type=freebsd-$objformat
17501   case $version_type in
17502     freebsd-elf*)
17503       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17504       soname_spec='$libname$release$shared_ext$major'
17505       need_version=no
17506       need_lib_prefix=no
17507       ;;
17508     freebsd-*)
17509       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17510       need_version=yes
17511       ;;
17512   esac
17513   shlibpath_var=LD_LIBRARY_PATH
17514   case $host_os in
17515   freebsd2.*)
17516     shlibpath_overrides_runpath=yes
17517     ;;
17518   freebsd3.[01]* | freebsdelf3.[01]*)
17519     shlibpath_overrides_runpath=yes
17520     hardcode_into_libs=yes
17521     ;;
17522   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17523   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17524     shlibpath_overrides_runpath=no
17525     hardcode_into_libs=yes
17526     ;;
17527   *) # from 4.6 on, and DragonFly
17528     shlibpath_overrides_runpath=yes
17529     hardcode_into_libs=yes
17530     ;;
17531   esac
17532   ;;
17533
17534 haiku*)
17535   version_type=linux # correct to gnu/linux during the next big refactor
17536   need_lib_prefix=no
17537   need_version=no
17538   dynamic_linker="$host_os runtime_loader"
17539   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17540   soname_spec='$libname$release$shared_ext$major'
17541   shlibpath_var=LIBRARY_PATH
17542   shlibpath_overrides_runpath=no
17543   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17544   hardcode_into_libs=yes
17545   ;;
17546
17547 hpux9* | hpux10* | hpux11*)
17548   # Give a soname corresponding to the major version so that dld.sl refuses to
17549   # link against other versions.
17550   version_type=sunos
17551   need_lib_prefix=no
17552   need_version=no
17553   case $host_cpu in
17554   ia64*)
17555     shrext_cmds='.so'
17556     hardcode_into_libs=yes
17557     dynamic_linker="$host_os dld.so"
17558     shlibpath_var=LD_LIBRARY_PATH
17559     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17560     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17561     soname_spec='$libname$release$shared_ext$major'
17562     if test 32 = "$HPUX_IA64_MODE"; then
17563       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17564       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17565     else
17566       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17567       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17568     fi
17569     ;;
17570   hppa*64*)
17571     shrext_cmds='.sl'
17572     hardcode_into_libs=yes
17573     dynamic_linker="$host_os dld.sl"
17574     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17575     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17576     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17577     soname_spec='$libname$release$shared_ext$major'
17578     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17579     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17580     ;;
17581   *)
17582     shrext_cmds='.sl'
17583     dynamic_linker="$host_os dld.sl"
17584     shlibpath_var=SHLIB_PATH
17585     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
17589   esac
17590   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17591   postinstall_cmds='chmod 555 $lib'
17592   # or fails outright, so override atomically:
17593   install_override_mode=555
17594   ;;
17595
17596 interix[3-9]*)
17597   version_type=linux # correct to gnu/linux during the next big refactor
17598   need_lib_prefix=no
17599   need_version=no
17600   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17601   soname_spec='$libname$release$shared_ext$major'
17602   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17603   shlibpath_var=LD_LIBRARY_PATH
17604   shlibpath_overrides_runpath=no
17605   hardcode_into_libs=yes
17606   ;;
17607
17608 irix5* | irix6* | nonstopux*)
17609   case $host_os in
17610     nonstopux*) version_type=nonstopux ;;
17611     *)
17612         if test yes = "$lt_cv_prog_gnu_ld"; then
17613                 version_type=linux # correct to gnu/linux during the next big refactor
17614         else
17615                 version_type=irix
17616         fi ;;
17617   esac
17618   need_lib_prefix=no
17619   need_version=no
17620   soname_spec='$libname$release$shared_ext$major'
17621   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17622   case $host_os in
17623   irix5* | nonstopux*)
17624     libsuff= shlibsuff=
17625     ;;
17626   *)
17627     case $LD in # libtool.m4 will add one of these switches to LD
17628     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17629       libsuff= shlibsuff= libmagic=32-bit;;
17630     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17631       libsuff=32 shlibsuff=N32 libmagic=N32;;
17632     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17633       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17634     *) libsuff= shlibsuff= libmagic=never-match;;
17635     esac
17636     ;;
17637   esac
17638   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17639   shlibpath_overrides_runpath=no
17640   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17641   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17642   hardcode_into_libs=yes
17643   ;;
17644
17645 # No shared lib support for Linux oldld, aout, or coff.
17646 linux*oldld* | linux*aout* | linux*coff*)
17647   dynamic_linker=no
17648   ;;
17649
17650 linux*android*)
17651   version_type=none # Android doesn't support versioned libraries.
17652   need_lib_prefix=no
17653   need_version=no
17654   library_names_spec='$libname$release$shared_ext'
17655   soname_spec='$libname$release$shared_ext'
17656   finish_cmds=
17657   shlibpath_var=LD_LIBRARY_PATH
17658   shlibpath_overrides_runpath=yes
17659
17660   # This implies no fast_install, which is unacceptable.
17661   # Some rework will be needed to allow for fast_install
17662   # before this can be enabled.
17663   hardcode_into_libs=yes
17664
17665   dynamic_linker='Android linker'
17666   # Don't embed -rpath directories since the linker doesn't support them.
17667   hardcode_libdir_flag_spec_CXX='-L$libdir'
17668   ;;
17669
17670 # This must be glibc/ELF.
17671 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17672   version_type=linux # correct to gnu/linux during the next big refactor
17673   need_lib_prefix=no
17674   need_version=no
17675   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17676   soname_spec='$libname$release$shared_ext$major'
17677   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17678   shlibpath_var=LD_LIBRARY_PATH
17679   shlibpath_overrides_runpath=no
17680
17681   # Some binutils ld are patched to set DT_RUNPATH
17682   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17683   $as_echo_n "(cached) " >&6
17684 else
17685   lt_cv_shlibpath_overrides_runpath=no
17686     save_LDFLAGS=$LDFLAGS
17687     save_libdir=$libdir
17688     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17689          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h.  */
17692
17693 int
17694 main ()
17695 {
17696
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 if ac_fn_cxx_try_link "$LINENO"; then :
17702   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17703   lt_cv_shlibpath_overrides_runpath=yes
17704 fi
17705 fi
17706 rm -f core conftest.err conftest.$ac_objext \
17707     conftest$ac_exeext conftest.$ac_ext
17708     LDFLAGS=$save_LDFLAGS
17709     libdir=$save_libdir
17710
17711 fi
17712
17713   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17714
17715   # This implies no fast_install, which is unacceptable.
17716   # Some rework will be needed to allow for fast_install
17717   # before this can be enabled.
17718   hardcode_into_libs=yes
17719
17720   # Ideally, we could use ldconfig to report *all* directores which are
17721   # searched for libraries, however this is still not possible.  Aside from not
17722   # being certain /sbin/ldconfig is available, command
17723   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17724   # even though it is searched at run-time.  Try to do the best guess by
17725   # appending ld.so.conf contents (and includes) to the search path.
17726   if test -f /etc/ld.so.conf; then
17727     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' ' '`
17728     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17729   fi
17730
17731   # We used to test for /lib/ld.so.1 and disable shared libraries on
17732   # powerpc, because MkLinux only supported shared libraries with the
17733   # GNU dynamic linker.  Since this was broken with cross compilers,
17734   # most powerpc-linux boxes support dynamic linking these days and
17735   # people can always --disable-shared, the test was removed, and we
17736   # assume the GNU/Linux dynamic linker is in use.
17737   dynamic_linker='GNU/Linux ld.so'
17738   ;;
17739
17740 netbsd*)
17741   version_type=sunos
17742   need_lib_prefix=no
17743   need_version=no
17744   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17745     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17746     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17747     dynamic_linker='NetBSD (a.out) ld.so'
17748   else
17749     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17750     soname_spec='$libname$release$shared_ext$major'
17751     dynamic_linker='NetBSD ld.elf_so'
17752   fi
17753   shlibpath_var=LD_LIBRARY_PATH
17754   shlibpath_overrides_runpath=yes
17755   hardcode_into_libs=yes
17756   ;;
17757
17758 newsos6)
17759   version_type=linux # correct to gnu/linux during the next big refactor
17760   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17761   shlibpath_var=LD_LIBRARY_PATH
17762   shlibpath_overrides_runpath=yes
17763   ;;
17764
17765 *nto* | *qnx*)
17766   version_type=qnx
17767   need_lib_prefix=no
17768   need_version=no
17769   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17770   soname_spec='$libname$release$shared_ext$major'
17771   shlibpath_var=LD_LIBRARY_PATH
17772   shlibpath_overrides_runpath=no
17773   hardcode_into_libs=yes
17774   dynamic_linker='ldqnx.so'
17775   ;;
17776
17777 openbsd* | bitrig*)
17778   version_type=sunos
17779   sys_lib_dlsearch_path_spec=/usr/lib
17780   need_lib_prefix=no
17781   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17782     need_version=no
17783   else
17784     need_version=yes
17785   fi
17786   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17787   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17788   shlibpath_var=LD_LIBRARY_PATH
17789   shlibpath_overrides_runpath=yes
17790   ;;
17791
17792 os2*)
17793   libname_spec='$name'
17794   version_type=windows
17795   shrext_cmds=.dll
17796   need_version=no
17797   need_lib_prefix=no
17798   # OS/2 can only load a DLL with a base name of 8 characters or less.
17799   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17800     v=$($ECHO $release$versuffix | tr -d .-);
17801     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17802     $ECHO $n$v`$shared_ext'
17803   library_names_spec='${libname}_dll.$libext'
17804   dynamic_linker='OS/2 ld.exe'
17805   shlibpath_var=BEGINLIBPATH
17806   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17807   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17808   postinstall_cmds='base_file=`basename \$file`~
17809     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17810     dldir=$destdir/`dirname \$dlpath`~
17811     test -d \$dldir || mkdir -p \$dldir~
17812     $install_prog $dir/$dlname \$dldir/$dlname~
17813     chmod a+x \$dldir/$dlname~
17814     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17815       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17816     fi'
17817   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17818     dlpath=$dir/\$dldll~
17819     $RM \$dlpath'
17820   ;;
17821
17822 osf3* | osf4* | osf5*)
17823   version_type=osf
17824   need_lib_prefix=no
17825   need_version=no
17826   soname_spec='$libname$release$shared_ext$major'
17827   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17828   shlibpath_var=LD_LIBRARY_PATH
17829   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17830   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17831   ;;
17832
17833 rdos*)
17834   dynamic_linker=no
17835   ;;
17836
17837 solaris*)
17838   version_type=linux # correct to gnu/linux during the next big refactor
17839   need_lib_prefix=no
17840   need_version=no
17841   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17842   soname_spec='$libname$release$shared_ext$major'
17843   shlibpath_var=LD_LIBRARY_PATH
17844   shlibpath_overrides_runpath=yes
17845   hardcode_into_libs=yes
17846   # ldd complains unless libraries are executable
17847   postinstall_cmds='chmod +x $lib'
17848   ;;
17849
17850 sunos4*)
17851   version_type=sunos
17852   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17853   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17854   shlibpath_var=LD_LIBRARY_PATH
17855   shlibpath_overrides_runpath=yes
17856   if test yes = "$with_gnu_ld"; then
17857     need_lib_prefix=no
17858   fi
17859   need_version=yes
17860   ;;
17861
17862 sysv4 | sysv4.3*)
17863   version_type=linux # correct to gnu/linux during the next big refactor
17864   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17865   soname_spec='$libname$release$shared_ext$major'
17866   shlibpath_var=LD_LIBRARY_PATH
17867   case $host_vendor in
17868     sni)
17869       shlibpath_overrides_runpath=no
17870       need_lib_prefix=no
17871       runpath_var=LD_RUN_PATH
17872       ;;
17873     siemens)
17874       need_lib_prefix=no
17875       ;;
17876     motorola)
17877       need_lib_prefix=no
17878       need_version=no
17879       shlibpath_overrides_runpath=no
17880       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17881       ;;
17882   esac
17883   ;;
17884
17885 sysv4*MP*)
17886   if test -d /usr/nec; then
17887     version_type=linux # correct to gnu/linux during the next big refactor
17888     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17889     soname_spec='$libname$shared_ext.$major'
17890     shlibpath_var=LD_LIBRARY_PATH
17891   fi
17892   ;;
17893
17894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17895   version_type=sco
17896   need_lib_prefix=no
17897   need_version=no
17898   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17899   soname_spec='$libname$release$shared_ext$major'
17900   shlibpath_var=LD_LIBRARY_PATH
17901   shlibpath_overrides_runpath=yes
17902   hardcode_into_libs=yes
17903   if test yes = "$with_gnu_ld"; then
17904     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17905   else
17906     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17907     case $host_os in
17908       sco3.2v5*)
17909         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17910         ;;
17911     esac
17912   fi
17913   sys_lib_dlsearch_path_spec='/usr/lib'
17914   ;;
17915
17916 tpf*)
17917   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17918   version_type=linux # correct to gnu/linux during the next big refactor
17919   need_lib_prefix=no
17920   need_version=no
17921   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17922   shlibpath_var=LD_LIBRARY_PATH
17923   shlibpath_overrides_runpath=no
17924   hardcode_into_libs=yes
17925   ;;
17926
17927 uts4*)
17928   version_type=linux # correct to gnu/linux during the next big refactor
17929   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17930   soname_spec='$libname$release$shared_ext$major'
17931   shlibpath_var=LD_LIBRARY_PATH
17932   ;;
17933
17934 *)
17935   dynamic_linker=no
17936   ;;
17937 esac
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17939 $as_echo "$dynamic_linker" >&6; }
17940 test no = "$dynamic_linker" && can_build_shared=no
17941
17942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17943 if test yes = "$GCC"; then
17944   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17945 fi
17946
17947 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17948   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17949 fi
17950
17951 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17952   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17953 fi
17954
17955 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17956 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17957
17958 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17959 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17960
17961 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17962 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18004 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18005 hardcode_action_CXX=
18006 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18007    test -n "$runpath_var_CXX" ||
18008    test yes = "$hardcode_automatic_CXX"; then
18009
18010   # We can hardcode non-existent directories.
18011   if test no != "$hardcode_direct_CXX" &&
18012      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18013      # have to relink, otherwise we might link with an installed library
18014      # when we should be linking with a yet-to-be-installed one
18015      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18016      test no != "$hardcode_minus_L_CXX"; then
18017     # Linking always hardcodes the temporary library directory.
18018     hardcode_action_CXX=relink
18019   else
18020     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18021     hardcode_action_CXX=immediate
18022   fi
18023 else
18024   # We cannot hardcode anything, or else we can only hardcode existing
18025   # directories.
18026   hardcode_action_CXX=unsupported
18027 fi
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18029 $as_echo "$hardcode_action_CXX" >&6; }
18030
18031 if test relink = "$hardcode_action_CXX" ||
18032    test yes = "$inherit_rpath_CXX"; then
18033   # Fast installation is not supported
18034   enable_fast_install=no
18035 elif test yes = "$shlibpath_overrides_runpath" ||
18036      test no = "$enable_shared"; then
18037   # Fast installation is not necessary
18038   enable_fast_install=needless
18039 fi
18040
18041
18042
18043
18044
18045
18046
18047   fi # test -n "$compiler"
18048
18049   CC=$lt_save_CC
18050   CFLAGS=$lt_save_CFLAGS
18051   LDCXX=$LD
18052   LD=$lt_save_LD
18053   GCC=$lt_save_GCC
18054   with_gnu_ld=$lt_save_with_gnu_ld
18055   lt_cv_path_LDCXX=$lt_cv_path_LD
18056   lt_cv_path_LD=$lt_save_path_LD
18057   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18058   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18059 fi # test yes != "$_lt_caught_CXX_error"
18060
18061 ac_ext=c
18062 ac_cpp='$CPP $CPPFLAGS'
18063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18066
18067
18068 # Check whether --enable-largefile was given.
18069 if test "${enable_largefile+set}" = set; then :
18070   enableval=$enable_largefile;
18071 fi
18072
18073 if test "$enable_largefile" != no; then
18074
18075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18076 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18077 if ${ac_cv_sys_largefile_CC+:} false; then :
18078   $as_echo_n "(cached) " >&6
18079 else
18080   ac_cv_sys_largefile_CC=no
18081      if test "$GCC" != yes; then
18082        ac_save_CC=$CC
18083        while :; do
18084          # IRIX 6.2 and later do not support large files by default,
18085          # so use the C compiler's -n32 option if that helps.
18086          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h.  */
18088 #include <sys/types.h>
18089  /* Check that off_t can represent 2**63 - 1 correctly.
18090     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18091     since some C++ compilers masquerading as C compilers
18092     incorrectly reject 9223372036854775807.  */
18093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18094   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18095                        && LARGE_OFF_T % 2147483647 == 1)
18096                       ? 1 : -1];
18097 int
18098 main ()
18099 {
18100
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105          if ac_fn_c_try_compile "$LINENO"; then :
18106   break
18107 fi
18108 rm -f core conftest.err conftest.$ac_objext
18109          CC="$CC -n32"
18110          if ac_fn_c_try_compile "$LINENO"; then :
18111   ac_cv_sys_largefile_CC=' -n32'; break
18112 fi
18113 rm -f core conftest.err conftest.$ac_objext
18114          break
18115        done
18116        CC=$ac_save_CC
18117        rm -f conftest.$ac_ext
18118     fi
18119 fi
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18121 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18122   if test "$ac_cv_sys_largefile_CC" != no; then
18123     CC=$CC$ac_cv_sys_largefile_CC
18124   fi
18125
18126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18127 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18128 if ${ac_cv_sys_file_offset_bits+:} false; then :
18129   $as_echo_n "(cached) " >&6
18130 else
18131   while :; do
18132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h.  */
18134 #include <sys/types.h>
18135  /* Check that off_t can represent 2**63 - 1 correctly.
18136     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18137     since some C++ compilers masquerading as C compilers
18138     incorrectly reject 9223372036854775807.  */
18139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18140   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18141                        && LARGE_OFF_T % 2147483647 == 1)
18142                       ? 1 : -1];
18143 int
18144 main ()
18145 {
18146
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 if ac_fn_c_try_compile "$LINENO"; then :
18152   ac_cv_sys_file_offset_bits=no; break
18153 fi
18154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156 /* end confdefs.h.  */
18157 #define _FILE_OFFSET_BITS 64
18158 #include <sys/types.h>
18159  /* Check that off_t can represent 2**63 - 1 correctly.
18160     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18161     since some C++ compilers masquerading as C compilers
18162     incorrectly reject 9223372036854775807.  */
18163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18164   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18165                        && LARGE_OFF_T % 2147483647 == 1)
18166                       ? 1 : -1];
18167 int
18168 main ()
18169 {
18170
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 if ac_fn_c_try_compile "$LINENO"; then :
18176   ac_cv_sys_file_offset_bits=64; break
18177 fi
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179   ac_cv_sys_file_offset_bits=unknown
18180   break
18181 done
18182 fi
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18184 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18185 case $ac_cv_sys_file_offset_bits in #(
18186   no | unknown) ;;
18187   *)
18188 cat >>confdefs.h <<_ACEOF
18189 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18190 _ACEOF
18191 ;;
18192 esac
18193 rm -rf conftest*
18194   if test $ac_cv_sys_file_offset_bits = unknown; then
18195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18196 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18197 if ${ac_cv_sys_large_files+:} false; then :
18198   $as_echo_n "(cached) " >&6
18199 else
18200   while :; do
18201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202 /* end confdefs.h.  */
18203 #include <sys/types.h>
18204  /* Check that off_t can represent 2**63 - 1 correctly.
18205     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18206     since some C++ compilers masquerading as C compilers
18207     incorrectly reject 9223372036854775807.  */
18208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18209   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18210                        && LARGE_OFF_T % 2147483647 == 1)
18211                       ? 1 : -1];
18212 int
18213 main ()
18214 {
18215
18216   ;
18217   return 0;
18218 }
18219 _ACEOF
18220 if ac_fn_c_try_compile "$LINENO"; then :
18221   ac_cv_sys_large_files=no; break
18222 fi
18223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h.  */
18226 #define _LARGE_FILES 1
18227 #include <sys/types.h>
18228  /* Check that off_t can represent 2**63 - 1 correctly.
18229     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18230     since some C++ compilers masquerading as C compilers
18231     incorrectly reject 9223372036854775807.  */
18232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18233   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18234                        && LARGE_OFF_T % 2147483647 == 1)
18235                       ? 1 : -1];
18236 int
18237 main ()
18238 {
18239
18240   ;
18241   return 0;
18242 }
18243 _ACEOF
18244 if ac_fn_c_try_compile "$LINENO"; then :
18245   ac_cv_sys_large_files=1; break
18246 fi
18247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18248   ac_cv_sys_large_files=unknown
18249   break
18250 done
18251 fi
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18253 $as_echo "$ac_cv_sys_large_files" >&6; }
18254 case $ac_cv_sys_large_files in #(
18255   no | unknown) ;;
18256   *)
18257 cat >>confdefs.h <<_ACEOF
18258 #define _LARGE_FILES $ac_cv_sys_large_files
18259 _ACEOF
18260 ;;
18261 esac
18262 rm -rf conftest*
18263   fi
18264
18265
18266 fi
18267
18268
18269
18270
18271
18272
18273
18274
18275 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18276         if test -n "$ac_tool_prefix"; then
18277   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18278 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18280 $as_echo_n "checking for $ac_word... " >&6; }
18281 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18282   $as_echo_n "(cached) " >&6
18283 else
18284   case $PKG_CONFIG in
18285   [\\/]* | ?:[\\/]*)
18286   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18287   ;;
18288   *)
18289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18290 for as_dir in $PATH
18291 do
18292   IFS=$as_save_IFS
18293   test -z "$as_dir" && as_dir=.
18294     for ac_exec_ext in '' $ac_executable_extensions; do
18295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18296     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18298     break 2
18299   fi
18300 done
18301   done
18302 IFS=$as_save_IFS
18303
18304   ;;
18305 esac
18306 fi
18307 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18308 if test -n "$PKG_CONFIG"; then
18309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18310 $as_echo "$PKG_CONFIG" >&6; }
18311 else
18312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18313 $as_echo "no" >&6; }
18314 fi
18315
18316
18317 fi
18318 if test -z "$ac_cv_path_PKG_CONFIG"; then
18319   ac_pt_PKG_CONFIG=$PKG_CONFIG
18320   # Extract the first word of "pkg-config", so it can be a program name with args.
18321 set dummy pkg-config; ac_word=$2
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18323 $as_echo_n "checking for $ac_word... " >&6; }
18324 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18325   $as_echo_n "(cached) " >&6
18326 else
18327   case $ac_pt_PKG_CONFIG in
18328   [\\/]* | ?:[\\/]*)
18329   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18330   ;;
18331   *)
18332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18334 do
18335   IFS=$as_save_IFS
18336   test -z "$as_dir" && as_dir=.
18337     for ac_exec_ext in '' $ac_executable_extensions; do
18338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18339     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18341     break 2
18342   fi
18343 done
18344   done
18345 IFS=$as_save_IFS
18346
18347   ;;
18348 esac
18349 fi
18350 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18351 if test -n "$ac_pt_PKG_CONFIG"; then
18352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18353 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18354 else
18355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356 $as_echo "no" >&6; }
18357 fi
18358
18359   if test "x$ac_pt_PKG_CONFIG" = x; then
18360     PKG_CONFIG=""
18361   else
18362     case $cross_compiling:$ac_tool_warned in
18363 yes:)
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18366 ac_tool_warned=yes ;;
18367 esac
18368     PKG_CONFIG=$ac_pt_PKG_CONFIG
18369   fi
18370 else
18371   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18372 fi
18373
18374 fi
18375 if test -n "$PKG_CONFIG"; then
18376         _pkg_min_version=0.20
18377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18378 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18379         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18380                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18381 $as_echo "yes" >&6; }
18382         else
18383                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18384 $as_echo "no" >&6; }
18385                 PKG_CONFIG=""
18386         fi
18387 fi
18388
18389 RAGEL=${RAGEL-"${am_missing_run}ragel"}
18390
18391
18392 GIT=${GIT-"${am_missing_run}git"}
18393
18394
18395 # Version
18396
18397
18398
18399
18400 HB_VERSION_MAJOR=2
18401 HB_VERSION_MINOR=4
18402 HB_VERSION_MICRO=0
18403 HB_VERSION=2.4.0
18404
18405
18406
18407
18408
18409 # Libtool version
18410
18411
18412
18413
18414 HB_LIBTOOL_VERSION_INFO=20400:0:20400
18415
18416
18417
18418 # Check whether --with-libstdc++ was given.
18419 if test "${with_libstdc__+set}" = set; then :
18420   withval=$with_libstdc__; with_libstdcxx=$withval
18421 else
18422   with_libstdcxx=no
18423 fi
18424
18425  if test "x$with_libstdcxx" = "xyes"; then
18426   WITH_LIBSTDCXX_TRUE=
18427   WITH_LIBSTDCXX_FALSE='#'
18428 else
18429   WITH_LIBSTDCXX_TRUE='#'
18430   WITH_LIBSTDCXX_FALSE=
18431 fi
18432
18433
18434 # Documentation
18435 have_gtk_doc=false
18436
18437
18438
18439
18440   gtk_doc_requires="gtk-doc >= 1.15"
18441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
18442 $as_echo_n "checking for gtk-doc... " >&6; }
18443   if test -n "$PKG_CONFIG" && \
18444     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
18445   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
18446   ac_status=$?
18447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18448   test $ac_status = 0; }; then
18449   have_gtk_doc=yes
18450 else
18451   have_gtk_doc=no
18452 fi
18453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
18454 $as_echo "$have_gtk_doc" >&6; }
18455
18456   if test "$have_gtk_doc" = "no"; then
18457       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18458   You will not be able to create source packages with 'make dist'
18459   because $gtk_doc_requires is not found." >&5
18460 $as_echo "$as_me: WARNING:
18461   You will not be able to create source packages with 'make dist'
18462   because $gtk_doc_requires is not found." >&2;}
18463   fi
18464
18465             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18466 set dummy gtkdoc-check; ac_word=$2
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18468 $as_echo_n "checking for $ac_word... " >&6; }
18469 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
18470   $as_echo_n "(cached) " >&6
18471 else
18472   if test -n "$GTKDOC_CHECK"; then
18473   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
18474 else
18475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18476 for as_dir in $PATH
18477 do
18478   IFS=$as_save_IFS
18479   test -z "$as_dir" && as_dir=.
18480     for ac_exec_ext in '' $ac_executable_extensions; do
18481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18482     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
18483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18484     break 2
18485   fi
18486 done
18487   done
18488 IFS=$as_save_IFS
18489
18490 fi
18491 fi
18492 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
18493 if test -n "$GTKDOC_CHECK"; then
18494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18495 $as_echo "$GTKDOC_CHECK" >&6; }
18496 else
18497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18498 $as_echo "no" >&6; }
18499 fi
18500
18501
18502   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18503 set dummy gtkdoc-check; ac_word=$2
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18505 $as_echo_n "checking for $ac_word... " >&6; }
18506 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
18507   $as_echo_n "(cached) " >&6
18508 else
18509   case $GTKDOC_CHECK_PATH in
18510   [\\/]* | ?:[\\/]*)
18511   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
18512   ;;
18513   *)
18514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18515 for as_dir in $PATH
18516 do
18517   IFS=$as_save_IFS
18518   test -z "$as_dir" && as_dir=.
18519     for ac_exec_ext in '' $ac_executable_extensions; do
18520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18521     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
18522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18523     break 2
18524   fi
18525 done
18526   done
18527 IFS=$as_save_IFS
18528
18529   ;;
18530 esac
18531 fi
18532 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
18533 if test -n "$GTKDOC_CHECK_PATH"; then
18534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
18535 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
18536 else
18537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538 $as_echo "no" >&6; }
18539 fi
18540
18541
18542   for ac_prog in gtkdoc-rebase
18543 do
18544   # Extract the first word of "$ac_prog", so it can be a program name with args.
18545 set dummy $ac_prog; ac_word=$2
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18547 $as_echo_n "checking for $ac_word... " >&6; }
18548 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
18549   $as_echo_n "(cached) " >&6
18550 else
18551   case $GTKDOC_REBASE in
18552   [\\/]* | ?:[\\/]*)
18553   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18554   ;;
18555   *)
18556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18557 for as_dir in $PATH
18558 do
18559   IFS=$as_save_IFS
18560   test -z "$as_dir" && as_dir=.
18561     for ac_exec_ext in '' $ac_executable_extensions; do
18562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18563     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18565     break 2
18566   fi
18567 done
18568   done
18569 IFS=$as_save_IFS
18570
18571   ;;
18572 esac
18573 fi
18574 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18575 if test -n "$GTKDOC_REBASE"; then
18576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18577 $as_echo "$GTKDOC_REBASE" >&6; }
18578 else
18579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 $as_echo "no" >&6; }
18581 fi
18582
18583
18584   test -n "$GTKDOC_REBASE" && break
18585 done
18586 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18587
18588   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18589 set dummy gtkdoc-mkpdf; ac_word=$2
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18591 $as_echo_n "checking for $ac_word... " >&6; }
18592 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
18593   $as_echo_n "(cached) " >&6
18594 else
18595   case $GTKDOC_MKPDF in
18596   [\\/]* | ?:[\\/]*)
18597   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18598   ;;
18599   *)
18600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18601 for as_dir in $PATH
18602 do
18603   IFS=$as_save_IFS
18604   test -z "$as_dir" && as_dir=.
18605     for ac_exec_ext in '' $ac_executable_extensions; do
18606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18607     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18609     break 2
18610   fi
18611 done
18612   done
18613 IFS=$as_save_IFS
18614
18615   ;;
18616 esac
18617 fi
18618 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18619 if test -n "$GTKDOC_MKPDF"; then
18620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18621 $as_echo "$GTKDOC_MKPDF" >&6; }
18622 else
18623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624 $as_echo "no" >&6; }
18625 fi
18626
18627
18628
18629
18630 # Check whether --with-html-dir was given.
18631 if test "${with_html_dir+set}" = set; then :
18632   withval=$with_html_dir;
18633 else
18634   with_html_dir='${datadir}/gtk-doc/html'
18635 fi
18636
18637   HTML_DIR="$with_html_dir"
18638
18639
18640     # Check whether --enable-gtk-doc was given.
18641 if test "${enable_gtk_doc+set}" = set; then :
18642   enableval=$enable_gtk_doc;
18643 else
18644   enable_gtk_doc=no
18645 fi
18646
18647
18648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18649 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18651 $as_echo "$enable_gtk_doc" >&6; }
18652
18653   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
18654     as_fn_error $? "
18655   You must have $gtk_doc_requires installed to build documentation for
18656   $PACKAGE_NAME. Please install gtk-doc or disable building the
18657   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
18658   fi
18659
18660     if test "x$PACKAGE_NAME" != "xglib"; then
18661
18662 pkg_failed=no
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
18664 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
18665
18666 if test -n "$GTKDOC_DEPS_CFLAGS"; then
18667     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
18668  elif test -n "$PKG_CONFIG"; then
18669     if test -n "$PKG_CONFIG" && \
18670     { { $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
18671   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
18672   ac_status=$?
18673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18674   test $ac_status = 0; }; then
18675   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
18676                       test "x$?" != "x0" && pkg_failed=yes
18677 else
18678   pkg_failed=yes
18679 fi
18680  else
18681     pkg_failed=untried
18682 fi
18683 if test -n "$GTKDOC_DEPS_LIBS"; then
18684     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
18685  elif test -n "$PKG_CONFIG"; then
18686     if test -n "$PKG_CONFIG" && \
18687     { { $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
18688   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
18689   ac_status=$?
18690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18691   test $ac_status = 0; }; then
18692   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
18693                       test "x$?" != "x0" && pkg_failed=yes
18694 else
18695   pkg_failed=yes
18696 fi
18697  else
18698     pkg_failed=untried
18699 fi
18700
18701
18702
18703 if test $pkg_failed = yes; then
18704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18705 $as_echo "no" >&6; }
18706
18707 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18708         _pkg_short_errors_supported=yes
18709 else
18710         _pkg_short_errors_supported=no
18711 fi
18712         if test $_pkg_short_errors_supported = yes; then
18713                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
18714         else
18715                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
18716         fi
18717         # Put the nasty error message in config.log where it belongs
18718         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
18719
18720         :
18721 elif test $pkg_failed = untried; then
18722         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18723 $as_echo "no" >&6; }
18724         :
18725 else
18726         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
18727         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
18728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18729 $as_echo "yes" >&6; }
18730
18731 fi
18732   fi
18733
18734     # Check whether --enable-gtk-doc-html was given.
18735 if test "${enable_gtk_doc_html+set}" = set; then :
18736   enableval=$enable_gtk_doc_html;
18737 else
18738   enable_gtk_doc_html=yes
18739 fi
18740
18741     # Check whether --enable-gtk-doc-pdf was given.
18742 if test "${enable_gtk_doc_pdf+set}" = set; then :
18743   enableval=$enable_gtk_doc_pdf;
18744 else
18745   enable_gtk_doc_pdf=no
18746 fi
18747
18748
18749   if test -z "$GTKDOC_MKPDF"; then
18750     enable_gtk_doc_pdf=no
18751   fi
18752
18753   if test -z "$AM_DEFAULT_VERBOSITY"; then
18754     AM_DEFAULT_VERBOSITY=1
18755   fi
18756
18757
18758    if test x$have_gtk_doc = xyes; then
18759   HAVE_GTK_DOC_TRUE=
18760   HAVE_GTK_DOC_FALSE='#'
18761 else
18762   HAVE_GTK_DOC_TRUE='#'
18763   HAVE_GTK_DOC_FALSE=
18764 fi
18765
18766    if test x$enable_gtk_doc = xyes; then
18767   ENABLE_GTK_DOC_TRUE=
18768   ENABLE_GTK_DOC_FALSE='#'
18769 else
18770   ENABLE_GTK_DOC_TRUE='#'
18771   ENABLE_GTK_DOC_FALSE=
18772 fi
18773
18774    if test x$enable_gtk_doc_html = xyes; then
18775   GTK_DOC_BUILD_HTML_TRUE=
18776   GTK_DOC_BUILD_HTML_FALSE='#'
18777 else
18778   GTK_DOC_BUILD_HTML_TRUE='#'
18779   GTK_DOC_BUILD_HTML_FALSE=
18780 fi
18781
18782    if test x$enable_gtk_doc_pdf = xyes; then
18783   GTK_DOC_BUILD_PDF_TRUE=
18784   GTK_DOC_BUILD_PDF_FALSE='#'
18785 else
18786   GTK_DOC_BUILD_PDF_TRUE='#'
18787   GTK_DOC_BUILD_PDF_FALSE=
18788 fi
18789
18790    if test -n "$LIBTOOL"; then
18791   GTK_DOC_USE_LIBTOOL_TRUE=
18792   GTK_DOC_USE_LIBTOOL_FALSE='#'
18793 else
18794   GTK_DOC_USE_LIBTOOL_TRUE='#'
18795   GTK_DOC_USE_LIBTOOL_FALSE=
18796 fi
18797
18798    if test -n "$GTKDOC_REBASE"; then
18799   GTK_DOC_USE_REBASE_TRUE=
18800   GTK_DOC_USE_REBASE_FALSE='#'
18801 else
18802   GTK_DOC_USE_REBASE_TRUE='#'
18803   GTK_DOC_USE_REBASE_FALSE=
18804 fi
18805
18806
18807         if test "x$enable_gtk_doc" = xyes; then
18808                 have_gtk_doc=true
18809         fi
18810
18811
18812 # Functions and headers
18813 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l posix_memalign
18814 do :
18815   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18817 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18818   cat >>confdefs.h <<_ACEOF
18819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18820 _ACEOF
18821
18822 fi
18823 done
18824
18825
18826 save_libs="$LIBS"
18827 LIBS="$LIBS -lm"
18828 for ac_func in round
18829 do :
18830   ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
18831 if test "x$ac_cv_func_round" = xyes; then :
18832   cat >>confdefs.h <<_ACEOF
18833 #define HAVE_ROUND 1
18834 _ACEOF
18835
18836 else
18837   ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h>
18838 "
18839 if test "x$ac_cv_have_decl_round" = xyes; then :
18840   ac_have_decl=1
18841 else
18842   ac_have_decl=0
18843 fi
18844
18845 cat >>confdefs.h <<_ACEOF
18846 #define HAVE_DECL_ROUND $ac_have_decl
18847 _ACEOF
18848
18849 fi
18850 done
18851
18852 LIBS="$save_libs"
18853
18854 for ac_header in unistd.h sys/mman.h xlocale.h stdbool.h
18855 do :
18856   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18857 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18858 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18859   cat >>confdefs.h <<_ACEOF
18860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18861 _ACEOF
18862
18863 fi
18864
18865 done
18866
18867
18868 # Compiler flags
18869
18870 # The cast to long int works around a bug in the HP C Compiler,
18871 # see AC_CHECK_SIZEOF for more information.
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
18873 $as_echo_n "checking alignment of struct{char;}... " >&6; }
18874 if ${ac_cv_alignof_struct_char__+:} false; then :
18875   $as_echo_n "(cached) " >&6
18876 else
18877   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
18878 #ifndef offsetof
18879 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18880 #endif
18881 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
18882
18883 else
18884   if test "$ac_cv_type_struct_char__" = yes; then
18885      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18887 as_fn_error 77 "cannot compute alignment of struct{char;}
18888 See \`config.log' for more details" "$LINENO" 5; }
18889    else
18890      ac_cv_alignof_struct_char__=0
18891    fi
18892 fi
18893
18894 fi
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
18896 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
18897
18898
18899
18900 cat >>confdefs.h <<_ACEOF
18901 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
18902 _ACEOF
18903
18904
18905 if test "x$GCC" = "xyes"; then
18906
18907         # Make symbols link locally
18908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
18909 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
18910 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
18911   $as_echo_n "(cached) " >&6
18912 else
18913
18914   ax_check_save_flags=$LDFLAGS
18915   LDFLAGS="$LDFLAGS  -Bsymbolic-functions"
18916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917 /* end confdefs.h.  */
18918
18919 int
18920 main ()
18921 {
18922
18923   ;
18924   return 0;
18925 }
18926 _ACEOF
18927 if ac_fn_c_try_link "$LINENO"; then :
18928   ax_cv_check_ldflags___Bsymbolic_functions=yes
18929 else
18930   ax_cv_check_ldflags___Bsymbolic_functions=no
18931 fi
18932 rm -f core conftest.err conftest.$ac_objext \
18933     conftest$ac_exeext conftest.$ac_ext
18934   LDFLAGS=$ax_check_save_flags
18935 fi
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
18937 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
18938 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
18939   LDFLAGS="$LDFLAGS -Bsymbolic-functions"
18940 else
18941   :
18942 fi
18943
18944
18945         # Make it possible to not link to libstdc++
18946         # No threadsafe statics in C++ as we do it ourselves.
18947         # We don't use these features, so it's safe to disable them
18948         # even in the cases where we DO link to libstdc++.
18949         # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
18950         # by overriding CXXFLAGS.
18951         CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
18952
18953         case "$host" in
18954                 *-*-mingw*)
18955                 ;;
18956                 *)
18957                         # Hide inline methods
18958                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
18959                 ;;
18960         esac
18961
18962         case "$host" in
18963                 arm-*-*)
18964                         if test "x$ac_cv_alignof_struct_char__" != x1; then
18965                                 # Request byte alignment
18966                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
18967                         fi
18968                 ;;
18969         esac
18970 fi
18971
18972  if test "x$GCC" = "xyes"; then
18973   HAVE_GCC_TRUE=
18974   HAVE_GCC_FALSE='#'
18975 else
18976   HAVE_GCC_TRUE='#'
18977   HAVE_GCC_FALSE=
18978 fi
18979
18980
18981 hb_os_win32=no
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
18983 $as_echo_n "checking for native Win32... " >&6; }
18984 case "$host" in
18985   *-*-mingw*)
18986     hb_os_win32=yes
18987     ;;
18988 esac
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
18990 $as_echo "$hb_os_win32" >&6; }
18991  if test "$hb_os_win32" = "yes"; then
18992   OS_WIN32_TRUE=
18993   OS_WIN32_FALSE='#'
18994 else
18995   OS_WIN32_TRUE='#'
18996   OS_WIN32_FALSE=
18997 fi
18998
18999
19000 have_pthread=false
19001 if test "$hb_os_win32" = no; then
19002
19003
19004
19005
19006 ac_ext=c
19007 ac_cpp='$CPP $CPPFLAGS'
19008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19011
19012 ax_pthread_ok=no
19013
19014 # We used to check for pthread.h first, but this fails if pthread.h
19015 # requires special compiler flags (e.g. on Tru64 or Sequent).
19016 # It gets checked for in the link test anyway.
19017
19018 # First of all, check if the user has set any of the PTHREAD_LIBS,
19019 # etcetera environment variables, and if threads linking works using
19020 # them:
19021 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19022         ax_pthread_save_CC="$CC"
19023         ax_pthread_save_CFLAGS="$CFLAGS"
19024         ax_pthread_save_LIBS="$LIBS"
19025         if test "x$PTHREAD_CC" != "x"; then :
19026   CC="$PTHREAD_CC"
19027 fi
19028         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19029         LIBS="$PTHREAD_LIBS $LIBS"
19030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19031 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19032         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033 /* end confdefs.h.  */
19034
19035 /* Override any GCC internal prototype to avoid an error.
19036    Use char because int might match the return type of a GCC
19037    builtin and then its argument prototype would still apply.  */
19038 #ifdef __cplusplus
19039 extern "C"
19040 #endif
19041 char pthread_join ();
19042 int
19043 main ()
19044 {
19045 return pthread_join ();
19046   ;
19047   return 0;
19048 }
19049 _ACEOF
19050 if ac_fn_c_try_link "$LINENO"; then :
19051   ax_pthread_ok=yes
19052 fi
19053 rm -f core conftest.err conftest.$ac_objext \
19054     conftest$ac_exeext conftest.$ac_ext
19055         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19056 $as_echo "$ax_pthread_ok" >&6; }
19057         if test "x$ax_pthread_ok" = "xno"; then
19058                 PTHREAD_LIBS=""
19059                 PTHREAD_CFLAGS=""
19060         fi
19061         CC="$ax_pthread_save_CC"
19062         CFLAGS="$ax_pthread_save_CFLAGS"
19063         LIBS="$ax_pthread_save_LIBS"
19064 fi
19065
19066 # We must check for the threads library under a number of different
19067 # names; the ordering is very important because some systems
19068 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19069 # libraries is broken (non-POSIX).
19070
19071 # Create a list of thread flags to try.  Items starting with a "-" are
19072 # C compiler flags, and other items are library names, except for "none"
19073 # which indicates that we try without any flags at all, and "pthread-config"
19074 # which is a program returning the flags for the Pth emulation library.
19075
19076 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19077
19078 # The ordering *is* (sometimes) important.  Some notes on the
19079 # individual items follow:
19080
19081 # pthreads: AIX (must check this before -lpthread)
19082 # none: in case threads are in libc; should be tried before -Kthread and
19083 #       other compiler flags to prevent continual compiler warnings
19084 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19085 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19086 #           (Note: HP C rejects this with "bad form for `-t' option")
19087 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19088 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19089 #      doesn't hurt to check since this sometimes defines pthreads and
19090 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
19091 #      is present but should not be used directly; and before -mthreads,
19092 #      because the compiler interprets this as "-mt" + "-hreads")
19093 # -mthreads: Mingw32/gcc, Lynx/gcc
19094 # pthread: Linux, etcetera
19095 # --thread-safe: KAI C++
19096 # pthread-config: use pthread-config program (for GNU Pth library)
19097
19098 case $host_os in
19099
19100         freebsd*)
19101
19102         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19103         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19104
19105         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19106         ;;
19107
19108         hpux*)
19109
19110         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19111         # multi-threading and also sets -lpthread."
19112
19113         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19114         ;;
19115
19116         openedition*)
19117
19118         # IBM z/OS requires a feature-test macro to be defined in order to
19119         # enable POSIX threads at all, so give the user a hint if this is
19120         # not set. (We don't define these ourselves, as they can affect
19121         # other portions of the system API in unpredictable ways.)
19122
19123         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h.  */
19125
19126 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19127              AX_PTHREAD_ZOS_MISSING
19128 #            endif
19129
19130 _ACEOF
19131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19132   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19133   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19134 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19135 fi
19136 rm -f conftest*
19137
19138         ;;
19139
19140         solaris*)
19141
19142         # On Solaris (at least, for some versions), libc contains stubbed
19143         # (non-functional) versions of the pthreads routines, so link-based
19144         # tests will erroneously succeed. (N.B.: The stubs are missing
19145         # pthread_cleanup_push, or rather a function called by this macro,
19146         # so we could check for that, but who knows whether they'll stub
19147         # that too in a future libc.)  So we'll check first for the
19148         # standard Solaris way of linking pthreads (-mt -lpthread).
19149
19150         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
19151         ;;
19152 esac
19153
19154 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19155
19156 if test "x$GCC" = "xyes"; then :
19157   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
19158 fi
19159
19160 # The presence of a feature test macro requesting re-entrant function
19161 # definitions is, on some systems, a strong hint that pthreads support is
19162 # correctly enabled
19163
19164 case $host_os in
19165         darwin* | hpux* | linux* | osf* | solaris*)
19166         ax_pthread_check_macro="_REENTRANT"
19167         ;;
19168
19169         aix*)
19170         ax_pthread_check_macro="_THREAD_SAFE"
19171         ;;
19172
19173         *)
19174         ax_pthread_check_macro="--"
19175         ;;
19176 esac
19177 if test "x$ax_pthread_check_macro" = "x--"; then :
19178   ax_pthread_check_cond=0
19179 else
19180   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19181 fi
19182
19183 # Are we compiling with Clang?
19184
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19186 $as_echo_n "checking whether $CC is Clang... " >&6; }
19187 if ${ax_cv_PTHREAD_CLANG+:} false; then :
19188   $as_echo_n "(cached) " >&6
19189 else
19190   ax_cv_PTHREAD_CLANG=no
19191      # Note that Autoconf sets GCC=yes for Clang as well as GCC
19192      if test "x$GCC" = "xyes"; then
19193         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h.  */
19195 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19196 #            if defined(__clang__) && defined(__llvm__)
19197              AX_PTHREAD_CC_IS_CLANG
19198 #            endif
19199
19200 _ACEOF
19201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19202   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
19203   ax_cv_PTHREAD_CLANG=yes
19204 fi
19205 rm -f conftest*
19206
19207      fi
19208
19209 fi
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19211 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
19212 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19213
19214 ax_pthread_clang_warning=no
19215
19216 # Clang needs special handling, because older versions handle the -pthread
19217 # option in a rather... idiosyncratic way
19218
19219 if test "x$ax_pthread_clang" = "xyes"; then
19220
19221         # Clang takes -pthread; it has never supported any other flag
19222
19223         # (Note 1: This will need to be revisited if a system that Clang
19224         # supports has POSIX threads in a separate library.  This tends not
19225         # to be the way of modern systems, but it's conceivable.)
19226
19227         # (Note 2: On some systems, notably Darwin, -pthread is not needed
19228         # to get POSIX threads support; the API is always present and
19229         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
19230         # -pthread does define _REENTRANT, and while the Darwin headers
19231         # ignore this macro, third-party headers might not.)
19232
19233         PTHREAD_CFLAGS="-pthread"
19234         PTHREAD_LIBS=
19235
19236         ax_pthread_ok=yes
19237
19238         # However, older versions of Clang make a point of warning the user
19239         # that, in an invocation where only linking and no compilation is
19240         # taking place, the -pthread option has no effect ("argument unused
19241         # during compilation").  They expect -pthread to be passed in only
19242         # when source code is being compiled.
19243         #
19244         # Problem is, this is at odds with the way Automake and most other
19245         # C build frameworks function, which is that the same flags used in
19246         # compilation (CFLAGS) are also used in linking.  Many systems
19247         # supported by AX_PTHREAD require exactly this for POSIX threads
19248         # support, and in fact it is often not straightforward to specify a
19249         # flag that is used only in the compilation phase and not in
19250         # linking.  Such a scenario is extremely rare in practice.
19251         #
19252         # Even though use of the -pthread flag in linking would only print
19253         # a warning, this can be a nuisance for well-run software projects
19254         # that build with -Werror.  So if the active version of Clang has
19255         # this misfeature, we search for an option to squash it.
19256
19257         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
19258 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
19259 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
19260   $as_echo_n "(cached) " >&6
19261 else
19262   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
19263              # Create an alternate version of $ac_link that compiles and
19264              # links in two steps (.c -> .o, .o -> exe) instead of one
19265              # (.c -> exe), because the warning occurs only in the second
19266              # step
19267              ax_pthread_save_ac_link="$ac_link"
19268              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
19269              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
19270              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
19271              ax_pthread_save_CFLAGS="$CFLAGS"
19272              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
19273                 if test "x$ax_pthread_try" = "xunknown"; then :
19274   break
19275 fi
19276                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
19277                 ac_link="$ax_pthread_save_ac_link"
19278                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h.  */
19280 int main(void){return 0;}
19281 _ACEOF
19282 if ac_fn_c_try_link "$LINENO"; then :
19283   ac_link="$ax_pthread_2step_ac_link"
19284                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h.  */
19286 int main(void){return 0;}
19287 _ACEOF
19288 if ac_fn_c_try_link "$LINENO"; then :
19289   break
19290 fi
19291 rm -f core conftest.err conftest.$ac_objext \
19292     conftest$ac_exeext conftest.$ac_ext
19293
19294 fi
19295 rm -f core conftest.err conftest.$ac_objext \
19296     conftest$ac_exeext conftest.$ac_ext
19297              done
19298              ac_link="$ax_pthread_save_ac_link"
19299              CFLAGS="$ax_pthread_save_CFLAGS"
19300              if test "x$ax_pthread_try" = "x"; then :
19301   ax_pthread_try=no
19302 fi
19303              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
19304
19305 fi
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
19307 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
19308
19309         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
19310                 no | unknown) ;;
19311                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
19312         esac
19313
19314 fi # $ax_pthread_clang = yes
19315
19316 if test "x$ax_pthread_ok" = "xno"; then
19317 for ax_pthread_try_flag in $ax_pthread_flags; do
19318
19319         case $ax_pthread_try_flag in
19320                 none)
19321                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19322 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19323                 ;;
19324
19325                 -mt,pthread)
19326                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19327 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19328                 PTHREAD_CFLAGS="-mt"
19329                 PTHREAD_LIBS="-lpthread"
19330                 ;;
19331
19332                 -*)
19333                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19334 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19335                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
19336                 ;;
19337
19338                 pthread-config)
19339                 # Extract the first word of "pthread-config", so it can be a program name with args.
19340 set dummy pthread-config; ac_word=$2
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19342 $as_echo_n "checking for $ac_word... " >&6; }
19343 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19344   $as_echo_n "(cached) " >&6
19345 else
19346   if test -n "$ax_pthread_config"; then
19347   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19348 else
19349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19350 for as_dir in $PATH
19351 do
19352   IFS=$as_save_IFS
19353   test -z "$as_dir" && as_dir=.
19354     for ac_exec_ext in '' $ac_executable_extensions; do
19355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19356     ac_cv_prog_ax_pthread_config="yes"
19357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19358     break 2
19359   fi
19360 done
19361   done
19362 IFS=$as_save_IFS
19363
19364   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19365 fi
19366 fi
19367 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19368 if test -n "$ax_pthread_config"; then
19369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19370 $as_echo "$ax_pthread_config" >&6; }
19371 else
19372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19373 $as_echo "no" >&6; }
19374 fi
19375
19376
19377                 if test "x$ax_pthread_config" = "xno"; then :
19378   continue
19379 fi
19380                 PTHREAD_CFLAGS="`pthread-config --cflags`"
19381                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19382                 ;;
19383
19384                 *)
19385                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19386 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19387                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
19388                 ;;
19389         esac
19390
19391         ax_pthread_save_CFLAGS="$CFLAGS"
19392         ax_pthread_save_LIBS="$LIBS"
19393         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19394         LIBS="$PTHREAD_LIBS $LIBS"
19395
19396         # Check for various functions.  We must include pthread.h,
19397         # since some functions may be macros.  (On the Sequent, we
19398         # need a special flag -Kthread to make this header compile.)
19399         # We check for pthread_join because it is in -lpthread on IRIX
19400         # while pthread_create is in libc.  We check for pthread_attr_init
19401         # due to DEC craziness with -lpthreads.  We check for
19402         # pthread_cleanup_push because it is one of the few pthread
19403         # functions on Solaris that doesn't have a non-functional libc stub.
19404         # We try pthread_create on general principles.
19405
19406         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407 /* end confdefs.h.  */
19408 #include <pthread.h>
19409 #                       if $ax_pthread_check_cond
19410 #                        error "$ax_pthread_check_macro must be defined"
19411 #                       endif
19412                         static void routine(void *a) { a = 0; }
19413                         static void *start_routine(void *a) { return a; }
19414 int
19415 main ()
19416 {
19417 pthread_t th; pthread_attr_t attr;
19418                         pthread_create(&th, 0, start_routine, 0);
19419                         pthread_join(th, 0);
19420                         pthread_attr_init(&attr);
19421                         pthread_cleanup_push(routine, 0);
19422                         pthread_cleanup_pop(0) /* ; */
19423   ;
19424   return 0;
19425 }
19426 _ACEOF
19427 if ac_fn_c_try_link "$LINENO"; then :
19428   ax_pthread_ok=yes
19429 fi
19430 rm -f core conftest.err conftest.$ac_objext \
19431     conftest$ac_exeext conftest.$ac_ext
19432
19433         CFLAGS="$ax_pthread_save_CFLAGS"
19434         LIBS="$ax_pthread_save_LIBS"
19435
19436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19437 $as_echo "$ax_pthread_ok" >&6; }
19438         if test "x$ax_pthread_ok" = "xyes"; then :
19439   break
19440 fi
19441
19442         PTHREAD_LIBS=""
19443         PTHREAD_CFLAGS=""
19444 done
19445 fi
19446
19447 # Various other checks:
19448 if test "x$ax_pthread_ok" = "xyes"; then
19449         ax_pthread_save_CFLAGS="$CFLAGS"
19450         ax_pthread_save_LIBS="$LIBS"
19451         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19452         LIBS="$PTHREAD_LIBS $LIBS"
19453
19454         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19456 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19457 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19458   $as_echo_n "(cached) " >&6
19459 else
19460   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19461              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19462                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h.  */
19464 #include <pthread.h>
19465 int
19466 main ()
19467 {
19468 int attr = $ax_pthread_attr; return attr /* ; */
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 if ac_fn_c_try_link "$LINENO"; then :
19474   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
19475 fi
19476 rm -f core conftest.err conftest.$ac_objext \
19477     conftest$ac_exeext conftest.$ac_ext
19478              done
19479
19480 fi
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19482 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19483         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
19484                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
19485                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
19486
19487 cat >>confdefs.h <<_ACEOF
19488 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19489 _ACEOF
19490
19491                ax_pthread_joinable_attr_defined=yes
19492
19493 fi
19494
19495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
19496 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
19497 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19498   $as_echo_n "(cached) " >&6
19499 else
19500   ax_cv_PTHREAD_SPECIAL_FLAGS=no
19501              case $host_os in
19502              solaris*)
19503              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
19504              ;;
19505              esac
19506
19507 fi
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19509 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19510         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19511                test "x$ax_pthread_special_flags_added" != "xyes"; then :
19512   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19513                ax_pthread_special_flags_added=yes
19514 fi
19515
19516         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19517 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19518 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19519   $as_echo_n "(cached) " >&6
19520 else
19521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h.  */
19523 #include <pthread.h>
19524 int
19525 main ()
19526 {
19527 int i = PTHREAD_PRIO_INHERIT;
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 if ac_fn_c_try_link "$LINENO"; then :
19533   ax_cv_PTHREAD_PRIO_INHERIT=yes
19534 else
19535   ax_cv_PTHREAD_PRIO_INHERIT=no
19536 fi
19537 rm -f core conftest.err conftest.$ac_objext \
19538     conftest$ac_exeext conftest.$ac_ext
19539
19540 fi
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19542 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19543         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
19544                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
19545
19546 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19547
19548                ax_pthread_prio_inherit_defined=yes
19549
19550 fi
19551
19552         CFLAGS="$ax_pthread_save_CFLAGS"
19553         LIBS="$ax_pthread_save_LIBS"
19554
19555         # More AIX lossage: compile with *_r variant
19556         if test "x$GCC" != "xyes"; then
19557             case $host_os in
19558                 aix*)
19559                 case "x/$CC" in #(
19560   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19561     #handle absolute path differently from PATH based program lookup
19562                      case "x$CC" in #(
19563   x/*) :
19564     if as_fn_executable_p ${CC}_r; then :
19565   PTHREAD_CC="${CC}_r"
19566 fi ;; #(
19567   *) :
19568     for ac_prog in ${CC}_r
19569 do
19570   # Extract the first word of "$ac_prog", so it can be a program name with args.
19571 set dummy $ac_prog; ac_word=$2
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19573 $as_echo_n "checking for $ac_word... " >&6; }
19574 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19575   $as_echo_n "(cached) " >&6
19576 else
19577   if test -n "$PTHREAD_CC"; then
19578   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19579 else
19580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19581 for as_dir in $PATH
19582 do
19583   IFS=$as_save_IFS
19584   test -z "$as_dir" && as_dir=.
19585     for ac_exec_ext in '' $ac_executable_extensions; do
19586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19587     ac_cv_prog_PTHREAD_CC="$ac_prog"
19588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19589     break 2
19590   fi
19591 done
19592   done
19593 IFS=$as_save_IFS
19594
19595 fi
19596 fi
19597 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19598 if test -n "$PTHREAD_CC"; then
19599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19600 $as_echo "$PTHREAD_CC" >&6; }
19601 else
19602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19603 $as_echo "no" >&6; }
19604 fi
19605
19606
19607   test -n "$PTHREAD_CC" && break
19608 done
19609 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19610  ;;
19611 esac ;; #(
19612   *) :
19613      ;;
19614 esac
19615                 ;;
19616             esac
19617         fi
19618 fi
19619
19620 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19621
19622
19623
19624
19625
19626 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19627 if test "x$ax_pthread_ok" = "xyes"; then
19628         have_pthread=true
19629         :
19630 else
19631         ax_pthread_ok=no
19632
19633 fi
19634 ac_ext=c
19635 ac_cpp='$CPP $CPPFLAGS'
19636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19639
19640
19641 fi
19642 if $have_pthread; then
19643
19644 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19645
19646 fi
19647  if $have_pthread; then
19648   HAVE_PTHREAD_TRUE=
19649   HAVE_PTHREAD_FALSE='#'
19650 else
19651   HAVE_PTHREAD_TRUE='#'
19652   HAVE_PTHREAD_FALSE=
19653 fi
19654
19655
19656
19657 have_fallback=true
19658 if $have_fallback; then
19659
19660 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
19661
19662 fi
19663  if $have_fallback; then
19664   HAVE_FALLBACK_TRUE=
19665   HAVE_FALLBACK_FALSE='#'
19666 else
19667   HAVE_FALLBACK_TRUE='#'
19668   HAVE_FALLBACK_FALSE=
19669 fi
19670
19671
19672
19673
19674 # Check whether --with-glib was given.
19675 if test "${with_glib+set}" = set; then :
19676   withval=$with_glib;
19677 else
19678   with_glib=auto
19679 fi
19680
19681 have_glib=false
19682 GLIB_DEPS="glib-2.0 >= 2.19.1"
19683
19684 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
19685
19686 pkg_failed=no
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19688 $as_echo_n "checking for GLIB... " >&6; }
19689
19690 if test -n "$GLIB_CFLAGS"; then
19691     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19692  elif test -n "$PKG_CONFIG"; then
19693     if test -n "$PKG_CONFIG" && \
19694     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19695   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19696   ac_status=$?
19697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19698   test $ac_status = 0; }; then
19699   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
19700                       test "x$?" != "x0" && pkg_failed=yes
19701 else
19702   pkg_failed=yes
19703 fi
19704  else
19705     pkg_failed=untried
19706 fi
19707 if test -n "$GLIB_LIBS"; then
19708     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19709  elif test -n "$PKG_CONFIG"; then
19710     if test -n "$PKG_CONFIG" && \
19711     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19712   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19713   ac_status=$?
19714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19715   test $ac_status = 0; }; then
19716   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
19717                       test "x$?" != "x0" && pkg_failed=yes
19718 else
19719   pkg_failed=yes
19720 fi
19721  else
19722     pkg_failed=untried
19723 fi
19724
19725
19726
19727 if test $pkg_failed = yes; then
19728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19729 $as_echo "no" >&6; }
19730
19731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19732         _pkg_short_errors_supported=yes
19733 else
19734         _pkg_short_errors_supported=no
19735 fi
19736         if test $_pkg_short_errors_supported = yes; then
19737                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
19738         else
19739                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
19740         fi
19741         # Put the nasty error message in config.log where it belongs
19742         echo "$GLIB_PKG_ERRORS" >&5
19743
19744         :
19745 elif test $pkg_failed = untried; then
19746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19747 $as_echo "no" >&6; }
19748         :
19749 else
19750         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19751         GLIB_LIBS=$pkg_cv_GLIB_LIBS
19752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19753 $as_echo "yes" >&6; }
19754         have_glib=true
19755 fi
19756 fi
19757 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
19758         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
19759 fi
19760 if $have_glib; then
19761
19762 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
19763
19764 fi
19765  if $have_glib; then
19766   HAVE_GLIB_TRUE=
19767   HAVE_GLIB_FALSE='#'
19768 else
19769   HAVE_GLIB_TRUE='#'
19770   HAVE_GLIB_FALSE=
19771 fi
19772
19773
19774
19775
19776 # Check whether --with-gobject was given.
19777 if test "${with_gobject+set}" = set; then :
19778   withval=$with_gobject;
19779 else
19780   with_gobject=no
19781 fi
19782
19783 have_gobject=false
19784 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
19785
19786 pkg_failed=no
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
19788 $as_echo_n "checking for GOBJECT... " >&6; }
19789
19790 if test -n "$GOBJECT_CFLAGS"; then
19791     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
19792  elif test -n "$PKG_CONFIG"; then
19793     if test -n "$PKG_CONFIG" && \
19794     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19795   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19796   ac_status=$?
19797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19798   test $ac_status = 0; }; then
19799   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
19800                       test "x$?" != "x0" && pkg_failed=yes
19801 else
19802   pkg_failed=yes
19803 fi
19804  else
19805     pkg_failed=untried
19806 fi
19807 if test -n "$GOBJECT_LIBS"; then
19808     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
19809  elif test -n "$PKG_CONFIG"; then
19810     if test -n "$PKG_CONFIG" && \
19811     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19812   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19813   ac_status=$?
19814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19815   test $ac_status = 0; }; then
19816   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
19817                       test "x$?" != "x0" && pkg_failed=yes
19818 else
19819   pkg_failed=yes
19820 fi
19821  else
19822     pkg_failed=untried
19823 fi
19824
19825
19826
19827 if test $pkg_failed = yes; then
19828         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19829 $as_echo "no" >&6; }
19830
19831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19832         _pkg_short_errors_supported=yes
19833 else
19834         _pkg_short_errors_supported=no
19835 fi
19836         if test $_pkg_short_errors_supported = yes; then
19837                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
19838         else
19839                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
19840         fi
19841         # Put the nasty error message in config.log where it belongs
19842         echo "$GOBJECT_PKG_ERRORS" >&5
19843
19844         :
19845 elif test $pkg_failed = untried; then
19846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19847 $as_echo "no" >&6; }
19848         :
19849 else
19850         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
19851         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
19852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19853 $as_echo "yes" >&6; }
19854         have_gobject=true
19855 fi
19856 fi
19857 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
19858         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
19859 fi
19860 if $have_gobject; then
19861
19862 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
19863
19864         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
19865
19866 fi
19867  if $have_gobject; then
19868   HAVE_GOBJECT_TRUE=
19869   HAVE_GOBJECT_FALSE='#'
19870 else
19871   HAVE_GOBJECT_TRUE='#'
19872   HAVE_GOBJECT_FALSE=
19873 fi
19874
19875
19876
19877
19878
19879 # Gobject-Introspection
19880 have_introspection=false
19881
19882         if $have_gobject; then
19883
19884
19885
19886                 # Check whether --enable-introspection was given.
19887 if test "${enable_introspection+set}" = set; then :
19888   enableval=$enable_introspection;
19889 else
19890   enable_introspection=auto
19891 fi
19892
19893
19894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
19895 $as_echo_n "checking for gobject-introspection... " >&6; }
19896
19897         case $enable_introspection in #(
19898   no) :
19899             found_introspection="no (disabled, use --enable-introspection to enable)"
19900      ;; #(
19901       yes) :
19902             if test -n "$PKG_CONFIG" && \
19903     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
19904   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
19905   ac_status=$?
19906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19907   test $ac_status = 0; }; then
19908   :
19909 else
19910   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
19911 fi
19912         if test -n "$PKG_CONFIG" && \
19913     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19914   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19915   ac_status=$?
19916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19917   test $ac_status = 0; }; then
19918   found_introspection=yes
19919 else
19920   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
19921 fi
19922      ;; #(
19923       auto) :
19924             if test -n "$PKG_CONFIG" && \
19925     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19926   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19927   ac_status=$?
19928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19929   test $ac_status = 0; }; then
19930   found_introspection=yes
19931 else
19932   found_introspection=no
19933 fi
19934                 enable_introspection=$found_introspection
19935      ;; #(
19936   *) :
19937                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
19938      ;;
19939 esac
19940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
19941 $as_echo "$found_introspection" >&6; }
19942
19943     INTROSPECTION_SCANNER=
19944     INTROSPECTION_COMPILER=
19945     INTROSPECTION_GENERATE=
19946     INTROSPECTION_GIRDIR=
19947     INTROSPECTION_TYPELIBDIR=
19948     if test "x$found_introspection" = "xyes"; then
19949        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
19950        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
19951        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
19952        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
19953        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
19954        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
19955        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
19956        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
19957     fi
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967      if test "x$found_introspection" = "xyes"; then
19968   HAVE_INTROSPECTION_TRUE=
19969   HAVE_INTROSPECTION_FALSE='#'
19970 else
19971   HAVE_INTROSPECTION_TRUE='#'
19972   HAVE_INTROSPECTION_FALSE=
19973 fi
19974
19975
19976
19977                 if test "x$found_introspection" = xyes; then
19978                         have_introspection=true
19979                 fi
19980         else
19981                  if false; then
19982   HAVE_INTROSPECTION_TRUE=
19983   HAVE_INTROSPECTION_FALSE='#'
19984 else
19985   HAVE_INTROSPECTION_TRUE='#'
19986   HAVE_INTROSPECTION_FALSE=
19987 fi
19988
19989         fi
19990
19991
19992
19993
19994 # Check whether --with-cairo was given.
19995 if test "${with_cairo+set}" = set; then :
19996   withval=$with_cairo;
19997 else
19998   with_cairo=auto
19999 fi
20000
20001 have_cairo=false
20002 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20003
20004 pkg_failed=no
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20006 $as_echo_n "checking for CAIRO... " >&6; }
20007
20008 if test -n "$CAIRO_CFLAGS"; then
20009     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20010  elif test -n "$PKG_CONFIG"; then
20011     if test -n "$PKG_CONFIG" && \
20012     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20013   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20014   ac_status=$?
20015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20016   test $ac_status = 0; }; then
20017   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20018                       test "x$?" != "x0" && pkg_failed=yes
20019 else
20020   pkg_failed=yes
20021 fi
20022  else
20023     pkg_failed=untried
20024 fi
20025 if test -n "$CAIRO_LIBS"; then
20026     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20027  elif test -n "$PKG_CONFIG"; then
20028     if test -n "$PKG_CONFIG" && \
20029     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20030   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20031   ac_status=$?
20032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20033   test $ac_status = 0; }; then
20034   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20035                       test "x$?" != "x0" && pkg_failed=yes
20036 else
20037   pkg_failed=yes
20038 fi
20039  else
20040     pkg_failed=untried
20041 fi
20042
20043
20044
20045 if test $pkg_failed = yes; then
20046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20047 $as_echo "no" >&6; }
20048
20049 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20050         _pkg_short_errors_supported=yes
20051 else
20052         _pkg_short_errors_supported=no
20053 fi
20054         if test $_pkg_short_errors_supported = yes; then
20055                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20056         else
20057                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
20058         fi
20059         # Put the nasty error message in config.log where it belongs
20060         echo "$CAIRO_PKG_ERRORS" >&5
20061
20062         :
20063 elif test $pkg_failed = untried; then
20064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20065 $as_echo "no" >&6; }
20066         :
20067 else
20068         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20069         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20071 $as_echo "yes" >&6; }
20072         have_cairo=true
20073 fi
20074 fi
20075 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20076         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20077 fi
20078 if $have_cairo; then
20079
20080 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20081
20082 fi
20083  if $have_cairo; then
20084   HAVE_CAIRO_TRUE=
20085   HAVE_CAIRO_FALSE='#'
20086 else
20087   HAVE_CAIRO_TRUE='#'
20088   HAVE_CAIRO_FALSE=
20089 fi
20090
20091
20092 have_cairo_ft=false
20093 if $have_cairo; then
20094
20095 pkg_failed=no
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20097 $as_echo_n "checking for CAIRO_FT... " >&6; }
20098
20099 if test -n "$CAIRO_FT_CFLAGS"; then
20100     pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20101  elif test -n "$PKG_CONFIG"; then
20102     if test -n "$PKG_CONFIG" && \
20103     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20104   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20105   ac_status=$?
20106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20107   test $ac_status = 0; }; then
20108   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20109                       test "x$?" != "x0" && pkg_failed=yes
20110 else
20111   pkg_failed=yes
20112 fi
20113  else
20114     pkg_failed=untried
20115 fi
20116 if test -n "$CAIRO_FT_LIBS"; then
20117     pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20118  elif test -n "$PKG_CONFIG"; then
20119     if test -n "$PKG_CONFIG" && \
20120     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20121   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20122   ac_status=$?
20123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20124   test $ac_status = 0; }; then
20125   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20126                       test "x$?" != "x0" && pkg_failed=yes
20127 else
20128   pkg_failed=yes
20129 fi
20130  else
20131     pkg_failed=untried
20132 fi
20133
20134
20135
20136 if test $pkg_failed = yes; then
20137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20138 $as_echo "no" >&6; }
20139
20140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20141         _pkg_short_errors_supported=yes
20142 else
20143         _pkg_short_errors_supported=no
20144 fi
20145         if test $_pkg_short_errors_supported = yes; then
20146                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
20147         else
20148                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
20149         fi
20150         # Put the nasty error message in config.log where it belongs
20151         echo "$CAIRO_FT_PKG_ERRORS" >&5
20152
20153         :
20154 elif test $pkg_failed = untried; then
20155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20156 $as_echo "no" >&6; }
20157         :
20158 else
20159         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
20160         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
20161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20162 $as_echo "yes" >&6; }
20163         have_cairo_ft=true
20164 fi
20165 fi
20166 if $have_cairo_ft; then
20167
20168 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
20169
20170 fi
20171  if $have_cairo_ft; then
20172   HAVE_CAIRO_FT_TRUE=
20173   HAVE_CAIRO_FT_FALSE='#'
20174 else
20175   HAVE_CAIRO_FT_TRUE='#'
20176   HAVE_CAIRO_FT_FALSE=
20177 fi
20178
20179
20180
20181
20182 # Check whether --with-fontconfig was given.
20183 if test "${with_fontconfig+set}" = set; then :
20184   withval=$with_fontconfig;
20185 else
20186   with_fontconfig=auto
20187 fi
20188
20189 have_fontconfig=false
20190 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
20191
20192 pkg_failed=no
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
20194 $as_echo_n "checking for FONTCONFIG... " >&6; }
20195
20196 if test -n "$FONTCONFIG_CFLAGS"; then
20197     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
20198  elif test -n "$PKG_CONFIG"; then
20199     if test -n "$PKG_CONFIG" && \
20200     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20201   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20202   ac_status=$?
20203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20204   test $ac_status = 0; }; then
20205   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
20206                       test "x$?" != "x0" && pkg_failed=yes
20207 else
20208   pkg_failed=yes
20209 fi
20210  else
20211     pkg_failed=untried
20212 fi
20213 if test -n "$FONTCONFIG_LIBS"; then
20214     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
20215  elif test -n "$PKG_CONFIG"; then
20216     if test -n "$PKG_CONFIG" && \
20217     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20218   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20219   ac_status=$?
20220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20221   test $ac_status = 0; }; then
20222   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
20223                       test "x$?" != "x0" && pkg_failed=yes
20224 else
20225   pkg_failed=yes
20226 fi
20227  else
20228     pkg_failed=untried
20229 fi
20230
20231
20232
20233 if test $pkg_failed = yes; then
20234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20235 $as_echo "no" >&6; }
20236
20237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20238         _pkg_short_errors_supported=yes
20239 else
20240         _pkg_short_errors_supported=no
20241 fi
20242         if test $_pkg_short_errors_supported = yes; then
20243                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
20244         else
20245                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
20246         fi
20247         # Put the nasty error message in config.log where it belongs
20248         echo "$FONTCONFIG_PKG_ERRORS" >&5
20249
20250         :
20251 elif test $pkg_failed = untried; then
20252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20253 $as_echo "no" >&6; }
20254         :
20255 else
20256         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20257         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20259 $as_echo "yes" >&6; }
20260         have_fontconfig=true
20261 fi
20262 fi
20263 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
20264         as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
20265 fi
20266 if $have_fontconfig; then
20267
20268 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
20269
20270 fi
20271  if $have_fontconfig; then
20272   HAVE_FONTCONFIG_TRUE=
20273   HAVE_FONTCONFIG_FALSE='#'
20274 else
20275   HAVE_FONTCONFIG_TRUE='#'
20276   HAVE_FONTCONFIG_FALSE=
20277 fi
20278
20279
20280
20281
20282 # Check whether --with-icu was given.
20283 if test "${with_icu+set}" = set; then :
20284   withval=$with_icu;
20285 else
20286   with_icu=auto
20287 fi
20288
20289 have_icu=false
20290 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
20291
20292 pkg_failed=no
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20294 $as_echo_n "checking for ICU... " >&6; }
20295
20296 if test -n "$ICU_CFLAGS"; then
20297     pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20298  elif test -n "$PKG_CONFIG"; then
20299     if test -n "$PKG_CONFIG" && \
20300     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20301   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20302   ac_status=$?
20303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20304   test $ac_status = 0; }; then
20305   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
20306                       test "x$?" != "x0" && pkg_failed=yes
20307 else
20308   pkg_failed=yes
20309 fi
20310  else
20311     pkg_failed=untried
20312 fi
20313 if test -n "$ICU_LIBS"; then
20314     pkg_cv_ICU_LIBS="$ICU_LIBS"
20315  elif test -n "$PKG_CONFIG"; then
20316     if test -n "$PKG_CONFIG" && \
20317     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20318   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20319   ac_status=$?
20320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20321   test $ac_status = 0; }; then
20322   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
20323                       test "x$?" != "x0" && pkg_failed=yes
20324 else
20325   pkg_failed=yes
20326 fi
20327  else
20328     pkg_failed=untried
20329 fi
20330
20331
20332
20333 if test $pkg_failed = yes; then
20334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20335 $as_echo "no" >&6; }
20336
20337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20338         _pkg_short_errors_supported=yes
20339 else
20340         _pkg_short_errors_supported=no
20341 fi
20342         if test $_pkg_short_errors_supported = yes; then
20343                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
20344         else
20345                 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
20346         fi
20347         # Put the nasty error message in config.log where it belongs
20348         echo "$ICU_PKG_ERRORS" >&5
20349
20350         :
20351 elif test $pkg_failed = untried; then
20352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20353 $as_echo "no" >&6; }
20354         :
20355 else
20356         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20357         ICU_LIBS=$pkg_cv_ICU_LIBS
20358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20359 $as_echo "yes" >&6; }
20360         have_icu=true
20361 fi
20362
20363                 if test "$have_icu" != "true"; then
20364                 if test -n "$ac_tool_prefix"; then
20365   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
20366 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20368 $as_echo_n "checking for $ac_word... " >&6; }
20369 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
20370   $as_echo_n "(cached) " >&6
20371 else
20372   if test -n "$ICU_CONFIG"; then
20373   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
20374 else
20375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20376 for as_dir in $PATH
20377 do
20378   IFS=$as_save_IFS
20379   test -z "$as_dir" && as_dir=.
20380     for ac_exec_ext in '' $ac_executable_extensions; do
20381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20382     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
20383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20384     break 2
20385   fi
20386 done
20387   done
20388 IFS=$as_save_IFS
20389
20390 fi
20391 fi
20392 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
20393 if test -n "$ICU_CONFIG"; then
20394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
20395 $as_echo "$ICU_CONFIG" >&6; }
20396 else
20397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20398 $as_echo "no" >&6; }
20399 fi
20400
20401
20402 fi
20403 if test -z "$ac_cv_prog_ICU_CONFIG"; then
20404   ac_ct_ICU_CONFIG=$ICU_CONFIG
20405   # Extract the first word of "icu-config", so it can be a program name with args.
20406 set dummy icu-config; ac_word=$2
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20408 $as_echo_n "checking for $ac_word... " >&6; }
20409 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
20410   $as_echo_n "(cached) " >&6
20411 else
20412   if test -n "$ac_ct_ICU_CONFIG"; then
20413   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
20414 else
20415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20416 for as_dir in $PATH
20417 do
20418   IFS=$as_save_IFS
20419   test -z "$as_dir" && as_dir=.
20420     for ac_exec_ext in '' $ac_executable_extensions; do
20421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20422     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
20423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20424     break 2
20425   fi
20426 done
20427   done
20428 IFS=$as_save_IFS
20429
20430 fi
20431 fi
20432 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
20433 if test -n "$ac_ct_ICU_CONFIG"; then
20434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
20435 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
20436 else
20437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20438 $as_echo "no" >&6; }
20439 fi
20440
20441   if test "x$ac_ct_ICU_CONFIG" = x; then
20442     ICU_CONFIG="no"
20443   else
20444     case $cross_compiling:$ac_tool_warned in
20445 yes:)
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20448 ac_tool_warned=yes ;;
20449 esac
20450     ICU_CONFIG=$ac_ct_ICU_CONFIG
20451   fi
20452 else
20453   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
20454 fi
20455
20456                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
20457 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
20458                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
20459                         have_icu=true
20460                         # We don't use --cflags as this gives us a lot of things that we don't
20461                         # necessarily want, like debugging and optimization flags
20462                         # See man (1) icu-config for more info.
20463                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
20464                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
20465
20466
20467                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20468 $as_echo "yes" >&6; }
20469                 else
20470                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20471 $as_echo "no" >&6; }
20472                 fi
20473         fi
20474 fi
20475 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
20476         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
20477 fi
20478
20479 if $have_icu; then
20480         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
20481
20482 $as_echo "#define HAVE_ICU 1" >>confdefs.h
20483
20484         if test "x$with_icu" = "xbuiltin"; then
20485
20486 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
20487
20488         fi
20489 fi
20490  if $have_icu; then
20491   HAVE_ICU_TRUE=
20492   HAVE_ICU_FALSE='#'
20493 else
20494   HAVE_ICU_TRUE='#'
20495   HAVE_ICU_FALSE=
20496 fi
20497
20498  if $have_icu && test "x$with_icu" = "xbuiltin"; then
20499   HAVE_ICU_BUILTIN_TRUE=
20500   HAVE_ICU_BUILTIN_FALSE='#'
20501 else
20502   HAVE_ICU_BUILTIN_TRUE='#'
20503   HAVE_ICU_BUILTIN_FALSE=
20504 fi
20505
20506
20507
20508
20509 # Check whether --with-ucdn was given.
20510 if test "${with_ucdn+set}" = set; then :
20511   withval=$with_ucdn;
20512 else
20513   with_ucdn=yes
20514 fi
20515
20516 have_ucdn=false
20517 if test "x$with_ucdn" = "xyes"; then
20518         have_ucdn=true
20519 fi
20520 if $have_ucdn; then
20521
20522 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
20523
20524 fi
20525  if $have_ucdn; then
20526   HAVE_UCDN_TRUE=
20527   HAVE_UCDN_FALSE='#'
20528 else
20529   HAVE_UCDN_TRUE='#'
20530   HAVE_UCDN_FALSE=
20531 fi
20532
20533
20534
20535
20536 # Check whether --with-graphite2 was given.
20537 if test "${with_graphite2+set}" = set; then :
20538   withval=$with_graphite2;
20539 else
20540   with_graphite2=no
20541 fi
20542
20543 have_graphite2=false
20544 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
20545
20546 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
20547
20548 pkg_failed=no
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
20550 $as_echo_n "checking for GRAPHITE2... " >&6; }
20551
20552 if test -n "$GRAPHITE2_CFLAGS"; then
20553     pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
20554  elif test -n "$PKG_CONFIG"; then
20555     if test -n "$PKG_CONFIG" && \
20556     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20557   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20558   ac_status=$?
20559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20560   test $ac_status = 0; }; then
20561   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
20562                       test "x$?" != "x0" && pkg_failed=yes
20563 else
20564   pkg_failed=yes
20565 fi
20566  else
20567     pkg_failed=untried
20568 fi
20569 if test -n "$GRAPHITE2_LIBS"; then
20570     pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
20571  elif test -n "$PKG_CONFIG"; then
20572     if test -n "$PKG_CONFIG" && \
20573     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20574   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20575   ac_status=$?
20576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20577   test $ac_status = 0; }; then
20578   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
20579                       test "x$?" != "x0" && pkg_failed=yes
20580 else
20581   pkg_failed=yes
20582 fi
20583  else
20584     pkg_failed=untried
20585 fi
20586
20587
20588
20589 if test $pkg_failed = yes; then
20590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20591 $as_echo "no" >&6; }
20592
20593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20594         _pkg_short_errors_supported=yes
20595 else
20596         _pkg_short_errors_supported=no
20597 fi
20598         if test $_pkg_short_errors_supported = yes; then
20599                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
20600         else
20601                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
20602         fi
20603         # Put the nasty error message in config.log where it belongs
20604         echo "$GRAPHITE2_PKG_ERRORS" >&5
20605
20606         :
20607 elif test $pkg_failed = untried; then
20608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20609 $as_echo "no" >&6; }
20610         :
20611 else
20612         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
20613         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
20614         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20615 $as_echo "yes" >&6; }
20616         have_graphite2=true
20617 fi
20618         if test "x$have_graphite2" != "xtrue"; then
20619                 # If pkg-config is not available, graphite2 can still be there
20620                 ac_save_CFLAGS="$CFLAGS"
20621                 ac_save_CPPFLAGS="$CPPFLAGS"
20622                 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
20623                 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
20624                 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
20625 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
20626   have_graphite2=true
20627 else
20628   :
20629 fi
20630
20631
20632                 CPPFLAGS="$ac_save_CPPFLAGS"
20633                 CFLAGS="$ac_save_CFLAGS"
20634         fi
20635 fi
20636 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
20637         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
20638 fi
20639 if $have_graphite2; then
20640
20641 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
20642
20643 fi
20644  if $have_graphite2; then
20645   HAVE_GRAPHITE2_TRUE=
20646   HAVE_GRAPHITE2_FALSE='#'
20647 else
20648   HAVE_GRAPHITE2_TRUE='#'
20649   HAVE_GRAPHITE2_FALSE=
20650 fi
20651
20652
20653
20654
20655 # Check whether --with-freetype was given.
20656 if test "${with_freetype+set}" = set; then :
20657   withval=$with_freetype;
20658 else
20659   with_freetype=auto
20660 fi
20661
20662 have_freetype=false
20663 FREETYPE_DEPS="freetype2 >= 12.0.6"
20664
20665 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
20666         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
20667
20668 pkg_failed=no
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20670 $as_echo_n "checking for FREETYPE... " >&6; }
20671
20672 if test -n "$FREETYPE_CFLAGS"; then
20673     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20674  elif test -n "$PKG_CONFIG"; then
20675     if test -n "$PKG_CONFIG" && \
20676     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20677   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20678   ac_status=$?
20679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20680   test $ac_status = 0; }; then
20681   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
20682                       test "x$?" != "x0" && pkg_failed=yes
20683 else
20684   pkg_failed=yes
20685 fi
20686  else
20687     pkg_failed=untried
20688 fi
20689 if test -n "$FREETYPE_LIBS"; then
20690     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
20691  elif test -n "$PKG_CONFIG"; then
20692     if test -n "$PKG_CONFIG" && \
20693     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20694   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20695   ac_status=$?
20696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20697   test $ac_status = 0; }; then
20698   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
20699                       test "x$?" != "x0" && pkg_failed=yes
20700 else
20701   pkg_failed=yes
20702 fi
20703  else
20704     pkg_failed=untried
20705 fi
20706
20707
20708
20709 if test $pkg_failed = yes; then
20710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20711 $as_echo "no" >&6; }
20712
20713 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20714         _pkg_short_errors_supported=yes
20715 else
20716         _pkg_short_errors_supported=no
20717 fi
20718         if test $_pkg_short_errors_supported = yes; then
20719                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
20720         else
20721                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
20722         fi
20723         # Put the nasty error message in config.log where it belongs
20724         echo "$FREETYPE_PKG_ERRORS" >&5
20725
20726         :
20727 elif test $pkg_failed = untried; then
20728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20729 $as_echo "no" >&6; }
20730         :
20731 else
20732         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20733         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20735 $as_echo "yes" >&6; }
20736         have_freetype=true
20737 fi
20738 fi
20739 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
20740         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
20741 fi
20742 if $have_freetype; then
20743
20744 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
20745
20746         save_libs=$LIBS
20747         LIBS="$LIBS $FREETYPE_LIBS"
20748         for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
20749 do :
20750   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20751 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20752 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20753   cat >>confdefs.h <<_ACEOF
20754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20755 _ACEOF
20756
20757 fi
20758 done
20759
20760         LIBS=$save_libs
20761 fi
20762  if $have_freetype; then
20763   HAVE_FREETYPE_TRUE=
20764   HAVE_FREETYPE_FALSE='#'
20765 else
20766   HAVE_FREETYPE_TRUE='#'
20767   HAVE_FREETYPE_FALSE=
20768 fi
20769
20770
20771
20772
20773 # Check whether --with-uniscribe was given.
20774 if test "${with_uniscribe+set}" = set; then :
20775   withval=$with_uniscribe;
20776 else
20777   with_uniscribe=no
20778 fi
20779
20780 have_uniscribe=false
20781 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
20782         for ac_header in usp10.h windows.h
20783 do :
20784   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20785 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20787   cat >>confdefs.h <<_ACEOF
20788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20789 _ACEOF
20790  have_uniscribe=true
20791 fi
20792
20793 done
20794
20795 fi
20796 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
20797         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
20798 fi
20799 if $have_uniscribe; then
20800         UNISCRIBE_CFLAGS=
20801         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
20802
20803
20804
20805 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
20806
20807 fi
20808  if $have_uniscribe; then
20809   HAVE_UNISCRIBE_TRUE=
20810   HAVE_UNISCRIBE_FALSE='#'
20811 else
20812   HAVE_UNISCRIBE_TRUE='#'
20813   HAVE_UNISCRIBE_FALSE=
20814 fi
20815
20816
20817
20818
20819 # Check whether --with-directwrite was given.
20820 if test "${with_directwrite+set}" = set; then :
20821   withval=$with_directwrite;
20822 else
20823   with_directwrite=no
20824 fi
20825
20826 have_directwrite=false
20827 ac_ext=cpp
20828 ac_cpp='$CXXCPP $CPPFLAGS'
20829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20832
20833 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
20834
20835 for ac_header in dwrite.h
20836 do :
20837   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
20838 if test "x$ac_cv_header_dwrite_h" = xyes; then :
20839   cat >>confdefs.h <<_ACEOF
20840 #define HAVE_DWRITE_H 1
20841 _ACEOF
20842  have_directwrite=true
20843 fi
20844
20845 done
20846
20847 fi
20848 ac_ext=c
20849 ac_cpp='$CPP $CPPFLAGS'
20850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20853
20854 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
20855         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
20856 fi
20857 if $have_directwrite; then
20858         DIRECTWRITE_CXXFLAGS=
20859         DIRECTWRITE_LIBS="-ldwrite"
20860
20861
20862
20863 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
20864
20865 fi
20866  if $have_directwrite; then
20867   HAVE_DIRECTWRITE_TRUE=
20868   HAVE_DIRECTWRITE_FALSE='#'
20869 else
20870   HAVE_DIRECTWRITE_TRUE='#'
20871   HAVE_DIRECTWRITE_FALSE=
20872 fi
20873
20874
20875
20876
20877 # Check whether --with-coretext was given.
20878 if test "${with_coretext+set}" = set; then :
20879   withval=$with_coretext;
20880 else
20881   with_coretext=no
20882 fi
20883
20884 have_coretext=false
20885 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
20886         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
20887 "
20888 if test "x$ac_cv_type_CTFontRef" = xyes; then :
20889   have_coretext=true
20890 fi
20891
20892
20893         if $have_coretext; then
20894                 CORETEXT_CFLAGS=
20895                 CORETEXT_LIBS="-framework ApplicationServices"
20896
20897
20898         else
20899                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
20900                 if test "x$have_coretext" != "xtrue"; then
20901                         # Check for a different symbol to avoid getting cached result.
20902                         ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
20903 "
20904 if test "x$ac_cv_type_CTRunRef" = xyes; then :
20905   have_coretext=true
20906 fi
20907
20908                 fi
20909
20910                 if $have_coretext; then
20911                         CORETEXT_CFLAGS=
20912                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
20913
20914
20915                 fi
20916         fi
20917 fi
20918 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
20919         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
20920 fi
20921 if $have_coretext; then
20922
20923 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
20924
20925 fi
20926  if $have_coretext; then
20927   HAVE_CORETEXT_TRUE=
20928   HAVE_CORETEXT_FALSE='#'
20929 else
20930   HAVE_CORETEXT_TRUE='#'
20931   HAVE_CORETEXT_FALSE=
20932 fi
20933
20934
20935
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
20937 $as_echo_n "checking for Intel atomic primitives... " >&6; }
20938 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
20939   $as_echo_n "(cached) " >&6
20940 else
20941
20942         hb_cv_have_intel_atomic_primitives=false
20943         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h.  */
20945
20946                 void memory_barrier (void) { __sync_synchronize (); }
20947                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
20948                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
20949                 void mutex_unlock (int *m) { __sync_lock_release (m); }
20950
20951 int
20952 main ()
20953 {
20954
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 if ac_fn_c_try_link "$LINENO"; then :
20960   hb_cv_have_intel_atomic_primitives=true
20961
20962 fi
20963 rm -f core conftest.err conftest.$ac_objext \
20964     conftest$ac_exeext conftest.$ac_ext
20965
20966 fi
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
20968 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
20969 if $hb_cv_have_intel_atomic_primitives; then
20970
20971 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
20972
20973 fi
20974
20975
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
20977 $as_echo_n "checking for Solaris atomic operations... " >&6; }
20978 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
20979   $as_echo_n "(cached) " >&6
20980 else
20981
20982         hb_cv_have_solaris_atomic_ops=false
20983         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h.  */
20985
20986                 #include <atomic.h>
20987                 /* This requires Solaris Studio 12.2 or newer: */
20988                 #include <mbarrier.h>
20989                 void memory_barrier (void) { __machine_rw_barrier (); }
20990                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
20991                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
20992
20993 int
20994 main ()
20995 {
20996
20997   ;
20998   return 0;
20999 }
21000 _ACEOF
21001 if ac_fn_c_try_link "$LINENO"; then :
21002   hb_cv_have_solaris_atomic_ops=true
21003
21004 fi
21005 rm -f core conftest.err conftest.$ac_objext \
21006     conftest$ac_exeext conftest.$ac_ext
21007
21008 fi
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21010 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21011 if $hb_cv_have_solaris_atomic_ops; then
21012
21013 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21014
21015 fi
21016
21017 if test "$os_win32" = no && ! $have_pthread; then
21018         for ac_header in sched.h
21019 do :
21020   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21021 if test "x$ac_cv_header_sched_h" = xyes; then :
21022   cat >>confdefs.h <<_ACEOF
21023 #define HAVE_SCHED_H 1
21024 _ACEOF
21025
21026 fi
21027
21028 done
21029
21030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21031 $as_echo_n "checking for library containing sched_yield... " >&6; }
21032 if ${ac_cv_search_sched_yield+:} false; then :
21033   $as_echo_n "(cached) " >&6
21034 else
21035   ac_func_search_save_LIBS=$LIBS
21036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21037 /* end confdefs.h.  */
21038
21039 /* Override any GCC internal prototype to avoid an error.
21040    Use char because int might match the return type of a GCC
21041    builtin and then its argument prototype would still apply.  */
21042 #ifdef __cplusplus
21043 extern "C"
21044 #endif
21045 char sched_yield ();
21046 int
21047 main ()
21048 {
21049 return sched_yield ();
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 for ac_lib in '' rt; do
21055   if test -z "$ac_lib"; then
21056     ac_res="none required"
21057   else
21058     ac_res=-l$ac_lib
21059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21060   fi
21061   if ac_fn_c_try_link "$LINENO"; then :
21062   ac_cv_search_sched_yield=$ac_res
21063 fi
21064 rm -f core conftest.err conftest.$ac_objext \
21065     conftest$ac_exeext
21066   if ${ac_cv_search_sched_yield+:} false; then :
21067   break
21068 fi
21069 done
21070 if ${ac_cv_search_sched_yield+:} false; then :
21071
21072 else
21073   ac_cv_search_sched_yield=no
21074 fi
21075 rm conftest.$ac_ext
21076 LIBS=$ac_func_search_save_LIBS
21077 fi
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21079 $as_echo "$ac_cv_search_sched_yield" >&6; }
21080 ac_res=$ac_cv_search_sched_yield
21081 if test "$ac_res" != no; then :
21082   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21083
21084 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21085
21086 fi
21087
21088 fi
21089
21090
21091 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/aots/Makefile test/shaping/data/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
21092
21093
21094 cat >confcache <<\_ACEOF
21095 # This file is a shell script that caches the results of configure
21096 # tests run on this system so they can be shared between configure
21097 # scripts and configure runs, see configure's option --config-cache.
21098 # It is not useful on other systems.  If it contains results you don't
21099 # want to keep, you may remove or edit it.
21100 #
21101 # config.status only pays attention to the cache file if you give it
21102 # the --recheck option to rerun configure.
21103 #
21104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21106 # following values.
21107
21108 _ACEOF
21109
21110 # The following way of writing the cache mishandles newlines in values,
21111 # but we know of no workaround that is simple, portable, and efficient.
21112 # So, we kill variables containing newlines.
21113 # Ultrix sh set writes to stderr and can't be redirected directly,
21114 # and sets the high bit in the cache file unless we assign to the vars.
21115 (
21116   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21117     eval ac_val=\$$ac_var
21118     case $ac_val in #(
21119     *${as_nl}*)
21120       case $ac_var in #(
21121       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21123       esac
21124       case $ac_var in #(
21125       _ | IFS | as_nl) ;; #(
21126       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21127       *) { eval $ac_var=; unset $ac_var;} ;;
21128       esac ;;
21129     esac
21130   done
21131
21132   (set) 2>&1 |
21133     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21134     *${as_nl}ac_space=\ *)
21135       # `set' does not quote correctly, so add quotes: double-quote
21136       # substitution turns \\\\ into \\, and sed turns \\ into \.
21137       sed -n \
21138         "s/'/'\\\\''/g;
21139           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21140       ;; #(
21141     *)
21142       # `set' quotes correctly as required by POSIX, so do not add quotes.
21143       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21144       ;;
21145     esac |
21146     sort
21147 ) |
21148   sed '
21149      /^ac_cv_env_/b end
21150      t clear
21151      :clear
21152      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21153      t end
21154      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21155      :end' >>confcache
21156 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21157   if test -w "$cache_file"; then
21158     if test "x$cache_file" != "x/dev/null"; then
21159       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21160 $as_echo "$as_me: updating cache $cache_file" >&6;}
21161       if test ! -f "$cache_file" || test -h "$cache_file"; then
21162         cat confcache >"$cache_file"
21163       else
21164         case $cache_file in #(
21165         */* | ?:*)
21166           mv -f confcache "$cache_file"$$ &&
21167           mv -f "$cache_file"$$ "$cache_file" ;; #(
21168         *)
21169           mv -f confcache "$cache_file" ;;
21170         esac
21171       fi
21172     fi
21173   else
21174     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21175 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21176   fi
21177 fi
21178 rm -f confcache
21179
21180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21181 # Let make expand exec_prefix.
21182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21183
21184 DEFS=-DHAVE_CONFIG_H
21185
21186 ac_libobjs=
21187 ac_ltlibobjs=
21188 U=
21189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21190   # 1. Remove the extension, and $U if already installed.
21191   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21192   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21193   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21194   #    will be set to the directory where LIBOBJS objects are built.
21195   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21196   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21197 done
21198 LIBOBJS=$ac_libobjs
21199
21200 LTLIBOBJS=$ac_ltlibobjs
21201
21202
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21204 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21205    if test -n "$am_sleep_pid"; then
21206      # Hide warnings about reused PIDs.
21207      wait $am_sleep_pid 2>/dev/null
21208    fi
21209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21210 $as_echo "done" >&6; }
21211  if test -n "$EXEEXT"; then
21212   am__EXEEXT_TRUE=
21213   am__EXEEXT_FALSE='#'
21214 else
21215   am__EXEEXT_TRUE='#'
21216   am__EXEEXT_FALSE=
21217 fi
21218
21219 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21220   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21222 fi
21223 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21224   as_fn_error $? "conditional \"AMDEP\" was never defined.
21225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21226 fi
21227 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21228   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21230 fi
21231 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21232   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21234 fi
21235 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21236   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21238 fi
21239 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21240   as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21242 fi
21243 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21244   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21246 fi
21247 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21248   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21250 fi
21251 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21252   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21254 fi
21255 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21256   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21258 fi
21259 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21260   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21262 fi
21263 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21264   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21266 fi
21267 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21268   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21270 fi
21271 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21272   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21274 fi
21275 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21276   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21278 fi
21279 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
21280   as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
21281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21282 fi
21283 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21284   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21286 fi
21287 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21288   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
21289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21290 fi
21291 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21292   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21294 fi
21295 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21296   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21298 fi
21299 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
21300   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
21301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21302 fi
21303 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
21304   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
21305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21306 fi
21307 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
21308   as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
21309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21310 fi
21311 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
21312   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
21313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21314 fi
21315 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
21316   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
21317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21318 fi
21319 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
21320   as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
21321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21322 fi
21323 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
21324   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
21325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21326 fi
21327 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
21328   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
21329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21330 fi
21331 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
21332   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
21333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21334 fi
21335 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
21336   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
21337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21338 fi
21339 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
21340   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
21341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21342 fi
21343
21344 : "${CONFIG_STATUS=./config.status}"
21345 ac_write_fail=0
21346 ac_clean_files_save=$ac_clean_files
21347 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21349 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21350 as_write_fail=0
21351 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21352 #! $SHELL
21353 # Generated by $as_me.
21354 # Run this file to recreate the current configuration.
21355 # Compiler output produced by configure, useful for debugging
21356 # configure, is in config.log if it exists.
21357
21358 debug=false
21359 ac_cs_recheck=false
21360 ac_cs_silent=false
21361
21362 SHELL=\${CONFIG_SHELL-$SHELL}
21363 export SHELL
21364 _ASEOF
21365 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21366 ## -------------------- ##
21367 ## M4sh Initialization. ##
21368 ## -------------------- ##
21369
21370 # Be more Bourne compatible
21371 DUALCASE=1; export DUALCASE # for MKS sh
21372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21373   emulate sh
21374   NULLCMD=:
21375   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21376   # is contrary to our usage.  Disable this feature.
21377   alias -g '${1+"$@"}'='"$@"'
21378   setopt NO_GLOB_SUBST
21379 else
21380   case `(set -o) 2>/dev/null` in #(
21381   *posix*) :
21382     set -o posix ;; #(
21383   *) :
21384      ;;
21385 esac
21386 fi
21387
21388
21389 as_nl='
21390 '
21391 export as_nl
21392 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21393 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21396 # Prefer a ksh shell builtin over an external printf program on Solaris,
21397 # but without wasting forks for bash or zsh.
21398 if test -z "$BASH_VERSION$ZSH_VERSION" \
21399     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21400   as_echo='print -r --'
21401   as_echo_n='print -rn --'
21402 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21403   as_echo='printf %s\n'
21404   as_echo_n='printf %s'
21405 else
21406   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21407     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21408     as_echo_n='/usr/ucb/echo -n'
21409   else
21410     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21411     as_echo_n_body='eval
21412       arg=$1;
21413       case $arg in #(
21414       *"$as_nl"*)
21415         expr "X$arg" : "X\\(.*\\)$as_nl";
21416         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21417       esac;
21418       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21419     '
21420     export as_echo_n_body
21421     as_echo_n='sh -c $as_echo_n_body as_echo'
21422   fi
21423   export as_echo_body
21424   as_echo='sh -c $as_echo_body as_echo'
21425 fi
21426
21427 # The user is always right.
21428 if test "${PATH_SEPARATOR+set}" != set; then
21429   PATH_SEPARATOR=:
21430   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21431     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21432       PATH_SEPARATOR=';'
21433   }
21434 fi
21435
21436
21437 # IFS
21438 # We need space, tab and new line, in precisely that order.  Quoting is
21439 # there to prevent editors from complaining about space-tab.
21440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21441 # splitting by setting IFS to empty value.)
21442 IFS=" ""        $as_nl"
21443
21444 # Find who we are.  Look in the path if we contain no directory separator.
21445 as_myself=
21446 case $0 in #((
21447   *[\\/]* ) as_myself=$0 ;;
21448   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21449 for as_dir in $PATH
21450 do
21451   IFS=$as_save_IFS
21452   test -z "$as_dir" && as_dir=.
21453     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21454   done
21455 IFS=$as_save_IFS
21456
21457      ;;
21458 esac
21459 # We did not find ourselves, most probably we were run as `sh COMMAND'
21460 # in which case we are not to be found in the path.
21461 if test "x$as_myself" = x; then
21462   as_myself=$0
21463 fi
21464 if test ! -f "$as_myself"; then
21465   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21466   exit 1
21467 fi
21468
21469 # Unset variables that we do not need and which cause bugs (e.g. in
21470 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21471 # suppresses any "Segmentation fault" message there.  '((' could
21472 # trigger a bug in pdksh 5.2.14.
21473 for as_var in BASH_ENV ENV MAIL MAILPATH
21474 do eval test x\${$as_var+set} = xset \
21475   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21476 done
21477 PS1='$ '
21478 PS2='> '
21479 PS4='+ '
21480
21481 # NLS nuisances.
21482 LC_ALL=C
21483 export LC_ALL
21484 LANGUAGE=C
21485 export LANGUAGE
21486
21487 # CDPATH.
21488 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21489
21490
21491 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21492 # ----------------------------------------
21493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21495 # script with STATUS, using 1 if that was 0.
21496 as_fn_error ()
21497 {
21498   as_status=$1; test $as_status -eq 0 && as_status=1
21499   if test "$4"; then
21500     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21501     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21502   fi
21503   $as_echo "$as_me: error: $2" >&2
21504   as_fn_exit $as_status
21505 } # as_fn_error
21506
21507
21508 # as_fn_set_status STATUS
21509 # -----------------------
21510 # Set $? to STATUS, without forking.
21511 as_fn_set_status ()
21512 {
21513   return $1
21514 } # as_fn_set_status
21515
21516 # as_fn_exit STATUS
21517 # -----------------
21518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21519 as_fn_exit ()
21520 {
21521   set +e
21522   as_fn_set_status $1
21523   exit $1
21524 } # as_fn_exit
21525
21526 # as_fn_unset VAR
21527 # ---------------
21528 # Portably unset VAR.
21529 as_fn_unset ()
21530 {
21531   { eval $1=; unset $1;}
21532 }
21533 as_unset=as_fn_unset
21534 # as_fn_append VAR VALUE
21535 # ----------------------
21536 # Append the text in VALUE to the end of the definition contained in VAR. Take
21537 # advantage of any shell optimizations that allow amortized linear growth over
21538 # repeated appends, instead of the typical quadratic growth present in naive
21539 # implementations.
21540 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21541   eval 'as_fn_append ()
21542   {
21543     eval $1+=\$2
21544   }'
21545 else
21546   as_fn_append ()
21547   {
21548     eval $1=\$$1\$2
21549   }
21550 fi # as_fn_append
21551
21552 # as_fn_arith ARG...
21553 # ------------------
21554 # Perform arithmetic evaluation on the ARGs, and store the result in the
21555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21556 # must be portable across $(()) and expr.
21557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21558   eval 'as_fn_arith ()
21559   {
21560     as_val=$(( $* ))
21561   }'
21562 else
21563   as_fn_arith ()
21564   {
21565     as_val=`expr "$@" || test $? -eq 1`
21566   }
21567 fi # as_fn_arith
21568
21569
21570 if expr a : '\(a\)' >/dev/null 2>&1 &&
21571    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21572   as_expr=expr
21573 else
21574   as_expr=false
21575 fi
21576
21577 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21578   as_basename=basename
21579 else
21580   as_basename=false
21581 fi
21582
21583 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21584   as_dirname=dirname
21585 else
21586   as_dirname=false
21587 fi
21588
21589 as_me=`$as_basename -- "$0" ||
21590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21591          X"$0" : 'X\(//\)$' \| \
21592          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21593 $as_echo X/"$0" |
21594     sed '/^.*\/\([^/][^/]*\)\/*$/{
21595             s//\1/
21596             q
21597           }
21598           /^X\/\(\/\/\)$/{
21599             s//\1/
21600             q
21601           }
21602           /^X\/\(\/\).*/{
21603             s//\1/
21604             q
21605           }
21606           s/.*/./; q'`
21607
21608 # Avoid depending upon Character Ranges.
21609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21612 as_cr_digits='0123456789'
21613 as_cr_alnum=$as_cr_Letters$as_cr_digits
21614
21615 ECHO_C= ECHO_N= ECHO_T=
21616 case `echo -n x` in #(((((
21617 -n*)
21618   case `echo 'xy\c'` in
21619   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21620   xy)  ECHO_C='\c';;
21621   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21622        ECHO_T=' ';;
21623   esac;;
21624 *)
21625   ECHO_N='-n';;
21626 esac
21627
21628 rm -f conf$$ conf$$.exe conf$$.file
21629 if test -d conf$$.dir; then
21630   rm -f conf$$.dir/conf$$.file
21631 else
21632   rm -f conf$$.dir
21633   mkdir conf$$.dir 2>/dev/null
21634 fi
21635 if (echo >conf$$.file) 2>/dev/null; then
21636   if ln -s conf$$.file conf$$ 2>/dev/null; then
21637     as_ln_s='ln -s'
21638     # ... but there are two gotchas:
21639     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21640     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21641     # In both cases, we have to default to `cp -pR'.
21642     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21643       as_ln_s='cp -pR'
21644   elif ln conf$$.file conf$$ 2>/dev/null; then
21645     as_ln_s=ln
21646   else
21647     as_ln_s='cp -pR'
21648   fi
21649 else
21650   as_ln_s='cp -pR'
21651 fi
21652 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21653 rmdir conf$$.dir 2>/dev/null
21654
21655
21656 # as_fn_mkdir_p
21657 # -------------
21658 # Create "$as_dir" as a directory, including parents if necessary.
21659 as_fn_mkdir_p ()
21660 {
21661
21662   case $as_dir in #(
21663   -*) as_dir=./$as_dir;;
21664   esac
21665   test -d "$as_dir" || eval $as_mkdir_p || {
21666     as_dirs=
21667     while :; do
21668       case $as_dir in #(
21669       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21670       *) as_qdir=$as_dir;;
21671       esac
21672       as_dirs="'$as_qdir' $as_dirs"
21673       as_dir=`$as_dirname -- "$as_dir" ||
21674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21675          X"$as_dir" : 'X\(//\)[^/]' \| \
21676          X"$as_dir" : 'X\(//\)$' \| \
21677          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21678 $as_echo X"$as_dir" |
21679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21680             s//\1/
21681             q
21682           }
21683           /^X\(\/\/\)[^/].*/{
21684             s//\1/
21685             q
21686           }
21687           /^X\(\/\/\)$/{
21688             s//\1/
21689             q
21690           }
21691           /^X\(\/\).*/{
21692             s//\1/
21693             q
21694           }
21695           s/.*/./; q'`
21696       test -d "$as_dir" && break
21697     done
21698     test -z "$as_dirs" || eval "mkdir $as_dirs"
21699   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21700
21701
21702 } # as_fn_mkdir_p
21703 if mkdir -p . 2>/dev/null; then
21704   as_mkdir_p='mkdir -p "$as_dir"'
21705 else
21706   test -d ./-p && rmdir ./-p
21707   as_mkdir_p=false
21708 fi
21709
21710
21711 # as_fn_executable_p FILE
21712 # -----------------------
21713 # Test if FILE is an executable regular file.
21714 as_fn_executable_p ()
21715 {
21716   test -f "$1" && test -x "$1"
21717 } # as_fn_executable_p
21718 as_test_x='test -x'
21719 as_executable_p=as_fn_executable_p
21720
21721 # Sed expression to map a string onto a valid CPP name.
21722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21723
21724 # Sed expression to map a string onto a valid variable name.
21725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21726
21727
21728 exec 6>&1
21729 ## ----------------------------------- ##
21730 ## Main body of $CONFIG_STATUS script. ##
21731 ## ----------------------------------- ##
21732 _ASEOF
21733 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21734
21735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21736 # Save the log message, to keep $0 and so on meaningful, and to
21737 # report actual input values of CONFIG_FILES etc. instead of their
21738 # values after options handling.
21739 ac_log="
21740 This file was extended by HarfBuzz $as_me 2.4.0, which was
21741 generated by GNU Autoconf 2.69.  Invocation command line was
21742
21743   CONFIG_FILES    = $CONFIG_FILES
21744   CONFIG_HEADERS  = $CONFIG_HEADERS
21745   CONFIG_LINKS    = $CONFIG_LINKS
21746   CONFIG_COMMANDS = $CONFIG_COMMANDS
21747   $ $0 $@
21748
21749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21750 "
21751
21752 _ACEOF
21753
21754 case $ac_config_files in *"
21755 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21756 esac
21757
21758 case $ac_config_headers in *"
21759 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21760 esac
21761
21762
21763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21764 # Files that config.status was made for.
21765 config_files="$ac_config_files"
21766 config_headers="$ac_config_headers"
21767 config_commands="$ac_config_commands"
21768
21769 _ACEOF
21770
21771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21772 ac_cs_usage="\
21773 \`$as_me' instantiates files and other configuration actions
21774 from templates according to the current configuration.  Unless the files
21775 and actions are specified as TAGs, all are instantiated by default.
21776
21777 Usage: $0 [OPTION]... [TAG]...
21778
21779   -h, --help       print this help, then exit
21780   -V, --version    print version number and configuration settings, then exit
21781       --config     print configuration, then exit
21782   -q, --quiet, --silent
21783                    do not print progress messages
21784   -d, --debug      don't remove temporary files
21785       --recheck    update $as_me by reconfiguring in the same conditions
21786       --file=FILE[:TEMPLATE]
21787                    instantiate the configuration file FILE
21788       --header=FILE[:TEMPLATE]
21789                    instantiate the configuration header FILE
21790
21791 Configuration files:
21792 $config_files
21793
21794 Configuration headers:
21795 $config_headers
21796
21797 Configuration commands:
21798 $config_commands
21799
21800 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
21801 HarfBuzz home page: <http://harfbuzz.org/>."
21802
21803 _ACEOF
21804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21805 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21806 ac_cs_version="\\
21807 HarfBuzz config.status 2.4.0
21808 configured by $0, generated by GNU Autoconf 2.69,
21809   with options \\"\$ac_cs_config\\"
21810
21811 Copyright (C) 2012 Free Software Foundation, Inc.
21812 This config.status script is free software; the Free Software Foundation
21813 gives unlimited permission to copy, distribute and modify it."
21814
21815 ac_pwd='$ac_pwd'
21816 srcdir='$srcdir'
21817 INSTALL='$INSTALL'
21818 MKDIR_P='$MKDIR_P'
21819 AWK='$AWK'
21820 test -n "\$AWK" || AWK=awk
21821 _ACEOF
21822
21823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21824 # The default lists apply if the user does not specify any file.
21825 ac_need_defaults=:
21826 while test $# != 0
21827 do
21828   case $1 in
21829   --*=?*)
21830     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21831     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21832     ac_shift=:
21833     ;;
21834   --*=)
21835     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21836     ac_optarg=
21837     ac_shift=:
21838     ;;
21839   *)
21840     ac_option=$1
21841     ac_optarg=$2
21842     ac_shift=shift
21843     ;;
21844   esac
21845
21846   case $ac_option in
21847   # Handling of the options.
21848   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21849     ac_cs_recheck=: ;;
21850   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21851     $as_echo "$ac_cs_version"; exit ;;
21852   --config | --confi | --conf | --con | --co | --c )
21853     $as_echo "$ac_cs_config"; exit ;;
21854   --debug | --debu | --deb | --de | --d | -d )
21855     debug=: ;;
21856   --file | --fil | --fi | --f )
21857     $ac_shift
21858     case $ac_optarg in
21859     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21860     '') as_fn_error $? "missing file argument" ;;
21861     esac
21862     as_fn_append CONFIG_FILES " '$ac_optarg'"
21863     ac_need_defaults=false;;
21864   --header | --heade | --head | --hea )
21865     $ac_shift
21866     case $ac_optarg in
21867     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21868     esac
21869     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21870     ac_need_defaults=false;;
21871   --he | --h)
21872     # Conflict between --help and --header
21873     as_fn_error $? "ambiguous option: \`$1'
21874 Try \`$0 --help' for more information.";;
21875   --help | --hel | -h )
21876     $as_echo "$ac_cs_usage"; exit ;;
21877   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21878   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21879     ac_cs_silent=: ;;
21880
21881   # This is an error.
21882   -*) as_fn_error $? "unrecognized option: \`$1'
21883 Try \`$0 --help' for more information." ;;
21884
21885   *) as_fn_append ac_config_targets " $1"
21886      ac_need_defaults=false ;;
21887
21888   esac
21889   shift
21890 done
21891
21892 ac_configure_extra_args=
21893
21894 if $ac_cs_silent; then
21895   exec 6>/dev/null
21896   ac_configure_extra_args="$ac_configure_extra_args --silent"
21897 fi
21898
21899 _ACEOF
21900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21901 if \$ac_cs_recheck; then
21902   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21903   shift
21904   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21905   CONFIG_SHELL='$SHELL'
21906   export CONFIG_SHELL
21907   exec "\$@"
21908 fi
21909
21910 _ACEOF
21911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21912 exec 5>>config.log
21913 {
21914   echo
21915   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21916 ## Running $as_me. ##
21917 _ASBOX
21918   $as_echo "$ac_log"
21919 } >&5
21920
21921 _ACEOF
21922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21923 #
21924 # INIT-COMMANDS
21925 #
21926 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21927
21928
21929 # The HP-UX ksh and POSIX shell print the target directory to stdout
21930 # if CDPATH is set.
21931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21932
21933 sed_quote_subst='$sed_quote_subst'
21934 double_quote_subst='$double_quote_subst'
21935 delay_variable_subst='$delay_variable_subst'
21936 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21937 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21938 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21939 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21940 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21941 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21942 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21943 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21944 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21945 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21946 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21947 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21948 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21949 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21950 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21951 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21952 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21953 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21954 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21955 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21956 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21957 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21958 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21959 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21960 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21961 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21962 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21963 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21964 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21965 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21966 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21967 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21968 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21969 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21970 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21971 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21972 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21973 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21974 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21975 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21976 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21977 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21978 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21979 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21980 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21981 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21982 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21983 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21984 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21985 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21986 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21987 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21988 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21989 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21990 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21991 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21992 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21993 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21994 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21995 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"`'
21996 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21997 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21998 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21999 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22000 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22001 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22002 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22003 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22004 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22005 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22006 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22007 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22008 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22009 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22010 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22011 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22012 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22013 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22014 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22015 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22016 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22017 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22018 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22019 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22020 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22021 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22022 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22023 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22024 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22025 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22026 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22027 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22028 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22029 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22030 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22031 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22032 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22033 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22034 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22035 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22036 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22037 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22038 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22039 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22040 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22041 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22042 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22043 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22044 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22045 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22046 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22047 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22048 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22049 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22050 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22051 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22052 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22053 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22054 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22055 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22056 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22057 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22058 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22059 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22060 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22061 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22062 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22063 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22064 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22065 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22066 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22067 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22068 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22069 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22070 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22071 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22072 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22073 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22074 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22075 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22076 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22077 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22078 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22079 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22080 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22081 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22082 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22083 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22084 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22085 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22086 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22087 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22088 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22089 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22090 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22091 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22092 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22093 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22094 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22095 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22096 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22097 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22098 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22099 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22100 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22101 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22102 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22103 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22104 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22105 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22106 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22107 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22108 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22109 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22110 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22111 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22112 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22113 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22114 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22115 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22116 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22117 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22118 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22119 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22120 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22121 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22122 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22123 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22124 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22125 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22126
22127 LTCC='$LTCC'
22128 LTCFLAGS='$LTCFLAGS'
22129 compiler='$compiler_DEFAULT'
22130
22131 # A function that is used when there is no print builtin or printf.
22132 func_fallback_echo ()
22133 {
22134   eval 'cat <<_LTECHO_EOF
22135 \$1
22136 _LTECHO_EOF'
22137 }
22138
22139 # Quote evaled strings.
22140 for var in SHELL \
22141 ECHO \
22142 PATH_SEPARATOR \
22143 SED \
22144 GREP \
22145 EGREP \
22146 FGREP \
22147 LD \
22148 NM \
22149 LN_S \
22150 lt_SP2NL \
22151 lt_NL2SP \
22152 reload_flag \
22153 OBJDUMP \
22154 deplibs_check_method \
22155 file_magic_cmd \
22156 file_magic_glob \
22157 want_nocaseglob \
22158 DLLTOOL \
22159 sharedlib_from_linklib_cmd \
22160 AR \
22161 archiver_list_spec \
22162 STRIP \
22163 RANLIB \
22164 CC \
22165 CFLAGS \
22166 compiler \
22167 lt_cv_sys_global_symbol_pipe \
22168 lt_cv_sys_global_symbol_to_cdecl \
22169 lt_cv_sys_global_symbol_to_import \
22170 lt_cv_sys_global_symbol_to_c_name_address \
22171 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22172 lt_cv_nm_interface \
22173 nm_file_list_spec \
22174 lt_cv_truncate_bin \
22175 lt_prog_compiler_no_builtin_flag \
22176 lt_prog_compiler_pic \
22177 lt_prog_compiler_wl \
22178 lt_prog_compiler_static \
22179 lt_cv_prog_compiler_c_o \
22180 need_locks \
22181 MANIFEST_TOOL \
22182 DSYMUTIL \
22183 NMEDIT \
22184 LIPO \
22185 OTOOL \
22186 OTOOL64 \
22187 shrext_cmds \
22188 export_dynamic_flag_spec \
22189 whole_archive_flag_spec \
22190 compiler_needs_object \
22191 with_gnu_ld \
22192 allow_undefined_flag \
22193 no_undefined_flag \
22194 hardcode_libdir_flag_spec \
22195 hardcode_libdir_separator \
22196 exclude_expsyms \
22197 include_expsyms \
22198 file_list_spec \
22199 variables_saved_for_relink \
22200 libname_spec \
22201 library_names_spec \
22202 soname_spec \
22203 install_override_mode \
22204 finish_eval \
22205 old_striplib \
22206 striplib \
22207 compiler_lib_search_dirs \
22208 predep_objects \
22209 postdep_objects \
22210 predeps \
22211 postdeps \
22212 compiler_lib_search_path \
22213 LD_CXX \
22214 reload_flag_CXX \
22215 compiler_CXX \
22216 lt_prog_compiler_no_builtin_flag_CXX \
22217 lt_prog_compiler_pic_CXX \
22218 lt_prog_compiler_wl_CXX \
22219 lt_prog_compiler_static_CXX \
22220 lt_cv_prog_compiler_c_o_CXX \
22221 export_dynamic_flag_spec_CXX \
22222 whole_archive_flag_spec_CXX \
22223 compiler_needs_object_CXX \
22224 with_gnu_ld_CXX \
22225 allow_undefined_flag_CXX \
22226 no_undefined_flag_CXX \
22227 hardcode_libdir_flag_spec_CXX \
22228 hardcode_libdir_separator_CXX \
22229 exclude_expsyms_CXX \
22230 include_expsyms_CXX \
22231 file_list_spec_CXX \
22232 compiler_lib_search_dirs_CXX \
22233 predep_objects_CXX \
22234 postdep_objects_CXX \
22235 predeps_CXX \
22236 postdeps_CXX \
22237 compiler_lib_search_path_CXX; do
22238     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22239     *[\\\\\\\`\\"\\\$]*)
22240       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22241       ;;
22242     *)
22243       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22244       ;;
22245     esac
22246 done
22247
22248 # Double-quote double-evaled strings.
22249 for var in reload_cmds \
22250 old_postinstall_cmds \
22251 old_postuninstall_cmds \
22252 old_archive_cmds \
22253 extract_expsyms_cmds \
22254 old_archive_from_new_cmds \
22255 old_archive_from_expsyms_cmds \
22256 archive_cmds \
22257 archive_expsym_cmds \
22258 module_cmds \
22259 module_expsym_cmds \
22260 export_symbols_cmds \
22261 prelink_cmds \
22262 postlink_cmds \
22263 postinstall_cmds \
22264 postuninstall_cmds \
22265 finish_cmds \
22266 sys_lib_search_path_spec \
22267 configure_time_dlsearch_path \
22268 configure_time_lt_sys_library_path \
22269 reload_cmds_CXX \
22270 old_archive_cmds_CXX \
22271 old_archive_from_new_cmds_CXX \
22272 old_archive_from_expsyms_cmds_CXX \
22273 archive_cmds_CXX \
22274 archive_expsym_cmds_CXX \
22275 module_cmds_CXX \
22276 module_expsym_cmds_CXX \
22277 export_symbols_cmds_CXX \
22278 prelink_cmds_CXX \
22279 postlink_cmds_CXX; do
22280     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22281     *[\\\\\\\`\\"\\\$]*)
22282       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22283       ;;
22284     *)
22285       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22286       ;;
22287     esac
22288 done
22289
22290 ac_aux_dir='$ac_aux_dir'
22291
22292 # See if we are running on zsh, and set the options that allow our
22293 # commands through without removal of \ escapes INIT.
22294 if test -n "\${ZSH_VERSION+set}"; then
22295    setopt NO_GLOB_SUBST
22296 fi
22297
22298
22299     PACKAGE='$PACKAGE'
22300     VERSION='$VERSION'
22301     RM='$RM'
22302     ofile='$ofile'
22303
22304
22305
22306
22307
22308
22309 _ACEOF
22310
22311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22312
22313 # Handling of arguments.
22314 for ac_config_target in $ac_config_targets
22315 do
22316   case $ac_config_target in
22317     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22318     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22319     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22320     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22321     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22322     "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
22323     "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
22324     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22325     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22326     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
22327     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
22328     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
22329     "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
22330     "test/shaping/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/aots/Makefile" ;;
22331     "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
22332     "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
22333     "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
22334     "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
22335     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22336     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
22337
22338   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22339   esac
22340 done
22341
22342
22343 # If the user did not use the arguments to specify the items to instantiate,
22344 # then the envvar interface is used.  Set only those that are not.
22345 # We use the long form for the default assignment because of an extremely
22346 # bizarre bug on SunOS 4.1.3.
22347 if $ac_need_defaults; then
22348   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22349   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22350   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22351 fi
22352
22353 # Have a temporary directory for convenience.  Make it in the build tree
22354 # simply because there is no reason against having it here, and in addition,
22355 # creating and moving files from /tmp can sometimes cause problems.
22356 # Hook for its removal unless debugging.
22357 # Note that there is a small window in which the directory will not be cleaned:
22358 # after its creation but before its name has been assigned to `$tmp'.
22359 $debug ||
22360 {
22361   tmp= ac_tmp=
22362   trap 'exit_status=$?
22363   : "${ac_tmp:=$tmp}"
22364   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22365 ' 0
22366   trap 'as_fn_exit 1' 1 2 13 15
22367 }
22368 # Create a (secure) tmp directory for tmp files.
22369
22370 {
22371   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22372   test -d "$tmp"
22373 }  ||
22374 {
22375   tmp=./conf$$-$RANDOM
22376   (umask 077 && mkdir "$tmp")
22377 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22378 ac_tmp=$tmp
22379
22380 # Set up the scripts for CONFIG_FILES section.
22381 # No need to generate them if there are no CONFIG_FILES.
22382 # This happens for instance with `./config.status config.h'.
22383 if test -n "$CONFIG_FILES"; then
22384
22385
22386 ac_cr=`echo X | tr X '\015'`
22387 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22388 # But we know of no other shell where ac_cr would be empty at this
22389 # point, so we can use a bashism as a fallback.
22390 if test "x$ac_cr" = x; then
22391   eval ac_cr=\$\'\\r\'
22392 fi
22393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22395   ac_cs_awk_cr='\\r'
22396 else
22397   ac_cs_awk_cr=$ac_cr
22398 fi
22399
22400 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22401 _ACEOF
22402
22403
22404 {
22405   echo "cat >conf$$subs.awk <<_ACEOF" &&
22406   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22407   echo "_ACEOF"
22408 } >conf$$subs.sh ||
22409   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22410 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22411 ac_delim='%!_!# '
22412 for ac_last_try in false false false false false :; do
22413   . ./conf$$subs.sh ||
22414     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22415
22416   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22417   if test $ac_delim_n = $ac_delim_num; then
22418     break
22419   elif $ac_last_try; then
22420     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22421   else
22422     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22423   fi
22424 done
22425 rm -f conf$$subs.sh
22426
22427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22428 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22429 _ACEOF
22430 sed -n '
22431 h
22432 s/^/S["/; s/!.*/"]=/
22433 p
22434 g
22435 s/^[^!]*!//
22436 :repl
22437 t repl
22438 s/'"$ac_delim"'$//
22439 t delim
22440 :nl
22441 h
22442 s/\(.\{148\}\)..*/\1/
22443 t more1
22444 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22445 p
22446 n
22447 b repl
22448 :more1
22449 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22450 p
22451 g
22452 s/.\{148\}//
22453 t nl
22454 :delim
22455 h
22456 s/\(.\{148\}\)..*/\1/
22457 t more2
22458 s/["\\]/\\&/g; s/^/"/; s/$/"/
22459 p
22460 b
22461 :more2
22462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22463 p
22464 g
22465 s/.\{148\}//
22466 t delim
22467 ' <conf$$subs.awk | sed '
22468 /^[^""]/{
22469   N
22470   s/\n//
22471 }
22472 ' >>$CONFIG_STATUS || ac_write_fail=1
22473 rm -f conf$$subs.awk
22474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22475 _ACAWK
22476 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22477   for (key in S) S_is_set[key] = 1
22478   FS = "\a"
22479
22480 }
22481 {
22482   line = $ 0
22483   nfields = split(line, field, "@")
22484   substed = 0
22485   len = length(field[1])
22486   for (i = 2; i < nfields; i++) {
22487     key = field[i]
22488     keylen = length(key)
22489     if (S_is_set[key]) {
22490       value = S[key]
22491       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22492       len += length(value) + length(field[++i])
22493       substed = 1
22494     } else
22495       len += 1 + keylen
22496   }
22497
22498   print line
22499 }
22500
22501 _ACAWK
22502 _ACEOF
22503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22504 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22505   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22506 else
22507   cat
22508 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22509   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22510 _ACEOF
22511
22512 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22513 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22514 # trailing colons and then remove the whole line if VPATH becomes empty
22515 # (actually we leave an empty line to preserve line numbers).
22516 if test "x$srcdir" = x.; then
22517   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
22518 h
22519 s///
22520 s/^/:/
22521 s/[      ]*$/:/
22522 s/:\$(srcdir):/:/g
22523 s/:\${srcdir}:/:/g
22524 s/:@srcdir@:/:/g
22525 s/^:*//
22526 s/:*$//
22527 x
22528 s/\(=[   ]*\).*/\1/
22529 G
22530 s/\n//
22531 s/^[^=]*=[       ]*$//
22532 }'
22533 fi
22534
22535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22536 fi # test -n "$CONFIG_FILES"
22537
22538 # Set up the scripts for CONFIG_HEADERS section.
22539 # No need to generate them if there are no CONFIG_HEADERS.
22540 # This happens for instance with `./config.status Makefile'.
22541 if test -n "$CONFIG_HEADERS"; then
22542 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22543 BEGIN {
22544 _ACEOF
22545
22546 # Transform confdefs.h into an awk script `defines.awk', embedded as
22547 # here-document in config.status, that substitutes the proper values into
22548 # config.h.in to produce config.h.
22549
22550 # Create a delimiter string that does not exist in confdefs.h, to ease
22551 # handling of long lines.
22552 ac_delim='%!_!# '
22553 for ac_last_try in false false :; do
22554   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22555   if test -z "$ac_tt"; then
22556     break
22557   elif $ac_last_try; then
22558     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22559   else
22560     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22561   fi
22562 done
22563
22564 # For the awk script, D is an array of macro values keyed by name,
22565 # likewise P contains macro parameters if any.  Preserve backslash
22566 # newline sequences.
22567
22568 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22569 sed -n '
22570 s/.\{148\}/&'"$ac_delim"'/g
22571 t rset
22572 :rset
22573 s/^[     ]*#[    ]*define[       ][      ]*/ /
22574 t def
22575 d
22576 :def
22577 s/\\$//
22578 t bsnl
22579 s/["\\]/\\&/g
22580 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22581 D["\1"]=" \3"/p
22582 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22583 d
22584 :bsnl
22585 s/["\\]/\\&/g
22586 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22587 D["\1"]=" \3\\\\\\n"\\/p
22588 t cont
22589 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22590 t cont
22591 d
22592 :cont
22593 n
22594 s/.\{148\}/&'"$ac_delim"'/g
22595 t clear
22596 :clear
22597 s/\\$//
22598 t bsnlc
22599 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22600 d
22601 :bsnlc
22602 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22603 b cont
22604 ' <confdefs.h | sed '
22605 s/'"$ac_delim"'/"\\\
22606 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22607
22608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22609   for (key in D) D_is_set[key] = 1
22610   FS = "\a"
22611 }
22612 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22613   line = \$ 0
22614   split(line, arg, " ")
22615   if (arg[1] == "#") {
22616     defundef = arg[2]
22617     mac1 = arg[3]
22618   } else {
22619     defundef = substr(arg[1], 2)
22620     mac1 = arg[2]
22621   }
22622   split(mac1, mac2, "(") #)
22623   macro = mac2[1]
22624   prefix = substr(line, 1, index(line, defundef) - 1)
22625   if (D_is_set[macro]) {
22626     # Preserve the white space surrounding the "#".
22627     print prefix "define", macro P[macro] D[macro]
22628     next
22629   } else {
22630     # Replace #undef with comments.  This is necessary, for example,
22631     # in the case of _POSIX_SOURCE, which is predefined and required
22632     # on some systems where configure will not decide to define it.
22633     if (defundef == "undef") {
22634       print "/*", prefix defundef, macro, "*/"
22635       next
22636     }
22637   }
22638 }
22639 { print }
22640 _ACAWK
22641 _ACEOF
22642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22643   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22644 fi # test -n "$CONFIG_HEADERS"
22645
22646
22647 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22648 shift
22649 for ac_tag
22650 do
22651   case $ac_tag in
22652   :[FHLC]) ac_mode=$ac_tag; continue;;
22653   esac
22654   case $ac_mode$ac_tag in
22655   :[FHL]*:*);;
22656   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22657   :[FH]-) ac_tag=-:-;;
22658   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22659   esac
22660   ac_save_IFS=$IFS
22661   IFS=:
22662   set x $ac_tag
22663   IFS=$ac_save_IFS
22664   shift
22665   ac_file=$1
22666   shift
22667
22668   case $ac_mode in
22669   :L) ac_source=$1;;
22670   :[FH])
22671     ac_file_inputs=
22672     for ac_f
22673     do
22674       case $ac_f in
22675       -) ac_f="$ac_tmp/stdin";;
22676       *) # Look for the file first in the build tree, then in the source tree
22677          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22678          # because $ac_f cannot contain `:'.
22679          test -f "$ac_f" ||
22680            case $ac_f in
22681            [\\/$]*) false;;
22682            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22683            esac ||
22684            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22685       esac
22686       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22687       as_fn_append ac_file_inputs " '$ac_f'"
22688     done
22689
22690     # Let's still pretend it is `configure' which instantiates (i.e., don't
22691     # use $as_me), people would be surprised to read:
22692     #    /* config.h.  Generated by config.status.  */
22693     configure_input='Generated from '`
22694           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22695         `' by configure.'
22696     if test x"$ac_file" != x-; then
22697       configure_input="$ac_file.  $configure_input"
22698       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22699 $as_echo "$as_me: creating $ac_file" >&6;}
22700     fi
22701     # Neutralize special characters interpreted by sed in replacement strings.
22702     case $configure_input in #(
22703     *\&* | *\|* | *\\* )
22704        ac_sed_conf_input=`$as_echo "$configure_input" |
22705        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22706     *) ac_sed_conf_input=$configure_input;;
22707     esac
22708
22709     case $ac_tag in
22710     *:-:* | *:-) cat >"$ac_tmp/stdin" \
22711       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22712     esac
22713     ;;
22714   esac
22715
22716   ac_dir=`$as_dirname -- "$ac_file" ||
22717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22718          X"$ac_file" : 'X\(//\)[^/]' \| \
22719          X"$ac_file" : 'X\(//\)$' \| \
22720          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22721 $as_echo X"$ac_file" |
22722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22723             s//\1/
22724             q
22725           }
22726           /^X\(\/\/\)[^/].*/{
22727             s//\1/
22728             q
22729           }
22730           /^X\(\/\/\)$/{
22731             s//\1/
22732             q
22733           }
22734           /^X\(\/\).*/{
22735             s//\1/
22736             q
22737           }
22738           s/.*/./; q'`
22739   as_dir="$ac_dir"; as_fn_mkdir_p
22740   ac_builddir=.
22741
22742 case "$ac_dir" in
22743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22744 *)
22745   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22746   # A ".." for each directory in $ac_dir_suffix.
22747   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22748   case $ac_top_builddir_sub in
22749   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22750   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22751   esac ;;
22752 esac
22753 ac_abs_top_builddir=$ac_pwd
22754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22755 # for backward compatibility:
22756 ac_top_builddir=$ac_top_build_prefix
22757
22758 case $srcdir in
22759   .)  # We are building in place.
22760     ac_srcdir=.
22761     ac_top_srcdir=$ac_top_builddir_sub
22762     ac_abs_top_srcdir=$ac_pwd ;;
22763   [\\/]* | ?:[\\/]* )  # Absolute name.
22764     ac_srcdir=$srcdir$ac_dir_suffix;
22765     ac_top_srcdir=$srcdir
22766     ac_abs_top_srcdir=$srcdir ;;
22767   *) # Relative name.
22768     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22769     ac_top_srcdir=$ac_top_build_prefix$srcdir
22770     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22771 esac
22772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22773
22774
22775   case $ac_mode in
22776   :F)
22777   #
22778   # CONFIG_FILE
22779   #
22780
22781   case $INSTALL in
22782   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22783   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22784   esac
22785   ac_MKDIR_P=$MKDIR_P
22786   case $MKDIR_P in
22787   [\\/$]* | ?:[\\/]* ) ;;
22788   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22789   esac
22790 _ACEOF
22791
22792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22793 # If the template does not know about datarootdir, expand it.
22794 # FIXME: This hack should be removed a few years after 2.60.
22795 ac_datarootdir_hack=; ac_datarootdir_seen=
22796 ac_sed_dataroot='
22797 /datarootdir/ {
22798   p
22799   q
22800 }
22801 /@datadir@/p
22802 /@docdir@/p
22803 /@infodir@/p
22804 /@localedir@/p
22805 /@mandir@/p'
22806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22807 *datarootdir*) ac_datarootdir_seen=yes;;
22808 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22809   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22811 _ACEOF
22812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22813   ac_datarootdir_hack='
22814   s&@datadir@&$datadir&g
22815   s&@docdir@&$docdir&g
22816   s&@infodir@&$infodir&g
22817   s&@localedir@&$localedir&g
22818   s&@mandir@&$mandir&g
22819   s&\\\${datarootdir}&$datarootdir&g' ;;
22820 esac
22821 _ACEOF
22822
22823 # Neutralize VPATH when `$srcdir' = `.'.
22824 # Shell code in configure.ac might set extrasub.
22825 # FIXME: do we really want to maintain this feature?
22826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22827 ac_sed_extra="$ac_vpsub
22828 $extrasub
22829 _ACEOF
22830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22831 :t
22832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22833 s|@configure_input@|$ac_sed_conf_input|;t t
22834 s&@top_builddir@&$ac_top_builddir_sub&;t t
22835 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22836 s&@srcdir@&$ac_srcdir&;t t
22837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22838 s&@top_srcdir@&$ac_top_srcdir&;t t
22839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22840 s&@builddir@&$ac_builddir&;t t
22841 s&@abs_builddir@&$ac_abs_builddir&;t t
22842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22843 s&@INSTALL@&$ac_INSTALL&;t t
22844 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22845 $ac_datarootdir_hack
22846 "
22847 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22848   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22849
22850 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22851   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22852   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
22853       "$ac_tmp/out"`; test -z "$ac_out"; } &&
22854   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22855 which seems to be undefined.  Please make sure it is defined" >&5
22856 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22857 which seems to be undefined.  Please make sure it is defined" >&2;}
22858
22859   rm -f "$ac_tmp/stdin"
22860   case $ac_file in
22861   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22862   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22863   esac \
22864   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22865  ;;
22866   :H)
22867   #
22868   # CONFIG_HEADER
22869   #
22870   if test x"$ac_file" != x-; then
22871     {
22872       $as_echo "/* $configure_input  */" \
22873       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22874     } >"$ac_tmp/config.h" \
22875       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22876     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22877       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22878 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22879     else
22880       rm -f "$ac_file"
22881       mv "$ac_tmp/config.h" "$ac_file" \
22882         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22883     fi
22884   else
22885     $as_echo "/* $configure_input  */" \
22886       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22887       || as_fn_error $? "could not create -" "$LINENO" 5
22888   fi
22889 # Compute "$ac_file"'s index in $config_headers.
22890 _am_arg="$ac_file"
22891 _am_stamp_count=1
22892 for _am_header in $config_headers :; do
22893   case $_am_header in
22894     $_am_arg | $_am_arg:* )
22895       break ;;
22896     * )
22897       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22898   esac
22899 done
22900 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22901 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22902          X"$_am_arg" : 'X\(//\)[^/]' \| \
22903          X"$_am_arg" : 'X\(//\)$' \| \
22904          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22905 $as_echo X"$_am_arg" |
22906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22907             s//\1/
22908             q
22909           }
22910           /^X\(\/\/\)[^/].*/{
22911             s//\1/
22912             q
22913           }
22914           /^X\(\/\/\)$/{
22915             s//\1/
22916             q
22917           }
22918           /^X\(\/\).*/{
22919             s//\1/
22920             q
22921           }
22922           s/.*/./; q'`/stamp-h$_am_stamp_count
22923  ;;
22924
22925   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22926 $as_echo "$as_me: executing $ac_file commands" >&6;}
22927  ;;
22928   esac
22929
22930
22931   case $ac_file$ac_mode in
22932     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22933   # Older Autoconf quotes --file arguments for eval, but not when files
22934   # are listed without --file.  Let's play safe and only enable the eval
22935   # if we detect the quoting.
22936   # TODO: see whether this extra hack can be removed once we start
22937   # requiring Autoconf 2.70 or later.
22938   case $CONFIG_FILES in #(
22939   *\'*) :
22940     eval set x "$CONFIG_FILES" ;; #(
22941   *) :
22942     set x $CONFIG_FILES ;; #(
22943   *) :
22944      ;;
22945 esac
22946   shift
22947   # Used to flag and report bootstrapping failures.
22948   am_rc=0
22949   for am_mf
22950   do
22951     # Strip MF so we end up with the name of the file.
22952     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22953     # Check whether this is an Automake generated Makefile which includes
22954     # dependency-tracking related rules and includes.
22955     # Grep'ing the whole file directly is not great: AIX grep has a line
22956     # limit of 2048, but all sed's we know have understand at least 4000.
22957     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22958       || continue
22959     am_dirpart=`$as_dirname -- "$am_mf" ||
22960 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22961          X"$am_mf" : 'X\(//\)[^/]' \| \
22962          X"$am_mf" : 'X\(//\)$' \| \
22963          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22964 $as_echo X"$am_mf" |
22965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22966             s//\1/
22967             q
22968           }
22969           /^X\(\/\/\)[^/].*/{
22970             s//\1/
22971             q
22972           }
22973           /^X\(\/\/\)$/{
22974             s//\1/
22975             q
22976           }
22977           /^X\(\/\).*/{
22978             s//\1/
22979             q
22980           }
22981           s/.*/./; q'`
22982     am_filepart=`$as_basename -- "$am_mf" ||
22983 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22984          X"$am_mf" : 'X\(//\)$' \| \
22985          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22986 $as_echo X/"$am_mf" |
22987     sed '/^.*\/\([^/][^/]*\)\/*$/{
22988             s//\1/
22989             q
22990           }
22991           /^X\/\(\/\/\)$/{
22992             s//\1/
22993             q
22994           }
22995           /^X\/\(\/\).*/{
22996             s//\1/
22997             q
22998           }
22999           s/.*/./; q'`
23000     { echo "$as_me:$LINENO: cd "$am_dirpart" \
23001       && sed -e '/# am--include-marker/d' "$am_filepart" \
23002         | $MAKE -f - am--depfiles" >&5
23003    (cd "$am_dirpart" \
23004       && sed -e '/# am--include-marker/d' "$am_filepart" \
23005         | $MAKE -f - am--depfiles) >&5 2>&5
23006    ac_status=$?
23007    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008    (exit $ac_status); } || am_rc=$?
23009   done
23010   if test $am_rc -ne 0; then
23011     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23013 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23014     for automatic dependency tracking.  Try re-running configure with the
23015     '--disable-dependency-tracking' option to at least be able to build
23016     the package (albeit without support for automatic dependency tracking).
23017 See \`config.log' for more details" "$LINENO" 5; }
23018   fi
23019   { am_dirpart=; unset am_dirpart;}
23020   { am_filepart=; unset am_filepart;}
23021   { am_mf=; unset am_mf;}
23022   { am_rc=; unset am_rc;}
23023   rm -f conftest-deps.mk
23024 }
23025  ;;
23026     "libtool":C)
23027
23028     # See if we are running on zsh, and set the options that allow our
23029     # commands through without removal of \ escapes.
23030     if test -n "${ZSH_VERSION+set}"; then
23031       setopt NO_GLOB_SUBST
23032     fi
23033
23034     cfgfile=${ofile}T
23035     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23036     $RM "$cfgfile"
23037
23038     cat <<_LT_EOF >> "$cfgfile"
23039 #! $SHELL
23040 # Generated automatically by $as_me ($PACKAGE) $VERSION
23041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23042 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23043
23044 # Provide generalized library-building support services.
23045 # Written by Gordon Matzigkeit, 1996
23046
23047 # Copyright (C) 2014 Free Software Foundation, Inc.
23048 # This is free software; see the source for copying conditions.  There is NO
23049 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23050
23051 # GNU Libtool is free software; you can redistribute it and/or modify
23052 # it under the terms of the GNU General Public License as published by
23053 # the Free Software Foundation; either version 2 of of the License, or
23054 # (at your option) any later version.
23055 #
23056 # As a special exception to the GNU General Public License, if you
23057 # distribute this file as part of a program or library that is built
23058 # using GNU Libtool, you may include this file under the  same
23059 # distribution terms that you use for the rest of that program.
23060 #
23061 # GNU Libtool is distributed in the hope that it will be useful, but
23062 # WITHOUT ANY WARRANTY; without even the implied warranty of
23063 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23064 # GNU General Public License for more details.
23065 #
23066 # You should have received a copy of the GNU General Public License
23067 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23068
23069
23070 # The names of the tagged configurations supported by this script.
23071 available_tags='CXX '
23072
23073 # Configured defaults for sys_lib_dlsearch_path munging.
23074 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23075
23076 # ### BEGIN LIBTOOL CONFIG
23077
23078 # Which release of libtool.m4 was used?
23079 macro_version=$macro_version
23080 macro_revision=$macro_revision
23081
23082 # Whether or not to build static libraries.
23083 build_old_libs=$enable_static
23084
23085 # Whether or not to build shared libraries.
23086 build_libtool_libs=$enable_shared
23087
23088 # What type of objects to build.
23089 pic_mode=$pic_mode
23090
23091 # Whether or not to optimize for fast installation.
23092 fast_install=$enable_fast_install
23093
23094 # Shared archive member basename,for filename based shared library versioning on AIX.
23095 shared_archive_member_spec=$shared_archive_member_spec
23096
23097 # Shell to use when invoking shell scripts.
23098 SHELL=$lt_SHELL
23099
23100 # An echo program that protects backslashes.
23101 ECHO=$lt_ECHO
23102
23103 # The PATH separator for the build system.
23104 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23105
23106 # The host system.
23107 host_alias=$host_alias
23108 host=$host
23109 host_os=$host_os
23110
23111 # The build system.
23112 build_alias=$build_alias
23113 build=$build
23114 build_os=$build_os
23115
23116 # A sed program that does not truncate output.
23117 SED=$lt_SED
23118
23119 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23120 Xsed="\$SED -e 1s/^X//"
23121
23122 # A grep program that handles long lines.
23123 GREP=$lt_GREP
23124
23125 # An ERE matcher.
23126 EGREP=$lt_EGREP
23127
23128 # A literal string matcher.
23129 FGREP=$lt_FGREP
23130
23131 # A BSD- or MS-compatible name lister.
23132 NM=$lt_NM
23133
23134 # Whether we need soft or hard links.
23135 LN_S=$lt_LN_S
23136
23137 # What is the maximum length of a command?
23138 max_cmd_len=$max_cmd_len
23139
23140 # Object file suffix (normally "o").
23141 objext=$ac_objext
23142
23143 # Executable file suffix (normally "").
23144 exeext=$exeext
23145
23146 # whether the shell understands "unset".
23147 lt_unset=$lt_unset
23148
23149 # turn spaces into newlines.
23150 SP2NL=$lt_lt_SP2NL
23151
23152 # turn newlines into spaces.
23153 NL2SP=$lt_lt_NL2SP
23154
23155 # convert \$build file names to \$host format.
23156 to_host_file_cmd=$lt_cv_to_host_file_cmd
23157
23158 # convert \$build files to toolchain format.
23159 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23160
23161 # An object symbol dumper.
23162 OBJDUMP=$lt_OBJDUMP
23163
23164 # Method to check whether dependent libraries are shared objects.
23165 deplibs_check_method=$lt_deplibs_check_method
23166
23167 # Command to use when deplibs_check_method = "file_magic".
23168 file_magic_cmd=$lt_file_magic_cmd
23169
23170 # How to find potential files when deplibs_check_method = "file_magic".
23171 file_magic_glob=$lt_file_magic_glob
23172
23173 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23174 want_nocaseglob=$lt_want_nocaseglob
23175
23176 # DLL creation program.
23177 DLLTOOL=$lt_DLLTOOL
23178
23179 # Command to associate shared and link libraries.
23180 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23181
23182 # The archiver.
23183 AR=$lt_AR
23184
23185 # Flags to create an archive (by configure).
23186 lt_ar_flags=$lt_ar_flags
23187
23188 # Flags to create an archive.
23189 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23190
23191 # How to feed a file listing to the archiver.
23192 archiver_list_spec=$lt_archiver_list_spec
23193
23194 # A symbol stripping program.
23195 STRIP=$lt_STRIP
23196
23197 # Commands used to install an old-style archive.
23198 RANLIB=$lt_RANLIB
23199 old_postinstall_cmds=$lt_old_postinstall_cmds
23200 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23201
23202 # Whether to use a lock for old archive extraction.
23203 lock_old_archive_extraction=$lock_old_archive_extraction
23204
23205 # A C compiler.
23206 LTCC=$lt_CC
23207
23208 # LTCC compiler flags.
23209 LTCFLAGS=$lt_CFLAGS
23210
23211 # Take the output of nm and produce a listing of raw symbols and C names.
23212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23213
23214 # Transform the output of nm in a proper C declaration.
23215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23216
23217 # Transform the output of nm into a list of symbols to manually relocate.
23218 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23219
23220 # Transform the output of nm in a C name address pair.
23221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23222
23223 # Transform the output of nm in a C name address pair when lib prefix is needed.
23224 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23225
23226 # The name lister interface.
23227 nm_interface=$lt_lt_cv_nm_interface
23228
23229 # Specify filename containing input files for \$NM.
23230 nm_file_list_spec=$lt_nm_file_list_spec
23231
23232 # The root where to search for dependent libraries,and where our libraries should be installed.
23233 lt_sysroot=$lt_sysroot
23234
23235 # Command to truncate a binary pipe.
23236 lt_truncate_bin=$lt_lt_cv_truncate_bin
23237
23238 # The name of the directory that contains temporary libtool files.
23239 objdir=$objdir
23240
23241 # Used to examine libraries when file_magic_cmd begins with "file".
23242 MAGIC_CMD=$MAGIC_CMD
23243
23244 # Must we lock files when doing compilation?
23245 need_locks=$lt_need_locks
23246
23247 # Manifest tool.
23248 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23249
23250 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23251 DSYMUTIL=$lt_DSYMUTIL
23252
23253 # Tool to change global to local symbols on Mac OS X.
23254 NMEDIT=$lt_NMEDIT
23255
23256 # Tool to manipulate fat objects and archives on Mac OS X.
23257 LIPO=$lt_LIPO
23258
23259 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23260 OTOOL=$lt_OTOOL
23261
23262 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23263 OTOOL64=$lt_OTOOL64
23264
23265 # Old archive suffix (normally "a").
23266 libext=$libext
23267
23268 # Shared library suffix (normally ".so").
23269 shrext_cmds=$lt_shrext_cmds
23270
23271 # The commands to extract the exported symbol list from a shared archive.
23272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23273
23274 # Variables whose values should be saved in libtool wrapper scripts and
23275 # restored at link time.
23276 variables_saved_for_relink=$lt_variables_saved_for_relink
23277
23278 # Do we need the "lib" prefix for modules?
23279 need_lib_prefix=$need_lib_prefix
23280
23281 # Do we need a version for libraries?
23282 need_version=$need_version
23283
23284 # Library versioning type.
23285 version_type=$version_type
23286
23287 # Shared library runtime path variable.
23288 runpath_var=$runpath_var
23289
23290 # Shared library path variable.
23291 shlibpath_var=$shlibpath_var
23292
23293 # Is shlibpath searched before the hard-coded library search path?
23294 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23295
23296 # Format of library name prefix.
23297 libname_spec=$lt_libname_spec
23298
23299 # List of archive names.  First name is the real one, the rest are links.
23300 # The last name is the one that the linker finds with -lNAME
23301 library_names_spec=$lt_library_names_spec
23302
23303 # The coded name of the library, if different from the real name.
23304 soname_spec=$lt_soname_spec
23305
23306 # Permission mode override for installation of shared libraries.
23307 install_override_mode=$lt_install_override_mode
23308
23309 # Command to use after installation of a shared archive.
23310 postinstall_cmds=$lt_postinstall_cmds
23311
23312 # Command to use after uninstallation of a shared archive.
23313 postuninstall_cmds=$lt_postuninstall_cmds
23314
23315 # Commands used to finish a libtool library installation in a directory.
23316 finish_cmds=$lt_finish_cmds
23317
23318 # As "finish_cmds", except a single script fragment to be evaled but
23319 # not shown.
23320 finish_eval=$lt_finish_eval
23321
23322 # Whether we should hardcode library paths into libraries.
23323 hardcode_into_libs=$hardcode_into_libs
23324
23325 # Compile-time system search path for libraries.
23326 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23327
23328 # Detected run-time system search path for libraries.
23329 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23330
23331 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23332 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23333
23334 # Whether dlopen is supported.
23335 dlopen_support=$enable_dlopen
23336
23337 # Whether dlopen of programs is supported.
23338 dlopen_self=$enable_dlopen_self
23339
23340 # Whether dlopen of statically linked programs is supported.
23341 dlopen_self_static=$enable_dlopen_self_static
23342
23343 # Commands to strip libraries.
23344 old_striplib=$lt_old_striplib
23345 striplib=$lt_striplib
23346
23347
23348 # The linker used to build libraries.
23349 LD=$lt_LD
23350
23351 # How to create reloadable object files.
23352 reload_flag=$lt_reload_flag
23353 reload_cmds=$lt_reload_cmds
23354
23355 # Commands used to build an old-style archive.
23356 old_archive_cmds=$lt_old_archive_cmds
23357
23358 # A language specific compiler.
23359 CC=$lt_compiler
23360
23361 # Is the compiler the GNU compiler?
23362 with_gcc=$GCC
23363
23364 # Compiler flag to turn off builtin functions.
23365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23366
23367 # Additional compiler flags for building library objects.
23368 pic_flag=$lt_lt_prog_compiler_pic
23369
23370 # How to pass a linker flag through the compiler.
23371 wl=$lt_lt_prog_compiler_wl
23372
23373 # Compiler flag to prevent dynamic linking.
23374 link_static_flag=$lt_lt_prog_compiler_static
23375
23376 # Does compiler simultaneously support -c and -o options?
23377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23378
23379 # Whether or not to add -lc for building shared libraries.
23380 build_libtool_need_lc=$archive_cmds_need_lc
23381
23382 # Whether or not to disallow shared libs when runtime libs are static.
23383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23384
23385 # Compiler flag to allow reflexive dlopens.
23386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23387
23388 # Compiler flag to generate shared objects directly from archives.
23389 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23390
23391 # Whether the compiler copes with passing no objects directly.
23392 compiler_needs_object=$lt_compiler_needs_object
23393
23394 # Create an old-style archive from a shared archive.
23395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23396
23397 # Create a temporary old-style archive to link instead of a shared archive.
23398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23399
23400 # Commands used to build a shared archive.
23401 archive_cmds=$lt_archive_cmds
23402 archive_expsym_cmds=$lt_archive_expsym_cmds
23403
23404 # Commands used to build a loadable module if different from building
23405 # a shared archive.
23406 module_cmds=$lt_module_cmds
23407 module_expsym_cmds=$lt_module_expsym_cmds
23408
23409 # Whether we are building with GNU ld or not.
23410 with_gnu_ld=$lt_with_gnu_ld
23411
23412 # Flag that allows shared libraries with undefined symbols to be built.
23413 allow_undefined_flag=$lt_allow_undefined_flag
23414
23415 # Flag that enforces no undefined symbols.
23416 no_undefined_flag=$lt_no_undefined_flag
23417
23418 # Flag to hardcode \$libdir into a binary during linking.
23419 # This must work even if \$libdir does not exist
23420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23421
23422 # Whether we need a single "-rpath" flag with a separated argument.
23423 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23424
23425 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23426 # DIR into the resulting binary.
23427 hardcode_direct=$hardcode_direct
23428
23429 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23430 # DIR into the resulting binary and the resulting library dependency is
23431 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23432 # library is relocated.
23433 hardcode_direct_absolute=$hardcode_direct_absolute
23434
23435 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23436 # into the resulting binary.
23437 hardcode_minus_L=$hardcode_minus_L
23438
23439 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23440 # into the resulting binary.
23441 hardcode_shlibpath_var=$hardcode_shlibpath_var
23442
23443 # Set to "yes" if building a shared library automatically hardcodes DIR
23444 # into the library and all subsequent libraries and executables linked
23445 # against it.
23446 hardcode_automatic=$hardcode_automatic
23447
23448 # Set to yes if linker adds runtime paths of dependent libraries
23449 # to runtime path list.
23450 inherit_rpath=$inherit_rpath
23451
23452 # Whether libtool must link a program against all its dependency libraries.
23453 link_all_deplibs=$link_all_deplibs
23454
23455 # Set to "yes" if exported symbols are required.
23456 always_export_symbols=$always_export_symbols
23457
23458 # The commands to list exported symbols.
23459 export_symbols_cmds=$lt_export_symbols_cmds
23460
23461 # Symbols that should not be listed in the preloaded symbols.
23462 exclude_expsyms=$lt_exclude_expsyms
23463
23464 # Symbols that must always be exported.
23465 include_expsyms=$lt_include_expsyms
23466
23467 # Commands necessary for linking programs (against libraries) with templates.
23468 prelink_cmds=$lt_prelink_cmds
23469
23470 # Commands necessary for finishing linking programs.
23471 postlink_cmds=$lt_postlink_cmds
23472
23473 # Specify filename containing input files.
23474 file_list_spec=$lt_file_list_spec
23475
23476 # How to hardcode a shared library path into an executable.
23477 hardcode_action=$hardcode_action
23478
23479 # The directories searched by this compiler when creating a shared library.
23480 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23481
23482 # Dependencies to place before and after the objects being linked to
23483 # create a shared library.
23484 predep_objects=$lt_predep_objects
23485 postdep_objects=$lt_postdep_objects
23486 predeps=$lt_predeps
23487 postdeps=$lt_postdeps
23488
23489 # The library search path used internally by the compiler when linking
23490 # a shared library.
23491 compiler_lib_search_path=$lt_compiler_lib_search_path
23492
23493 # ### END LIBTOOL CONFIG
23494
23495 _LT_EOF
23496
23497     cat <<'_LT_EOF' >> "$cfgfile"
23498
23499 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23500
23501 # func_munge_path_list VARIABLE PATH
23502 # -----------------------------------
23503 # VARIABLE is name of variable containing _space_ separated list of
23504 # directories to be munged by the contents of PATH, which is string
23505 # having a format:
23506 # "DIR[:DIR]:"
23507 #       string "DIR[ DIR]" will be prepended to VARIABLE
23508 # ":DIR[:DIR]"
23509 #       string "DIR[ DIR]" will be appended to VARIABLE
23510 # "DIRP[:DIRP]::[DIRA:]DIRA"
23511 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23512 #       "DIRA[ DIRA]" will be appended to VARIABLE
23513 # "DIR[:DIR]"
23514 #       VARIABLE will be replaced by "DIR[ DIR]"
23515 func_munge_path_list ()
23516 {
23517     case x$2 in
23518     x)
23519         ;;
23520     *:)
23521         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23522         ;;
23523     x:*)
23524         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23525         ;;
23526     *::*)
23527         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23528         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23529         ;;
23530     *)
23531         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23532         ;;
23533     esac
23534 }
23535
23536
23537 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23538 func_cc_basename ()
23539 {
23540     for cc_temp in $*""; do
23541       case $cc_temp in
23542         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23543         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23544         \-*) ;;
23545         *) break;;
23546       esac
23547     done
23548     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23549 }
23550
23551
23552 # ### END FUNCTIONS SHARED WITH CONFIGURE
23553
23554 _LT_EOF
23555
23556   case $host_os in
23557   aix3*)
23558     cat <<\_LT_EOF >> "$cfgfile"
23559 # AIX sometimes has problems with the GCC collect2 program.  For some
23560 # reason, if we set the COLLECT_NAMES environment variable, the problems
23561 # vanish in a puff of smoke.
23562 if test set != "${COLLECT_NAMES+set}"; then
23563   COLLECT_NAMES=
23564   export COLLECT_NAMES
23565 fi
23566 _LT_EOF
23567     ;;
23568   esac
23569
23570
23571 ltmain=$ac_aux_dir/ltmain.sh
23572
23573
23574   # We use sed instead of cat because bash on DJGPP gets confused if
23575   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23576   # text mode, it properly converts lines to CR/LF.  This bash problem
23577   # is reportedly fixed, but why not run on old versions too?
23578   sed '$q' "$ltmain" >> "$cfgfile" \
23579      || (rm -f "$cfgfile"; exit 1)
23580
23581    mv -f "$cfgfile" "$ofile" ||
23582     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23583   chmod +x "$ofile"
23584
23585
23586     cat <<_LT_EOF >> "$ofile"
23587
23588 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23589
23590 # The linker used to build libraries.
23591 LD=$lt_LD_CXX
23592
23593 # How to create reloadable object files.
23594 reload_flag=$lt_reload_flag_CXX
23595 reload_cmds=$lt_reload_cmds_CXX
23596
23597 # Commands used to build an old-style archive.
23598 old_archive_cmds=$lt_old_archive_cmds_CXX
23599
23600 # A language specific compiler.
23601 CC=$lt_compiler_CXX
23602
23603 # Is the compiler the GNU compiler?
23604 with_gcc=$GCC_CXX
23605
23606 # Compiler flag to turn off builtin functions.
23607 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23608
23609 # Additional compiler flags for building library objects.
23610 pic_flag=$lt_lt_prog_compiler_pic_CXX
23611
23612 # How to pass a linker flag through the compiler.
23613 wl=$lt_lt_prog_compiler_wl_CXX
23614
23615 # Compiler flag to prevent dynamic linking.
23616 link_static_flag=$lt_lt_prog_compiler_static_CXX
23617
23618 # Does compiler simultaneously support -c and -o options?
23619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23620
23621 # Whether or not to add -lc for building shared libraries.
23622 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23623
23624 # Whether or not to disallow shared libs when runtime libs are static.
23625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23626
23627 # Compiler flag to allow reflexive dlopens.
23628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23629
23630 # Compiler flag to generate shared objects directly from archives.
23631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23632
23633 # Whether the compiler copes with passing no objects directly.
23634 compiler_needs_object=$lt_compiler_needs_object_CXX
23635
23636 # Create an old-style archive from a shared archive.
23637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23638
23639 # Create a temporary old-style archive to link instead of a shared archive.
23640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23641
23642 # Commands used to build a shared archive.
23643 archive_cmds=$lt_archive_cmds_CXX
23644 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23645
23646 # Commands used to build a loadable module if different from building
23647 # a shared archive.
23648 module_cmds=$lt_module_cmds_CXX
23649 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23650
23651 # Whether we are building with GNU ld or not.
23652 with_gnu_ld=$lt_with_gnu_ld_CXX
23653
23654 # Flag that allows shared libraries with undefined symbols to be built.
23655 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23656
23657 # Flag that enforces no undefined symbols.
23658 no_undefined_flag=$lt_no_undefined_flag_CXX
23659
23660 # Flag to hardcode \$libdir into a binary during linking.
23661 # This must work even if \$libdir does not exist
23662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23663
23664 # Whether we need a single "-rpath" flag with a separated argument.
23665 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23666
23667 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23668 # DIR into the resulting binary.
23669 hardcode_direct=$hardcode_direct_CXX
23670
23671 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23672 # DIR into the resulting binary and the resulting library dependency is
23673 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23674 # library is relocated.
23675 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23676
23677 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23678 # into the resulting binary.
23679 hardcode_minus_L=$hardcode_minus_L_CXX
23680
23681 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23682 # into the resulting binary.
23683 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23684
23685 # Set to "yes" if building a shared library automatically hardcodes DIR
23686 # into the library and all subsequent libraries and executables linked
23687 # against it.
23688 hardcode_automatic=$hardcode_automatic_CXX
23689
23690 # Set to yes if linker adds runtime paths of dependent libraries
23691 # to runtime path list.
23692 inherit_rpath=$inherit_rpath_CXX
23693
23694 # Whether libtool must link a program against all its dependency libraries.
23695 link_all_deplibs=$link_all_deplibs_CXX
23696
23697 # Set to "yes" if exported symbols are required.
23698 always_export_symbols=$always_export_symbols_CXX
23699
23700 # The commands to list exported symbols.
23701 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23702
23703 # Symbols that should not be listed in the preloaded symbols.
23704 exclude_expsyms=$lt_exclude_expsyms_CXX
23705
23706 # Symbols that must always be exported.
23707 include_expsyms=$lt_include_expsyms_CXX
23708
23709 # Commands necessary for linking programs (against libraries) with templates.
23710 prelink_cmds=$lt_prelink_cmds_CXX
23711
23712 # Commands necessary for finishing linking programs.
23713 postlink_cmds=$lt_postlink_cmds_CXX
23714
23715 # Specify filename containing input files.
23716 file_list_spec=$lt_file_list_spec_CXX
23717
23718 # How to hardcode a shared library path into an executable.
23719 hardcode_action=$hardcode_action_CXX
23720
23721 # The directories searched by this compiler when creating a shared library.
23722 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23723
23724 # Dependencies to place before and after the objects being linked to
23725 # create a shared library.
23726 predep_objects=$lt_predep_objects_CXX
23727 postdep_objects=$lt_postdep_objects_CXX
23728 predeps=$lt_predeps_CXX
23729 postdeps=$lt_postdeps_CXX
23730
23731 # The library search path used internally by the compiler when linking
23732 # a shared library.
23733 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23734
23735 # ### END LIBTOOL TAG CONFIG: CXX
23736 _LT_EOF
23737
23738  ;;
23739
23740   esac
23741 done # for ac_tag
23742
23743
23744 as_fn_exit 0
23745 _ACEOF
23746 ac_clean_files=$ac_clean_files_save
23747
23748 test $ac_write_fail = 0 ||
23749   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23750
23751
23752 # configure is writing to config.log, and then calls config.status.
23753 # config.status does its own redirection, appending to config.log.
23754 # Unfortunately, on DOS this fails, as config.log is still kept open
23755 # by configure, so config.status won't be able to write to it; its
23756 # output is simply discarded.  So we exec the FD to /dev/null,
23757 # effectively closing config.log, so it can be properly (re)opened and
23758 # appended to by config.status.  When coming back to configure, we
23759 # need to make the FD available again.
23760 if test "$no_create" != yes; then
23761   ac_cs_success=:
23762   ac_config_status_args=
23763   test "$silent" = yes &&
23764     ac_config_status_args="$ac_config_status_args --quiet"
23765   exec 5>/dev/null
23766   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23767   exec 5>>config.log
23768   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23769   # would make configure fail if this is the last instruction.
23770   $ac_cs_success || as_fn_exit 1
23771 fi
23772 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23773   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23774 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23775 fi
23776
23777
23778 echo
23779 echo "C++ compiler version:"
23780 $CXX --version
23781 echo
23782
23783 { $as_echo "$as_me:${as_lineno-$LINENO}:
23784
23785 Build configuration:
23786
23787 Unicode callbacks (you want at least one):
23788         Builtin (UCDN):         ${have_ucdn}
23789         Glib:                   ${have_glib}
23790         ICU:                    ${have_icu}
23791
23792 Font callbacks (the more the merrier):
23793         FreeType:               ${have_freetype}
23794
23795 Tools used for command-line utilities:
23796         Cairo:                  ${have_cairo}
23797         Fontconfig:             ${have_fontconfig}
23798
23799 Additional shapers (the more the merrier):
23800         Graphite2:              ${have_graphite2}
23801
23802 Platform shapers (not normally needed):
23803         CoreText:               ${have_coretext}
23804         DirectWrite:            ${have_directwrite}
23805         Uniscribe:              ${have_uniscribe}
23806
23807 Other features:
23808         Documentation:          ${enable_gtk_doc}
23809         GObject bindings:       ${have_gobject}
23810         Introspection:          ${have_introspection}
23811 " >&5
23812 $as_echo "$as_me:
23813
23814 Build configuration:
23815
23816 Unicode callbacks (you want at least one):
23817         Builtin (UCDN):         ${have_ucdn}
23818         Glib:                   ${have_glib}
23819         ICU:                    ${have_icu}
23820
23821 Font callbacks (the more the merrier):
23822         FreeType:               ${have_freetype}
23823
23824 Tools used for command-line utilities:
23825         Cairo:                  ${have_cairo}
23826         Fontconfig:             ${have_fontconfig}
23827
23828 Additional shapers (the more the merrier):
23829         Graphite2:              ${have_graphite2}
23830
23831 Platform shapers (not normally needed):
23832         CoreText:               ${have_coretext}
23833         DirectWrite:            ${have_directwrite}
23834         Uniscribe:              ${have_uniscribe}
23835
23836 Other features:
23837         Documentation:          ${enable_gtk_doc}
23838         GObject bindings:       ${have_gobject}
23839         Introspection:          ${have_introspection}
23840 " >&6;}