[Tizen] [GPOS] Avoid O(n^2) behavior in mark-attachment
[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 3.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='3.4.0'
594 PACKAGE_STRING='HarfBuzz 3.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_GDI_FALSE
648 HAVE_GDI_TRUE
649 GDI_LIBS
650 GDI_CFLAGS
651 HAVE_UNISCRIBE_FALSE
652 HAVE_UNISCRIBE_TRUE
653 UNISCRIBE_LIBS
654 UNISCRIBE_CFLAGS
655 HAVE_FREETYPE_FALSE
656 HAVE_FREETYPE_TRUE
657 FREETYPE_LIBS
658 FREETYPE_CFLAGS
659 FREETYPE_DEPS
660 HAVE_GRAPHITE2_FALSE
661 HAVE_GRAPHITE2_TRUE
662 GRAPHITE2_LIBS
663 GRAPHITE2_CFLAGS
664 GRAPHITE2_DEPS
665 HAVE_ICU_BUILTIN_FALSE
666 HAVE_ICU_BUILTIN_TRUE
667 HAVE_ICU_FALSE
668 HAVE_ICU_TRUE
669 ICU_LIBS
670 ICU_CFLAGS
671 HAVE_CHAFA_FALSE
672 HAVE_CHAFA_TRUE
673 CHAFA_LIBS
674 CHAFA_CFLAGS
675 HAVE_CAIRO_FT_FALSE
676 HAVE_CAIRO_FT_TRUE
677 CAIRO_FT_LIBS
678 CAIRO_FT_CFLAGS
679 HAVE_CAIRO_FALSE
680 HAVE_CAIRO_TRUE
681 CAIRO_LIBS
682 CAIRO_CFLAGS
683 HAVE_INTROSPECTION_FALSE
684 HAVE_INTROSPECTION_TRUE
685 INTROSPECTION_MAKEFILE
686 INTROSPECTION_LIBS
687 INTROSPECTION_CFLAGS
688 INTROSPECTION_TYPELIBDIR
689 INTROSPECTION_GIRDIR
690 INTROSPECTION_GENERATE
691 INTROSPECTION_COMPILER
692 INTROSPECTION_SCANNER
693 _GI_EXP_LIBDIR
694 _GI_EXP_DATADIR
695 have_gobject
696 HAVE_GOBJECT_FALSE
697 HAVE_GOBJECT_TRUE
698 GLIB_MKENUMS
699 GOBJECT_LIBS
700 GOBJECT_CFLAGS
701 HAVE_GLIB_FALSE
702 HAVE_GLIB_TRUE
703 GLIB_LIBS
704 GLIB_CFLAGS
705 GLIB_DEPS
706 HAVE_PTHREAD_FALSE
707 HAVE_PTHREAD_TRUE
708 PTHREAD_CFLAGS
709 PTHREAD_LIBS
710 PTHREAD_CC
711 ax_pthread_config
712 OS_WIN32_FALSE
713 OS_WIN32_TRUE
714 HAVE_GCC_FALSE
715 HAVE_GCC_TRUE
716 GTK_DOC_USE_REBASE_FALSE
717 GTK_DOC_USE_REBASE_TRUE
718 GTK_DOC_USE_LIBTOOL_FALSE
719 GTK_DOC_USE_LIBTOOL_TRUE
720 GTK_DOC_BUILD_PDF_FALSE
721 GTK_DOC_BUILD_PDF_TRUE
722 GTK_DOC_BUILD_HTML_FALSE
723 GTK_DOC_BUILD_HTML_TRUE
724 ENABLE_GTK_DOC_FALSE
725 ENABLE_GTK_DOC_TRUE
726 HAVE_GTK_DOC_FALSE
727 HAVE_GTK_DOC_TRUE
728 GTKDOC_DEPS_LIBS
729 GTKDOC_DEPS_CFLAGS
730 HTML_DIR
731 GTKDOC_MKPDF
732 GTKDOC_REBASE
733 GTKDOC_CHECK_PATH
734 GTKDOC_CHECK
735 WITH_LIBSTDCXX_FALSE
736 WITH_LIBSTDCXX_TRUE
737 HB_LIBTOOL_VERSION_INFO
738 HB_VERSION
739 HB_VERSION_MICRO
740 HB_VERSION_MINOR
741 HB_VERSION_MAJOR
742 GIT
743 RAGEL
744 PKG_CONFIG_LIBDIR
745 PKG_CONFIG_PATH
746 PKG_CONFIG
747 HAVE_CXX11
748 CXXCPP
749 am__fastdepCXX_FALSE
750 am__fastdepCXX_TRUE
751 CXXDEPMODE
752 ac_ct_CXX
753 CXXFLAGS
754 CXX
755 CPP
756 LT_SYS_LIBRARY_PATH
757 OTOOL64
758 OTOOL
759 LIPO
760 NMEDIT
761 DSYMUTIL
762 MANIFEST_TOOL
763 RANLIB
764 DLLTOOL
765 OBJDUMP
766 LN_S
767 NM
768 ac_ct_DUMPBIN
769 DUMPBIN
770 LD
771 FGREP
772 EGREP
773 GREP
774 host_os
775 host_vendor
776 host_cpu
777 host
778 build_os
779 build_vendor
780 build_cpu
781 build
782 LIBTOOL
783 am__fastdepCC_FALSE
784 am__fastdepCC_TRUE
785 CCDEPMODE
786 am__nodep
787 AMDEPBACKSLASH
788 AMDEP_FALSE
789 AMDEP_TRUE
790 am__include
791 DEPDIR
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
798 CC
799 ac_ct_AR
800 AR
801 CODE_COVERAGE_RULES
802 CODE_COVERAGE_LDFLAGS
803 CODE_COVERAGE_LIBS
804 CODE_COVERAGE_CXXFLAGS
805 CODE_COVERAGE_CFLAGS
806 CODE_COVERAGE_CPPFLAGS
807 GENHTML
808 LCOV
809 GCOV
810 CODE_COVERAGE_ENABLED
811 CODE_COVERAGE_ENABLED_FALSE
812 CODE_COVERAGE_ENABLED_TRUE
813 SED
814 AM_BACKSLASH
815 AM_DEFAULT_VERBOSITY
816 AM_DEFAULT_V
817 AM_V
818 am__untar
819 am__tar
820 AMTAR
821 am__leading_dot
822 SET_MAKE
823 AWK
824 mkdir_p
825 MKDIR_P
826 INSTALL_STRIP_PROGRAM
827 STRIP
828 install_sh
829 MAKEINFO
830 AUTOHEADER
831 AUTOMAKE
832 AUTOCONF
833 ACLOCAL
834 VERSION
835 PACKAGE
836 CYGPATH_W
837 am__isrc
838 INSTALL_DATA
839 INSTALL_SCRIPT
840 INSTALL_PROGRAM
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 runstatedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL
880 am__quote'
881 ac_subst_files=''
882 ac_user_opts='
883 enable_option_checking
884 enable_silent_rules
885 with_gcov
886 enable_code_coverage
887 enable_dependency_tracking
888 enable_static
889 enable_shared
890 with_pic
891 enable_fast_install
892 with_aix_soname
893 with_gnu_ld
894 with_sysroot
895 enable_libtool_lock
896 enable_largefile
897 with_libstdc__
898 with_html_dir
899 enable_gtk_doc
900 enable_gtk_doc_html
901 enable_gtk_doc_pdf
902 with_glib
903 with_gobject
904 enable_introspection
905 with_cairo
906 with_chafa
907 with_icu
908 with_graphite2
909 with_freetype
910 with_uniscribe
911 with_gdi
912 with_directwrite
913 with_coretext
914 '
915       ac_precious_vars='build_alias
916 host_alias
917 target_alias
918 CC
919 CFLAGS
920 LDFLAGS
921 LIBS
922 CPPFLAGS
923 LT_SYS_LIBRARY_PATH
924 CPP
925 CXX
926 CXXFLAGS
927 CCC
928 CXXCPP
929 PKG_CONFIG
930 PKG_CONFIG_PATH
931 PKG_CONFIG_LIBDIR
932 GTKDOC_DEPS_CFLAGS
933 GTKDOC_DEPS_LIBS
934 GLIB_CFLAGS
935 GLIB_LIBS
936 GOBJECT_CFLAGS
937 GOBJECT_LIBS
938 CAIRO_CFLAGS
939 CAIRO_LIBS
940 CAIRO_FT_CFLAGS
941 CAIRO_FT_LIBS
942 CHAFA_CFLAGS
943 CHAFA_LIBS
944 ICU_CFLAGS
945 ICU_LIBS
946 GRAPHITE2_CFLAGS
947 GRAPHITE2_LIBS
948 FREETYPE_CFLAGS
949 FREETYPE_LIBS'
950
951
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
973
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 runstatedir='${localstatedir}/run'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1000
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1004 do
1005   # If the previous option needs an argument, assign it.
1006   if test -n "$ac_prev"; then
1007     eval $ac_prev=\$ac_option
1008     ac_prev=
1009     continue
1010   fi
1011
1012   case $ac_option in
1013   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014   *=)   ac_optarg= ;;
1015   *)    ac_optarg=yes ;;
1016   esac
1017
1018   # Accept the important Cygnus configure options, so we can diagnose typos.
1019
1020   case $ac_dashdash$ac_option in
1021   --)
1022     ac_dashdash=yes ;;
1023
1024   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025     ac_prev=bindir ;;
1026   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027     bindir=$ac_optarg ;;
1028
1029   -build | --build | --buil | --bui | --bu)
1030     ac_prev=build_alias ;;
1031   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032     build_alias=$ac_optarg ;;
1033
1034   -cache-file | --cache-file | --cache-fil | --cache-fi \
1035   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036     ac_prev=cache_file ;;
1037   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039     cache_file=$ac_optarg ;;
1040
1041   --config-cache | -C)
1042     cache_file=config.cache ;;
1043
1044   -datadir | --datadir | --datadi | --datad)
1045     ac_prev=datadir ;;
1046   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047     datadir=$ac_optarg ;;
1048
1049   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050   | --dataroo | --dataro | --datar)
1051     ac_prev=datarootdir ;;
1052   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054     datarootdir=$ac_optarg ;;
1055
1056   -disable-* | --disable-*)
1057     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060       as_fn_error $? "invalid feature name: $ac_useropt"
1061     ac_useropt_orig=$ac_useropt
1062     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063     case $ac_user_opts in
1064       *"
1065 "enable_$ac_useropt"
1066 "*) ;;
1067       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068          ac_unrecognized_sep=', ';;
1069     esac
1070     eval enable_$ac_useropt=no ;;
1071
1072   -docdir | --docdir | --docdi | --doc | --do)
1073     ac_prev=docdir ;;
1074   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075     docdir=$ac_optarg ;;
1076
1077   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078     ac_prev=dvidir ;;
1079   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080     dvidir=$ac_optarg ;;
1081
1082   -enable-* | --enable-*)
1083     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084     # Reject names that are not valid shell variable names.
1085     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086       as_fn_error $? "invalid feature name: $ac_useropt"
1087     ac_useropt_orig=$ac_useropt
1088     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089     case $ac_user_opts in
1090       *"
1091 "enable_$ac_useropt"
1092 "*) ;;
1093       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094          ac_unrecognized_sep=', ';;
1095     esac
1096     eval enable_$ac_useropt=\$ac_optarg ;;
1097
1098   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100   | --exec | --exe | --ex)
1101     ac_prev=exec_prefix ;;
1102   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104   | --exec=* | --exe=* | --ex=*)
1105     exec_prefix=$ac_optarg ;;
1106
1107   -gas | --gas | --ga | --g)
1108     # Obsolete; use --with-gas.
1109     with_gas=yes ;;
1110
1111   -help | --help | --hel | --he | -h)
1112     ac_init_help=long ;;
1113   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114     ac_init_help=recursive ;;
1115   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116     ac_init_help=short ;;
1117
1118   -host | --host | --hos | --ho)
1119     ac_prev=host_alias ;;
1120   -host=* | --host=* | --hos=* | --ho=*)
1121     host_alias=$ac_optarg ;;
1122
1123   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124     ac_prev=htmldir ;;
1125   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126   | --ht=*)
1127     htmldir=$ac_optarg ;;
1128
1129   -includedir | --includedir | --includedi | --included | --include \
1130   | --includ | --inclu | --incl | --inc)
1131     ac_prev=includedir ;;
1132   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133   | --includ=* | --inclu=* | --incl=* | --inc=*)
1134     includedir=$ac_optarg ;;
1135
1136   -infodir | --infodir | --infodi | --infod | --info | --inf)
1137     ac_prev=infodir ;;
1138   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139     infodir=$ac_optarg ;;
1140
1141   -libdir | --libdir | --libdi | --libd)
1142     ac_prev=libdir ;;
1143   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144     libdir=$ac_optarg ;;
1145
1146   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147   | --libexe | --libex | --libe)
1148     ac_prev=libexecdir ;;
1149   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150   | --libexe=* | --libex=* | --libe=*)
1151     libexecdir=$ac_optarg ;;
1152
1153   -localedir | --localedir | --localedi | --localed | --locale)
1154     ac_prev=localedir ;;
1155   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156     localedir=$ac_optarg ;;
1157
1158   -localstatedir | --localstatedir | --localstatedi | --localstated \
1159   | --localstate | --localstat | --localsta | --localst | --locals)
1160     ac_prev=localstatedir ;;
1161   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163     localstatedir=$ac_optarg ;;
1164
1165   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166     ac_prev=mandir ;;
1167   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168     mandir=$ac_optarg ;;
1169
1170   -nfp | --nfp | --nf)
1171     # Obsolete; use --without-fp.
1172     with_fp=no ;;
1173
1174   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175   | --no-cr | --no-c | -n)
1176     no_create=yes ;;
1177
1178   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180     no_recursion=yes ;;
1181
1182   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184   | --oldin | --oldi | --old | --ol | --o)
1185     ac_prev=oldincludedir ;;
1186   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189     oldincludedir=$ac_optarg ;;
1190
1191   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192     ac_prev=prefix ;;
1193   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194     prefix=$ac_optarg ;;
1195
1196   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197   | --program-pre | --program-pr | --program-p)
1198     ac_prev=program_prefix ;;
1199   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201     program_prefix=$ac_optarg ;;
1202
1203   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204   | --program-suf | --program-su | --program-s)
1205     ac_prev=program_suffix ;;
1206   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208     program_suffix=$ac_optarg ;;
1209
1210   -program-transform-name | --program-transform-name \
1211   | --program-transform-nam | --program-transform-na \
1212   | --program-transform-n | --program-transform- \
1213   | --program-transform | --program-transfor \
1214   | --program-transfo | --program-transf \
1215   | --program-trans | --program-tran \
1216   | --progr-tra | --program-tr | --program-t)
1217     ac_prev=program_transform_name ;;
1218   -program-transform-name=* | --program-transform-name=* \
1219   | --program-transform-nam=* | --program-transform-na=* \
1220   | --program-transform-n=* | --program-transform-=* \
1221   | --program-transform=* | --program-transfor=* \
1222   | --program-transfo=* | --program-transf=* \
1223   | --program-trans=* | --program-tran=* \
1224   | --progr-tra=* | --program-tr=* | --program-t=*)
1225     program_transform_name=$ac_optarg ;;
1226
1227   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228     ac_prev=pdfdir ;;
1229   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230     pdfdir=$ac_optarg ;;
1231
1232   -psdir | --psdir | --psdi | --psd | --ps)
1233     ac_prev=psdir ;;
1234   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235     psdir=$ac_optarg ;;
1236
1237   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238   | -silent | --silent | --silen | --sile | --sil)
1239     silent=yes ;;
1240
1241   -runstatedir | --runstatedir | --runstatedi | --runstated \
1242   | --runstate | --runstat | --runsta | --runst | --runs \
1243   | --run | --ru | --r)
1244     ac_prev=runstatedir ;;
1245   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1246   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1247   | --run=* | --ru=* | --r=*)
1248     runstatedir=$ac_optarg ;;
1249
1250   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251     ac_prev=sbindir ;;
1252   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253   | --sbi=* | --sb=*)
1254     sbindir=$ac_optarg ;;
1255
1256   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258   | --sharedst | --shareds | --shared | --share | --shar \
1259   | --sha | --sh)
1260     ac_prev=sharedstatedir ;;
1261   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264   | --sha=* | --sh=*)
1265     sharedstatedir=$ac_optarg ;;
1266
1267   -site | --site | --sit)
1268     ac_prev=site ;;
1269   -site=* | --site=* | --sit=*)
1270     site=$ac_optarg ;;
1271
1272   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273     ac_prev=srcdir ;;
1274   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275     srcdir=$ac_optarg ;;
1276
1277   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278   | --syscon | --sysco | --sysc | --sys | --sy)
1279     ac_prev=sysconfdir ;;
1280   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282     sysconfdir=$ac_optarg ;;
1283
1284   -target | --target | --targe | --targ | --tar | --ta | --t)
1285     ac_prev=target_alias ;;
1286   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287     target_alias=$ac_optarg ;;
1288
1289   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290     verbose=yes ;;
1291
1292   -version | --version | --versio | --versi | --vers | -V)
1293     ac_init_version=: ;;
1294
1295   -with-* | --with-*)
1296     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297     # Reject names that are not valid shell variable names.
1298     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299       as_fn_error $? "invalid package name: $ac_useropt"
1300     ac_useropt_orig=$ac_useropt
1301     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302     case $ac_user_opts in
1303       *"
1304 "with_$ac_useropt"
1305 "*) ;;
1306       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307          ac_unrecognized_sep=', ';;
1308     esac
1309     eval with_$ac_useropt=\$ac_optarg ;;
1310
1311   -without-* | --without-*)
1312     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313     # Reject names that are not valid shell variable names.
1314     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315       as_fn_error $? "invalid package name: $ac_useropt"
1316     ac_useropt_orig=$ac_useropt
1317     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318     case $ac_user_opts in
1319       *"
1320 "with_$ac_useropt"
1321 "*) ;;
1322       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323          ac_unrecognized_sep=', ';;
1324     esac
1325     eval with_$ac_useropt=no ;;
1326
1327   --x)
1328     # Obsolete; use --with-x.
1329     with_x=yes ;;
1330
1331   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332   | --x-incl | --x-inc | --x-in | --x-i)
1333     ac_prev=x_includes ;;
1334   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336     x_includes=$ac_optarg ;;
1337
1338   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340     ac_prev=x_libraries ;;
1341   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343     x_libraries=$ac_optarg ;;
1344
1345   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1346 Try \`$0 --help' for more information"
1347     ;;
1348
1349   *=*)
1350     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351     # Reject names that are not valid shell variable names.
1352     case $ac_envvar in #(
1353       '' | [0-9]* | *[!_$as_cr_alnum]* )
1354       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1355     esac
1356     eval $ac_envvar=\$ac_optarg
1357     export $ac_envvar ;;
1358
1359   *)
1360     # FIXME: should be removed in autoconf 3.0.
1361     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1365     ;;
1366
1367   esac
1368 done
1369
1370 if test -n "$ac_prev"; then
1371   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372   as_fn_error $? "missing argument to $ac_option"
1373 fi
1374
1375 if test -n "$ac_unrecognized_opts"; then
1376   case $enable_option_checking in
1377     no) ;;
1378     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1379     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380   esac
1381 fi
1382
1383 # Check all directory arguments for consistency.
1384 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385                 datadir sysconfdir sharedstatedir localstatedir includedir \
1386                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387                 libdir localedir mandir runstatedir
1388 do
1389   eval ac_val=\$$ac_var
1390   # Remove trailing slashes.
1391   case $ac_val in
1392     */ )
1393       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394       eval $ac_var=\$ac_val;;
1395   esac
1396   # Be sure to have absolute directory names.
1397   case $ac_val in
1398     [\\/$]* | ?:[\\/]* )  continue;;
1399     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400   esac
1401   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1402 done
1403
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1407 build=$build_alias
1408 host=$host_alias
1409 target=$target_alias
1410
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413   if test "x$build_alias" = x; then
1414     cross_compiling=maybe
1415   elif test "x$build_alias" != "x$host_alias"; then
1416     cross_compiling=yes
1417   fi
1418 fi
1419
1420 ac_tool_prefix=
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422
1423 test "$silent" = yes && exec 6>/dev/null
1424
1425
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429   as_fn_error $? "working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431   as_fn_error $? "pwd does not report name of working directory"
1432
1433
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436   ac_srcdir_defaulted=yes
1437   # Try the directory containing this script, then the parent directory.
1438   ac_confdir=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440          X"$as_myself" : 'X\(//\)[^/]' \| \
1441          X"$as_myself" : 'X\(//\)$' \| \
1442          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445             s//\1/
1446             q
1447           }
1448           /^X\(\/\/\)[^/].*/{
1449             s//\1/
1450             q
1451           }
1452           /^X\(\/\/\)$/{
1453             s//\1/
1454             q
1455           }
1456           /^X\(\/\).*/{
1457             s//\1/
1458             q
1459           }
1460           s/.*/./; q'`
1461   srcdir=$ac_confdir
1462   if test ! -r "$srcdir/$ac_unique_file"; then
1463     srcdir=..
1464   fi
1465 else
1466   ac_srcdir_defaulted=no
1467 fi
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1471 fi
1472 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 ac_abs_confdir=`(
1474         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1475         pwd)`
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478   srcdir=.
1479 fi
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1483 case $srcdir in
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 esac
1486 for ac_var in $ac_precious_vars; do
1487   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488   eval ac_env_${ac_var}_value=\$${ac_var}
1489   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 done
1492
1493 #
1494 # Report the --help message.
1495 #
1496 if test "$ac_init_help" = "long"; then
1497   # Omit some internal or obsolete options to make the list less imposing.
1498   # This message is too long to be a string in the A/UX 3.1 sh.
1499   cat <<_ACEOF
1500 \`configure' configures HarfBuzz 3.4.0 to adapt to many kinds of systems.
1501
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1503
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE.  See below for descriptions of some of the useful variables.
1506
1507 Defaults for the options are specified in brackets.
1508
1509 Configuration:
1510   -h, --help              display this help and exit
1511       --help=short        display options specific to this package
1512       --help=recursive    display the short help of all the included packages
1513   -V, --version           display version information and exit
1514   -q, --quiet, --silent   do not print \`checking ...' messages
1515       --cache-file=FILE   cache test results in FILE [disabled]
1516   -C, --config-cache      alias for \`--cache-file=config.cache'
1517   -n, --no-create         do not create output files
1518       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1519
1520 Installation directories:
1521   --prefix=PREFIX         install architecture-independent files in PREFIX
1522                           [$ac_default_prefix]
1523   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1524                           [PREFIX]
1525
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1530
1531 For better control, use the options below.
1532
1533 Fine tuning of the installation directories:
1534   --bindir=DIR            user executables [EPREFIX/bin]
1535   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1536   --libexecdir=DIR        program executables [EPREFIX/libexec]
1537   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1538   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1539   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1540   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1541   --libdir=DIR            object code libraries [EPREFIX/lib]
1542   --includedir=DIR        C header files [PREFIX/include]
1543   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1544   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1545   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1546   --infodir=DIR           info documentation [DATAROOTDIR/info]
1547   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1548   --mandir=DIR            man documentation [DATAROOTDIR/man]
1549   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1550   --htmldir=DIR           html documentation [DOCDIR]
1551   --dvidir=DIR            dvi documentation [DOCDIR]
1552   --pdfdir=DIR            pdf documentation [DOCDIR]
1553   --psdir=DIR             ps documentation [DOCDIR]
1554 _ACEOF
1555
1556   cat <<\_ACEOF
1557
1558 Program names:
1559   --program-prefix=PREFIX            prepend PREFIX to installed program names
1560   --program-suffix=SUFFIX            append SUFFIX to installed program names
1561   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1562
1563 System types:
1564   --build=BUILD     configure for building on BUILD [guessed]
1565   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1566 _ACEOF
1567 fi
1568
1569 if test -n "$ac_init_help"; then
1570   case $ac_init_help in
1571      short | recursive ) echo "Configuration of HarfBuzz 3.4.0:";;
1572    esac
1573   cat <<\_ACEOF
1574
1575 Optional Features:
1576   --disable-option-checking  ignore unrecognized --enable/--with options
1577   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1578   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1579   --enable-silent-rules   less verbose build output (undo: "make V=1")
1580   --disable-silent-rules  verbose build output (undo: "make V=0")
1581   --enable-code-coverage  Whether to enable code coverage support
1582   --enable-dependency-tracking
1583                           do not reject slow dependency extractors
1584   --disable-dependency-tracking
1585                           speeds up one-time build
1586   --enable-static[=PKGS]  build static libraries [default=no]
1587   --enable-shared[=PKGS]  build shared libraries [default=yes]
1588   --enable-fast-install[=PKGS]
1589                           optimize for fast installation [default=yes]
1590   --disable-libtool-lock  avoid locking (might break parallel builds)
1591   --disable-largefile     omit support for large files
1592   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1593   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1594   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1595   --enable-introspection=[no/auto/yes]
1596                           Enable introspection for this build
1597
1598 Optional Packages:
1599   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1600   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1601   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1602   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1603                           both]
1604   --with-aix-soname=aix|svr4|both
1605                           shared library versioning (aka "SONAME") variant to
1606                           provide on AIX, [default=aix].
1607   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1608   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1609                           compiler's sysroot if not specified).
1610   --with-libstdc++=[yes/no]
1611                           Allow linking with libstdc++ [default=no]
1612   --with-html-dir=PATH    path to installed docs
1613   --with-glib=[yes/no/auto]
1614                           Use glib [default=auto]
1615   --with-gobject=[yes/no/auto]
1616                           Use gobject [default=no]
1617   --with-cairo=[yes/no/auto]
1618                           Use cairo [default=auto]
1619   --with-chafa=[yes/no/auto]
1620                           Use chafa [default=auto]
1621   --with-icu=[yes/no/builtin/auto]
1622                           Use ICU [default=auto]
1623   --with-graphite2=[yes/no/auto]
1624                           Use the graphite2 library [default=no]
1625   --with-freetype=[yes/no/auto]
1626                           Use the FreeType library [default=auto]
1627   --with-uniscribe=[yes/no/auto]
1628                           Use the Uniscribe library [default=no]
1629   --with-gdi=[yes/no/auto]
1630                           Provide GDI integration helpers [default=no]
1631   --with-directwrite=[yes/no/auto]
1632                           Use the DirectWrite library (experimental)
1633                           [default=no]
1634   --with-coretext=[yes/no/auto]
1635                           Use CoreText [default=no]
1636
1637 Some influential environment variables:
1638   CC          C compiler command
1639   CFLAGS      C compiler flags
1640   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1641               nonstandard directory <lib dir>
1642   LIBS        libraries to pass to the linker, e.g. -l<library>
1643   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644               you have headers in a nonstandard directory <include dir>
1645   LT_SYS_LIBRARY_PATH
1646               User-defined run-time library search path.
1647   CPP         C preprocessor
1648   CXX         C++ compiler command
1649   CXXFLAGS    C++ compiler flags
1650   CXXCPP      C++ preprocessor
1651   PKG_CONFIG  path to pkg-config utility
1652   PKG_CONFIG_PATH
1653               directories to add to pkg-config's search path
1654   PKG_CONFIG_LIBDIR
1655               path overriding pkg-config's built-in search path
1656   GTKDOC_DEPS_CFLAGS
1657               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1658   GTKDOC_DEPS_LIBS
1659               linker flags for GTKDOC_DEPS, overriding pkg-config
1660   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1661   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1662   GOBJECT_CFLAGS
1663               C compiler flags for GOBJECT, overriding pkg-config
1664   GOBJECT_LIBS
1665               linker flags for GOBJECT, overriding pkg-config
1666   CAIRO_CFLAGS
1667               C compiler flags for CAIRO, overriding pkg-config
1668   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1669   CAIRO_FT_CFLAGS
1670               C compiler flags for CAIRO_FT, overriding pkg-config
1671   CAIRO_FT_LIBS
1672               linker flags for CAIRO_FT, overriding pkg-config
1673   CHAFA_CFLAGS
1674               C compiler flags for CHAFA, overriding pkg-config
1675   CHAFA_LIBS  linker flags for CHAFA, overriding pkg-config
1676   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1677   ICU_LIBS    linker flags for ICU, overriding pkg-config
1678   GRAPHITE2_CFLAGS
1679               C compiler flags for GRAPHITE2, overriding pkg-config
1680   GRAPHITE2_LIBS
1681               linker flags for GRAPHITE2, overriding pkg-config
1682   FREETYPE_CFLAGS
1683               C compiler flags for FREETYPE, overriding pkg-config
1684   FREETYPE_LIBS
1685               linker flags for FREETYPE, overriding pkg-config
1686
1687 Use these variables to override the choices made by `configure' or to help
1688 it to find libraries and programs with nonstandard names/locations.
1689
1690 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1691 HarfBuzz home page: <http://harfbuzz.org/>.
1692 _ACEOF
1693 ac_status=$?
1694 fi
1695
1696 if test "$ac_init_help" = "recursive"; then
1697   # If there are subdirs, report their specific --help.
1698   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699     test -d "$ac_dir" ||
1700       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701       continue
1702     ac_builddir=.
1703
1704 case "$ac_dir" in
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *)
1707   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708   # A ".." for each directory in $ac_dir_suffix.
1709   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710   case $ac_top_builddir_sub in
1711   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713   esac ;;
1714 esac
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1719
1720 case $srcdir in
1721   .)  # We are building in place.
1722     ac_srcdir=.
1723     ac_top_srcdir=$ac_top_builddir_sub
1724     ac_abs_top_srcdir=$ac_pwd ;;
1725   [\\/]* | ?:[\\/]* )  # Absolute name.
1726     ac_srcdir=$srcdir$ac_dir_suffix;
1727     ac_top_srcdir=$srcdir
1728     ac_abs_top_srcdir=$srcdir ;;
1729   *) # Relative name.
1730     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731     ac_top_srcdir=$ac_top_build_prefix$srcdir
1732     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733 esac
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736     cd "$ac_dir" || { ac_status=$?; continue; }
1737     # Check for guested configure.
1738     if test -f "$ac_srcdir/configure.gnu"; then
1739       echo &&
1740       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741     elif test -f "$ac_srcdir/configure"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure" --help=recursive
1744     else
1745       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746     fi || ac_status=$?
1747     cd "$ac_pwd" || { ac_status=$?; break; }
1748   done
1749 fi
1750
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1753   cat <<\_ACEOF
1754 HarfBuzz configure 3.4.0
1755 generated by GNU Autoconf 2.69
1756
1757 Copyright (C) 2012 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1760 _ACEOF
1761   exit
1762 fi
1763
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1767
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   rm -f conftest.$ac_objext
1775   if { { ac_try="$ac_compile"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_compile") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && {
1791          test -z "$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        } && test -s conftest.$ac_objext; then :
1794   ac_retval=0
1795 else
1796   $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799         ac_retval=1
1800 fi
1801   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802   as_fn_set_status $ac_retval
1803
1804 } # ac_fn_c_try_compile
1805
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_link ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   rm -f conftest.$ac_objext conftest$ac_exeext
1813   if { { ac_try="$ac_link"
1814 case "(($ac_try" in
1815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816   *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820   (eval "$ac_link") 2>conftest.err
1821   ac_status=$?
1822   if test -s conftest.err; then
1823     grep -v '^ *+' conftest.err >conftest.er1
1824     cat conftest.er1 >&5
1825     mv -f conftest.er1 conftest.err
1826   fi
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; } && {
1829          test -z "$ac_c_werror_flag" ||
1830          test ! -s conftest.err
1831        } && test -s conftest$ac_exeext && {
1832          test "$cross_compiling" = yes ||
1833          test -x conftest$ac_exeext
1834        }; then :
1835   ac_retval=0
1836 else
1837   $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840         ac_retval=1
1841 fi
1842   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844   # interfere with the next link command; also delete a directory that is
1845   # left behind by Apple's compiler.  We do this before executing the actions.
1846   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848   as_fn_set_status $ac_retval
1849
1850 } # ac_fn_c_try_link
1851
1852 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists and can be compiled using the include files in
1855 # INCLUDES, setting the cache variable VAR accordingly.
1856 ac_fn_c_check_header_compile ()
1857 {
1858   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862   $as_echo_n "(cached) " >&6
1863 else
1864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h.  */
1866 $4
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870   eval "$3=yes"
1871 else
1872   eval "$3=no"
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_header_compile
1882
1883 # ac_fn_c_try_cpp LINENO
1884 # ----------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_cpp ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   if { { ac_try="$ac_cpp conftest.$ac_ext"
1890 case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897   ac_status=$?
1898   if test -s conftest.err; then
1899     grep -v '^ *+' conftest.err >conftest.er1
1900     cat conftest.er1 >&5
1901     mv -f conftest.er1 conftest.err
1902   fi
1903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904   test $ac_status = 0; } > conftest.i && {
1905          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1906          test ! -s conftest.err
1907        }; then :
1908   ac_retval=0
1909 else
1910   $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913     ac_retval=1
1914 fi
1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916   as_fn_set_status $ac_retval
1917
1918 } # ac_fn_c_try_cpp
1919
1920 # ac_fn_c_try_run LINENO
1921 # ----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1923 # that executables *can* be run.
1924 ac_fn_c_try_run ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930   *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934   (eval "$ac_link") 2>&5
1935   ac_status=$?
1936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1938   { { case "(($ac_try" in
1939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940   *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944   (eval "$ac_try") 2>&5
1945   ac_status=$?
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; }; }; then :
1948   ac_retval=0
1949 else
1950   $as_echo "$as_me: program exited with status $ac_status" >&5
1951        $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954        ac_retval=$ac_status
1955 fi
1956   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958   as_fn_set_status $ac_retval
1959
1960 } # ac_fn_c_try_run
1961
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971   $as_echo_n "(cached) " >&6
1972 else
1973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h.  */
1975 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1977 #define $2 innocuous_$2
1978
1979 /* System header to define __stub macros and hopefully few prototypes,
1980     which can conflict with char $2 (); below.
1981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1982     <limits.h> exists even on freestanding compilers.  */
1983
1984 #ifdef __STDC__
1985 # include <limits.h>
1986 #else
1987 # include <assert.h>
1988 #endif
1989
1990 #undef $2
1991
1992 /* Override any GCC internal prototype to avoid an error.
1993    Use char because int might match the return type of a GCC
1994    builtin and then its argument prototype would still apply.  */
1995 #ifdef __cplusplus
1996 extern "C"
1997 #endif
1998 char $2 ();
1999 /* The GNU C library defines this for functions which it implements
2000     to always fail with ENOSYS.  Some functions are actually named
2001     something starting with __ and the normal name is an alias.  */
2002 #if defined __stub_$2 || defined __stub___$2
2003 choke me
2004 #endif
2005
2006 int
2007 main ()
2008 {
2009 return $2 ();
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_link "$LINENO"; then :
2015   eval "$3=yes"
2016 else
2017   eval "$3=no"
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext \
2020     conftest$ac_exeext conftest.$ac_ext
2021 fi
2022 eval ac_res=\$$3
2023                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027 } # ac_fn_c_check_func
2028
2029 # ac_fn_cxx_try_compile LINENO
2030 # ----------------------------
2031 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_cxx_try_compile ()
2033 {
2034   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035   rm -f conftest.$ac_objext
2036   if { { ac_try="$ac_compile"
2037 case "(($ac_try" in
2038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039   *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043   (eval "$ac_compile") 2>conftest.err
2044   ac_status=$?
2045   if test -s conftest.err; then
2046     grep -v '^ *+' conftest.err >conftest.er1
2047     cat conftest.er1 >&5
2048     mv -f conftest.er1 conftest.err
2049   fi
2050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051   test $ac_status = 0; } && {
2052          test -z "$ac_cxx_werror_flag" ||
2053          test ! -s conftest.err
2054        } && test -s conftest.$ac_objext; then :
2055   ac_retval=0
2056 else
2057   $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2059
2060         ac_retval=1
2061 fi
2062   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063   as_fn_set_status $ac_retval
2064
2065 } # ac_fn_cxx_try_compile
2066
2067 # ac_fn_cxx_try_cpp LINENO
2068 # ------------------------
2069 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2070 ac_fn_cxx_try_cpp ()
2071 {
2072   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073   if { { ac_try="$ac_cpp conftest.$ac_ext"
2074 case "(($ac_try" in
2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076   *) ac_try_echo=$ac_try;;
2077 esac
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2081   ac_status=$?
2082   if test -s conftest.err; then
2083     grep -v '^ *+' conftest.err >conftest.er1
2084     cat conftest.er1 >&5
2085     mv -f conftest.er1 conftest.err
2086   fi
2087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088   test $ac_status = 0; } > conftest.i && {
2089          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2090          test ! -s conftest.err
2091        }; then :
2092   ac_retval=0
2093 else
2094   $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097     ac_retval=1
2098 fi
2099   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100   as_fn_set_status $ac_retval
2101
2102 } # ac_fn_cxx_try_cpp
2103
2104 # ac_fn_cxx_try_link LINENO
2105 # -------------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_cxx_try_link ()
2108 {
2109   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110   rm -f conftest.$ac_objext conftest$ac_exeext
2111   if { { ac_try="$ac_link"
2112 case "(($ac_try" in
2113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114   *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118   (eval "$ac_link") 2>conftest.err
2119   ac_status=$?
2120   if test -s conftest.err; then
2121     grep -v '^ *+' conftest.err >conftest.er1
2122     cat conftest.er1 >&5
2123     mv -f conftest.er1 conftest.err
2124   fi
2125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126   test $ac_status = 0; } && {
2127          test -z "$ac_cxx_werror_flag" ||
2128          test ! -s conftest.err
2129        } && test -s conftest$ac_exeext && {
2130          test "$cross_compiling" = yes ||
2131          test -x conftest$ac_exeext
2132        }; then :
2133   ac_retval=0
2134 else
2135   $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2137
2138         ac_retval=1
2139 fi
2140   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2141   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2142   # interfere with the next link command; also delete a directory that is
2143   # left behind by Apple's compiler.  We do this before executing the actions.
2144   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146   as_fn_set_status $ac_retval
2147
2148 } # ac_fn_cxx_try_link
2149
2150 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2151 # -------------------------------------------------------
2152 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2153 # the include files in INCLUDES and setting the cache variable VAR
2154 # accordingly.
2155 ac_fn_c_check_header_mongrel ()
2156 {
2157   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158   if eval \${$3+:} false; then :
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162   $as_echo_n "(cached) " >&6
2163 fi
2164 eval ac_res=\$$3
2165                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 else
2168   # Is the header compilable?
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2170 $as_echo_n "checking $2 usability... " >&6; }
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h.  */
2173 $4
2174 #include <$2>
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177   ac_header_compiler=yes
2178 else
2179   ac_header_compiler=no
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2183 $as_echo "$ac_header_compiler" >&6; }
2184
2185 # Is the header present?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2187 $as_echo_n "checking $2 presence... " >&6; }
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 #include <$2>
2191 _ACEOF
2192 if ac_fn_c_try_cpp "$LINENO"; then :
2193   ac_header_preproc=yes
2194 else
2195   ac_header_preproc=no
2196 fi
2197 rm -f conftest.err conftest.i conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2199 $as_echo "$ac_header_preproc" >&6; }
2200
2201 # So?  What about this header?
2202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2203   yes:no: )
2204     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2205 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2208     ;;
2209   no:yes:* )
2210     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2211 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2212     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2213 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2214     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2215 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2216     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2217 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2218     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2219 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2220 ( $as_echo "## -------------------------------------------------------------- ##
2221 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2222 ## -------------------------------------------------------------- ##"
2223      ) | sed "s/^/$as_me: WARNING:     /" >&2
2224     ;;
2225 esac
2226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229   $as_echo_n "(cached) " >&6
2230 else
2231   eval "$3=\$ac_header_compiler"
2232 fi
2233 eval ac_res=\$$3
2234                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 fi
2237   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238
2239 } # ac_fn_c_check_header_mongrel
2240
2241 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2242 # --------------------------------------------
2243 # Tries to find the compile-time value of EXPR in a program that includes
2244 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2245 # computed
2246 ac_fn_c_compute_int ()
2247 {
2248   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249   if test "$cross_compiling" = yes; then
2250     # Depending upon the size, compute the lo and hi bounds.
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) >= 0)];
2258 test_array [0] = 0;
2259 return test_array [0];
2260
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266   ac_lo=0 ac_mid=0
2267   while :; do
2268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h.  */
2270 $4
2271 int
2272 main ()
2273 {
2274 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2275 test_array [0] = 0;
2276 return test_array [0];
2277
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283   ac_hi=$ac_mid; break
2284 else
2285   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2286                         if test $ac_lo -le $ac_mid; then
2287                           ac_lo= ac_hi=
2288                           break
2289                         fi
2290                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2291 fi
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293   done
2294 else
2295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 $4
2298 int
2299 main ()
2300 {
2301 static int test_array [1 - 2 * !(($2) < 0)];
2302 test_array [0] = 0;
2303 return test_array [0];
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310   ac_hi=-1 ac_mid=-1
2311   while :; do
2312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h.  */
2314 $4
2315 int
2316 main ()
2317 {
2318 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2319 test_array [0] = 0;
2320 return test_array [0];
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2327   ac_lo=$ac_mid; break
2328 else
2329   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2330                         if test $ac_mid -le $ac_hi; then
2331                           ac_lo= ac_hi=
2332                           break
2333                         fi
2334                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337   done
2338 else
2339   ac_lo= ac_hi=
2340 fi
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 # Binary search between lo and hi bounds.
2345 while test "x$ac_lo" != "x$ac_hi"; do
2346   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h.  */
2349 $4
2350 int
2351 main ()
2352 {
2353 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2354 test_array [0] = 0;
2355 return test_array [0];
2356
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 if ac_fn_c_try_compile "$LINENO"; then :
2362   ac_hi=$ac_mid
2363 else
2364   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2365 fi
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 done
2368 case $ac_lo in #((
2369 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2370 '') ac_retval=1 ;;
2371 esac
2372   else
2373     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 static long int longval () { return $2; }
2377 static unsigned long int ulongval () { return $2; }
2378 #include <stdio.h>
2379 #include <stdlib.h>
2380 int
2381 main ()
2382 {
2383
2384   FILE *f = fopen ("conftest.val", "w");
2385   if (! f)
2386     return 1;
2387   if (($2) < 0)
2388     {
2389       long int i = longval ();
2390       if (i != ($2))
2391         return 1;
2392       fprintf (f, "%ld", i);
2393     }
2394   else
2395     {
2396       unsigned long int i = ulongval ();
2397       if (i != ($2))
2398         return 1;
2399       fprintf (f, "%lu", i);
2400     }
2401   /* Do not output a trailing newline, as this causes \r\n confusion
2402      on some platforms.  */
2403   return ferror (f) || fclose (f) != 0;
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 if ac_fn_c_try_run "$LINENO"; then :
2410   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2411 else
2412   ac_retval=1
2413 fi
2414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2415   conftest.$ac_objext conftest.beam conftest.$ac_ext
2416 rm -f conftest.val
2417
2418   fi
2419   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420   as_fn_set_status $ac_retval
2421
2422 } # ac_fn_c_compute_int
2423
2424 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2425 # ---------------------------------------------------------
2426 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2427 # the include files in INCLUDES and setting the cache variable VAR
2428 # accordingly.
2429 ac_fn_cxx_check_header_mongrel ()
2430 {
2431   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432   if eval \${$3+:} false; then :
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if eval \${$3+:} false; then :
2436   $as_echo_n "(cached) " >&6
2437 fi
2438 eval ac_res=\$$3
2439                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 else
2442   # Is the header compilable?
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2444 $as_echo_n "checking $2 usability... " >&6; }
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h.  */
2447 $4
2448 #include <$2>
2449 _ACEOF
2450 if ac_fn_cxx_try_compile "$LINENO"; then :
2451   ac_header_compiler=yes
2452 else
2453   ac_header_compiler=no
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2457 $as_echo "$ac_header_compiler" >&6; }
2458
2459 # Is the header present?
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2461 $as_echo_n "checking $2 presence... " >&6; }
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h.  */
2464 #include <$2>
2465 _ACEOF
2466 if ac_fn_cxx_try_cpp "$LINENO"; then :
2467   ac_header_preproc=yes
2468 else
2469   ac_header_preproc=no
2470 fi
2471 rm -f conftest.err conftest.i conftest.$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2473 $as_echo "$ac_header_preproc" >&6; }
2474
2475 # So?  What about this header?
2476 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2477   yes:no: )
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2479 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2481 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2482     ;;
2483   no:yes:* )
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2485 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2486     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2487 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2488     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2489 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2491 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2493 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2494 ( $as_echo "## -------------------------------------------------------------- ##
2495 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2496 ## -------------------------------------------------------------- ##"
2497      ) | sed "s/^/$as_me: WARNING:     /" >&2
2498     ;;
2499 esac
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if eval \${$3+:} false; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   eval "$3=\$ac_header_compiler"
2506 fi
2507 eval ac_res=\$$3
2508                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 fi
2511   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2512
2513 } # ac_fn_cxx_check_header_mongrel
2514
2515 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2516 # -------------------------------------------
2517 # Tests whether TYPE exists after having included INCLUDES, setting cache
2518 # variable VAR accordingly.
2519 ac_fn_c_check_type ()
2520 {
2521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2523 $as_echo_n "checking for $2... " >&6; }
2524 if eval \${$3+:} false; then :
2525   $as_echo_n "(cached) " >&6
2526 else
2527   eval "$3=no"
2528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h.  */
2530 $4
2531 int
2532 main ()
2533 {
2534 if (sizeof ($2))
2535          return 0;
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 if ac_fn_c_try_compile "$LINENO"; then :
2541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h.  */
2543 $4
2544 int
2545 main ()
2546 {
2547 if (sizeof (($2)))
2548             return 0;
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554
2555 else
2556   eval "$3=yes"
2557 fi
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 fi
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 fi
2562 eval ac_res=\$$3
2563                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2566
2567 } # ac_fn_c_check_type
2568 cat >config.log <<_ACEOF
2569 This file contains any messages produced by compilers while
2570 running configure, to aid debugging if configure makes a mistake.
2571
2572 It was created by HarfBuzz $as_me 3.4.0, which was
2573 generated by GNU Autoconf 2.69.  Invocation command line was
2574
2575   $ $0 $@
2576
2577 _ACEOF
2578 exec 5>>config.log
2579 {
2580 cat <<_ASUNAME
2581 ## --------- ##
2582 ## Platform. ##
2583 ## --------- ##
2584
2585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2590
2591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2592 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2593
2594 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2595 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2597 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2598 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2599 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2600 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2601
2602 _ASUNAME
2603
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609     $as_echo "PATH: $as_dir"
2610   done
2611 IFS=$as_save_IFS
2612
2613 } >&5
2614
2615 cat >&5 <<_ACEOF
2616
2617
2618 ## ----------- ##
2619 ## Core tests. ##
2620 ## ----------- ##
2621
2622 _ACEOF
2623
2624
2625 # Keep a trace of the command line.
2626 # Strip out --no-create and --no-recursion so they do not pile up.
2627 # Strip out --silent because we don't want to record it for future runs.
2628 # Also quote any args containing shell meta-characters.
2629 # Make two passes to allow for proper duplicate-argument suppression.
2630 ac_configure_args=
2631 ac_configure_args0=
2632 ac_configure_args1=
2633 ac_must_keep_next=false
2634 for ac_pass in 1 2
2635 do
2636   for ac_arg
2637   do
2638     case $ac_arg in
2639     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2640     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2641     | -silent | --silent | --silen | --sile | --sil)
2642       continue ;;
2643     *\'*)
2644       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2645     esac
2646     case $ac_pass in
2647     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2648     2)
2649       as_fn_append ac_configure_args1 " '$ac_arg'"
2650       if test $ac_must_keep_next = true; then
2651         ac_must_keep_next=false # Got value, back to normal.
2652       else
2653         case $ac_arg in
2654           *=* | --config-cache | -C | -disable-* | --disable-* \
2655           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2656           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2657           | -with-* | --with-* | -without-* | --without-* | --x)
2658             case "$ac_configure_args0 " in
2659               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2660             esac
2661             ;;
2662           -* ) ac_must_keep_next=true ;;
2663         esac
2664       fi
2665       as_fn_append ac_configure_args " '$ac_arg'"
2666       ;;
2667     esac
2668   done
2669 done
2670 { ac_configure_args0=; unset ac_configure_args0;}
2671 { ac_configure_args1=; unset ac_configure_args1;}
2672
2673 # When interrupted or exit'd, cleanup temporary files, and complete
2674 # config.log.  We remove comments because anyway the quotes in there
2675 # would cause problems or look ugly.
2676 # WARNING: Use '\'' to represent an apostrophe within the trap.
2677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2678 trap 'exit_status=$?
2679   # Save into config.log some information that might help in debugging.
2680   {
2681     echo
2682
2683     $as_echo "## ---------------- ##
2684 ## Cache variables. ##
2685 ## ---------------- ##"
2686     echo
2687     # The following way of writing the cache mishandles newlines in values,
2688 (
2689   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2690     eval ac_val=\$$ac_var
2691     case $ac_val in #(
2692     *${as_nl}*)
2693       case $ac_var in #(
2694       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2695 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2696       esac
2697       case $ac_var in #(
2698       _ | IFS | as_nl) ;; #(
2699       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2700       *) { eval $ac_var=; unset $ac_var;} ;;
2701       esac ;;
2702     esac
2703   done
2704   (set) 2>&1 |
2705     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2706     *${as_nl}ac_space=\ *)
2707       sed -n \
2708         "s/'\''/'\''\\\\'\'''\''/g;
2709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2710       ;; #(
2711     *)
2712       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2713       ;;
2714     esac |
2715     sort
2716 )
2717     echo
2718
2719     $as_echo "## ----------------- ##
2720 ## Output variables. ##
2721 ## ----------------- ##"
2722     echo
2723     for ac_var in $ac_subst_vars
2724     do
2725       eval ac_val=\$$ac_var
2726       case $ac_val in
2727       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2728       esac
2729       $as_echo "$ac_var='\''$ac_val'\''"
2730     done | sort
2731     echo
2732
2733     if test -n "$ac_subst_files"; then
2734       $as_echo "## ------------------- ##
2735 ## File substitutions. ##
2736 ## ------------------- ##"
2737       echo
2738       for ac_var in $ac_subst_files
2739       do
2740         eval ac_val=\$$ac_var
2741         case $ac_val in
2742         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2743         esac
2744         $as_echo "$ac_var='\''$ac_val'\''"
2745       done | sort
2746       echo
2747     fi
2748
2749     if test -s confdefs.h; then
2750       $as_echo "## ----------- ##
2751 ## confdefs.h. ##
2752 ## ----------- ##"
2753       echo
2754       cat confdefs.h
2755       echo
2756     fi
2757     test "$ac_signal" != 0 &&
2758       $as_echo "$as_me: caught signal $ac_signal"
2759     $as_echo "$as_me: exit $exit_status"
2760   } >&5
2761   rm -f core *.core core.conftest.* &&
2762     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2763     exit $exit_status
2764 ' 0
2765 for ac_signal in 1 2 13 15; do
2766   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2767 done
2768 ac_signal=0
2769
2770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2771 rm -f -r conftest* confdefs.h
2772
2773 $as_echo "/* confdefs.h */" > confdefs.h
2774
2775 # Predefined preprocessor variables.
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_NAME "$PACKAGE_NAME"
2779 _ACEOF
2780
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2783 _ACEOF
2784
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2787 _ACEOF
2788
2789 cat >>confdefs.h <<_ACEOF
2790 #define PACKAGE_STRING "$PACKAGE_STRING"
2791 _ACEOF
2792
2793 cat >>confdefs.h <<_ACEOF
2794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2795 _ACEOF
2796
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE_URL "$PACKAGE_URL"
2799 _ACEOF
2800
2801
2802 # Let the site file select an alternate cache file if it wants to.
2803 # Prefer an explicitly selected file to automatically selected ones.
2804 ac_site_file1=NONE
2805 ac_site_file2=NONE
2806 if test -n "$CONFIG_SITE"; then
2807   # We do not want a PATH search for config.site.
2808   case $CONFIG_SITE in #((
2809     -*)  ac_site_file1=./$CONFIG_SITE;;
2810     */*) ac_site_file1=$CONFIG_SITE;;
2811     *)   ac_site_file1=./$CONFIG_SITE;;
2812   esac
2813 elif test "x$prefix" != xNONE; then
2814   ac_site_file1=$prefix/share/config.site
2815   ac_site_file2=$prefix/etc/config.site
2816 else
2817   ac_site_file1=$ac_default_prefix/share/config.site
2818   ac_site_file2=$ac_default_prefix/etc/config.site
2819 fi
2820 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2821 do
2822   test "x$ac_site_file" = xNONE && continue
2823   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2824     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2825 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2826     sed 's/^/| /' "$ac_site_file" >&5
2827     . "$ac_site_file" \
2828       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 as_fn_error $? "failed to load site script $ac_site_file
2831 See \`config.log' for more details" "$LINENO" 5; }
2832   fi
2833 done
2834
2835 if test -r "$cache_file"; then
2836   # Some versions of bash will fail to source /dev/null (special files
2837   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2838   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2839     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2840 $as_echo "$as_me: loading cache $cache_file" >&6;}
2841     case $cache_file in
2842       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2843       *)                      . "./$cache_file";;
2844     esac
2845   fi
2846 else
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2848 $as_echo "$as_me: creating cache $cache_file" >&6;}
2849   >$cache_file
2850 fi
2851
2852 # Check that the precious variables saved in the cache have kept the same
2853 # value.
2854 ac_cache_corrupted=false
2855 for ac_var in $ac_precious_vars; do
2856   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2857   eval ac_new_set=\$ac_env_${ac_var}_set
2858   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2859   eval ac_new_val=\$ac_env_${ac_var}_value
2860   case $ac_old_set,$ac_new_set in
2861     set,)
2862       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2863 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2864       ac_cache_corrupted=: ;;
2865     ,set)
2866       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2867 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2868       ac_cache_corrupted=: ;;
2869     ,);;
2870     *)
2871       if test "x$ac_old_val" != "x$ac_new_val"; then
2872         # differences in whitespace do not lead to failure.
2873         ac_old_val_w=`echo x $ac_old_val`
2874         ac_new_val_w=`echo x $ac_new_val`
2875         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2876           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2877 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2878           ac_cache_corrupted=:
2879         else
2880           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2881 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2882           eval $ac_var=\$ac_old_val
2883         fi
2884         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2885 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2886         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2887 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2888       fi;;
2889   esac
2890   # Pass precious variables to config.status.
2891   if test "$ac_new_set" = set; then
2892     case $ac_new_val in
2893     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2894     *) ac_arg=$ac_var=$ac_new_val ;;
2895     esac
2896     case " $ac_configure_args " in
2897       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2898       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2899     esac
2900   fi
2901 done
2902 if $ac_cache_corrupted; then
2903   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2906 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2907   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2908 fi
2909 ## -------------------- ##
2910 ## Main body of script. ##
2911 ## -------------------- ##
2912
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918
2919
2920
2921
2922
2923 ac_config_headers="$ac_config_headers config.h"
2924
2925
2926 am__api_version='1.16'
2927
2928 ac_aux_dir=
2929 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2930   if test -f "$ac_dir/install-sh"; then
2931     ac_aux_dir=$ac_dir
2932     ac_install_sh="$ac_aux_dir/install-sh -c"
2933     break
2934   elif test -f "$ac_dir/install.sh"; then
2935     ac_aux_dir=$ac_dir
2936     ac_install_sh="$ac_aux_dir/install.sh -c"
2937     break
2938   elif test -f "$ac_dir/shtool"; then
2939     ac_aux_dir=$ac_dir
2940     ac_install_sh="$ac_aux_dir/shtool install -c"
2941     break
2942   fi
2943 done
2944 if test -z "$ac_aux_dir"; then
2945   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2946 fi
2947
2948 # These three variables are undocumented and unsupported,
2949 # and are intended to be withdrawn in a future Autoconf release.
2950 # They can cause serious problems if a builder's source tree is in a directory
2951 # whose full name contains unusual characters.
2952 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2953 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2954 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2955
2956
2957 # Find a good install program.  We prefer a C program (faster),
2958 # so one script is as good as another.  But avoid the broken or
2959 # incompatible versions:
2960 # SysV /etc/install, /usr/sbin/install
2961 # SunOS /usr/etc/install
2962 # IRIX /sbin/install
2963 # AIX /bin/install
2964 # AmigaOS /C/install, which installs bootblocks on floppy discs
2965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2968 # OS/2's system install, which has a completely different semantic
2969 # ./install, which can be erroneously created by make from ./install.sh.
2970 # Reject install programs that cannot install multiple files.
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2972 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2973 if test -z "$INSTALL"; then
2974 if ${ac_cv_path_install+:} false; then :
2975   $as_echo_n "(cached) " >&6
2976 else
2977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982     # Account for people who put trailing slashes in PATH elements.
2983 case $as_dir/ in #((
2984   ./ | .// | /[cC]/* | \
2985   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2986   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2987   /usr/ucb/* ) ;;
2988   *)
2989     # OSF1 and SCO ODT 3.0 have their own names for install.
2990     # Don't use installbsd from OSF since it installs stuff as root
2991     # by default.
2992     for ac_prog in ginstall scoinst install; do
2993       for ac_exec_ext in '' $ac_executable_extensions; do
2994         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2995           if test $ac_prog = install &&
2996             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2997             # AIX install.  It has an incompatible calling convention.
2998             :
2999           elif test $ac_prog = install &&
3000             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3001             # program-specific install script used by HP pwplus--don't use.
3002             :
3003           else
3004             rm -rf conftest.one conftest.two conftest.dir
3005             echo one > conftest.one
3006             echo two > conftest.two
3007             mkdir conftest.dir
3008             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3009               test -s conftest.one && test -s conftest.two &&
3010               test -s conftest.dir/conftest.one &&
3011               test -s conftest.dir/conftest.two
3012             then
3013               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3014               break 3
3015             fi
3016           fi
3017         fi
3018       done
3019     done
3020     ;;
3021 esac
3022
3023   done
3024 IFS=$as_save_IFS
3025
3026 rm -rf conftest.one conftest.two conftest.dir
3027
3028 fi
3029   if test "${ac_cv_path_install+set}" = set; then
3030     INSTALL=$ac_cv_path_install
3031   else
3032     # As a last resort, use the slow shell script.  Don't cache a
3033     # value for INSTALL within a source directory, because that will
3034     # break other packages using the cache if that directory is
3035     # removed, or if the value is a relative name.
3036     INSTALL=$ac_install_sh
3037   fi
3038 fi
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3040 $as_echo "$INSTALL" >&6; }
3041
3042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3043 # It thinks the first close brace ends the variable substitution.
3044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3045
3046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3047
3048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3049
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3051 $as_echo_n "checking whether build environment is sane... " >&6; }
3052 # Reject unsafe characters in $srcdir or the absolute working directory
3053 # name.  Accept space and tab only in the latter.
3054 am_lf='
3055 '
3056 case `pwd` in
3057   *[\\\"\#\$\&\'\`$am_lf]*)
3058     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3059 esac
3060 case $srcdir in
3061   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3062     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3063 esac
3064
3065 # Do 'set' in a subshell so we don't clobber the current shell's
3066 # arguments.  Must try -L first in case configure is actually a
3067 # symlink; some systems play weird games with the mod time of symlinks
3068 # (eg FreeBSD returns the mod time of the symlink's containing
3069 # directory).
3070 if (
3071    am_has_slept=no
3072    for am_try in 1 2; do
3073      echo "timestamp, slept: $am_has_slept" > conftest.file
3074      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3075      if test "$*" = "X"; then
3076         # -L didn't work.
3077         set X `ls -t "$srcdir/configure" conftest.file`
3078      fi
3079      if test "$*" != "X $srcdir/configure conftest.file" \
3080         && test "$*" != "X conftest.file $srcdir/configure"; then
3081
3082         # If neither matched, then we have a broken ls.  This can happen
3083         # if, for instance, CONFIG_SHELL is bash and it inherits a
3084         # broken ls alias from the environment.  This has actually
3085         # happened.  Such a system could not be considered "sane".
3086         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3087   alias in your environment" "$LINENO" 5
3088      fi
3089      if test "$2" = conftest.file || test $am_try -eq 2; then
3090        break
3091      fi
3092      # Just in case.
3093      sleep 1
3094      am_has_slept=yes
3095    done
3096    test "$2" = conftest.file
3097    )
3098 then
3099    # Ok.
3100    :
3101 else
3102    as_fn_error $? "newly created file is older than distributed files!
3103 Check your system clock" "$LINENO" 5
3104 fi
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106 $as_echo "yes" >&6; }
3107 # If we didn't sleep, we still need to ensure time stamps of config.status and
3108 # generated files are strictly newer.
3109 am_sleep_pid=
3110 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3111   ( sleep 1 ) &
3112   am_sleep_pid=$!
3113 fi
3114
3115 rm -f conftest.file
3116
3117 test "$program_prefix" != NONE &&
3118   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3119 # Use a double $ so make ignores it.
3120 test "$program_suffix" != NONE &&
3121   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3122 # Double any \ or $.
3123 # By default was `s,x,x', remove it if useless.
3124 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3125 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3126
3127 # Expand $ac_aux_dir to an absolute path.
3128 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3129
3130 if test x"${MISSING+set}" != xset; then
3131   case $am_aux_dir in
3132   *\ * | *\     *)
3133     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3134   *)
3135     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3136   esac
3137 fi
3138 # Use eval to expand $SHELL
3139 if eval "$MISSING --is-lightweight"; then
3140   am_missing_run="$MISSING "
3141 else
3142   am_missing_run=
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3144 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3145 fi
3146
3147 if test x"${install_sh+set}" != xset; then
3148   case $am_aux_dir in
3149   *\ * | *\     *)
3150     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3151   *)
3152     install_sh="\${SHELL} $am_aux_dir/install-sh"
3153   esac
3154 fi
3155
3156 # Installed binaries are usually stripped using 'strip' when the user
3157 # run "make install-strip".  However 'strip' might not be the right
3158 # tool to use in cross-compilation environments, therefore Automake
3159 # will honor the 'STRIP' environment variable to overrule this program.
3160 if test "$cross_compiling" != no; then
3161   if test -n "$ac_tool_prefix"; then
3162   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3163 set dummy ${ac_tool_prefix}strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_STRIP+:} false; then :
3167   $as_echo_n "(cached) " >&6
3168 else
3169   if test -n "$STRIP"; then
3170   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177     for ac_exec_ext in '' $ac_executable_extensions; do
3178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181     break 2
3182   fi
3183 done
3184   done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 STRIP=$ac_cv_prog_STRIP
3190 if test -n "$STRIP"; then
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3192 $as_echo "$STRIP" >&6; }
3193 else
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198
3199 fi
3200 if test -z "$ac_cv_prog_STRIP"; then
3201   ac_ct_STRIP=$STRIP
3202   # Extract the first word of "strip", so it can be a program name with args.
3203 set dummy strip; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3207   $as_echo_n "(cached) " >&6
3208 else
3209   if test -n "$ac_ct_STRIP"; then
3210   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215   IFS=$as_save_IFS
3216   test -z "$as_dir" && as_dir=.
3217     for ac_exec_ext in '' $ac_executable_extensions; do
3218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219     ac_cv_prog_ac_ct_STRIP="strip"
3220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221     break 2
3222   fi
3223 done
3224   done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3230 if test -n "$ac_ct_STRIP"; then
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3232 $as_echo "$ac_ct_STRIP" >&6; }
3233 else
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238   if test "x$ac_ct_STRIP" = x; then
3239     STRIP=":"
3240   else
3241     case $cross_compiling:$ac_tool_warned in
3242 yes:)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3246 esac
3247     STRIP=$ac_ct_STRIP
3248   fi
3249 else
3250   STRIP="$ac_cv_prog_STRIP"
3251 fi
3252
3253 fi
3254 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3255
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3257 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3258 if test -z "$MKDIR_P"; then
3259   if ${ac_cv_path_mkdir+:} false; then :
3260   $as_echo_n "(cached) " >&6
3261 else
3262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267     for ac_prog in mkdir gmkdir; do
3268          for ac_exec_ext in '' $ac_executable_extensions; do
3269            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3270            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3271              'mkdir (GNU coreutils) '* | \
3272              'mkdir (coreutils) '* | \
3273              'mkdir (fileutils) '4.1*)
3274                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3275                break 3;;
3276            esac
3277          done
3278        done
3279   done
3280 IFS=$as_save_IFS
3281
3282 fi
3283
3284   test -d ./--version && rmdir ./--version
3285   if test "${ac_cv_path_mkdir+set}" = set; then
3286     MKDIR_P="$ac_cv_path_mkdir -p"
3287   else
3288     # As a last resort, use the slow shell script.  Don't cache a
3289     # value for MKDIR_P within a source directory, because that will
3290     # break other packages using the cache if that directory is
3291     # removed, or if the value is a relative name.
3292     MKDIR_P="$ac_install_sh -d"
3293   fi
3294 fi
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3296 $as_echo "$MKDIR_P" >&6; }
3297
3298 for ac_prog in gawk mawk nawk awk
3299 do
3300   # Extract the first word of "$ac_prog", so it can be a program name with args.
3301 set dummy $ac_prog; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_AWK+:} false; then :
3305   $as_echo_n "(cached) " >&6
3306 else
3307   if test -n "$AWK"; then
3308   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315     for ac_exec_ext in '' $ac_executable_extensions; do
3316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_prog_AWK="$ac_prog"
3318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322   done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 AWK=$ac_cv_prog_AWK
3328 if test -n "$AWK"; then
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3330 $as_echo "$AWK" >&6; }
3331 else
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337   test -n "$AWK" && break
3338 done
3339
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3341 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3342 set x ${MAKE-make}
3343 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3344 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3345   $as_echo_n "(cached) " >&6
3346 else
3347   cat >conftest.make <<\_ACEOF
3348 SHELL = /bin/sh
3349 all:
3350         @echo '@@@%%%=$(MAKE)=@@@%%%'
3351 _ACEOF
3352 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3353 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3354   *@@@%%%=?*=@@@%%%*)
3355     eval ac_cv_prog_make_${ac_make}_set=yes;;
3356   *)
3357     eval ac_cv_prog_make_${ac_make}_set=no;;
3358 esac
3359 rm -f conftest.make
3360 fi
3361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3363 $as_echo "yes" >&6; }
3364   SET_MAKE=
3365 else
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368   SET_MAKE="MAKE=${MAKE-make}"
3369 fi
3370
3371 rm -rf .tst 2>/dev/null
3372 mkdir .tst 2>/dev/null
3373 if test -d .tst; then
3374   am__leading_dot=.
3375 else
3376   am__leading_dot=_
3377 fi
3378 rmdir .tst 2>/dev/null
3379
3380 # Check whether --enable-silent-rules was given.
3381 if test "${enable_silent_rules+set}" = set; then :
3382   enableval=$enable_silent_rules;
3383 fi
3384
3385 case $enable_silent_rules in # (((
3386   yes) AM_DEFAULT_VERBOSITY=0;;
3387    no) AM_DEFAULT_VERBOSITY=1;;
3388     *) AM_DEFAULT_VERBOSITY=1;;
3389 esac
3390 am_make=${MAKE-make}
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3392 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3393 if ${am_cv_make_support_nested_variables+:} false; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   if $as_echo 'TRUE=$(BAR$(V))
3397 BAR0=false
3398 BAR1=true
3399 V=1
3400 am__doit:
3401         @$(TRUE)
3402 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3403   am_cv_make_support_nested_variables=yes
3404 else
3405   am_cv_make_support_nested_variables=no
3406 fi
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3409 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3410 if test $am_cv_make_support_nested_variables = yes; then
3411     AM_V='$(V)'
3412   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3413 else
3414   AM_V=$AM_DEFAULT_VERBOSITY
3415   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3416 fi
3417 AM_BACKSLASH='\'
3418
3419 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3420   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3421   # is not polluted with repeated "-I."
3422   am__isrc=' -I$(srcdir)'
3423   # test to see if srcdir already configured
3424   if test -f $srcdir/config.status; then
3425     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3426   fi
3427 fi
3428
3429 # test whether we have cygpath
3430 if test -z "$CYGPATH_W"; then
3431   if (cygpath --version) >/dev/null 2>/dev/null; then
3432     CYGPATH_W='cygpath -w'
3433   else
3434     CYGPATH_W=echo
3435   fi
3436 fi
3437
3438
3439 # Define the identity of the package.
3440  PACKAGE='harfbuzz'
3441  VERSION='3.4.0'
3442
3443
3444 # Some tools Automake needs.
3445
3446 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3447
3448
3449 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3450
3451
3452 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3453
3454
3455 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3456
3457
3458 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3459
3460 # For better backward compatibility.  To be removed once Automake 1.9.x
3461 # dies out for good.  For more background, see:
3462 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3463 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3464 mkdir_p='$(MKDIR_P)'
3465
3466 # We need awk for the "check" target (and possibly the TAP driver).  The
3467 # system "awk" is bad on some platforms.
3468 # Always define AMTAR for backward compatibility.  Yes, it's still used
3469 # in the wild :-(  We should find a proper way to deprecate it ...
3470 AMTAR='$${TAR-tar}'
3471
3472
3473 # We'll loop over all known methods to create a tar archive until one works.
3474 _am_tools='gnutar plaintar pax cpio none'
3475
3476 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3477       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3478       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3479       # and bug#13588).
3480       am_max_uid=2097151 # 2^21 - 1
3481       am_max_gid=$am_max_uid
3482       # The $UID and $GID variables are not portable, so we need to resort
3483       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3484       # below are definitely unexpected, so allow the users to see them
3485       # (that is, avoid stderr redirection).
3486       am_uid=`id -u || echo unknown`
3487       am_gid=`id -g || echo unknown`
3488       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3489 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3490       if test $am_uid -le $am_max_uid; then
3491          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 $as_echo "yes" >&6; }
3493       else
3494          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496          _am_tools=none
3497       fi
3498       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3499 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3500       if test $am_gid -le $am_max_gid; then
3501          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3502 $as_echo "yes" >&6; }
3503       else
3504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506         _am_tools=none
3507       fi
3508
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3510 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3511
3512   # Go ahead even if we have the value already cached.  We do so because we
3513   # need to set the values for the 'am__tar' and 'am__untar' variables.
3514   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3515
3516   for _am_tool in $_am_tools; do
3517     case $_am_tool in
3518     gnutar)
3519       for _am_tar in tar gnutar gtar; do
3520         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3521    ($_am_tar --version) >&5 2>&5
3522    ac_status=$?
3523    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524    (exit $ac_status); } && break
3525       done
3526       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3527       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3528       am__untar="$_am_tar -xf -"
3529       ;;
3530     plaintar)
3531       # Must skip GNU tar: if it does not support --format= it doesn't create
3532       # ustar tarball either.
3533       (tar --version) >/dev/null 2>&1 && continue
3534       am__tar='tar chf - "$$tardir"'
3535       am__tar_='tar chf - "$tardir"'
3536       am__untar='tar xf -'
3537       ;;
3538     pax)
3539       am__tar='pax -L -x ustar -w "$$tardir"'
3540       am__tar_='pax -L -x ustar -w "$tardir"'
3541       am__untar='pax -r'
3542       ;;
3543     cpio)
3544       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3545       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3546       am__untar='cpio -i -H ustar -d'
3547       ;;
3548     none)
3549       am__tar=false
3550       am__tar_=false
3551       am__untar=false
3552       ;;
3553     esac
3554
3555     # If the value was cached, stop now.  We just wanted to have am__tar
3556     # and am__untar set.
3557     test -n "${am_cv_prog_tar_ustar}" && break
3558
3559     # tar/untar a dummy directory, and stop if the command works.
3560     rm -rf conftest.dir
3561     mkdir conftest.dir
3562     echo GrepMe > conftest.dir/file
3563     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3564    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3565    ac_status=$?
3566    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567    (exit $ac_status); }
3568     rm -rf conftest.dir
3569     if test -s conftest.tar; then
3570       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3571    ($am__untar <conftest.tar) >&5 2>&5
3572    ac_status=$?
3573    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574    (exit $ac_status); }
3575       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3576    (cat conftest.dir/file) >&5 2>&5
3577    ac_status=$?
3578    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579    (exit $ac_status); }
3580       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3581     fi
3582   done
3583   rm -rf conftest.dir
3584
3585   if ${am_cv_prog_tar_ustar+:} false; then :
3586   $as_echo_n "(cached) " >&6
3587 else
3588   am_cv_prog_tar_ustar=$_am_tool
3589 fi
3590
3591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3592 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3593
3594
3595
3596
3597
3598
3599 # POSIX will say in a future version that running "rm -f" with no argument
3600 # is OK; and we want to be able to make that assumption in our Makefile
3601 # recipes.  So use an aggressive probe to check that the usage we want is
3602 # actually supported "in the wild" to an acceptable degree.
3603 # See automake bug#10828.
3604 # To make any issue more visible, cause the running configure to be aborted
3605 # by default if the 'rm' program in use doesn't match our expectations; the
3606 # user can still override this though.
3607 if rm -f && rm -fr && rm -rf; then : OK; else
3608   cat >&2 <<'END'
3609 Oops!
3610
3611 Your 'rm' program seems unable to run without file operands specified
3612 on the command line, even when the '-f' option is present.  This is contrary
3613 to the behaviour of most rm programs out there, and not conforming with
3614 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3615
3616 Please tell bug-automake@gnu.org about your system, including the value
3617 of your $PATH and any error possibly output before this message.  This
3618 can help us improve future automake versions.
3619
3620 END
3621   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3622     echo 'Configuration will proceed anyway, since you have set the' >&2
3623     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3624     echo >&2
3625   else
3626     cat >&2 <<'END'
3627 Aborting the configuration process, to ensure you take notice of the issue.
3628
3629 You can download and install GNU coreutils to get an 'rm' implementation
3630 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3631
3632 If you want to complete the configuration process using your problematic
3633 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3634 to "yes", and re-run configure.
3635
3636 END
3637     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3638   fi
3639 fi
3640
3641 # Check whether --enable-silent-rules was given.
3642 if test "${enable_silent_rules+set}" = set; then :
3643   enableval=$enable_silent_rules;
3644 fi
3645
3646 case $enable_silent_rules in # (((
3647   yes) AM_DEFAULT_VERBOSITY=0;;
3648    no) AM_DEFAULT_VERBOSITY=1;;
3649     *) AM_DEFAULT_VERBOSITY=0;;
3650 esac
3651 am_make=${MAKE-make}
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3653 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3654 if ${am_cv_make_support_nested_variables+:} false; then :
3655   $as_echo_n "(cached) " >&6
3656 else
3657   if $as_echo 'TRUE=$(BAR$(V))
3658 BAR0=false
3659 BAR1=true
3660 V=1
3661 am__doit:
3662         @$(TRUE)
3663 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3664   am_cv_make_support_nested_variables=yes
3665 else
3666   am_cv_make_support_nested_variables=no
3667 fi
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3670 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3671 if test $am_cv_make_support_nested_variables = yes; then
3672     AM_V='$(V)'
3673   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3674 else
3675   AM_V=$AM_DEFAULT_VERBOSITY
3676   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3677 fi
3678 AM_BACKSLASH='\'
3679
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3681 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3682 if ${ac_cv_path_SED+:} false; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3686      for ac_i in 1 2 3 4 5 6 7; do
3687        ac_script="$ac_script$as_nl$ac_script"
3688      done
3689      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3690      { ac_script=; unset ac_script;}
3691      if test -z "$SED"; then
3692   ac_path_SED_found=false
3693   # Loop through the user's path and test for each of PROGNAME-LIST
3694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699     for ac_prog in sed gsed; do
3700     for ac_exec_ext in '' $ac_executable_extensions; do
3701       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3702       as_fn_executable_p "$ac_path_SED" || continue
3703 # Check for GNU ac_path_SED and select it if it is found.
3704   # Check for GNU $ac_path_SED
3705 case `"$ac_path_SED" --version 2>&1` in
3706 *GNU*)
3707   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3708 *)
3709   ac_count=0
3710   $as_echo_n 0123456789 >"conftest.in"
3711   while :
3712   do
3713     cat "conftest.in" "conftest.in" >"conftest.tmp"
3714     mv "conftest.tmp" "conftest.in"
3715     cp "conftest.in" "conftest.nl"
3716     $as_echo '' >> "conftest.nl"
3717     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3718     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3719     as_fn_arith $ac_count + 1 && ac_count=$as_val
3720     if test $ac_count -gt ${ac_path_SED_max-0}; then
3721       # Best one so far, save it but keep looking for a better one
3722       ac_cv_path_SED="$ac_path_SED"
3723       ac_path_SED_max=$ac_count
3724     fi
3725     # 10*(2^10) chars as input seems more than enough
3726     test $ac_count -gt 10 && break
3727   done
3728   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3729 esac
3730
3731       $ac_path_SED_found && break 3
3732     done
3733   done
3734   done
3735 IFS=$as_save_IFS
3736   if test -z "$ac_cv_path_SED"; then
3737     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3738   fi
3739 else
3740   ac_cv_path_SED=$SED
3741 fi
3742
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3745 $as_echo "$ac_cv_path_SED" >&6; }
3746  SED="$ac_cv_path_SED"
3747   rm -f conftest.sed
3748
3749
3750
3751
3752         # allow to override gcov location
3753
3754 # Check whether --with-gcov was given.
3755 if test "${with_gcov+set}" = set; then :
3756   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3757 else
3758   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3759 fi
3760
3761
3762         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3763 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3764         # Check whether --enable-code-coverage was given.
3765 if test "${enable_code_coverage+set}" = set; then :
3766   enableval=$enable_code_coverage;
3767 else
3768   enable_code_coverage=no
3769 fi
3770
3771
3772          if test x$enable_code_coverage = xyes; then
3773   CODE_COVERAGE_ENABLED_TRUE=
3774   CODE_COVERAGE_ENABLED_FALSE='#'
3775 else
3776   CODE_COVERAGE_ENABLED_TRUE='#'
3777   CODE_COVERAGE_ENABLED_FALSE=
3778 fi
3779
3780         CODE_COVERAGE_ENABLED=$enable_code_coverage
3781
3782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3783 $as_echo "$enable_code_coverage" >&6; }
3784
3785         if  test "$enable_code_coverage" = "yes" ; then :
3786
3787                 # check for gcov
3788                 if test -n "$ac_tool_prefix"; then
3789   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3790 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_GCOV+:} false; then :
3794   $as_echo_n "(cached) " >&6
3795 else
3796   if test -n "$GCOV"; then
3797   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804     for ac_exec_ext in '' $ac_executable_extensions; do
3805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808     break 2
3809   fi
3810 done
3811   done
3812 IFS=$as_save_IFS
3813
3814 fi
3815 fi
3816 GCOV=$ac_cv_prog_GCOV
3817 if test -n "$GCOV"; then
3818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3819 $as_echo "$GCOV" >&6; }
3820 else
3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 if test -z "$ac_cv_prog_GCOV"; then
3828   ac_ct_GCOV=$GCOV
3829   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3830 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   if test -n "$ac_ct_GCOV"; then
3837   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842   IFS=$as_save_IFS
3843   test -z "$as_dir" && as_dir=.
3844     for ac_exec_ext in '' $ac_executable_extensions; do
3845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848     break 2
3849   fi
3850 done
3851   done
3852 IFS=$as_save_IFS
3853
3854 fi
3855 fi
3856 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3857 if test -n "$ac_ct_GCOV"; then
3858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3859 $as_echo "$ac_ct_GCOV" >&6; }
3860 else
3861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3864
3865   if test "x$ac_ct_GCOV" = x; then
3866     GCOV=":"
3867   else
3868     case $cross_compiling:$ac_tool_warned in
3869 yes:)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3873 esac
3874     GCOV=$ac_ct_GCOV
3875   fi
3876 else
3877   GCOV="$ac_cv_prog_GCOV"
3878 fi
3879
3880                 if test "X$GCOV" = "X:"; then :
3881   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3882 fi
3883
3884
3885                                 if  test "$GCC" = "no" ; then :
3886
3887                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3888
3889 fi
3890
3891                 # Extract the first word of "lcov", so it can be a program name with args.
3892 set dummy lcov; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_prog_LCOV+:} false; then :
3896   $as_echo_n "(cached) " >&6
3897 else
3898   if test -n "$LCOV"; then
3899   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906     for ac_exec_ext in '' $ac_executable_extensions; do
3907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908     ac_cv_prog_LCOV="lcov"
3909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910     break 2
3911   fi
3912 done
3913   done
3914 IFS=$as_save_IFS
3915
3916 fi
3917 fi
3918 LCOV=$ac_cv_prog_LCOV
3919 if test -n "$LCOV"; then
3920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3921 $as_echo "$LCOV" >&6; }
3922 else
3923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 fi
3926
3927
3928                 # Extract the first word of "genhtml", so it can be a program name with args.
3929 set dummy genhtml; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if ${ac_cv_prog_GENHTML+:} false; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   if test -n "$GENHTML"; then
3936   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943     for ac_exec_ext in '' $ac_executable_extensions; do
3944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945     ac_cv_prog_GENHTML="genhtml"
3946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947     break 2
3948   fi
3949 done
3950   done
3951 IFS=$as_save_IFS
3952
3953 fi
3954 fi
3955 GENHTML=$ac_cv_prog_GENHTML
3956 if test -n "$GENHTML"; then
3957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3958 $as_echo "$GENHTML" >&6; }
3959 else
3960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 fi
3963
3964
3965
3966                 if  test -z "$LCOV" ; then :
3967
3968                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3969
3970 fi
3971
3972                 if  test -z "$GENHTML" ; then :
3973
3974                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3975
3976 fi
3977
3978                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3979                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3980                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3981                 CODE_COVERAGE_LIBS="-lgcov"
3982                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3983
3984
3985
3986
3987
3988
3989
3990                 CODE_COVERAGE_RULES_CHECK='
3991         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3992         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3993 '
3994                 CODE_COVERAGE_RULES_CAPTURE='
3995         $(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)
3996         $(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)
3997         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3998         $(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)
3999         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4000 '
4001                 CODE_COVERAGE_RULES_CLEAN='
4002 clean: code-coverage-clean
4003 distclean: code-coverage-clean
4004 code-coverage-clean:
4005         -$(LCOV) --directory $(top_builddir) -z
4006         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4007         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4008 '
4009
4010 else
4011
4012                 CODE_COVERAGE_RULES_CHECK='
4013         @echo "Need to reconfigure with --enable-code-coverage"
4014 '
4015                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4016                 CODE_COVERAGE_RULES_CLEAN=''
4017
4018 fi
4019
4020 CODE_COVERAGE_RULES='
4021 # Code coverage
4022 #
4023 # Optional:
4024 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4025 #    Multiple directories may be specified, separated by whitespace.
4026 #    (Default: $(top_builddir))
4027 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4028 #    by lcov for code coverage. (Default:
4029 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4030 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4031 #    reports to be created. (Default:
4032 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4033 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4034 #    set to 0 to disable it and leave empty to stay with the default.
4035 #    (Default: empty)
4036 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4037 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4038 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4039 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4040 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4041 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4042 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4043 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4044 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4045 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4046 #    lcov instance. (Default: empty)
4047 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4048 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4049 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4050 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4051 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4052 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4053 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4054 #
4055 # The generated report will be titled using the $(PACKAGE_NAME) and
4056 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4057 # use the git-version-gen script, available online.
4058
4059 # Optional variables
4060 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4061 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4062 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4063 CODE_COVERAGE_BRANCH_COVERAGE ?=
4064 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4065 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4066 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4067 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4068 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4069 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4070 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4071 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4072 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4073 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4074 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4075 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4076 CODE_COVERAGE_IGNORE_PATTERN ?=
4077
4078 GITIGNOREFILES ?=
4079 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4080
4081 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4082 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4083 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
4084  $(CODE_COVERAGE_OUTPUT_FILE);
4085 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4086 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4087 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
4088  $(CODE_COVERAGE_IGNORE_PATTERN);
4089 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4090 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4091 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4092 code_coverage_quiet = $(code_coverage_quiet_$(V))
4093 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4094 code_coverage_quiet_0 = --quiet
4095
4096 # sanitizes the test-name: replaces with underscores: dashes and dots
4097 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4098
4099 # Use recursive makes in order to ignore errors during check
4100 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4101
4102 # Capture code coverage data
4103 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4104
4105 # Hook rule executed before code-coverage-capture, overridable by the user
4106 code-coverage-capture-hook:
4107
4108 '"$CODE_COVERAGE_RULES_CLEAN"'
4109
4110 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4111 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4112
4113 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4114 '
4115
4116
4117
4118
4119
4120 # Initialize libtool
4121 DEPDIR="${am__leading_dot}deps"
4122
4123 ac_config_commands="$ac_config_commands depfiles"
4124
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4126 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4127 cat > confinc.mk << 'END'
4128 am__doit:
4129         @echo this is the am__doit target >confinc.out
4130 .PHONY: am__doit
4131 END
4132 am__include="#"
4133 am__quote=
4134 # BSD make does it like this.
4135 echo '.include "confinc.mk" # ignored' > confmf.BSD
4136 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4137 echo 'include confinc.mk # ignored' > confmf.GNU
4138 _am_result=no
4139 for s in GNU BSD; do
4140   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4141    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4142    ac_status=$?
4143    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144    (exit $ac_status); }
4145   case $?:`cat confinc.out 2>/dev/null` in #(
4146   '0:this is the am__doit target') :
4147     case $s in #(
4148   BSD) :
4149     am__include='.include' am__quote='"' ;; #(
4150   *) :
4151     am__include='include' am__quote='' ;;
4152 esac ;; #(
4153   *) :
4154      ;;
4155 esac
4156   if test "$am__include" != "#"; then
4157     _am_result="yes ($s style)"
4158     break
4159   fi
4160 done
4161 rm -f confinc.* confmf.*
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4163 $as_echo "${_am_result}" >&6; }
4164
4165 # Check whether --enable-dependency-tracking was given.
4166 if test "${enable_dependency_tracking+set}" = set; then :
4167   enableval=$enable_dependency_tracking;
4168 fi
4169
4170 if test "x$enable_dependency_tracking" != xno; then
4171   am_depcomp="$ac_aux_dir/depcomp"
4172   AMDEPBACKSLASH='\'
4173   am__nodep='_no'
4174 fi
4175  if test "x$enable_dependency_tracking" != xno; then
4176   AMDEP_TRUE=
4177   AMDEP_FALSE='#'
4178 else
4179   AMDEP_TRUE='#'
4180   AMDEP_FALSE=
4181 fi
4182
4183
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 if test -n "$ac_tool_prefix"; then
4190   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if ${ac_cv_prog_CC+:} false; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197   if test -n "$CC"; then
4198   ac_cv_prog_CC="$CC" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205     for ac_exec_ext in '' $ac_executable_extensions; do
4206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212   done
4213 IFS=$as_save_IFS
4214
4215 fi
4216 fi
4217 CC=$ac_cv_prog_CC
4218 if test -n "$CC"; then
4219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220 $as_echo "$CC" >&6; }
4221 else
4222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4224 fi
4225
4226
4227 fi
4228 if test -z "$ac_cv_prog_CC"; then
4229   ac_ct_CC=$CC
4230   # Extract the first word of "gcc", so it can be a program name with args.
4231 set dummy gcc; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4235   $as_echo_n "(cached) " >&6
4236 else
4237   if test -n "$ac_ct_CC"; then
4238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245     for ac_exec_ext in '' $ac_executable_extensions; do
4246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247     ac_cv_prog_ac_ct_CC="gcc"
4248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249     break 2
4250   fi
4251 done
4252   done
4253 IFS=$as_save_IFS
4254
4255 fi
4256 fi
4257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258 if test -n "$ac_ct_CC"; then
4259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4260 $as_echo "$ac_ct_CC" >&6; }
4261 else
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265
4266   if test "x$ac_ct_CC" = x; then
4267     CC=""
4268   else
4269     case $cross_compiling:$ac_tool_warned in
4270 yes:)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4274 esac
4275     CC=$ac_ct_CC
4276   fi
4277 else
4278   CC="$ac_cv_prog_CC"
4279 fi
4280
4281 if test -z "$CC"; then
4282           if test -n "$ac_tool_prefix"; then
4283     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}cc; ac_word=$2
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if ${ac_cv_prog_CC+:} false; then :
4288   $as_echo_n "(cached) " >&6
4289 else
4290   if test -n "$CC"; then
4291   ac_cv_prog_CC="$CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298     for ac_exec_ext in '' $ac_executable_extensions; do
4299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300     ac_cv_prog_CC="${ac_tool_prefix}cc"
4301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305   done
4306 IFS=$as_save_IFS
4307
4308 fi
4309 fi
4310 CC=$ac_cv_prog_CC
4311 if test -n "$CC"; then
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4313 $as_echo "$CC" >&6; }
4314 else
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4317 fi
4318
4319
4320   fi
4321 fi
4322 if test -z "$CC"; then
4323   # Extract the first word of "cc", so it can be a program name with args.
4324 set dummy cc; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if ${ac_cv_prog_CC+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   if test -n "$CC"; then
4331   ac_cv_prog_CC="$CC" # Let the user override the test.
4332 else
4333   ac_prog_rejected=no
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337   IFS=$as_save_IFS
4338   test -z "$as_dir" && as_dir=.
4339     for ac_exec_ext in '' $ac_executable_extensions; do
4340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4342        ac_prog_rejected=yes
4343        continue
4344      fi
4345     ac_cv_prog_CC="cc"
4346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350   done
4351 IFS=$as_save_IFS
4352
4353 if test $ac_prog_rejected = yes; then
4354   # We found a bogon in the path, so make sure we never use it.
4355   set dummy $ac_cv_prog_CC
4356   shift
4357   if test $# != 0; then
4358     # We chose a different compiler from the bogus one.
4359     # However, it has the same basename, so the bogon will be chosen
4360     # first if we set CC to just the basename; use the full file name.
4361     shift
4362     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4363   fi
4364 fi
4365 fi
4366 fi
4367 CC=$ac_cv_prog_CC
4368 if test -n "$CC"; then
4369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4370 $as_echo "$CC" >&6; }
4371 else
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4374 fi
4375
4376
4377 fi
4378 if test -z "$CC"; then
4379   if test -n "$ac_tool_prefix"; then
4380   for ac_prog in cl.exe
4381   do
4382     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385 $as_echo_n "checking for $ac_word... " >&6; }
4386 if ${ac_cv_prog_CC+:} false; then :
4387   $as_echo_n "(cached) " >&6
4388 else
4389   if test -n "$CC"; then
4390   ac_cv_prog_CC="$CC" # Let the user override the test.
4391 else
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395   IFS=$as_save_IFS
4396   test -z "$as_dir" && as_dir=.
4397     for ac_exec_ext in '' $ac_executable_extensions; do
4398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401     break 2
4402   fi
4403 done
4404   done
4405 IFS=$as_save_IFS
4406
4407 fi
4408 fi
4409 CC=$ac_cv_prog_CC
4410 if test -n "$CC"; then
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4412 $as_echo "$CC" >&6; }
4413 else
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 fi
4417
4418
4419     test -n "$CC" && break
4420   done
4421 fi
4422 if test -z "$CC"; then
4423   ac_ct_CC=$CC
4424   for ac_prog in cl.exe
4425 do
4426   # Extract the first word of "$ac_prog", so it can be a program name with args.
4427 set dummy $ac_prog; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   if test -n "$ac_ct_CC"; then
4434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441     for ac_exec_ext in '' $ac_executable_extensions; do
4442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443     ac_cv_prog_ac_ct_CC="$ac_prog"
4444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448   done
4449 IFS=$as_save_IFS
4450
4451 fi
4452 fi
4453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4454 if test -n "$ac_ct_CC"; then
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4456 $as_echo "$ac_ct_CC" >&6; }
4457 else
4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4461
4462
4463   test -n "$ac_ct_CC" && break
4464 done
4465
4466   if test "x$ac_ct_CC" = x; then
4467     CC=""
4468   else
4469     case $cross_compiling:$ac_tool_warned in
4470 yes:)
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4473 ac_tool_warned=yes ;;
4474 esac
4475     CC=$ac_ct_CC
4476   fi
4477 fi
4478
4479 fi
4480
4481
4482 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error $? "no acceptable C compiler found in \$PATH
4485 See \`config.log' for more details" "$LINENO" 5; }
4486
4487 # Provide some information about the compiler.
4488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4489 set X $ac_compile
4490 ac_compiler=$2
4491 for ac_option in --version -v -V -qversion; do
4492   { { ac_try="$ac_compiler $ac_option >&5"
4493 case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4500   ac_status=$?
4501   if test -s conftest.err; then
4502     sed '10a\
4503 ... rest of stderr output deleted ...
4504          10q' conftest.err >conftest.er1
4505     cat conftest.er1 >&5
4506   fi
4507   rm -f conftest.er1 conftest.err
4508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509   test $ac_status = 0; }
4510 done
4511
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h.  */
4514
4515 int
4516 main ()
4517 {
4518
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 ac_clean_files_save=$ac_clean_files
4524 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4525 # Try to create an executable without -o first, disregard a.out.
4526 # It will help us diagnose broken compilers, and finding out an intuition
4527 # of exeext.
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4529 $as_echo_n "checking whether the C compiler works... " >&6; }
4530 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4531
4532 # The possible output files:
4533 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4534
4535 ac_rmfiles=
4536 for ac_file in $ac_files
4537 do
4538   case $ac_file in
4539     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4540     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4541   esac
4542 done
4543 rm -f $ac_rmfiles
4544
4545 if { { ac_try="$ac_link_default"
4546 case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551 $as_echo "$ac_try_echo"; } >&5
4552   (eval "$ac_link_default") 2>&5
4553   ac_status=$?
4554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555   test $ac_status = 0; }; then :
4556   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4557 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4558 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4559 # so that the user can short-circuit this test for compilers unknown to
4560 # Autoconf.
4561 for ac_file in $ac_files ''
4562 do
4563   test -f "$ac_file" || continue
4564   case $ac_file in
4565     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4566         ;;
4567     [ab].out )
4568         # We found the default executable, but exeext='' is most
4569         # certainly right.
4570         break;;
4571     *.* )
4572         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4573         then :; else
4574            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4575         fi
4576         # We set ac_cv_exeext here because the later test for it is not
4577         # safe: cross compilers may not add the suffix if given an `-o'
4578         # argument, so we may need to know it at that point already.
4579         # Even if this section looks crufty: it has the advantage of
4580         # actually working.
4581         break;;
4582     * )
4583         break;;
4584   esac
4585 done
4586 test "$ac_cv_exeext" = no && ac_cv_exeext=
4587
4588 else
4589   ac_file=''
4590 fi
4591 if test -z "$ac_file"; then :
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4594 $as_echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error 77 "C compiler cannot create executables
4600 See \`config.log' for more details" "$LINENO" 5; }
4601 else
4602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603 $as_echo "yes" >&6; }
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4606 $as_echo_n "checking for C compiler default output file name... " >&6; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4608 $as_echo "$ac_file" >&6; }
4609 ac_exeext=$ac_cv_exeext
4610
4611 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4614 $as_echo_n "checking for suffix of executables... " >&6; }
4615 if { { ac_try="$ac_link"
4616 case "(($ac_try" in
4617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618   *) ac_try_echo=$ac_try;;
4619 esac
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622   (eval "$ac_link") 2>&5
4623   ac_status=$?
4624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625   test $ac_status = 0; }; then :
4626   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4627 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4628 # work properly (i.e., refer to `conftest.exe'), while it won't with
4629 # `rm'.
4630 for ac_file in conftest.exe conftest conftest.*; do
4631   test -f "$ac_file" || continue
4632   case $ac_file in
4633     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4634     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4635           break;;
4636     * ) break;;
4637   esac
4638 done
4639 else
4640   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details" "$LINENO" 5; }
4644 fi
4645 rm -f conftest conftest$ac_cv_exeext
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4647 $as_echo "$ac_cv_exeext" >&6; }
4648
4649 rm -f conftest.$ac_ext
4650 EXEEXT=$ac_cv_exeext
4651 ac_exeext=$EXEEXT
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h.  */
4654 #include <stdio.h>
4655 int
4656 main ()
4657 {
4658 FILE *f = fopen ("conftest.out", "w");
4659  return ferror (f) || fclose (f) != 0;
4660
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 ac_clean_files="$ac_clean_files conftest.out"
4666 # Check that the compiler produces executables we can run.  If not, either
4667 # the compiler is broken, or we cross compile.
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4669 $as_echo_n "checking whether we are cross compiling... " >&6; }
4670 if test "$cross_compiling" != yes; then
4671   { { ac_try="$ac_link"
4672 case "(($ac_try" in
4673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674   *) ac_try_echo=$ac_try;;
4675 esac
4676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677 $as_echo "$ac_try_echo"; } >&5
4678   (eval "$ac_link") 2>&5
4679   ac_status=$?
4680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4681   test $ac_status = 0; }
4682   if { ac_try='./conftest$ac_cv_exeext'
4683   { { case "(($ac_try" in
4684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685   *) ac_try_echo=$ac_try;;
4686 esac
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 $as_echo "$ac_try_echo"; } >&5
4689   (eval "$ac_try") 2>&5
4690   ac_status=$?
4691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692   test $ac_status = 0; }; }; then
4693     cross_compiling=no
4694   else
4695     if test "$cross_compiling" = maybe; then
4696         cross_compiling=yes
4697     else
4698         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4700 as_fn_error $? "cannot run C compiled programs.
4701 If you meant to cross compile, use \`--host'.
4702 See \`config.log' for more details" "$LINENO" 5; }
4703     fi
4704   fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4707 $as_echo "$cross_compiling" >&6; }
4708
4709 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4710 ac_clean_files=$ac_clean_files_save
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4712 $as_echo_n "checking for suffix of object files... " >&6; }
4713 if ${ac_cv_objext+:} false; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h.  */
4718
4719 int
4720 main ()
4721 {
4722
4723   ;
4724   return 0;
4725 }
4726 _ACEOF
4727 rm -f conftest.o conftest.obj
4728 if { { ac_try="$ac_compile"
4729 case "(($ac_try" in
4730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731   *) ac_try_echo=$ac_try;;
4732 esac
4733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4734 $as_echo "$ac_try_echo"; } >&5
4735   (eval "$ac_compile") 2>&5
4736   ac_status=$?
4737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4738   test $ac_status = 0; }; then :
4739   for ac_file in conftest.o conftest.obj conftest.*; do
4740   test -f "$ac_file" || continue;
4741   case $ac_file in
4742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4743     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4744        break;;
4745   esac
4746 done
4747 else
4748   $as_echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4753 as_fn_error $? "cannot compute suffix of object files: cannot compile
4754 See \`config.log' for more details" "$LINENO" 5; }
4755 fi
4756 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4759 $as_echo "$ac_cv_objext" >&6; }
4760 OBJEXT=$ac_cv_objext
4761 ac_objext=$OBJEXT
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4763 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4764 if ${ac_cv_c_compiler_gnu+:} false; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h.  */
4769
4770 int
4771 main ()
4772 {
4773 #ifndef __GNUC__
4774        choke me
4775 #endif
4776
4777   ;
4778   return 0;
4779 }
4780 _ACEOF
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782   ac_compiler_gnu=yes
4783 else
4784   ac_compiler_gnu=no
4785 fi
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4788
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4791 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4792 if test $ac_compiler_gnu = yes; then
4793   GCC=yes
4794 else
4795   GCC=
4796 fi
4797 ac_test_CFLAGS=${CFLAGS+set}
4798 ac_save_CFLAGS=$CFLAGS
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4800 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4801 if ${ac_cv_prog_cc_g+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   ac_save_c_werror_flag=$ac_c_werror_flag
4805    ac_c_werror_flag=yes
4806    ac_cv_prog_cc_g=no
4807    CFLAGS="-g"
4808    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h.  */
4810
4811 int
4812 main ()
4813 {
4814
4815   ;
4816   return 0;
4817 }
4818 _ACEOF
4819 if ac_fn_c_try_compile "$LINENO"; then :
4820   ac_cv_prog_cc_g=yes
4821 else
4822   CFLAGS=""
4823       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h.  */
4825
4826 int
4827 main ()
4828 {
4829
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835
4836 else
4837   ac_c_werror_flag=$ac_save_c_werror_flag
4838          CFLAGS="-g"
4839          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h.  */
4841
4842 int
4843 main ()
4844 {
4845
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851   ac_cv_prog_cc_g=yes
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 fi
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858    ac_c_werror_flag=$ac_save_c_werror_flag
4859 fi
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4861 $as_echo "$ac_cv_prog_cc_g" >&6; }
4862 if test "$ac_test_CFLAGS" = set; then
4863   CFLAGS=$ac_save_CFLAGS
4864 elif test $ac_cv_prog_cc_g = yes; then
4865   if test "$GCC" = yes; then
4866     CFLAGS="-g -O2"
4867   else
4868     CFLAGS="-g"
4869   fi
4870 else
4871   if test "$GCC" = yes; then
4872     CFLAGS="-O2"
4873   else
4874     CFLAGS=
4875   fi
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4878 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4879 if ${ac_cv_prog_cc_c89+:} false; then :
4880   $as_echo_n "(cached) " >&6
4881 else
4882   ac_cv_prog_cc_c89=no
4883 ac_save_CC=$CC
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h.  */
4886 #include <stdarg.h>
4887 #include <stdio.h>
4888 struct stat;
4889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4890 struct buf { int x; };
4891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4892 static char *e (p, i)
4893      char **p;
4894      int i;
4895 {
4896   return p[i];
4897 }
4898 static char *f (char * (*g) (char **, int), char **p, ...)
4899 {
4900   char *s;
4901   va_list v;
4902   va_start (v,p);
4903   s = g (p, va_arg (v,int));
4904   va_end (v);
4905   return s;
4906 }
4907
4908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4909    function prototypes and stuff, but not '\xHH' hex character constants.
4910    These don't provoke an error unfortunately, instead are silently treated
4911    as 'x'.  The following induces an error, until -std is added to get
4912    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4913    array size at least.  It's necessary to write '\x00'==0 to get something
4914    that's true only with -std.  */
4915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4916
4917 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4918    inside strings and character constants.  */
4919 #define FOO(x) 'x'
4920 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4921
4922 int test (int i, double x);
4923 struct s1 {int (*f) (int a);};
4924 struct s2 {int (*f) (double a);};
4925 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4926 int argc;
4927 char **argv;
4928 int
4929 main ()
4930 {
4931 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4937         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4938 do
4939   CC="$ac_save_CC $ac_arg"
4940   if ac_fn_c_try_compile "$LINENO"; then :
4941   ac_cv_prog_cc_c89=$ac_arg
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext
4944   test "x$ac_cv_prog_cc_c89" != "xno" && break
4945 done
4946 rm -f conftest.$ac_ext
4947 CC=$ac_save_CC
4948
4949 fi
4950 # AC_CACHE_VAL
4951 case "x$ac_cv_prog_cc_c89" in
4952   x)
4953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4954 $as_echo "none needed" >&6; } ;;
4955   xno)
4956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4957 $as_echo "unsupported" >&6; } ;;
4958   *)
4959     CC="$CC $ac_cv_prog_cc_c89"
4960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4961 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4962 esac
4963 if test "x$ac_cv_prog_cc_c89" != xno; then :
4964
4965 fi
4966
4967 ac_ext=c
4968 ac_cpp='$CPP $CPPFLAGS'
4969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972
4973 ac_ext=c
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4979 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4980 if ${am_cv_prog_cc_c_o+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h.  */
4985
4986 int
4987 main ()
4988 {
4989
4990   ;
4991   return 0;
4992 }
4993 _ACEOF
4994   # Make sure it works both with $CC and with simple cc.
4995   # Following AC_PROG_CC_C_O, we do the test twice because some
4996   # compilers refuse to overwrite an existing .o file with -o,
4997   # though they will create one.
4998   am_cv_prog_cc_c_o=yes
4999   for am_i in 1 2; do
5000     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5001    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5002    ac_status=$?
5003    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004    (exit $ac_status); } \
5005          && test -f conftest2.$ac_objext; then
5006       : OK
5007     else
5008       am_cv_prog_cc_c_o=no
5009       break
5010     fi
5011   done
5012   rm -f core conftest*
5013   unset am_i
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5016 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5017 if test "$am_cv_prog_cc_c_o" != yes; then
5018    # Losing compiler, so override with the script.
5019    # FIXME: It is wrong to rewrite CC.
5020    # But if we don't then we get into trouble of one sort or another.
5021    # A longer-term fix would be to have automake use am__CC in this case,
5022    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5023    CC="$am_aux_dir/compile $CC"
5024 fi
5025 ac_ext=c
5026 ac_cpp='$CPP $CPPFLAGS'
5027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030
5031
5032 depcc="$CC"   am_compiler_list=
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5035 $as_echo_n "checking dependency style of $depcc... " >&6; }
5036 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5040   # We make a subdir and do the tests there.  Otherwise we can end up
5041   # making bogus files that we don't know about and never remove.  For
5042   # instance it was reported that on HP-UX the gcc test will end up
5043   # making a dummy file named 'D' -- because '-MD' means "put the output
5044   # in D".
5045   rm -rf conftest.dir
5046   mkdir conftest.dir
5047   # Copy depcomp to subdir because otherwise we won't find it if we're
5048   # using a relative directory.
5049   cp "$am_depcomp" conftest.dir
5050   cd conftest.dir
5051   # We will build objects and dependencies in a subdirectory because
5052   # it helps to detect inapplicable dependency modes.  For instance
5053   # both Tru64's cc and ICC support -MD to output dependencies as a
5054   # side effect of compilation, but ICC will put the dependencies in
5055   # the current directory while Tru64 will put them in the object
5056   # directory.
5057   mkdir sub
5058
5059   am_cv_CC_dependencies_compiler_type=none
5060   if test "$am_compiler_list" = ""; then
5061      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5062   fi
5063   am__universal=false
5064   case " $depcc " in #(
5065      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5066      esac
5067
5068   for depmode in $am_compiler_list; do
5069     # Setup a source with many dependencies, because some compilers
5070     # like to wrap large dependency lists on column 80 (with \), and
5071     # we should not choose a depcomp mode which is confused by this.
5072     #
5073     # We need to recreate these files for each test, as the compiler may
5074     # overwrite some of them when testing with obscure command lines.
5075     # This happens at least with the AIX C compiler.
5076     : > sub/conftest.c
5077     for i in 1 2 3 4 5 6; do
5078       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5079       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5080       # Solaris 10 /bin/sh.
5081       echo '/* dummy */' > sub/conftst$i.h
5082     done
5083     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5084
5085     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5086     # mode.  It turns out that the SunPro C++ compiler does not properly
5087     # handle '-M -o', and we need to detect this.  Also, some Intel
5088     # versions had trouble with output in subdirs.
5089     am__obj=sub/conftest.${OBJEXT-o}
5090     am__minus_obj="-o $am__obj"
5091     case $depmode in
5092     gcc)
5093       # This depmode causes a compiler race in universal mode.
5094       test "$am__universal" = false || continue
5095       ;;
5096     nosideeffect)
5097       # After this tag, mechanisms are not by side-effect, so they'll
5098       # only be used when explicitly requested.
5099       if test "x$enable_dependency_tracking" = xyes; then
5100         continue
5101       else
5102         break
5103       fi
5104       ;;
5105     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5106       # This compiler won't grok '-c -o', but also, the minuso test has
5107       # not run yet.  These depmodes are late enough in the game, and
5108       # so weak that their functioning should not be impacted.
5109       am__obj=conftest.${OBJEXT-o}
5110       am__minus_obj=
5111       ;;
5112     none) break ;;
5113     esac
5114     if depmode=$depmode \
5115        source=sub/conftest.c object=$am__obj \
5116        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5117        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5118          >/dev/null 2>conftest.err &&
5119        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5120        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5121        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5122        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5123       # icc doesn't choke on unknown options, it will just issue warnings
5124       # or remarks (even with -Werror).  So we grep stderr for any message
5125       # that says an option was ignored or not supported.
5126       # When given -MP, icc 7.0 and 7.1 complain thusly:
5127       #   icc: Command line warning: ignoring option '-M'; no argument required
5128       # The diagnosis changed in icc 8.0:
5129       #   icc: Command line remark: option '-MP' not supported
5130       if (grep 'ignoring option' conftest.err ||
5131           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5132         am_cv_CC_dependencies_compiler_type=$depmode
5133         break
5134       fi
5135     fi
5136   done
5137
5138   cd ..
5139   rm -rf conftest.dir
5140 else
5141   am_cv_CC_dependencies_compiler_type=none
5142 fi
5143
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5146 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5148
5149  if
5150   test "x$enable_dependency_tracking" != xno \
5151   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5152   am__fastdepCC_TRUE=
5153   am__fastdepCC_FALSE='#'
5154 else
5155   am__fastdepCC_TRUE='#'
5156   am__fastdepCC_FALSE=
5157 fi
5158
5159
5160
5161 if test -n "$ac_tool_prefix"; then
5162   for ac_prog in ar lib "link -lib"
5163   do
5164     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_AR+:} false; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   if test -n "$AR"; then
5172   ac_cv_prog_AR="$AR" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_exec_ext in '' $ac_executable_extensions; do
5180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186   done
5187 IFS=$as_save_IFS
5188
5189 fi
5190 fi
5191 AR=$ac_cv_prog_AR
5192 if test -n "$AR"; then
5193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5194 $as_echo "$AR" >&6; }
5195 else
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5198 fi
5199
5200
5201     test -n "$AR" && break
5202   done
5203 fi
5204 if test -z "$AR"; then
5205   ac_ct_AR=$AR
5206   for ac_prog in ar lib "link -lib"
5207 do
5208   # Extract the first word of "$ac_prog", so it can be a program name with args.
5209 set dummy $ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -n "$ac_ct_AR"; then
5216   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225     ac_cv_prog_ac_ct_AR="$ac_prog"
5226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230   done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5236 if test -n "$ac_ct_AR"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5238 $as_echo "$ac_ct_AR" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245   test -n "$ac_ct_AR" && break
5246 done
5247
5248   if test "x$ac_ct_AR" = x; then
5249     AR="false"
5250   else
5251     case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257     AR=$ac_ct_AR
5258   fi
5259 fi
5260
5261 : ${AR=ar}
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5264 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5265 if ${am_cv_ar_interface+:} false; then :
5266   $as_echo_n "(cached) " >&6
5267 else
5268   ac_ext=c
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5273
5274    am_cv_ar_interface=ar
5275    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h.  */
5277 int some_variable = 0;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5281       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5282   (eval $am_ar_try) 2>&5
5283   ac_status=$?
5284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5285   test $ac_status = 0; }
5286       if test "$ac_status" -eq 0; then
5287         am_cv_ar_interface=ar
5288       else
5289         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5290         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5291   (eval $am_ar_try) 2>&5
5292   ac_status=$?
5293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294   test $ac_status = 0; }
5295         if test "$ac_status" -eq 0; then
5296           am_cv_ar_interface=lib
5297         else
5298           am_cv_ar_interface=unknown
5299         fi
5300       fi
5301       rm -f conftest.lib libconftest.a
5302
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305    ac_ext=c
5306 ac_cpp='$CPP $CPPFLAGS'
5307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5310
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5313 $as_echo "$am_cv_ar_interface" >&6; }
5314
5315 case $am_cv_ar_interface in
5316 ar)
5317   ;;
5318 lib)
5319   # Microsoft lib, so override with the ar-lib wrapper script.
5320   # FIXME: It is wrong to rewrite AR.
5321   # But if we don't then we get into trouble of one sort or another.
5322   # A longer-term fix would be to have automake use am__AR in this case,
5323   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5324   # similar.
5325   AR="$am_aux_dir/ar-lib $AR"
5326   ;;
5327 unknown)
5328   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5329   ;;
5330 esac
5331
5332
5333 case `pwd` in
5334   *\ * | *\     *)
5335     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5336 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5337 esac
5338
5339
5340
5341 macro_version='2.4.6'
5342 macro_revision='2.4.6'
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 ltmain=$ac_aux_dir/ltmain.sh
5357
5358 # Make sure we can run config.sub.
5359 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5360   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5363 $as_echo_n "checking build system type... " >&6; }
5364 if ${ac_cv_build+:} false; then :
5365   $as_echo_n "(cached) " >&6
5366 else
5367   ac_build_alias=$build_alias
5368 test "x$ac_build_alias" = x &&
5369   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5370 test "x$ac_build_alias" = x &&
5371   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5372 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5373   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5374
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5377 $as_echo "$ac_cv_build" >&6; }
5378 case $ac_cv_build in
5379 *-*-*) ;;
5380 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5381 esac
5382 build=$ac_cv_build
5383 ac_save_IFS=$IFS; IFS='-'
5384 set x $ac_cv_build
5385 shift
5386 build_cpu=$1
5387 build_vendor=$2
5388 shift; shift
5389 # Remember, the first character of IFS is used to create $*,
5390 # except with old shells:
5391 build_os=$*
5392 IFS=$ac_save_IFS
5393 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5394
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5397 $as_echo_n "checking host system type... " >&6; }
5398 if ${ac_cv_host+:} false; then :
5399   $as_echo_n "(cached) " >&6
5400 else
5401   if test "x$host_alias" = x; then
5402   ac_cv_host=$ac_cv_build
5403 else
5404   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5405     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5406 fi
5407
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5410 $as_echo "$ac_cv_host" >&6; }
5411 case $ac_cv_host in
5412 *-*-*) ;;
5413 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5414 esac
5415 host=$ac_cv_host
5416 ac_save_IFS=$IFS; IFS='-'
5417 set x $ac_cv_host
5418 shift
5419 host_cpu=$1
5420 host_vendor=$2
5421 shift; shift
5422 # Remember, the first character of IFS is used to create $*,
5423 # except with old shells:
5424 host_os=$*
5425 IFS=$ac_save_IFS
5426 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5427
5428
5429 # Backslashify metacharacters that are still active within
5430 # double-quoted strings.
5431 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5432
5433 # Same as above, but do not quote variable references.
5434 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5435
5436 # Sed substitution to delay expansion of an escaped shell variable in a
5437 # double_quote_subst'ed string.
5438 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5439
5440 # Sed substitution to delay expansion of an escaped single quote.
5441 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5442
5443 # Sed substitution to avoid accidental globbing in evaled expressions
5444 no_glob_subst='s/\*/\\\*/g'
5445
5446 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5447 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5448 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5451 $as_echo_n "checking how to print strings... " >&6; }
5452 # Test print first, because it will be a builtin if present.
5453 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5454    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5455   ECHO='print -r --'
5456 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5457   ECHO='printf %s\n'
5458 else
5459   # Use this function as a fallback that always works.
5460   func_fallback_echo ()
5461   {
5462     eval 'cat <<_LTECHO_EOF
5463 $1
5464 _LTECHO_EOF'
5465   }
5466   ECHO='func_fallback_echo'
5467 fi
5468
5469 # func_echo_all arg...
5470 # Invoke $ECHO with all args, space-separated.
5471 func_echo_all ()
5472 {
5473     $ECHO ""
5474 }
5475
5476 case $ECHO in
5477   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5478 $as_echo "printf" >&6; } ;;
5479   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5480 $as_echo "print -r" >&6; } ;;
5481   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5482 $as_echo "cat" >&6; } ;;
5483 esac
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5499 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5500 if ${ac_cv_path_SED+:} false; then :
5501   $as_echo_n "(cached) " >&6
5502 else
5503             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5504      for ac_i in 1 2 3 4 5 6 7; do
5505        ac_script="$ac_script$as_nl$ac_script"
5506      done
5507      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5508      { ac_script=; unset ac_script;}
5509      if test -z "$SED"; then
5510   ac_path_SED_found=false
5511   # Loop through the user's path and test for each of PROGNAME-LIST
5512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515   IFS=$as_save_IFS
5516   test -z "$as_dir" && as_dir=.
5517     for ac_prog in sed gsed; do
5518     for ac_exec_ext in '' $ac_executable_extensions; do
5519       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5520       as_fn_executable_p "$ac_path_SED" || continue
5521 # Check for GNU ac_path_SED and select it if it is found.
5522   # Check for GNU $ac_path_SED
5523 case `"$ac_path_SED" --version 2>&1` in
5524 *GNU*)
5525   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5526 *)
5527   ac_count=0
5528   $as_echo_n 0123456789 >"conftest.in"
5529   while :
5530   do
5531     cat "conftest.in" "conftest.in" >"conftest.tmp"
5532     mv "conftest.tmp" "conftest.in"
5533     cp "conftest.in" "conftest.nl"
5534     $as_echo '' >> "conftest.nl"
5535     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5536     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5537     as_fn_arith $ac_count + 1 && ac_count=$as_val
5538     if test $ac_count -gt ${ac_path_SED_max-0}; then
5539       # Best one so far, save it but keep looking for a better one
5540       ac_cv_path_SED="$ac_path_SED"
5541       ac_path_SED_max=$ac_count
5542     fi
5543     # 10*(2^10) chars as input seems more than enough
5544     test $ac_count -gt 10 && break
5545   done
5546   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5547 esac
5548
5549       $ac_path_SED_found && break 3
5550     done
5551   done
5552   done
5553 IFS=$as_save_IFS
5554   if test -z "$ac_cv_path_SED"; then
5555     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5556   fi
5557 else
5558   ac_cv_path_SED=$SED
5559 fi
5560
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5563 $as_echo "$ac_cv_path_SED" >&6; }
5564  SED="$ac_cv_path_SED"
5565   rm -f conftest.sed
5566
5567 test -z "$SED" && SED=sed
5568 Xsed="$SED -e 1s/^X//"
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5581 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5582 if ${ac_cv_path_GREP+:} false; then :
5583   $as_echo_n "(cached) " >&6
5584 else
5585   if test -z "$GREP"; then
5586   ac_path_GREP_found=false
5587   # Loop through the user's path and test for each of PROGNAME-LIST
5588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5590 do
5591   IFS=$as_save_IFS
5592   test -z "$as_dir" && as_dir=.
5593     for ac_prog in grep ggrep; do
5594     for ac_exec_ext in '' $ac_executable_extensions; do
5595       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5596       as_fn_executable_p "$ac_path_GREP" || continue
5597 # Check for GNU ac_path_GREP and select it if it is found.
5598   # Check for GNU $ac_path_GREP
5599 case `"$ac_path_GREP" --version 2>&1` in
5600 *GNU*)
5601   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5602 *)
5603   ac_count=0
5604   $as_echo_n 0123456789 >"conftest.in"
5605   while :
5606   do
5607     cat "conftest.in" "conftest.in" >"conftest.tmp"
5608     mv "conftest.tmp" "conftest.in"
5609     cp "conftest.in" "conftest.nl"
5610     $as_echo 'GREP' >> "conftest.nl"
5611     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5612     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5613     as_fn_arith $ac_count + 1 && ac_count=$as_val
5614     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5615       # Best one so far, save it but keep looking for a better one
5616       ac_cv_path_GREP="$ac_path_GREP"
5617       ac_path_GREP_max=$ac_count
5618     fi
5619     # 10*(2^10) chars as input seems more than enough
5620     test $ac_count -gt 10 && break
5621   done
5622   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5623 esac
5624
5625       $ac_path_GREP_found && break 3
5626     done
5627   done
5628   done
5629 IFS=$as_save_IFS
5630   if test -z "$ac_cv_path_GREP"; then
5631     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5632   fi
5633 else
5634   ac_cv_path_GREP=$GREP
5635 fi
5636
5637 fi
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5639 $as_echo "$ac_cv_path_GREP" >&6; }
5640  GREP="$ac_cv_path_GREP"
5641
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5644 $as_echo_n "checking for egrep... " >&6; }
5645 if ${ac_cv_path_EGREP+:} false; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5649    then ac_cv_path_EGREP="$GREP -E"
5650    else
5651      if test -z "$EGREP"; then
5652   ac_path_EGREP_found=false
5653   # Loop through the user's path and test for each of PROGNAME-LIST
5654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_prog in egrep; do
5660     for ac_exec_ext in '' $ac_executable_extensions; do
5661       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5662       as_fn_executable_p "$ac_path_EGREP" || continue
5663 # Check for GNU ac_path_EGREP and select it if it is found.
5664   # Check for GNU $ac_path_EGREP
5665 case `"$ac_path_EGREP" --version 2>&1` in
5666 *GNU*)
5667   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5668 *)
5669   ac_count=0
5670   $as_echo_n 0123456789 >"conftest.in"
5671   while :
5672   do
5673     cat "conftest.in" "conftest.in" >"conftest.tmp"
5674     mv "conftest.tmp" "conftest.in"
5675     cp "conftest.in" "conftest.nl"
5676     $as_echo 'EGREP' >> "conftest.nl"
5677     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5678     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5679     as_fn_arith $ac_count + 1 && ac_count=$as_val
5680     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5681       # Best one so far, save it but keep looking for a better one
5682       ac_cv_path_EGREP="$ac_path_EGREP"
5683       ac_path_EGREP_max=$ac_count
5684     fi
5685     # 10*(2^10) chars as input seems more than enough
5686     test $ac_count -gt 10 && break
5687   done
5688   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5689 esac
5690
5691       $ac_path_EGREP_found && break 3
5692     done
5693   done
5694   done
5695 IFS=$as_save_IFS
5696   if test -z "$ac_cv_path_EGREP"; then
5697     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5698   fi
5699 else
5700   ac_cv_path_EGREP=$EGREP
5701 fi
5702
5703    fi
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5706 $as_echo "$ac_cv_path_EGREP" >&6; }
5707  EGREP="$ac_cv_path_EGREP"
5708
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5711 $as_echo_n "checking for fgrep... " >&6; }
5712 if ${ac_cv_path_FGREP+:} false; then :
5713   $as_echo_n "(cached) " >&6
5714 else
5715   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5716    then ac_cv_path_FGREP="$GREP -F"
5717    else
5718      if test -z "$FGREP"; then
5719   ac_path_FGREP_found=false
5720   # Loop through the user's path and test for each of PROGNAME-LIST
5721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726     for ac_prog in fgrep; do
5727     for ac_exec_ext in '' $ac_executable_extensions; do
5728       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5729       as_fn_executable_p "$ac_path_FGREP" || continue
5730 # Check for GNU ac_path_FGREP and select it if it is found.
5731   # Check for GNU $ac_path_FGREP
5732 case `"$ac_path_FGREP" --version 2>&1` in
5733 *GNU*)
5734   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5735 *)
5736   ac_count=0
5737   $as_echo_n 0123456789 >"conftest.in"
5738   while :
5739   do
5740     cat "conftest.in" "conftest.in" >"conftest.tmp"
5741     mv "conftest.tmp" "conftest.in"
5742     cp "conftest.in" "conftest.nl"
5743     $as_echo 'FGREP' >> "conftest.nl"
5744     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5745     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5746     as_fn_arith $ac_count + 1 && ac_count=$as_val
5747     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5748       # Best one so far, save it but keep looking for a better one
5749       ac_cv_path_FGREP="$ac_path_FGREP"
5750       ac_path_FGREP_max=$ac_count
5751     fi
5752     # 10*(2^10) chars as input seems more than enough
5753     test $ac_count -gt 10 && break
5754   done
5755   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5756 esac
5757
5758       $ac_path_FGREP_found && break 3
5759     done
5760   done
5761   done
5762 IFS=$as_save_IFS
5763   if test -z "$ac_cv_path_FGREP"; then
5764     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5765   fi
5766 else
5767   ac_cv_path_FGREP=$FGREP
5768 fi
5769
5770    fi
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5773 $as_echo "$ac_cv_path_FGREP" >&6; }
5774  FGREP="$ac_cv_path_FGREP"
5775
5776
5777 test -z "$GREP" && GREP=grep
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797 # Check whether --with-gnu-ld was given.
5798 if test "${with_gnu_ld+set}" = set; then :
5799   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5800 else
5801   with_gnu_ld=no
5802 fi
5803
5804 ac_prog=ld
5805 if test yes = "$GCC"; then
5806   # Check if gcc -print-prog-name=ld gives a path.
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5808 $as_echo_n "checking for ld used by $CC... " >&6; }
5809   case $host in
5810   *-*-mingw*)
5811     # gcc leaves a trailing carriage return, which upsets mingw
5812     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5813   *)
5814     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5815   esac
5816   case $ac_prog in
5817     # Accept absolute paths.
5818     [\\/]* | ?:[\\/]*)
5819       re_direlt='/[^/][^/]*/\.\./'
5820       # Canonicalize the pathname of ld
5821       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5822       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5823         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5824       done
5825       test -z "$LD" && LD=$ac_prog
5826       ;;
5827   "")
5828     # If it fails, then pretend we aren't using GCC.
5829     ac_prog=ld
5830     ;;
5831   *)
5832     # If it is relative, then search for the first ld in PATH.
5833     with_gnu_ld=unknown
5834     ;;
5835   esac
5836 elif test yes = "$with_gnu_ld"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5838 $as_echo_n "checking for GNU ld... " >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5841 $as_echo_n "checking for non-GNU ld... " >&6; }
5842 fi
5843 if ${lt_cv_path_LD+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   if test -z "$LD"; then
5847   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5848   for ac_dir in $PATH; do
5849     IFS=$lt_save_ifs
5850     test -z "$ac_dir" && ac_dir=.
5851     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5852       lt_cv_path_LD=$ac_dir/$ac_prog
5853       # Check to see if the program is GNU ld.  I'd rather use --version,
5854       # but apparently some variants of GNU ld only accept -v.
5855       # Break only if it was the GNU/non-GNU ld that we prefer.
5856       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5857       *GNU* | *'with BFD'*)
5858         test no != "$with_gnu_ld" && break
5859         ;;
5860       *)
5861         test yes != "$with_gnu_ld" && break
5862         ;;
5863       esac
5864     fi
5865   done
5866   IFS=$lt_save_ifs
5867 else
5868   lt_cv_path_LD=$LD # Let the user override the test with a path.
5869 fi
5870 fi
5871
5872 LD=$lt_cv_path_LD
5873 if test -n "$LD"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5875 $as_echo "$LD" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5882 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5883 if ${lt_cv_prog_gnu_ld+:} false; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5887 case `$LD -v 2>&1 </dev/null` in
5888 *GNU* | *'with BFD'*)
5889   lt_cv_prog_gnu_ld=yes
5890   ;;
5891 *)
5892   lt_cv_prog_gnu_ld=no
5893   ;;
5894 esac
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5897 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5898 with_gnu_ld=$lt_cv_prog_gnu_ld
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5909 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5910 if ${lt_cv_path_NM+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   if test -n "$NM"; then
5914   # Let the user override the test.
5915   lt_cv_path_NM=$NM
5916 else
5917   lt_nm_to_check=${ac_tool_prefix}nm
5918   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5919     lt_nm_to_check="$lt_nm_to_check nm"
5920   fi
5921   for lt_tmp_nm in $lt_nm_to_check; do
5922     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5923     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5924       IFS=$lt_save_ifs
5925       test -z "$ac_dir" && ac_dir=.
5926       tmp_nm=$ac_dir/$lt_tmp_nm
5927       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5928         # Check to see if the nm accepts a BSD-compat flag.
5929         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5930         #   nm: unknown option "B" ignored
5931         # Tru64's nm complains that /dev/null is an invalid object file
5932         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5933         case $build_os in
5934         mingw*) lt_bad_file=conftest.nm/nofile ;;
5935         *) lt_bad_file=/dev/null ;;
5936         esac
5937         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5938         *$lt_bad_file* | *'Invalid file or object type'*)
5939           lt_cv_path_NM="$tmp_nm -B"
5940           break 2
5941           ;;
5942         *)
5943           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5944           */dev/null*)
5945             lt_cv_path_NM="$tmp_nm -p"
5946             break 2
5947             ;;
5948           *)
5949             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5950             continue # so that we can try to find one that supports BSD flags
5951             ;;
5952           esac
5953           ;;
5954         esac
5955       fi
5956     done
5957     IFS=$lt_save_ifs
5958   done
5959   : ${lt_cv_path_NM=no}
5960 fi
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5963 $as_echo "$lt_cv_path_NM" >&6; }
5964 if test no != "$lt_cv_path_NM"; then
5965   NM=$lt_cv_path_NM
5966 else
5967   # Didn't find any BSD compatible name lister, look for dumpbin.
5968   if test -n "$DUMPBIN"; then :
5969     # Let the user override the test.
5970   else
5971     if test -n "$ac_tool_prefix"; then
5972   for ac_prog in dumpbin "link -dump"
5973   do
5974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_prog_DUMPBIN+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   if test -n "$DUMPBIN"; then
5982   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987   IFS=$as_save_IFS
5988   test -z "$as_dir" && as_dir=.
5989     for ac_exec_ext in '' $ac_executable_extensions; do
5990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993     break 2
5994   fi
5995 done
5996   done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 DUMPBIN=$ac_cv_prog_DUMPBIN
6002 if test -n "$DUMPBIN"; then
6003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6004 $as_echo "$DUMPBIN" >&6; }
6005 else
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009
6010
6011     test -n "$DUMPBIN" && break
6012   done
6013 fi
6014 if test -z "$DUMPBIN"; then
6015   ac_ct_DUMPBIN=$DUMPBIN
6016   for ac_prog in dumpbin "link -dump"
6017 do
6018   # Extract the first word of "$ac_prog", so it can be a program name with args.
6019 set dummy $ac_prog; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6023   $as_echo_n "(cached) " >&6
6024 else
6025   if test -n "$ac_ct_DUMPBIN"; then
6026   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031   IFS=$as_save_IFS
6032   test -z "$as_dir" && as_dir=.
6033     for ac_exec_ext in '' $ac_executable_extensions; do
6034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037     break 2
6038   fi
6039 done
6040   done
6041 IFS=$as_save_IFS
6042
6043 fi
6044 fi
6045 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6046 if test -n "$ac_ct_DUMPBIN"; then
6047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6048 $as_echo "$ac_ct_DUMPBIN" >&6; }
6049 else
6050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6052 fi
6053
6054
6055   test -n "$ac_ct_DUMPBIN" && break
6056 done
6057
6058   if test "x$ac_ct_DUMPBIN" = x; then
6059     DUMPBIN=":"
6060   else
6061     case $cross_compiling:$ac_tool_warned in
6062 yes:)
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned=yes ;;
6066 esac
6067     DUMPBIN=$ac_ct_DUMPBIN
6068   fi
6069 fi
6070
6071     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6072     *COFF*)
6073       DUMPBIN="$DUMPBIN -symbols -headers"
6074       ;;
6075     *)
6076       DUMPBIN=:
6077       ;;
6078     esac
6079   fi
6080
6081   if test : != "$DUMPBIN"; then
6082     NM=$DUMPBIN
6083   fi
6084 fi
6085 test -z "$NM" && NM=nm
6086
6087
6088
6089
6090
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6093 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6094 if ${lt_cv_nm_interface+:} false; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097   lt_cv_nm_interface="BSD nm"
6098   echo "int some_variable = 0;" > conftest.$ac_ext
6099   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6100   (eval "$ac_compile" 2>conftest.err)
6101   cat conftest.err >&5
6102   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6103   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6104   cat conftest.err >&5
6105   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6106   cat conftest.out >&5
6107   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6108     lt_cv_nm_interface="MS dumpbin"
6109   fi
6110   rm -f conftest*
6111 fi
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6113 $as_echo "$lt_cv_nm_interface" >&6; }
6114
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6116 $as_echo_n "checking whether ln -s works... " >&6; }
6117 LN_S=$as_ln_s
6118 if test "$LN_S" = "ln -s"; then
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6120 $as_echo "yes" >&6; }
6121 else
6122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6123 $as_echo "no, using $LN_S" >&6; }
6124 fi
6125
6126 # find the maximum length of command line arguments
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6128 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6129 if ${lt_cv_sys_max_cmd_len+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132     i=0
6133   teststring=ABCD
6134
6135   case $build_os in
6136   msdosdjgpp*)
6137     # On DJGPP, this test can blow up pretty badly due to problems in libc
6138     # (any single argument exceeding 2000 bytes causes a buffer overrun
6139     # during glob expansion).  Even if it were fixed, the result of this
6140     # check would be larger than it should be.
6141     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6142     ;;
6143
6144   gnu*)
6145     # Under GNU Hurd, this test is not required because there is
6146     # no limit to the length of command line arguments.
6147     # Libtool will interpret -1 as no limit whatsoever
6148     lt_cv_sys_max_cmd_len=-1;
6149     ;;
6150
6151   cygwin* | mingw* | cegcc*)
6152     # On Win9x/ME, this test blows up -- it succeeds, but takes
6153     # about 5 minutes as the teststring grows exponentially.
6154     # Worse, since 9x/ME are not pre-emptively multitasking,
6155     # you end up with a "frozen" computer, even though with patience
6156     # the test eventually succeeds (with a max line length of 256k).
6157     # Instead, let's just punt: use the minimum linelength reported by
6158     # all of the supported platforms: 8192 (on NT/2K/XP).
6159     lt_cv_sys_max_cmd_len=8192;
6160     ;;
6161
6162   mint*)
6163     # On MiNT this can take a long time and run out of memory.
6164     lt_cv_sys_max_cmd_len=8192;
6165     ;;
6166
6167   amigaos*)
6168     # On AmigaOS with pdksh, this test takes hours, literally.
6169     # So we just punt and use a minimum line length of 8192.
6170     lt_cv_sys_max_cmd_len=8192;
6171     ;;
6172
6173   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6174     # This has been around since 386BSD, at least.  Likely further.
6175     if test -x /sbin/sysctl; then
6176       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6177     elif test -x /usr/sbin/sysctl; then
6178       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6179     else
6180       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6181     fi
6182     # And add a safety zone
6183     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6184     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6185     ;;
6186
6187   interix*)
6188     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6189     lt_cv_sys_max_cmd_len=196608
6190     ;;
6191
6192   os2*)
6193     # The test takes a long time on OS/2.
6194     lt_cv_sys_max_cmd_len=8192
6195     ;;
6196
6197   osf*)
6198     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6199     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6200     # nice to cause kernel panics so lets avoid the loop below.
6201     # First set a reasonable default.
6202     lt_cv_sys_max_cmd_len=16384
6203     #
6204     if test -x /sbin/sysconfig; then
6205       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6206         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6207       esac
6208     fi
6209     ;;
6210   sco3.2v5*)
6211     lt_cv_sys_max_cmd_len=102400
6212     ;;
6213   sysv5* | sco5v6* | sysv4.2uw2*)
6214     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6215     if test -n "$kargmax"; then
6216       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6217     else
6218       lt_cv_sys_max_cmd_len=32768
6219     fi
6220     ;;
6221   *)
6222     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6223     if test -n "$lt_cv_sys_max_cmd_len" && \
6224        test undefined != "$lt_cv_sys_max_cmd_len"; then
6225       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6226       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6227     else
6228       # Make teststring a little bigger before we do anything with it.
6229       # a 1K string should be a reasonable start.
6230       for i in 1 2 3 4 5 6 7 8; do
6231         teststring=$teststring$teststring
6232       done
6233       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6234       # If test is not a shell built-in, we'll probably end up computing a
6235       # maximum length that is only half of the actual maximum length, but
6236       # we can't tell.
6237       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6238                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6239               test 17 != "$i" # 1/2 MB should be enough
6240       do
6241         i=`expr $i + 1`
6242         teststring=$teststring$teststring
6243       done
6244       # Only check the string length outside the loop.
6245       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6246       teststring=
6247       # Add a significant safety factor because C++ compilers can tack on
6248       # massive amounts of additional arguments before passing them to the
6249       # linker.  It appears as though 1/2 is a usable value.
6250       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6251     fi
6252     ;;
6253   esac
6254
6255 fi
6256
6257 if test -n "$lt_cv_sys_max_cmd_len"; then
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6259 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6260 else
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6262 $as_echo "none" >&6; }
6263 fi
6264 max_cmd_len=$lt_cv_sys_max_cmd_len
6265
6266
6267
6268
6269
6270
6271 : ${CP="cp -f"}
6272 : ${MV="mv -f"}
6273 : ${RM="rm -f"}
6274
6275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6276   lt_unset=unset
6277 else
6278   lt_unset=false
6279 fi
6280
6281
6282
6283
6284
6285 # test EBCDIC or ASCII
6286 case `echo X|tr X '\101'` in
6287  A) # ASCII based system
6288     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6289   lt_SP2NL='tr \040 \012'
6290   lt_NL2SP='tr \015\012 \040\040'
6291   ;;
6292  *) # EBCDIC based system
6293   lt_SP2NL='tr \100 \n'
6294   lt_NL2SP='tr \r\n \100\100'
6295   ;;
6296 esac
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6307 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6308 if ${lt_cv_to_host_file_cmd+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   case $host in
6312   *-*-mingw* )
6313     case $build in
6314       *-*-mingw* ) # actually msys
6315         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6316         ;;
6317       *-*-cygwin* )
6318         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6319         ;;
6320       * ) # otherwise, assume *nix
6321         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6322         ;;
6323     esac
6324     ;;
6325   *-*-cygwin* )
6326     case $build in
6327       *-*-mingw* ) # actually msys
6328         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6329         ;;
6330       *-*-cygwin* )
6331         lt_cv_to_host_file_cmd=func_convert_file_noop
6332         ;;
6333       * ) # otherwise, assume *nix
6334         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6335         ;;
6336     esac
6337     ;;
6338   * ) # unhandled hosts (and "normal" native builds)
6339     lt_cv_to_host_file_cmd=func_convert_file_noop
6340     ;;
6341 esac
6342
6343 fi
6344
6345 to_host_file_cmd=$lt_cv_to_host_file_cmd
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6347 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6348
6349
6350
6351
6352
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6354 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6355 if ${lt_cv_to_tool_file_cmd+:} false; then :
6356   $as_echo_n "(cached) " >&6
6357 else
6358   #assume ordinary cross tools, or native build.
6359 lt_cv_to_tool_file_cmd=func_convert_file_noop
6360 case $host in
6361   *-*-mingw* )
6362     case $build in
6363       *-*-mingw* ) # actually msys
6364         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6365         ;;
6366     esac
6367     ;;
6368 esac
6369
6370 fi
6371
6372 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6374 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6375
6376
6377
6378
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6381 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6382 if ${lt_cv_ld_reload_flag+:} false; then :
6383   $as_echo_n "(cached) " >&6
6384 else
6385   lt_cv_ld_reload_flag='-r'
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6388 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6389 reload_flag=$lt_cv_ld_reload_flag
6390 case $reload_flag in
6391 "" | " "*) ;;
6392 *) reload_flag=" $reload_flag" ;;
6393 esac
6394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6395 case $host_os in
6396   cygwin* | mingw* | pw32* | cegcc*)
6397     if test yes != "$GCC"; then
6398       reload_cmds=false
6399     fi
6400     ;;
6401   darwin*)
6402     if test yes = "$GCC"; then
6403       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6404     else
6405       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6406     fi
6407     ;;
6408 esac
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 if test -n "$ac_tool_prefix"; then
6419   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_OBJDUMP+:} false; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426   if test -n "$OBJDUMP"; then
6427   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432   IFS=$as_save_IFS
6433   test -z "$as_dir" && as_dir=.
6434     for ac_exec_ext in '' $ac_executable_extensions; do
6435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438     break 2
6439   fi
6440 done
6441   done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 OBJDUMP=$ac_cv_prog_OBJDUMP
6447 if test -n "$OBJDUMP"; then
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6449 $as_echo "$OBJDUMP" >&6; }
6450 else
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455
6456 fi
6457 if test -z "$ac_cv_prog_OBJDUMP"; then
6458   ac_ct_OBJDUMP=$OBJDUMP
6459   # Extract the first word of "objdump", so it can be a program name with args.
6460 set dummy objdump; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6464   $as_echo_n "(cached) " >&6
6465 else
6466   if test -n "$ac_ct_OBJDUMP"; then
6467   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474     for ac_exec_ext in '' $ac_executable_extensions; do
6475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481   done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6487 if test -n "$ac_ct_OBJDUMP"; then
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6489 $as_echo "$ac_ct_OBJDUMP" >&6; }
6490 else
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495   if test "x$ac_ct_OBJDUMP" = x; then
6496     OBJDUMP="false"
6497   else
6498     case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504     OBJDUMP=$ac_ct_OBJDUMP
6505   fi
6506 else
6507   OBJDUMP="$ac_cv_prog_OBJDUMP"
6508 fi
6509
6510 test -z "$OBJDUMP" && OBJDUMP=objdump
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6522 if ${lt_cv_deplibs_check_method+:} false; then :
6523   $as_echo_n "(cached) " >&6
6524 else
6525   lt_cv_file_magic_cmd='$MAGIC_CMD'
6526 lt_cv_file_magic_test_file=
6527 lt_cv_deplibs_check_method='unknown'
6528 # Need to set the preceding variable on all platforms that support
6529 # interlibrary dependencies.
6530 # 'none' -- dependencies not supported.
6531 # 'unknown' -- same as none, but documents that we really don't know.
6532 # 'pass_all' -- all dependencies passed with no checks.
6533 # 'test_compile' -- check by making test program.
6534 # 'file_magic [[regex]]' -- check by looking for files in library path
6535 # that responds to the $file_magic_cmd with a given extended regex.
6536 # If you have 'file' or equivalent on your system and you're not sure
6537 # whether 'pass_all' will *always* work, you probably want this one.
6538
6539 case $host_os in
6540 aix[4-9]*)
6541   lt_cv_deplibs_check_method=pass_all
6542   ;;
6543
6544 beos*)
6545   lt_cv_deplibs_check_method=pass_all
6546   ;;
6547
6548 bsdi[45]*)
6549   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6550   lt_cv_file_magic_cmd='/usr/bin/file -L'
6551   lt_cv_file_magic_test_file=/shlib/libc.so
6552   ;;
6553
6554 cygwin*)
6555   # func_win32_libid is a shell function defined in ltmain.sh
6556   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6557   lt_cv_file_magic_cmd='func_win32_libid'
6558   ;;
6559
6560 mingw* | pw32*)
6561   # Base MSYS/MinGW do not provide the 'file' command needed by
6562   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6563   # unless we find 'file', for example because we are cross-compiling.
6564   if ( file / ) >/dev/null 2>&1; then
6565     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6566     lt_cv_file_magic_cmd='func_win32_libid'
6567   else
6568     # Keep this pattern in sync with the one in func_win32_libid.
6569     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6570     lt_cv_file_magic_cmd='$OBJDUMP -f'
6571   fi
6572   ;;
6573
6574 cegcc*)
6575   # use the weaker test based on 'objdump'. See mingw*.
6576   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6577   lt_cv_file_magic_cmd='$OBJDUMP -f'
6578   ;;
6579
6580 darwin* | rhapsody*)
6581   lt_cv_deplibs_check_method=pass_all
6582   ;;
6583
6584 freebsd* | dragonfly*)
6585   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6586     case $host_cpu in
6587     i*86 )
6588       # Not sure whether the presence of OpenBSD here was a mistake.
6589       # Let's accept both of them until this is cleared up.
6590       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6591       lt_cv_file_magic_cmd=/usr/bin/file
6592       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6593       ;;
6594     esac
6595   else
6596     lt_cv_deplibs_check_method=pass_all
6597   fi
6598   ;;
6599
6600 haiku*)
6601   lt_cv_deplibs_check_method=pass_all
6602   ;;
6603
6604 hpux10.20* | hpux11*)
6605   lt_cv_file_magic_cmd=/usr/bin/file
6606   case $host_cpu in
6607   ia64*)
6608     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6609     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6610     ;;
6611   hppa*64*)
6612     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]'
6613     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6614     ;;
6615   *)
6616     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6617     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6618     ;;
6619   esac
6620   ;;
6621
6622 interix[3-9]*)
6623   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6624   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6625   ;;
6626
6627 irix5* | irix6* | nonstopux*)
6628   case $LD in
6629   *-32|*"-32 ") libmagic=32-bit;;
6630   *-n32|*"-n32 ") libmagic=N32;;
6631   *-64|*"-64 ") libmagic=64-bit;;
6632   *) libmagic=never-match;;
6633   esac
6634   lt_cv_deplibs_check_method=pass_all
6635   ;;
6636
6637 # This must be glibc/ELF.
6638 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6639   lt_cv_deplibs_check_method=pass_all
6640   ;;
6641
6642 netbsd* | netbsdelf*-gnu)
6643   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6644     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6645   else
6646     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6647   fi
6648   ;;
6649
6650 newos6*)
6651   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6652   lt_cv_file_magic_cmd=/usr/bin/file
6653   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6654   ;;
6655
6656 *nto* | *qnx*)
6657   lt_cv_deplibs_check_method=pass_all
6658   ;;
6659
6660 openbsd* | bitrig*)
6661   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6662     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6663   else
6664     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6665   fi
6666   ;;
6667
6668 osf3* | osf4* | osf5*)
6669   lt_cv_deplibs_check_method=pass_all
6670   ;;
6671
6672 rdos*)
6673   lt_cv_deplibs_check_method=pass_all
6674   ;;
6675
6676 solaris*)
6677   lt_cv_deplibs_check_method=pass_all
6678   ;;
6679
6680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6681   lt_cv_deplibs_check_method=pass_all
6682   ;;
6683
6684 sysv4 | sysv4.3*)
6685   case $host_vendor in
6686   motorola)
6687     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]'
6688     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6689     ;;
6690   ncr)
6691     lt_cv_deplibs_check_method=pass_all
6692     ;;
6693   sequent)
6694     lt_cv_file_magic_cmd='/bin/file'
6695     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6696     ;;
6697   sni)
6698     lt_cv_file_magic_cmd='/bin/file'
6699     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6700     lt_cv_file_magic_test_file=/lib/libc.so
6701     ;;
6702   siemens)
6703     lt_cv_deplibs_check_method=pass_all
6704     ;;
6705   pc)
6706     lt_cv_deplibs_check_method=pass_all
6707     ;;
6708   esac
6709   ;;
6710
6711 tpf*)
6712   lt_cv_deplibs_check_method=pass_all
6713   ;;
6714 os2*)
6715   lt_cv_deplibs_check_method=pass_all
6716   ;;
6717 esac
6718
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6721 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6722
6723 file_magic_glob=
6724 want_nocaseglob=no
6725 if test "$build" = "$host"; then
6726   case $host_os in
6727   mingw* | pw32*)
6728     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6729       want_nocaseglob=yes
6730     else
6731       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6732     fi
6733     ;;
6734   esac
6735 fi
6736
6737 file_magic_cmd=$lt_cv_file_magic_cmd
6738 deplibs_check_method=$lt_cv_deplibs_check_method
6739 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762 if test -n "$ac_tool_prefix"; then
6763   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6764 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_DLLTOOL+:} false; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770   if test -n "$DLLTOOL"; then
6771   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778     for ac_exec_ext in '' $ac_executable_extensions; do
6779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785   done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 DLLTOOL=$ac_cv_prog_DLLTOOL
6791 if test -n "$DLLTOOL"; then
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6793 $as_echo "$DLLTOOL" >&6; }
6794 else
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799
6800 fi
6801 if test -z "$ac_cv_prog_DLLTOOL"; then
6802   ac_ct_DLLTOOL=$DLLTOOL
6803   # Extract the first word of "dlltool", so it can be a program name with args.
6804 set dummy dlltool; ac_word=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6808   $as_echo_n "(cached) " >&6
6809 else
6810   if test -n "$ac_ct_DLLTOOL"; then
6811   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816   IFS=$as_save_IFS
6817   test -z "$as_dir" && as_dir=.
6818     for ac_exec_ext in '' $ac_executable_extensions; do
6819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822     break 2
6823   fi
6824 done
6825   done
6826 IFS=$as_save_IFS
6827
6828 fi
6829 fi
6830 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6831 if test -n "$ac_ct_DLLTOOL"; then
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6833 $as_echo "$ac_ct_DLLTOOL" >&6; }
6834 else
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837 fi
6838
6839   if test "x$ac_ct_DLLTOOL" = x; then
6840     DLLTOOL="false"
6841   else
6842     case $cross_compiling:$ac_tool_warned in
6843 yes:)
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6846 ac_tool_warned=yes ;;
6847 esac
6848     DLLTOOL=$ac_ct_DLLTOOL
6849   fi
6850 else
6851   DLLTOOL="$ac_cv_prog_DLLTOOL"
6852 fi
6853
6854 test -z "$DLLTOOL" && DLLTOOL=dlltool
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6866 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6867 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   lt_cv_sharedlib_from_linklib_cmd='unknown'
6871
6872 case $host_os in
6873 cygwin* | mingw* | pw32* | cegcc*)
6874   # two different shell functions defined in ltmain.sh;
6875   # decide which one to use based on capabilities of $DLLTOOL
6876   case `$DLLTOOL --help 2>&1` in
6877   *--identify-strict*)
6878     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6879     ;;
6880   *)
6881     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6882     ;;
6883   esac
6884   ;;
6885 *)
6886   # fallback: assume linklib IS sharedlib
6887   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6888   ;;
6889 esac
6890
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6893 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6894 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6895 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6896
6897
6898
6899
6900
6901
6902
6903 if test -n "$ac_tool_prefix"; then
6904   for ac_prog in ar
6905   do
6906     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_AR+:} false; then :
6911   $as_echo_n "(cached) " >&6
6912 else
6913   if test -n "$AR"; then
6914   ac_cv_prog_AR="$AR" # Let the user override the test.
6915 else
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921     for ac_exec_ext in '' $ac_executable_extensions; do
6922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928   done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 AR=$ac_cv_prog_AR
6934 if test -n "$AR"; then
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6936 $as_echo "$AR" >&6; }
6937 else
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6940 fi
6941
6942
6943     test -n "$AR" && break
6944   done
6945 fi
6946 if test -z "$AR"; then
6947   ac_ct_AR=$AR
6948   for ac_prog in ar
6949 do
6950   # Extract the first word of "$ac_prog", so it can be a program name with args.
6951 set dummy $ac_prog; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   if test -n "$ac_ct_AR"; then
6958   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965     for ac_exec_ext in '' $ac_executable_extensions; do
6966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967     ac_cv_prog_ac_ct_AR="$ac_prog"
6968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972   done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6978 if test -n "$ac_ct_AR"; then
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6980 $as_echo "$ac_ct_AR" >&6; }
6981 else
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986
6987   test -n "$ac_ct_AR" && break
6988 done
6989
6990   if test "x$ac_ct_AR" = x; then
6991     AR="false"
6992   else
6993     case $cross_compiling:$ac_tool_warned in
6994 yes:)
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997 ac_tool_warned=yes ;;
6998 esac
6999     AR=$ac_ct_AR
7000   fi
7001 fi
7002
7003 : ${AR=ar}
7004 : ${AR_FLAGS=cr}
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7017 $as_echo_n "checking for archiver @FILE support... " >&6; }
7018 if ${lt_cv_ar_at_file+:} false; then :
7019   $as_echo_n "(cached) " >&6
7020 else
7021   lt_cv_ar_at_file=no
7022    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h.  */
7024
7025 int
7026 main ()
7027 {
7028
7029   ;
7030   return 0;
7031 }
7032 _ACEOF
7033 if ac_fn_c_try_compile "$LINENO"; then :
7034   echo conftest.$ac_objext > conftest.lst
7035       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7036       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7037   (eval $lt_ar_try) 2>&5
7038   ac_status=$?
7039   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040   test $ac_status = 0; }
7041       if test 0 -eq "$ac_status"; then
7042         # Ensure the archiver fails upon bogus file names.
7043         rm -f conftest.$ac_objext libconftest.a
7044         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7045   (eval $lt_ar_try) 2>&5
7046   ac_status=$?
7047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048   test $ac_status = 0; }
7049         if test 0 -ne "$ac_status"; then
7050           lt_cv_ar_at_file=@
7051         fi
7052       fi
7053       rm -f conftest.* libconftest.a
7054
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7060 $as_echo "$lt_cv_ar_at_file" >&6; }
7061
7062 if test no = "$lt_cv_ar_at_file"; then
7063   archiver_list_spec=
7064 else
7065   archiver_list_spec=$lt_cv_ar_at_file
7066 fi
7067
7068
7069
7070
7071
7072
7073
7074 if test -n "$ac_tool_prefix"; then
7075   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}strip; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_STRIP+:} false; then :
7080   $as_echo_n "(cached) " >&6
7081 else
7082   if test -n "$STRIP"; then
7083   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088   IFS=$as_save_IFS
7089   test -z "$as_dir" && as_dir=.
7090     for ac_exec_ext in '' $ac_executable_extensions; do
7091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094     break 2
7095   fi
7096 done
7097   done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 STRIP=$ac_cv_prog_STRIP
7103 if test -n "$STRIP"; then
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7105 $as_echo "$STRIP" >&6; }
7106 else
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_prog_STRIP"; then
7114   ac_ct_STRIP=$STRIP
7115   # Extract the first word of "strip", so it can be a program name with args.
7116 set dummy strip; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   if test -n "$ac_ct_STRIP"; then
7123   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130     for ac_exec_ext in '' $ac_executable_extensions; do
7131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132     ac_cv_prog_ac_ct_STRIP="strip"
7133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137   done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7143 if test -n "$ac_ct_STRIP"; then
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7145 $as_echo "$ac_ct_STRIP" >&6; }
7146 else
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151   if test "x$ac_ct_STRIP" = x; then
7152     STRIP=":"
7153   else
7154     case $cross_compiling:$ac_tool_warned in
7155 yes:)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160     STRIP=$ac_ct_STRIP
7161   fi
7162 else
7163   STRIP="$ac_cv_prog_STRIP"
7164 fi
7165
7166 test -z "$STRIP" && STRIP=:
7167
7168
7169
7170
7171
7172
7173 if test -n "$ac_tool_prefix"; then
7174   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_RANLIB+:} false; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   if test -n "$RANLIB"; then
7182   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189     for ac_exec_ext in '' $ac_executable_extensions; do
7190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196   done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 RANLIB=$ac_cv_prog_RANLIB
7202 if test -n "$RANLIB"; then
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7204 $as_echo "$RANLIB" >&6; }
7205 else
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210
7211 fi
7212 if test -z "$ac_cv_prog_RANLIB"; then
7213   ac_ct_RANLIB=$RANLIB
7214   # Extract the first word of "ranlib", so it can be a program name with args.
7215 set dummy ranlib; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7219   $as_echo_n "(cached) " >&6
7220 else
7221   if test -n "$ac_ct_RANLIB"; then
7222   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229     for ac_exec_ext in '' $ac_executable_extensions; do
7230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231     ac_cv_prog_ac_ct_RANLIB="ranlib"
7232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236   done
7237 IFS=$as_save_IFS
7238
7239 fi
7240 fi
7241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7242 if test -n "$ac_ct_RANLIB"; then
7243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7244 $as_echo "$ac_ct_RANLIB" >&6; }
7245 else
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7248 fi
7249
7250   if test "x$ac_ct_RANLIB" = x; then
7251     RANLIB=":"
7252   else
7253     case $cross_compiling:$ac_tool_warned in
7254 yes:)
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257 ac_tool_warned=yes ;;
7258 esac
7259     RANLIB=$ac_ct_RANLIB
7260   fi
7261 else
7262   RANLIB="$ac_cv_prog_RANLIB"
7263 fi
7264
7265 test -z "$RANLIB" && RANLIB=:
7266
7267
7268
7269
7270
7271
7272 # Determine commands to create old-style static archives.
7273 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7274 old_postinstall_cmds='chmod 644 $oldlib'
7275 old_postuninstall_cmds=
7276
7277 if test -n "$RANLIB"; then
7278   case $host_os in
7279   bitrig* | openbsd*)
7280     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7281     ;;
7282   *)
7283     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7284     ;;
7285   esac
7286   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7287 fi
7288
7289 case $host_os in
7290   darwin*)
7291     lock_old_archive_extraction=yes ;;
7292   *)
7293     lock_old_archive_extraction=no ;;
7294 esac
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 # If no C compiler was specified, use CC.
7335 LTCC=${LTCC-"$CC"}
7336
7337 # If no C compiler flags were specified, use CFLAGS.
7338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7339
7340 # Allow CC to be a program name with arguments.
7341 compiler=$CC
7342
7343
7344 # Check for command to grab the raw symbol name followed by C symbol from nm.
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7346 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7347 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7348   $as_echo_n "(cached) " >&6
7349 else
7350
7351 # These are sane defaults that work on at least a few old systems.
7352 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7353
7354 # Character class describing NM global symbol codes.
7355 symcode='[BCDEGRST]'
7356
7357 # Regexp to match symbols that can be accessed directly from C.
7358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7359
7360 # Define system-specific variables.
7361 case $host_os in
7362 aix*)
7363   symcode='[BCDT]'
7364   ;;
7365 cygwin* | mingw* | pw32* | cegcc*)
7366   symcode='[ABCDGISTW]'
7367   ;;
7368 hpux*)
7369   if test ia64 = "$host_cpu"; then
7370     symcode='[ABCDEGRST]'
7371   fi
7372   ;;
7373 irix* | nonstopux*)
7374   symcode='[BCDEGRST]'
7375   ;;
7376 osf*)
7377   symcode='[BCDEGQRST]'
7378   ;;
7379 solaris*)
7380   symcode='[BDRT]'
7381   ;;
7382 sco3.2v5*)
7383   symcode='[DT]'
7384   ;;
7385 sysv4.2uw2*)
7386   symcode='[DT]'
7387   ;;
7388 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7389   symcode='[ABDT]'
7390   ;;
7391 sysv4)
7392   symcode='[DFNSTU]'
7393   ;;
7394 esac
7395
7396 # If we're using GNU nm, then use its standard symbol codes.
7397 case `$NM -V 2>&1` in
7398 *GNU* | *'with BFD'*)
7399   symcode='[ABCDGIRSTW]' ;;
7400 esac
7401
7402 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7403   # Gets list of data symbols to import.
7404   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7405   # Adjust the below global symbol transforms to fixup imported variables.
7406   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7407   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7408   lt_c_name_lib_hook="\
7409   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7410   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7411 else
7412   # Disable hooks by default.
7413   lt_cv_sys_global_symbol_to_import=
7414   lt_cdecl_hook=
7415   lt_c_name_hook=
7416   lt_c_name_lib_hook=
7417 fi
7418
7419 # Transform an extracted symbol line into a proper C declaration.
7420 # Some systems (esp. on ia64) link data and code symbols differently,
7421 # so use this general approach.
7422 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7423 $lt_cdecl_hook\
7424 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7425 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7426
7427 # Transform an extracted symbol line into symbol name and symbol address
7428 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7429 $lt_c_name_hook\
7430 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7431 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7432
7433 # Transform an extracted symbol line into symbol name with lib prefix and
7434 # symbol address.
7435 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7436 $lt_c_name_lib_hook\
7437 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7438 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7439 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7440
7441 # Handle CRLF in mingw tool chain
7442 opt_cr=
7443 case $build_os in
7444 mingw*)
7445   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7446   ;;
7447 esac
7448
7449 # Try without a prefix underscore, then with it.
7450 for ac_symprfx in "" "_"; do
7451
7452   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7453   symxfrm="\\1 $ac_symprfx\\2 \\2"
7454
7455   # Write the raw and C identifiers.
7456   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7457     # Fake it for dumpbin and say T for any non-static function,
7458     # D for any global variable and I for any imported variable.
7459     # Also find C++ and __fastcall symbols from MSVC++,
7460     # which start with @ or ?.
7461     lt_cv_sys_global_symbol_pipe="$AWK '"\
7462 "     {last_section=section; section=\$ 3};"\
7463 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7464 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7465 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7466 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7467 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7468 "     \$ 0!~/External *\|/{next};"\
7469 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7470 "     {if(hide[section]) next};"\
7471 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7472 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7473 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7474 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7475 "     ' prfx=^$ac_symprfx"
7476   else
7477     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7478   fi
7479   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7480
7481   # Check to see that the pipe works correctly.
7482   pipe_works=no
7483
7484   rm -f conftest*
7485   cat > conftest.$ac_ext <<_LT_EOF
7486 #ifdef __cplusplus
7487 extern "C" {
7488 #endif
7489 char nm_test_var;
7490 void nm_test_func(void);
7491 void nm_test_func(void){}
7492 #ifdef __cplusplus
7493 }
7494 #endif
7495 int main(){nm_test_var='a';nm_test_func();return(0);}
7496 _LT_EOF
7497
7498   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7499   (eval $ac_compile) 2>&5
7500   ac_status=$?
7501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7502   test $ac_status = 0; }; then
7503     # Now try to grab the symbols.
7504     nlist=conftest.nm
7505     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7506     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7507       # Try sorting and uniquifying the output.
7508       if sort "$nlist" | uniq > "$nlist"T; then
7509         mv -f "$nlist"T "$nlist"
7510       else
7511         rm -f "$nlist"T
7512       fi
7513
7514       # Make sure that we snagged all the symbols we need.
7515       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7516         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7517           cat <<_LT_EOF > conftest.$ac_ext
7518 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7519 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7520 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7521    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7522 # define LT_DLSYM_CONST
7523 #elif defined __osf__
7524 /* This system does not cope well with relocations in const data.  */
7525 # define LT_DLSYM_CONST
7526 #else
7527 # define LT_DLSYM_CONST const
7528 #endif
7529
7530 #ifdef __cplusplus
7531 extern "C" {
7532 #endif
7533
7534 _LT_EOF
7535           # Now generate the symbol file.
7536           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7537
7538           cat <<_LT_EOF >> conftest.$ac_ext
7539
7540 /* The mapping between symbol names and symbols.  */
7541 LT_DLSYM_CONST struct {
7542   const char *name;
7543   void       *address;
7544 }
7545 lt__PROGRAM__LTX_preloaded_symbols[] =
7546 {
7547   { "@PROGRAM@", (void *) 0 },
7548 _LT_EOF
7549           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7550           cat <<\_LT_EOF >> conftest.$ac_ext
7551   {0, (void *) 0}
7552 };
7553
7554 /* This works around a problem in FreeBSD linker */
7555 #ifdef FREEBSD_WORKAROUND
7556 static const void *lt_preloaded_setup() {
7557   return lt__PROGRAM__LTX_preloaded_symbols;
7558 }
7559 #endif
7560
7561 #ifdef __cplusplus
7562 }
7563 #endif
7564 _LT_EOF
7565           # Now try linking the two files.
7566           mv conftest.$ac_objext conftstm.$ac_objext
7567           lt_globsym_save_LIBS=$LIBS
7568           lt_globsym_save_CFLAGS=$CFLAGS
7569           LIBS=conftstm.$ac_objext
7570           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7571           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7572   (eval $ac_link) 2>&5
7573   ac_status=$?
7574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7576             pipe_works=yes
7577           fi
7578           LIBS=$lt_globsym_save_LIBS
7579           CFLAGS=$lt_globsym_save_CFLAGS
7580         else
7581           echo "cannot find nm_test_func in $nlist" >&5
7582         fi
7583       else
7584         echo "cannot find nm_test_var in $nlist" >&5
7585       fi
7586     else
7587       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7588     fi
7589   else
7590     echo "$progname: failed program was:" >&5
7591     cat conftest.$ac_ext >&5
7592   fi
7593   rm -rf conftest* conftst*
7594
7595   # Do not use the global_symbol_pipe unless it works.
7596   if test yes = "$pipe_works"; then
7597     break
7598   else
7599     lt_cv_sys_global_symbol_pipe=
7600   fi
7601 done
7602
7603 fi
7604
7605 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7606   lt_cv_sys_global_symbol_to_cdecl=
7607 fi
7608 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7610 $as_echo "failed" >&6; }
7611 else
7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7613 $as_echo "ok" >&6; }
7614 fi
7615
7616 # Response file support.
7617 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7618   nm_file_list_spec='@'
7619 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7620   nm_file_list_spec='@'
7621 fi
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7660 $as_echo_n "checking for sysroot... " >&6; }
7661
7662 # Check whether --with-sysroot was given.
7663 if test "${with_sysroot+set}" = set; then :
7664   withval=$with_sysroot;
7665 else
7666   with_sysroot=no
7667 fi
7668
7669
7670 lt_sysroot=
7671 case $with_sysroot in #(
7672  yes)
7673    if test yes = "$GCC"; then
7674      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7675    fi
7676    ;; #(
7677  /*)
7678    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7679    ;; #(
7680  no|'')
7681    ;; #(
7682  *)
7683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7684 $as_echo "$with_sysroot" >&6; }
7685    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7686    ;;
7687 esac
7688
7689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7690 $as_echo "${lt_sysroot:-no}" >&6; }
7691
7692
7693
7694
7695
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7697 $as_echo_n "checking for a working dd... " >&6; }
7698 if ${ac_cv_path_lt_DD+:} false; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   printf 0123456789abcdef0123456789abcdef >conftest.i
7702 cat conftest.i conftest.i >conftest2.i
7703 : ${lt_DD:=$DD}
7704 if test -z "$lt_DD"; then
7705   ac_path_lt_DD_found=false
7706   # Loop through the user's path and test for each of PROGNAME-LIST
7707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710   IFS=$as_save_IFS
7711   test -z "$as_dir" && as_dir=.
7712     for ac_prog in dd; do
7713     for ac_exec_ext in '' $ac_executable_extensions; do
7714       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7715       as_fn_executable_p "$ac_path_lt_DD" || continue
7716 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7717   cmp -s conftest.i conftest.out \
7718   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7719 fi
7720       $ac_path_lt_DD_found && break 3
7721     done
7722   done
7723   done
7724 IFS=$as_save_IFS
7725   if test -z "$ac_cv_path_lt_DD"; then
7726     :
7727   fi
7728 else
7729   ac_cv_path_lt_DD=$lt_DD
7730 fi
7731
7732 rm -f conftest.i conftest2.i conftest.out
7733 fi
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7735 $as_echo "$ac_cv_path_lt_DD" >&6; }
7736
7737
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7739 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7740 if ${lt_cv_truncate_bin+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   printf 0123456789abcdef0123456789abcdef >conftest.i
7744 cat conftest.i conftest.i >conftest2.i
7745 lt_cv_truncate_bin=
7746 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7747   cmp -s conftest.i conftest.out \
7748   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7749 fi
7750 rm -f conftest.i conftest2.i conftest.out
7751 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7754 $as_echo "$lt_cv_truncate_bin" >&6; }
7755
7756
7757
7758
7759
7760
7761
7762 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7763 func_cc_basename ()
7764 {
7765     for cc_temp in $*""; do
7766       case $cc_temp in
7767         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7768         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7769         \-*) ;;
7770         *) break;;
7771       esac
7772     done
7773     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7774 }
7775
7776 # Check whether --enable-libtool-lock was given.
7777 if test "${enable_libtool_lock+set}" = set; then :
7778   enableval=$enable_libtool_lock;
7779 fi
7780
7781 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7782
7783 # Some flags need to be propagated to the compiler or linker for good
7784 # libtool support.
7785 case $host in
7786 ia64-*-hpux*)
7787   # Find out what ABI is being produced by ac_compile, and set mode
7788   # options accordingly.
7789   echo 'int i;' > conftest.$ac_ext
7790   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791   (eval $ac_compile) 2>&5
7792   ac_status=$?
7793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794   test $ac_status = 0; }; then
7795     case `/usr/bin/file conftest.$ac_objext` in
7796       *ELF-32*)
7797         HPUX_IA64_MODE=32
7798         ;;
7799       *ELF-64*)
7800         HPUX_IA64_MODE=64
7801         ;;
7802     esac
7803   fi
7804   rm -rf conftest*
7805   ;;
7806 *-*-irix6*)
7807   # Find out what ABI is being produced by ac_compile, and set linker
7808   # options accordingly.
7809   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7810   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7811   (eval $ac_compile) 2>&5
7812   ac_status=$?
7813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7814   test $ac_status = 0; }; then
7815     if test yes = "$lt_cv_prog_gnu_ld"; then
7816       case `/usr/bin/file conftest.$ac_objext` in
7817         *32-bit*)
7818           LD="${LD-ld} -melf32bsmip"
7819           ;;
7820         *N32*)
7821           LD="${LD-ld} -melf32bmipn32"
7822           ;;
7823         *64-bit*)
7824           LD="${LD-ld} -melf64bmip"
7825         ;;
7826       esac
7827     else
7828       case `/usr/bin/file conftest.$ac_objext` in
7829         *32-bit*)
7830           LD="${LD-ld} -32"
7831           ;;
7832         *N32*)
7833           LD="${LD-ld} -n32"
7834           ;;
7835         *64-bit*)
7836           LD="${LD-ld} -64"
7837           ;;
7838       esac
7839     fi
7840   fi
7841   rm -rf conftest*
7842   ;;
7843
7844 mips64*-*linux*)
7845   # Find out what ABI is being produced by ac_compile, and set linker
7846   # options accordingly.
7847   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7848   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7849   (eval $ac_compile) 2>&5
7850   ac_status=$?
7851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852   test $ac_status = 0; }; then
7853     emul=elf
7854     case `/usr/bin/file conftest.$ac_objext` in
7855       *32-bit*)
7856         emul="${emul}32"
7857         ;;
7858       *64-bit*)
7859         emul="${emul}64"
7860         ;;
7861     esac
7862     case `/usr/bin/file conftest.$ac_objext` in
7863       *MSB*)
7864         emul="${emul}btsmip"
7865         ;;
7866       *LSB*)
7867         emul="${emul}ltsmip"
7868         ;;
7869     esac
7870     case `/usr/bin/file conftest.$ac_objext` in
7871       *N32*)
7872         emul="${emul}n32"
7873         ;;
7874     esac
7875     LD="${LD-ld} -m $emul"
7876   fi
7877   rm -rf conftest*
7878   ;;
7879
7880 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7881 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7882   # Find out what ABI is being produced by ac_compile, and set linker
7883   # options accordingly.  Note that the listed cases only cover the
7884   # situations where additional linker options are needed (such as when
7885   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7886   # vice versa); the common cases where no linker options are needed do
7887   # not appear in the list.
7888   echo 'int i;' > conftest.$ac_ext
7889   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890   (eval $ac_compile) 2>&5
7891   ac_status=$?
7892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893   test $ac_status = 0; }; then
7894     case `/usr/bin/file conftest.o` in
7895       *32-bit*)
7896         case $host in
7897           x86_64-*kfreebsd*-gnu)
7898             LD="${LD-ld} -m elf_i386_fbsd"
7899             ;;
7900           x86_64-*linux*)
7901             case `/usr/bin/file conftest.o` in
7902               *x86-64*)
7903                 LD="${LD-ld} -m elf32_x86_64"
7904                 ;;
7905               *)
7906                 LD="${LD-ld} -m elf_i386"
7907                 ;;
7908             esac
7909             ;;
7910           powerpc64le-*linux*)
7911             LD="${LD-ld} -m elf32lppclinux"
7912             ;;
7913           powerpc64-*linux*)
7914             LD="${LD-ld} -m elf32ppclinux"
7915             ;;
7916           s390x-*linux*)
7917             LD="${LD-ld} -m elf_s390"
7918             ;;
7919           sparc64-*linux*)
7920             LD="${LD-ld} -m elf32_sparc"
7921             ;;
7922         esac
7923         ;;
7924       *64-bit*)
7925         case $host in
7926           x86_64-*kfreebsd*-gnu)
7927             LD="${LD-ld} -m elf_x86_64_fbsd"
7928             ;;
7929           x86_64-*linux*)
7930             LD="${LD-ld} -m elf_x86_64"
7931             ;;
7932           powerpcle-*linux*)
7933             LD="${LD-ld} -m elf64lppc"
7934             ;;
7935           powerpc-*linux*)
7936             LD="${LD-ld} -m elf64ppc"
7937             ;;
7938           s390*-*linux*|s390*-*tpf*)
7939             LD="${LD-ld} -m elf64_s390"
7940             ;;
7941           sparc*-*linux*)
7942             LD="${LD-ld} -m elf64_sparc"
7943             ;;
7944         esac
7945         ;;
7946     esac
7947   fi
7948   rm -rf conftest*
7949   ;;
7950
7951 *-*-sco3.2v5*)
7952   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7953   SAVE_CFLAGS=$CFLAGS
7954   CFLAGS="$CFLAGS -belf"
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7956 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7957 if ${lt_cv_cc_needs_belf+:} false; then :
7958   $as_echo_n "(cached) " >&6
7959 else
7960   ac_ext=c
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965
7966      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h.  */
7968
7969 int
7970 main ()
7971 {
7972
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 if ac_fn_c_try_link "$LINENO"; then :
7978   lt_cv_cc_needs_belf=yes
7979 else
7980   lt_cv_cc_needs_belf=no
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext \
7983     conftest$ac_exeext conftest.$ac_ext
7984      ac_ext=c
7985 ac_cpp='$CPP $CPPFLAGS'
7986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7992 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7993   if test yes != "$lt_cv_cc_needs_belf"; then
7994     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7995     CFLAGS=$SAVE_CFLAGS
7996   fi
7997   ;;
7998 *-*solaris*)
7999   # Find out what ABI is being produced by ac_compile, and set linker
8000   # options accordingly.
8001   echo 'int i;' > conftest.$ac_ext
8002   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8003   (eval $ac_compile) 2>&5
8004   ac_status=$?
8005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8006   test $ac_status = 0; }; then
8007     case `/usr/bin/file conftest.o` in
8008     *64-bit*)
8009       case $lt_cv_prog_gnu_ld in
8010       yes*)
8011         case $host in
8012         i?86-*-solaris*|x86_64-*-solaris*)
8013           LD="${LD-ld} -m elf_x86_64"
8014           ;;
8015         sparc*-*-solaris*)
8016           LD="${LD-ld} -m elf64_sparc"
8017           ;;
8018         esac
8019         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8020         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8021           LD=${LD-ld}_sol2
8022         fi
8023         ;;
8024       *)
8025         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8026           LD="${LD-ld} -64"
8027         fi
8028         ;;
8029       esac
8030       ;;
8031     esac
8032   fi
8033   rm -rf conftest*
8034   ;;
8035 esac
8036
8037 need_locks=$enable_libtool_lock
8038
8039 if test -n "$ac_tool_prefix"; then
8040   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}mt; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8045   $as_echo_n "(cached) " >&6
8046 else
8047   if test -n "$MANIFEST_TOOL"; then
8048   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053   IFS=$as_save_IFS
8054   test -z "$as_dir" && as_dir=.
8055     for ac_exec_ext in '' $ac_executable_extensions; do
8056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059     break 2
8060   fi
8061 done
8062   done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8068 if test -n "$MANIFEST_TOOL"; then
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8070 $as_echo "$MANIFEST_TOOL" >&6; }
8071 else
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075
8076
8077 fi
8078 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8079   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8080   # Extract the first word of "mt", so it can be a program name with args.
8081 set dummy mt; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8085   $as_echo_n "(cached) " >&6
8086 else
8087   if test -n "$ac_ct_MANIFEST_TOOL"; then
8088   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095     for ac_exec_ext in '' $ac_executable_extensions; do
8096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102   done
8103 IFS=$as_save_IFS
8104
8105 fi
8106 fi
8107 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8108 if test -n "$ac_ct_MANIFEST_TOOL"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8110 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8111 else
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8117     MANIFEST_TOOL=":"
8118   else
8119     case $cross_compiling:$ac_tool_warned in
8120 yes:)
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8124 esac
8125     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8126   fi
8127 else
8128   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8129 fi
8130
8131 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8133 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8134 if ${lt_cv_path_mainfest_tool+:} false; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   lt_cv_path_mainfest_tool=no
8138   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8139   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8140   cat conftest.err >&5
8141   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8142     lt_cv_path_mainfest_tool=yes
8143   fi
8144   rm -f conftest*
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8147 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8148 if test yes != "$lt_cv_path_mainfest_tool"; then
8149   MANIFEST_TOOL=:
8150 fi
8151
8152
8153
8154
8155
8156
8157   case $host_os in
8158     rhapsody* | darwin*)
8159     if test -n "$ac_tool_prefix"; then
8160   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8161 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   if test -n "$DSYMUTIL"; then
8168   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8169 else
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173   IFS=$as_save_IFS
8174   test -z "$as_dir" && as_dir=.
8175     for ac_exec_ext in '' $ac_executable_extensions; do
8176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8177     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179     break 2
8180   fi
8181 done
8182   done
8183 IFS=$as_save_IFS
8184
8185 fi
8186 fi
8187 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8188 if test -n "$DSYMUTIL"; then
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8190 $as_echo "$DSYMUTIL" >&6; }
8191 else
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8194 fi
8195
8196
8197 fi
8198 if test -z "$ac_cv_prog_DSYMUTIL"; then
8199   ac_ct_DSYMUTIL=$DSYMUTIL
8200   # Extract the first word of "dsymutil", so it can be a program name with args.
8201 set dummy dsymutil; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8205   $as_echo_n "(cached) " >&6
8206 else
8207   if test -n "$ac_ct_DSYMUTIL"; then
8208   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8209 else
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213   IFS=$as_save_IFS
8214   test -z "$as_dir" && as_dir=.
8215     for ac_exec_ext in '' $ac_executable_extensions; do
8216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219     break 2
8220   fi
8221 done
8222   done
8223 IFS=$as_save_IFS
8224
8225 fi
8226 fi
8227 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8228 if test -n "$ac_ct_DSYMUTIL"; then
8229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8230 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8231 else
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8234 fi
8235
8236   if test "x$ac_ct_DSYMUTIL" = x; then
8237     DSYMUTIL=":"
8238   else
8239     case $cross_compiling:$ac_tool_warned in
8240 yes:)
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8243 ac_tool_warned=yes ;;
8244 esac
8245     DSYMUTIL=$ac_ct_DSYMUTIL
8246   fi
8247 else
8248   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8249 fi
8250
8251     if test -n "$ac_tool_prefix"; then
8252   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8253 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if ${ac_cv_prog_NMEDIT+:} false; then :
8257   $as_echo_n "(cached) " >&6
8258 else
8259   if test -n "$NMEDIT"; then
8260   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8261 else
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8264 do
8265   IFS=$as_save_IFS
8266   test -z "$as_dir" && as_dir=.
8267     for ac_exec_ext in '' $ac_executable_extensions; do
8268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8269     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271     break 2
8272   fi
8273 done
8274   done
8275 IFS=$as_save_IFS
8276
8277 fi
8278 fi
8279 NMEDIT=$ac_cv_prog_NMEDIT
8280 if test -n "$NMEDIT"; then
8281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8282 $as_echo "$NMEDIT" >&6; }
8283 else
8284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8286 fi
8287
8288
8289 fi
8290 if test -z "$ac_cv_prog_NMEDIT"; then
8291   ac_ct_NMEDIT=$NMEDIT
8292   # Extract the first word of "nmedit", so it can be a program name with args.
8293 set dummy nmedit; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8297   $as_echo_n "(cached) " >&6
8298 else
8299   if test -n "$ac_ct_NMEDIT"; then
8300   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8301 else
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305   IFS=$as_save_IFS
8306   test -z "$as_dir" && as_dir=.
8307     for ac_exec_ext in '' $ac_executable_extensions; do
8308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311     break 2
8312   fi
8313 done
8314   done
8315 IFS=$as_save_IFS
8316
8317 fi
8318 fi
8319 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8320 if test -n "$ac_ct_NMEDIT"; then
8321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8322 $as_echo "$ac_ct_NMEDIT" >&6; }
8323 else
8324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8326 fi
8327
8328   if test "x$ac_ct_NMEDIT" = x; then
8329     NMEDIT=":"
8330   else
8331     case $cross_compiling:$ac_tool_warned in
8332 yes:)
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8335 ac_tool_warned=yes ;;
8336 esac
8337     NMEDIT=$ac_ct_NMEDIT
8338   fi
8339 else
8340   NMEDIT="$ac_cv_prog_NMEDIT"
8341 fi
8342
8343     if test -n "$ac_tool_prefix"; then
8344   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_LIPO+:} false; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   if test -n "$LIPO"; then
8352   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357   IFS=$as_save_IFS
8358   test -z "$as_dir" && as_dir=.
8359     for ac_exec_ext in '' $ac_executable_extensions; do
8360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363     break 2
8364   fi
8365 done
8366   done
8367 IFS=$as_save_IFS
8368
8369 fi
8370 fi
8371 LIPO=$ac_cv_prog_LIPO
8372 if test -n "$LIPO"; then
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8374 $as_echo "$LIPO" >&6; }
8375 else
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380
8381 fi
8382 if test -z "$ac_cv_prog_LIPO"; then
8383   ac_ct_LIPO=$LIPO
8384   # Extract the first word of "lipo", so it can be a program name with args.
8385 set dummy lipo; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8389   $as_echo_n "(cached) " >&6
8390 else
8391   if test -n "$ac_ct_LIPO"; then
8392   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397   IFS=$as_save_IFS
8398   test -z "$as_dir" && as_dir=.
8399     for ac_exec_ext in '' $ac_executable_extensions; do
8400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401     ac_cv_prog_ac_ct_LIPO="lipo"
8402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403     break 2
8404   fi
8405 done
8406   done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8412 if test -n "$ac_ct_LIPO"; then
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8414 $as_echo "$ac_ct_LIPO" >&6; }
8415 else
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420   if test "x$ac_ct_LIPO" = x; then
8421     LIPO=":"
8422   else
8423     case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429     LIPO=$ac_ct_LIPO
8430   fi
8431 else
8432   LIPO="$ac_cv_prog_LIPO"
8433 fi
8434
8435     if test -n "$ac_tool_prefix"; then
8436   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8437 set dummy ${ac_tool_prefix}otool; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if ${ac_cv_prog_OTOOL+:} false; then :
8441   $as_echo_n "(cached) " >&6
8442 else
8443   if test -n "$OTOOL"; then
8444   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8445 else
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8448 do
8449   IFS=$as_save_IFS
8450   test -z "$as_dir" && as_dir=.
8451     for ac_exec_ext in '' $ac_executable_extensions; do
8452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455     break 2
8456   fi
8457 done
8458   done
8459 IFS=$as_save_IFS
8460
8461 fi
8462 fi
8463 OTOOL=$ac_cv_prog_OTOOL
8464 if test -n "$OTOOL"; then
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8466 $as_echo "$OTOOL" >&6; }
8467 else
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8470 fi
8471
8472
8473 fi
8474 if test -z "$ac_cv_prog_OTOOL"; then
8475   ac_ct_OTOOL=$OTOOL
8476   # Extract the first word of "otool", so it can be a program name with args.
8477 set dummy otool; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8481   $as_echo_n "(cached) " >&6
8482 else
8483   if test -n "$ac_ct_OTOOL"; then
8484   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8485 else
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH
8488 do
8489   IFS=$as_save_IFS
8490   test -z "$as_dir" && as_dir=.
8491     for ac_exec_ext in '' $ac_executable_extensions; do
8492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8493     ac_cv_prog_ac_ct_OTOOL="otool"
8494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495     break 2
8496   fi
8497 done
8498   done
8499 IFS=$as_save_IFS
8500
8501 fi
8502 fi
8503 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8504 if test -n "$ac_ct_OTOOL"; then
8505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8506 $as_echo "$ac_ct_OTOOL" >&6; }
8507 else
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511
8512   if test "x$ac_ct_OTOOL" = x; then
8513     OTOOL=":"
8514   else
8515     case $cross_compiling:$ac_tool_warned in
8516 yes:)
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8519 ac_tool_warned=yes ;;
8520 esac
8521     OTOOL=$ac_ct_OTOOL
8522   fi
8523 else
8524   OTOOL="$ac_cv_prog_OTOOL"
8525 fi
8526
8527     if test -n "$ac_tool_prefix"; then
8528   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8529 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 $as_echo_n "checking for $ac_word... " >&6; }
8532 if ${ac_cv_prog_OTOOL64+:} false; then :
8533   $as_echo_n "(cached) " >&6
8534 else
8535   if test -n "$OTOOL64"; then
8536   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8537 else
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541   IFS=$as_save_IFS
8542   test -z "$as_dir" && as_dir=.
8543     for ac_exec_ext in '' $ac_executable_extensions; do
8544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547     break 2
8548   fi
8549 done
8550   done
8551 IFS=$as_save_IFS
8552
8553 fi
8554 fi
8555 OTOOL64=$ac_cv_prog_OTOOL64
8556 if test -n "$OTOOL64"; then
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8558 $as_echo "$OTOOL64" >&6; }
8559 else
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8562 fi
8563
8564
8565 fi
8566 if test -z "$ac_cv_prog_OTOOL64"; then
8567   ac_ct_OTOOL64=$OTOOL64
8568   # Extract the first word of "otool64", so it can be a program name with args.
8569 set dummy otool64; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8573   $as_echo_n "(cached) " >&6
8574 else
8575   if test -n "$ac_ct_OTOOL64"; then
8576   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581   IFS=$as_save_IFS
8582   test -z "$as_dir" && as_dir=.
8583     for ac_exec_ext in '' $ac_executable_extensions; do
8584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585     ac_cv_prog_ac_ct_OTOOL64="otool64"
8586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587     break 2
8588   fi
8589 done
8590   done
8591 IFS=$as_save_IFS
8592
8593 fi
8594 fi
8595 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8596 if test -n "$ac_ct_OTOOL64"; then
8597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8598 $as_echo "$ac_ct_OTOOL64" >&6; }
8599 else
8600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8602 fi
8603
8604   if test "x$ac_ct_OTOOL64" = x; then
8605     OTOOL64=":"
8606   else
8607     case $cross_compiling:$ac_tool_warned in
8608 yes:)
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8611 ac_tool_warned=yes ;;
8612 esac
8613     OTOOL64=$ac_ct_OTOOL64
8614   fi
8615 else
8616   OTOOL64="$ac_cv_prog_OTOOL64"
8617 fi
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8646 $as_echo_n "checking for -single_module linker flag... " >&6; }
8647 if ${lt_cv_apple_cc_single_mod+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   lt_cv_apple_cc_single_mod=no
8651       if test -z "$LT_MULTI_MODULE"; then
8652         # By default we will add the -single_module flag. You can override
8653         # by either setting the environment variable LT_MULTI_MODULE
8654         # non-empty at configure time, or by adding -multi_module to the
8655         # link flags.
8656         rm -rf libconftest.dylib*
8657         echo "int foo(void){return 1;}" > conftest.c
8658         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8659 -dynamiclib -Wl,-single_module conftest.c" >&5
8660         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8661           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8662         _lt_result=$?
8663         # If there is a non-empty error log, and "single_module"
8664         # appears in it, assume the flag caused a linker warning
8665         if test -s conftest.err && $GREP single_module conftest.err; then
8666           cat conftest.err >&5
8667         # Otherwise, if the output was created with a 0 exit code from
8668         # the compiler, it worked.
8669         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8670           lt_cv_apple_cc_single_mod=yes
8671         else
8672           cat conftest.err >&5
8673         fi
8674         rm -rf libconftest.dylib*
8675         rm -f conftest.*
8676       fi
8677 fi
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8679 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8680
8681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8682 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8683 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   lt_cv_ld_exported_symbols_list=no
8687       save_LDFLAGS=$LDFLAGS
8688       echo "_main" > conftest.sym
8689       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8690       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h.  */
8692
8693 int
8694 main ()
8695 {
8696
8697   ;
8698   return 0;
8699 }
8700 _ACEOF
8701 if ac_fn_c_try_link "$LINENO"; then :
8702   lt_cv_ld_exported_symbols_list=yes
8703 else
8704   lt_cv_ld_exported_symbols_list=no
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext \
8707     conftest$ac_exeext conftest.$ac_ext
8708         LDFLAGS=$save_LDFLAGS
8709
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8712 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8713
8714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8715 $as_echo_n "checking for -force_load linker flag... " >&6; }
8716 if ${lt_cv_ld_force_load+:} false; then :
8717   $as_echo_n "(cached) " >&6
8718 else
8719   lt_cv_ld_force_load=no
8720       cat > conftest.c << _LT_EOF
8721 int forced_loaded() { return 2;}
8722 _LT_EOF
8723       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8724       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8725       echo "$AR cr libconftest.a conftest.o" >&5
8726       $AR cr libconftest.a conftest.o 2>&5
8727       echo "$RANLIB libconftest.a" >&5
8728       $RANLIB libconftest.a 2>&5
8729       cat > conftest.c << _LT_EOF
8730 int main() { return 0;}
8731 _LT_EOF
8732       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8733       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8734       _lt_result=$?
8735       if test -s conftest.err && $GREP force_load conftest.err; then
8736         cat conftest.err >&5
8737       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8738         lt_cv_ld_force_load=yes
8739       else
8740         cat conftest.err >&5
8741       fi
8742         rm -f conftest.err libconftest.a conftest conftest.c
8743         rm -rf conftest.dSYM
8744
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8747 $as_echo "$lt_cv_ld_force_load" >&6; }
8748     case $host_os in
8749     rhapsody* | darwin1.[012])
8750       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8751     darwin1.*)
8752       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8753     darwin*) # darwin 5.x on
8754       # if running on 10.5 or later, the deployment target defaults
8755       # to the OS version, if on x86, and 10.4, the deployment
8756       # target defaults to 10.4. Don't you love it?
8757       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8758         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8759           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8760         10.[012][,.]*)
8761           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8762         10.*)
8763           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8764       esac
8765     ;;
8766   esac
8767     if test yes = "$lt_cv_apple_cc_single_mod"; then
8768       _lt_dar_single_mod='$single_module'
8769     fi
8770     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8771       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8772     else
8773       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8774     fi
8775     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8776       _lt_dsymutil='~$DSYMUTIL $lib || :'
8777     else
8778       _lt_dsymutil=
8779     fi
8780     ;;
8781   esac
8782
8783 # func_munge_path_list VARIABLE PATH
8784 # -----------------------------------
8785 # VARIABLE is name of variable containing _space_ separated list of
8786 # directories to be munged by the contents of PATH, which is string
8787 # having a format:
8788 # "DIR[:DIR]:"
8789 #       string "DIR[ DIR]" will be prepended to VARIABLE
8790 # ":DIR[:DIR]"
8791 #       string "DIR[ DIR]" will be appended to VARIABLE
8792 # "DIRP[:DIRP]::[DIRA:]DIRA"
8793 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8794 #       "DIRA[ DIRA]" will be appended to VARIABLE
8795 # "DIR[:DIR]"
8796 #       VARIABLE will be replaced by "DIR[ DIR]"
8797 func_munge_path_list ()
8798 {
8799     case x$2 in
8800     x)
8801         ;;
8802     *:)
8803         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8804         ;;
8805     x:*)
8806         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8807         ;;
8808     *::*)
8809         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8810         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8811         ;;
8812     *)
8813         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8814         ;;
8815     esac
8816 }
8817
8818 ac_ext=c
8819 ac_cpp='$CPP $CPPFLAGS'
8820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8824 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8825 # On Suns, sometimes $CPP names a directory.
8826 if test -n "$CPP" && test -d "$CPP"; then
8827   CPP=
8828 fi
8829 if test -z "$CPP"; then
8830   if ${ac_cv_prog_CPP+:} false; then :
8831   $as_echo_n "(cached) " >&6
8832 else
8833       # Double quotes because CPP needs to be expanded
8834     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8835     do
8836       ac_preproc_ok=false
8837 for ac_c_preproc_warn_flag in '' yes
8838 do
8839   # Use a header file that comes with gcc, so configuring glibc
8840   # with a fresh cross-compiler works.
8841   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8842   # <limits.h> exists even on freestanding compilers.
8843   # On the NeXT, cc -E runs the code through the compiler's parser,
8844   # not just through cpp. "Syntax error" is here to catch this case.
8845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h.  */
8847 #ifdef __STDC__
8848 # include <limits.h>
8849 #else
8850 # include <assert.h>
8851 #endif
8852                      Syntax error
8853 _ACEOF
8854 if ac_fn_c_try_cpp "$LINENO"; then :
8855
8856 else
8857   # Broken: fails on valid input.
8858 continue
8859 fi
8860 rm -f conftest.err conftest.i conftest.$ac_ext
8861
8862   # OK, works on sane cases.  Now check whether nonexistent headers
8863   # can be detected and how.
8864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h.  */
8866 #include <ac_nonexistent.h>
8867 _ACEOF
8868 if ac_fn_c_try_cpp "$LINENO"; then :
8869   # Broken: success on invalid input.
8870 continue
8871 else
8872   # Passes both tests.
8873 ac_preproc_ok=:
8874 break
8875 fi
8876 rm -f conftest.err conftest.i conftest.$ac_ext
8877
8878 done
8879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8880 rm -f conftest.i conftest.err conftest.$ac_ext
8881 if $ac_preproc_ok; then :
8882   break
8883 fi
8884
8885     done
8886     ac_cv_prog_CPP=$CPP
8887
8888 fi
8889   CPP=$ac_cv_prog_CPP
8890 else
8891   ac_cv_prog_CPP=$CPP
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8894 $as_echo "$CPP" >&6; }
8895 ac_preproc_ok=false
8896 for ac_c_preproc_warn_flag in '' yes
8897 do
8898   # Use a header file that comes with gcc, so configuring glibc
8899   # with a fresh cross-compiler works.
8900   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8901   # <limits.h> exists even on freestanding compilers.
8902   # On the NeXT, cc -E runs the code through the compiler's parser,
8903   # not just through cpp. "Syntax error" is here to catch this case.
8904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h.  */
8906 #ifdef __STDC__
8907 # include <limits.h>
8908 #else
8909 # include <assert.h>
8910 #endif
8911                      Syntax error
8912 _ACEOF
8913 if ac_fn_c_try_cpp "$LINENO"; then :
8914
8915 else
8916   # Broken: fails on valid input.
8917 continue
8918 fi
8919 rm -f conftest.err conftest.i conftest.$ac_ext
8920
8921   # OK, works on sane cases.  Now check whether nonexistent headers
8922   # can be detected and how.
8923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h.  */
8925 #include <ac_nonexistent.h>
8926 _ACEOF
8927 if ac_fn_c_try_cpp "$LINENO"; then :
8928   # Broken: success on invalid input.
8929 continue
8930 else
8931   # Passes both tests.
8932 ac_preproc_ok=:
8933 break
8934 fi
8935 rm -f conftest.err conftest.i conftest.$ac_ext
8936
8937 done
8938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8939 rm -f conftest.i conftest.err conftest.$ac_ext
8940 if $ac_preproc_ok; then :
8941
8942 else
8943   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8945 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8946 See \`config.log' for more details" "$LINENO" 5; }
8947 fi
8948
8949 ac_ext=c
8950 ac_cpp='$CPP $CPPFLAGS'
8951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8954
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8957 $as_echo_n "checking for ANSI C header files... " >&6; }
8958 if ${ac_cv_header_stdc+:} false; then :
8959   $as_echo_n "(cached) " >&6
8960 else
8961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h.  */
8963 #include <stdlib.h>
8964 #include <stdarg.h>
8965 #include <string.h>
8966 #include <float.h>
8967
8968 int
8969 main ()
8970 {
8971
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 if ac_fn_c_try_compile "$LINENO"; then :
8977   ac_cv_header_stdc=yes
8978 else
8979   ac_cv_header_stdc=no
8980 fi
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982
8983 if test $ac_cv_header_stdc = yes; then
8984   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h.  */
8987 #include <string.h>
8988
8989 _ACEOF
8990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8991   $EGREP "memchr" >/dev/null 2>&1; then :
8992
8993 else
8994   ac_cv_header_stdc=no
8995 fi
8996 rm -f conftest*
8997
8998 fi
8999
9000 if test $ac_cv_header_stdc = yes; then
9001   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h.  */
9004 #include <stdlib.h>
9005
9006 _ACEOF
9007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9008   $EGREP "free" >/dev/null 2>&1; then :
9009
9010 else
9011   ac_cv_header_stdc=no
9012 fi
9013 rm -f conftest*
9014
9015 fi
9016
9017 if test $ac_cv_header_stdc = yes; then
9018   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9019   if test "$cross_compiling" = yes; then :
9020   :
9021 else
9022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h.  */
9024 #include <ctype.h>
9025 #include <stdlib.h>
9026 #if ((' ' & 0x0FF) == 0x020)
9027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9029 #else
9030 # define ISLOWER(c) \
9031                    (('a' <= (c) && (c) <= 'i') \
9032                      || ('j' <= (c) && (c) <= 'r') \
9033                      || ('s' <= (c) && (c) <= 'z'))
9034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9035 #endif
9036
9037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9038 int
9039 main ()
9040 {
9041   int i;
9042   for (i = 0; i < 256; i++)
9043     if (XOR (islower (i), ISLOWER (i))
9044         || toupper (i) != TOUPPER (i))
9045       return 2;
9046   return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_run "$LINENO"; then :
9050
9051 else
9052   ac_cv_header_stdc=no
9053 fi
9054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9055   conftest.$ac_objext conftest.beam conftest.$ac_ext
9056 fi
9057
9058 fi
9059 fi
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9061 $as_echo "$ac_cv_header_stdc" >&6; }
9062 if test $ac_cv_header_stdc = yes; then
9063
9064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9065
9066 fi
9067
9068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9070                   inttypes.h stdint.h unistd.h
9071 do :
9072   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9074 "
9075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9076   cat >>confdefs.h <<_ACEOF
9077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078 _ACEOF
9079
9080 fi
9081
9082 done
9083
9084
9085 for ac_header in dlfcn.h
9086 do :
9087   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9088 "
9089 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9090   cat >>confdefs.h <<_ACEOF
9091 #define HAVE_DLFCN_H 1
9092 _ACEOF
9093
9094 fi
9095
9096 done
9097
9098
9099
9100
9101
9102 # Set options
9103 # Check whether --enable-static was given.
9104 if test "${enable_static+set}" = set; then :
9105   enableval=$enable_static; p=${PACKAGE-default}
9106     case $enableval in
9107     yes) enable_static=yes ;;
9108     no) enable_static=no ;;
9109     *)
9110      enable_static=no
9111       # Look at the argument we got.  We use all the common list separators.
9112       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9113       for pkg in $enableval; do
9114         IFS=$lt_save_ifs
9115         if test "X$pkg" = "X$p"; then
9116           enable_static=yes
9117         fi
9118       done
9119       IFS=$lt_save_ifs
9120       ;;
9121     esac
9122 else
9123   enable_static=no
9124 fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135         enable_dlopen=no
9136
9137
9138   enable_win32_dll=no
9139
9140
9141             # Check whether --enable-shared was given.
9142 if test "${enable_shared+set}" = set; then :
9143   enableval=$enable_shared; p=${PACKAGE-default}
9144     case $enableval in
9145     yes) enable_shared=yes ;;
9146     no) enable_shared=no ;;
9147     *)
9148       enable_shared=no
9149       # Look at the argument we got.  We use all the common list separators.
9150       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9151       for pkg in $enableval; do
9152         IFS=$lt_save_ifs
9153         if test "X$pkg" = "X$p"; then
9154           enable_shared=yes
9155         fi
9156       done
9157       IFS=$lt_save_ifs
9158       ;;
9159     esac
9160 else
9161   enable_shared=yes
9162 fi
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174 # Check whether --with-pic was given.
9175 if test "${with_pic+set}" = set; then :
9176   withval=$with_pic; lt_p=${PACKAGE-default}
9177     case $withval in
9178     yes|no) pic_mode=$withval ;;
9179     *)
9180       pic_mode=default
9181       # Look at the argument we got.  We use all the common list separators.
9182       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9183       for lt_pkg in $withval; do
9184         IFS=$lt_save_ifs
9185         if test "X$lt_pkg" = "X$lt_p"; then
9186           pic_mode=yes
9187         fi
9188       done
9189       IFS=$lt_save_ifs
9190       ;;
9191     esac
9192 else
9193   pic_mode=default
9194 fi
9195
9196
9197
9198
9199
9200
9201
9202
9203   # Check whether --enable-fast-install was given.
9204 if test "${enable_fast_install+set}" = set; then :
9205   enableval=$enable_fast_install; p=${PACKAGE-default}
9206     case $enableval in
9207     yes) enable_fast_install=yes ;;
9208     no) enable_fast_install=no ;;
9209     *)
9210       enable_fast_install=no
9211       # Look at the argument we got.  We use all the common list separators.
9212       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9213       for pkg in $enableval; do
9214         IFS=$lt_save_ifs
9215         if test "X$pkg" = "X$p"; then
9216           enable_fast_install=yes
9217         fi
9218       done
9219       IFS=$lt_save_ifs
9220       ;;
9221     esac
9222 else
9223   enable_fast_install=yes
9224 fi
9225
9226
9227
9228
9229
9230
9231
9232
9233   shared_archive_member_spec=
9234 case $host,$enable_shared in
9235 power*-*-aix[5-9]*,yes)
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9237 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9238
9239 # Check whether --with-aix-soname was given.
9240 if test "${with_aix_soname+set}" = set; then :
9241   withval=$with_aix_soname; case $withval in
9242     aix|svr4|both)
9243       ;;
9244     *)
9245       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9246       ;;
9247     esac
9248     lt_cv_with_aix_soname=$with_aix_soname
9249 else
9250   if ${lt_cv_with_aix_soname+:} false; then :
9251   $as_echo_n "(cached) " >&6
9252 else
9253   lt_cv_with_aix_soname=aix
9254 fi
9255
9256     with_aix_soname=$lt_cv_with_aix_soname
9257 fi
9258
9259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9260 $as_echo "$with_aix_soname" >&6; }
9261   if test aix != "$with_aix_soname"; then
9262     # For the AIX way of multilib, we name the shared archive member
9263     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9264     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9265     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9266     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9267     if test 64 = "${OBJECT_MODE-32}"; then
9268       shared_archive_member_spec=shr_64
9269     else
9270       shared_archive_member_spec=shr
9271     fi
9272   fi
9273   ;;
9274 *)
9275   with_aix_soname=aix
9276   ;;
9277 esac
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288 # This can be used to rebuild libtool when needed
9289 LIBTOOL_DEPS=$ltmain
9290
9291 # Always use our own libtool.
9292 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323 test -z "$LN_S" && LN_S="ln -s"
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338 if test -n "${ZSH_VERSION+set}"; then
9339    setopt NO_GLOB_SUBST
9340 fi
9341
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9343 $as_echo_n "checking for objdir... " >&6; }
9344 if ${lt_cv_objdir+:} false; then :
9345   $as_echo_n "(cached) " >&6
9346 else
9347   rm -f .libs 2>/dev/null
9348 mkdir .libs 2>/dev/null
9349 if test -d .libs; then
9350   lt_cv_objdir=.libs
9351 else
9352   # MS-DOS does not allow filenames that begin with a dot.
9353   lt_cv_objdir=_libs
9354 fi
9355 rmdir .libs 2>/dev/null
9356 fi
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9358 $as_echo "$lt_cv_objdir" >&6; }
9359 objdir=$lt_cv_objdir
9360
9361
9362
9363
9364
9365 cat >>confdefs.h <<_ACEOF
9366 #define LT_OBJDIR "$lt_cv_objdir/"
9367 _ACEOF
9368
9369
9370
9371
9372 case $host_os in
9373 aix3*)
9374   # AIX sometimes has problems with the GCC collect2 program.  For some
9375   # reason, if we set the COLLECT_NAMES environment variable, the problems
9376   # vanish in a puff of smoke.
9377   if test set != "${COLLECT_NAMES+set}"; then
9378     COLLECT_NAMES=
9379     export COLLECT_NAMES
9380   fi
9381   ;;
9382 esac
9383
9384 # Global variables:
9385 ofile=libtool
9386 can_build_shared=yes
9387
9388 # All known linkers require a '.a' archive for static linking (except MSVC,
9389 # which needs '.lib').
9390 libext=a
9391
9392 with_gnu_ld=$lt_cv_prog_gnu_ld
9393
9394 old_CC=$CC
9395 old_CFLAGS=$CFLAGS
9396
9397 # Set sane defaults for various variables
9398 test -z "$CC" && CC=cc
9399 test -z "$LTCC" && LTCC=$CC
9400 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9401 test -z "$LD" && LD=ld
9402 test -z "$ac_objext" && ac_objext=o
9403
9404 func_cc_basename $compiler
9405 cc_basename=$func_cc_basename_result
9406
9407
9408 # Only perform the check for file, if the check method requires it
9409 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9410 case $deplibs_check_method in
9411 file_magic*)
9412   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9414 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9415 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9416   $as_echo_n "(cached) " >&6
9417 else
9418   case $MAGIC_CMD in
9419 [\\/*] |  ?:[\\/]*)
9420   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9421   ;;
9422 *)
9423   lt_save_MAGIC_CMD=$MAGIC_CMD
9424   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9425   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9426   for ac_dir in $ac_dummy; do
9427     IFS=$lt_save_ifs
9428     test -z "$ac_dir" && ac_dir=.
9429     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9430       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9431       if test -n "$file_magic_test_file"; then
9432         case $deplibs_check_method in
9433         "file_magic "*)
9434           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9435           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9436           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9437             $EGREP "$file_magic_regex" > /dev/null; then
9438             :
9439           else
9440             cat <<_LT_EOF 1>&2
9441
9442 *** Warning: the command libtool uses to detect shared libraries,
9443 *** $file_magic_cmd, produces output that libtool cannot recognize.
9444 *** The result is that libtool may fail to recognize shared libraries
9445 *** as such.  This will affect the creation of libtool libraries that
9446 *** depend on shared libraries, but programs linked with such libtool
9447 *** libraries will work regardless of this problem.  Nevertheless, you
9448 *** may want to report the problem to your system manager and/or to
9449 *** bug-libtool@gnu.org
9450
9451 _LT_EOF
9452           fi ;;
9453         esac
9454       fi
9455       break
9456     fi
9457   done
9458   IFS=$lt_save_ifs
9459   MAGIC_CMD=$lt_save_MAGIC_CMD
9460   ;;
9461 esac
9462 fi
9463
9464 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9465 if test -n "$MAGIC_CMD"; then
9466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9467 $as_echo "$MAGIC_CMD" >&6; }
9468 else
9469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9471 fi
9472
9473
9474
9475
9476
9477 if test -z "$lt_cv_path_MAGIC_CMD"; then
9478   if test -n "$ac_tool_prefix"; then
9479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9480 $as_echo_n "checking for file... " >&6; }
9481 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9482   $as_echo_n "(cached) " >&6
9483 else
9484   case $MAGIC_CMD in
9485 [\\/*] |  ?:[\\/]*)
9486   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9487   ;;
9488 *)
9489   lt_save_MAGIC_CMD=$MAGIC_CMD
9490   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9491   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9492   for ac_dir in $ac_dummy; do
9493     IFS=$lt_save_ifs
9494     test -z "$ac_dir" && ac_dir=.
9495     if test -f "$ac_dir/file"; then
9496       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9497       if test -n "$file_magic_test_file"; then
9498         case $deplibs_check_method in
9499         "file_magic "*)
9500           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9501           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9502           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9503             $EGREP "$file_magic_regex" > /dev/null; then
9504             :
9505           else
9506             cat <<_LT_EOF 1>&2
9507
9508 *** Warning: the command libtool uses to detect shared libraries,
9509 *** $file_magic_cmd, produces output that libtool cannot recognize.
9510 *** The result is that libtool may fail to recognize shared libraries
9511 *** as such.  This will affect the creation of libtool libraries that
9512 *** depend on shared libraries, but programs linked with such libtool
9513 *** libraries will work regardless of this problem.  Nevertheless, you
9514 *** may want to report the problem to your system manager and/or to
9515 *** bug-libtool@gnu.org
9516
9517 _LT_EOF
9518           fi ;;
9519         esac
9520       fi
9521       break
9522     fi
9523   done
9524   IFS=$lt_save_ifs
9525   MAGIC_CMD=$lt_save_MAGIC_CMD
9526   ;;
9527 esac
9528 fi
9529
9530 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9531 if test -n "$MAGIC_CMD"; then
9532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9533 $as_echo "$MAGIC_CMD" >&6; }
9534 else
9535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9537 fi
9538
9539
9540   else
9541     MAGIC_CMD=:
9542   fi
9543 fi
9544
9545   fi
9546   ;;
9547 esac
9548
9549 # Use C for the default configuration in the libtool script
9550
9551 lt_save_CC=$CC
9552 ac_ext=c
9553 ac_cpp='$CPP $CPPFLAGS'
9554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9557
9558
9559 # Source file extension for C test sources.
9560 ac_ext=c
9561
9562 # Object file extension for compiled C test sources.
9563 objext=o
9564 objext=$objext
9565
9566 # Code to be used in simple compile tests
9567 lt_simple_compile_test_code="int some_variable = 0;"
9568
9569 # Code to be used in simple link tests
9570 lt_simple_link_test_code='int main(){return(0);}'
9571
9572
9573
9574
9575
9576
9577
9578 # If no C compiler was specified, use CC.
9579 LTCC=${LTCC-"$CC"}
9580
9581 # If no C compiler flags were specified, use CFLAGS.
9582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9583
9584 # Allow CC to be a program name with arguments.
9585 compiler=$CC
9586
9587 # Save the default compiler, since it gets overwritten when the other
9588 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9589 compiler_DEFAULT=$CC
9590
9591 # save warnings/boilerplate of simple test code
9592 ac_outfile=conftest.$ac_objext
9593 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9595 _lt_compiler_boilerplate=`cat conftest.err`
9596 $RM conftest*
9597
9598 ac_outfile=conftest.$ac_objext
9599 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9601 _lt_linker_boilerplate=`cat conftest.err`
9602 $RM -r conftest*
9603
9604
9605 ## CAVEAT EMPTOR:
9606 ## There is no encapsulation within the following macros, do not change
9607 ## the running order or otherwise move them around unless you know exactly
9608 ## what you are doing...
9609 if test -n "$compiler"; then
9610
9611 lt_prog_compiler_no_builtin_flag=
9612
9613 if test yes = "$GCC"; then
9614   case $cc_basename in
9615   nvcc*)
9616     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9617   *)
9618     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9619   esac
9620
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9622 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9623 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9624   $as_echo_n "(cached) " >&6
9625 else
9626   lt_cv_prog_compiler_rtti_exceptions=no
9627    ac_outfile=conftest.$ac_objext
9628    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9629    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9630    # Insert the option either (1) after the last *FLAGS variable, or
9631    # (2) before a word containing "conftest.", or (3) at the end.
9632    # Note that $ac_compile itself does not contain backslashes and begins
9633    # with a dollar sign (not a hyphen), so the echo should work correctly.
9634    # The option is referenced via a variable to avoid confusing sed.
9635    lt_compile=`echo "$ac_compile" | $SED \
9636    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9637    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9638    -e 's:$: $lt_compiler_flag:'`
9639    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9640    (eval "$lt_compile" 2>conftest.err)
9641    ac_status=$?
9642    cat conftest.err >&5
9643    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644    if (exit $ac_status) && test -s "$ac_outfile"; then
9645      # The compiler can only warn and ignore the option if not recognized
9646      # So say no if there are warnings other than the usual output.
9647      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9648      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9649      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9650        lt_cv_prog_compiler_rtti_exceptions=yes
9651      fi
9652    fi
9653    $RM conftest*
9654
9655 fi
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9657 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9658
9659 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9660     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9661 else
9662     :
9663 fi
9664
9665 fi
9666
9667
9668
9669
9670
9671
9672   lt_prog_compiler_wl=
9673 lt_prog_compiler_pic=
9674 lt_prog_compiler_static=
9675
9676
9677   if test yes = "$GCC"; then
9678     lt_prog_compiler_wl='-Wl,'
9679     lt_prog_compiler_static='-static'
9680
9681     case $host_os in
9682       aix*)
9683       # All AIX code is PIC.
9684       if test ia64 = "$host_cpu"; then
9685         # AIX 5 now supports IA64 processor
9686         lt_prog_compiler_static='-Bstatic'
9687       fi
9688       lt_prog_compiler_pic='-fPIC'
9689       ;;
9690
9691     amigaos*)
9692       case $host_cpu in
9693       powerpc)
9694             # see comment about AmigaOS4 .so support
9695             lt_prog_compiler_pic='-fPIC'
9696         ;;
9697       m68k)
9698             # FIXME: we need at least 68020 code to build shared libraries, but
9699             # adding the '-m68020' flag to GCC prevents building anything better,
9700             # like '-m68040'.
9701             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9702         ;;
9703       esac
9704       ;;
9705
9706     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9707       # PIC is the default for these OSes.
9708       ;;
9709
9710     mingw* | cygwin* | pw32* | os2* | cegcc*)
9711       # This hack is so that the source file can tell whether it is being
9712       # built for inclusion in a dll (and should export symbols for example).
9713       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9714       # (--disable-auto-import) libraries
9715       lt_prog_compiler_pic='-DDLL_EXPORT'
9716       case $host_os in
9717       os2*)
9718         lt_prog_compiler_static='$wl-static'
9719         ;;
9720       esac
9721       ;;
9722
9723     darwin* | rhapsody*)
9724       # PIC is the default on this platform
9725       # Common symbols not allowed in MH_DYLIB files
9726       lt_prog_compiler_pic='-fno-common'
9727       ;;
9728
9729     haiku*)
9730       # PIC is the default for Haiku.
9731       # The "-static" flag exists, but is broken.
9732       lt_prog_compiler_static=
9733       ;;
9734
9735     hpux*)
9736       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9737       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9738       # sets the default TLS model and affects inlining.
9739       case $host_cpu in
9740       hppa*64*)
9741         # +Z the default
9742         ;;
9743       *)
9744         lt_prog_compiler_pic='-fPIC'
9745         ;;
9746       esac
9747       ;;
9748
9749     interix[3-9]*)
9750       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9751       # Instead, we relocate shared libraries at runtime.
9752       ;;
9753
9754     msdosdjgpp*)
9755       # Just because we use GCC doesn't mean we suddenly get shared libraries
9756       # on systems that don't support them.
9757       lt_prog_compiler_can_build_shared=no
9758       enable_shared=no
9759       ;;
9760
9761     *nto* | *qnx*)
9762       # QNX uses GNU C++, but need to define -shared option too, otherwise
9763       # it will coredump.
9764       lt_prog_compiler_pic='-fPIC -shared'
9765       ;;
9766
9767     sysv4*MP*)
9768       if test -d /usr/nec; then
9769         lt_prog_compiler_pic=-Kconform_pic
9770       fi
9771       ;;
9772
9773     *)
9774       lt_prog_compiler_pic='-fPIC'
9775       ;;
9776     esac
9777
9778     case $cc_basename in
9779     nvcc*) # Cuda Compiler Driver 2.2
9780       lt_prog_compiler_wl='-Xlinker '
9781       if test -n "$lt_prog_compiler_pic"; then
9782         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9783       fi
9784       ;;
9785     esac
9786   else
9787     # PORTME Check for flag to pass linker flags through the system compiler.
9788     case $host_os in
9789     aix*)
9790       lt_prog_compiler_wl='-Wl,'
9791       if test ia64 = "$host_cpu"; then
9792         # AIX 5 now supports IA64 processor
9793         lt_prog_compiler_static='-Bstatic'
9794       else
9795         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9796       fi
9797       ;;
9798
9799     darwin* | rhapsody*)
9800       # PIC is the default on this platform
9801       # Common symbols not allowed in MH_DYLIB files
9802       lt_prog_compiler_pic='-fno-common'
9803       case $cc_basename in
9804       nagfor*)
9805         # NAG Fortran compiler
9806         lt_prog_compiler_wl='-Wl,-Wl,,'
9807         lt_prog_compiler_pic='-PIC'
9808         lt_prog_compiler_static='-Bstatic'
9809         ;;
9810       esac
9811       ;;
9812
9813     mingw* | cygwin* | pw32* | os2* | cegcc*)
9814       # This hack is so that the source file can tell whether it is being
9815       # built for inclusion in a dll (and should export symbols for example).
9816       lt_prog_compiler_pic='-DDLL_EXPORT'
9817       case $host_os in
9818       os2*)
9819         lt_prog_compiler_static='$wl-static'
9820         ;;
9821       esac
9822       ;;
9823
9824     hpux9* | hpux10* | hpux11*)
9825       lt_prog_compiler_wl='-Wl,'
9826       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9827       # not for PA HP-UX.
9828       case $host_cpu in
9829       hppa*64*|ia64*)
9830         # +Z the default
9831         ;;
9832       *)
9833         lt_prog_compiler_pic='+Z'
9834         ;;
9835       esac
9836       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9837       lt_prog_compiler_static='$wl-a ${wl}archive'
9838       ;;
9839
9840     irix5* | irix6* | nonstopux*)
9841       lt_prog_compiler_wl='-Wl,'
9842       # PIC (with -KPIC) is the default.
9843       lt_prog_compiler_static='-non_shared'
9844       ;;
9845
9846     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9847       case $cc_basename in
9848       # old Intel for x86_64, which still supported -KPIC.
9849       ecc*)
9850         lt_prog_compiler_wl='-Wl,'
9851         lt_prog_compiler_pic='-KPIC'
9852         lt_prog_compiler_static='-static'
9853         ;;
9854       # flang / f18. f95 an alias for gfortran or flang on Debian
9855       flang* | f18* | f95*)
9856         lt_prog_compiler_wl='-Wl,'
9857         lt_prog_compiler_pic='-fPIC'
9858         lt_prog_compiler_static='-static'
9859         ;;
9860       # icc used to be incompatible with GCC.
9861       # ICC 10 doesn't accept -KPIC any more.
9862       icc* | ifort*)
9863         lt_prog_compiler_wl='-Wl,'
9864         lt_prog_compiler_pic='-fPIC'
9865         lt_prog_compiler_static='-static'
9866         ;;
9867       # Lahey Fortran 8.1.
9868       lf95*)
9869         lt_prog_compiler_wl='-Wl,'
9870         lt_prog_compiler_pic='--shared'
9871         lt_prog_compiler_static='--static'
9872         ;;
9873       nagfor*)
9874         # NAG Fortran compiler
9875         lt_prog_compiler_wl='-Wl,-Wl,,'
9876         lt_prog_compiler_pic='-PIC'
9877         lt_prog_compiler_static='-Bstatic'
9878         ;;
9879       tcc*)
9880         # Fabrice Bellard et al's Tiny C Compiler
9881         lt_prog_compiler_wl='-Wl,'
9882         lt_prog_compiler_pic='-fPIC'
9883         lt_prog_compiler_static='-static'
9884         ;;
9885       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9886         # Portland Group compilers (*not* the Pentium gcc compiler,
9887         # which looks to be a dead project)
9888         lt_prog_compiler_wl='-Wl,'
9889         lt_prog_compiler_pic='-fpic'
9890         lt_prog_compiler_static='-Bstatic'
9891         ;;
9892       ccc*)
9893         lt_prog_compiler_wl='-Wl,'
9894         # All Alpha code is PIC.
9895         lt_prog_compiler_static='-non_shared'
9896         ;;
9897       xl* | bgxl* | bgf* | mpixl*)
9898         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9899         lt_prog_compiler_wl='-Wl,'
9900         lt_prog_compiler_pic='-qpic'
9901         lt_prog_compiler_static='-qstaticlink'
9902         ;;
9903       *)
9904         case `$CC -V 2>&1 | sed 5q` in
9905         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9906           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9907           lt_prog_compiler_pic='-KPIC'
9908           lt_prog_compiler_static='-Bstatic'
9909           lt_prog_compiler_wl=''
9910           ;;
9911         *Sun\ F* | *Sun*Fortran*)
9912           lt_prog_compiler_pic='-KPIC'
9913           lt_prog_compiler_static='-Bstatic'
9914           lt_prog_compiler_wl='-Qoption ld '
9915           ;;
9916         *Sun\ C*)
9917           # Sun C 5.9
9918           lt_prog_compiler_pic='-KPIC'
9919           lt_prog_compiler_static='-Bstatic'
9920           lt_prog_compiler_wl='-Wl,'
9921           ;;
9922         *Intel*\ [CF]*Compiler*)
9923           lt_prog_compiler_wl='-Wl,'
9924           lt_prog_compiler_pic='-fPIC'
9925           lt_prog_compiler_static='-static'
9926           ;;
9927         *Portland\ Group*)
9928           lt_prog_compiler_wl='-Wl,'
9929           lt_prog_compiler_pic='-fpic'
9930           lt_prog_compiler_static='-Bstatic'
9931           ;;
9932         esac
9933         ;;
9934       esac
9935       ;;
9936
9937     newsos6)
9938       lt_prog_compiler_pic='-KPIC'
9939       lt_prog_compiler_static='-Bstatic'
9940       ;;
9941
9942     *nto* | *qnx*)
9943       # QNX uses GNU C++, but need to define -shared option too, otherwise
9944       # it will coredump.
9945       lt_prog_compiler_pic='-fPIC -shared'
9946       ;;
9947
9948     osf3* | osf4* | osf5*)
9949       lt_prog_compiler_wl='-Wl,'
9950       # All OSF/1 code is PIC.
9951       lt_prog_compiler_static='-non_shared'
9952       ;;
9953
9954     rdos*)
9955       lt_prog_compiler_static='-non_shared'
9956       ;;
9957
9958     solaris*)
9959       lt_prog_compiler_pic='-KPIC'
9960       lt_prog_compiler_static='-Bstatic'
9961       case $cc_basename in
9962       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9963         lt_prog_compiler_wl='-Qoption ld ';;
9964       *)
9965         lt_prog_compiler_wl='-Wl,';;
9966       esac
9967       ;;
9968
9969     sunos4*)
9970       lt_prog_compiler_wl='-Qoption ld '
9971       lt_prog_compiler_pic='-PIC'
9972       lt_prog_compiler_static='-Bstatic'
9973       ;;
9974
9975     sysv4 | sysv4.2uw2* | sysv4.3*)
9976       lt_prog_compiler_wl='-Wl,'
9977       lt_prog_compiler_pic='-KPIC'
9978       lt_prog_compiler_static='-Bstatic'
9979       ;;
9980
9981     sysv4*MP*)
9982       if test -d /usr/nec; then
9983         lt_prog_compiler_pic='-Kconform_pic'
9984         lt_prog_compiler_static='-Bstatic'
9985       fi
9986       ;;
9987
9988     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9989       lt_prog_compiler_wl='-Wl,'
9990       lt_prog_compiler_pic='-KPIC'
9991       lt_prog_compiler_static='-Bstatic'
9992       ;;
9993
9994     unicos*)
9995       lt_prog_compiler_wl='-Wl,'
9996       lt_prog_compiler_can_build_shared=no
9997       ;;
9998
9999     uts4*)
10000       lt_prog_compiler_pic='-pic'
10001       lt_prog_compiler_static='-Bstatic'
10002       ;;
10003
10004     *)
10005       lt_prog_compiler_can_build_shared=no
10006       ;;
10007     esac
10008   fi
10009
10010 case $host_os in
10011   # For platforms that do not support PIC, -DPIC is meaningless:
10012   *djgpp*)
10013     lt_prog_compiler_pic=
10014     ;;
10015   *)
10016     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10017     ;;
10018 esac
10019
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10021 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10022 if ${lt_cv_prog_compiler_pic+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10028 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10029 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10030
10031 #
10032 # Check to make sure the PIC flag actually works.
10033 #
10034 if test -n "$lt_prog_compiler_pic"; then
10035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10036 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10037 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10038   $as_echo_n "(cached) " >&6
10039 else
10040   lt_cv_prog_compiler_pic_works=no
10041    ac_outfile=conftest.$ac_objext
10042    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10043    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10044    # Insert the option either (1) after the last *FLAGS variable, or
10045    # (2) before a word containing "conftest.", or (3) at the end.
10046    # Note that $ac_compile itself does not contain backslashes and begins
10047    # with a dollar sign (not a hyphen), so the echo should work correctly.
10048    # The option is referenced via a variable to avoid confusing sed.
10049    lt_compile=`echo "$ac_compile" | $SED \
10050    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10052    -e 's:$: $lt_compiler_flag:'`
10053    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10054    (eval "$lt_compile" 2>conftest.err)
10055    ac_status=$?
10056    cat conftest.err >&5
10057    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058    if (exit $ac_status) && test -s "$ac_outfile"; then
10059      # The compiler can only warn and ignore the option if not recognized
10060      # So say no if there are warnings other than the usual output.
10061      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10062      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10063      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10064        lt_cv_prog_compiler_pic_works=yes
10065      fi
10066    fi
10067    $RM conftest*
10068
10069 fi
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10071 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10072
10073 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10074     case $lt_prog_compiler_pic in
10075      "" | " "*) ;;
10076      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10077      esac
10078 else
10079     lt_prog_compiler_pic=
10080      lt_prog_compiler_can_build_shared=no
10081 fi
10082
10083 fi
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095 #
10096 # Check to make sure the static flag actually works.
10097 #
10098 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10100 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10101 if ${lt_cv_prog_compiler_static_works+:} false; then :
10102   $as_echo_n "(cached) " >&6
10103 else
10104   lt_cv_prog_compiler_static_works=no
10105    save_LDFLAGS=$LDFLAGS
10106    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10107    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10108    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10109      # The linker can only warn and ignore the option if not recognized
10110      # So say no if there are warnings
10111      if test -s conftest.err; then
10112        # Append any errors to the config.log.
10113        cat conftest.err 1>&5
10114        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10115        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10116        if diff conftest.exp conftest.er2 >/dev/null; then
10117          lt_cv_prog_compiler_static_works=yes
10118        fi
10119      else
10120        lt_cv_prog_compiler_static_works=yes
10121      fi
10122    fi
10123    $RM -r conftest*
10124    LDFLAGS=$save_LDFLAGS
10125
10126 fi
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10128 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10129
10130 if test yes = "$lt_cv_prog_compiler_static_works"; then
10131     :
10132 else
10133     lt_prog_compiler_static=
10134 fi
10135
10136
10137
10138
10139
10140
10141
10142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10144 if ${lt_cv_prog_compiler_c_o+:} false; then :
10145   $as_echo_n "(cached) " >&6
10146 else
10147   lt_cv_prog_compiler_c_o=no
10148    $RM -r conftest 2>/dev/null
10149    mkdir conftest
10150    cd conftest
10151    mkdir out
10152    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10153
10154    lt_compiler_flag="-o out/conftest2.$ac_objext"
10155    # Insert the option either (1) after the last *FLAGS variable, or
10156    # (2) before a word containing "conftest.", or (3) at the end.
10157    # Note that $ac_compile itself does not contain backslashes and begins
10158    # with a dollar sign (not a hyphen), so the echo should work correctly.
10159    lt_compile=`echo "$ac_compile" | $SED \
10160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10162    -e 's:$: $lt_compiler_flag:'`
10163    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10164    (eval "$lt_compile" 2>out/conftest.err)
10165    ac_status=$?
10166    cat out/conftest.err >&5
10167    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10169    then
10170      # The compiler can only warn and ignore the option if not recognized
10171      # So say no if there are warnings
10172      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10173      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10174      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10175        lt_cv_prog_compiler_c_o=yes
10176      fi
10177    fi
10178    chmod u+w . 2>&5
10179    $RM conftest*
10180    # SGI C++ compiler will create directory out/ii_files/ for
10181    # template instantiation
10182    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10183    $RM out/* && rmdir out
10184    cd ..
10185    $RM -r conftest
10186    $RM conftest*
10187
10188 fi
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10190 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10191
10192
10193
10194
10195
10196
10197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10198 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10199 if ${lt_cv_prog_compiler_c_o+:} false; then :
10200   $as_echo_n "(cached) " >&6
10201 else
10202   lt_cv_prog_compiler_c_o=no
10203    $RM -r conftest 2>/dev/null
10204    mkdir conftest
10205    cd conftest
10206    mkdir out
10207    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10208
10209    lt_compiler_flag="-o out/conftest2.$ac_objext"
10210    # Insert the option either (1) after the last *FLAGS variable, or
10211    # (2) before a word containing "conftest.", or (3) at the end.
10212    # Note that $ac_compile itself does not contain backslashes and begins
10213    # with a dollar sign (not a hyphen), so the echo should work correctly.
10214    lt_compile=`echo "$ac_compile" | $SED \
10215    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10216    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10217    -e 's:$: $lt_compiler_flag:'`
10218    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10219    (eval "$lt_compile" 2>out/conftest.err)
10220    ac_status=$?
10221    cat out/conftest.err >&5
10222    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10224    then
10225      # The compiler can only warn and ignore the option if not recognized
10226      # So say no if there are warnings
10227      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10228      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10229      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10230        lt_cv_prog_compiler_c_o=yes
10231      fi
10232    fi
10233    chmod u+w . 2>&5
10234    $RM conftest*
10235    # SGI C++ compiler will create directory out/ii_files/ for
10236    # template instantiation
10237    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10238    $RM out/* && rmdir out
10239    cd ..
10240    $RM -r conftest
10241    $RM conftest*
10242
10243 fi
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10245 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10246
10247
10248
10249
10250 hard_links=nottested
10251 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10252   # do not overwrite the value of need_locks provided by the user
10253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10254 $as_echo_n "checking if we can lock with hard links... " >&6; }
10255   hard_links=yes
10256   $RM conftest*
10257   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10258   touch conftest.a
10259   ln conftest.a conftest.b 2>&5 || hard_links=no
10260   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10262 $as_echo "$hard_links" >&6; }
10263   if test no = "$hard_links"; then
10264     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10265 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10266     need_locks=warn
10267   fi
10268 else
10269   need_locks=no
10270 fi
10271
10272
10273
10274
10275
10276
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10278 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10279
10280   runpath_var=
10281   allow_undefined_flag=
10282   always_export_symbols=no
10283   archive_cmds=
10284   archive_expsym_cmds=
10285   compiler_needs_object=no
10286   enable_shared_with_static_runtimes=no
10287   export_dynamic_flag_spec=
10288   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10289   hardcode_automatic=no
10290   hardcode_direct=no
10291   hardcode_direct_absolute=no
10292   hardcode_libdir_flag_spec=
10293   hardcode_libdir_separator=
10294   hardcode_minus_L=no
10295   hardcode_shlibpath_var=unsupported
10296   inherit_rpath=no
10297   link_all_deplibs=unknown
10298   module_cmds=
10299   module_expsym_cmds=
10300   old_archive_from_new_cmds=
10301   old_archive_from_expsyms_cmds=
10302   thread_safe_flag_spec=
10303   whole_archive_flag_spec=
10304   # include_expsyms should be a list of space-separated symbols to be *always*
10305   # included in the symbol list
10306   include_expsyms=
10307   # exclude_expsyms can be an extended regexp of symbols to exclude
10308   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10309   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10310   # as well as any symbol that contains 'd'.
10311   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10312   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10313   # platforms (ab)use it in PIC code, but their linkers get confused if
10314   # the symbol is explicitly referenced.  Since portable code cannot
10315   # rely on this symbol name, it's probably fine to never include it in
10316   # preloaded symbol tables.
10317   # Exclude shared library initialization/finalization symbols.
10318   extract_expsyms_cmds=
10319
10320   case $host_os in
10321   cygwin* | mingw* | pw32* | cegcc*)
10322     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10323     # When not using gcc, we currently assume that we are using
10324     # Microsoft Visual C++.
10325     if test yes != "$GCC"; then
10326       with_gnu_ld=no
10327     fi
10328     ;;
10329   interix*)
10330     # we just hope/assume this is gcc and not c89 (= MSVC++)
10331     with_gnu_ld=yes
10332     ;;
10333   openbsd* | bitrig*)
10334     with_gnu_ld=no
10335     ;;
10336   linux* | k*bsd*-gnu | gnu*)
10337     link_all_deplibs=no
10338     ;;
10339   esac
10340
10341   ld_shlibs=yes
10342
10343   # On some targets, GNU ld is compatible enough with the native linker
10344   # that we're better off using the native interface for both.
10345   lt_use_gnu_ld_interface=no
10346   if test yes = "$with_gnu_ld"; then
10347     case $host_os in
10348       aix*)
10349         # The AIX port of GNU ld has always aspired to compatibility
10350         # with the native linker.  However, as the warning in the GNU ld
10351         # block says, versions before 2.19.5* couldn't really create working
10352         # shared libraries, regardless of the interface used.
10353         case `$LD -v 2>&1` in
10354           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10355           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10356           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10357           *)
10358             lt_use_gnu_ld_interface=yes
10359             ;;
10360         esac
10361         ;;
10362       *)
10363         lt_use_gnu_ld_interface=yes
10364         ;;
10365     esac
10366   fi
10367
10368   if test yes = "$lt_use_gnu_ld_interface"; then
10369     # If archive_cmds runs LD, not CC, wlarc should be empty
10370     wlarc='$wl'
10371
10372     # Set some defaults for GNU ld with shared library support. These
10373     # are reset later if shared libraries are not supported. Putting them
10374     # here allows them to be overridden if necessary.
10375     runpath_var=LD_RUN_PATH
10376     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10377     export_dynamic_flag_spec='$wl--export-dynamic'
10378     # ancient GNU ld didn't support --whole-archive et. al.
10379     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10380       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10381     else
10382       whole_archive_flag_spec=
10383     fi
10384     supports_anon_versioning=no
10385     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10386       *GNU\ gold*) supports_anon_versioning=yes ;;
10387       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10388       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10389       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10390       *\ 2.11.*) ;; # other 2.11 versions
10391       *) supports_anon_versioning=yes ;;
10392     esac
10393
10394     # See if GNU ld supports shared libraries.
10395     case $host_os in
10396     aix[3-9]*)
10397       # On AIX/PPC, the GNU linker is very broken
10398       if test ia64 != "$host_cpu"; then
10399         ld_shlibs=no
10400         cat <<_LT_EOF 1>&2
10401
10402 *** Warning: the GNU linker, at least up to release 2.19, is reported
10403 *** to be unable to reliably create shared libraries on AIX.
10404 *** Therefore, libtool is disabling shared libraries support.  If you
10405 *** really care for shared libraries, you may want to install binutils
10406 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10407 *** You will then need to restart the configuration process.
10408
10409 _LT_EOF
10410       fi
10411       ;;
10412
10413     amigaos*)
10414       case $host_cpu in
10415       powerpc)
10416             # see comment about AmigaOS4 .so support
10417             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10418             archive_expsym_cmds=''
10419         ;;
10420       m68k)
10421             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)'
10422             hardcode_libdir_flag_spec='-L$libdir'
10423             hardcode_minus_L=yes
10424         ;;
10425       esac
10426       ;;
10427
10428     beos*)
10429       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10430         allow_undefined_flag=unsupported
10431         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10432         # support --undefined.  This deserves some investigation.  FIXME
10433         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10434       else
10435         ld_shlibs=no
10436       fi
10437       ;;
10438
10439     cygwin* | mingw* | pw32* | cegcc*)
10440       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10441       # as there is no search path for DLLs.
10442       hardcode_libdir_flag_spec='-L$libdir'
10443       export_dynamic_flag_spec='$wl--export-all-symbols'
10444       allow_undefined_flag=unsupported
10445       always_export_symbols=no
10446       enable_shared_with_static_runtimes=yes
10447       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'
10448       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10449
10450       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10451         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10452         # If the export-symbols file already is a .def file, use it as
10453         # is; otherwise, prepend EXPORTS...
10454         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10455           cp $export_symbols $output_objdir/$soname.def;
10456         else
10457           echo EXPORTS > $output_objdir/$soname.def;
10458           cat $export_symbols >> $output_objdir/$soname.def;
10459         fi~
10460         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10461       else
10462         ld_shlibs=no
10463       fi
10464       ;;
10465
10466     haiku*)
10467       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10468       link_all_deplibs=yes
10469       ;;
10470
10471     os2*)
10472       hardcode_libdir_flag_spec='-L$libdir'
10473       hardcode_minus_L=yes
10474       allow_undefined_flag=unsupported
10475       shrext_cmds=.dll
10476       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10477         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10478         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10479         $ECHO EXPORTS >> $output_objdir/$libname.def~
10480         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10481         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10482         emximp -o $lib $output_objdir/$libname.def'
10483       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10484         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10485         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10486         $ECHO EXPORTS >> $output_objdir/$libname.def~
10487         prefix_cmds="$SED"~
10488         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10489           prefix_cmds="$prefix_cmds -e 1d";
10490         fi~
10491         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10492         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10493         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10494         emximp -o $lib $output_objdir/$libname.def'
10495       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10496       enable_shared_with_static_runtimes=yes
10497       ;;
10498
10499     interix[3-9]*)
10500       hardcode_direct=no
10501       hardcode_shlibpath_var=no
10502       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10503       export_dynamic_flag_spec='$wl-E'
10504       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10505       # Instead, shared libraries are loaded at an image base (0x10000000 by
10506       # default) and relocated if they conflict, which is a slow very memory
10507       # consuming and fragmenting process.  To avoid this, we pick a random,
10508       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10509       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10510       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10511       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'
10512       ;;
10513
10514     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10515       tmp_diet=no
10516       if test linux-dietlibc = "$host_os"; then
10517         case $cc_basename in
10518           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10519         esac
10520       fi
10521       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10522          && test no = "$tmp_diet"
10523       then
10524         tmp_addflag=' $pic_flag'
10525         tmp_sharedflag='-shared'
10526         case $cc_basename,$host_cpu in
10527         pgcc*)                          # Portland Group C compiler
10528           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'
10529           tmp_addflag=' $pic_flag'
10530           ;;
10531         pgf77* | pgf90* | pgf95* | pgfortran*)
10532                                         # Portland Group f77 and f90 compilers
10533           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'
10534           tmp_addflag=' $pic_flag -Mnomain' ;;
10535         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10536           tmp_addflag=' -i_dynamic' ;;
10537         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10538           tmp_addflag=' -i_dynamic -nofor_main' ;;
10539         ifc* | ifort*)                  # Intel Fortran compiler
10540           tmp_addflag=' -nofor_main' ;;
10541         lf95*)                          # Lahey Fortran 8.1
10542           whole_archive_flag_spec=
10543           tmp_sharedflag='--shared' ;;
10544         nagfor*)                        # NAGFOR 5.3
10545           tmp_sharedflag='-Wl,-shared' ;;
10546         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10547           tmp_sharedflag='-qmkshrobj'
10548           tmp_addflag= ;;
10549         nvcc*)  # Cuda Compiler Driver 2.2
10550           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'
10551           compiler_needs_object=yes
10552           ;;
10553         esac
10554         case `$CC -V 2>&1 | sed 5q` in
10555         *Sun\ C*)                       # Sun C 5.9
10556           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'
10557           compiler_needs_object=yes
10558           tmp_sharedflag='-G' ;;
10559         *Sun\ F*)                       # Sun Fortran 8.3
10560           tmp_sharedflag='-G' ;;
10561         esac
10562         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10563
10564         if test yes = "$supports_anon_versioning"; then
10565           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10566             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10567             echo "local: *; };" >> $output_objdir/$libname.ver~
10568             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10569         fi
10570
10571         case $cc_basename in
10572         tcc*)
10573           export_dynamic_flag_spec='-rdynamic'
10574           ;;
10575         xlf* | bgf* | bgxlf* | mpixlf*)
10576           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10577           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10578           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10579           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10580           if test yes = "$supports_anon_versioning"; then
10581             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10582               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10583               echo "local: *; };" >> $output_objdir/$libname.ver~
10584               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10585           fi
10586           ;;
10587         esac
10588       else
10589         ld_shlibs=no
10590       fi
10591       ;;
10592
10593     netbsd* | netbsdelf*-gnu)
10594       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10595         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10596         wlarc=
10597       else
10598         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10599         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10600       fi
10601       ;;
10602
10603     solaris*)
10604       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10605         ld_shlibs=no
10606         cat <<_LT_EOF 1>&2
10607
10608 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10609 *** create shared libraries on Solaris systems.  Therefore, libtool
10610 *** is disabling shared libraries support.  We urge you to upgrade GNU
10611 *** binutils to release 2.9.1 or newer.  Another option is to modify
10612 *** your PATH or compiler configuration so that the native linker is
10613 *** used, and then restart.
10614
10615 _LT_EOF
10616       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10617         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10618         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10619       else
10620         ld_shlibs=no
10621       fi
10622       ;;
10623
10624     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10625       case `$LD -v 2>&1` in
10626         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10627         ld_shlibs=no
10628         cat <<_LT_EOF 1>&2
10629
10630 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10631 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10632 *** is disabling shared libraries support.  We urge you to upgrade GNU
10633 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10634 *** your PATH or compiler configuration so that the native linker is
10635 *** used, and then restart.
10636
10637 _LT_EOF
10638         ;;
10639         *)
10640           # For security reasons, it is highly recommended that you always
10641           # use absolute paths for naming shared libraries, and exclude the
10642           # DT_RUNPATH tag from executables and libraries.  But doing so
10643           # requires that you compile everything twice, which is a pain.
10644           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10645             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10646             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10647             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10648           else
10649             ld_shlibs=no
10650           fi
10651         ;;
10652       esac
10653       ;;
10654
10655     sunos4*)
10656       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10657       wlarc=
10658       hardcode_direct=yes
10659       hardcode_shlibpath_var=no
10660       ;;
10661
10662     *)
10663       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10664         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10665         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10666       else
10667         ld_shlibs=no
10668       fi
10669       ;;
10670     esac
10671
10672     if test no = "$ld_shlibs"; then
10673       runpath_var=
10674       hardcode_libdir_flag_spec=
10675       export_dynamic_flag_spec=
10676       whole_archive_flag_spec=
10677     fi
10678   else
10679     # PORTME fill in a description of your system's linker (not GNU ld)
10680     case $host_os in
10681     aix3*)
10682       allow_undefined_flag=unsupported
10683       always_export_symbols=yes
10684       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'
10685       # Note: this linker hardcodes the directories in LIBPATH if there
10686       # are no directories specified by -L.
10687       hardcode_minus_L=yes
10688       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10689         # Neither direct hardcoding nor static linking is supported with a
10690         # broken collect2.
10691         hardcode_direct=unsupported
10692       fi
10693       ;;
10694
10695     aix[4-9]*)
10696       if test ia64 = "$host_cpu"; then
10697         # On IA64, the linker does run time linking by default, so we don't
10698         # have to do anything special.
10699         aix_use_runtimelinking=no
10700         exp_sym_flag='-Bexport'
10701         no_entry_flag=
10702       else
10703         # If we're using GNU nm, then we don't want the "-C" option.
10704         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10705         # Without the "-l" option, or with the "-B" option, AIX nm treats
10706         # weak defined symbols like other global defined symbols, whereas
10707         # GNU nm marks them as "W".
10708         # While the 'weak' keyword is ignored in the Export File, we need
10709         # it in the Import File for the 'aix-soname' feature, so we have
10710         # to replace the "-B" option with "-P" for AIX nm.
10711         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10712           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'
10713         else
10714           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10715         fi
10716         aix_use_runtimelinking=no
10717
10718         # Test if we are trying to use run time linking or normal
10719         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10720         # have runtime linking enabled, and use it for executables.
10721         # For shared libraries, we enable/disable runtime linking
10722         # depending on the kind of the shared library created -
10723         # when "with_aix_soname,aix_use_runtimelinking" is:
10724         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10725         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10726         #            lib.a           static archive
10727         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10728         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10729         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10730         #            lib.a(lib.so.V) shared, rtl:no
10731         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10732         #            lib.a           static archive
10733         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10734           for ld_flag in $LDFLAGS; do
10735           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10736             aix_use_runtimelinking=yes
10737             break
10738           fi
10739           done
10740           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10741             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10742             # so we don't have lib.a shared libs to link our executables.
10743             # We have to force runtime linking in this case.
10744             aix_use_runtimelinking=yes
10745             LDFLAGS="$LDFLAGS -Wl,-brtl"
10746           fi
10747           ;;
10748         esac
10749
10750         exp_sym_flag='-bexport'
10751         no_entry_flag='-bnoentry'
10752       fi
10753
10754       # When large executables or shared objects are built, AIX ld can
10755       # have problems creating the table of contents.  If linking a library
10756       # or program results in "error TOC overflow" add -mminimal-toc to
10757       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10758       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10759
10760       archive_cmds=''
10761       hardcode_direct=yes
10762       hardcode_direct_absolute=yes
10763       hardcode_libdir_separator=':'
10764       link_all_deplibs=yes
10765       file_list_spec='$wl-f,'
10766       case $with_aix_soname,$aix_use_runtimelinking in
10767       aix,*) ;; # traditional, no import file
10768       svr4,* | *,yes) # use import file
10769         # The Import File defines what to hardcode.
10770         hardcode_direct=no
10771         hardcode_direct_absolute=no
10772         ;;
10773       esac
10774
10775       if test yes = "$GCC"; then
10776         case $host_os in aix4.[012]|aix4.[012].*)
10777         # We only want to do this on AIX 4.2 and lower, the check
10778         # below for broken collect2 doesn't work under 4.3+
10779           collect2name=`$CC -print-prog-name=collect2`
10780           if test -f "$collect2name" &&
10781            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10782           then
10783           # We have reworked collect2
10784           :
10785           else
10786           # We have old collect2
10787           hardcode_direct=unsupported
10788           # It fails to find uninstalled libraries when the uninstalled
10789           # path is not listed in the libpath.  Setting hardcode_minus_L
10790           # to unsupported forces relinking
10791           hardcode_minus_L=yes
10792           hardcode_libdir_flag_spec='-L$libdir'
10793           hardcode_libdir_separator=
10794           fi
10795           ;;
10796         esac
10797         shared_flag='-shared'
10798         if test yes = "$aix_use_runtimelinking"; then
10799           shared_flag="$shared_flag "'$wl-G'
10800         fi
10801         # Need to ensure runtime linking is disabled for the traditional
10802         # shared library, or the linker may eventually find shared libraries
10803         # /with/ Import File - we do not want to mix them.
10804         shared_flag_aix='-shared'
10805         shared_flag_svr4='-shared $wl-G'
10806       else
10807         # not using gcc
10808         if test ia64 = "$host_cpu"; then
10809         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10810         # chokes on -Wl,-G. The following line is correct:
10811           shared_flag='-G'
10812         else
10813           if test yes = "$aix_use_runtimelinking"; then
10814             shared_flag='$wl-G'
10815           else
10816             shared_flag='$wl-bM:SRE'
10817           fi
10818           shared_flag_aix='$wl-bM:SRE'
10819           shared_flag_svr4='$wl-G'
10820         fi
10821       fi
10822
10823       export_dynamic_flag_spec='$wl-bexpall'
10824       # It seems that -bexpall does not export symbols beginning with
10825       # underscore (_), so it is better to generate a list of symbols to export.
10826       always_export_symbols=yes
10827       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10828         # Warning - without using the other runtime loading flags (-brtl),
10829         # -berok will link without error, but may produce a broken library.
10830         allow_undefined_flag='-berok'
10831         # Determine the default libpath from the value encoded in an
10832         # empty executable.
10833         if test set = "${lt_cv_aix_libpath+set}"; then
10834   aix_libpath=$lt_cv_aix_libpath
10835 else
10836   if ${lt_cv_aix_libpath_+:} false; then :
10837   $as_echo_n "(cached) " >&6
10838 else
10839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h.  */
10841
10842 int
10843 main ()
10844 {
10845
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851
10852   lt_aix_libpath_sed='
10853       /Import File Strings/,/^$/ {
10854           /^0/ {
10855               s/^0  *\([^ ]*\) *$/\1/
10856               p
10857           }
10858       }'
10859   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10860   # Check for a 64-bit object if we didn't find anything.
10861   if test -z "$lt_cv_aix_libpath_"; then
10862     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10863   fi
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext \
10866     conftest$ac_exeext conftest.$ac_ext
10867   if test -z "$lt_cv_aix_libpath_"; then
10868     lt_cv_aix_libpath_=/usr/lib:/lib
10869   fi
10870
10871 fi
10872
10873   aix_libpath=$lt_cv_aix_libpath_
10874 fi
10875
10876         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10877         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
10878       else
10879         if test ia64 = "$host_cpu"; then
10880           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10881           allow_undefined_flag="-z nodefs"
10882           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"
10883         else
10884          # Determine the default libpath from the value encoded in an
10885          # empty executable.
10886          if test set = "${lt_cv_aix_libpath+set}"; then
10887   aix_libpath=$lt_cv_aix_libpath
10888 else
10889   if ${lt_cv_aix_libpath_+:} false; then :
10890   $as_echo_n "(cached) " >&6
10891 else
10892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h.  */
10894
10895 int
10896 main ()
10897 {
10898
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904
10905   lt_aix_libpath_sed='
10906       /Import File Strings/,/^$/ {
10907           /^0/ {
10908               s/^0  *\([^ ]*\) *$/\1/
10909               p
10910           }
10911       }'
10912   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10913   # Check for a 64-bit object if we didn't find anything.
10914   if test -z "$lt_cv_aix_libpath_"; then
10915     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10916   fi
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919     conftest$ac_exeext conftest.$ac_ext
10920   if test -z "$lt_cv_aix_libpath_"; then
10921     lt_cv_aix_libpath_=/usr/lib:/lib
10922   fi
10923
10924 fi
10925
10926   aix_libpath=$lt_cv_aix_libpath_
10927 fi
10928
10929          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10930           # Warning - without using the other run time loading flags,
10931           # -berok will link without error, but may produce a broken library.
10932           no_undefined_flag=' $wl-bernotok'
10933           allow_undefined_flag=' $wl-berok'
10934           if test yes = "$with_gnu_ld"; then
10935             # We only use this code for GNU lds that support --whole-archive.
10936             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10937           else
10938             # Exported symbols can be pulled into shared objects from archives
10939             whole_archive_flag_spec='$convenience'
10940           fi
10941           archive_cmds_need_lc=yes
10942           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10943           # -brtl affects multiple linker settings, -berok does not and is overridden later
10944           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10945           if test svr4 != "$with_aix_soname"; then
10946             # This is similar to how AIX traditionally builds its shared libraries.
10947             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'
10948           fi
10949           if test aix != "$with_aix_soname"; then
10950             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'
10951           else
10952             # used by -dlpreopen to get the symbols
10953             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10954           fi
10955           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10956         fi
10957       fi
10958       ;;
10959
10960     amigaos*)
10961       case $host_cpu in
10962       powerpc)
10963             # see comment about AmigaOS4 .so support
10964             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10965             archive_expsym_cmds=''
10966         ;;
10967       m68k)
10968             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)'
10969             hardcode_libdir_flag_spec='-L$libdir'
10970             hardcode_minus_L=yes
10971         ;;
10972       esac
10973       ;;
10974
10975     bsdi[45]*)
10976       export_dynamic_flag_spec=-rdynamic
10977       ;;
10978
10979     cygwin* | mingw* | pw32* | cegcc*)
10980       # When not using gcc, we currently assume that we are using
10981       # Microsoft Visual C++.
10982       # hardcode_libdir_flag_spec is actually meaningless, as there is
10983       # no search path for DLLs.
10984       case $cc_basename in
10985       cl*)
10986         # Native MSVC
10987         hardcode_libdir_flag_spec=' '
10988         allow_undefined_flag=unsupported
10989         always_export_symbols=yes
10990         file_list_spec='@'
10991         # Tell ltmain to make .lib files, not .a files.
10992         libext=lib
10993         # Tell ltmain to make .dll files, not .so files.
10994         shrext_cmds=.dll
10995         # FIXME: Setting linknames here is a bad hack.
10996         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10997         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10998             cp "$export_symbols" "$output_objdir/$soname.def";
10999             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11000           else
11001             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11002           fi~
11003           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11004           linknames='
11005         # The linker will not automatically build a static lib if we build a DLL.
11006         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11007         enable_shared_with_static_runtimes=yes
11008         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11009         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11010         # Don't use ranlib
11011         old_postinstall_cmds='chmod 644 $oldlib'
11012         postlink_cmds='lt_outputfile="@OUTPUT@"~
11013           lt_tool_outputfile="@TOOL_OUTPUT@"~
11014           case $lt_outputfile in
11015             *.exe|*.EXE) ;;
11016             *)
11017               lt_outputfile=$lt_outputfile.exe
11018               lt_tool_outputfile=$lt_tool_outputfile.exe
11019               ;;
11020           esac~
11021           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11022             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11023             $RM "$lt_outputfile.manifest";
11024           fi'
11025         ;;
11026       *)
11027         # Assume MSVC wrapper
11028         hardcode_libdir_flag_spec=' '
11029         allow_undefined_flag=unsupported
11030         # Tell ltmain to make .lib files, not .a files.
11031         libext=lib
11032         # Tell ltmain to make .dll files, not .so files.
11033         shrext_cmds=.dll
11034         # FIXME: Setting linknames here is a bad hack.
11035         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11036         # The linker will automatically build a .lib file if we build a DLL.
11037         old_archive_from_new_cmds='true'
11038         # FIXME: Should let the user specify the lib program.
11039         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11040         enable_shared_with_static_runtimes=yes
11041         ;;
11042       esac
11043       ;;
11044
11045     darwin* | rhapsody*)
11046
11047
11048   archive_cmds_need_lc=no
11049   hardcode_direct=no
11050   hardcode_automatic=yes
11051   hardcode_shlibpath_var=unsupported
11052   if test yes = "$lt_cv_ld_force_load"; then
11053     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\"`'
11054
11055   else
11056     whole_archive_flag_spec=''
11057   fi
11058   link_all_deplibs=yes
11059   allow_undefined_flag=$_lt_dar_allow_undefined
11060   case $cc_basename in
11061      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11062      *) _lt_dar_can_shared=$GCC ;;
11063   esac
11064   if test yes = "$_lt_dar_can_shared"; then
11065     output_verbose_link_cmd=func_echo_all
11066     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11067     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11068     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"
11069     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"
11070
11071   else
11072   ld_shlibs=no
11073   fi
11074
11075       ;;
11076
11077     dgux*)
11078       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11079       hardcode_libdir_flag_spec='-L$libdir'
11080       hardcode_shlibpath_var=no
11081       ;;
11082
11083     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11084     # support.  Future versions do this automatically, but an explicit c++rt0.o
11085     # does not break anything, and helps significantly (at the cost of a little
11086     # extra space).
11087     freebsd2.2*)
11088       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11089       hardcode_libdir_flag_spec='-R$libdir'
11090       hardcode_direct=yes
11091       hardcode_shlibpath_var=no
11092       ;;
11093
11094     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11095     freebsd2.*)
11096       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11097       hardcode_direct=yes
11098       hardcode_minus_L=yes
11099       hardcode_shlibpath_var=no
11100       ;;
11101
11102     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11103     freebsd* | dragonfly*)
11104       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11105       hardcode_libdir_flag_spec='-R$libdir'
11106       hardcode_direct=yes
11107       hardcode_shlibpath_var=no
11108       ;;
11109
11110     hpux9*)
11111       if test yes = "$GCC"; then
11112         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'
11113       else
11114         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'
11115       fi
11116       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11117       hardcode_libdir_separator=:
11118       hardcode_direct=yes
11119
11120       # hardcode_minus_L: Not really in the search PATH,
11121       # but as the default location of the library.
11122       hardcode_minus_L=yes
11123       export_dynamic_flag_spec='$wl-E'
11124       ;;
11125
11126     hpux10*)
11127       if test yes,no = "$GCC,$with_gnu_ld"; then
11128         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11129       else
11130         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11131       fi
11132       if test no = "$with_gnu_ld"; then
11133         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11134         hardcode_libdir_separator=:
11135         hardcode_direct=yes
11136         hardcode_direct_absolute=yes
11137         export_dynamic_flag_spec='$wl-E'
11138         # hardcode_minus_L: Not really in the search PATH,
11139         # but as the default location of the library.
11140         hardcode_minus_L=yes
11141       fi
11142       ;;
11143
11144     hpux11*)
11145       if test yes,no = "$GCC,$with_gnu_ld"; then
11146         case $host_cpu in
11147         hppa*64*)
11148           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11149           ;;
11150         ia64*)
11151           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11152           ;;
11153         *)
11154           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11155           ;;
11156         esac
11157       else
11158         case $host_cpu in
11159         hppa*64*)
11160           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11161           ;;
11162         ia64*)
11163           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11164           ;;
11165         *)
11166
11167           # Older versions of the 11.00 compiler do not understand -b yet
11168           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11169           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11170 $as_echo_n "checking if $CC understands -b... " >&6; }
11171 if ${lt_cv_prog_compiler__b+:} false; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174   lt_cv_prog_compiler__b=no
11175    save_LDFLAGS=$LDFLAGS
11176    LDFLAGS="$LDFLAGS -b"
11177    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11178    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11179      # The linker can only warn and ignore the option if not recognized
11180      # So say no if there are warnings
11181      if test -s conftest.err; then
11182        # Append any errors to the config.log.
11183        cat conftest.err 1>&5
11184        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11185        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11186        if diff conftest.exp conftest.er2 >/dev/null; then
11187          lt_cv_prog_compiler__b=yes
11188        fi
11189      else
11190        lt_cv_prog_compiler__b=yes
11191      fi
11192    fi
11193    $RM -r conftest*
11194    LDFLAGS=$save_LDFLAGS
11195
11196 fi
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11198 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11199
11200 if test yes = "$lt_cv_prog_compiler__b"; then
11201     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11202 else
11203     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11204 fi
11205
11206           ;;
11207         esac
11208       fi
11209       if test no = "$with_gnu_ld"; then
11210         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11211         hardcode_libdir_separator=:
11212
11213         case $host_cpu in
11214         hppa*64*|ia64*)
11215           hardcode_direct=no
11216           hardcode_shlibpath_var=no
11217           ;;
11218         *)
11219           hardcode_direct=yes
11220           hardcode_direct_absolute=yes
11221           export_dynamic_flag_spec='$wl-E'
11222
11223           # hardcode_minus_L: Not really in the search PATH,
11224           # but as the default location of the library.
11225           hardcode_minus_L=yes
11226           ;;
11227         esac
11228       fi
11229       ;;
11230
11231     irix5* | irix6* | nonstopux*)
11232       if test yes = "$GCC"; then
11233         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'
11234         # Try to use the -exported_symbol ld option, if it does not
11235         # work, assume that -exports_file does not work either and
11236         # implicitly export all symbols.
11237         # This should be the same for all languages, so no per-tag cache variable.
11238         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11239 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11240 if ${lt_cv_irix_exported_symbol+:} false; then :
11241   $as_echo_n "(cached) " >&6
11242 else
11243   save_LDFLAGS=$LDFLAGS
11244            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11245            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h.  */
11247 int foo (void) { return 0; }
11248 _ACEOF
11249 if ac_fn_c_try_link "$LINENO"; then :
11250   lt_cv_irix_exported_symbol=yes
11251 else
11252   lt_cv_irix_exported_symbol=no
11253 fi
11254 rm -f core conftest.err conftest.$ac_objext \
11255     conftest$ac_exeext conftest.$ac_ext
11256            LDFLAGS=$save_LDFLAGS
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11259 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11260         if test yes = "$lt_cv_irix_exported_symbol"; then
11261           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'
11262         fi
11263         link_all_deplibs=no
11264       else
11265         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'
11266         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'
11267       fi
11268       archive_cmds_need_lc='no'
11269       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11270       hardcode_libdir_separator=:
11271       inherit_rpath=yes
11272       link_all_deplibs=yes
11273       ;;
11274
11275     linux*)
11276       case $cc_basename in
11277       tcc*)
11278         # Fabrice Bellard et al's Tiny C Compiler
11279         ld_shlibs=yes
11280         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11281         ;;
11282       esac
11283       ;;
11284
11285     netbsd* | netbsdelf*-gnu)
11286       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11287         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11288       else
11289         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11290       fi
11291       hardcode_libdir_flag_spec='-R$libdir'
11292       hardcode_direct=yes
11293       hardcode_shlibpath_var=no
11294       ;;
11295
11296     newsos6)
11297       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11298       hardcode_direct=yes
11299       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11300       hardcode_libdir_separator=:
11301       hardcode_shlibpath_var=no
11302       ;;
11303
11304     *nto* | *qnx*)
11305       ;;
11306
11307     openbsd* | bitrig*)
11308       if test -f /usr/libexec/ld.so; then
11309         hardcode_direct=yes
11310         hardcode_shlibpath_var=no
11311         hardcode_direct_absolute=yes
11312         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11313           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11314           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11315           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11316           export_dynamic_flag_spec='$wl-E'
11317         else
11318           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11319           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11320         fi
11321       else
11322         ld_shlibs=no
11323       fi
11324       ;;
11325
11326     os2*)
11327       hardcode_libdir_flag_spec='-L$libdir'
11328       hardcode_minus_L=yes
11329       allow_undefined_flag=unsupported
11330       shrext_cmds=.dll
11331       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11332         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11333         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11334         $ECHO EXPORTS >> $output_objdir/$libname.def~
11335         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11336         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11337         emximp -o $lib $output_objdir/$libname.def'
11338       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11339         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11340         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11341         $ECHO EXPORTS >> $output_objdir/$libname.def~
11342         prefix_cmds="$SED"~
11343         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11344           prefix_cmds="$prefix_cmds -e 1d";
11345         fi~
11346         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11347         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11348         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11349         emximp -o $lib $output_objdir/$libname.def'
11350       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11351       enable_shared_with_static_runtimes=yes
11352       ;;
11353
11354     osf3*)
11355       if test yes = "$GCC"; then
11356         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11357         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'
11358       else
11359         allow_undefined_flag=' -expect_unresolved \*'
11360         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'
11361       fi
11362       archive_cmds_need_lc='no'
11363       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11364       hardcode_libdir_separator=:
11365       ;;
11366
11367     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11368       if test yes = "$GCC"; then
11369         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11370         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'
11371         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11372       else
11373         allow_undefined_flag=' -expect_unresolved \*'
11374         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'
11375         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~
11376           $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'
11377
11378         # Both c and cxx compiler support -rpath directly
11379         hardcode_libdir_flag_spec='-rpath $libdir'
11380       fi
11381       archive_cmds_need_lc='no'
11382       hardcode_libdir_separator=:
11383       ;;
11384
11385     solaris*)
11386       no_undefined_flag=' -z defs'
11387       if test yes = "$GCC"; then
11388         wlarc='$wl'
11389         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11390         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11391           $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'
11392       else
11393         case `$CC -V 2>&1` in
11394         *"Compilers 5.0"*)
11395           wlarc=''
11396           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11397           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11398             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11399           ;;
11400         *)
11401           wlarc='$wl'
11402           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11403           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11404             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11405           ;;
11406         esac
11407       fi
11408       hardcode_libdir_flag_spec='-R$libdir'
11409       hardcode_shlibpath_var=no
11410       case $host_os in
11411       solaris2.[0-5] | solaris2.[0-5].*) ;;
11412       *)
11413         # The compiler driver will combine and reorder linker options,
11414         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11415         # but is careful enough not to reorder.
11416         # Supported since Solaris 2.6 (maybe 2.5.1?)
11417         if test yes = "$GCC"; then
11418           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11419         else
11420           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11421         fi
11422         ;;
11423       esac
11424       link_all_deplibs=yes
11425       ;;
11426
11427     sunos4*)
11428       if test sequent = "$host_vendor"; then
11429         # Use $CC to link under sequent, because it throws in some extra .o
11430         # files that make .init and .fini sections work.
11431         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11432       else
11433         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11434       fi
11435       hardcode_libdir_flag_spec='-L$libdir'
11436       hardcode_direct=yes
11437       hardcode_minus_L=yes
11438       hardcode_shlibpath_var=no
11439       ;;
11440
11441     sysv4)
11442       case $host_vendor in
11443         sni)
11444           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11445           hardcode_direct=yes # is this really true???
11446         ;;
11447         siemens)
11448           ## LD is ld it makes a PLAMLIB
11449           ## CC just makes a GrossModule.
11450           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11451           reload_cmds='$CC -r -o $output$reload_objs'
11452           hardcode_direct=no
11453         ;;
11454         motorola)
11455           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11456           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11457         ;;
11458       esac
11459       runpath_var='LD_RUN_PATH'
11460       hardcode_shlibpath_var=no
11461       ;;
11462
11463     sysv4.3*)
11464       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11465       hardcode_shlibpath_var=no
11466       export_dynamic_flag_spec='-Bexport'
11467       ;;
11468
11469     sysv4*MP*)
11470       if test -d /usr/nec; then
11471         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11472         hardcode_shlibpath_var=no
11473         runpath_var=LD_RUN_PATH
11474         hardcode_runpath_var=yes
11475         ld_shlibs=yes
11476       fi
11477       ;;
11478
11479     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11480       no_undefined_flag='$wl-z,text'
11481       archive_cmds_need_lc=no
11482       hardcode_shlibpath_var=no
11483       runpath_var='LD_RUN_PATH'
11484
11485       if test yes = "$GCC"; then
11486         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11487         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11488       else
11489         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11490         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11491       fi
11492       ;;
11493
11494     sysv5* | sco3.2v5* | sco5v6*)
11495       # Note: We CANNOT use -z defs as we might desire, because we do not
11496       # link with -lc, and that would cause any symbols used from libc to
11497       # always be unresolved, which means just about no library would
11498       # ever link correctly.  If we're not using GNU ld we use -z text
11499       # though, which does catch some bad symbols but isn't as heavy-handed
11500       # as -z defs.
11501       no_undefined_flag='$wl-z,text'
11502       allow_undefined_flag='$wl-z,nodefs'
11503       archive_cmds_need_lc=no
11504       hardcode_shlibpath_var=no
11505       hardcode_libdir_flag_spec='$wl-R,$libdir'
11506       hardcode_libdir_separator=':'
11507       link_all_deplibs=yes
11508       export_dynamic_flag_spec='$wl-Bexport'
11509       runpath_var='LD_RUN_PATH'
11510
11511       if test yes = "$GCC"; then
11512         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11513         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11514       else
11515         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11516         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11517       fi
11518       ;;
11519
11520     uts4*)
11521       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11522       hardcode_libdir_flag_spec='-L$libdir'
11523       hardcode_shlibpath_var=no
11524       ;;
11525
11526     *)
11527       ld_shlibs=no
11528       ;;
11529     esac
11530
11531     if test sni = "$host_vendor"; then
11532       case $host in
11533       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11534         export_dynamic_flag_spec='$wl-Blargedynsym'
11535         ;;
11536       esac
11537     fi
11538   fi
11539
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11541 $as_echo "$ld_shlibs" >&6; }
11542 test no = "$ld_shlibs" && can_build_shared=no
11543
11544 with_gnu_ld=$with_gnu_ld
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560 #
11561 # Do we need to explicitly link libc?
11562 #
11563 case "x$archive_cmds_need_lc" in
11564 x|xyes)
11565   # Assume -lc should be added
11566   archive_cmds_need_lc=yes
11567
11568   if test yes,yes = "$GCC,$enable_shared"; then
11569     case $archive_cmds in
11570     *'~'*)
11571       # FIXME: we may have to deal with multi-command sequences.
11572       ;;
11573     '$CC '*)
11574       # Test whether the compiler implicitly links with -lc since on some
11575       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11576       # to ld, don't add -lc before -lgcc.
11577       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11578 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11579 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11580   $as_echo_n "(cached) " >&6
11581 else
11582   $RM conftest*
11583         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11584
11585         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11586   (eval $ac_compile) 2>&5
11587   ac_status=$?
11588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11589   test $ac_status = 0; } 2>conftest.err; then
11590           soname=conftest
11591           lib=conftest
11592           libobjs=conftest.$ac_objext
11593           deplibs=
11594           wl=$lt_prog_compiler_wl
11595           pic_flag=$lt_prog_compiler_pic
11596           compiler_flags=-v
11597           linker_flags=-v
11598           verstring=
11599           output_objdir=.
11600           libname=conftest
11601           lt_save_allow_undefined_flag=$allow_undefined_flag
11602           allow_undefined_flag=
11603           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11604   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11605   ac_status=$?
11606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11607   test $ac_status = 0; }
11608           then
11609             lt_cv_archive_cmds_need_lc=no
11610           else
11611             lt_cv_archive_cmds_need_lc=yes
11612           fi
11613           allow_undefined_flag=$lt_save_allow_undefined_flag
11614         else
11615           cat conftest.err 1>&5
11616         fi
11617         $RM conftest*
11618
11619 fi
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11621 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11622       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11623       ;;
11624     esac
11625   fi
11626   ;;
11627 esac
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11781 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11782
11783 if test yes = "$GCC"; then
11784   case $host_os in
11785     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11786     *) lt_awk_arg='/^libraries:/' ;;
11787   esac
11788   case $host_os in
11789     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11790     *) lt_sed_strip_eq='s|=/|/|g' ;;
11791   esac
11792   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11793   case $lt_search_path_spec in
11794   *\;*)
11795     # if the path contains ";" then we assume it to be the separator
11796     # otherwise default to the standard path separator (i.e. ":") - it is
11797     # assumed that no part of a normal pathname contains ";" but that should
11798     # okay in the real world where ";" in dirpaths is itself problematic.
11799     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11800     ;;
11801   *)
11802     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11803     ;;
11804   esac
11805   # Ok, now we have the path, separated by spaces, we can step through it
11806   # and add multilib dir if necessary...
11807   lt_tmp_lt_search_path_spec=
11808   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11809   # ...but if some path component already ends with the multilib dir we assume
11810   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11811   case "$lt_multi_os_dir; $lt_search_path_spec " in
11812   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11813     lt_multi_os_dir=
11814     ;;
11815   esac
11816   for lt_sys_path in $lt_search_path_spec; do
11817     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11818       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11819     elif test -n "$lt_multi_os_dir"; then
11820       test -d "$lt_sys_path" && \
11821         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11822     fi
11823   done
11824   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11825 BEGIN {RS = " "; FS = "/|\n";} {
11826   lt_foo = "";
11827   lt_count = 0;
11828   for (lt_i = NF; lt_i > 0; lt_i--) {
11829     if ($lt_i != "" && $lt_i != ".") {
11830       if ($lt_i == "..") {
11831         lt_count++;
11832       } else {
11833         if (lt_count == 0) {
11834           lt_foo = "/" $lt_i lt_foo;
11835         } else {
11836           lt_count--;
11837         }
11838       }
11839     }
11840   }
11841   if (lt_foo != "") { lt_freq[lt_foo]++; }
11842   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11843 }'`
11844   # AWK program above erroneously prepends '/' to C:/dos/paths
11845   # for these hosts.
11846   case $host_os in
11847     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11848       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11849   esac
11850   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11851 else
11852   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11853 fi
11854 library_names_spec=
11855 libname_spec='lib$name'
11856 soname_spec=
11857 shrext_cmds=.so
11858 postinstall_cmds=
11859 postuninstall_cmds=
11860 finish_cmds=
11861 finish_eval=
11862 shlibpath_var=
11863 shlibpath_overrides_runpath=unknown
11864 version_type=none
11865 dynamic_linker="$host_os ld.so"
11866 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11867 need_lib_prefix=unknown
11868 hardcode_into_libs=no
11869
11870 # when you set need_version to no, make sure it does not cause -set_version
11871 # flags to be left without arguments
11872 need_version=unknown
11873
11874
11875
11876 case $host_os in
11877 aix3*)
11878   version_type=linux # correct to gnu/linux during the next big refactor
11879   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11880   shlibpath_var=LIBPATH
11881
11882   # AIX 3 has no versioning support, so we append a major version to the name.
11883   soname_spec='$libname$release$shared_ext$major'
11884   ;;
11885
11886 aix[4-9]*)
11887   version_type=linux # correct to gnu/linux during the next big refactor
11888   need_lib_prefix=no
11889   need_version=no
11890   hardcode_into_libs=yes
11891   if test ia64 = "$host_cpu"; then
11892     # AIX 5 supports IA64
11893     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11894     shlibpath_var=LD_LIBRARY_PATH
11895   else
11896     # With GCC up to 2.95.x, collect2 would create an import file
11897     # for dependence libraries.  The import file would start with
11898     # the line '#! .'.  This would cause the generated library to
11899     # depend on '.', always an invalid library.  This was fixed in
11900     # development snapshots of GCC prior to 3.0.
11901     case $host_os in
11902       aix4 | aix4.[01] | aix4.[01].*)
11903       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11904            echo ' yes '
11905            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11906         :
11907       else
11908         can_build_shared=no
11909       fi
11910       ;;
11911     esac
11912     # Using Import Files as archive members, it is possible to support
11913     # filename-based versioning of shared library archives on AIX. While
11914     # this would work for both with and without runtime linking, it will
11915     # prevent static linking of such archives. So we do filename-based
11916     # shared library versioning with .so extension only, which is used
11917     # when both runtime linking and shared linking is enabled.
11918     # Unfortunately, runtime linking may impact performance, so we do
11919     # not want this to be the default eventually. Also, we use the
11920     # versioned .so libs for executables only if there is the -brtl
11921     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11922     # To allow for filename-based versioning support, we need to create
11923     # libNAME.so.V as an archive file, containing:
11924     # *) an Import File, referring to the versioned filename of the
11925     #    archive as well as the shared archive member, telling the
11926     #    bitwidth (32 or 64) of that shared object, and providing the
11927     #    list of exported symbols of that shared object, eventually
11928     #    decorated with the 'weak' keyword
11929     # *) the shared object with the F_LOADONLY flag set, to really avoid
11930     #    it being seen by the linker.
11931     # At run time we better use the real file rather than another symlink,
11932     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11933
11934     case $with_aix_soname,$aix_use_runtimelinking in
11935     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11936     # soname into executable. Probably we can add versioning support to
11937     # collect2, so additional links can be useful in future.
11938     aix,yes) # traditional libtool
11939       dynamic_linker='AIX unversionable lib.so'
11940       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11941       # instead of lib<name>.a to let people know that these are not
11942       # typical AIX shared libraries.
11943       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11944       ;;
11945     aix,no) # traditional AIX only
11946       dynamic_linker='AIX lib.a(lib.so.V)'
11947       # We preserve .a as extension for shared libraries through AIX4.2
11948       # and later when we are not doing run time linking.
11949       library_names_spec='$libname$release.a $libname.a'
11950       soname_spec='$libname$release$shared_ext$major'
11951       ;;
11952     svr4,*) # full svr4 only
11953       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11954       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11955       # We do not specify a path in Import Files, so LIBPATH fires.
11956       shlibpath_overrides_runpath=yes
11957       ;;
11958     *,yes) # both, prefer svr4
11959       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11960       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11961       # unpreferred sharedlib libNAME.a needs extra handling
11962       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"'
11963       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"'
11964       # We do not specify a path in Import Files, so LIBPATH fires.
11965       shlibpath_overrides_runpath=yes
11966       ;;
11967     *,no) # both, prefer aix
11968       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11969       library_names_spec='$libname$release.a $libname.a'
11970       soname_spec='$libname$release$shared_ext$major'
11971       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11972       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)'
11973       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"'
11974       ;;
11975     esac
11976     shlibpath_var=LIBPATH
11977   fi
11978   ;;
11979
11980 amigaos*)
11981   case $host_cpu in
11982   powerpc)
11983     # Since July 2007 AmigaOS4 officially supports .so libraries.
11984     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11985     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986     ;;
11987   m68k)
11988     library_names_spec='$libname.ixlibrary $libname.a'
11989     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11990     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'
11991     ;;
11992   esac
11993   ;;
11994
11995 beos*)
11996   library_names_spec='$libname$shared_ext'
11997   dynamic_linker="$host_os ld.so"
11998   shlibpath_var=LIBRARY_PATH
11999   ;;
12000
12001 bsdi[45]*)
12002   version_type=linux # correct to gnu/linux during the next big refactor
12003   need_version=no
12004   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12005   soname_spec='$libname$release$shared_ext$major'
12006   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12007   shlibpath_var=LD_LIBRARY_PATH
12008   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12009   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12010   # the default ld.so.conf also contains /usr/contrib/lib and
12011   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12012   # libtool to hard-code these into programs
12013   ;;
12014
12015 cygwin* | mingw* | pw32* | cegcc*)
12016   version_type=windows
12017   shrext_cmds=.dll
12018   need_version=no
12019   need_lib_prefix=no
12020
12021   case $GCC,$cc_basename in
12022   yes,*)
12023     # gcc
12024     library_names_spec='$libname.dll.a'
12025     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12026     postinstall_cmds='base_file=`basename \$file`~
12027       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12028       dldir=$destdir/`dirname \$dlpath`~
12029       test -d \$dldir || mkdir -p \$dldir~
12030       $install_prog $dir/$dlname \$dldir/$dlname~
12031       chmod a+x \$dldir/$dlname~
12032       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12033         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12034       fi'
12035     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12036       dlpath=$dir/\$dldll~
12037        $RM \$dlpath'
12038     shlibpath_overrides_runpath=yes
12039
12040     case $host_os in
12041     cygwin*)
12042       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12043       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12044
12045       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12046       ;;
12047     mingw* | cegcc*)
12048       # MinGW DLLs use traditional 'lib' prefix
12049       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12050       ;;
12051     pw32*)
12052       # pw32 DLLs use 'pw' prefix rather than 'lib'
12053       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12054       ;;
12055     esac
12056     dynamic_linker='Win32 ld.exe'
12057     ;;
12058
12059   *,cl*)
12060     # Native MSVC
12061     libname_spec='$name'
12062     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12063     library_names_spec='$libname.dll.lib'
12064
12065     case $build_os in
12066     mingw*)
12067       sys_lib_search_path_spec=
12068       lt_save_ifs=$IFS
12069       IFS=';'
12070       for lt_path in $LIB
12071       do
12072         IFS=$lt_save_ifs
12073         # Let DOS variable expansion print the short 8.3 style file name.
12074         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12075         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12076       done
12077       IFS=$lt_save_ifs
12078       # Convert to MSYS style.
12079       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12080       ;;
12081     cygwin*)
12082       # Convert to unix form, then to dos form, then back to unix form
12083       # but this time dos style (no spaces!) so that the unix form looks
12084       # like /cygdrive/c/PROGRA~1:/cygdr...
12085       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12086       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12087       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12088       ;;
12089     *)
12090       sys_lib_search_path_spec=$LIB
12091       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12092         # It is most probably a Windows format PATH.
12093         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12094       else
12095         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12096       fi
12097       # FIXME: find the short name or the path components, as spaces are
12098       # common. (e.g. "Program Files" -> "PROGRA~1")
12099       ;;
12100     esac
12101
12102     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12103     postinstall_cmds='base_file=`basename \$file`~
12104       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12105       dldir=$destdir/`dirname \$dlpath`~
12106       test -d \$dldir || mkdir -p \$dldir~
12107       $install_prog $dir/$dlname \$dldir/$dlname'
12108     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12109       dlpath=$dir/\$dldll~
12110        $RM \$dlpath'
12111     shlibpath_overrides_runpath=yes
12112     dynamic_linker='Win32 link.exe'
12113     ;;
12114
12115   *)
12116     # Assume MSVC wrapper
12117     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12118     dynamic_linker='Win32 ld.exe'
12119     ;;
12120   esac
12121   # FIXME: first we should search . and the directory the executable is in
12122   shlibpath_var=PATH
12123   ;;
12124
12125 darwin* | rhapsody*)
12126   dynamic_linker="$host_os dyld"
12127   version_type=darwin
12128   need_lib_prefix=no
12129   need_version=no
12130   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12131   soname_spec='$libname$release$major$shared_ext'
12132   shlibpath_overrides_runpath=yes
12133   shlibpath_var=DYLD_LIBRARY_PATH
12134   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12135
12136   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12137   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12138   ;;
12139
12140 dgux*)
12141   version_type=linux # correct to gnu/linux during the next big refactor
12142   need_lib_prefix=no
12143   need_version=no
12144   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12145   soname_spec='$libname$release$shared_ext$major'
12146   shlibpath_var=LD_LIBRARY_PATH
12147   ;;
12148
12149 freebsd* | dragonfly*)
12150   # DragonFly does not have aout.  When/if they implement a new
12151   # versioning mechanism, adjust this.
12152   if test -x /usr/bin/objformat; then
12153     objformat=`/usr/bin/objformat`
12154   else
12155     case $host_os in
12156     freebsd[23].*) objformat=aout ;;
12157     *) objformat=elf ;;
12158     esac
12159   fi
12160   version_type=freebsd-$objformat
12161   case $version_type in
12162     freebsd-elf*)
12163       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164       soname_spec='$libname$release$shared_ext$major'
12165       need_version=no
12166       need_lib_prefix=no
12167       ;;
12168     freebsd-*)
12169       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12170       need_version=yes
12171       ;;
12172   esac
12173   shlibpath_var=LD_LIBRARY_PATH
12174   case $host_os in
12175   freebsd2.*)
12176     shlibpath_overrides_runpath=yes
12177     ;;
12178   freebsd3.[01]* | freebsdelf3.[01]*)
12179     shlibpath_overrides_runpath=yes
12180     hardcode_into_libs=yes
12181     ;;
12182   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12183   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12184     shlibpath_overrides_runpath=no
12185     hardcode_into_libs=yes
12186     ;;
12187   *) # from 4.6 on, and DragonFly
12188     shlibpath_overrides_runpath=yes
12189     hardcode_into_libs=yes
12190     ;;
12191   esac
12192   ;;
12193
12194 haiku*)
12195   version_type=linux # correct to gnu/linux during the next big refactor
12196   need_lib_prefix=no
12197   need_version=no
12198   dynamic_linker="$host_os runtime_loader"
12199   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12200   soname_spec='$libname$release$shared_ext$major'
12201   shlibpath_var=LIBRARY_PATH
12202   shlibpath_overrides_runpath=no
12203   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12204   hardcode_into_libs=yes
12205   ;;
12206
12207 hpux9* | hpux10* | hpux11*)
12208   # Give a soname corresponding to the major version so that dld.sl refuses to
12209   # link against other versions.
12210   version_type=sunos
12211   need_lib_prefix=no
12212   need_version=no
12213   case $host_cpu in
12214   ia64*)
12215     shrext_cmds='.so'
12216     hardcode_into_libs=yes
12217     dynamic_linker="$host_os dld.so"
12218     shlibpath_var=LD_LIBRARY_PATH
12219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12220     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12221     soname_spec='$libname$release$shared_ext$major'
12222     if test 32 = "$HPUX_IA64_MODE"; then
12223       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12224       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12225     else
12226       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12227       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12228     fi
12229     ;;
12230   hppa*64*)
12231     shrext_cmds='.sl'
12232     hardcode_into_libs=yes
12233     dynamic_linker="$host_os dld.sl"
12234     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12235     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12236     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237     soname_spec='$libname$release$shared_ext$major'
12238     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12239     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12240     ;;
12241   *)
12242     shrext_cmds='.sl'
12243     dynamic_linker="$host_os dld.sl"
12244     shlibpath_var=SHLIB_PATH
12245     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12246     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12247     soname_spec='$libname$release$shared_ext$major'
12248     ;;
12249   esac
12250   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12251   postinstall_cmds='chmod 555 $lib'
12252   # or fails outright, so override atomically:
12253   install_override_mode=555
12254   ;;
12255
12256 interix[3-9]*)
12257   version_type=linux # correct to gnu/linux during the next big refactor
12258   need_lib_prefix=no
12259   need_version=no
12260   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12261   soname_spec='$libname$release$shared_ext$major'
12262   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12263   shlibpath_var=LD_LIBRARY_PATH
12264   shlibpath_overrides_runpath=no
12265   hardcode_into_libs=yes
12266   ;;
12267
12268 irix5* | irix6* | nonstopux*)
12269   case $host_os in
12270     nonstopux*) version_type=nonstopux ;;
12271     *)
12272         if test yes = "$lt_cv_prog_gnu_ld"; then
12273                 version_type=linux # correct to gnu/linux during the next big refactor
12274         else
12275                 version_type=irix
12276         fi ;;
12277   esac
12278   need_lib_prefix=no
12279   need_version=no
12280   soname_spec='$libname$release$shared_ext$major'
12281   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12282   case $host_os in
12283   irix5* | nonstopux*)
12284     libsuff= shlibsuff=
12285     ;;
12286   *)
12287     case $LD in # libtool.m4 will add one of these switches to LD
12288     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12289       libsuff= shlibsuff= libmagic=32-bit;;
12290     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12291       libsuff=32 shlibsuff=N32 libmagic=N32;;
12292     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12293       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12294     *) libsuff= shlibsuff= libmagic=never-match;;
12295     esac
12296     ;;
12297   esac
12298   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12299   shlibpath_overrides_runpath=no
12300   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12301   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12302   hardcode_into_libs=yes
12303   ;;
12304
12305 # No shared lib support for Linux oldld, aout, or coff.
12306 linux*oldld* | linux*aout* | linux*coff*)
12307   dynamic_linker=no
12308   ;;
12309
12310 linux*android*)
12311   version_type=none # Android doesn't support versioned libraries.
12312   need_lib_prefix=no
12313   need_version=no
12314   library_names_spec='$libname$release$shared_ext'
12315   soname_spec='$libname$release$shared_ext'
12316   finish_cmds=
12317   shlibpath_var=LD_LIBRARY_PATH
12318   shlibpath_overrides_runpath=yes
12319
12320   # This implies no fast_install, which is unacceptable.
12321   # Some rework will be needed to allow for fast_install
12322   # before this can be enabled.
12323   hardcode_into_libs=yes
12324
12325   dynamic_linker='Android linker'
12326   # Don't embed -rpath directories since the linker doesn't support them.
12327   hardcode_libdir_flag_spec='-L$libdir'
12328   ;;
12329
12330 # This must be glibc/ELF.
12331 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12332   version_type=linux # correct to gnu/linux during the next big refactor
12333   need_lib_prefix=no
12334   need_version=no
12335   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12336   soname_spec='$libname$release$shared_ext$major'
12337   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12338   shlibpath_var=LD_LIBRARY_PATH
12339   shlibpath_overrides_runpath=no
12340
12341   # Some binutils ld are patched to set DT_RUNPATH
12342   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12343   $as_echo_n "(cached) " >&6
12344 else
12345   lt_cv_shlibpath_overrides_runpath=no
12346     save_LDFLAGS=$LDFLAGS
12347     save_libdir=$libdir
12348     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12349          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12350     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h.  */
12352
12353 int
12354 main ()
12355 {
12356
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 if ac_fn_c_try_link "$LINENO"; then :
12362   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12363   lt_cv_shlibpath_overrides_runpath=yes
12364 fi
12365 fi
12366 rm -f core conftest.err conftest.$ac_objext \
12367     conftest$ac_exeext conftest.$ac_ext
12368     LDFLAGS=$save_LDFLAGS
12369     libdir=$save_libdir
12370
12371 fi
12372
12373   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12374
12375   # This implies no fast_install, which is unacceptable.
12376   # Some rework will be needed to allow for fast_install
12377   # before this can be enabled.
12378   hardcode_into_libs=yes
12379
12380   # Ideally, we could use ldconfig to report *all* directores which are
12381   # searched for libraries, however this is still not possible.  Aside from not
12382   # being certain /sbin/ldconfig is available, command
12383   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12384   # even though it is searched at run-time.  Try to do the best guess by
12385   # appending ld.so.conf contents (and includes) to the search path.
12386   if test -f /etc/ld.so.conf; then
12387     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' ' '`
12388     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12389   fi
12390
12391   # We used to test for /lib/ld.so.1 and disable shared libraries on
12392   # powerpc, because MkLinux only supported shared libraries with the
12393   # GNU dynamic linker.  Since this was broken with cross compilers,
12394   # most powerpc-linux boxes support dynamic linking these days and
12395   # people can always --disable-shared, the test was removed, and we
12396   # assume the GNU/Linux dynamic linker is in use.
12397   dynamic_linker='GNU/Linux ld.so'
12398   ;;
12399
12400 netbsdelf*-gnu)
12401   version_type=linux
12402   need_lib_prefix=no
12403   need_version=no
12404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12405   soname_spec='${libname}${release}${shared_ext}$major'
12406   shlibpath_var=LD_LIBRARY_PATH
12407   shlibpath_overrides_runpath=no
12408   hardcode_into_libs=yes
12409   dynamic_linker='NetBSD ld.elf_so'
12410   ;;
12411
12412 netbsd*)
12413   version_type=sunos
12414   need_lib_prefix=no
12415   need_version=no
12416   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12417     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12418     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12419     dynamic_linker='NetBSD (a.out) ld.so'
12420   else
12421     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422     soname_spec='$libname$release$shared_ext$major'
12423     dynamic_linker='NetBSD ld.elf_so'
12424   fi
12425   shlibpath_var=LD_LIBRARY_PATH
12426   shlibpath_overrides_runpath=yes
12427   hardcode_into_libs=yes
12428   ;;
12429
12430 newsos6)
12431   version_type=linux # correct to gnu/linux during the next big refactor
12432   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12433   shlibpath_var=LD_LIBRARY_PATH
12434   shlibpath_overrides_runpath=yes
12435   ;;
12436
12437 *nto* | *qnx*)
12438   version_type=qnx
12439   need_lib_prefix=no
12440   need_version=no
12441   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12442   soname_spec='$libname$release$shared_ext$major'
12443   shlibpath_var=LD_LIBRARY_PATH
12444   shlibpath_overrides_runpath=no
12445   hardcode_into_libs=yes
12446   dynamic_linker='ldqnx.so'
12447   ;;
12448
12449 openbsd* | bitrig*)
12450   version_type=sunos
12451   sys_lib_dlsearch_path_spec=/usr/lib
12452   need_lib_prefix=no
12453   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12454     need_version=no
12455   else
12456     need_version=yes
12457   fi
12458   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12460   shlibpath_var=LD_LIBRARY_PATH
12461   shlibpath_overrides_runpath=yes
12462   ;;
12463
12464 os2*)
12465   libname_spec='$name'
12466   version_type=windows
12467   shrext_cmds=.dll
12468   need_version=no
12469   need_lib_prefix=no
12470   # OS/2 can only load a DLL with a base name of 8 characters or less.
12471   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12472     v=$($ECHO $release$versuffix | tr -d .-);
12473     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12474     $ECHO $n$v`$shared_ext'
12475   library_names_spec='${libname}_dll.$libext'
12476   dynamic_linker='OS/2 ld.exe'
12477   shlibpath_var=BEGINLIBPATH
12478   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12479   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12480   postinstall_cmds='base_file=`basename \$file`~
12481     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12482     dldir=$destdir/`dirname \$dlpath`~
12483     test -d \$dldir || mkdir -p \$dldir~
12484     $install_prog $dir/$dlname \$dldir/$dlname~
12485     chmod a+x \$dldir/$dlname~
12486     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12487       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12488     fi'
12489   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12490     dlpath=$dir/\$dldll~
12491     $RM \$dlpath'
12492   ;;
12493
12494 osf3* | osf4* | osf5*)
12495   version_type=osf
12496   need_lib_prefix=no
12497   need_version=no
12498   soname_spec='$libname$release$shared_ext$major'
12499   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12500   shlibpath_var=LD_LIBRARY_PATH
12501   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12502   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12503   ;;
12504
12505 rdos*)
12506   dynamic_linker=no
12507   ;;
12508
12509 solaris*)
12510   version_type=linux # correct to gnu/linux during the next big refactor
12511   need_lib_prefix=no
12512   need_version=no
12513   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514   soname_spec='$libname$release$shared_ext$major'
12515   shlibpath_var=LD_LIBRARY_PATH
12516   shlibpath_overrides_runpath=yes
12517   hardcode_into_libs=yes
12518   # ldd complains unless libraries are executable
12519   postinstall_cmds='chmod +x $lib'
12520   ;;
12521
12522 sunos4*)
12523   version_type=sunos
12524   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12525   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12526   shlibpath_var=LD_LIBRARY_PATH
12527   shlibpath_overrides_runpath=yes
12528   if test yes = "$with_gnu_ld"; then
12529     need_lib_prefix=no
12530   fi
12531   need_version=yes
12532   ;;
12533
12534 sysv4 | sysv4.3*)
12535   version_type=linux # correct to gnu/linux during the next big refactor
12536   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12537   soname_spec='$libname$release$shared_ext$major'
12538   shlibpath_var=LD_LIBRARY_PATH
12539   case $host_vendor in
12540     sni)
12541       shlibpath_overrides_runpath=no
12542       need_lib_prefix=no
12543       runpath_var=LD_RUN_PATH
12544       ;;
12545     siemens)
12546       need_lib_prefix=no
12547       ;;
12548     motorola)
12549       need_lib_prefix=no
12550       need_version=no
12551       shlibpath_overrides_runpath=no
12552       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12553       ;;
12554   esac
12555   ;;
12556
12557 sysv4*MP*)
12558   if test -d /usr/nec; then
12559     version_type=linux # correct to gnu/linux during the next big refactor
12560     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12561     soname_spec='$libname$shared_ext.$major'
12562     shlibpath_var=LD_LIBRARY_PATH
12563   fi
12564   ;;
12565
12566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12567   version_type=sco
12568   need_lib_prefix=no
12569   need_version=no
12570   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12571   soname_spec='$libname$release$shared_ext$major'
12572   shlibpath_var=LD_LIBRARY_PATH
12573   shlibpath_overrides_runpath=yes
12574   hardcode_into_libs=yes
12575   if test yes = "$with_gnu_ld"; then
12576     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12577   else
12578     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12579     case $host_os in
12580       sco3.2v5*)
12581         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12582         ;;
12583     esac
12584   fi
12585   sys_lib_dlsearch_path_spec='/usr/lib'
12586   ;;
12587
12588 tpf*)
12589   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12590   version_type=linux # correct to gnu/linux during the next big refactor
12591   need_lib_prefix=no
12592   need_version=no
12593   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12594   shlibpath_var=LD_LIBRARY_PATH
12595   shlibpath_overrides_runpath=no
12596   hardcode_into_libs=yes
12597   ;;
12598
12599 uts4*)
12600   version_type=linux # correct to gnu/linux during the next big refactor
12601   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12602   soname_spec='$libname$release$shared_ext$major'
12603   shlibpath_var=LD_LIBRARY_PATH
12604   ;;
12605
12606 *)
12607   dynamic_linker=no
12608   ;;
12609 esac
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12611 $as_echo "$dynamic_linker" >&6; }
12612 test no = "$dynamic_linker" && can_build_shared=no
12613
12614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12615 if test yes = "$GCC"; then
12616   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12617 fi
12618
12619 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12620   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12621 fi
12622
12623 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12624   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12625 fi
12626
12627 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12628 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12629
12630 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12631 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12632
12633 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12634 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12733 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12734 hardcode_action=
12735 if test -n "$hardcode_libdir_flag_spec" ||
12736    test -n "$runpath_var" ||
12737    test yes = "$hardcode_automatic"; then
12738
12739   # We can hardcode non-existent directories.
12740   if test no != "$hardcode_direct" &&
12741      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12742      # have to relink, otherwise we might link with an installed library
12743      # when we should be linking with a yet-to-be-installed one
12744      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12745      test no != "$hardcode_minus_L"; then
12746     # Linking always hardcodes the temporary library directory.
12747     hardcode_action=relink
12748   else
12749     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12750     hardcode_action=immediate
12751   fi
12752 else
12753   # We cannot hardcode anything, or else we can only hardcode existing
12754   # directories.
12755   hardcode_action=unsupported
12756 fi
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12758 $as_echo "$hardcode_action" >&6; }
12759
12760 if test relink = "$hardcode_action" ||
12761    test yes = "$inherit_rpath"; then
12762   # Fast installation is not supported
12763   enable_fast_install=no
12764 elif test yes = "$shlibpath_overrides_runpath" ||
12765      test no = "$enable_shared"; then
12766   # Fast installation is not necessary
12767   enable_fast_install=needless
12768 fi
12769
12770
12771
12772
12773
12774
12775   if test yes != "$enable_dlopen"; then
12776   enable_dlopen=unknown
12777   enable_dlopen_self=unknown
12778   enable_dlopen_self_static=unknown
12779 else
12780   lt_cv_dlopen=no
12781   lt_cv_dlopen_libs=
12782
12783   case $host_os in
12784   beos*)
12785     lt_cv_dlopen=load_add_on
12786     lt_cv_dlopen_libs=
12787     lt_cv_dlopen_self=yes
12788     ;;
12789
12790   mingw* | pw32* | cegcc*)
12791     lt_cv_dlopen=LoadLibrary
12792     lt_cv_dlopen_libs=
12793     ;;
12794
12795   cygwin*)
12796     lt_cv_dlopen=dlopen
12797     lt_cv_dlopen_libs=
12798     ;;
12799
12800   darwin*)
12801     # if libdl is installed we need to link against it
12802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12804 if ${ac_cv_lib_dl_dlopen+:} false; then :
12805   $as_echo_n "(cached) " >&6
12806 else
12807   ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-ldl  $LIBS"
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h.  */
12811
12812 /* Override any GCC internal prototype to avoid an error.
12813    Use char because int might match the return type of a GCC
12814    builtin and then its argument prototype would still apply.  */
12815 #ifdef __cplusplus
12816 extern "C"
12817 #endif
12818 char dlopen ();
12819 int
12820 main ()
12821 {
12822 return dlopen ();
12823   ;
12824   return 0;
12825 }
12826 _ACEOF
12827 if ac_fn_c_try_link "$LINENO"; then :
12828   ac_cv_lib_dl_dlopen=yes
12829 else
12830   ac_cv_lib_dl_dlopen=no
12831 fi
12832 rm -f core conftest.err conftest.$ac_objext \
12833     conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12835 fi
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12837 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12838 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12839   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12840 else
12841
12842     lt_cv_dlopen=dyld
12843     lt_cv_dlopen_libs=
12844     lt_cv_dlopen_self=yes
12845
12846 fi
12847
12848     ;;
12849
12850   tpf*)
12851     # Don't try to run any link tests for TPF.  We know it's impossible
12852     # because TPF is a cross-compiler, and we know how we open DSOs.
12853     lt_cv_dlopen=dlopen
12854     lt_cv_dlopen_libs=
12855     lt_cv_dlopen_self=no
12856     ;;
12857
12858   *)
12859     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12860 if test "x$ac_cv_func_shl_load" = xyes; then :
12861   lt_cv_dlopen=shl_load
12862 else
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12864 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12865 if ${ac_cv_lib_dld_shl_load+:} false; then :
12866   $as_echo_n "(cached) " >&6
12867 else
12868   ac_check_lib_save_LIBS=$LIBS
12869 LIBS="-ldld  $LIBS"
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h.  */
12872
12873 /* Override any GCC internal prototype to avoid an error.
12874    Use char because int might match the return type of a GCC
12875    builtin and then its argument prototype would still apply.  */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 char shl_load ();
12880 int
12881 main ()
12882 {
12883 return shl_load ();
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 if ac_fn_c_try_link "$LINENO"; then :
12889   ac_cv_lib_dld_shl_load=yes
12890 else
12891   ac_cv_lib_dld_shl_load=no
12892 fi
12893 rm -f core conftest.err conftest.$ac_objext \
12894     conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_check_lib_save_LIBS
12896 fi
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12898 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12899 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12900   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12901 else
12902   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12903 if test "x$ac_cv_func_dlopen" = xyes; then :
12904   lt_cv_dlopen=dlopen
12905 else
12906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12907 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12908 if ${ac_cv_lib_dl_dlopen+:} false; then :
12909   $as_echo_n "(cached) " >&6
12910 else
12911   ac_check_lib_save_LIBS=$LIBS
12912 LIBS="-ldl  $LIBS"
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h.  */
12915
12916 /* Override any GCC internal prototype to avoid an error.
12917    Use char because int might match the return type of a GCC
12918    builtin and then its argument prototype would still apply.  */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 char dlopen ();
12923 int
12924 main ()
12925 {
12926 return dlopen ();
12927   ;
12928   return 0;
12929 }
12930 _ACEOF
12931 if ac_fn_c_try_link "$LINENO"; then :
12932   ac_cv_lib_dl_dlopen=yes
12933 else
12934   ac_cv_lib_dl_dlopen=no
12935 fi
12936 rm -f core conftest.err conftest.$ac_objext \
12937     conftest$ac_exeext conftest.$ac_ext
12938 LIBS=$ac_check_lib_save_LIBS
12939 fi
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12942 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12943   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12944 else
12945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12946 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12947 if ${ac_cv_lib_svld_dlopen+:} false; then :
12948   $as_echo_n "(cached) " >&6
12949 else
12950   ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-lsvld  $LIBS"
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h.  */
12954
12955 /* Override any GCC internal prototype to avoid an error.
12956    Use char because int might match the return type of a GCC
12957    builtin and then its argument prototype would still apply.  */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 char dlopen ();
12962 int
12963 main ()
12964 {
12965 return dlopen ();
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 if ac_fn_c_try_link "$LINENO"; then :
12971   ac_cv_lib_svld_dlopen=yes
12972 else
12973   ac_cv_lib_svld_dlopen=no
12974 fi
12975 rm -f core conftest.err conftest.$ac_objext \
12976     conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12980 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12981 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12982   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12983 else
12984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12985 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12986 if ${ac_cv_lib_dld_dld_link+:} false; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   ac_check_lib_save_LIBS=$LIBS
12990 LIBS="-ldld  $LIBS"
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h.  */
12993
12994 /* Override any GCC internal prototype to avoid an error.
12995    Use char because int might match the return type of a GCC
12996    builtin and then its argument prototype would still apply.  */
12997 #ifdef __cplusplus
12998 extern "C"
12999 #endif
13000 char dld_link ();
13001 int
13002 main ()
13003 {
13004 return dld_link ();
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 if ac_fn_c_try_link "$LINENO"; then :
13010   ac_cv_lib_dld_dld_link=yes
13011 else
13012   ac_cv_lib_dld_dld_link=no
13013 fi
13014 rm -f core conftest.err conftest.$ac_objext \
13015     conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13017 fi
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13019 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13020 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13021   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13022 fi
13023
13024
13025 fi
13026
13027
13028 fi
13029
13030
13031 fi
13032
13033
13034 fi
13035
13036
13037 fi
13038
13039     ;;
13040   esac
13041
13042   if test no = "$lt_cv_dlopen"; then
13043     enable_dlopen=no
13044   else
13045     enable_dlopen=yes
13046   fi
13047
13048   case $lt_cv_dlopen in
13049   dlopen)
13050     save_CPPFLAGS=$CPPFLAGS
13051     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13052
13053     save_LDFLAGS=$LDFLAGS
13054     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13055
13056     save_LIBS=$LIBS
13057     LIBS="$lt_cv_dlopen_libs $LIBS"
13058
13059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13060 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13061 if ${lt_cv_dlopen_self+:} false; then :
13062   $as_echo_n "(cached) " >&6
13063 else
13064           if test yes = "$cross_compiling"; then :
13065   lt_cv_dlopen_self=cross
13066 else
13067   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13068   lt_status=$lt_dlunknown
13069   cat > conftest.$ac_ext <<_LT_EOF
13070 #line $LINENO "configure"
13071 #include "confdefs.h"
13072
13073 #if HAVE_DLFCN_H
13074 #include <dlfcn.h>
13075 #endif
13076
13077 #include <stdio.h>
13078
13079 #ifdef RTLD_GLOBAL
13080 #  define LT_DLGLOBAL           RTLD_GLOBAL
13081 #else
13082 #  ifdef DL_GLOBAL
13083 #    define LT_DLGLOBAL         DL_GLOBAL
13084 #  else
13085 #    define LT_DLGLOBAL         0
13086 #  endif
13087 #endif
13088
13089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13090    find out it does not work in some platform. */
13091 #ifndef LT_DLLAZY_OR_NOW
13092 #  ifdef RTLD_LAZY
13093 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13094 #  else
13095 #    ifdef DL_LAZY
13096 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13097 #    else
13098 #      ifdef RTLD_NOW
13099 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13100 #      else
13101 #        ifdef DL_NOW
13102 #          define LT_DLLAZY_OR_NOW      DL_NOW
13103 #        else
13104 #          define LT_DLLAZY_OR_NOW      0
13105 #        endif
13106 #      endif
13107 #    endif
13108 #  endif
13109 #endif
13110
13111 /* When -fvisibility=hidden is used, assume the code has been annotated
13112    correspondingly for the symbols needed.  */
13113 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13114 int fnord () __attribute__((visibility("default")));
13115 #endif
13116
13117 int fnord () { return 42; }
13118 int main ()
13119 {
13120   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13121   int status = $lt_dlunknown;
13122
13123   if (self)
13124     {
13125       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13126       else
13127         {
13128           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13129           else puts (dlerror ());
13130         }
13131       /* dlclose (self); */
13132     }
13133   else
13134     puts (dlerror ());
13135
13136   return status;
13137 }
13138 _LT_EOF
13139   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13140   (eval $ac_link) 2>&5
13141   ac_status=$?
13142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13143   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13144     (./conftest; exit; ) >&5 2>/dev/null
13145     lt_status=$?
13146     case x$lt_status in
13147       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13148       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13149       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13150     esac
13151   else :
13152     # compilation failed
13153     lt_cv_dlopen_self=no
13154   fi
13155 fi
13156 rm -fr conftest*
13157
13158
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13161 $as_echo "$lt_cv_dlopen_self" >&6; }
13162
13163     if test yes = "$lt_cv_dlopen_self"; then
13164       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13165       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13166 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13167 if ${lt_cv_dlopen_self_static+:} false; then :
13168   $as_echo_n "(cached) " >&6
13169 else
13170           if test yes = "$cross_compiling"; then :
13171   lt_cv_dlopen_self_static=cross
13172 else
13173   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13174   lt_status=$lt_dlunknown
13175   cat > conftest.$ac_ext <<_LT_EOF
13176 #line $LINENO "configure"
13177 #include "confdefs.h"
13178
13179 #if HAVE_DLFCN_H
13180 #include <dlfcn.h>
13181 #endif
13182
13183 #include <stdio.h>
13184
13185 #ifdef RTLD_GLOBAL
13186 #  define LT_DLGLOBAL           RTLD_GLOBAL
13187 #else
13188 #  ifdef DL_GLOBAL
13189 #    define LT_DLGLOBAL         DL_GLOBAL
13190 #  else
13191 #    define LT_DLGLOBAL         0
13192 #  endif
13193 #endif
13194
13195 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13196    find out it does not work in some platform. */
13197 #ifndef LT_DLLAZY_OR_NOW
13198 #  ifdef RTLD_LAZY
13199 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13200 #  else
13201 #    ifdef DL_LAZY
13202 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13203 #    else
13204 #      ifdef RTLD_NOW
13205 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13206 #      else
13207 #        ifdef DL_NOW
13208 #          define LT_DLLAZY_OR_NOW      DL_NOW
13209 #        else
13210 #          define LT_DLLAZY_OR_NOW      0
13211 #        endif
13212 #      endif
13213 #    endif
13214 #  endif
13215 #endif
13216
13217 /* When -fvisibility=hidden is used, assume the code has been annotated
13218    correspondingly for the symbols needed.  */
13219 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13220 int fnord () __attribute__((visibility("default")));
13221 #endif
13222
13223 int fnord () { return 42; }
13224 int main ()
13225 {
13226   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13227   int status = $lt_dlunknown;
13228
13229   if (self)
13230     {
13231       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13232       else
13233         {
13234           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13235           else puts (dlerror ());
13236         }
13237       /* dlclose (self); */
13238     }
13239   else
13240     puts (dlerror ());
13241
13242   return status;
13243 }
13244 _LT_EOF
13245   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13246   (eval $ac_link) 2>&5
13247   ac_status=$?
13248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13249   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13250     (./conftest; exit; ) >&5 2>/dev/null
13251     lt_status=$?
13252     case x$lt_status in
13253       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13254       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13255       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13256     esac
13257   else :
13258     # compilation failed
13259     lt_cv_dlopen_self_static=no
13260   fi
13261 fi
13262 rm -fr conftest*
13263
13264
13265 fi
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13267 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13268     fi
13269
13270     CPPFLAGS=$save_CPPFLAGS
13271     LDFLAGS=$save_LDFLAGS
13272     LIBS=$save_LIBS
13273     ;;
13274   esac
13275
13276   case $lt_cv_dlopen_self in
13277   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13278   *) enable_dlopen_self=unknown ;;
13279   esac
13280
13281   case $lt_cv_dlopen_self_static in
13282   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13283   *) enable_dlopen_self_static=unknown ;;
13284   esac
13285 fi
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303 striplib=
13304 old_striplib=
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13306 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13307 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13308   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13309   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13311 $as_echo "yes" >&6; }
13312 else
13313 # FIXME - insert some real tests, host_os isn't really good enough
13314   case $host_os in
13315   darwin*)
13316     if test -n "$STRIP"; then
13317       striplib="$STRIP -x"
13318       old_striplib="$STRIP -S"
13319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13320 $as_echo "yes" >&6; }
13321     else
13322       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323 $as_echo "no" >&6; }
13324     fi
13325     ;;
13326   *)
13327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13329     ;;
13330   esac
13331 fi
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344   # Report what library types will actually be built
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13346 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13348 $as_echo "$can_build_shared" >&6; }
13349
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13351 $as_echo_n "checking whether to build shared libraries... " >&6; }
13352   test no = "$can_build_shared" && enable_shared=no
13353
13354   # On AIX, shared libraries and static libraries use the same namespace, and
13355   # are all built from PIC.
13356   case $host_os in
13357   aix3*)
13358     test yes = "$enable_shared" && enable_static=no
13359     if test -n "$RANLIB"; then
13360       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13361       postinstall_cmds='$RANLIB $lib'
13362     fi
13363     ;;
13364
13365   aix[4-9]*)
13366     if test ia64 != "$host_cpu"; then
13367       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13368       yes,aix,yes) ;;                   # shared object as lib.so file only
13369       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13370       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13371       esac
13372     fi
13373     ;;
13374   esac
13375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13376 $as_echo "$enable_shared" >&6; }
13377
13378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13379 $as_echo_n "checking whether to build static libraries... " >&6; }
13380   # Make sure either enable_shared or enable_static is yes.
13381   test yes = "$enable_shared" || enable_static=yes
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13383 $as_echo "$enable_static" >&6; }
13384
13385
13386
13387
13388 fi
13389 ac_ext=c
13390 ac_cpp='$CPP $CPPFLAGS'
13391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13394
13395 CC=$lt_save_CC
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411         ac_config_commands="$ac_config_commands libtool"
13412
13413
13414
13415
13416 # Only expand once:
13417
13418
13419
13420 # Check for programs
13421 ac_ext=c
13422 ac_cpp='$CPP $CPPFLAGS'
13423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426 if test -n "$ac_tool_prefix"; then
13427   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if ${ac_cv_prog_CC+:} false; then :
13432   $as_echo_n "(cached) " >&6
13433 else
13434   if test -n "$CC"; then
13435   ac_cv_prog_CC="$CC" # Let the user override the test.
13436 else
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13439 do
13440   IFS=$as_save_IFS
13441   test -z "$as_dir" && as_dir=.
13442     for ac_exec_ext in '' $ac_executable_extensions; do
13443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446     break 2
13447   fi
13448 done
13449   done
13450 IFS=$as_save_IFS
13451
13452 fi
13453 fi
13454 CC=$ac_cv_prog_CC
13455 if test -n "$CC"; then
13456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13457 $as_echo "$CC" >&6; }
13458 else
13459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13461 fi
13462
13463
13464 fi
13465 if test -z "$ac_cv_prog_CC"; then
13466   ac_ct_CC=$CC
13467   # Extract the first word of "gcc", so it can be a program name with args.
13468 set dummy gcc; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13470 $as_echo_n "checking for $ac_word... " >&6; }
13471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13472   $as_echo_n "(cached) " >&6
13473 else
13474   if test -n "$ac_ct_CC"; then
13475   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13476 else
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13479 do
13480   IFS=$as_save_IFS
13481   test -z "$as_dir" && as_dir=.
13482     for ac_exec_ext in '' $ac_executable_extensions; do
13483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13484     ac_cv_prog_ac_ct_CC="gcc"
13485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486     break 2
13487   fi
13488 done
13489   done
13490 IFS=$as_save_IFS
13491
13492 fi
13493 fi
13494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13495 if test -n "$ac_ct_CC"; then
13496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13497 $as_echo "$ac_ct_CC" >&6; }
13498 else
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13501 fi
13502
13503   if test "x$ac_ct_CC" = x; then
13504     CC=""
13505   else
13506     case $cross_compiling:$ac_tool_warned in
13507 yes:)
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13510 ac_tool_warned=yes ;;
13511 esac
13512     CC=$ac_ct_CC
13513   fi
13514 else
13515   CC="$ac_cv_prog_CC"
13516 fi
13517
13518 if test -z "$CC"; then
13519           if test -n "$ac_tool_prefix"; then
13520     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13521 set dummy ${ac_tool_prefix}cc; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if ${ac_cv_prog_CC+:} false; then :
13525   $as_echo_n "(cached) " >&6
13526 else
13527   if test -n "$CC"; then
13528   ac_cv_prog_CC="$CC" # Let the user override the test.
13529 else
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13532 do
13533   IFS=$as_save_IFS
13534   test -z "$as_dir" && as_dir=.
13535     for ac_exec_ext in '' $ac_executable_extensions; do
13536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537     ac_cv_prog_CC="${ac_tool_prefix}cc"
13538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539     break 2
13540   fi
13541 done
13542   done
13543 IFS=$as_save_IFS
13544
13545 fi
13546 fi
13547 CC=$ac_cv_prog_CC
13548 if test -n "$CC"; then
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13550 $as_echo "$CC" >&6; }
13551 else
13552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13554 fi
13555
13556
13557   fi
13558 fi
13559 if test -z "$CC"; then
13560   # Extract the first word of "cc", so it can be a program name with args.
13561 set dummy cc; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if ${ac_cv_prog_CC+:} false; then :
13565   $as_echo_n "(cached) " >&6
13566 else
13567   if test -n "$CC"; then
13568   ac_cv_prog_CC="$CC" # Let the user override the test.
13569 else
13570   ac_prog_rejected=no
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13573 do
13574   IFS=$as_save_IFS
13575   test -z "$as_dir" && as_dir=.
13576     for ac_exec_ext in '' $ac_executable_extensions; do
13577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13579        ac_prog_rejected=yes
13580        continue
13581      fi
13582     ac_cv_prog_CC="cc"
13583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13584     break 2
13585   fi
13586 done
13587   done
13588 IFS=$as_save_IFS
13589
13590 if test $ac_prog_rejected = yes; then
13591   # We found a bogon in the path, so make sure we never use it.
13592   set dummy $ac_cv_prog_CC
13593   shift
13594   if test $# != 0; then
13595     # We chose a different compiler from the bogus one.
13596     # However, it has the same basename, so the bogon will be chosen
13597     # first if we set CC to just the basename; use the full file name.
13598     shift
13599     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13600   fi
13601 fi
13602 fi
13603 fi
13604 CC=$ac_cv_prog_CC
13605 if test -n "$CC"; then
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13607 $as_echo "$CC" >&6; }
13608 else
13609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13611 fi
13612
13613
13614 fi
13615 if test -z "$CC"; then
13616   if test -n "$ac_tool_prefix"; then
13617   for ac_prog in cl.exe
13618   do
13619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622 $as_echo_n "checking for $ac_word... " >&6; }
13623 if ${ac_cv_prog_CC+:} false; then :
13624   $as_echo_n "(cached) " >&6
13625 else
13626   if test -n "$CC"; then
13627   ac_cv_prog_CC="$CC" # Let the user override the test.
13628 else
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13631 do
13632   IFS=$as_save_IFS
13633   test -z "$as_dir" && as_dir=.
13634     for ac_exec_ext in '' $ac_executable_extensions; do
13635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638     break 2
13639   fi
13640 done
13641   done
13642 IFS=$as_save_IFS
13643
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     test -n "$CC" && break
13657   done
13658 fi
13659 if test -z "$CC"; then
13660   ac_ct_CC=$CC
13661   for ac_prog in cl.exe
13662 do
13663   # Extract the first word of "$ac_prog", so it can be a program name with args.
13664 set dummy $ac_prog; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13668   $as_echo_n "(cached) " >&6
13669 else
13670   if test -n "$ac_ct_CC"; then
13671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13672 else
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13675 do
13676   IFS=$as_save_IFS
13677   test -z "$as_dir" && as_dir=.
13678     for ac_exec_ext in '' $ac_executable_extensions; do
13679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13680     ac_cv_prog_ac_ct_CC="$ac_prog"
13681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682     break 2
13683   fi
13684 done
13685   done
13686 IFS=$as_save_IFS
13687
13688 fi
13689 fi
13690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13691 if test -n "$ac_ct_CC"; then
13692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13693 $as_echo "$ac_ct_CC" >&6; }
13694 else
13695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697 fi
13698
13699
13700   test -n "$ac_ct_CC" && break
13701 done
13702
13703   if test "x$ac_ct_CC" = x; then
13704     CC=""
13705   else
13706     case $cross_compiling:$ac_tool_warned in
13707 yes:)
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13710 ac_tool_warned=yes ;;
13711 esac
13712     CC=$ac_ct_CC
13713   fi
13714 fi
13715
13716 fi
13717
13718
13719 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13721 as_fn_error $? "no acceptable C compiler found in \$PATH
13722 See \`config.log' for more details" "$LINENO" 5; }
13723
13724 # Provide some information about the compiler.
13725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13726 set X $ac_compile
13727 ac_compiler=$2
13728 for ac_option in --version -v -V -qversion; do
13729   { { ac_try="$ac_compiler $ac_option >&5"
13730 case "(($ac_try" in
13731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732   *) ac_try_echo=$ac_try;;
13733 esac
13734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13735 $as_echo "$ac_try_echo"; } >&5
13736   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13737   ac_status=$?
13738   if test -s conftest.err; then
13739     sed '10a\
13740 ... rest of stderr output deleted ...
13741          10q' conftest.err >conftest.er1
13742     cat conftest.er1 >&5
13743   fi
13744   rm -f conftest.er1 conftest.err
13745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746   test $ac_status = 0; }
13747 done
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13750 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13751 if ${ac_cv_c_compiler_gnu+:} false; then :
13752   $as_echo_n "(cached) " >&6
13753 else
13754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h.  */
13756
13757 int
13758 main ()
13759 {
13760 #ifndef __GNUC__
13761        choke me
13762 #endif
13763
13764   ;
13765   return 0;
13766 }
13767 _ACEOF
13768 if ac_fn_c_try_compile "$LINENO"; then :
13769   ac_compiler_gnu=yes
13770 else
13771   ac_compiler_gnu=no
13772 fi
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13775
13776 fi
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13778 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13779 if test $ac_compiler_gnu = yes; then
13780   GCC=yes
13781 else
13782   GCC=
13783 fi
13784 ac_test_CFLAGS=${CFLAGS+set}
13785 ac_save_CFLAGS=$CFLAGS
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13787 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13788 if ${ac_cv_prog_cc_g+:} false; then :
13789   $as_echo_n "(cached) " >&6
13790 else
13791   ac_save_c_werror_flag=$ac_c_werror_flag
13792    ac_c_werror_flag=yes
13793    ac_cv_prog_cc_g=no
13794    CFLAGS="-g"
13795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h.  */
13797
13798 int
13799 main ()
13800 {
13801
13802   ;
13803   return 0;
13804 }
13805 _ACEOF
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807   ac_cv_prog_cc_g=yes
13808 else
13809   CFLAGS=""
13810       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h.  */
13812
13813 int
13814 main ()
13815 {
13816
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822
13823 else
13824   ac_c_werror_flag=$ac_save_c_werror_flag
13825          CFLAGS="-g"
13826          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h.  */
13828
13829 int
13830 main ()
13831 {
13832
13833   ;
13834   return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838   ac_cv_prog_cc_g=yes
13839 fi
13840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845    ac_c_werror_flag=$ac_save_c_werror_flag
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13848 $as_echo "$ac_cv_prog_cc_g" >&6; }
13849 if test "$ac_test_CFLAGS" = set; then
13850   CFLAGS=$ac_save_CFLAGS
13851 elif test $ac_cv_prog_cc_g = yes; then
13852   if test "$GCC" = yes; then
13853     CFLAGS="-g -O2"
13854   else
13855     CFLAGS="-g"
13856   fi
13857 else
13858   if test "$GCC" = yes; then
13859     CFLAGS="-O2"
13860   else
13861     CFLAGS=
13862   fi
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13865 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13866 if ${ac_cv_prog_cc_c89+:} false; then :
13867   $as_echo_n "(cached) " >&6
13868 else
13869   ac_cv_prog_cc_c89=no
13870 ac_save_CC=$CC
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873 #include <stdarg.h>
13874 #include <stdio.h>
13875 struct stat;
13876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13877 struct buf { int x; };
13878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13879 static char *e (p, i)
13880      char **p;
13881      int i;
13882 {
13883   return p[i];
13884 }
13885 static char *f (char * (*g) (char **, int), char **p, ...)
13886 {
13887   char *s;
13888   va_list v;
13889   va_start (v,p);
13890   s = g (p, va_arg (v,int));
13891   va_end (v);
13892   return s;
13893 }
13894
13895 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13896    function prototypes and stuff, but not '\xHH' hex character constants.
13897    These don't provoke an error unfortunately, instead are silently treated
13898    as 'x'.  The following induces an error, until -std is added to get
13899    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13900    array size at least.  It's necessary to write '\x00'==0 to get something
13901    that's true only with -std.  */
13902 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13903
13904 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13905    inside strings and character constants.  */
13906 #define FOO(x) 'x'
13907 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13908
13909 int test (int i, double x);
13910 struct s1 {int (*f) (int a);};
13911 struct s2 {int (*f) (double a);};
13912 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13913 int argc;
13914 char **argv;
13915 int
13916 main ()
13917 {
13918 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13924         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13925 do
13926   CC="$ac_save_CC $ac_arg"
13927   if ac_fn_c_try_compile "$LINENO"; then :
13928   ac_cv_prog_cc_c89=$ac_arg
13929 fi
13930 rm -f core conftest.err conftest.$ac_objext
13931   test "x$ac_cv_prog_cc_c89" != "xno" && break
13932 done
13933 rm -f conftest.$ac_ext
13934 CC=$ac_save_CC
13935
13936 fi
13937 # AC_CACHE_VAL
13938 case "x$ac_cv_prog_cc_c89" in
13939   x)
13940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13941 $as_echo "none needed" >&6; } ;;
13942   xno)
13943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13944 $as_echo "unsupported" >&6; } ;;
13945   *)
13946     CC="$CC $ac_cv_prog_cc_c89"
13947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13948 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13949 esac
13950 if test "x$ac_cv_prog_cc_c89" != xno; then :
13951
13952 fi
13953
13954 ac_ext=c
13955 ac_cpp='$CPP $CPPFLAGS'
13956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13959
13960 ac_ext=c
13961 ac_cpp='$CPP $CPPFLAGS'
13962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13966 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13967 if ${am_cv_prog_cc_c_o+:} false; then :
13968   $as_echo_n "(cached) " >&6
13969 else
13970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h.  */
13972
13973 int
13974 main ()
13975 {
13976
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981   # Make sure it works both with $CC and with simple cc.
13982   # Following AC_PROG_CC_C_O, we do the test twice because some
13983   # compilers refuse to overwrite an existing .o file with -o,
13984   # though they will create one.
13985   am_cv_prog_cc_c_o=yes
13986   for am_i in 1 2; do
13987     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13988    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13989    ac_status=$?
13990    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991    (exit $ac_status); } \
13992          && test -f conftest2.$ac_objext; then
13993       : OK
13994     else
13995       am_cv_prog_cc_c_o=no
13996       break
13997     fi
13998   done
13999   rm -f core conftest*
14000   unset am_i
14001 fi
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14003 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14004 if test "$am_cv_prog_cc_c_o" != yes; then
14005    # Losing compiler, so override with the script.
14006    # FIXME: It is wrong to rewrite CC.
14007    # But if we don't then we get into trouble of one sort or another.
14008    # A longer-term fix would be to have automake use am__CC in this case,
14009    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14010    CC="$am_aux_dir/compile $CC"
14011 fi
14012 ac_ext=c
14013 ac_cpp='$CPP $CPPFLAGS'
14014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14017
14018
14019 depcc="$CC"   am_compiler_list=
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14022 $as_echo_n "checking dependency style of $depcc... " >&6; }
14023 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14024   $as_echo_n "(cached) " >&6
14025 else
14026   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14027   # We make a subdir and do the tests there.  Otherwise we can end up
14028   # making bogus files that we don't know about and never remove.  For
14029   # instance it was reported that on HP-UX the gcc test will end up
14030   # making a dummy file named 'D' -- because '-MD' means "put the output
14031   # in D".
14032   rm -rf conftest.dir
14033   mkdir conftest.dir
14034   # Copy depcomp to subdir because otherwise we won't find it if we're
14035   # using a relative directory.
14036   cp "$am_depcomp" conftest.dir
14037   cd conftest.dir
14038   # We will build objects and dependencies in a subdirectory because
14039   # it helps to detect inapplicable dependency modes.  For instance
14040   # both Tru64's cc and ICC support -MD to output dependencies as a
14041   # side effect of compilation, but ICC will put the dependencies in
14042   # the current directory while Tru64 will put them in the object
14043   # directory.
14044   mkdir sub
14045
14046   am_cv_CC_dependencies_compiler_type=none
14047   if test "$am_compiler_list" = ""; then
14048      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14049   fi
14050   am__universal=false
14051   case " $depcc " in #(
14052      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14053      esac
14054
14055   for depmode in $am_compiler_list; do
14056     # Setup a source with many dependencies, because some compilers
14057     # like to wrap large dependency lists on column 80 (with \), and
14058     # we should not choose a depcomp mode which is confused by this.
14059     #
14060     # We need to recreate these files for each test, as the compiler may
14061     # overwrite some of them when testing with obscure command lines.
14062     # This happens at least with the AIX C compiler.
14063     : > sub/conftest.c
14064     for i in 1 2 3 4 5 6; do
14065       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14066       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14067       # Solaris 10 /bin/sh.
14068       echo '/* dummy */' > sub/conftst$i.h
14069     done
14070     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14071
14072     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14073     # mode.  It turns out that the SunPro C++ compiler does not properly
14074     # handle '-M -o', and we need to detect this.  Also, some Intel
14075     # versions had trouble with output in subdirs.
14076     am__obj=sub/conftest.${OBJEXT-o}
14077     am__minus_obj="-o $am__obj"
14078     case $depmode in
14079     gcc)
14080       # This depmode causes a compiler race in universal mode.
14081       test "$am__universal" = false || continue
14082       ;;
14083     nosideeffect)
14084       # After this tag, mechanisms are not by side-effect, so they'll
14085       # only be used when explicitly requested.
14086       if test "x$enable_dependency_tracking" = xyes; then
14087         continue
14088       else
14089         break
14090       fi
14091       ;;
14092     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14093       # This compiler won't grok '-c -o', but also, the minuso test has
14094       # not run yet.  These depmodes are late enough in the game, and
14095       # so weak that their functioning should not be impacted.
14096       am__obj=conftest.${OBJEXT-o}
14097       am__minus_obj=
14098       ;;
14099     none) break ;;
14100     esac
14101     if depmode=$depmode \
14102        source=sub/conftest.c object=$am__obj \
14103        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14104        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14105          >/dev/null 2>conftest.err &&
14106        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14107        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14108        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14109        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14110       # icc doesn't choke on unknown options, it will just issue warnings
14111       # or remarks (even with -Werror).  So we grep stderr for any message
14112       # that says an option was ignored or not supported.
14113       # When given -MP, icc 7.0 and 7.1 complain thusly:
14114       #   icc: Command line warning: ignoring option '-M'; no argument required
14115       # The diagnosis changed in icc 8.0:
14116       #   icc: Command line remark: option '-MP' not supported
14117       if (grep 'ignoring option' conftest.err ||
14118           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14119         am_cv_CC_dependencies_compiler_type=$depmode
14120         break
14121       fi
14122     fi
14123   done
14124
14125   cd ..
14126   rm -rf conftest.dir
14127 else
14128   am_cv_CC_dependencies_compiler_type=none
14129 fi
14130
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14134 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14135
14136  if
14137   test "x$enable_dependency_tracking" != xno \
14138   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14139   am__fastdepCC_TRUE=
14140   am__fastdepCC_FALSE='#'
14141 else
14142   am__fastdepCC_TRUE='#'
14143   am__fastdepCC_FALSE=
14144 fi
14145
14146
14147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14148 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14149 if ${ac_cv_prog_cc_c99+:} false; then :
14150   $as_echo_n "(cached) " >&6
14151 else
14152   ac_cv_prog_cc_c99=no
14153 ac_save_CC=$CC
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h.  */
14156 #include <stdarg.h>
14157 #include <stdbool.h>
14158 #include <stdlib.h>
14159 #include <wchar.h>
14160 #include <stdio.h>
14161
14162 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
14163 #define debug(...) fprintf (stderr, __VA_ARGS__)
14164 #define showlist(...) puts (#__VA_ARGS__)
14165 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14166 static void
14167 test_varargs_macros (void)
14168 {
14169   int x = 1234;
14170   int y = 5678;
14171   debug ("Flag");
14172   debug ("X = %d\n", x);
14173   showlist (The first, second, and third items.);
14174   report (x>y, "x is %d but y is %d", x, y);
14175 }
14176
14177 // Check long long types.
14178 #define BIG64 18446744073709551615ull
14179 #define BIG32 4294967295ul
14180 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14181 #if !BIG_OK
14182   your preprocessor is broken;
14183 #endif
14184 #if BIG_OK
14185 #else
14186   your preprocessor is broken;
14187 #endif
14188 static long long int bignum = -9223372036854775807LL;
14189 static unsigned long long int ubignum = BIG64;
14190
14191 struct incomplete_array
14192 {
14193   int datasize;
14194   double data[];
14195 };
14196
14197 struct named_init {
14198   int number;
14199   const wchar_t *name;
14200   double average;
14201 };
14202
14203 typedef const char *ccp;
14204
14205 static inline int
14206 test_restrict (ccp restrict text)
14207 {
14208   // See if C++-style comments work.
14209   // Iterate through items via the restricted pointer.
14210   // Also check for declarations in for loops.
14211   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14212     continue;
14213   return 0;
14214 }
14215
14216 // Check varargs and va_copy.
14217 static void
14218 test_varargs (const char *format, ...)
14219 {
14220   va_list args;
14221   va_start (args, format);
14222   va_list args_copy;
14223   va_copy (args_copy, args);
14224
14225   const char *str;
14226   int number;
14227   float fnumber;
14228
14229   while (*format)
14230     {
14231       switch (*format++)
14232         {
14233         case 's': // string
14234           str = va_arg (args_copy, const char *);
14235           break;
14236         case 'd': // int
14237           number = va_arg (args_copy, int);
14238           break;
14239         case 'f': // float
14240           fnumber = va_arg (args_copy, double);
14241           break;
14242         default:
14243           break;
14244         }
14245     }
14246   va_end (args_copy);
14247   va_end (args);
14248 }
14249
14250 int
14251 main ()
14252 {
14253
14254   // Check bool.
14255   _Bool success = false;
14256
14257   // Check restrict.
14258   if (test_restrict ("String literal") == 0)
14259     success = true;
14260   char *restrict newvar = "Another string";
14261
14262   // Check varargs.
14263   test_varargs ("s, d' f .", "string", 65, 34.234);
14264   test_varargs_macros ();
14265
14266   // Check flexible array members.
14267   struct incomplete_array *ia =
14268     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14269   ia->datasize = 10;
14270   for (int i = 0; i < ia->datasize; ++i)
14271     ia->data[i] = i * 1.234;
14272
14273   // Check named initializers.
14274   struct named_init ni = {
14275     .number = 34,
14276     .name = L"Test wide string",
14277     .average = 543.34343,
14278   };
14279
14280   ni.number = 58;
14281
14282   int dynamic_array[ni.number];
14283   dynamic_array[ni.number - 1] = 543;
14284
14285   // work around unused variable warnings
14286   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14287           || dynamic_array[ni.number - 1] != 543);
14288
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14294 do
14295   CC="$ac_save_CC $ac_arg"
14296   if ac_fn_c_try_compile "$LINENO"; then :
14297   ac_cv_prog_cc_c99=$ac_arg
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext
14300   test "x$ac_cv_prog_cc_c99" != "xno" && break
14301 done
14302 rm -f conftest.$ac_ext
14303 CC=$ac_save_CC
14304
14305 fi
14306 # AC_CACHE_VAL
14307 case "x$ac_cv_prog_cc_c99" in
14308   x)
14309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14310 $as_echo "none needed" >&6; } ;;
14311   xno)
14312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14313 $as_echo "unsupported" >&6; } ;;
14314   *)
14315     CC="$CC $ac_cv_prog_cc_c99"
14316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14317 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14318 esac
14319 if test "x$ac_cv_prog_cc_c99" != xno; then :
14320
14321 fi
14322
14323
14324
14325 ac_ext=cpp
14326 ac_cpp='$CXXCPP $CPPFLAGS'
14327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14330 if test -z "$CXX"; then
14331   if test -n "$CCC"; then
14332     CXX=$CCC
14333   else
14334     if test -n "$ac_tool_prefix"; then
14335   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14336   do
14337     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 $as_echo_n "checking for $ac_word... " >&6; }
14341 if ${ac_cv_prog_CXX+:} false; then :
14342   $as_echo_n "(cached) " >&6
14343 else
14344   if test -n "$CXX"; then
14345   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14346 else
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14349 do
14350   IFS=$as_save_IFS
14351   test -z "$as_dir" && as_dir=.
14352     for ac_exec_ext in '' $ac_executable_extensions; do
14353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14356     break 2
14357   fi
14358 done
14359   done
14360 IFS=$as_save_IFS
14361
14362 fi
14363 fi
14364 CXX=$ac_cv_prog_CXX
14365 if test -n "$CXX"; then
14366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14367 $as_echo "$CXX" >&6; }
14368 else
14369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14371 fi
14372
14373
14374     test -n "$CXX" && break
14375   done
14376 fi
14377 if test -z "$CXX"; then
14378   ac_ct_CXX=$CXX
14379   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14380 do
14381   # Extract the first word of "$ac_prog", so it can be a program name with args.
14382 set dummy $ac_prog; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14386   $as_echo_n "(cached) " >&6
14387 else
14388   if test -n "$ac_ct_CXX"; then
14389   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14393 do
14394   IFS=$as_save_IFS
14395   test -z "$as_dir" && as_dir=.
14396     for ac_exec_ext in '' $ac_executable_extensions; do
14397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398     ac_cv_prog_ac_ct_CXX="$ac_prog"
14399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400     break 2
14401   fi
14402 done
14403   done
14404 IFS=$as_save_IFS
14405
14406 fi
14407 fi
14408 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14409 if test -n "$ac_ct_CXX"; then
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14411 $as_echo "$ac_ct_CXX" >&6; }
14412 else
14413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14415 fi
14416
14417
14418   test -n "$ac_ct_CXX" && break
14419 done
14420
14421   if test "x$ac_ct_CXX" = x; then
14422     CXX="g++"
14423   else
14424     case $cross_compiling:$ac_tool_warned in
14425 yes:)
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14428 ac_tool_warned=yes ;;
14429 esac
14430     CXX=$ac_ct_CXX
14431   fi
14432 fi
14433
14434   fi
14435 fi
14436 # Provide some information about the compiler.
14437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14438 set X $ac_compile
14439 ac_compiler=$2
14440 for ac_option in --version -v -V -qversion; do
14441   { { ac_try="$ac_compiler $ac_option >&5"
14442 case "(($ac_try" in
14443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444   *) ac_try_echo=$ac_try;;
14445 esac
14446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14447 $as_echo "$ac_try_echo"; } >&5
14448   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14449   ac_status=$?
14450   if test -s conftest.err; then
14451     sed '10a\
14452 ... rest of stderr output deleted ...
14453          10q' conftest.err >conftest.er1
14454     cat conftest.er1 >&5
14455   fi
14456   rm -f conftest.er1 conftest.err
14457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14458   test $ac_status = 0; }
14459 done
14460
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14462 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14463 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14464   $as_echo_n "(cached) " >&6
14465 else
14466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h.  */
14468
14469 int
14470 main ()
14471 {
14472 #ifndef __GNUC__
14473        choke me
14474 #endif
14475
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 if ac_fn_cxx_try_compile "$LINENO"; then :
14481   ac_compiler_gnu=yes
14482 else
14483   ac_compiler_gnu=no
14484 fi
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14487
14488 fi
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14490 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14491 if test $ac_compiler_gnu = yes; then
14492   GXX=yes
14493 else
14494   GXX=
14495 fi
14496 ac_test_CXXFLAGS=${CXXFLAGS+set}
14497 ac_save_CXXFLAGS=$CXXFLAGS
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14499 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14500 if ${ac_cv_prog_cxx_g+:} false; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14504    ac_cxx_werror_flag=yes
14505    ac_cv_prog_cxx_g=no
14506    CXXFLAGS="-g"
14507    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h.  */
14509
14510 int
14511 main ()
14512 {
14513
14514   ;
14515   return 0;
14516 }
14517 _ACEOF
14518 if ac_fn_cxx_try_compile "$LINENO"; then :
14519   ac_cv_prog_cxx_g=yes
14520 else
14521   CXXFLAGS=""
14522       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h.  */
14524
14525 int
14526 main ()
14527 {
14528
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 if ac_fn_cxx_try_compile "$LINENO"; then :
14534
14535 else
14536   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14537          CXXFLAGS="-g"
14538          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h.  */
14540
14541 int
14542 main ()
14543 {
14544
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 if ac_fn_cxx_try_compile "$LINENO"; then :
14550   ac_cv_prog_cxx_g=yes
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 fi
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 fi
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14558 fi
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14560 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14561 if test "$ac_test_CXXFLAGS" = set; then
14562   CXXFLAGS=$ac_save_CXXFLAGS
14563 elif test $ac_cv_prog_cxx_g = yes; then
14564   if test "$GXX" = yes; then
14565     CXXFLAGS="-g -O2"
14566   else
14567     CXXFLAGS="-g"
14568   fi
14569 else
14570   if test "$GXX" = yes; then
14571     CXXFLAGS="-O2"
14572   else
14573     CXXFLAGS=
14574   fi
14575 fi
14576 ac_ext=c
14577 ac_cpp='$CPP $CPPFLAGS'
14578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14581
14582 depcc="$CXX"  am_compiler_list=
14583
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14585 $as_echo_n "checking dependency style of $depcc... " >&6; }
14586 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14587   $as_echo_n "(cached) " >&6
14588 else
14589   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14590   # We make a subdir and do the tests there.  Otherwise we can end up
14591   # making bogus files that we don't know about and never remove.  For
14592   # instance it was reported that on HP-UX the gcc test will end up
14593   # making a dummy file named 'D' -- because '-MD' means "put the output
14594   # in D".
14595   rm -rf conftest.dir
14596   mkdir conftest.dir
14597   # Copy depcomp to subdir because otherwise we won't find it if we're
14598   # using a relative directory.
14599   cp "$am_depcomp" conftest.dir
14600   cd conftest.dir
14601   # We will build objects and dependencies in a subdirectory because
14602   # it helps to detect inapplicable dependency modes.  For instance
14603   # both Tru64's cc and ICC support -MD to output dependencies as a
14604   # side effect of compilation, but ICC will put the dependencies in
14605   # the current directory while Tru64 will put them in the object
14606   # directory.
14607   mkdir sub
14608
14609   am_cv_CXX_dependencies_compiler_type=none
14610   if test "$am_compiler_list" = ""; then
14611      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14612   fi
14613   am__universal=false
14614   case " $depcc " in #(
14615      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14616      esac
14617
14618   for depmode in $am_compiler_list; do
14619     # Setup a source with many dependencies, because some compilers
14620     # like to wrap large dependency lists on column 80 (with \), and
14621     # we should not choose a depcomp mode which is confused by this.
14622     #
14623     # We need to recreate these files for each test, as the compiler may
14624     # overwrite some of them when testing with obscure command lines.
14625     # This happens at least with the AIX C compiler.
14626     : > sub/conftest.c
14627     for i in 1 2 3 4 5 6; do
14628       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14629       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14630       # Solaris 10 /bin/sh.
14631       echo '/* dummy */' > sub/conftst$i.h
14632     done
14633     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14634
14635     # We check with '-c' and '-o' for the sake of the "dashmstdout"
14636     # mode.  It turns out that the SunPro C++ compiler does not properly
14637     # handle '-M -o', and we need to detect this.  Also, some Intel
14638     # versions had trouble with output in subdirs.
14639     am__obj=sub/conftest.${OBJEXT-o}
14640     am__minus_obj="-o $am__obj"
14641     case $depmode in
14642     gcc)
14643       # This depmode causes a compiler race in universal mode.
14644       test "$am__universal" = false || continue
14645       ;;
14646     nosideeffect)
14647       # After this tag, mechanisms are not by side-effect, so they'll
14648       # only be used when explicitly requested.
14649       if test "x$enable_dependency_tracking" = xyes; then
14650         continue
14651       else
14652         break
14653       fi
14654       ;;
14655     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14656       # This compiler won't grok '-c -o', but also, the minuso test has
14657       # not run yet.  These depmodes are late enough in the game, and
14658       # so weak that their functioning should not be impacted.
14659       am__obj=conftest.${OBJEXT-o}
14660       am__minus_obj=
14661       ;;
14662     none) break ;;
14663     esac
14664     if depmode=$depmode \
14665        source=sub/conftest.c object=$am__obj \
14666        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14667        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14668          >/dev/null 2>conftest.err &&
14669        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14670        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14671        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14672        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14673       # icc doesn't choke on unknown options, it will just issue warnings
14674       # or remarks (even with -Werror).  So we grep stderr for any message
14675       # that says an option was ignored or not supported.
14676       # When given -MP, icc 7.0 and 7.1 complain thusly:
14677       #   icc: Command line warning: ignoring option '-M'; no argument required
14678       # The diagnosis changed in icc 8.0:
14679       #   icc: Command line remark: option '-MP' not supported
14680       if (grep 'ignoring option' conftest.err ||
14681           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14682         am_cv_CXX_dependencies_compiler_type=$depmode
14683         break
14684       fi
14685     fi
14686   done
14687
14688   cd ..
14689   rm -rf conftest.dir
14690 else
14691   am_cv_CXX_dependencies_compiler_type=none
14692 fi
14693
14694 fi
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14696 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14697 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14698
14699  if
14700   test "x$enable_dependency_tracking" != xno \
14701   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14702   am__fastdepCXX_TRUE=
14703   am__fastdepCXX_FALSE='#'
14704 else
14705   am__fastdepCXX_TRUE='#'
14706   am__fastdepCXX_FALSE=
14707 fi
14708
14709
14710
14711
14712 func_stripname_cnf ()
14713 {
14714   case $2 in
14715   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14716   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14717   esac
14718 } # func_stripname_cnf
14719
14720       if test -n "$CXX" && ( test no != "$CXX" &&
14721     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14722     (test g++ != "$CXX"))); then
14723   ac_ext=cpp
14724 ac_cpp='$CXXCPP $CPPFLAGS'
14725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14729 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14730 if test -z "$CXXCPP"; then
14731   if ${ac_cv_prog_CXXCPP+:} false; then :
14732   $as_echo_n "(cached) " >&6
14733 else
14734       # Double quotes because CXXCPP needs to be expanded
14735     for CXXCPP in "$CXX -E" "/lib/cpp"
14736     do
14737       ac_preproc_ok=false
14738 for ac_cxx_preproc_warn_flag in '' yes
14739 do
14740   # Use a header file that comes with gcc, so configuring glibc
14741   # with a fresh cross-compiler works.
14742   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14743   # <limits.h> exists even on freestanding compilers.
14744   # On the NeXT, cc -E runs the code through the compiler's parser,
14745   # not just through cpp. "Syntax error" is here to catch this case.
14746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h.  */
14748 #ifdef __STDC__
14749 # include <limits.h>
14750 #else
14751 # include <assert.h>
14752 #endif
14753                      Syntax error
14754 _ACEOF
14755 if ac_fn_cxx_try_cpp "$LINENO"; then :
14756
14757 else
14758   # Broken: fails on valid input.
14759 continue
14760 fi
14761 rm -f conftest.err conftest.i conftest.$ac_ext
14762
14763   # OK, works on sane cases.  Now check whether nonexistent headers
14764   # can be detected and how.
14765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h.  */
14767 #include <ac_nonexistent.h>
14768 _ACEOF
14769 if ac_fn_cxx_try_cpp "$LINENO"; then :
14770   # Broken: success on invalid input.
14771 continue
14772 else
14773   # Passes both tests.
14774 ac_preproc_ok=:
14775 break
14776 fi
14777 rm -f conftest.err conftest.i conftest.$ac_ext
14778
14779 done
14780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14781 rm -f conftest.i conftest.err conftest.$ac_ext
14782 if $ac_preproc_ok; then :
14783   break
14784 fi
14785
14786     done
14787     ac_cv_prog_CXXCPP=$CXXCPP
14788
14789 fi
14790   CXXCPP=$ac_cv_prog_CXXCPP
14791 else
14792   ac_cv_prog_CXXCPP=$CXXCPP
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14795 $as_echo "$CXXCPP" >&6; }
14796 ac_preproc_ok=false
14797 for ac_cxx_preproc_warn_flag in '' yes
14798 do
14799   # Use a header file that comes with gcc, so configuring glibc
14800   # with a fresh cross-compiler works.
14801   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14802   # <limits.h> exists even on freestanding compilers.
14803   # On the NeXT, cc -E runs the code through the compiler's parser,
14804   # not just through cpp. "Syntax error" is here to catch this case.
14805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h.  */
14807 #ifdef __STDC__
14808 # include <limits.h>
14809 #else
14810 # include <assert.h>
14811 #endif
14812                      Syntax error
14813 _ACEOF
14814 if ac_fn_cxx_try_cpp "$LINENO"; then :
14815
14816 else
14817   # Broken: fails on valid input.
14818 continue
14819 fi
14820 rm -f conftest.err conftest.i conftest.$ac_ext
14821
14822   # OK, works on sane cases.  Now check whether nonexistent headers
14823   # can be detected and how.
14824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h.  */
14826 #include <ac_nonexistent.h>
14827 _ACEOF
14828 if ac_fn_cxx_try_cpp "$LINENO"; then :
14829   # Broken: success on invalid input.
14830 continue
14831 else
14832   # Passes both tests.
14833 ac_preproc_ok=:
14834 break
14835 fi
14836 rm -f conftest.err conftest.i conftest.$ac_ext
14837
14838 done
14839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14840 rm -f conftest.i conftest.err conftest.$ac_ext
14841 if $ac_preproc_ok; then :
14842
14843 else
14844   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14846 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14847 See \`config.log' for more details" "$LINENO" 5; }
14848 fi
14849
14850 ac_ext=c
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855
14856 else
14857   _lt_caught_CXX_error=yes
14858 fi
14859
14860 ac_ext=cpp
14861 ac_cpp='$CXXCPP $CPPFLAGS'
14862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14865
14866 archive_cmds_need_lc_CXX=no
14867 allow_undefined_flag_CXX=
14868 always_export_symbols_CXX=no
14869 archive_expsym_cmds_CXX=
14870 compiler_needs_object_CXX=no
14871 export_dynamic_flag_spec_CXX=
14872 hardcode_direct_CXX=no
14873 hardcode_direct_absolute_CXX=no
14874 hardcode_libdir_flag_spec_CXX=
14875 hardcode_libdir_separator_CXX=
14876 hardcode_minus_L_CXX=no
14877 hardcode_shlibpath_var_CXX=unsupported
14878 hardcode_automatic_CXX=no
14879 inherit_rpath_CXX=no
14880 module_cmds_CXX=
14881 module_expsym_cmds_CXX=
14882 link_all_deplibs_CXX=unknown
14883 old_archive_cmds_CXX=$old_archive_cmds
14884 reload_flag_CXX=$reload_flag
14885 reload_cmds_CXX=$reload_cmds
14886 no_undefined_flag_CXX=
14887 whole_archive_flag_spec_CXX=
14888 enable_shared_with_static_runtimes_CXX=no
14889
14890 # Source file extension for C++ test sources.
14891 ac_ext=cpp
14892
14893 # Object file extension for compiled C++ test sources.
14894 objext=o
14895 objext_CXX=$objext
14896
14897 # No sense in running all these tests if we already determined that
14898 # the CXX compiler isn't working.  Some variables (like enable_shared)
14899 # are currently assumed to apply to all compilers on this platform,
14900 # and will be corrupted by setting them based on a non-working compiler.
14901 if test yes != "$_lt_caught_CXX_error"; then
14902   # Code to be used in simple compile tests
14903   lt_simple_compile_test_code="int some_variable = 0;"
14904
14905   # Code to be used in simple link tests
14906   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14907
14908   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14909
14910
14911
14912
14913
14914
14915 # If no C compiler was specified, use CC.
14916 LTCC=${LTCC-"$CC"}
14917
14918 # If no C compiler flags were specified, use CFLAGS.
14919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14920
14921 # Allow CC to be a program name with arguments.
14922 compiler=$CC
14923
14924
14925   # save warnings/boilerplate of simple test code
14926   ac_outfile=conftest.$ac_objext
14927 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14929 _lt_compiler_boilerplate=`cat conftest.err`
14930 $RM conftest*
14931
14932   ac_outfile=conftest.$ac_objext
14933 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14935 _lt_linker_boilerplate=`cat conftest.err`
14936 $RM -r conftest*
14937
14938
14939   # Allow CC to be a program name with arguments.
14940   lt_save_CC=$CC
14941   lt_save_CFLAGS=$CFLAGS
14942   lt_save_LD=$LD
14943   lt_save_GCC=$GCC
14944   GCC=$GXX
14945   lt_save_with_gnu_ld=$with_gnu_ld
14946   lt_save_path_LD=$lt_cv_path_LD
14947   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14948     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14949   else
14950     $as_unset lt_cv_prog_gnu_ld
14951   fi
14952   if test -n "${lt_cv_path_LDCXX+set}"; then
14953     lt_cv_path_LD=$lt_cv_path_LDCXX
14954   else
14955     $as_unset lt_cv_path_LD
14956   fi
14957   test -z "${LDCXX+set}" || LD=$LDCXX
14958   CC=${CXX-"c++"}
14959   CFLAGS=$CXXFLAGS
14960   compiler=$CC
14961   compiler_CXX=$CC
14962   func_cc_basename $compiler
14963 cc_basename=$func_cc_basename_result
14964
14965
14966   if test -n "$compiler"; then
14967     # We don't want -fno-exception when compiling C++ code, so set the
14968     # no_builtin_flag separately
14969     if test yes = "$GXX"; then
14970       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14971     else
14972       lt_prog_compiler_no_builtin_flag_CXX=
14973     fi
14974
14975     if test yes = "$GXX"; then
14976       # Set up default GNU C++ configuration
14977
14978
14979
14980 # Check whether --with-gnu-ld was given.
14981 if test "${with_gnu_ld+set}" = set; then :
14982   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14983 else
14984   with_gnu_ld=no
14985 fi
14986
14987 ac_prog=ld
14988 if test yes = "$GCC"; then
14989   # Check if gcc -print-prog-name=ld gives a path.
14990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14991 $as_echo_n "checking for ld used by $CC... " >&6; }
14992   case $host in
14993   *-*-mingw*)
14994     # gcc leaves a trailing carriage return, which upsets mingw
14995     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14996   *)
14997     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14998   esac
14999   case $ac_prog in
15000     # Accept absolute paths.
15001     [\\/]* | ?:[\\/]*)
15002       re_direlt='/[^/][^/]*/\.\./'
15003       # Canonicalize the pathname of ld
15004       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15005       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15006         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15007       done
15008       test -z "$LD" && LD=$ac_prog
15009       ;;
15010   "")
15011     # If it fails, then pretend we aren't using GCC.
15012     ac_prog=ld
15013     ;;
15014   *)
15015     # If it is relative, then search for the first ld in PATH.
15016     with_gnu_ld=unknown
15017     ;;
15018   esac
15019 elif test yes = "$with_gnu_ld"; then
15020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15021 $as_echo_n "checking for GNU ld... " >&6; }
15022 else
15023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15024 $as_echo_n "checking for non-GNU ld... " >&6; }
15025 fi
15026 if ${lt_cv_path_LD+:} false; then :
15027   $as_echo_n "(cached) " >&6
15028 else
15029   if test -z "$LD"; then
15030   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15031   for ac_dir in $PATH; do
15032     IFS=$lt_save_ifs
15033     test -z "$ac_dir" && ac_dir=.
15034     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15035       lt_cv_path_LD=$ac_dir/$ac_prog
15036       # Check to see if the program is GNU ld.  I'd rather use --version,
15037       # but apparently some variants of GNU ld only accept -v.
15038       # Break only if it was the GNU/non-GNU ld that we prefer.
15039       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15040       *GNU* | *'with BFD'*)
15041         test no != "$with_gnu_ld" && break
15042         ;;
15043       *)
15044         test yes != "$with_gnu_ld" && break
15045         ;;
15046       esac
15047     fi
15048   done
15049   IFS=$lt_save_ifs
15050 else
15051   lt_cv_path_LD=$LD # Let the user override the test with a path.
15052 fi
15053 fi
15054
15055 LD=$lt_cv_path_LD
15056 if test -n "$LD"; then
15057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15058 $as_echo "$LD" >&6; }
15059 else
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15062 fi
15063 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15065 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15066 if ${lt_cv_prog_gnu_ld+:} false; then :
15067   $as_echo_n "(cached) " >&6
15068 else
15069   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15070 case `$LD -v 2>&1 </dev/null` in
15071 *GNU* | *'with BFD'*)
15072   lt_cv_prog_gnu_ld=yes
15073   ;;
15074 *)
15075   lt_cv_prog_gnu_ld=no
15076   ;;
15077 esac
15078 fi
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15080 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15081 with_gnu_ld=$lt_cv_prog_gnu_ld
15082
15083
15084
15085
15086
15087
15088
15089       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15090       # archiving commands below assume that GNU ld is being used.
15091       if test yes = "$with_gnu_ld"; then
15092         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15093         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'
15094
15095         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15096         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15097
15098         # If archive_cmds runs LD, not CC, wlarc should be empty
15099         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15100         #     investigate it a little bit more. (MM)
15101         wlarc='$wl'
15102
15103         # ancient GNU ld didn't support --whole-archive et. al.
15104         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15105           $GREP 'no-whole-archive' > /dev/null; then
15106           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15107         else
15108           whole_archive_flag_spec_CXX=
15109         fi
15110       else
15111         with_gnu_ld=no
15112         wlarc=
15113
15114         # A generic and very simple default shared library creation
15115         # command for GNU C++ for the case where it uses the native
15116         # linker, instead of GNU ld.  If possible, this setting should
15117         # overridden to take advantage of the native linker features on
15118         # the platform it is being used on.
15119         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15120       fi
15121
15122       # Commands to make compiler produce verbose output that lists
15123       # what "hidden" libraries, object files and flags are used when
15124       # linking a shared library.
15125       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15126
15127     else
15128       GXX=no
15129       with_gnu_ld=no
15130       wlarc=
15131     fi
15132
15133     # PORTME: fill in a description of your system's C++ link characteristics
15134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15136     ld_shlibs_CXX=yes
15137     case $host_os in
15138       aix3*)
15139         # FIXME: insert proper C++ library support
15140         ld_shlibs_CXX=no
15141         ;;
15142       aix[4-9]*)
15143         if test ia64 = "$host_cpu"; then
15144           # On IA64, the linker does run time linking by default, so we don't
15145           # have to do anything special.
15146           aix_use_runtimelinking=no
15147           exp_sym_flag='-Bexport'
15148           no_entry_flag=
15149         else
15150           aix_use_runtimelinking=no
15151
15152           # Test if we are trying to use run time linking or normal
15153           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15154           # have runtime linking enabled, and use it for executables.
15155           # For shared libraries, we enable/disable runtime linking
15156           # depending on the kind of the shared library created -
15157           # when "with_aix_soname,aix_use_runtimelinking" is:
15158           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15159           # "aix,yes"  lib.so          shared, rtl:yes, for executables
15160           #            lib.a           static archive
15161           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15162           #            lib.a(lib.so.V) shared, rtl:no,  for executables
15163           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15164           #            lib.a(lib.so.V) shared, rtl:no
15165           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15166           #            lib.a           static archive
15167           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15168             for ld_flag in $LDFLAGS; do
15169               case $ld_flag in
15170               *-brtl*)
15171                 aix_use_runtimelinking=yes
15172                 break
15173                 ;;
15174               esac
15175             done
15176             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15177               # With aix-soname=svr4, we create the lib.so.V shared archives only,
15178               # so we don't have lib.a shared libs to link our executables.
15179               # We have to force runtime linking in this case.
15180               aix_use_runtimelinking=yes
15181               LDFLAGS="$LDFLAGS -Wl,-brtl"
15182             fi
15183             ;;
15184           esac
15185
15186           exp_sym_flag='-bexport'
15187           no_entry_flag='-bnoentry'
15188         fi
15189
15190         # When large executables or shared objects are built, AIX ld can
15191         # have problems creating the table of contents.  If linking a library
15192         # or program results in "error TOC overflow" add -mminimal-toc to
15193         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15194         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15195
15196         archive_cmds_CXX=''
15197         hardcode_direct_CXX=yes
15198         hardcode_direct_absolute_CXX=yes
15199         hardcode_libdir_separator_CXX=':'
15200         link_all_deplibs_CXX=yes
15201         file_list_spec_CXX='$wl-f,'
15202         case $with_aix_soname,$aix_use_runtimelinking in
15203         aix,*) ;;       # no import file
15204         svr4,* | *,yes) # use import file
15205           # The Import File defines what to hardcode.
15206           hardcode_direct_CXX=no
15207           hardcode_direct_absolute_CXX=no
15208           ;;
15209         esac
15210
15211         if test yes = "$GXX"; then
15212           case $host_os in aix4.[012]|aix4.[012].*)
15213           # We only want to do this on AIX 4.2 and lower, the check
15214           # below for broken collect2 doesn't work under 4.3+
15215           collect2name=`$CC -print-prog-name=collect2`
15216           if test -f "$collect2name" &&
15217              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15218           then
15219             # We have reworked collect2
15220             :
15221           else
15222             # We have old collect2
15223             hardcode_direct_CXX=unsupported
15224             # It fails to find uninstalled libraries when the uninstalled
15225             # path is not listed in the libpath.  Setting hardcode_minus_L
15226             # to unsupported forces relinking
15227             hardcode_minus_L_CXX=yes
15228             hardcode_libdir_flag_spec_CXX='-L$libdir'
15229             hardcode_libdir_separator_CXX=
15230           fi
15231           esac
15232           shared_flag='-shared'
15233           if test yes = "$aix_use_runtimelinking"; then
15234             shared_flag=$shared_flag' $wl-G'
15235           fi
15236           # Need to ensure runtime linking is disabled for the traditional
15237           # shared library, or the linker may eventually find shared libraries
15238           # /with/ Import File - we do not want to mix them.
15239           shared_flag_aix='-shared'
15240           shared_flag_svr4='-shared $wl-G'
15241         else
15242           # not using gcc
15243           if test ia64 = "$host_cpu"; then
15244           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15245           # chokes on -Wl,-G. The following line is correct:
15246           shared_flag='-G'
15247           else
15248             if test yes = "$aix_use_runtimelinking"; then
15249               shared_flag='$wl-G'
15250             else
15251               shared_flag='$wl-bM:SRE'
15252             fi
15253             shared_flag_aix='$wl-bM:SRE'
15254             shared_flag_svr4='$wl-G'
15255           fi
15256         fi
15257
15258         export_dynamic_flag_spec_CXX='$wl-bexpall'
15259         # It seems that -bexpall does not export symbols beginning with
15260         # underscore (_), so it is better to generate a list of symbols to
15261         # export.
15262         always_export_symbols_CXX=yes
15263         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15264           # Warning - without using the other runtime loading flags (-brtl),
15265           # -berok will link without error, but may produce a broken library.
15266           # The "-G" linker flag allows undefined symbols.
15267           no_undefined_flag_CXX='-bernotok'
15268           # Determine the default libpath from the value encoded in an empty
15269           # executable.
15270           if test set = "${lt_cv_aix_libpath+set}"; then
15271   aix_libpath=$lt_cv_aix_libpath
15272 else
15273   if ${lt_cv_aix_libpath__CXX+:} false; then :
15274   $as_echo_n "(cached) " >&6
15275 else
15276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h.  */
15278
15279 int
15280 main ()
15281 {
15282
15283   ;
15284   return 0;
15285 }
15286 _ACEOF
15287 if ac_fn_cxx_try_link "$LINENO"; then :
15288
15289   lt_aix_libpath_sed='
15290       /Import File Strings/,/^$/ {
15291           /^0/ {
15292               s/^0  *\([^ ]*\) *$/\1/
15293               p
15294           }
15295       }'
15296   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15297   # Check for a 64-bit object if we didn't find anything.
15298   if test -z "$lt_cv_aix_libpath__CXX"; then
15299     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15300   fi
15301 fi
15302 rm -f core conftest.err conftest.$ac_objext \
15303     conftest$ac_exeext conftest.$ac_ext
15304   if test -z "$lt_cv_aix_libpath__CXX"; then
15305     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15306   fi
15307
15308 fi
15309
15310   aix_libpath=$lt_cv_aix_libpath__CXX
15311 fi
15312
15313           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15314
15315           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
15316         else
15317           if test ia64 = "$host_cpu"; then
15318             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15319             allow_undefined_flag_CXX="-z nodefs"
15320             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"
15321           else
15322             # Determine the default libpath from the value encoded in an
15323             # empty executable.
15324             if test set = "${lt_cv_aix_libpath+set}"; then
15325   aix_libpath=$lt_cv_aix_libpath
15326 else
15327   if ${lt_cv_aix_libpath__CXX+:} false; then :
15328   $as_echo_n "(cached) " >&6
15329 else
15330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h.  */
15332
15333 int
15334 main ()
15335 {
15336
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_cxx_try_link "$LINENO"; then :
15342
15343   lt_aix_libpath_sed='
15344       /Import File Strings/,/^$/ {
15345           /^0/ {
15346               s/^0  *\([^ ]*\) *$/\1/
15347               p
15348           }
15349       }'
15350   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15351   # Check for a 64-bit object if we didn't find anything.
15352   if test -z "$lt_cv_aix_libpath__CXX"; then
15353     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15354   fi
15355 fi
15356 rm -f core conftest.err conftest.$ac_objext \
15357     conftest$ac_exeext conftest.$ac_ext
15358   if test -z "$lt_cv_aix_libpath__CXX"; then
15359     lt_cv_aix_libpath__CXX=/usr/lib:/lib
15360   fi
15361
15362 fi
15363
15364   aix_libpath=$lt_cv_aix_libpath__CXX
15365 fi
15366
15367             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15368             # Warning - without using the other run time loading flags,
15369             # -berok will link without error, but may produce a broken library.
15370             no_undefined_flag_CXX=' $wl-bernotok'
15371             allow_undefined_flag_CXX=' $wl-berok'
15372             if test yes = "$with_gnu_ld"; then
15373               # We only use this code for GNU lds that support --whole-archive.
15374               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15375             else
15376               # Exported symbols can be pulled into shared objects from archives
15377               whole_archive_flag_spec_CXX='$convenience'
15378             fi
15379             archive_cmds_need_lc_CXX=yes
15380             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15381             # -brtl affects multiple linker settings, -berok does not and is overridden later
15382             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15383             if test svr4 != "$with_aix_soname"; then
15384               # This is similar to how AIX traditionally builds its shared
15385               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15386               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'
15387             fi
15388             if test aix != "$with_aix_soname"; then
15389               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'
15390             else
15391               # used by -dlpreopen to get the symbols
15392               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15393             fi
15394             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15395           fi
15396         fi
15397         ;;
15398
15399       beos*)
15400         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15401           allow_undefined_flag_CXX=unsupported
15402           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15403           # support --undefined.  This deserves some investigation.  FIXME
15404           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15405         else
15406           ld_shlibs_CXX=no
15407         fi
15408         ;;
15409
15410       chorus*)
15411         case $cc_basename in
15412           *)
15413           # FIXME: insert proper C++ library support
15414           ld_shlibs_CXX=no
15415           ;;
15416         esac
15417         ;;
15418
15419       cygwin* | mingw* | pw32* | cegcc*)
15420         case $GXX,$cc_basename in
15421         ,cl* | no,cl*)
15422           # Native MSVC
15423           # hardcode_libdir_flag_spec is actually meaningless, as there is
15424           # no search path for DLLs.
15425           hardcode_libdir_flag_spec_CXX=' '
15426           allow_undefined_flag_CXX=unsupported
15427           always_export_symbols_CXX=yes
15428           file_list_spec_CXX='@'
15429           # Tell ltmain to make .lib files, not .a files.
15430           libext=lib
15431           # Tell ltmain to make .dll files, not .so files.
15432           shrext_cmds=.dll
15433           # FIXME: Setting linknames here is a bad hack.
15434           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15435           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15436               cp "$export_symbols" "$output_objdir/$soname.def";
15437               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15438             else
15439               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15440             fi~
15441             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15442             linknames='
15443           # The linker will not automatically build a static lib if we build a DLL.
15444           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15445           enable_shared_with_static_runtimes_CXX=yes
15446           # Don't use ranlib
15447           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15448           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15449             lt_tool_outputfile="@TOOL_OUTPUT@"~
15450             case $lt_outputfile in
15451               *.exe|*.EXE) ;;
15452               *)
15453                 lt_outputfile=$lt_outputfile.exe
15454                 lt_tool_outputfile=$lt_tool_outputfile.exe
15455                 ;;
15456             esac~
15457             func_to_tool_file "$lt_outputfile"~
15458             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15459               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15460               $RM "$lt_outputfile.manifest";
15461             fi'
15462           ;;
15463         *)
15464           # g++
15465           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15466           # as there is no search path for DLLs.
15467           hardcode_libdir_flag_spec_CXX='-L$libdir'
15468           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15469           allow_undefined_flag_CXX=unsupported
15470           always_export_symbols_CXX=no
15471           enable_shared_with_static_runtimes_CXX=yes
15472
15473           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15474             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'
15475             # If the export-symbols file already is a .def file, use it as
15476             # is; otherwise, prepend EXPORTS...
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             else
15480               echo EXPORTS > $output_objdir/$soname.def;
15481               cat $export_symbols >> $output_objdir/$soname.def;
15482             fi~
15483             $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'
15484           else
15485             ld_shlibs_CXX=no
15486           fi
15487           ;;
15488         esac
15489         ;;
15490       darwin* | rhapsody*)
15491
15492
15493   archive_cmds_need_lc_CXX=no
15494   hardcode_direct_CXX=no
15495   hardcode_automatic_CXX=yes
15496   hardcode_shlibpath_var_CXX=unsupported
15497   if test yes = "$lt_cv_ld_force_load"; then
15498     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\"`'
15499
15500   else
15501     whole_archive_flag_spec_CXX=''
15502   fi
15503   link_all_deplibs_CXX=yes
15504   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15505   case $cc_basename in
15506      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15507      *) _lt_dar_can_shared=$GCC ;;
15508   esac
15509   if test yes = "$_lt_dar_can_shared"; then
15510     output_verbose_link_cmd=func_echo_all
15511     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"
15512     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15513     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"
15514     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"
15515        if test yes != "$lt_cv_apple_cc_single_mod"; then
15516       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"
15517       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"
15518     fi
15519
15520   else
15521   ld_shlibs_CXX=no
15522   fi
15523
15524         ;;
15525
15526       os2*)
15527         hardcode_libdir_flag_spec_CXX='-L$libdir'
15528         hardcode_minus_L_CXX=yes
15529         allow_undefined_flag_CXX=unsupported
15530         shrext_cmds=.dll
15531         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15532           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15533           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15534           $ECHO EXPORTS >> $output_objdir/$libname.def~
15535           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15536           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15537           emximp -o $lib $output_objdir/$libname.def'
15538         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15539           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15540           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15541           $ECHO EXPORTS >> $output_objdir/$libname.def~
15542           prefix_cmds="$SED"~
15543           if test EXPORTS = "`$SED 1q $export_symbols`"; then
15544             prefix_cmds="$prefix_cmds -e 1d";
15545           fi~
15546           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15547           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15548           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15549           emximp -o $lib $output_objdir/$libname.def'
15550         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15551         enable_shared_with_static_runtimes_CXX=yes
15552         ;;
15553
15554       dgux*)
15555         case $cc_basename in
15556           ec++*)
15557             # FIXME: insert proper C++ library support
15558             ld_shlibs_CXX=no
15559             ;;
15560           ghcx*)
15561             # Green Hills C++ Compiler
15562             # FIXME: insert proper C++ library support
15563             ld_shlibs_CXX=no
15564             ;;
15565           *)
15566             # FIXME: insert proper C++ library support
15567             ld_shlibs_CXX=no
15568             ;;
15569         esac
15570         ;;
15571
15572       freebsd2.*)
15573         # C++ shared libraries reported to be fairly broken before
15574         # switch to ELF
15575         ld_shlibs_CXX=no
15576         ;;
15577
15578       freebsd-elf*)
15579         archive_cmds_need_lc_CXX=no
15580         ;;
15581
15582       freebsd* | dragonfly*)
15583         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15584         # conventions
15585         ld_shlibs_CXX=yes
15586         ;;
15587
15588       haiku*)
15589         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15590         link_all_deplibs_CXX=yes
15591         ;;
15592
15593       hpux9*)
15594         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15595         hardcode_libdir_separator_CXX=:
15596         export_dynamic_flag_spec_CXX='$wl-E'
15597         hardcode_direct_CXX=yes
15598         hardcode_minus_L_CXX=yes # Not in the search PATH,
15599                                              # but as the default
15600                                              # location of the library.
15601
15602         case $cc_basename in
15603           CC*)
15604             # FIXME: insert proper C++ library support
15605             ld_shlibs_CXX=no
15606             ;;
15607           aCC*)
15608             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'
15609             # Commands to make compiler produce verbose output that lists
15610             # what "hidden" libraries, object files and flags are used when
15611             # linking a shared library.
15612             #
15613             # There doesn't appear to be a way to prevent this compiler from
15614             # explicitly linking system object files so we need to strip them
15615             # from the output so that they don't get included in the library
15616             # dependencies.
15617             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"'
15618             ;;
15619           *)
15620             if test yes = "$GXX"; then
15621               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'
15622             else
15623               # FIXME: insert proper C++ library support
15624               ld_shlibs_CXX=no
15625             fi
15626             ;;
15627         esac
15628         ;;
15629
15630       hpux10*|hpux11*)
15631         if test no = "$with_gnu_ld"; then
15632           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15633           hardcode_libdir_separator_CXX=:
15634
15635           case $host_cpu in
15636             hppa*64*|ia64*)
15637               ;;
15638             *)
15639               export_dynamic_flag_spec_CXX='$wl-E'
15640               ;;
15641           esac
15642         fi
15643         case $host_cpu in
15644           hppa*64*|ia64*)
15645             hardcode_direct_CXX=no
15646             hardcode_shlibpath_var_CXX=no
15647             ;;
15648           *)
15649             hardcode_direct_CXX=yes
15650             hardcode_direct_absolute_CXX=yes
15651             hardcode_minus_L_CXX=yes # Not in the search PATH,
15652                                                  # but as the default
15653                                                  # location of the library.
15654             ;;
15655         esac
15656
15657         case $cc_basename in
15658           CC*)
15659             # FIXME: insert proper C++ library support
15660             ld_shlibs_CXX=no
15661             ;;
15662           aCC*)
15663             case $host_cpu in
15664               hppa*64*)
15665                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15666                 ;;
15667               ia64*)
15668                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15669                 ;;
15670               *)
15671                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15672                 ;;
15673             esac
15674             # Commands to make compiler produce verbose output that lists
15675             # what "hidden" libraries, object files and flags are used when
15676             # linking a shared library.
15677             #
15678             # There doesn't appear to be a way to prevent this compiler from
15679             # explicitly linking system object files so we need to strip them
15680             # from the output so that they don't get included in the library
15681             # dependencies.
15682             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"'
15683             ;;
15684           *)
15685             if test yes = "$GXX"; then
15686               if test no = "$with_gnu_ld"; then
15687                 case $host_cpu in
15688                   hppa*64*)
15689                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15690                     ;;
15691                   ia64*)
15692                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15693                     ;;
15694                   *)
15695                     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'
15696                     ;;
15697                 esac
15698               fi
15699             else
15700               # FIXME: insert proper C++ library support
15701               ld_shlibs_CXX=no
15702             fi
15703             ;;
15704         esac
15705         ;;
15706
15707       interix[3-9]*)
15708         hardcode_direct_CXX=no
15709         hardcode_shlibpath_var_CXX=no
15710         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15711         export_dynamic_flag_spec_CXX='$wl-E'
15712         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15713         # Instead, shared libraries are loaded at an image base (0x10000000 by
15714         # default) and relocated if they conflict, which is a slow very memory
15715         # consuming and fragmenting process.  To avoid this, we pick a random,
15716         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15717         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15718         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'
15719         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'
15720         ;;
15721       irix5* | irix6*)
15722         case $cc_basename in
15723           CC*)
15724             # SGI C++
15725             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'
15726
15727             # Archives containing C++ object files must be created using
15728             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15729             # necessary to make sure instantiated templates are included
15730             # in the archive.
15731             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15732             ;;
15733           *)
15734             if test yes = "$GXX"; then
15735               if test no = "$with_gnu_ld"; then
15736                 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'
15737               else
15738                 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'
15739               fi
15740             fi
15741             link_all_deplibs_CXX=yes
15742             ;;
15743         esac
15744         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15745         hardcode_libdir_separator_CXX=:
15746         inherit_rpath_CXX=yes
15747         ;;
15748
15749       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15750         case $cc_basename in
15751           KCC*)
15752             # Kuck and Associates, Inc. (KAI) C++ Compiler
15753
15754             # KCC will only create a shared library if the output file
15755             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15756             # to its proper name (with version) after linking.
15757             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'
15758             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'
15759             # Commands to make compiler produce verbose output that lists
15760             # what "hidden" libraries, object files and flags are used when
15761             # linking a shared library.
15762             #
15763             # There doesn't appear to be a way to prevent this compiler from
15764             # explicitly linking system object files so we need to strip them
15765             # from the output so that they don't get included in the library
15766             # dependencies.
15767             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"'
15768
15769             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15770             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15771
15772             # Archives containing C++ object files must be created using
15773             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15774             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15775             ;;
15776           icpc* | ecpc* )
15777             # Intel C++
15778             with_gnu_ld=yes
15779             # version 8.0 and above of icpc choke on multiply defined symbols
15780             # if we add $predep_objects and $postdep_objects, however 7.1 and
15781             # earlier do not add the objects themselves.
15782             case `$CC -V 2>&1` in
15783               *"Version 7."*)
15784                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15785                 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'
15786                 ;;
15787               *)  # Version 8.0 or newer
15788                 tmp_idyn=
15789                 case $host_cpu in
15790                   ia64*) tmp_idyn=' -i_dynamic';;
15791                 esac
15792                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15793                 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'
15794                 ;;
15795             esac
15796             archive_cmds_need_lc_CXX=no
15797             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15798             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15799             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15800             ;;
15801           pgCC* | pgcpp*)
15802             # Portland Group C++ compiler
15803             case `$CC -V` in
15804             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15805               prelink_cmds_CXX='tpldir=Template.dir~
15806                rm -rf $tpldir~
15807                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15808                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15809               old_archive_cmds_CXX='tpldir=Template.dir~
15810                 rm -rf $tpldir~
15811                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15812                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15813                 $RANLIB $oldlib'
15814               archive_cmds_CXX='tpldir=Template.dir~
15815                 rm -rf $tpldir~
15816                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15817                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15818               archive_expsym_cmds_CXX='tpldir=Template.dir~
15819                 rm -rf $tpldir~
15820                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15821                 $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'
15822               ;;
15823             *) # Version 6 and above use weak symbols
15824               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15825               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'
15826               ;;
15827             esac
15828
15829             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15830             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15831             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'
15832             ;;
15833           cxx*)
15834             # Compaq C++
15835             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15836             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'
15837
15838             runpath_var=LD_RUN_PATH
15839             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15840             hardcode_libdir_separator_CXX=:
15841
15842             # Commands to make compiler produce verbose output that lists
15843             # what "hidden" libraries, object files and flags are used when
15844             # linking a shared library.
15845             #
15846             # There doesn't appear to be a way to prevent this compiler from
15847             # explicitly linking system object files so we need to strip them
15848             # from the output so that they don't get included in the library
15849             # dependencies.
15850             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'
15851             ;;
15852           xl* | mpixl* | bgxl*)
15853             # IBM XL 8.0 on PPC, with GNU ld
15854             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15855             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15856             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15857             if test yes = "$supports_anon_versioning"; then
15858               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15859                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15860                 echo "local: *; };" >> $output_objdir/$libname.ver~
15861                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15862             fi
15863             ;;
15864           *)
15865             case `$CC -V 2>&1 | sed 5q` in
15866             *Sun\ C*)
15867               # Sun C++ 5.9
15868               no_undefined_flag_CXX=' -zdefs'
15869               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15870               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'
15871               hardcode_libdir_flag_spec_CXX='-R$libdir'
15872               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'
15873               compiler_needs_object_CXX=yes
15874
15875               # Not sure whether something based on
15876               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15877               # would be better.
15878               output_verbose_link_cmd='func_echo_all'
15879
15880               # Archives containing C++ object files must be created using
15881               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15882               # necessary to make sure instantiated templates are included
15883               # in the archive.
15884               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15885               ;;
15886             esac
15887             ;;
15888         esac
15889         ;;
15890
15891       lynxos*)
15892         # FIXME: insert proper C++ library support
15893         ld_shlibs_CXX=no
15894         ;;
15895
15896       m88k*)
15897         # FIXME: insert proper C++ library support
15898         ld_shlibs_CXX=no
15899         ;;
15900
15901       mvs*)
15902         case $cc_basename in
15903           cxx*)
15904             # FIXME: insert proper C++ library support
15905             ld_shlibs_CXX=no
15906             ;;
15907           *)
15908             # FIXME: insert proper C++ library support
15909             ld_shlibs_CXX=no
15910             ;;
15911         esac
15912         ;;
15913
15914       netbsd*)
15915         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15916           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15917           wlarc=
15918           hardcode_libdir_flag_spec_CXX='-R$libdir'
15919           hardcode_direct_CXX=yes
15920           hardcode_shlibpath_var_CXX=no
15921         fi
15922         # Workaround some broken pre-1.5 toolchains
15923         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15924         ;;
15925
15926       *nto* | *qnx*)
15927         ld_shlibs_CXX=yes
15928         ;;
15929
15930       openbsd* | bitrig*)
15931         if test -f /usr/libexec/ld.so; then
15932           hardcode_direct_CXX=yes
15933           hardcode_shlibpath_var_CXX=no
15934           hardcode_direct_absolute_CXX=yes
15935           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15936           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15937           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15938             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15939             export_dynamic_flag_spec_CXX='$wl-E'
15940             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15941           fi
15942           output_verbose_link_cmd=func_echo_all
15943         else
15944           ld_shlibs_CXX=no
15945         fi
15946         ;;
15947
15948       osf3* | osf4* | osf5*)
15949         case $cc_basename in
15950           KCC*)
15951             # Kuck and Associates, Inc. (KAI) C++ Compiler
15952
15953             # KCC will only create a shared library if the output file
15954             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15955             # to its proper name (with version) after linking.
15956             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'
15957
15958             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15959             hardcode_libdir_separator_CXX=:
15960
15961             # Archives containing C++ object files must be created using
15962             # the KAI C++ compiler.
15963             case $host in
15964               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15965               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15966             esac
15967             ;;
15968           RCC*)
15969             # Rational C++ 2.4.1
15970             # FIXME: insert proper C++ library support
15971             ld_shlibs_CXX=no
15972             ;;
15973           cxx*)
15974             case $host in
15975               osf3*)
15976                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15977                 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'
15978                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15979                 ;;
15980               *)
15981                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15982                 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'
15983                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15984                   echo "-hidden">> $lib.exp~
15985                   $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~
15986                   $RM $lib.exp'
15987                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15988                 ;;
15989             esac
15990
15991             hardcode_libdir_separator_CXX=:
15992
15993             # Commands to make compiler produce verbose output that lists
15994             # what "hidden" libraries, object files and flags are used when
15995             # linking a shared library.
15996             #
15997             # There doesn't appear to be a way to prevent this compiler from
15998             # explicitly linking system object files so we need to strip them
15999             # from the output so that they don't get included in the library
16000             # dependencies.
16001             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"'
16002             ;;
16003           *)
16004             if test yes,no = "$GXX,$with_gnu_ld"; then
16005               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16006               case $host in
16007                 osf3*)
16008                   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'
16009                   ;;
16010                 *)
16011                   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'
16012                   ;;
16013               esac
16014
16015               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16016               hardcode_libdir_separator_CXX=:
16017
16018               # Commands to make compiler produce verbose output that lists
16019               # what "hidden" libraries, object files and flags are used when
16020               # linking a shared library.
16021               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16022
16023             else
16024               # FIXME: insert proper C++ library support
16025               ld_shlibs_CXX=no
16026             fi
16027             ;;
16028         esac
16029         ;;
16030
16031       psos*)
16032         # FIXME: insert proper C++ library support
16033         ld_shlibs_CXX=no
16034         ;;
16035
16036       sunos4*)
16037         case $cc_basename in
16038           CC*)
16039             # Sun C++ 4.x
16040             # FIXME: insert proper C++ library support
16041             ld_shlibs_CXX=no
16042             ;;
16043           lcc*)
16044             # Lucid
16045             # FIXME: insert proper C++ library support
16046             ld_shlibs_CXX=no
16047             ;;
16048           *)
16049             # FIXME: insert proper C++ library support
16050             ld_shlibs_CXX=no
16051             ;;
16052         esac
16053         ;;
16054
16055       solaris*)
16056         case $cc_basename in
16057           CC* | sunCC*)
16058             # Sun C++ 4.2, 5.x and Centerline C++
16059             archive_cmds_need_lc_CXX=yes
16060             no_undefined_flag_CXX=' -zdefs'
16061             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16062             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16063               $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'
16064
16065             hardcode_libdir_flag_spec_CXX='-R$libdir'
16066             hardcode_shlibpath_var_CXX=no
16067             case $host_os in
16068               solaris2.[0-5] | solaris2.[0-5].*) ;;
16069               *)
16070                 # The compiler driver will combine and reorder linker options,
16071                 # but understands '-z linker_flag'.
16072                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16073                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16074                 ;;
16075             esac
16076             link_all_deplibs_CXX=yes
16077
16078             output_verbose_link_cmd='func_echo_all'
16079
16080             # Archives containing C++ object files must be created using
16081             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16082             # necessary to make sure instantiated templates are included
16083             # in the archive.
16084             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16085             ;;
16086           gcx*)
16087             # Green Hills C++ Compiler
16088             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16089
16090             # The C++ compiler must be used to create the archive.
16091             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16092             ;;
16093           *)
16094             # GNU C++ compiler with Solaris linker
16095             if test yes,no = "$GXX,$with_gnu_ld"; then
16096               no_undefined_flag_CXX=' $wl-z ${wl}defs'
16097               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16098                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16099                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16100                   $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'
16101
16102                 # Commands to make compiler produce verbose output that lists
16103                 # what "hidden" libraries, object files and flags are used when
16104                 # linking a shared library.
16105                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16106               else
16107                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16108                 # platform.
16109                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16110                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16111                   $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'
16112
16113                 # Commands to make compiler produce verbose output that lists
16114                 # what "hidden" libraries, object files and flags are used when
16115                 # linking a shared library.
16116                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16117               fi
16118
16119               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16120               case $host_os in
16121                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16122                 *)
16123                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16124                   ;;
16125               esac
16126             fi
16127             ;;
16128         esac
16129         ;;
16130
16131     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16132       no_undefined_flag_CXX='$wl-z,text'
16133       archive_cmds_need_lc_CXX=no
16134       hardcode_shlibpath_var_CXX=no
16135       runpath_var='LD_RUN_PATH'
16136
16137       case $cc_basename in
16138         CC*)
16139           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141           ;;
16142         *)
16143           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16144           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16145           ;;
16146       esac
16147       ;;
16148
16149       sysv5* | sco3.2v5* | sco5v6*)
16150         # Note: We CANNOT use -z defs as we might desire, because we do not
16151         # link with -lc, and that would cause any symbols used from libc to
16152         # always be unresolved, which means just about no library would
16153         # ever link correctly.  If we're not using GNU ld we use -z text
16154         # though, which does catch some bad symbols but isn't as heavy-handed
16155         # as -z defs.
16156         no_undefined_flag_CXX='$wl-z,text'
16157         allow_undefined_flag_CXX='$wl-z,nodefs'
16158         archive_cmds_need_lc_CXX=no
16159         hardcode_shlibpath_var_CXX=no
16160         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16161         hardcode_libdir_separator_CXX=':'
16162         link_all_deplibs_CXX=yes
16163         export_dynamic_flag_spec_CXX='$wl-Bexport'
16164         runpath_var='LD_RUN_PATH'
16165
16166         case $cc_basename in
16167           CC*)
16168             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16169             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16170             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16171               '"$old_archive_cmds_CXX"
16172             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16173               '"$reload_cmds_CXX"
16174             ;;
16175           *)
16176             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16177             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16178             ;;
16179         esac
16180       ;;
16181
16182       tandem*)
16183         case $cc_basename in
16184           NCC*)
16185             # NonStop-UX NCC 3.20
16186             # FIXME: insert proper C++ library support
16187             ld_shlibs_CXX=no
16188             ;;
16189           *)
16190             # FIXME: insert proper C++ library support
16191             ld_shlibs_CXX=no
16192             ;;
16193         esac
16194         ;;
16195
16196       vxworks*)
16197         # FIXME: insert proper C++ library support
16198         ld_shlibs_CXX=no
16199         ;;
16200
16201       *)
16202         # FIXME: insert proper C++ library support
16203         ld_shlibs_CXX=no
16204         ;;
16205     esac
16206
16207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16208 $as_echo "$ld_shlibs_CXX" >&6; }
16209     test no = "$ld_shlibs_CXX" && can_build_shared=no
16210
16211     GCC_CXX=$GXX
16212     LD_CXX=$LD
16213
16214     ## CAVEAT EMPTOR:
16215     ## There is no encapsulation within the following macros, do not change
16216     ## the running order or otherwise move them around unless you know exactly
16217     ## what you are doing...
16218     # Dependencies to place before and after the object being linked:
16219 predep_objects_CXX=
16220 postdep_objects_CXX=
16221 predeps_CXX=
16222 postdeps_CXX=
16223 compiler_lib_search_path_CXX=
16224
16225 cat > conftest.$ac_ext <<_LT_EOF
16226 class Foo
16227 {
16228 public:
16229   Foo (void) { a = 0; }
16230 private:
16231   int a;
16232 };
16233 _LT_EOF
16234
16235
16236 _lt_libdeps_save_CFLAGS=$CFLAGS
16237 case "$CC $CFLAGS " in #(
16238 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16239 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16240 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16241 esac
16242
16243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16244   (eval $ac_compile) 2>&5
16245   ac_status=$?
16246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16247   test $ac_status = 0; }; then
16248   # Parse the compiler output and extract the necessary
16249   # objects, libraries and library flags.
16250
16251   # Sentinel used to keep track of whether or not we are before
16252   # the conftest object file.
16253   pre_test_object_deps_done=no
16254
16255   for p in `eval "$output_verbose_link_cmd"`; do
16256     case $prev$p in
16257
16258     -L* | -R* | -l*)
16259        # Some compilers place space between "-{L,R}" and the path.
16260        # Remove the space.
16261        if test x-L = "$p" ||
16262           test x-R = "$p"; then
16263          prev=$p
16264          continue
16265        fi
16266
16267        # Expand the sysroot to ease extracting the directories later.
16268        if test -z "$prev"; then
16269          case $p in
16270          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16271          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16272          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16273          esac
16274        fi
16275        case $p in
16276        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16277        esac
16278        if test no = "$pre_test_object_deps_done"; then
16279          case $prev in
16280          -L | -R)
16281            # Internal compiler library paths should come after those
16282            # provided the user.  The postdeps already come after the
16283            # user supplied libs so there is no need to process them.
16284            if test -z "$compiler_lib_search_path_CXX"; then
16285              compiler_lib_search_path_CXX=$prev$p
16286            else
16287              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16288            fi
16289            ;;
16290          # The "-l" case would never come before the object being
16291          # linked, so don't bother handling this case.
16292          esac
16293        else
16294          if test -z "$postdeps_CXX"; then
16295            postdeps_CXX=$prev$p
16296          else
16297            postdeps_CXX="${postdeps_CXX} $prev$p"
16298          fi
16299        fi
16300        prev=
16301        ;;
16302
16303     *.lto.$objext) ;; # Ignore GCC LTO objects
16304     *.$objext)
16305        # This assumes that the test object file only shows up
16306        # once in the compiler output.
16307        if test "$p" = "conftest.$objext"; then
16308          pre_test_object_deps_done=yes
16309          continue
16310        fi
16311
16312        if test no = "$pre_test_object_deps_done"; then
16313          if test -z "$predep_objects_CXX"; then
16314            predep_objects_CXX=$p
16315          else
16316            predep_objects_CXX="$predep_objects_CXX $p"
16317          fi
16318        else
16319          if test -z "$postdep_objects_CXX"; then
16320            postdep_objects_CXX=$p
16321          else
16322            postdep_objects_CXX="$postdep_objects_CXX $p"
16323          fi
16324        fi
16325        ;;
16326
16327     *) ;; # Ignore the rest.
16328
16329     esac
16330   done
16331
16332   # Clean up.
16333   rm -f a.out a.exe
16334 else
16335   echo "libtool.m4: error: problem compiling CXX test program"
16336 fi
16337
16338 $RM -f confest.$objext
16339 CFLAGS=$_lt_libdeps_save_CFLAGS
16340
16341 # PORTME: override above test on systems where it is broken
16342 case $host_os in
16343 interix[3-9]*)
16344   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16345   # hack all around it, let's just trust "g++" to DTRT.
16346   predep_objects_CXX=
16347   postdep_objects_CXX=
16348   postdeps_CXX=
16349   ;;
16350 esac
16351
16352
16353 case " $postdeps_CXX " in
16354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16355 esac
16356  compiler_lib_search_dirs_CXX=
16357 if test -n "${compiler_lib_search_path_CXX}"; then
16358  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16359 fi
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391     lt_prog_compiler_wl_CXX=
16392 lt_prog_compiler_pic_CXX=
16393 lt_prog_compiler_static_CXX=
16394
16395
16396   # C++ specific cases for pic, static, wl, etc.
16397   if test yes = "$GXX"; then
16398     lt_prog_compiler_wl_CXX='-Wl,'
16399     lt_prog_compiler_static_CXX='-static'
16400
16401     case $host_os in
16402     aix*)
16403       # All AIX code is PIC.
16404       if test ia64 = "$host_cpu"; then
16405         # AIX 5 now supports IA64 processor
16406         lt_prog_compiler_static_CXX='-Bstatic'
16407       fi
16408       lt_prog_compiler_pic_CXX='-fPIC'
16409       ;;
16410
16411     amigaos*)
16412       case $host_cpu in
16413       powerpc)
16414             # see comment about AmigaOS4 .so support
16415             lt_prog_compiler_pic_CXX='-fPIC'
16416         ;;
16417       m68k)
16418             # FIXME: we need at least 68020 code to build shared libraries, but
16419             # adding the '-m68020' flag to GCC prevents building anything better,
16420             # like '-m68040'.
16421             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16422         ;;
16423       esac
16424       ;;
16425
16426     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16427       # PIC is the default for these OSes.
16428       ;;
16429     mingw* | cygwin* | os2* | pw32* | cegcc*)
16430       # This hack is so that the source file can tell whether it is being
16431       # built for inclusion in a dll (and should export symbols for example).
16432       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16433       # (--disable-auto-import) libraries
16434       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16435       case $host_os in
16436       os2*)
16437         lt_prog_compiler_static_CXX='$wl-static'
16438         ;;
16439       esac
16440       ;;
16441     darwin* | rhapsody*)
16442       # PIC is the default on this platform
16443       # Common symbols not allowed in MH_DYLIB files
16444       lt_prog_compiler_pic_CXX='-fno-common'
16445       ;;
16446     *djgpp*)
16447       # DJGPP does not support shared libraries at all
16448       lt_prog_compiler_pic_CXX=
16449       ;;
16450     haiku*)
16451       # PIC is the default for Haiku.
16452       # The "-static" flag exists, but is broken.
16453       lt_prog_compiler_static_CXX=
16454       ;;
16455     interix[3-9]*)
16456       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16457       # Instead, we relocate shared libraries at runtime.
16458       ;;
16459     sysv4*MP*)
16460       if test -d /usr/nec; then
16461         lt_prog_compiler_pic_CXX=-Kconform_pic
16462       fi
16463       ;;
16464     hpux*)
16465       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16466       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16467       # sets the default TLS model and affects inlining.
16468       case $host_cpu in
16469       hppa*64*)
16470         ;;
16471       *)
16472         lt_prog_compiler_pic_CXX='-fPIC'
16473         ;;
16474       esac
16475       ;;
16476     *qnx* | *nto*)
16477       # QNX uses GNU C++, but need to define -shared option too, otherwise
16478       # it will coredump.
16479       lt_prog_compiler_pic_CXX='-fPIC -shared'
16480       ;;
16481     *)
16482       lt_prog_compiler_pic_CXX='-fPIC'
16483       ;;
16484     esac
16485   else
16486     case $host_os in
16487       aix[4-9]*)
16488         # All AIX code is PIC.
16489         if test ia64 = "$host_cpu"; then
16490           # AIX 5 now supports IA64 processor
16491           lt_prog_compiler_static_CXX='-Bstatic'
16492         else
16493           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16494         fi
16495         ;;
16496       chorus*)
16497         case $cc_basename in
16498         cxch68*)
16499           # Green Hills C++ Compiler
16500           # _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"
16501           ;;
16502         esac
16503         ;;
16504       mingw* | cygwin* | os2* | pw32* | cegcc*)
16505         # This hack is so that the source file can tell whether it is being
16506         # built for inclusion in a dll (and should export symbols for example).
16507         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16508         ;;
16509       dgux*)
16510         case $cc_basename in
16511           ec++*)
16512             lt_prog_compiler_pic_CXX='-KPIC'
16513             ;;
16514           ghcx*)
16515             # Green Hills C++ Compiler
16516             lt_prog_compiler_pic_CXX='-pic'
16517             ;;
16518           *)
16519             ;;
16520         esac
16521         ;;
16522       freebsd* | dragonfly*)
16523         # FreeBSD uses GNU C++
16524         ;;
16525       hpux9* | hpux10* | hpux11*)
16526         case $cc_basename in
16527           CC*)
16528             lt_prog_compiler_wl_CXX='-Wl,'
16529             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16530             if test ia64 != "$host_cpu"; then
16531               lt_prog_compiler_pic_CXX='+Z'
16532             fi
16533             ;;
16534           aCC*)
16535             lt_prog_compiler_wl_CXX='-Wl,'
16536             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16537             case $host_cpu in
16538             hppa*64*|ia64*)
16539               # +Z the default
16540               ;;
16541             *)
16542               lt_prog_compiler_pic_CXX='+Z'
16543               ;;
16544             esac
16545             ;;
16546           *)
16547             ;;
16548         esac
16549         ;;
16550       interix*)
16551         # This is c89, which is MS Visual C++ (no shared libs)
16552         # Anyone wants to do a port?
16553         ;;
16554       irix5* | irix6* | nonstopux*)
16555         case $cc_basename in
16556           CC*)
16557             lt_prog_compiler_wl_CXX='-Wl,'
16558             lt_prog_compiler_static_CXX='-non_shared'
16559             # CC pic flag -KPIC is the default.
16560             ;;
16561           *)
16562             ;;
16563         esac
16564         ;;
16565       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16566         case $cc_basename in
16567           KCC*)
16568             # KAI C++ Compiler
16569             lt_prog_compiler_wl_CXX='--backend -Wl,'
16570             lt_prog_compiler_pic_CXX='-fPIC'
16571             ;;
16572           ecpc* )
16573             # old Intel C++ for x86_64, which still supported -KPIC.
16574             lt_prog_compiler_wl_CXX='-Wl,'
16575             lt_prog_compiler_pic_CXX='-KPIC'
16576             lt_prog_compiler_static_CXX='-static'
16577             ;;
16578           icpc* )
16579             # Intel C++, used to be incompatible with GCC.
16580             # ICC 10 doesn't accept -KPIC any more.
16581             lt_prog_compiler_wl_CXX='-Wl,'
16582             lt_prog_compiler_pic_CXX='-fPIC'
16583             lt_prog_compiler_static_CXX='-static'
16584             ;;
16585           pgCC* | pgcpp*)
16586             # Portland Group C++ compiler
16587             lt_prog_compiler_wl_CXX='-Wl,'
16588             lt_prog_compiler_pic_CXX='-fpic'
16589             lt_prog_compiler_static_CXX='-Bstatic'
16590             ;;
16591           cxx*)
16592             # Compaq C++
16593             # Make sure the PIC flag is empty.  It appears that all Alpha
16594             # Linux and Compaq Tru64 Unix objects are PIC.
16595             lt_prog_compiler_pic_CXX=
16596             lt_prog_compiler_static_CXX='-non_shared'
16597             ;;
16598           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16599             # IBM XL 8.0, 9.0 on PPC and BlueGene
16600             lt_prog_compiler_wl_CXX='-Wl,'
16601             lt_prog_compiler_pic_CXX='-qpic'
16602             lt_prog_compiler_static_CXX='-qstaticlink'
16603             ;;
16604           *)
16605             case `$CC -V 2>&1 | sed 5q` in
16606             *Sun\ C*)
16607               # Sun C++ 5.9
16608               lt_prog_compiler_pic_CXX='-KPIC'
16609               lt_prog_compiler_static_CXX='-Bstatic'
16610               lt_prog_compiler_wl_CXX='-Qoption ld '
16611               ;;
16612             esac
16613             ;;
16614         esac
16615         ;;
16616       lynxos*)
16617         ;;
16618       m88k*)
16619         ;;
16620       mvs*)
16621         case $cc_basename in
16622           cxx*)
16623             lt_prog_compiler_pic_CXX='-W c,exportall'
16624             ;;
16625           *)
16626             ;;
16627         esac
16628         ;;
16629       netbsd* | netbsdelf*-gnu)
16630         ;;
16631       *qnx* | *nto*)
16632         # QNX uses GNU C++, but need to define -shared option too, otherwise
16633         # it will coredump.
16634         lt_prog_compiler_pic_CXX='-fPIC -shared'
16635         ;;
16636       osf3* | osf4* | osf5*)
16637         case $cc_basename in
16638           KCC*)
16639             lt_prog_compiler_wl_CXX='--backend -Wl,'
16640             ;;
16641           RCC*)
16642             # Rational C++ 2.4.1
16643             lt_prog_compiler_pic_CXX='-pic'
16644             ;;
16645           cxx*)
16646             # Digital/Compaq C++
16647             lt_prog_compiler_wl_CXX='-Wl,'
16648             # Make sure the PIC flag is empty.  It appears that all Alpha
16649             # Linux and Compaq Tru64 Unix objects are PIC.
16650             lt_prog_compiler_pic_CXX=
16651             lt_prog_compiler_static_CXX='-non_shared'
16652             ;;
16653           *)
16654             ;;
16655         esac
16656         ;;
16657       psos*)
16658         ;;
16659       solaris*)
16660         case $cc_basename in
16661           CC* | sunCC*)
16662             # Sun C++ 4.2, 5.x and Centerline C++
16663             lt_prog_compiler_pic_CXX='-KPIC'
16664             lt_prog_compiler_static_CXX='-Bstatic'
16665             lt_prog_compiler_wl_CXX='-Qoption ld '
16666             ;;
16667           gcx*)
16668             # Green Hills C++ Compiler
16669             lt_prog_compiler_pic_CXX='-PIC'
16670             ;;
16671           *)
16672             ;;
16673         esac
16674         ;;
16675       sunos4*)
16676         case $cc_basename in
16677           CC*)
16678             # Sun C++ 4.x
16679             lt_prog_compiler_pic_CXX='-pic'
16680             lt_prog_compiler_static_CXX='-Bstatic'
16681             ;;
16682           lcc*)
16683             # Lucid
16684             lt_prog_compiler_pic_CXX='-pic'
16685             ;;
16686           *)
16687             ;;
16688         esac
16689         ;;
16690       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16691         case $cc_basename in
16692           CC*)
16693             lt_prog_compiler_wl_CXX='-Wl,'
16694             lt_prog_compiler_pic_CXX='-KPIC'
16695             lt_prog_compiler_static_CXX='-Bstatic'
16696             ;;
16697         esac
16698         ;;
16699       tandem*)
16700         case $cc_basename in
16701           NCC*)
16702             # NonStop-UX NCC 3.20
16703             lt_prog_compiler_pic_CXX='-KPIC'
16704             ;;
16705           *)
16706             ;;
16707         esac
16708         ;;
16709       vxworks*)
16710         ;;
16711       *)
16712         lt_prog_compiler_can_build_shared_CXX=no
16713         ;;
16714     esac
16715   fi
16716
16717 case $host_os in
16718   # For platforms that do not support PIC, -DPIC is meaningless:
16719   *djgpp*)
16720     lt_prog_compiler_pic_CXX=
16721     ;;
16722   *)
16723     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16724     ;;
16725 esac
16726
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16728 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16729 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16730   $as_echo_n "(cached) " >&6
16731 else
16732   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16733 fi
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16735 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16736 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16737
16738 #
16739 # Check to make sure the PIC flag actually works.
16740 #
16741 if test -n "$lt_prog_compiler_pic_CXX"; then
16742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16743 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16744 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16745   $as_echo_n "(cached) " >&6
16746 else
16747   lt_cv_prog_compiler_pic_works_CXX=no
16748    ac_outfile=conftest.$ac_objext
16749    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16750    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16751    # Insert the option either (1) after the last *FLAGS variable, or
16752    # (2) before a word containing "conftest.", or (3) at the end.
16753    # Note that $ac_compile itself does not contain backslashes and begins
16754    # with a dollar sign (not a hyphen), so the echo should work correctly.
16755    # The option is referenced via a variable to avoid confusing sed.
16756    lt_compile=`echo "$ac_compile" | $SED \
16757    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16759    -e 's:$: $lt_compiler_flag:'`
16760    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16761    (eval "$lt_compile" 2>conftest.err)
16762    ac_status=$?
16763    cat conftest.err >&5
16764    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765    if (exit $ac_status) && test -s "$ac_outfile"; then
16766      # The compiler can only warn and ignore the option if not recognized
16767      # So say no if there are warnings other than the usual output.
16768      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16769      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16770      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16771        lt_cv_prog_compiler_pic_works_CXX=yes
16772      fi
16773    fi
16774    $RM conftest*
16775
16776 fi
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16778 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16779
16780 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16781     case $lt_prog_compiler_pic_CXX in
16782      "" | " "*) ;;
16783      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16784      esac
16785 else
16786     lt_prog_compiler_pic_CXX=
16787      lt_prog_compiler_can_build_shared_CXX=no
16788 fi
16789
16790 fi
16791
16792
16793
16794
16795
16796 #
16797 # Check to make sure the static flag actually works.
16798 #
16799 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16801 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16802 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16803   $as_echo_n "(cached) " >&6
16804 else
16805   lt_cv_prog_compiler_static_works_CXX=no
16806    save_LDFLAGS=$LDFLAGS
16807    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16808    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16809    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16810      # The linker can only warn and ignore the option if not recognized
16811      # So say no if there are warnings
16812      if test -s conftest.err; then
16813        # Append any errors to the config.log.
16814        cat conftest.err 1>&5
16815        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16816        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16817        if diff conftest.exp conftest.er2 >/dev/null; then
16818          lt_cv_prog_compiler_static_works_CXX=yes
16819        fi
16820      else
16821        lt_cv_prog_compiler_static_works_CXX=yes
16822      fi
16823    fi
16824    $RM -r conftest*
16825    LDFLAGS=$save_LDFLAGS
16826
16827 fi
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16829 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16830
16831 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16832     :
16833 else
16834     lt_prog_compiler_static_CXX=
16835 fi
16836
16837
16838
16839
16840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16842 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16843   $as_echo_n "(cached) " >&6
16844 else
16845   lt_cv_prog_compiler_c_o_CXX=no
16846    $RM -r conftest 2>/dev/null
16847    mkdir conftest
16848    cd conftest
16849    mkdir out
16850    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16851
16852    lt_compiler_flag="-o out/conftest2.$ac_objext"
16853    # Insert the option either (1) after the last *FLAGS variable, or
16854    # (2) before a word containing "conftest.", or (3) at the end.
16855    # Note that $ac_compile itself does not contain backslashes and begins
16856    # with a dollar sign (not a hyphen), so the echo should work correctly.
16857    lt_compile=`echo "$ac_compile" | $SED \
16858    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16860    -e 's:$: $lt_compiler_flag:'`
16861    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16862    (eval "$lt_compile" 2>out/conftest.err)
16863    ac_status=$?
16864    cat out/conftest.err >&5
16865    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16867    then
16868      # The compiler can only warn and ignore the option if not recognized
16869      # So say no if there are warnings
16870      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16871      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16872      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16873        lt_cv_prog_compiler_c_o_CXX=yes
16874      fi
16875    fi
16876    chmod u+w . 2>&5
16877    $RM conftest*
16878    # SGI C++ compiler will create directory out/ii_files/ for
16879    # template instantiation
16880    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16881    $RM out/* && rmdir out
16882    cd ..
16883    $RM -r conftest
16884    $RM conftest*
16885
16886 fi
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16888 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16889
16890
16891
16892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16893 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16894 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16895   $as_echo_n "(cached) " >&6
16896 else
16897   lt_cv_prog_compiler_c_o_CXX=no
16898    $RM -r conftest 2>/dev/null
16899    mkdir conftest
16900    cd conftest
16901    mkdir out
16902    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16903
16904    lt_compiler_flag="-o out/conftest2.$ac_objext"
16905    # Insert the option either (1) after the last *FLAGS variable, or
16906    # (2) before a word containing "conftest.", or (3) at the end.
16907    # Note that $ac_compile itself does not contain backslashes and begins
16908    # with a dollar sign (not a hyphen), so the echo should work correctly.
16909    lt_compile=`echo "$ac_compile" | $SED \
16910    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16912    -e 's:$: $lt_compiler_flag:'`
16913    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16914    (eval "$lt_compile" 2>out/conftest.err)
16915    ac_status=$?
16916    cat out/conftest.err >&5
16917    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16919    then
16920      # The compiler can only warn and ignore the option if not recognized
16921      # So say no if there are warnings
16922      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16923      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16924      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16925        lt_cv_prog_compiler_c_o_CXX=yes
16926      fi
16927    fi
16928    chmod u+w . 2>&5
16929    $RM conftest*
16930    # SGI C++ compiler will create directory out/ii_files/ for
16931    # template instantiation
16932    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16933    $RM out/* && rmdir out
16934    cd ..
16935    $RM -r conftest
16936    $RM conftest*
16937
16938 fi
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16940 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16941
16942
16943
16944
16945 hard_links=nottested
16946 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16947   # do not overwrite the value of need_locks provided by the user
16948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16949 $as_echo_n "checking if we can lock with hard links... " >&6; }
16950   hard_links=yes
16951   $RM conftest*
16952   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16953   touch conftest.a
16954   ln conftest.a conftest.b 2>&5 || hard_links=no
16955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16957 $as_echo "$hard_links" >&6; }
16958   if test no = "$hard_links"; then
16959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16960 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16961     need_locks=warn
16962   fi
16963 else
16964   need_locks=no
16965 fi
16966
16967
16968
16969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16970 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16971
16972   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16973   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16974   case $host_os in
16975   aix[4-9]*)
16976     # If we're using GNU nm, then we don't want the "-C" option.
16977     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16978     # Without the "-l" option, or with the "-B" option, AIX nm treats
16979     # weak defined symbols like other global defined symbols, whereas
16980     # GNU nm marks them as "W".
16981     # While the 'weak' keyword is ignored in the Export File, we need
16982     # it in the Import File for the 'aix-soname' feature, so we have
16983     # to replace the "-B" option with "-P" for AIX nm.
16984     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16985       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'
16986     else
16987       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16988     fi
16989     ;;
16990   pw32*)
16991     export_symbols_cmds_CXX=$ltdll_cmds
16992     ;;
16993   cygwin* | mingw* | cegcc*)
16994     case $cc_basename in
16995     cl*)
16996       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16997       ;;
16998     *)
16999       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'
17000       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17001       ;;
17002     esac
17003     ;;
17004   linux* | k*bsd*-gnu | gnu*)
17005     link_all_deplibs_CXX=no
17006     ;;
17007   *)
17008     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17009     ;;
17010   esac
17011
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17013 $as_echo "$ld_shlibs_CXX" >&6; }
17014 test no = "$ld_shlibs_CXX" && can_build_shared=no
17015
17016 with_gnu_ld_CXX=$with_gnu_ld
17017
17018
17019
17020
17021
17022
17023 #
17024 # Do we need to explicitly link libc?
17025 #
17026 case "x$archive_cmds_need_lc_CXX" in
17027 x|xyes)
17028   # Assume -lc should be added
17029   archive_cmds_need_lc_CXX=yes
17030
17031   if test yes,yes = "$GCC,$enable_shared"; then
17032     case $archive_cmds_CXX in
17033     *'~'*)
17034       # FIXME: we may have to deal with multi-command sequences.
17035       ;;
17036     '$CC '*)
17037       # Test whether the compiler implicitly links with -lc since on some
17038       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17039       # to ld, don't add -lc before -lgcc.
17040       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17041 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17042 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17043   $as_echo_n "(cached) " >&6
17044 else
17045   $RM conftest*
17046         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17047
17048         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17049   (eval $ac_compile) 2>&5
17050   ac_status=$?
17051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17052   test $ac_status = 0; } 2>conftest.err; then
17053           soname=conftest
17054           lib=conftest
17055           libobjs=conftest.$ac_objext
17056           deplibs=
17057           wl=$lt_prog_compiler_wl_CXX
17058           pic_flag=$lt_prog_compiler_pic_CXX
17059           compiler_flags=-v
17060           linker_flags=-v
17061           verstring=
17062           output_objdir=.
17063           libname=conftest
17064           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17065           allow_undefined_flag_CXX=
17066           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17067   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17068   ac_status=$?
17069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17070   test $ac_status = 0; }
17071           then
17072             lt_cv_archive_cmds_need_lc_CXX=no
17073           else
17074             lt_cv_archive_cmds_need_lc_CXX=yes
17075           fi
17076           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17077         else
17078           cat conftest.err 1>&5
17079         fi
17080         $RM conftest*
17081
17082 fi
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17084 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17085       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17086       ;;
17087     esac
17088   fi
17089   ;;
17090 esac
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17154 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17155
17156 library_names_spec=
17157 libname_spec='lib$name'
17158 soname_spec=
17159 shrext_cmds=.so
17160 postinstall_cmds=
17161 postuninstall_cmds=
17162 finish_cmds=
17163 finish_eval=
17164 shlibpath_var=
17165 shlibpath_overrides_runpath=unknown
17166 version_type=none
17167 dynamic_linker="$host_os ld.so"
17168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17169 need_lib_prefix=unknown
17170 hardcode_into_libs=no
17171
17172 # when you set need_version to no, make sure it does not cause -set_version
17173 # flags to be left without arguments
17174 need_version=unknown
17175
17176
17177
17178 case $host_os in
17179 aix3*)
17180   version_type=linux # correct to gnu/linux during the next big refactor
17181   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17182   shlibpath_var=LIBPATH
17183
17184   # AIX 3 has no versioning support, so we append a major version to the name.
17185   soname_spec='$libname$release$shared_ext$major'
17186   ;;
17187
17188 aix[4-9]*)
17189   version_type=linux # correct to gnu/linux during the next big refactor
17190   need_lib_prefix=no
17191   need_version=no
17192   hardcode_into_libs=yes
17193   if test ia64 = "$host_cpu"; then
17194     # AIX 5 supports IA64
17195     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17196     shlibpath_var=LD_LIBRARY_PATH
17197   else
17198     # With GCC up to 2.95.x, collect2 would create an import file
17199     # for dependence libraries.  The import file would start with
17200     # the line '#! .'.  This would cause the generated library to
17201     # depend on '.', always an invalid library.  This was fixed in
17202     # development snapshots of GCC prior to 3.0.
17203     case $host_os in
17204       aix4 | aix4.[01] | aix4.[01].*)
17205       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17206            echo ' yes '
17207            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17208         :
17209       else
17210         can_build_shared=no
17211       fi
17212       ;;
17213     esac
17214     # Using Import Files as archive members, it is possible to support
17215     # filename-based versioning of shared library archives on AIX. While
17216     # this would work for both with and without runtime linking, it will
17217     # prevent static linking of such archives. So we do filename-based
17218     # shared library versioning with .so extension only, which is used
17219     # when both runtime linking and shared linking is enabled.
17220     # Unfortunately, runtime linking may impact performance, so we do
17221     # not want this to be the default eventually. Also, we use the
17222     # versioned .so libs for executables only if there is the -brtl
17223     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17224     # To allow for filename-based versioning support, we need to create
17225     # libNAME.so.V as an archive file, containing:
17226     # *) an Import File, referring to the versioned filename of the
17227     #    archive as well as the shared archive member, telling the
17228     #    bitwidth (32 or 64) of that shared object, and providing the
17229     #    list of exported symbols of that shared object, eventually
17230     #    decorated with the 'weak' keyword
17231     # *) the shared object with the F_LOADONLY flag set, to really avoid
17232     #    it being seen by the linker.
17233     # At run time we better use the real file rather than another symlink,
17234     # but for link time we create the symlink libNAME.so -> libNAME.so.V
17235
17236     case $with_aix_soname,$aix_use_runtimelinking in
17237     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17238     # soname into executable. Probably we can add versioning support to
17239     # collect2, so additional links can be useful in future.
17240     aix,yes) # traditional libtool
17241       dynamic_linker='AIX unversionable lib.so'
17242       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17243       # instead of lib<name>.a to let people know that these are not
17244       # typical AIX shared libraries.
17245       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17246       ;;
17247     aix,no) # traditional AIX only
17248       dynamic_linker='AIX lib.a(lib.so.V)'
17249       # We preserve .a as extension for shared libraries through AIX4.2
17250       # and later when we are not doing run time linking.
17251       library_names_spec='$libname$release.a $libname.a'
17252       soname_spec='$libname$release$shared_ext$major'
17253       ;;
17254     svr4,*) # full svr4 only
17255       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17256       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17257       # We do not specify a path in Import Files, so LIBPATH fires.
17258       shlibpath_overrides_runpath=yes
17259       ;;
17260     *,yes) # both, prefer svr4
17261       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17262       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17263       # unpreferred sharedlib libNAME.a needs extra handling
17264       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"'
17265       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"'
17266       # We do not specify a path in Import Files, so LIBPATH fires.
17267       shlibpath_overrides_runpath=yes
17268       ;;
17269     *,no) # both, prefer aix
17270       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17271       library_names_spec='$libname$release.a $libname.a'
17272       soname_spec='$libname$release$shared_ext$major'
17273       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17274       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)'
17275       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"'
17276       ;;
17277     esac
17278     shlibpath_var=LIBPATH
17279   fi
17280   ;;
17281
17282 amigaos*)
17283   case $host_cpu in
17284   powerpc)
17285     # Since July 2007 AmigaOS4 officially supports .so libraries.
17286     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17287     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17288     ;;
17289   m68k)
17290     library_names_spec='$libname.ixlibrary $libname.a'
17291     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17292     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'
17293     ;;
17294   esac
17295   ;;
17296
17297 beos*)
17298   library_names_spec='$libname$shared_ext'
17299   dynamic_linker="$host_os ld.so"
17300   shlibpath_var=LIBRARY_PATH
17301   ;;
17302
17303 bsdi[45]*)
17304   version_type=linux # correct to gnu/linux during the next big refactor
17305   need_version=no
17306   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17307   soname_spec='$libname$release$shared_ext$major'
17308   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17309   shlibpath_var=LD_LIBRARY_PATH
17310   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17311   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17312   # the default ld.so.conf also contains /usr/contrib/lib and
17313   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17314   # libtool to hard-code these into programs
17315   ;;
17316
17317 cygwin* | mingw* | pw32* | cegcc*)
17318   version_type=windows
17319   shrext_cmds=.dll
17320   need_version=no
17321   need_lib_prefix=no
17322
17323   case $GCC,$cc_basename in
17324   yes,*)
17325     # gcc
17326     library_names_spec='$libname.dll.a'
17327     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17328     postinstall_cmds='base_file=`basename \$file`~
17329       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17330       dldir=$destdir/`dirname \$dlpath`~
17331       test -d \$dldir || mkdir -p \$dldir~
17332       $install_prog $dir/$dlname \$dldir/$dlname~
17333       chmod a+x \$dldir/$dlname~
17334       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17335         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17336       fi'
17337     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17338       dlpath=$dir/\$dldll~
17339        $RM \$dlpath'
17340     shlibpath_overrides_runpath=yes
17341
17342     case $host_os in
17343     cygwin*)
17344       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17345       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17346
17347       ;;
17348     mingw* | cegcc*)
17349       # MinGW DLLs use traditional 'lib' prefix
17350       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17351       ;;
17352     pw32*)
17353       # pw32 DLLs use 'pw' prefix rather than 'lib'
17354       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17355       ;;
17356     esac
17357     dynamic_linker='Win32 ld.exe'
17358     ;;
17359
17360   *,cl*)
17361     # Native MSVC
17362     libname_spec='$name'
17363     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17364     library_names_spec='$libname.dll.lib'
17365
17366     case $build_os in
17367     mingw*)
17368       sys_lib_search_path_spec=
17369       lt_save_ifs=$IFS
17370       IFS=';'
17371       for lt_path in $LIB
17372       do
17373         IFS=$lt_save_ifs
17374         # Let DOS variable expansion print the short 8.3 style file name.
17375         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17376         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17377       done
17378       IFS=$lt_save_ifs
17379       # Convert to MSYS style.
17380       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17381       ;;
17382     cygwin*)
17383       # Convert to unix form, then to dos form, then back to unix form
17384       # but this time dos style (no spaces!) so that the unix form looks
17385       # like /cygdrive/c/PROGRA~1:/cygdr...
17386       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17387       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17388       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17389       ;;
17390     *)
17391       sys_lib_search_path_spec=$LIB
17392       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17393         # It is most probably a Windows format PATH.
17394         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17395       else
17396         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17397       fi
17398       # FIXME: find the short name or the path components, as spaces are
17399       # common. (e.g. "Program Files" -> "PROGRA~1")
17400       ;;
17401     esac
17402
17403     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17404     postinstall_cmds='base_file=`basename \$file`~
17405       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17406       dldir=$destdir/`dirname \$dlpath`~
17407       test -d \$dldir || mkdir -p \$dldir~
17408       $install_prog $dir/$dlname \$dldir/$dlname'
17409     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17410       dlpath=$dir/\$dldll~
17411        $RM \$dlpath'
17412     shlibpath_overrides_runpath=yes
17413     dynamic_linker='Win32 link.exe'
17414     ;;
17415
17416   *)
17417     # Assume MSVC wrapper
17418     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17419     dynamic_linker='Win32 ld.exe'
17420     ;;
17421   esac
17422   # FIXME: first we should search . and the directory the executable is in
17423   shlibpath_var=PATH
17424   ;;
17425
17426 darwin* | rhapsody*)
17427   dynamic_linker="$host_os dyld"
17428   version_type=darwin
17429   need_lib_prefix=no
17430   need_version=no
17431   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17432   soname_spec='$libname$release$major$shared_ext'
17433   shlibpath_overrides_runpath=yes
17434   shlibpath_var=DYLD_LIBRARY_PATH
17435   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17436
17437   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17438   ;;
17439
17440 dgux*)
17441   version_type=linux # correct to gnu/linux during the next big refactor
17442   need_lib_prefix=no
17443   need_version=no
17444   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17445   soname_spec='$libname$release$shared_ext$major'
17446   shlibpath_var=LD_LIBRARY_PATH
17447   ;;
17448
17449 freebsd* | dragonfly*)
17450   # DragonFly does not have aout.  When/if they implement a new
17451   # versioning mechanism, adjust this.
17452   if test -x /usr/bin/objformat; then
17453     objformat=`/usr/bin/objformat`
17454   else
17455     case $host_os in
17456     freebsd[23].*) objformat=aout ;;
17457     *) objformat=elf ;;
17458     esac
17459   fi
17460   version_type=freebsd-$objformat
17461   case $version_type in
17462     freebsd-elf*)
17463       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17464       soname_spec='$libname$release$shared_ext$major'
17465       need_version=no
17466       need_lib_prefix=no
17467       ;;
17468     freebsd-*)
17469       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17470       need_version=yes
17471       ;;
17472   esac
17473   shlibpath_var=LD_LIBRARY_PATH
17474   case $host_os in
17475   freebsd2.*)
17476     shlibpath_overrides_runpath=yes
17477     ;;
17478   freebsd3.[01]* | freebsdelf3.[01]*)
17479     shlibpath_overrides_runpath=yes
17480     hardcode_into_libs=yes
17481     ;;
17482   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17483   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17484     shlibpath_overrides_runpath=no
17485     hardcode_into_libs=yes
17486     ;;
17487   *) # from 4.6 on, and DragonFly
17488     shlibpath_overrides_runpath=yes
17489     hardcode_into_libs=yes
17490     ;;
17491   esac
17492   ;;
17493
17494 haiku*)
17495   version_type=linux # correct to gnu/linux during the next big refactor
17496   need_lib_prefix=no
17497   need_version=no
17498   dynamic_linker="$host_os runtime_loader"
17499   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17500   soname_spec='$libname$release$shared_ext$major'
17501   shlibpath_var=LIBRARY_PATH
17502   shlibpath_overrides_runpath=no
17503   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17504   hardcode_into_libs=yes
17505   ;;
17506
17507 hpux9* | hpux10* | hpux11*)
17508   # Give a soname corresponding to the major version so that dld.sl refuses to
17509   # link against other versions.
17510   version_type=sunos
17511   need_lib_prefix=no
17512   need_version=no
17513   case $host_cpu in
17514   ia64*)
17515     shrext_cmds='.so'
17516     hardcode_into_libs=yes
17517     dynamic_linker="$host_os dld.so"
17518     shlibpath_var=LD_LIBRARY_PATH
17519     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17520     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17521     soname_spec='$libname$release$shared_ext$major'
17522     if test 32 = "$HPUX_IA64_MODE"; then
17523       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17524       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17525     else
17526       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17527       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17528     fi
17529     ;;
17530   hppa*64*)
17531     shrext_cmds='.sl'
17532     hardcode_into_libs=yes
17533     dynamic_linker="$host_os dld.sl"
17534     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17535     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17536     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17537     soname_spec='$libname$release$shared_ext$major'
17538     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17539     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17540     ;;
17541   *)
17542     shrext_cmds='.sl'
17543     dynamic_linker="$host_os dld.sl"
17544     shlibpath_var=SHLIB_PATH
17545     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17546     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17547     soname_spec='$libname$release$shared_ext$major'
17548     ;;
17549   esac
17550   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17551   postinstall_cmds='chmod 555 $lib'
17552   # or fails outright, so override atomically:
17553   install_override_mode=555
17554   ;;
17555
17556 interix[3-9]*)
17557   version_type=linux # correct to gnu/linux during the next big refactor
17558   need_lib_prefix=no
17559   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17563   shlibpath_var=LD_LIBRARY_PATH
17564   shlibpath_overrides_runpath=no
17565   hardcode_into_libs=yes
17566   ;;
17567
17568 irix5* | irix6* | nonstopux*)
17569   case $host_os in
17570     nonstopux*) version_type=nonstopux ;;
17571     *)
17572         if test yes = "$lt_cv_prog_gnu_ld"; then
17573                 version_type=linux # correct to gnu/linux during the next big refactor
17574         else
17575                 version_type=irix
17576         fi ;;
17577   esac
17578   need_lib_prefix=no
17579   need_version=no
17580   soname_spec='$libname$release$shared_ext$major'
17581   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17582   case $host_os in
17583   irix5* | nonstopux*)
17584     libsuff= shlibsuff=
17585     ;;
17586   *)
17587     case $LD in # libtool.m4 will add one of these switches to LD
17588     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17589       libsuff= shlibsuff= libmagic=32-bit;;
17590     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17591       libsuff=32 shlibsuff=N32 libmagic=N32;;
17592     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17593       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17594     *) libsuff= shlibsuff= libmagic=never-match;;
17595     esac
17596     ;;
17597   esac
17598   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17599   shlibpath_overrides_runpath=no
17600   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17601   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17602   hardcode_into_libs=yes
17603   ;;
17604
17605 # No shared lib support for Linux oldld, aout, or coff.
17606 linux*oldld* | linux*aout* | linux*coff*)
17607   dynamic_linker=no
17608   ;;
17609
17610 linux*android*)
17611   version_type=none # Android doesn't support versioned libraries.
17612   need_lib_prefix=no
17613   need_version=no
17614   library_names_spec='$libname$release$shared_ext'
17615   soname_spec='$libname$release$shared_ext'
17616   finish_cmds=
17617   shlibpath_var=LD_LIBRARY_PATH
17618   shlibpath_overrides_runpath=yes
17619
17620   # This implies no fast_install, which is unacceptable.
17621   # Some rework will be needed to allow for fast_install
17622   # before this can be enabled.
17623   hardcode_into_libs=yes
17624
17625   dynamic_linker='Android linker'
17626   # Don't embed -rpath directories since the linker doesn't support them.
17627   hardcode_libdir_flag_spec_CXX='-L$libdir'
17628   ;;
17629
17630 # This must be glibc/ELF.
17631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17632   version_type=linux # correct to gnu/linux during the next big refactor
17633   need_lib_prefix=no
17634   need_version=no
17635   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17636   soname_spec='$libname$release$shared_ext$major'
17637   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17638   shlibpath_var=LD_LIBRARY_PATH
17639   shlibpath_overrides_runpath=no
17640
17641   # Some binutils ld are patched to set DT_RUNPATH
17642   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17643   $as_echo_n "(cached) " >&6
17644 else
17645   lt_cv_shlibpath_overrides_runpath=no
17646     save_LDFLAGS=$LDFLAGS
17647     save_libdir=$libdir
17648     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17649          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17650     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h.  */
17652
17653 int
17654 main ()
17655 {
17656
17657   ;
17658   return 0;
17659 }
17660 _ACEOF
17661 if ac_fn_cxx_try_link "$LINENO"; then :
17662   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17663   lt_cv_shlibpath_overrides_runpath=yes
17664 fi
17665 fi
17666 rm -f core conftest.err conftest.$ac_objext \
17667     conftest$ac_exeext conftest.$ac_ext
17668     LDFLAGS=$save_LDFLAGS
17669     libdir=$save_libdir
17670
17671 fi
17672
17673   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17674
17675   # This implies no fast_install, which is unacceptable.
17676   # Some rework will be needed to allow for fast_install
17677   # before this can be enabled.
17678   hardcode_into_libs=yes
17679
17680   # Ideally, we could use ldconfig to report *all* directores which are
17681   # searched for libraries, however this is still not possible.  Aside from not
17682   # being certain /sbin/ldconfig is available, command
17683   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17684   # even though it is searched at run-time.  Try to do the best guess by
17685   # appending ld.so.conf contents (and includes) to the search path.
17686   if test -f /etc/ld.so.conf; then
17687     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' ' '`
17688     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17689   fi
17690
17691   # We used to test for /lib/ld.so.1 and disable shared libraries on
17692   # powerpc, because MkLinux only supported shared libraries with the
17693   # GNU dynamic linker.  Since this was broken with cross compilers,
17694   # most powerpc-linux boxes support dynamic linking these days and
17695   # people can always --disable-shared, the test was removed, and we
17696   # assume the GNU/Linux dynamic linker is in use.
17697   dynamic_linker='GNU/Linux ld.so'
17698   ;;
17699
17700 netbsdelf*-gnu)
17701   version_type=linux
17702   need_lib_prefix=no
17703   need_version=no
17704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17705   soname_spec='${libname}${release}${shared_ext}$major'
17706   shlibpath_var=LD_LIBRARY_PATH
17707   shlibpath_overrides_runpath=no
17708   hardcode_into_libs=yes
17709   dynamic_linker='NetBSD ld.elf_so'
17710   ;;
17711
17712 netbsd*)
17713   version_type=sunos
17714   need_lib_prefix=no
17715   need_version=no
17716   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17717     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17718     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17719     dynamic_linker='NetBSD (a.out) ld.so'
17720   else
17721     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17722     soname_spec='$libname$release$shared_ext$major'
17723     dynamic_linker='NetBSD ld.elf_so'
17724   fi
17725   shlibpath_var=LD_LIBRARY_PATH
17726   shlibpath_overrides_runpath=yes
17727   hardcode_into_libs=yes
17728   ;;
17729
17730 newsos6)
17731   version_type=linux # correct to gnu/linux during the next big refactor
17732   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17733   shlibpath_var=LD_LIBRARY_PATH
17734   shlibpath_overrides_runpath=yes
17735   ;;
17736
17737 *nto* | *qnx*)
17738   version_type=qnx
17739   need_lib_prefix=no
17740   need_version=no
17741   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17742   soname_spec='$libname$release$shared_ext$major'
17743   shlibpath_var=LD_LIBRARY_PATH
17744   shlibpath_overrides_runpath=no
17745   hardcode_into_libs=yes
17746   dynamic_linker='ldqnx.so'
17747   ;;
17748
17749 openbsd* | bitrig*)
17750   version_type=sunos
17751   sys_lib_dlsearch_path_spec=/usr/lib
17752   need_lib_prefix=no
17753   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17754     need_version=no
17755   else
17756     need_version=yes
17757   fi
17758   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17759   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17760   shlibpath_var=LD_LIBRARY_PATH
17761   shlibpath_overrides_runpath=yes
17762   ;;
17763
17764 os2*)
17765   libname_spec='$name'
17766   version_type=windows
17767   shrext_cmds=.dll
17768   need_version=no
17769   need_lib_prefix=no
17770   # OS/2 can only load a DLL with a base name of 8 characters or less.
17771   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17772     v=$($ECHO $release$versuffix | tr -d .-);
17773     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17774     $ECHO $n$v`$shared_ext'
17775   library_names_spec='${libname}_dll.$libext'
17776   dynamic_linker='OS/2 ld.exe'
17777   shlibpath_var=BEGINLIBPATH
17778   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17779   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17780   postinstall_cmds='base_file=`basename \$file`~
17781     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17782     dldir=$destdir/`dirname \$dlpath`~
17783     test -d \$dldir || mkdir -p \$dldir~
17784     $install_prog $dir/$dlname \$dldir/$dlname~
17785     chmod a+x \$dldir/$dlname~
17786     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17787       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17788     fi'
17789   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17790     dlpath=$dir/\$dldll~
17791     $RM \$dlpath'
17792   ;;
17793
17794 osf3* | osf4* | osf5*)
17795   version_type=osf
17796   need_lib_prefix=no
17797   need_version=no
17798   soname_spec='$libname$release$shared_ext$major'
17799   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17800   shlibpath_var=LD_LIBRARY_PATH
17801   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17802   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17803   ;;
17804
17805 rdos*)
17806   dynamic_linker=no
17807   ;;
17808
17809 solaris*)
17810   version_type=linux # correct to gnu/linux during the next big refactor
17811   need_lib_prefix=no
17812   need_version=no
17813   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17814   soname_spec='$libname$release$shared_ext$major'
17815   shlibpath_var=LD_LIBRARY_PATH
17816   shlibpath_overrides_runpath=yes
17817   hardcode_into_libs=yes
17818   # ldd complains unless libraries are executable
17819   postinstall_cmds='chmod +x $lib'
17820   ;;
17821
17822 sunos4*)
17823   version_type=sunos
17824   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17825   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17826   shlibpath_var=LD_LIBRARY_PATH
17827   shlibpath_overrides_runpath=yes
17828   if test yes = "$with_gnu_ld"; then
17829     need_lib_prefix=no
17830   fi
17831   need_version=yes
17832   ;;
17833
17834 sysv4 | sysv4.3*)
17835   version_type=linux # correct to gnu/linux during the next big refactor
17836   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17837   soname_spec='$libname$release$shared_ext$major'
17838   shlibpath_var=LD_LIBRARY_PATH
17839   case $host_vendor in
17840     sni)
17841       shlibpath_overrides_runpath=no
17842       need_lib_prefix=no
17843       runpath_var=LD_RUN_PATH
17844       ;;
17845     siemens)
17846       need_lib_prefix=no
17847       ;;
17848     motorola)
17849       need_lib_prefix=no
17850       need_version=no
17851       shlibpath_overrides_runpath=no
17852       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17853       ;;
17854   esac
17855   ;;
17856
17857 sysv4*MP*)
17858   if test -d /usr/nec; then
17859     version_type=linux # correct to gnu/linux during the next big refactor
17860     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17861     soname_spec='$libname$shared_ext.$major'
17862     shlibpath_var=LD_LIBRARY_PATH
17863   fi
17864   ;;
17865
17866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17867   version_type=sco
17868   need_lib_prefix=no
17869   need_version=no
17870   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17871   soname_spec='$libname$release$shared_ext$major'
17872   shlibpath_var=LD_LIBRARY_PATH
17873   shlibpath_overrides_runpath=yes
17874   hardcode_into_libs=yes
17875   if test yes = "$with_gnu_ld"; then
17876     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17877   else
17878     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17879     case $host_os in
17880       sco3.2v5*)
17881         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17882         ;;
17883     esac
17884   fi
17885   sys_lib_dlsearch_path_spec='/usr/lib'
17886   ;;
17887
17888 tpf*)
17889   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17890   version_type=linux # correct to gnu/linux during the next big refactor
17891   need_lib_prefix=no
17892   need_version=no
17893   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17894   shlibpath_var=LD_LIBRARY_PATH
17895   shlibpath_overrides_runpath=no
17896   hardcode_into_libs=yes
17897   ;;
17898
17899 uts4*)
17900   version_type=linux # correct to gnu/linux during the next big refactor
17901   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17902   soname_spec='$libname$release$shared_ext$major'
17903   shlibpath_var=LD_LIBRARY_PATH
17904   ;;
17905
17906 *)
17907   dynamic_linker=no
17908   ;;
17909 esac
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17911 $as_echo "$dynamic_linker" >&6; }
17912 test no = "$dynamic_linker" && can_build_shared=no
17913
17914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17915 if test yes = "$GCC"; then
17916   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17917 fi
17918
17919 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17920   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17921 fi
17922
17923 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17924   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17925 fi
17926
17927 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17928 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17929
17930 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17931 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17932
17933 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17934 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17976 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17977 hardcode_action_CXX=
17978 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17979    test -n "$runpath_var_CXX" ||
17980    test yes = "$hardcode_automatic_CXX"; then
17981
17982   # We can hardcode non-existent directories.
17983   if test no != "$hardcode_direct_CXX" &&
17984      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17985      # have to relink, otherwise we might link with an installed library
17986      # when we should be linking with a yet-to-be-installed one
17987      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17988      test no != "$hardcode_minus_L_CXX"; then
17989     # Linking always hardcodes the temporary library directory.
17990     hardcode_action_CXX=relink
17991   else
17992     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17993     hardcode_action_CXX=immediate
17994   fi
17995 else
17996   # We cannot hardcode anything, or else we can only hardcode existing
17997   # directories.
17998   hardcode_action_CXX=unsupported
17999 fi
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18001 $as_echo "$hardcode_action_CXX" >&6; }
18002
18003 if test relink = "$hardcode_action_CXX" ||
18004    test yes = "$inherit_rpath_CXX"; then
18005   # Fast installation is not supported
18006   enable_fast_install=no
18007 elif test yes = "$shlibpath_overrides_runpath" ||
18008      test no = "$enable_shared"; then
18009   # Fast installation is not necessary
18010   enable_fast_install=needless
18011 fi
18012
18013
18014
18015
18016
18017
18018
18019   fi # test -n "$compiler"
18020
18021   CC=$lt_save_CC
18022   CFLAGS=$lt_save_CFLAGS
18023   LDCXX=$LD
18024   LD=$lt_save_LD
18025   GCC=$lt_save_GCC
18026   with_gnu_ld=$lt_save_with_gnu_ld
18027   lt_cv_path_LDCXX=$lt_cv_path_LD
18028   lt_cv_path_LD=$lt_save_path_LD
18029   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18030   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18031 fi # test yes != "$_lt_caught_CXX_error"
18032
18033 ac_ext=c
18034 ac_cpp='$CPP $CPPFLAGS'
18035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18038
18039
18040   ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
18041   ac_ext=cpp
18042 ac_cpp='$CXXCPP $CPPFLAGS'
18043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18046   ac_success=no
18047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18048 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18049 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18050   $as_echo_n "(cached) " >&6
18051 else
18052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h.  */
18054
18055
18056 // If the compiler admits that it is not ready for C++11, why torture it?
18057 // Hopefully, this will speed up the test.
18058
18059 #ifndef __cplusplus
18060
18061 #error "This is not a C++ compiler"
18062
18063 #elif __cplusplus < 201103L
18064
18065 #error "This is not a C++11 compiler"
18066
18067 #else
18068
18069 namespace cxx11
18070 {
18071
18072   namespace test_static_assert
18073   {
18074
18075     template <typename T>
18076     struct check
18077     {
18078       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18079     };
18080
18081   }
18082
18083   namespace test_final_override
18084   {
18085
18086     struct Base
18087     {
18088       virtual void f() {}
18089     };
18090
18091     struct Derived : public Base
18092     {
18093       virtual void f() override {}
18094     };
18095
18096   }
18097
18098   namespace test_double_right_angle_brackets
18099   {
18100
18101     template < typename T >
18102     struct check {};
18103
18104     typedef check<void> single_type;
18105     typedef check<check<void>> double_type;
18106     typedef check<check<check<void>>> triple_type;
18107     typedef check<check<check<check<void>>>> quadruple_type;
18108
18109   }
18110
18111   namespace test_decltype
18112   {
18113
18114     int
18115     f()
18116     {
18117       int a = 1;
18118       decltype(a) b = 2;
18119       return a + b;
18120     }
18121
18122   }
18123
18124   namespace test_type_deduction
18125   {
18126
18127     template < typename T1, typename T2 >
18128     struct is_same
18129     {
18130       static const bool value = false;
18131     };
18132
18133     template < typename T >
18134     struct is_same<T, T>
18135     {
18136       static const bool value = true;
18137     };
18138
18139     template < typename T1, typename T2 >
18140     auto
18141     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18142     {
18143       return a1 + a2;
18144     }
18145
18146     int
18147     test(const int c, volatile int v)
18148     {
18149       static_assert(is_same<int, decltype(0)>::value == true, "");
18150       static_assert(is_same<int, decltype(c)>::value == false, "");
18151       static_assert(is_same<int, decltype(v)>::value == false, "");
18152       auto ac = c;
18153       auto av = v;
18154       auto sumi = ac + av + 'x';
18155       auto sumf = ac + av + 1.0;
18156       static_assert(is_same<int, decltype(ac)>::value == true, "");
18157       static_assert(is_same<int, decltype(av)>::value == true, "");
18158       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18159       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18160       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18161       return (sumf > 0.0) ? sumi : add(c, v);
18162     }
18163
18164   }
18165
18166   namespace test_noexcept
18167   {
18168
18169     int f() { return 0; }
18170     int g() noexcept { return 0; }
18171
18172     static_assert(noexcept(f()) == false, "");
18173     static_assert(noexcept(g()) == true, "");
18174
18175   }
18176
18177   namespace test_constexpr
18178   {
18179
18180     template < typename CharT >
18181     unsigned long constexpr
18182     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18183     {
18184       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18185     }
18186
18187     template < typename CharT >
18188     unsigned long constexpr
18189     strlen_c(const CharT *const s) noexcept
18190     {
18191       return strlen_c_r(s, 0UL);
18192     }
18193
18194     static_assert(strlen_c("") == 0UL, "");
18195     static_assert(strlen_c("1") == 1UL, "");
18196     static_assert(strlen_c("example") == 7UL, "");
18197     static_assert(strlen_c("another\0example") == 7UL, "");
18198
18199   }
18200
18201   namespace test_rvalue_references
18202   {
18203
18204     template < int N >
18205     struct answer
18206     {
18207       static constexpr int value = N;
18208     };
18209
18210     answer<1> f(int&)       { return answer<1>(); }
18211     answer<2> f(const int&) { return answer<2>(); }
18212     answer<3> f(int&&)      { return answer<3>(); }
18213
18214     void
18215     test()
18216     {
18217       int i = 0;
18218       const int c = 0;
18219       static_assert(decltype(f(i))::value == 1, "");
18220       static_assert(decltype(f(c))::value == 2, "");
18221       static_assert(decltype(f(0))::value == 3, "");
18222     }
18223
18224   }
18225
18226   namespace test_uniform_initialization
18227   {
18228
18229     struct test
18230     {
18231       static const int zero {};
18232       static const int one {1};
18233     };
18234
18235     static_assert(test::zero == 0, "");
18236     static_assert(test::one == 1, "");
18237
18238   }
18239
18240   namespace test_lambdas
18241   {
18242
18243     void
18244     test1()
18245     {
18246       auto lambda1 = [](){};
18247       auto lambda2 = lambda1;
18248       lambda1();
18249       lambda2();
18250     }
18251
18252     int
18253     test2()
18254     {
18255       auto a = [](int i, int j){ return i + j; }(1, 2);
18256       auto b = []() -> int { return '0'; }();
18257       auto c = [=](){ return a + b; }();
18258       auto d = [&](){ return c; }();
18259       auto e = [a, &b](int x) mutable {
18260         const auto identity = [](int y){ return y; };
18261         for (auto i = 0; i < a; ++i)
18262           a += b--;
18263         return x + identity(a + b);
18264       }(0);
18265       return a + b + c + d + e;
18266     }
18267
18268     int
18269     test3()
18270     {
18271       const auto nullary = [](){ return 0; };
18272       const auto unary = [](int x){ return x; };
18273       using nullary_t = decltype(nullary);
18274       using unary_t = decltype(unary);
18275       const auto higher1st = [](nullary_t f){ return f(); };
18276       const auto higher2nd = [unary](nullary_t f1){
18277         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18278       };
18279       return higher1st(nullary) + higher2nd(nullary)(unary);
18280     }
18281
18282   }
18283
18284   namespace test_variadic_templates
18285   {
18286
18287     template <int...>
18288     struct sum;
18289
18290     template <int N0, int... N1toN>
18291     struct sum<N0, N1toN...>
18292     {
18293       static constexpr auto value = N0 + sum<N1toN...>::value;
18294     };
18295
18296     template <>
18297     struct sum<>
18298     {
18299       static constexpr auto value = 0;
18300     };
18301
18302     static_assert(sum<>::value == 0, "");
18303     static_assert(sum<1>::value == 1, "");
18304     static_assert(sum<23>::value == 23, "");
18305     static_assert(sum<1, 2>::value == 3, "");
18306     static_assert(sum<5, 5, 11>::value == 21, "");
18307     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18308
18309   }
18310
18311   // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18312   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18313   // because of this.
18314   namespace test_template_alias_sfinae
18315   {
18316
18317     struct foo {};
18318
18319     template<typename T>
18320     using member = typename T::member_type;
18321
18322     template<typename T>
18323     void func(...) {}
18324
18325     template<typename T>
18326     void func(member<T>*) {}
18327
18328     void test();
18329
18330     void test() { func<foo>(0); }
18331
18332   }
18333
18334 }  // namespace cxx11
18335
18336 #endif  // __cplusplus >= 201103L
18337
18338
18339
18340 _ACEOF
18341 if ac_fn_cxx_try_compile "$LINENO"; then :
18342   ax_cv_cxx_compile_cxx11=yes
18343 else
18344   ax_cv_cxx_compile_cxx11=no
18345 fi
18346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347 fi
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18349 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18350   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18351     ac_success=yes
18352   fi
18353
18354     if test x$ac_success = xno; then
18355     for alternative in ${ax_cxx_compile_alternatives}; do
18356       switch="-std=gnu++${alternative}"
18357       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18358       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18359 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18360 if eval \${$cachevar+:} false; then :
18361   $as_echo_n "(cached) " >&6
18362 else
18363   ac_save_CXX="$CXX"
18364          CXX="$CXX $switch"
18365          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h.  */
18367
18368
18369 // If the compiler admits that it is not ready for C++11, why torture it?
18370 // Hopefully, this will speed up the test.
18371
18372 #ifndef __cplusplus
18373
18374 #error "This is not a C++ compiler"
18375
18376 #elif __cplusplus < 201103L
18377
18378 #error "This is not a C++11 compiler"
18379
18380 #else
18381
18382 namespace cxx11
18383 {
18384
18385   namespace test_static_assert
18386   {
18387
18388     template <typename T>
18389     struct check
18390     {
18391       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18392     };
18393
18394   }
18395
18396   namespace test_final_override
18397   {
18398
18399     struct Base
18400     {
18401       virtual void f() {}
18402     };
18403
18404     struct Derived : public Base
18405     {
18406       virtual void f() override {}
18407     };
18408
18409   }
18410
18411   namespace test_double_right_angle_brackets
18412   {
18413
18414     template < typename T >
18415     struct check {};
18416
18417     typedef check<void> single_type;
18418     typedef check<check<void>> double_type;
18419     typedef check<check<check<void>>> triple_type;
18420     typedef check<check<check<check<void>>>> quadruple_type;
18421
18422   }
18423
18424   namespace test_decltype
18425   {
18426
18427     int
18428     f()
18429     {
18430       int a = 1;
18431       decltype(a) b = 2;
18432       return a + b;
18433     }
18434
18435   }
18436
18437   namespace test_type_deduction
18438   {
18439
18440     template < typename T1, typename T2 >
18441     struct is_same
18442     {
18443       static const bool value = false;
18444     };
18445
18446     template < typename T >
18447     struct is_same<T, T>
18448     {
18449       static const bool value = true;
18450     };
18451
18452     template < typename T1, typename T2 >
18453     auto
18454     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18455     {
18456       return a1 + a2;
18457     }
18458
18459     int
18460     test(const int c, volatile int v)
18461     {
18462       static_assert(is_same<int, decltype(0)>::value == true, "");
18463       static_assert(is_same<int, decltype(c)>::value == false, "");
18464       static_assert(is_same<int, decltype(v)>::value == false, "");
18465       auto ac = c;
18466       auto av = v;
18467       auto sumi = ac + av + 'x';
18468       auto sumf = ac + av + 1.0;
18469       static_assert(is_same<int, decltype(ac)>::value == true, "");
18470       static_assert(is_same<int, decltype(av)>::value == true, "");
18471       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18472       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18473       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18474       return (sumf > 0.0) ? sumi : add(c, v);
18475     }
18476
18477   }
18478
18479   namespace test_noexcept
18480   {
18481
18482     int f() { return 0; }
18483     int g() noexcept { return 0; }
18484
18485     static_assert(noexcept(f()) == false, "");
18486     static_assert(noexcept(g()) == true, "");
18487
18488   }
18489
18490   namespace test_constexpr
18491   {
18492
18493     template < typename CharT >
18494     unsigned long constexpr
18495     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18496     {
18497       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18498     }
18499
18500     template < typename CharT >
18501     unsigned long constexpr
18502     strlen_c(const CharT *const s) noexcept
18503     {
18504       return strlen_c_r(s, 0UL);
18505     }
18506
18507     static_assert(strlen_c("") == 0UL, "");
18508     static_assert(strlen_c("1") == 1UL, "");
18509     static_assert(strlen_c("example") == 7UL, "");
18510     static_assert(strlen_c("another\0example") == 7UL, "");
18511
18512   }
18513
18514   namespace test_rvalue_references
18515   {
18516
18517     template < int N >
18518     struct answer
18519     {
18520       static constexpr int value = N;
18521     };
18522
18523     answer<1> f(int&)       { return answer<1>(); }
18524     answer<2> f(const int&) { return answer<2>(); }
18525     answer<3> f(int&&)      { return answer<3>(); }
18526
18527     void
18528     test()
18529     {
18530       int i = 0;
18531       const int c = 0;
18532       static_assert(decltype(f(i))::value == 1, "");
18533       static_assert(decltype(f(c))::value == 2, "");
18534       static_assert(decltype(f(0))::value == 3, "");
18535     }
18536
18537   }
18538
18539   namespace test_uniform_initialization
18540   {
18541
18542     struct test
18543     {
18544       static const int zero {};
18545       static const int one {1};
18546     };
18547
18548     static_assert(test::zero == 0, "");
18549     static_assert(test::one == 1, "");
18550
18551   }
18552
18553   namespace test_lambdas
18554   {
18555
18556     void
18557     test1()
18558     {
18559       auto lambda1 = [](){};
18560       auto lambda2 = lambda1;
18561       lambda1();
18562       lambda2();
18563     }
18564
18565     int
18566     test2()
18567     {
18568       auto a = [](int i, int j){ return i + j; }(1, 2);
18569       auto b = []() -> int { return '0'; }();
18570       auto c = [=](){ return a + b; }();
18571       auto d = [&](){ return c; }();
18572       auto e = [a, &b](int x) mutable {
18573         const auto identity = [](int y){ return y; };
18574         for (auto i = 0; i < a; ++i)
18575           a += b--;
18576         return x + identity(a + b);
18577       }(0);
18578       return a + b + c + d + e;
18579     }
18580
18581     int
18582     test3()
18583     {
18584       const auto nullary = [](){ return 0; };
18585       const auto unary = [](int x){ return x; };
18586       using nullary_t = decltype(nullary);
18587       using unary_t = decltype(unary);
18588       const auto higher1st = [](nullary_t f){ return f(); };
18589       const auto higher2nd = [unary](nullary_t f1){
18590         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18591       };
18592       return higher1st(nullary) + higher2nd(nullary)(unary);
18593     }
18594
18595   }
18596
18597   namespace test_variadic_templates
18598   {
18599
18600     template <int...>
18601     struct sum;
18602
18603     template <int N0, int... N1toN>
18604     struct sum<N0, N1toN...>
18605     {
18606       static constexpr auto value = N0 + sum<N1toN...>::value;
18607     };
18608
18609     template <>
18610     struct sum<>
18611     {
18612       static constexpr auto value = 0;
18613     };
18614
18615     static_assert(sum<>::value == 0, "");
18616     static_assert(sum<1>::value == 1, "");
18617     static_assert(sum<23>::value == 23, "");
18618     static_assert(sum<1, 2>::value == 3, "");
18619     static_assert(sum<5, 5, 11>::value == 21, "");
18620     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18621
18622   }
18623
18624   // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18625   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18626   // because of this.
18627   namespace test_template_alias_sfinae
18628   {
18629
18630     struct foo {};
18631
18632     template<typename T>
18633     using member = typename T::member_type;
18634
18635     template<typename T>
18636     void func(...) {}
18637
18638     template<typename T>
18639     void func(member<T>*) {}
18640
18641     void test();
18642
18643     void test() { func<foo>(0); }
18644
18645   }
18646
18647 }  // namespace cxx11
18648
18649 #endif  // __cplusplus >= 201103L
18650
18651
18652
18653 _ACEOF
18654 if ac_fn_cxx_try_compile "$LINENO"; then :
18655   eval $cachevar=yes
18656 else
18657   eval $cachevar=no
18658 fi
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18660          CXX="$ac_save_CXX"
18661 fi
18662 eval ac_res=\$$cachevar
18663                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18664 $as_echo "$ac_res" >&6; }
18665       if eval test x\$$cachevar = xyes; then
18666         CXX="$CXX $switch"
18667         if test -n "$CXXCPP" ; then
18668           CXXCPP="$CXXCPP $switch"
18669         fi
18670         ac_success=yes
18671         break
18672       fi
18673     done
18674   fi
18675
18676     if test x$ac_success = xno; then
18677                 for alternative in ${ax_cxx_compile_alternatives}; do
18678       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18679         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18680         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18681 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18682 if eval \${$cachevar+:} false; then :
18683   $as_echo_n "(cached) " >&6
18684 else
18685   ac_save_CXX="$CXX"
18686            CXX="$CXX $switch"
18687            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h.  */
18689
18690
18691 // If the compiler admits that it is not ready for C++11, why torture it?
18692 // Hopefully, this will speed up the test.
18693
18694 #ifndef __cplusplus
18695
18696 #error "This is not a C++ compiler"
18697
18698 #elif __cplusplus < 201103L
18699
18700 #error "This is not a C++11 compiler"
18701
18702 #else
18703
18704 namespace cxx11
18705 {
18706
18707   namespace test_static_assert
18708   {
18709
18710     template <typename T>
18711     struct check
18712     {
18713       static_assert(sizeof(int) <= sizeof(T), "not big enough");
18714     };
18715
18716   }
18717
18718   namespace test_final_override
18719   {
18720
18721     struct Base
18722     {
18723       virtual void f() {}
18724     };
18725
18726     struct Derived : public Base
18727     {
18728       virtual void f() override {}
18729     };
18730
18731   }
18732
18733   namespace test_double_right_angle_brackets
18734   {
18735
18736     template < typename T >
18737     struct check {};
18738
18739     typedef check<void> single_type;
18740     typedef check<check<void>> double_type;
18741     typedef check<check<check<void>>> triple_type;
18742     typedef check<check<check<check<void>>>> quadruple_type;
18743
18744   }
18745
18746   namespace test_decltype
18747   {
18748
18749     int
18750     f()
18751     {
18752       int a = 1;
18753       decltype(a) b = 2;
18754       return a + b;
18755     }
18756
18757   }
18758
18759   namespace test_type_deduction
18760   {
18761
18762     template < typename T1, typename T2 >
18763     struct is_same
18764     {
18765       static const bool value = false;
18766     };
18767
18768     template < typename T >
18769     struct is_same<T, T>
18770     {
18771       static const bool value = true;
18772     };
18773
18774     template < typename T1, typename T2 >
18775     auto
18776     add(T1 a1, T2 a2) -> decltype(a1 + a2)
18777     {
18778       return a1 + a2;
18779     }
18780
18781     int
18782     test(const int c, volatile int v)
18783     {
18784       static_assert(is_same<int, decltype(0)>::value == true, "");
18785       static_assert(is_same<int, decltype(c)>::value == false, "");
18786       static_assert(is_same<int, decltype(v)>::value == false, "");
18787       auto ac = c;
18788       auto av = v;
18789       auto sumi = ac + av + 'x';
18790       auto sumf = ac + av + 1.0;
18791       static_assert(is_same<int, decltype(ac)>::value == true, "");
18792       static_assert(is_same<int, decltype(av)>::value == true, "");
18793       static_assert(is_same<int, decltype(sumi)>::value == true, "");
18794       static_assert(is_same<int, decltype(sumf)>::value == false, "");
18795       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18796       return (sumf > 0.0) ? sumi : add(c, v);
18797     }
18798
18799   }
18800
18801   namespace test_noexcept
18802   {
18803
18804     int f() { return 0; }
18805     int g() noexcept { return 0; }
18806
18807     static_assert(noexcept(f()) == false, "");
18808     static_assert(noexcept(g()) == true, "");
18809
18810   }
18811
18812   namespace test_constexpr
18813   {
18814
18815     template < typename CharT >
18816     unsigned long constexpr
18817     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18818     {
18819       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18820     }
18821
18822     template < typename CharT >
18823     unsigned long constexpr
18824     strlen_c(const CharT *const s) noexcept
18825     {
18826       return strlen_c_r(s, 0UL);
18827     }
18828
18829     static_assert(strlen_c("") == 0UL, "");
18830     static_assert(strlen_c("1") == 1UL, "");
18831     static_assert(strlen_c("example") == 7UL, "");
18832     static_assert(strlen_c("another\0example") == 7UL, "");
18833
18834   }
18835
18836   namespace test_rvalue_references
18837   {
18838
18839     template < int N >
18840     struct answer
18841     {
18842       static constexpr int value = N;
18843     };
18844
18845     answer<1> f(int&)       { return answer<1>(); }
18846     answer<2> f(const int&) { return answer<2>(); }
18847     answer<3> f(int&&)      { return answer<3>(); }
18848
18849     void
18850     test()
18851     {
18852       int i = 0;
18853       const int c = 0;
18854       static_assert(decltype(f(i))::value == 1, "");
18855       static_assert(decltype(f(c))::value == 2, "");
18856       static_assert(decltype(f(0))::value == 3, "");
18857     }
18858
18859   }
18860
18861   namespace test_uniform_initialization
18862   {
18863
18864     struct test
18865     {
18866       static const int zero {};
18867       static const int one {1};
18868     };
18869
18870     static_assert(test::zero == 0, "");
18871     static_assert(test::one == 1, "");
18872
18873   }
18874
18875   namespace test_lambdas
18876   {
18877
18878     void
18879     test1()
18880     {
18881       auto lambda1 = [](){};
18882       auto lambda2 = lambda1;
18883       lambda1();
18884       lambda2();
18885     }
18886
18887     int
18888     test2()
18889     {
18890       auto a = [](int i, int j){ return i + j; }(1, 2);
18891       auto b = []() -> int { return '0'; }();
18892       auto c = [=](){ return a + b; }();
18893       auto d = [&](){ return c; }();
18894       auto e = [a, &b](int x) mutable {
18895         const auto identity = [](int y){ return y; };
18896         for (auto i = 0; i < a; ++i)
18897           a += b--;
18898         return x + identity(a + b);
18899       }(0);
18900       return a + b + c + d + e;
18901     }
18902
18903     int
18904     test3()
18905     {
18906       const auto nullary = [](){ return 0; };
18907       const auto unary = [](int x){ return x; };
18908       using nullary_t = decltype(nullary);
18909       using unary_t = decltype(unary);
18910       const auto higher1st = [](nullary_t f){ return f(); };
18911       const auto higher2nd = [unary](nullary_t f1){
18912         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18913       };
18914       return higher1st(nullary) + higher2nd(nullary)(unary);
18915     }
18916
18917   }
18918
18919   namespace test_variadic_templates
18920   {
18921
18922     template <int...>
18923     struct sum;
18924
18925     template <int N0, int... N1toN>
18926     struct sum<N0, N1toN...>
18927     {
18928       static constexpr auto value = N0 + sum<N1toN...>::value;
18929     };
18930
18931     template <>
18932     struct sum<>
18933     {
18934       static constexpr auto value = 0;
18935     };
18936
18937     static_assert(sum<>::value == 0, "");
18938     static_assert(sum<1>::value == 1, "");
18939     static_assert(sum<23>::value == 23, "");
18940     static_assert(sum<1, 2>::value == 3, "");
18941     static_assert(sum<5, 5, 11>::value == 21, "");
18942     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18943
18944   }
18945
18946   // https://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18947   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18948   // because of this.
18949   namespace test_template_alias_sfinae
18950   {
18951
18952     struct foo {};
18953
18954     template<typename T>
18955     using member = typename T::member_type;
18956
18957     template<typename T>
18958     void func(...) {}
18959
18960     template<typename T>
18961     void func(member<T>*) {}
18962
18963     void test();
18964
18965     void test() { func<foo>(0); }
18966
18967   }
18968
18969 }  // namespace cxx11
18970
18971 #endif  // __cplusplus >= 201103L
18972
18973
18974
18975 _ACEOF
18976 if ac_fn_cxx_try_compile "$LINENO"; then :
18977   eval $cachevar=yes
18978 else
18979   eval $cachevar=no
18980 fi
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18982            CXX="$ac_save_CXX"
18983 fi
18984 eval ac_res=\$$cachevar
18985                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18986 $as_echo "$ac_res" >&6; }
18987         if eval test x\$$cachevar = xyes; then
18988           CXX="$CXX $switch"
18989           if test -n "$CXXCPP" ; then
18990             CXXCPP="$CXXCPP $switch"
18991           fi
18992           ac_success=yes
18993           break
18994         fi
18995       done
18996       if test x$ac_success = xyes; then
18997         break
18998       fi
18999     done
19000   fi
19001   ac_ext=c
19002 ac_cpp='$CPP $CPPFLAGS'
19003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19006
19007   if test x$ax_cxx_compile_cxx11_required = xtrue; then
19008     if test x$ac_success = xno; then
19009       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
19010     fi
19011   fi
19012   if test x$ac_success = xno; then
19013     HAVE_CXX11=0
19014     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
19015 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
19016   else
19017     HAVE_CXX11=1
19018
19019 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
19020
19021   fi
19022
19023
19024
19025 # Check whether --enable-largefile was given.
19026 if test "${enable_largefile+set}" = set; then :
19027   enableval=$enable_largefile;
19028 fi
19029
19030 if test "$enable_largefile" != no; then
19031
19032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19033 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19034 if ${ac_cv_sys_largefile_CC+:} false; then :
19035   $as_echo_n "(cached) " >&6
19036 else
19037   ac_cv_sys_largefile_CC=no
19038      if test "$GCC" != yes; then
19039        ac_save_CC=$CC
19040        while :; do
19041          # IRIX 6.2 and later do not support large files by default,
19042          # so use the C compiler's -n32 option if that helps.
19043          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19044 /* end confdefs.h.  */
19045 #include <sys/types.h>
19046  /* Check that off_t can represent 2**63 - 1 correctly.
19047     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19048     since some C++ compilers masquerading as C compilers
19049     incorrectly reject 9223372036854775807.  */
19050 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19051   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19052                        && LARGE_OFF_T % 2147483647 == 1)
19053                       ? 1 : -1];
19054 int
19055 main ()
19056 {
19057
19058   ;
19059   return 0;
19060 }
19061 _ACEOF
19062          if ac_fn_c_try_compile "$LINENO"; then :
19063   break
19064 fi
19065 rm -f core conftest.err conftest.$ac_objext
19066          CC="$CC -n32"
19067          if ac_fn_c_try_compile "$LINENO"; then :
19068   ac_cv_sys_largefile_CC=' -n32'; break
19069 fi
19070 rm -f core conftest.err conftest.$ac_objext
19071          break
19072        done
19073        CC=$ac_save_CC
19074        rm -f conftest.$ac_ext
19075     fi
19076 fi
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19078 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19079   if test "$ac_cv_sys_largefile_CC" != no; then
19080     CC=$CC$ac_cv_sys_largefile_CC
19081   fi
19082
19083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19084 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19085 if ${ac_cv_sys_file_offset_bits+:} false; then :
19086   $as_echo_n "(cached) " >&6
19087 else
19088   while :; do
19089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h.  */
19091 #include <sys/types.h>
19092  /* Check that off_t can represent 2**63 - 1 correctly.
19093     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19094     since some C++ compilers masquerading as C compilers
19095     incorrectly reject 9223372036854775807.  */
19096 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19097   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19098                        && LARGE_OFF_T % 2147483647 == 1)
19099                       ? 1 : -1];
19100 int
19101 main ()
19102 {
19103
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_compile "$LINENO"; then :
19109   ac_cv_sys_file_offset_bits=no; break
19110 fi
19111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h.  */
19114 #define _FILE_OFFSET_BITS 64
19115 #include <sys/types.h>
19116  /* Check that off_t can represent 2**63 - 1 correctly.
19117     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19118     since some C++ compilers masquerading as C compilers
19119     incorrectly reject 9223372036854775807.  */
19120 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19121   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19122                        && LARGE_OFF_T % 2147483647 == 1)
19123                       ? 1 : -1];
19124 int
19125 main ()
19126 {
19127
19128   ;
19129   return 0;
19130 }
19131 _ACEOF
19132 if ac_fn_c_try_compile "$LINENO"; then :
19133   ac_cv_sys_file_offset_bits=64; break
19134 fi
19135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19136   ac_cv_sys_file_offset_bits=unknown
19137   break
19138 done
19139 fi
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19141 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19142 case $ac_cv_sys_file_offset_bits in #(
19143   no | unknown) ;;
19144   *)
19145 cat >>confdefs.h <<_ACEOF
19146 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19147 _ACEOF
19148 ;;
19149 esac
19150 rm -rf conftest*
19151   if test $ac_cv_sys_file_offset_bits = unknown; then
19152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19153 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19154 if ${ac_cv_sys_large_files+:} false; then :
19155   $as_echo_n "(cached) " >&6
19156 else
19157   while :; do
19158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h.  */
19160 #include <sys/types.h>
19161  /* Check that off_t can represent 2**63 - 1 correctly.
19162     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19163     since some C++ compilers masquerading as C compilers
19164     incorrectly reject 9223372036854775807.  */
19165 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19166   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19167                        && LARGE_OFF_T % 2147483647 == 1)
19168                       ? 1 : -1];
19169 int
19170 main ()
19171 {
19172
19173   ;
19174   return 0;
19175 }
19176 _ACEOF
19177 if ac_fn_c_try_compile "$LINENO"; then :
19178   ac_cv_sys_large_files=no; break
19179 fi
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h.  */
19183 #define _LARGE_FILES 1
19184 #include <sys/types.h>
19185  /* Check that off_t can represent 2**63 - 1 correctly.
19186     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19187     since some C++ compilers masquerading as C compilers
19188     incorrectly reject 9223372036854775807.  */
19189 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
19190   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19191                        && LARGE_OFF_T % 2147483647 == 1)
19192                       ? 1 : -1];
19193 int
19194 main ()
19195 {
19196
19197   ;
19198   return 0;
19199 }
19200 _ACEOF
19201 if ac_fn_c_try_compile "$LINENO"; then :
19202   ac_cv_sys_large_files=1; break
19203 fi
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205   ac_cv_sys_large_files=unknown
19206   break
19207 done
19208 fi
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19210 $as_echo "$ac_cv_sys_large_files" >&6; }
19211 case $ac_cv_sys_large_files in #(
19212   no | unknown) ;;
19213   *)
19214 cat >>confdefs.h <<_ACEOF
19215 #define _LARGE_FILES $ac_cv_sys_large_files
19216 _ACEOF
19217 ;;
19218 esac
19219 rm -rf conftest*
19220   fi
19221
19222
19223 fi
19224
19225
19226
19227
19228
19229
19230
19231
19232 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19233         if test -n "$ac_tool_prefix"; then
19234   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19235 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19237 $as_echo_n "checking for $ac_word... " >&6; }
19238 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19239   $as_echo_n "(cached) " >&6
19240 else
19241   case $PKG_CONFIG in
19242   [\\/]* | ?:[\\/]*)
19243   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19244   ;;
19245   *)
19246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19247 for as_dir in $PATH
19248 do
19249   IFS=$as_save_IFS
19250   test -z "$as_dir" && as_dir=.
19251     for ac_exec_ext in '' $ac_executable_extensions; do
19252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19253     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19255     break 2
19256   fi
19257 done
19258   done
19259 IFS=$as_save_IFS
19260
19261   ;;
19262 esac
19263 fi
19264 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19265 if test -n "$PKG_CONFIG"; then
19266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19267 $as_echo "$PKG_CONFIG" >&6; }
19268 else
19269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19271 fi
19272
19273
19274 fi
19275 if test -z "$ac_cv_path_PKG_CONFIG"; then
19276   ac_pt_PKG_CONFIG=$PKG_CONFIG
19277   # Extract the first word of "pkg-config", so it can be a program name with args.
19278 set dummy pkg-config; ac_word=$2
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19280 $as_echo_n "checking for $ac_word... " >&6; }
19281 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19282   $as_echo_n "(cached) " >&6
19283 else
19284   case $ac_pt_PKG_CONFIG in
19285   [\\/]* | ?:[\\/]*)
19286   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19287   ;;
19288   *)
19289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19291 do
19292   IFS=$as_save_IFS
19293   test -z "$as_dir" && as_dir=.
19294     for ac_exec_ext in '' $ac_executable_extensions; do
19295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19296     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19298     break 2
19299   fi
19300 done
19301   done
19302 IFS=$as_save_IFS
19303
19304   ;;
19305 esac
19306 fi
19307 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19308 if test -n "$ac_pt_PKG_CONFIG"; then
19309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19310 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19311 else
19312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19313 $as_echo "no" >&6; }
19314 fi
19315
19316   if test "x$ac_pt_PKG_CONFIG" = x; then
19317     PKG_CONFIG=""
19318   else
19319     case $cross_compiling:$ac_tool_warned in
19320 yes:)
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19323 ac_tool_warned=yes ;;
19324 esac
19325     PKG_CONFIG=$ac_pt_PKG_CONFIG
19326   fi
19327 else
19328   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19329 fi
19330
19331 fi
19332 if test -n "$PKG_CONFIG"; then
19333         _pkg_min_version=0.28
19334         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19335 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19336         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19337                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19338 $as_echo "yes" >&6; }
19339         else
19340                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19341 $as_echo "no" >&6; }
19342                 PKG_CONFIG=""
19343         fi
19344 fi
19345
19346 RAGEL=${RAGEL-"${am_missing_run}ragel"}
19347
19348
19349 GIT=${GIT-"${am_missing_run}git"}
19350
19351
19352 # Version
19353
19354
19355
19356
19357 HB_VERSION_MAJOR=3
19358 HB_VERSION_MINOR=4
19359 HB_VERSION_MICRO=0
19360 HB_VERSION=3.4.0
19361
19362
19363
19364
19365
19366 # Libtool version
19367
19368 HB_LIBTOOL_VERSION_INFO=30400:0:30400
19369
19370
19371
19372 # Check whether --with-libstdc++ was given.
19373 if test "${with_libstdc__+set}" = set; then :
19374   withval=$with_libstdc__; with_libstdcxx=$withval
19375 else
19376   with_libstdcxx=no
19377 fi
19378
19379  if test "x$with_libstdcxx" = "xyes"; then
19380   WITH_LIBSTDCXX_TRUE=
19381   WITH_LIBSTDCXX_FALSE='#'
19382 else
19383   WITH_LIBSTDCXX_TRUE='#'
19384   WITH_LIBSTDCXX_FALSE=
19385 fi
19386
19387
19388 # Documentation
19389 have_gtk_doc=false
19390
19391
19392
19393
19394   gtk_doc_requires="gtk-doc >= 1.15"
19395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
19396 $as_echo_n "checking for gtk-doc... " >&6; }
19397   if test -n "$PKG_CONFIG" && \
19398     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
19399   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
19400   ac_status=$?
19401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19402   test $ac_status = 0; }; then
19403   have_gtk_doc=yes
19404 else
19405   have_gtk_doc=no
19406 fi
19407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
19408 $as_echo "$have_gtk_doc" >&6; }
19409
19410   if test "$have_gtk_doc" = "no"; then
19411       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19412   You will not be able to create source packages with 'make dist'
19413   because $gtk_doc_requires is not found." >&5
19414 $as_echo "$as_me: WARNING:
19415   You will not be able to create source packages with 'make dist'
19416   because $gtk_doc_requires is not found." >&2;}
19417   fi
19418
19419             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19420 set dummy gtkdoc-check; ac_word=$2
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19422 $as_echo_n "checking for $ac_word... " >&6; }
19423 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
19424   $as_echo_n "(cached) " >&6
19425 else
19426   if test -n "$GTKDOC_CHECK"; then
19427   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
19428 else
19429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19430 for as_dir in $PATH
19431 do
19432   IFS=$as_save_IFS
19433   test -z "$as_dir" && as_dir=.
19434     for ac_exec_ext in '' $ac_executable_extensions; do
19435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19436     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
19437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19438     break 2
19439   fi
19440 done
19441   done
19442 IFS=$as_save_IFS
19443
19444 fi
19445 fi
19446 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
19447 if test -n "$GTKDOC_CHECK"; then
19448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
19449 $as_echo "$GTKDOC_CHECK" >&6; }
19450 else
19451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19452 $as_echo "no" >&6; }
19453 fi
19454
19455
19456   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
19457 set dummy gtkdoc-check; ac_word=$2
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19459 $as_echo_n "checking for $ac_word... " >&6; }
19460 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
19461   $as_echo_n "(cached) " >&6
19462 else
19463   case $GTKDOC_CHECK_PATH in
19464   [\\/]* | ?:[\\/]*)
19465   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
19466   ;;
19467   *)
19468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469 for as_dir in $PATH
19470 do
19471   IFS=$as_save_IFS
19472   test -z "$as_dir" && as_dir=.
19473     for ac_exec_ext in '' $ac_executable_extensions; do
19474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19475     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
19476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19477     break 2
19478   fi
19479 done
19480   done
19481 IFS=$as_save_IFS
19482
19483   ;;
19484 esac
19485 fi
19486 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
19487 if test -n "$GTKDOC_CHECK_PATH"; then
19488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
19489 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
19490 else
19491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19492 $as_echo "no" >&6; }
19493 fi
19494
19495
19496   for ac_prog in gtkdoc-rebase
19497 do
19498   # Extract the first word of "$ac_prog", so it can be a program name with args.
19499 set dummy $ac_prog; ac_word=$2
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19501 $as_echo_n "checking for $ac_word... " >&6; }
19502 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
19503   $as_echo_n "(cached) " >&6
19504 else
19505   case $GTKDOC_REBASE in
19506   [\\/]* | ?:[\\/]*)
19507   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
19508   ;;
19509   *)
19510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19511 for as_dir in $PATH
19512 do
19513   IFS=$as_save_IFS
19514   test -z "$as_dir" && as_dir=.
19515     for ac_exec_ext in '' $ac_executable_extensions; do
19516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19517     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
19518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19519     break 2
19520   fi
19521 done
19522   done
19523 IFS=$as_save_IFS
19524
19525   ;;
19526 esac
19527 fi
19528 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
19529 if test -n "$GTKDOC_REBASE"; then
19530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
19531 $as_echo "$GTKDOC_REBASE" >&6; }
19532 else
19533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19534 $as_echo "no" >&6; }
19535 fi
19536
19537
19538   test -n "$GTKDOC_REBASE" && break
19539 done
19540 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
19541
19542   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
19543 set dummy gtkdoc-mkpdf; ac_word=$2
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19545 $as_echo_n "checking for $ac_word... " >&6; }
19546 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
19547   $as_echo_n "(cached) " >&6
19548 else
19549   case $GTKDOC_MKPDF in
19550   [\\/]* | ?:[\\/]*)
19551   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
19552   ;;
19553   *)
19554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555 for as_dir in $PATH
19556 do
19557   IFS=$as_save_IFS
19558   test -z "$as_dir" && as_dir=.
19559     for ac_exec_ext in '' $ac_executable_extensions; do
19560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19561     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
19562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19563     break 2
19564   fi
19565 done
19566   done
19567 IFS=$as_save_IFS
19568
19569   ;;
19570 esac
19571 fi
19572 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
19573 if test -n "$GTKDOC_MKPDF"; then
19574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
19575 $as_echo "$GTKDOC_MKPDF" >&6; }
19576 else
19577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19579 fi
19580
19581
19582
19583
19584 # Check whether --with-html-dir was given.
19585 if test "${with_html_dir+set}" = set; then :
19586   withval=$with_html_dir;
19587 else
19588   with_html_dir='${datadir}/gtk-doc/html'
19589 fi
19590
19591   HTML_DIR="$with_html_dir"
19592
19593
19594     # Check whether --enable-gtk-doc was given.
19595 if test "${enable_gtk_doc+set}" = set; then :
19596   enableval=$enable_gtk_doc;
19597 else
19598   enable_gtk_doc=no
19599 fi
19600
19601
19602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
19603 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
19604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
19605 $as_echo "$enable_gtk_doc" >&6; }
19606
19607   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
19608     as_fn_error $? "
19609   You must have $gtk_doc_requires installed to build documentation for
19610   $PACKAGE_NAME. Please install gtk-doc or disable building the
19611   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
19612   fi
19613
19614     if test "x$PACKAGE_NAME" != "xglib"; then
19615
19616 pkg_failed=no
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
19618 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
19619
19620 if test -n "$GTKDOC_DEPS_CFLAGS"; then
19621     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
19622  elif test -n "$PKG_CONFIG"; then
19623     if test -n "$PKG_CONFIG" && \
19624     { { $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
19625   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19626   ac_status=$?
19627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19628   test $ac_status = 0; }; then
19629   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19630                       test "x$?" != "x0" && pkg_failed=yes
19631 else
19632   pkg_failed=yes
19633 fi
19634  else
19635     pkg_failed=untried
19636 fi
19637 if test -n "$GTKDOC_DEPS_LIBS"; then
19638     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
19639  elif test -n "$PKG_CONFIG"; then
19640     if test -n "$PKG_CONFIG" && \
19641     { { $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
19642   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
19643   ac_status=$?
19644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19645   test $ac_status = 0; }; then
19646   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
19647                       test "x$?" != "x0" && pkg_failed=yes
19648 else
19649   pkg_failed=yes
19650 fi
19651  else
19652     pkg_failed=untried
19653 fi
19654
19655
19656
19657 if test $pkg_failed = yes; then
19658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19659 $as_echo "no" >&6; }
19660
19661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19662         _pkg_short_errors_supported=yes
19663 else
19664         _pkg_short_errors_supported=no
19665 fi
19666         if test $_pkg_short_errors_supported = yes; then
19667                 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`
19668         else
19669                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
19670         fi
19671         # Put the nasty error message in config.log where it belongs
19672         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
19673
19674         :
19675 elif test $pkg_failed = untried; then
19676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19677 $as_echo "no" >&6; }
19678         :
19679 else
19680         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
19681         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
19682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19683 $as_echo "yes" >&6; }
19684
19685 fi
19686   fi
19687
19688     # Check whether --enable-gtk-doc-html was given.
19689 if test "${enable_gtk_doc_html+set}" = set; then :
19690   enableval=$enable_gtk_doc_html;
19691 else
19692   enable_gtk_doc_html=yes
19693 fi
19694
19695     # Check whether --enable-gtk-doc-pdf was given.
19696 if test "${enable_gtk_doc_pdf+set}" = set; then :
19697   enableval=$enable_gtk_doc_pdf;
19698 else
19699   enable_gtk_doc_pdf=no
19700 fi
19701
19702
19703   if test -z "$GTKDOC_MKPDF"; then
19704     enable_gtk_doc_pdf=no
19705   fi
19706
19707   if test -z "$AM_DEFAULT_VERBOSITY"; then
19708     AM_DEFAULT_VERBOSITY=1
19709   fi
19710
19711
19712    if test x$have_gtk_doc = xyes; then
19713   HAVE_GTK_DOC_TRUE=
19714   HAVE_GTK_DOC_FALSE='#'
19715 else
19716   HAVE_GTK_DOC_TRUE='#'
19717   HAVE_GTK_DOC_FALSE=
19718 fi
19719
19720    if test x$enable_gtk_doc = xyes; then
19721   ENABLE_GTK_DOC_TRUE=
19722   ENABLE_GTK_DOC_FALSE='#'
19723 else
19724   ENABLE_GTK_DOC_TRUE='#'
19725   ENABLE_GTK_DOC_FALSE=
19726 fi
19727
19728    if test x$enable_gtk_doc_html = xyes; then
19729   GTK_DOC_BUILD_HTML_TRUE=
19730   GTK_DOC_BUILD_HTML_FALSE='#'
19731 else
19732   GTK_DOC_BUILD_HTML_TRUE='#'
19733   GTK_DOC_BUILD_HTML_FALSE=
19734 fi
19735
19736    if test x$enable_gtk_doc_pdf = xyes; then
19737   GTK_DOC_BUILD_PDF_TRUE=
19738   GTK_DOC_BUILD_PDF_FALSE='#'
19739 else
19740   GTK_DOC_BUILD_PDF_TRUE='#'
19741   GTK_DOC_BUILD_PDF_FALSE=
19742 fi
19743
19744    if test -n "$LIBTOOL"; then
19745   GTK_DOC_USE_LIBTOOL_TRUE=
19746   GTK_DOC_USE_LIBTOOL_FALSE='#'
19747 else
19748   GTK_DOC_USE_LIBTOOL_TRUE='#'
19749   GTK_DOC_USE_LIBTOOL_FALSE=
19750 fi
19751
19752    if test -n "$GTKDOC_REBASE"; then
19753   GTK_DOC_USE_REBASE_TRUE=
19754   GTK_DOC_USE_REBASE_FALSE='#'
19755 else
19756   GTK_DOC_USE_REBASE_TRUE='#'
19757   GTK_DOC_USE_REBASE_FALSE=
19758 fi
19759
19760
19761         if test "x$enable_gtk_doc" = xyes; then
19762                 have_gtk_doc=true
19763         fi
19764
19765
19766 # Functions and headers
19767 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale uselocale
19768 do :
19769   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19771 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19772   cat >>confdefs.h <<_ACEOF
19773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19774 _ACEOF
19775
19776 fi
19777 done
19778
19779 for ac_header in unistd.h sys/mman.h stdbool.h xlocale.h
19780 do :
19781   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19783 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19784   cat >>confdefs.h <<_ACEOF
19785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19786 _ACEOF
19787
19788 fi
19789
19790 done
19791
19792
19793 # Compiler flags
19794
19795 # The cast to long int works around a bug in the HP C Compiler,
19796 # see AC_CHECK_SIZEOF for more information.
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
19798 $as_echo_n "checking alignment of struct{char;}... " >&6; }
19799 if ${ac_cv_alignof_struct_char__+:} false; then :
19800   $as_echo_n "(cached) " >&6
19801 else
19802   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
19803 #ifndef offsetof
19804 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
19805 #endif
19806 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
19807
19808 else
19809   if test "$ac_cv_type_struct_char__" = yes; then
19810      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19812 as_fn_error 77 "cannot compute alignment of struct{char;}
19813 See \`config.log' for more details" "$LINENO" 5; }
19814    else
19815      ac_cv_alignof_struct_char__=0
19816    fi
19817 fi
19818
19819 fi
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
19821 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
19822
19823
19824
19825 cat >>confdefs.h <<_ACEOF
19826 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
19827 _ACEOF
19828
19829
19830 if test "x$GCC" = "xyes"; then
19831
19832         # Make symbols link locally
19833         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
19834 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
19835 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
19836   $as_echo_n "(cached) " >&6
19837 else
19838
19839   ax_check_save_flags=$LDFLAGS
19840   LDFLAGS="$LDFLAGS  -Bsymbolic-functions"
19841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19842 /* end confdefs.h.  */
19843
19844 int
19845 main ()
19846 {
19847
19848   ;
19849   return 0;
19850 }
19851 _ACEOF
19852 if ac_fn_c_try_link "$LINENO"; then :
19853   ax_cv_check_ldflags___Bsymbolic_functions=yes
19854 else
19855   ax_cv_check_ldflags___Bsymbolic_functions=no
19856 fi
19857 rm -f core conftest.err conftest.$ac_objext \
19858     conftest$ac_exeext conftest.$ac_ext
19859   LDFLAGS=$ax_check_save_flags
19860 fi
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19862 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19863 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19864   LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19865 else
19866   :
19867 fi
19868
19869
19870         # Make it possible to not link to libstdc++
19871         # No threadsafe statics in C++ as we do it ourselves.
19872         # We don't use these features, so it's safe to disable them
19873         # even in the cases where we DO link to libstdc++.
19874         # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19875         # by overriding CXXFLAGS.
19876         CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19877
19878         case "$host" in
19879                 *-*-mingw*)
19880                 ;;
19881                 *)
19882                         # Hide inline methods
19883                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19884                 ;;
19885         esac
19886
19887         case "$host" in
19888                 arm-*-*)
19889                         if test "x$ac_cv_alignof_struct_char__" != x1; then
19890                                 # Request byte alignment
19891                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19892                         fi
19893                 ;;
19894         esac
19895 fi
19896
19897  if test "x$GCC" = "xyes"; then
19898   HAVE_GCC_TRUE=
19899   HAVE_GCC_FALSE='#'
19900 else
19901   HAVE_GCC_TRUE='#'
19902   HAVE_GCC_FALSE=
19903 fi
19904
19905
19906 hb_os_win32=no
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19908 $as_echo_n "checking for native Win32... " >&6; }
19909 case "$host" in
19910   *-*-mingw*)
19911     hb_os_win32=yes
19912     ;;
19913 esac
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19915 $as_echo "$hb_os_win32" >&6; }
19916  if test "$hb_os_win32" = "yes"; then
19917   OS_WIN32_TRUE=
19918   OS_WIN32_FALSE='#'
19919 else
19920   OS_WIN32_TRUE='#'
19921   OS_WIN32_FALSE=
19922 fi
19923
19924
19925 have_pthread=false
19926
19927
19928
19929
19930 ac_ext=c
19931 ac_cpp='$CPP $CPPFLAGS'
19932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19935
19936 ax_pthread_ok=no
19937
19938 # We used to check for pthread.h first, but this fails if pthread.h
19939 # requires special compiler flags (e.g. on Tru64 or Sequent).
19940 # It gets checked for in the link test anyway.
19941
19942 # First of all, check if the user has set any of the PTHREAD_LIBS,
19943 # etcetera environment variables, and if threads linking works using
19944 # them:
19945 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19946         ax_pthread_save_CC="$CC"
19947         ax_pthread_save_CFLAGS="$CFLAGS"
19948         ax_pthread_save_LIBS="$LIBS"
19949         if test "x$PTHREAD_CC" != "x"; then :
19950   CC="$PTHREAD_CC"
19951 fi
19952         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19953         LIBS="$PTHREAD_LIBS $LIBS"
19954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19955 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19956         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h.  */
19958
19959 /* Override any GCC internal prototype to avoid an error.
19960    Use char because int might match the return type of a GCC
19961    builtin and then its argument prototype would still apply.  */
19962 #ifdef __cplusplus
19963 extern "C"
19964 #endif
19965 char pthread_join ();
19966 int
19967 main ()
19968 {
19969 return pthread_join ();
19970   ;
19971   return 0;
19972 }
19973 _ACEOF
19974 if ac_fn_c_try_link "$LINENO"; then :
19975   ax_pthread_ok=yes
19976 fi
19977 rm -f core conftest.err conftest.$ac_objext \
19978     conftest$ac_exeext conftest.$ac_ext
19979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19980 $as_echo "$ax_pthread_ok" >&6; }
19981         if test "x$ax_pthread_ok" = "xno"; then
19982                 PTHREAD_LIBS=""
19983                 PTHREAD_CFLAGS=""
19984         fi
19985         CC="$ax_pthread_save_CC"
19986         CFLAGS="$ax_pthread_save_CFLAGS"
19987         LIBS="$ax_pthread_save_LIBS"
19988 fi
19989
19990 # We must check for the threads library under a number of different
19991 # names; the ordering is very important because some systems
19992 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19993 # libraries is broken (non-POSIX).
19994
19995 # Create a list of thread flags to try.  Items starting with a "-" are
19996 # C compiler flags, and other items are library names, except for "none"
19997 # which indicates that we try without any flags at all, and "pthread-config"
19998 # which is a program returning the flags for the Pth emulation library.
19999
20000 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20001
20002 # The ordering *is* (sometimes) important.  Some notes on the
20003 # individual items follow:
20004
20005 # pthreads: AIX (must check this before -lpthread)
20006 # none: in case threads are in libc; should be tried before -Kthread and
20007 #       other compiler flags to prevent continual compiler warnings
20008 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20009 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20010 #           (Note: HP C rejects this with "bad form for `-t' option")
20011 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20012 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20013 #      doesn't hurt to check since this sometimes defines pthreads and
20014 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
20015 #      is present but should not be used directly; and before -mthreads,
20016 #      because the compiler interprets this as "-mt" + "-hreads")
20017 # -mthreads: Mingw32/gcc, Lynx/gcc
20018 # pthread: Linux, etcetera
20019 # --thread-safe: KAI C++
20020 # pthread-config: use pthread-config program (for GNU Pth library)
20021
20022 case $host_os in
20023
20024         freebsd*)
20025
20026         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20027         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20028
20029         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20030         ;;
20031
20032         hpux*)
20033
20034         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20035         # multi-threading and also sets -lpthread."
20036
20037         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20038         ;;
20039
20040         openedition*)
20041
20042         # IBM z/OS requires a feature-test macro to be defined in order to
20043         # enable POSIX threads at all, so give the user a hint if this is
20044         # not set. (We don't define these ourselves, as they can affect
20045         # other portions of the system API in unpredictable ways.)
20046
20047         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20048 /* end confdefs.h.  */
20049
20050 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20051              AX_PTHREAD_ZOS_MISSING
20052 #            endif
20053
20054 _ACEOF
20055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20056   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20057   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20058 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20059 fi
20060 rm -f conftest*
20061
20062         ;;
20063
20064         solaris*)
20065
20066         # On Solaris (at least, for some versions), libc contains stubbed
20067         # (non-functional) versions of the pthreads routines, so link-based
20068         # tests will erroneously succeed. (N.B.: The stubs are missing
20069         # pthread_cleanup_push, or rather a function called by this macro,
20070         # so we could check for that, but who knows whether they'll stub
20071         # that too in a future libc.)  So we'll check first for the
20072         # standard Solaris way of linking pthreads (-mt -lpthread).
20073
20074         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20075         ;;
20076 esac
20077
20078 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20079
20080 if test "x$GCC" = "xyes"; then :
20081   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20082 fi
20083
20084 # The presence of a feature test macro requesting re-entrant function
20085 # definitions is, on some systems, a strong hint that pthreads support is
20086 # correctly enabled
20087
20088 case $host_os in
20089         darwin* | hpux* | linux* | osf* | solaris*)
20090         ax_pthread_check_macro="_REENTRANT"
20091         ;;
20092
20093         aix*)
20094         ax_pthread_check_macro="_THREAD_SAFE"
20095         ;;
20096
20097         *)
20098         ax_pthread_check_macro="--"
20099         ;;
20100 esac
20101 if test "x$ax_pthread_check_macro" = "x--"; then :
20102   ax_pthread_check_cond=0
20103 else
20104   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20105 fi
20106
20107 # Are we compiling with Clang?
20108
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20110 $as_echo_n "checking whether $CC is Clang... " >&6; }
20111 if ${ax_cv_PTHREAD_CLANG+:} false; then :
20112   $as_echo_n "(cached) " >&6
20113 else
20114   ax_cv_PTHREAD_CLANG=no
20115      # Note that Autoconf sets GCC=yes for Clang as well as GCC
20116      if test "x$GCC" = "xyes"; then
20117         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h.  */
20119 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20120 #            if defined(__clang__) && defined(__llvm__)
20121              AX_PTHREAD_CC_IS_CLANG
20122 #            endif
20123
20124 _ACEOF
20125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20126   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20127   ax_cv_PTHREAD_CLANG=yes
20128 fi
20129 rm -f conftest*
20130
20131      fi
20132
20133 fi
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20135 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20136 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20137
20138 ax_pthread_clang_warning=no
20139
20140 # Clang needs special handling, because older versions handle the -pthread
20141 # option in a rather... idiosyncratic way
20142
20143 if test "x$ax_pthread_clang" = "xyes"; then
20144
20145         # Clang takes -pthread; it has never supported any other flag
20146
20147         # (Note 1: This will need to be revisited if a system that Clang
20148         # supports has POSIX threads in a separate library.  This tends not
20149         # to be the way of modern systems, but it's conceivable.)
20150
20151         # (Note 2: On some systems, notably Darwin, -pthread is not needed
20152         # to get POSIX threads support; the API is always present and
20153         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
20154         # -pthread does define _REENTRANT, and while the Darwin headers
20155         # ignore this macro, third-party headers might not.)
20156
20157         PTHREAD_CFLAGS="-pthread"
20158         PTHREAD_LIBS=
20159
20160         ax_pthread_ok=yes
20161
20162         # However, older versions of Clang make a point of warning the user
20163         # that, in an invocation where only linking and no compilation is
20164         # taking place, the -pthread option has no effect ("argument unused
20165         # during compilation").  They expect -pthread to be passed in only
20166         # when source code is being compiled.
20167         #
20168         # Problem is, this is at odds with the way Automake and most other
20169         # C build frameworks function, which is that the same flags used in
20170         # compilation (CFLAGS) are also used in linking.  Many systems
20171         # supported by AX_PTHREAD require exactly this for POSIX threads
20172         # support, and in fact it is often not straightforward to specify a
20173         # flag that is used only in the compilation phase and not in
20174         # linking.  Such a scenario is extremely rare in practice.
20175         #
20176         # Even though use of the -pthread flag in linking would only print
20177         # a warning, this can be a nuisance for well-run software projects
20178         # that build with -Werror.  So if the active version of Clang has
20179         # this misfeature, we search for an option to squash it.
20180
20181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20182 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20183 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20184   $as_echo_n "(cached) " >&6
20185 else
20186   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20187              # Create an alternate version of $ac_link that compiles and
20188              # links in two steps (.c -> .o, .o -> exe) instead of one
20189              # (.c -> exe), because the warning occurs only in the second
20190              # step
20191              ax_pthread_save_ac_link="$ac_link"
20192              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20193              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20194              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20195              ax_pthread_save_CFLAGS="$CFLAGS"
20196              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20197                 if test "x$ax_pthread_try" = "xunknown"; then :
20198   break
20199 fi
20200                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20201                 ac_link="$ax_pthread_save_ac_link"
20202                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h.  */
20204 int main(void){return 0;}
20205 _ACEOF
20206 if ac_fn_c_try_link "$LINENO"; then :
20207   ac_link="$ax_pthread_2step_ac_link"
20208                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209 /* end confdefs.h.  */
20210 int main(void){return 0;}
20211 _ACEOF
20212 if ac_fn_c_try_link "$LINENO"; then :
20213   break
20214 fi
20215 rm -f core conftest.err conftest.$ac_objext \
20216     conftest$ac_exeext conftest.$ac_ext
20217
20218 fi
20219 rm -f core conftest.err conftest.$ac_objext \
20220     conftest$ac_exeext conftest.$ac_ext
20221              done
20222              ac_link="$ax_pthread_save_ac_link"
20223              CFLAGS="$ax_pthread_save_CFLAGS"
20224              if test "x$ax_pthread_try" = "x"; then :
20225   ax_pthread_try=no
20226 fi
20227              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20228
20229 fi
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20231 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20232
20233         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20234                 no | unknown) ;;
20235                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20236         esac
20237
20238 fi # $ax_pthread_clang = yes
20239
20240 if test "x$ax_pthread_ok" = "xno"; then
20241 for ax_pthread_try_flag in $ax_pthread_flags; do
20242
20243         case $ax_pthread_try_flag in
20244                 none)
20245                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20246 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20247                 ;;
20248
20249                 -mt,pthread)
20250                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20251 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20252                 PTHREAD_CFLAGS="-mt"
20253                 PTHREAD_LIBS="-lpthread"
20254                 ;;
20255
20256                 -*)
20257                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20258 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20259                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
20260                 ;;
20261
20262                 pthread-config)
20263                 # Extract the first word of "pthread-config", so it can be a program name with args.
20264 set dummy pthread-config; ac_word=$2
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20266 $as_echo_n "checking for $ac_word... " >&6; }
20267 if ${ac_cv_prog_ax_pthread_config+:} false; then :
20268   $as_echo_n "(cached) " >&6
20269 else
20270   if test -n "$ax_pthread_config"; then
20271   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20272 else
20273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20274 for as_dir in $PATH
20275 do
20276   IFS=$as_save_IFS
20277   test -z "$as_dir" && as_dir=.
20278     for ac_exec_ext in '' $ac_executable_extensions; do
20279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20280     ac_cv_prog_ax_pthread_config="yes"
20281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20282     break 2
20283   fi
20284 done
20285   done
20286 IFS=$as_save_IFS
20287
20288   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20289 fi
20290 fi
20291 ax_pthread_config=$ac_cv_prog_ax_pthread_config
20292 if test -n "$ax_pthread_config"; then
20293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20294 $as_echo "$ax_pthread_config" >&6; }
20295 else
20296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20297 $as_echo "no" >&6; }
20298 fi
20299
20300
20301                 if test "x$ax_pthread_config" = "xno"; then :
20302   continue
20303 fi
20304                 PTHREAD_CFLAGS="`pthread-config --cflags`"
20305                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20306                 ;;
20307
20308                 *)
20309                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20310 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20311                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
20312                 ;;
20313         esac
20314
20315         ax_pthread_save_CFLAGS="$CFLAGS"
20316         ax_pthread_save_LIBS="$LIBS"
20317         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20318         LIBS="$PTHREAD_LIBS $LIBS"
20319
20320         # Check for various functions.  We must include pthread.h,
20321         # since some functions may be macros.  (On the Sequent, we
20322         # need a special flag -Kthread to make this header compile.)
20323         # We check for pthread_join because it is in -lpthread on IRIX
20324         # while pthread_create is in libc.  We check for pthread_attr_init
20325         # due to DEC craziness with -lpthreads.  We check for
20326         # pthread_cleanup_push because it is one of the few pthread
20327         # functions on Solaris that doesn't have a non-functional libc stub.
20328         # We try pthread_create on general principles.
20329
20330         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20331 /* end confdefs.h.  */
20332 #include <pthread.h>
20333 #                       if $ax_pthread_check_cond
20334 #                        error "$ax_pthread_check_macro must be defined"
20335 #                       endif
20336                         static void routine(void *a) { a = 0; }
20337                         static void *start_routine(void *a) { return a; }
20338 int
20339 main ()
20340 {
20341 pthread_t th; pthread_attr_t attr;
20342                         pthread_create(&th, 0, start_routine, 0);
20343                         pthread_join(th, 0);
20344                         pthread_attr_init(&attr);
20345                         pthread_cleanup_push(routine, 0);
20346                         pthread_cleanup_pop(0) /* ; */
20347   ;
20348   return 0;
20349 }
20350 _ACEOF
20351 if ac_fn_c_try_link "$LINENO"; then :
20352   ax_pthread_ok=yes
20353 fi
20354 rm -f core conftest.err conftest.$ac_objext \
20355     conftest$ac_exeext conftest.$ac_ext
20356
20357         CFLAGS="$ax_pthread_save_CFLAGS"
20358         LIBS="$ax_pthread_save_LIBS"
20359
20360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20361 $as_echo "$ax_pthread_ok" >&6; }
20362         if test "x$ax_pthread_ok" = "xyes"; then :
20363   break
20364 fi
20365
20366         PTHREAD_LIBS=""
20367         PTHREAD_CFLAGS=""
20368 done
20369 fi
20370
20371 # Various other checks:
20372 if test "x$ax_pthread_ok" = "xyes"; then
20373         ax_pthread_save_CFLAGS="$CFLAGS"
20374         ax_pthread_save_LIBS="$LIBS"
20375         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20376         LIBS="$PTHREAD_LIBS $LIBS"
20377
20378         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20379         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20380 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20381 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20382   $as_echo_n "(cached) " >&6
20383 else
20384   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20385              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20386                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387 /* end confdefs.h.  */
20388 #include <pthread.h>
20389 int
20390 main ()
20391 {
20392 int attr = $ax_pthread_attr; return attr /* ; */
20393   ;
20394   return 0;
20395 }
20396 _ACEOF
20397 if ac_fn_c_try_link "$LINENO"; then :
20398   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20399 fi
20400 rm -f core conftest.err conftest.$ac_objext \
20401     conftest$ac_exeext conftest.$ac_ext
20402              done
20403
20404 fi
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20406 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20407         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20408                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20409                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20410
20411 cat >>confdefs.h <<_ACEOF
20412 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20413 _ACEOF
20414
20415                ax_pthread_joinable_attr_defined=yes
20416
20417 fi
20418
20419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20420 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20421 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20422   $as_echo_n "(cached) " >&6
20423 else
20424   ax_cv_PTHREAD_SPECIAL_FLAGS=no
20425              case $host_os in
20426              solaris*)
20427              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20428              ;;
20429              esac
20430
20431 fi
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20433 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20434         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20435                test "x$ax_pthread_special_flags_added" != "xyes"; then :
20436   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20437                ax_pthread_special_flags_added=yes
20438 fi
20439
20440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20441 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20442 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20443   $as_echo_n "(cached) " >&6
20444 else
20445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446 /* end confdefs.h.  */
20447 #include <pthread.h>
20448 int
20449 main ()
20450 {
20451 int i = PTHREAD_PRIO_INHERIT;
20452   ;
20453   return 0;
20454 }
20455 _ACEOF
20456 if ac_fn_c_try_link "$LINENO"; then :
20457   ax_cv_PTHREAD_PRIO_INHERIT=yes
20458 else
20459   ax_cv_PTHREAD_PRIO_INHERIT=no
20460 fi
20461 rm -f core conftest.err conftest.$ac_objext \
20462     conftest$ac_exeext conftest.$ac_ext
20463
20464 fi
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20466 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20467         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20468                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20469
20470 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20471
20472                ax_pthread_prio_inherit_defined=yes
20473
20474 fi
20475
20476         CFLAGS="$ax_pthread_save_CFLAGS"
20477         LIBS="$ax_pthread_save_LIBS"
20478
20479         # More AIX lossage: compile with *_r variant
20480         if test "x$GCC" != "xyes"; then
20481             case $host_os in
20482                 aix*)
20483                 case "x/$CC" in #(
20484   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20485     #handle absolute path differently from PATH based program lookup
20486                      case "x$CC" in #(
20487   x/*) :
20488     if as_fn_executable_p ${CC}_r; then :
20489   PTHREAD_CC="${CC}_r"
20490 fi ;; #(
20491   *) :
20492     for ac_prog in ${CC}_r
20493 do
20494   # Extract the first word of "$ac_prog", so it can be a program name with args.
20495 set dummy $ac_prog; ac_word=$2
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20497 $as_echo_n "checking for $ac_word... " >&6; }
20498 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20499   $as_echo_n "(cached) " >&6
20500 else
20501   if test -n "$PTHREAD_CC"; then
20502   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20503 else
20504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20505 for as_dir in $PATH
20506 do
20507   IFS=$as_save_IFS
20508   test -z "$as_dir" && as_dir=.
20509     for ac_exec_ext in '' $ac_executable_extensions; do
20510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20511     ac_cv_prog_PTHREAD_CC="$ac_prog"
20512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20513     break 2
20514   fi
20515 done
20516   done
20517 IFS=$as_save_IFS
20518
20519 fi
20520 fi
20521 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20522 if test -n "$PTHREAD_CC"; then
20523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20524 $as_echo "$PTHREAD_CC" >&6; }
20525 else
20526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20527 $as_echo "no" >&6; }
20528 fi
20529
20530
20531   test -n "$PTHREAD_CC" && break
20532 done
20533 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20534  ;;
20535 esac ;; #(
20536   *) :
20537      ;;
20538 esac
20539                 ;;
20540             esac
20541         fi
20542 fi
20543
20544 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20545
20546
20547
20548
20549
20550 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20551 if test "x$ax_pthread_ok" = "xyes"; then
20552         have_pthread=true
20553         :
20554 else
20555         ax_pthread_ok=no
20556
20557 fi
20558 ac_ext=c
20559 ac_cpp='$CPP $CPPFLAGS'
20560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20563
20564
20565 if $have_pthread; then
20566
20567 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20568
20569 fi
20570  if $have_pthread; then
20571   HAVE_PTHREAD_TRUE=
20572   HAVE_PTHREAD_FALSE='#'
20573 else
20574   HAVE_PTHREAD_TRUE='#'
20575   HAVE_PTHREAD_FALSE=
20576 fi
20577
20578
20579
20580
20581 # Check whether --with-glib was given.
20582 if test "${with_glib+set}" = set; then :
20583   withval=$with_glib;
20584 else
20585   with_glib=auto
20586 fi
20587
20588 have_glib=false
20589 GLIB_DEPS="glib-2.0 >= 2.19.1"
20590
20591 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
20592
20593 pkg_failed=no
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
20595 $as_echo_n "checking for GLIB... " >&6; }
20596
20597 if test -n "$GLIB_CFLAGS"; then
20598     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20599  elif test -n "$PKG_CONFIG"; then
20600     if test -n "$PKG_CONFIG" && \
20601     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20602   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20603   ac_status=$?
20604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20605   test $ac_status = 0; }; then
20606   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
20607                       test "x$?" != "x0" && pkg_failed=yes
20608 else
20609   pkg_failed=yes
20610 fi
20611  else
20612     pkg_failed=untried
20613 fi
20614 if test -n "$GLIB_LIBS"; then
20615     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20616  elif test -n "$PKG_CONFIG"; then
20617     if test -n "$PKG_CONFIG" && \
20618     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
20619   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
20620   ac_status=$?
20621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20622   test $ac_status = 0; }; then
20623   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
20624                       test "x$?" != "x0" && pkg_failed=yes
20625 else
20626   pkg_failed=yes
20627 fi
20628  else
20629     pkg_failed=untried
20630 fi
20631
20632
20633
20634 if test $pkg_failed = yes; then
20635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636 $as_echo "no" >&6; }
20637
20638 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20639         _pkg_short_errors_supported=yes
20640 else
20641         _pkg_short_errors_supported=no
20642 fi
20643         if test $_pkg_short_errors_supported = yes; then
20644                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20645         else
20646                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLIB_DEPS" 2>&1`
20647         fi
20648         # Put the nasty error message in config.log where it belongs
20649         echo "$GLIB_PKG_ERRORS" >&5
20650
20651         :
20652 elif test $pkg_failed = untried; then
20653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20654 $as_echo "no" >&6; }
20655         :
20656 else
20657         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20658         GLIB_LIBS=$pkg_cv_GLIB_LIBS
20659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20660 $as_echo "yes" >&6; }
20661         have_glib=true
20662 fi
20663 fi
20664 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
20665         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
20666 fi
20667 if $have_glib; then
20668
20669 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
20670
20671 fi
20672  if $have_glib; then
20673   HAVE_GLIB_TRUE=
20674   HAVE_GLIB_FALSE='#'
20675 else
20676   HAVE_GLIB_TRUE='#'
20677   HAVE_GLIB_FALSE=
20678 fi
20679
20680
20681
20682
20683 # Check whether --with-gobject was given.
20684 if test "${with_gobject+set}" = set; then :
20685   withval=$with_gobject;
20686 else
20687   with_gobject=no
20688 fi
20689
20690 have_gobject=false
20691 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
20692
20693 pkg_failed=no
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
20695 $as_echo_n "checking for GOBJECT... " >&6; }
20696
20697 if test -n "$GOBJECT_CFLAGS"; then
20698     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
20699  elif test -n "$PKG_CONFIG"; then
20700     if test -n "$PKG_CONFIG" && \
20701     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20702   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20703   ac_status=$?
20704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20705   test $ac_status = 0; }; then
20706   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
20707                       test "x$?" != "x0" && pkg_failed=yes
20708 else
20709   pkg_failed=yes
20710 fi
20711  else
20712     pkg_failed=untried
20713 fi
20714 if test -n "$GOBJECT_LIBS"; then
20715     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
20716  elif test -n "$PKG_CONFIG"; then
20717     if test -n "$PKG_CONFIG" && \
20718     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
20719   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
20720   ac_status=$?
20721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20722   test $ac_status = 0; }; then
20723   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
20724                       test "x$?" != "x0" && pkg_failed=yes
20725 else
20726   pkg_failed=yes
20727 fi
20728  else
20729     pkg_failed=untried
20730 fi
20731
20732
20733
20734 if test $pkg_failed = yes; then
20735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20736 $as_echo "no" >&6; }
20737
20738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20739         _pkg_short_errors_supported=yes
20740 else
20741         _pkg_short_errors_supported=no
20742 fi
20743         if test $_pkg_short_errors_supported = yes; then
20744                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20745         else
20746                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 glib-2.0" 2>&1`
20747         fi
20748         # Put the nasty error message in config.log where it belongs
20749         echo "$GOBJECT_PKG_ERRORS" >&5
20750
20751         :
20752 elif test $pkg_failed = untried; then
20753         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20754 $as_echo "no" >&6; }
20755         :
20756 else
20757         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
20758         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
20759         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20760 $as_echo "yes" >&6; }
20761         have_gobject=true
20762 fi
20763 fi
20764 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
20765         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
20766 fi
20767 if $have_gobject; then
20768
20769 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
20770
20771         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
20772
20773 fi
20774  if $have_gobject; then
20775   HAVE_GOBJECT_TRUE=
20776   HAVE_GOBJECT_FALSE='#'
20777 else
20778   HAVE_GOBJECT_TRUE='#'
20779   HAVE_GOBJECT_FALSE=
20780 fi
20781
20782
20783
20784
20785
20786 # Gobject-Introspection
20787 have_introspection=false
20788
20789         if $have_gobject; then
20790
20791
20792
20793                 # Check whether --enable-introspection was given.
20794 if test "${enable_introspection+set}" = set; then :
20795   enableval=$enable_introspection;
20796 else
20797   enable_introspection=auto
20798 fi
20799
20800
20801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
20802 $as_echo_n "checking for gobject-introspection... " >&6; }
20803
20804         case $enable_introspection in #(
20805   no) :
20806             found_introspection="no (disabled, use --enable-introspection to enable)"
20807      ;; #(
20808       yes) :
20809             if test -n "$PKG_CONFIG" && \
20810     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
20811   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
20812   ac_status=$?
20813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20814   test $ac_status = 0; }; then
20815   :
20816 else
20817   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
20818 fi
20819         if test -n "$PKG_CONFIG" && \
20820     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20821   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20822   ac_status=$?
20823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20824   test $ac_status = 0; }; then
20825   found_introspection=yes
20826 else
20827   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20828 fi
20829      ;; #(
20830       auto) :
20831             if test -n "$PKG_CONFIG" && \
20832     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20833   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20834   ac_status=$?
20835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20836   test $ac_status = 0; }; then
20837   found_introspection=yes
20838 else
20839   found_introspection=no
20840 fi
20841                 enable_introspection=$found_introspection
20842      ;; #(
20843   *) :
20844                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20845      ;;
20846 esac
20847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20848 $as_echo "$found_introspection" >&6; }
20849
20850
20851   EXP_VAR=_GI_EXP_DATADIR
20852   FROM_VAR="$datadir"
20853
20854     prefix_save=$prefix
20855   exec_prefix_save=$exec_prefix
20856
20857     if test "x$prefix" = "xNONE"; then
20858     prefix="$ac_default_prefix"
20859   fi
20860     if test "x$exec_prefix" = "xNONE"; then
20861     exec_prefix=$prefix
20862   fi
20863
20864   full_var="$FROM_VAR"
20865     while true; do
20866     new_full_var="`eval echo $full_var`"
20867     if test "x$new_full_var" = "x$full_var"; then break; fi
20868     full_var=$new_full_var
20869   done
20870
20871     full_var=$new_full_var
20872   _GI_EXP_DATADIR="$full_var"
20873
20874
20875     prefix=$prefix_save
20876   exec_prefix=$exec_prefix_save
20877
20878
20879   EXP_VAR=_GI_EXP_LIBDIR
20880   FROM_VAR="$libdir"
20881
20882     prefix_save=$prefix
20883   exec_prefix_save=$exec_prefix
20884
20885     if test "x$prefix" = "xNONE"; then
20886     prefix="$ac_default_prefix"
20887   fi
20888     if test "x$exec_prefix" = "xNONE"; then
20889     exec_prefix=$prefix
20890   fi
20891
20892   full_var="$FROM_VAR"
20893     while true; do
20894     new_full_var="`eval echo $full_var`"
20895     if test "x$new_full_var" = "x$full_var"; then break; fi
20896     full_var=$new_full_var
20897   done
20898
20899     full_var=$new_full_var
20900   _GI_EXP_LIBDIR="$full_var"
20901
20902
20903     prefix=$prefix_save
20904   exec_prefix=$exec_prefix_save
20905
20906
20907     INTROSPECTION_SCANNER=
20908     INTROSPECTION_COMPILER=
20909     INTROSPECTION_GENERATE=
20910     INTROSPECTION_GIRDIR=
20911     INTROSPECTION_TYPELIBDIR=
20912     if test "x$found_introspection" = "xyes"; then
20913        INTROSPECTION_SCANNER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20914        INTROSPECTION_COMPILER=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20915        INTROSPECTION_GENERATE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20916        INTROSPECTION_GIRDIR=`$PKG_CONFIG --define-variable=datadir="${_GI_EXP_DATADIR}" --variable=girdir gobject-introspection-1.0`
20917        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --define-variable=libdir="${_GI_EXP_LIBDIR}" --variable=typelibdir gobject-introspection-1.0)"
20918        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20919        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20920        INTROSPECTION_MAKEFILE=$PKG_CONFIG_SYSROOT_DIR`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20921     fi
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931      if test "x$found_introspection" = "xyes"; then
20932   HAVE_INTROSPECTION_TRUE=
20933   HAVE_INTROSPECTION_FALSE='#'
20934 else
20935   HAVE_INTROSPECTION_TRUE='#'
20936   HAVE_INTROSPECTION_FALSE=
20937 fi
20938
20939
20940
20941                 if test "x$found_introspection" = xyes; then
20942                         have_introspection=true
20943                 fi
20944         else
20945                  if false; then
20946   HAVE_INTROSPECTION_TRUE=
20947   HAVE_INTROSPECTION_FALSE='#'
20948 else
20949   HAVE_INTROSPECTION_TRUE='#'
20950   HAVE_INTROSPECTION_FALSE=
20951 fi
20952
20953         fi
20954
20955
20956
20957
20958 # Check whether --with-cairo was given.
20959 if test "${with_cairo+set}" = set; then :
20960   withval=$with_cairo;
20961 else
20962   with_cairo=auto
20963 fi
20964
20965 have_cairo=false
20966 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20967
20968 pkg_failed=no
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20970 $as_echo_n "checking for CAIRO... " >&6; }
20971
20972 if test -n "$CAIRO_CFLAGS"; then
20973     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20974  elif test -n "$PKG_CONFIG"; then
20975     if test -n "$PKG_CONFIG" && \
20976     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20977   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20978   ac_status=$?
20979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20980   test $ac_status = 0; }; then
20981   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20982                       test "x$?" != "x0" && pkg_failed=yes
20983 else
20984   pkg_failed=yes
20985 fi
20986  else
20987     pkg_failed=untried
20988 fi
20989 if test -n "$CAIRO_LIBS"; then
20990     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20991  elif test -n "$PKG_CONFIG"; then
20992     if test -n "$PKG_CONFIG" && \
20993     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20994   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20995   ac_status=$?
20996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20997   test $ac_status = 0; }; then
20998   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20999                       test "x$?" != "x0" && pkg_failed=yes
21000 else
21001   pkg_failed=yes
21002 fi
21003  else
21004     pkg_failed=untried
21005 fi
21006
21007
21008
21009 if test $pkg_failed = yes; then
21010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21011 $as_echo "no" >&6; }
21012
21013 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21014         _pkg_short_errors_supported=yes
21015 else
21016         _pkg_short_errors_supported=no
21017 fi
21018         if test $_pkg_short_errors_supported = yes; then
21019                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21020         else
21021                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.8.0" 2>&1`
21022         fi
21023         # Put the nasty error message in config.log where it belongs
21024         echo "$CAIRO_PKG_ERRORS" >&5
21025
21026         :
21027 elif test $pkg_failed = untried; then
21028         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21029 $as_echo "no" >&6; }
21030         :
21031 else
21032         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
21033         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
21034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21035 $as_echo "yes" >&6; }
21036         have_cairo=true
21037 fi
21038 fi
21039 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
21040         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
21041 fi
21042 if $have_cairo; then
21043
21044 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
21045
21046 fi
21047  if $have_cairo; then
21048   HAVE_CAIRO_TRUE=
21049   HAVE_CAIRO_FALSE='#'
21050 else
21051   HAVE_CAIRO_TRUE='#'
21052   HAVE_CAIRO_FALSE=
21053 fi
21054
21055
21056 have_cairo_ft=false
21057 if $have_cairo; then
21058
21059 pkg_failed=no
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
21061 $as_echo_n "checking for CAIRO_FT... " >&6; }
21062
21063 if test -n "$CAIRO_FT_CFLAGS"; then
21064     pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
21065  elif test -n "$PKG_CONFIG"; then
21066     if test -n "$PKG_CONFIG" && \
21067     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21068   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21069   ac_status=$?
21070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21071   test $ac_status = 0; }; then
21072   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
21073                       test "x$?" != "x0" && pkg_failed=yes
21074 else
21075   pkg_failed=yes
21076 fi
21077  else
21078     pkg_failed=untried
21079 fi
21080 if test -n "$CAIRO_FT_LIBS"; then
21081     pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
21082  elif test -n "$PKG_CONFIG"; then
21083     if test -n "$PKG_CONFIG" && \
21084     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
21085   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
21086   ac_status=$?
21087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21088   test $ac_status = 0; }; then
21089   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
21090                       test "x$?" != "x0" && pkg_failed=yes
21091 else
21092   pkg_failed=yes
21093 fi
21094  else
21095     pkg_failed=untried
21096 fi
21097
21098
21099
21100 if test $pkg_failed = yes; then
21101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21102 $as_echo "no" >&6; }
21103
21104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21105         _pkg_short_errors_supported=yes
21106 else
21107         _pkg_short_errors_supported=no
21108 fi
21109         if test $_pkg_short_errors_supported = yes; then
21110                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-ft" 2>&1`
21111         else
21112                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-ft" 2>&1`
21113         fi
21114         # Put the nasty error message in config.log where it belongs
21115         echo "$CAIRO_FT_PKG_ERRORS" >&5
21116
21117         :
21118 elif test $pkg_failed = untried; then
21119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21120 $as_echo "no" >&6; }
21121         :
21122 else
21123         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
21124         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
21125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21126 $as_echo "yes" >&6; }
21127         have_cairo_ft=true
21128 fi
21129 fi
21130 if $have_cairo_ft; then
21131
21132 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
21133
21134 fi
21135  if $have_cairo_ft; then
21136   HAVE_CAIRO_FT_TRUE=
21137   HAVE_CAIRO_FT_FALSE='#'
21138 else
21139   HAVE_CAIRO_FT_TRUE='#'
21140   HAVE_CAIRO_FT_FALSE=
21141 fi
21142
21143
21144
21145
21146 # Check whether --with-chafa was given.
21147 if test "${with_chafa+set}" = set; then :
21148   withval=$with_chafa;
21149 else
21150   with_chafa=auto
21151 fi
21152
21153 have_chafa=false
21154 if test "x$with_chafa" = "xyes" -o "x$with_chafa" = "xauto"; then
21155
21156 pkg_failed=no
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAFA" >&5
21158 $as_echo_n "checking for CHAFA... " >&6; }
21159
21160 if test -n "$CHAFA_CFLAGS"; then
21161     pkg_cv_CHAFA_CFLAGS="$CHAFA_CFLAGS"
21162  elif test -n "$PKG_CONFIG"; then
21163     if test -n "$PKG_CONFIG" && \
21164     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chafa >= 1.6.0\""; } >&5
21165   ($PKG_CONFIG --exists --print-errors "chafa >= 1.6.0") 2>&5
21166   ac_status=$?
21167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21168   test $ac_status = 0; }; then
21169   pkg_cv_CHAFA_CFLAGS=`$PKG_CONFIG --cflags "chafa >= 1.6.0" 2>/dev/null`
21170                       test "x$?" != "x0" && pkg_failed=yes
21171 else
21172   pkg_failed=yes
21173 fi
21174  else
21175     pkg_failed=untried
21176 fi
21177 if test -n "$CHAFA_LIBS"; then
21178     pkg_cv_CHAFA_LIBS="$CHAFA_LIBS"
21179  elif test -n "$PKG_CONFIG"; then
21180     if test -n "$PKG_CONFIG" && \
21181     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"chafa >= 1.6.0\""; } >&5
21182   ($PKG_CONFIG --exists --print-errors "chafa >= 1.6.0") 2>&5
21183   ac_status=$?
21184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21185   test $ac_status = 0; }; then
21186   pkg_cv_CHAFA_LIBS=`$PKG_CONFIG --libs "chafa >= 1.6.0" 2>/dev/null`
21187                       test "x$?" != "x0" && pkg_failed=yes
21188 else
21189   pkg_failed=yes
21190 fi
21191  else
21192     pkg_failed=untried
21193 fi
21194
21195
21196
21197 if test $pkg_failed = yes; then
21198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21199 $as_echo "no" >&6; }
21200
21201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21202         _pkg_short_errors_supported=yes
21203 else
21204         _pkg_short_errors_supported=no
21205 fi
21206         if test $_pkg_short_errors_supported = yes; then
21207                 CHAFA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "chafa >= 1.6.0" 2>&1`
21208         else
21209                 CHAFA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "chafa >= 1.6.0" 2>&1`
21210         fi
21211         # Put the nasty error message in config.log where it belongs
21212         echo "$CHAFA_PKG_ERRORS" >&5
21213
21214         :
21215 elif test $pkg_failed = untried; then
21216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21217 $as_echo "no" >&6; }
21218         :
21219 else
21220         CHAFA_CFLAGS=$pkg_cv_CHAFA_CFLAGS
21221         CHAFA_LIBS=$pkg_cv_CHAFA_LIBS
21222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21223 $as_echo "yes" >&6; }
21224         have_chafa=true
21225 fi
21226 fi
21227 if test "x$with_chafa" = "xyes" -a "x$have_chafa" != "xtrue"; then
21228         as_fn_error $? "chafa support requested but not found" "$LINENO" 5
21229 fi
21230 if $have_chafa; then
21231
21232 $as_echo "#define HAVE_CHAFA 1" >>confdefs.h
21233
21234 fi
21235  if $have_chafa; then
21236   HAVE_CHAFA_TRUE=
21237   HAVE_CHAFA_FALSE='#'
21238 else
21239   HAVE_CHAFA_TRUE='#'
21240   HAVE_CHAFA_FALSE=
21241 fi
21242
21243
21244
21245
21246 # Check whether --with-icu was given.
21247 if test "${with_icu+set}" = set; then :
21248   withval=$with_icu;
21249 else
21250   with_icu=auto
21251 fi
21252
21253 have_icu=false
21254 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
21255
21256 pkg_failed=no
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
21258 $as_echo_n "checking for ICU... " >&6; }
21259
21260 if test -n "$ICU_CFLAGS"; then
21261     pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
21262  elif test -n "$PKG_CONFIG"; then
21263     if test -n "$PKG_CONFIG" && \
21264     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21265   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21266   ac_status=$?
21267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21268   test $ac_status = 0; }; then
21269   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
21270                       test "x$?" != "x0" && pkg_failed=yes
21271 else
21272   pkg_failed=yes
21273 fi
21274  else
21275     pkg_failed=untried
21276 fi
21277 if test -n "$ICU_LIBS"; then
21278     pkg_cv_ICU_LIBS="$ICU_LIBS"
21279  elif test -n "$PKG_CONFIG"; then
21280     if test -n "$PKG_CONFIG" && \
21281     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
21282   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
21283   ac_status=$?
21284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21285   test $ac_status = 0; }; then
21286   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
21287                       test "x$?" != "x0" && pkg_failed=yes
21288 else
21289   pkg_failed=yes
21290 fi
21291  else
21292     pkg_failed=untried
21293 fi
21294
21295
21296
21297 if test $pkg_failed = yes; then
21298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21299 $as_echo "no" >&6; }
21300
21301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21302         _pkg_short_errors_supported=yes
21303 else
21304         _pkg_short_errors_supported=no
21305 fi
21306         if test $_pkg_short_errors_supported = yes; then
21307                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
21308         else
21309                 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
21310         fi
21311         # Put the nasty error message in config.log where it belongs
21312         echo "$ICU_PKG_ERRORS" >&5
21313
21314         :
21315 elif test $pkg_failed = untried; then
21316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21317 $as_echo "no" >&6; }
21318         :
21319 else
21320         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
21321         ICU_LIBS=$pkg_cv_ICU_LIBS
21322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21323 $as_echo "yes" >&6; }
21324         have_icu=true
21325 fi
21326 fi
21327 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
21328         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
21329 fi
21330
21331 if $have_icu; then
21332         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
21333
21334 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21335
21336         if test "x$with_icu" = "xbuiltin"; then
21337
21338 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
21339
21340         fi
21341 fi
21342  if $have_icu; then
21343   HAVE_ICU_TRUE=
21344   HAVE_ICU_FALSE='#'
21345 else
21346   HAVE_ICU_TRUE='#'
21347   HAVE_ICU_FALSE=
21348 fi
21349
21350  if $have_icu && test "x$with_icu" = "xbuiltin"; then
21351   HAVE_ICU_BUILTIN_TRUE=
21352   HAVE_ICU_BUILTIN_FALSE='#'
21353 else
21354   HAVE_ICU_BUILTIN_TRUE='#'
21355   HAVE_ICU_BUILTIN_FALSE=
21356 fi
21357
21358
21359
21360
21361 # Check whether --with-graphite2 was given.
21362 if test "${with_graphite2+set}" = set; then :
21363   withval=$with_graphite2;
21364 else
21365   with_graphite2=no
21366 fi
21367
21368 have_graphite2=false
21369 GRAPHITE2_DEPS="graphite2 >= 1.2.0"
21370
21371 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
21372
21373 pkg_failed=no
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
21375 $as_echo_n "checking for GRAPHITE2... " >&6; }
21376
21377 if test -n "$GRAPHITE2_CFLAGS"; then
21378     pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
21379  elif test -n "$PKG_CONFIG"; then
21380     if test -n "$PKG_CONFIG" && \
21381     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21382   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21383   ac_status=$?
21384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21385   test $ac_status = 0; }; then
21386   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
21387                       test "x$?" != "x0" && pkg_failed=yes
21388 else
21389   pkg_failed=yes
21390 fi
21391  else
21392     pkg_failed=untried
21393 fi
21394 if test -n "$GRAPHITE2_LIBS"; then
21395     pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
21396  elif test -n "$PKG_CONFIG"; then
21397     if test -n "$PKG_CONFIG" && \
21398     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
21399   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
21400   ac_status=$?
21401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21402   test $ac_status = 0; }; then
21403   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
21404                       test "x$?" != "x0" && pkg_failed=yes
21405 else
21406   pkg_failed=yes
21407 fi
21408  else
21409     pkg_failed=untried
21410 fi
21411
21412
21413
21414 if test $pkg_failed = yes; then
21415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417
21418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21419         _pkg_short_errors_supported=yes
21420 else
21421         _pkg_short_errors_supported=no
21422 fi
21423         if test $_pkg_short_errors_supported = yes; then
21424                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21425         else
21426                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GRAPHITE2_DEPS" 2>&1`
21427         fi
21428         # Put the nasty error message in config.log where it belongs
21429         echo "$GRAPHITE2_PKG_ERRORS" >&5
21430
21431         :
21432 elif test $pkg_failed = untried; then
21433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 $as_echo "no" >&6; }
21435         :
21436 else
21437         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
21438         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
21439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21440 $as_echo "yes" >&6; }
21441         have_graphite2=true
21442 fi
21443         if test "x$have_graphite2" != "xtrue"; then
21444                 # If pkg-config is not available, graphite2 can still be there
21445                 ac_save_CFLAGS="$CFLAGS"
21446                 ac_save_CPPFLAGS="$CPPFLAGS"
21447                 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
21448                 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
21449                 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
21450 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
21451   have_graphite2=true
21452 else
21453   :
21454 fi
21455
21456
21457                 CPPFLAGS="$ac_save_CPPFLAGS"
21458                 CFLAGS="$ac_save_CFLAGS"
21459         fi
21460 fi
21461 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
21462         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
21463 fi
21464 if $have_graphite2; then
21465
21466 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
21467
21468 fi
21469  if $have_graphite2; then
21470   HAVE_GRAPHITE2_TRUE=
21471   HAVE_GRAPHITE2_FALSE='#'
21472 else
21473   HAVE_GRAPHITE2_TRUE='#'
21474   HAVE_GRAPHITE2_FALSE=
21475 fi
21476
21477
21478
21479
21480 # Check whether --with-freetype was given.
21481 if test "${with_freetype+set}" = set; then :
21482   withval=$with_freetype;
21483 else
21484   with_freetype=auto
21485 fi
21486
21487 have_freetype=false
21488 FREETYPE_DEPS="freetype2 >= 12.0.6"
21489
21490 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
21491         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
21492
21493 pkg_failed=no
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
21495 $as_echo_n "checking for FREETYPE... " >&6; }
21496
21497 if test -n "$FREETYPE_CFLAGS"; then
21498     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
21499  elif test -n "$PKG_CONFIG"; then
21500     if test -n "$PKG_CONFIG" && \
21501     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21502   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21503   ac_status=$?
21504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21505   test $ac_status = 0; }; then
21506   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
21507                       test "x$?" != "x0" && pkg_failed=yes
21508 else
21509   pkg_failed=yes
21510 fi
21511  else
21512     pkg_failed=untried
21513 fi
21514 if test -n "$FREETYPE_LIBS"; then
21515     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
21516  elif test -n "$PKG_CONFIG"; then
21517     if test -n "$PKG_CONFIG" && \
21518     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
21519   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
21520   ac_status=$?
21521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21522   test $ac_status = 0; }; then
21523   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
21524                       test "x$?" != "x0" && pkg_failed=yes
21525 else
21526   pkg_failed=yes
21527 fi
21528  else
21529     pkg_failed=untried
21530 fi
21531
21532
21533
21534 if test $pkg_failed = yes; then
21535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21536 $as_echo "no" >&6; }
21537
21538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21539         _pkg_short_errors_supported=yes
21540 else
21541         _pkg_short_errors_supported=no
21542 fi
21543         if test $_pkg_short_errors_supported = yes; then
21544                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21545         else
21546                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$FREETYPE_DEPS" 2>&1`
21547         fi
21548         # Put the nasty error message in config.log where it belongs
21549         echo "$FREETYPE_PKG_ERRORS" >&5
21550
21551         :
21552 elif test $pkg_failed = untried; then
21553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21554 $as_echo "no" >&6; }
21555         :
21556 else
21557         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
21558         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
21559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21560 $as_echo "yes" >&6; }
21561         have_freetype=true
21562 fi
21563 fi
21564 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
21565         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
21566 fi
21567 if $have_freetype; then
21568
21569 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
21570
21571         save_libs=$LIBS
21572         LIBS="$LIBS $FREETYPE_LIBS"
21573         for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
21574 do :
21575   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21577 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21578   cat >>confdefs.h <<_ACEOF
21579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21580 _ACEOF
21581
21582 fi
21583 done
21584
21585         LIBS=$save_libs
21586 fi
21587  if $have_freetype; then
21588   HAVE_FREETYPE_TRUE=
21589   HAVE_FREETYPE_FALSE='#'
21590 else
21591   HAVE_FREETYPE_TRUE='#'
21592   HAVE_FREETYPE_FALSE=
21593 fi
21594
21595
21596
21597
21598 # Check whether --with-uniscribe was given.
21599 if test "${with_uniscribe+set}" = set; then :
21600   withval=$with_uniscribe;
21601 else
21602   with_uniscribe=no
21603 fi
21604
21605 have_uniscribe=false
21606 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
21607         for ac_header in usp10.h windows.h
21608 do :
21609   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21610 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21611 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21612   cat >>confdefs.h <<_ACEOF
21613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21614 _ACEOF
21615  have_uniscribe=true
21616 fi
21617
21618 done
21619
21620 fi
21621 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
21622         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
21623 fi
21624 if $have_uniscribe; then
21625         UNISCRIBE_CFLAGS=
21626         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
21627
21628
21629
21630 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
21631
21632 fi
21633  if $have_uniscribe; then
21634   HAVE_UNISCRIBE_TRUE=
21635   HAVE_UNISCRIBE_FALSE='#'
21636 else
21637   HAVE_UNISCRIBE_TRUE='#'
21638   HAVE_UNISCRIBE_FALSE=
21639 fi
21640
21641
21642
21643
21644 # Check whether --with-gdi was given.
21645 if test "${with_gdi+set}" = set; then :
21646   withval=$with_gdi;
21647 else
21648   with_gdi=no
21649 fi
21650
21651 have_gdi=false
21652 if test "x$with_gdi" = "xyes" -o "x$with_gdi" = "xauto"; then
21653         for ac_header in windows.h
21654 do :
21655   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
21656 if test "x$ac_cv_header_windows_h" = xyes; then :
21657   cat >>confdefs.h <<_ACEOF
21658 #define HAVE_WINDOWS_H 1
21659 _ACEOF
21660  have_gdi=true
21661 fi
21662
21663 done
21664
21665 fi
21666 if test "x$with_gdi" = "xyes" -a "x$have_gdi" != "xtrue"; then
21667         as_fn_error $? "gdi support requested but not found" "$LINENO" 5
21668 fi
21669 if $have_gdi; then
21670         GDI_CFLAGS=
21671         GDI_LIBS="-lgdi32"
21672
21673
21674
21675 $as_echo "#define HAVE_GDI 1" >>confdefs.h
21676
21677 fi
21678  if $have_gdi; then
21679   HAVE_GDI_TRUE=
21680   HAVE_GDI_FALSE='#'
21681 else
21682   HAVE_GDI_TRUE='#'
21683   HAVE_GDI_FALSE=
21684 fi
21685
21686
21687
21688
21689 # Check whether --with-directwrite was given.
21690 if test "${with_directwrite+set}" = set; then :
21691   withval=$with_directwrite;
21692 else
21693   with_directwrite=no
21694 fi
21695
21696 have_directwrite=false
21697 ac_ext=cpp
21698 ac_cpp='$CXXCPP $CPPFLAGS'
21699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21702
21703 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
21704
21705 for ac_header in dwrite.h
21706 do :
21707   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
21708 if test "x$ac_cv_header_dwrite_h" = xyes; then :
21709   cat >>confdefs.h <<_ACEOF
21710 #define HAVE_DWRITE_H 1
21711 _ACEOF
21712  have_directwrite=true
21713 fi
21714
21715 done
21716
21717 fi
21718 ac_ext=c
21719 ac_cpp='$CPP $CPPFLAGS'
21720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21723
21724 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
21725         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
21726 fi
21727 if $have_directwrite; then
21728         DIRECTWRITE_CXXFLAGS=
21729         DIRECTWRITE_LIBS=
21730
21731
21732
21733 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
21734
21735 fi
21736  if $have_directwrite; then
21737   HAVE_DIRECTWRITE_TRUE=
21738   HAVE_DIRECTWRITE_FALSE='#'
21739 else
21740   HAVE_DIRECTWRITE_TRUE='#'
21741   HAVE_DIRECTWRITE_FALSE=
21742 fi
21743
21744
21745
21746
21747 # Check whether --with-coretext was given.
21748 if test "${with_coretext+set}" = set; then :
21749   withval=$with_coretext;
21750 else
21751   with_coretext=no
21752 fi
21753
21754 have_coretext=false
21755 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
21756         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
21757 "
21758 if test "x$ac_cv_type_CTFontRef" = xyes; then :
21759   have_coretext=true
21760 fi
21761
21762
21763         if $have_coretext; then
21764                 CORETEXT_CFLAGS=
21765                 CORETEXT_LIBS="-framework ApplicationServices"
21766
21767
21768         else
21769                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
21770                 if test "x$have_coretext" != "xtrue"; then
21771                         # Check for a different symbol to avoid getting cached result.
21772                         ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
21773 "
21774 if test "x$ac_cv_type_CTRunRef" = xyes; then :
21775   have_coretext=true
21776 fi
21777
21778                 fi
21779
21780                 if $have_coretext; then
21781                         CORETEXT_CFLAGS=
21782                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
21783
21784
21785                 fi
21786         fi
21787 fi
21788 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21789         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21790 fi
21791 if $have_coretext; then
21792
21793 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21794
21795 fi
21796  if $have_coretext; then
21797   HAVE_CORETEXT_TRUE=
21798   HAVE_CORETEXT_FALSE='#'
21799 else
21800   HAVE_CORETEXT_TRUE='#'
21801   HAVE_CORETEXT_FALSE=
21802 fi
21803
21804
21805
21806 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shape/Makefile test/shape/data/Makefile test/shape/data/aots/Makefile test/shape/data/in-house/Makefile test/shape/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile test/subset/data/repack_tests/Makefile docs/Makefile docs/version.xml"
21807
21808
21809 cat >confcache <<\_ACEOF
21810 # This file is a shell script that caches the results of configure
21811 # tests run on this system so they can be shared between configure
21812 # scripts and configure runs, see configure's option --config-cache.
21813 # It is not useful on other systems.  If it contains results you don't
21814 # want to keep, you may remove or edit it.
21815 #
21816 # config.status only pays attention to the cache file if you give it
21817 # the --recheck option to rerun configure.
21818 #
21819 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21820 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21821 # following values.
21822
21823 _ACEOF
21824
21825 # The following way of writing the cache mishandles newlines in values,
21826 # but we know of no workaround that is simple, portable, and efficient.
21827 # So, we kill variables containing newlines.
21828 # Ultrix sh set writes to stderr and can't be redirected directly,
21829 # and sets the high bit in the cache file unless we assign to the vars.
21830 (
21831   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21832     eval ac_val=\$$ac_var
21833     case $ac_val in #(
21834     *${as_nl}*)
21835       case $ac_var in #(
21836       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21837 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21838       esac
21839       case $ac_var in #(
21840       _ | IFS | as_nl) ;; #(
21841       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21842       *) { eval $ac_var=; unset $ac_var;} ;;
21843       esac ;;
21844     esac
21845   done
21846
21847   (set) 2>&1 |
21848     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21849     *${as_nl}ac_space=\ *)
21850       # `set' does not quote correctly, so add quotes: double-quote
21851       # substitution turns \\\\ into \\, and sed turns \\ into \.
21852       sed -n \
21853         "s/'/'\\\\''/g;
21854           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21855       ;; #(
21856     *)
21857       # `set' quotes correctly as required by POSIX, so do not add quotes.
21858       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21859       ;;
21860     esac |
21861     sort
21862 ) |
21863   sed '
21864      /^ac_cv_env_/b end
21865      t clear
21866      :clear
21867      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21868      t end
21869      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21870      :end' >>confcache
21871 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21872   if test -w "$cache_file"; then
21873     if test "x$cache_file" != "x/dev/null"; then
21874       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21875 $as_echo "$as_me: updating cache $cache_file" >&6;}
21876       if test ! -f "$cache_file" || test -h "$cache_file"; then
21877         cat confcache >"$cache_file"
21878       else
21879         case $cache_file in #(
21880         */* | ?:*)
21881           mv -f confcache "$cache_file"$$ &&
21882           mv -f "$cache_file"$$ "$cache_file" ;; #(
21883         *)
21884           mv -f confcache "$cache_file" ;;
21885         esac
21886       fi
21887     fi
21888   else
21889     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21890 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21891   fi
21892 fi
21893 rm -f confcache
21894
21895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21896 # Let make expand exec_prefix.
21897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21898
21899 DEFS=-DHAVE_CONFIG_H
21900
21901 ac_libobjs=
21902 ac_ltlibobjs=
21903 U=
21904 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21905   # 1. Remove the extension, and $U if already installed.
21906   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21907   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21908   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21909   #    will be set to the directory where LIBOBJS objects are built.
21910   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21911   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21912 done
21913 LIBOBJS=$ac_libobjs
21914
21915 LTLIBOBJS=$ac_ltlibobjs
21916
21917
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21919 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21920    if test -n "$am_sleep_pid"; then
21921      # Hide warnings about reused PIDs.
21922      wait $am_sleep_pid 2>/dev/null
21923    fi
21924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21925 $as_echo "done" >&6; }
21926  if test -n "$EXEEXT"; then
21927   am__EXEEXT_TRUE=
21928   am__EXEEXT_FALSE='#'
21929 else
21930   am__EXEEXT_TRUE='#'
21931   am__EXEEXT_FALSE=
21932 fi
21933
21934 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21935   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21937 fi
21938 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21939   as_fn_error $? "conditional \"AMDEP\" was never defined.
21940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21941 fi
21942 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21943   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21945 fi
21946 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21947   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21949 fi
21950 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21951   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21953 fi
21954 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21955   as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21957 fi
21958 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21959   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21961 fi
21962 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21963   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21965 fi
21966 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21967   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21969 fi
21970 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21971   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21973 fi
21974 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21975   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21977 fi
21978 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21979   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21981 fi
21982 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21983   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21985 fi
21986 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21987   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21989 fi
21990 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21991   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21993 fi
21994 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21995   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21997 fi
21998 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21999   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
22000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22001 fi
22002 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22003   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22005 fi
22006 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
22007   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
22008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22009 fi
22010 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
22011   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
22012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22013 fi
22014 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
22015   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
22016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22017 fi
22018 if test -z "${HAVE_CHAFA_TRUE}" && test -z "${HAVE_CHAFA_FALSE}"; then
22019   as_fn_error $? "conditional \"HAVE_CHAFA\" was never defined.
22020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22021 fi
22022 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
22023   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
22024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22025 fi
22026 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
22027   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
22028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22029 fi
22030 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
22031   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
22032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22033 fi
22034 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
22035   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
22036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22037 fi
22038 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
22039   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
22040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22041 fi
22042 if test -z "${HAVE_GDI_TRUE}" && test -z "${HAVE_GDI_FALSE}"; then
22043   as_fn_error $? "conditional \"HAVE_GDI\" was never defined.
22044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22045 fi
22046 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
22047   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
22048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22049 fi
22050 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
22051   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
22052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22053 fi
22054
22055 : "${CONFIG_STATUS=./config.status}"
22056 ac_write_fail=0
22057 ac_clean_files_save=$ac_clean_files
22058 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22060 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22061 as_write_fail=0
22062 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22063 #! $SHELL
22064 # Generated by $as_me.
22065 # Run this file to recreate the current configuration.
22066 # Compiler output produced by configure, useful for debugging
22067 # configure, is in config.log if it exists.
22068
22069 debug=false
22070 ac_cs_recheck=false
22071 ac_cs_silent=false
22072
22073 SHELL=\${CONFIG_SHELL-$SHELL}
22074 export SHELL
22075 _ASEOF
22076 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22077 ## -------------------- ##
22078 ## M4sh Initialization. ##
22079 ## -------------------- ##
22080
22081 # Be more Bourne compatible
22082 DUALCASE=1; export DUALCASE # for MKS sh
22083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22084   emulate sh
22085   NULLCMD=:
22086   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22087   # is contrary to our usage.  Disable this feature.
22088   alias -g '${1+"$@"}'='"$@"'
22089   setopt NO_GLOB_SUBST
22090 else
22091   case `(set -o) 2>/dev/null` in #(
22092   *posix*) :
22093     set -o posix ;; #(
22094   *) :
22095      ;;
22096 esac
22097 fi
22098
22099
22100 as_nl='
22101 '
22102 export as_nl
22103 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22104 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22106 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22107 # Prefer a ksh shell builtin over an external printf program on Solaris,
22108 # but without wasting forks for bash or zsh.
22109 if test -z "$BASH_VERSION$ZSH_VERSION" \
22110     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22111   as_echo='print -r --'
22112   as_echo_n='print -rn --'
22113 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22114   as_echo='printf %s\n'
22115   as_echo_n='printf %s'
22116 else
22117   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22118     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22119     as_echo_n='/usr/ucb/echo -n'
22120   else
22121     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22122     as_echo_n_body='eval
22123       arg=$1;
22124       case $arg in #(
22125       *"$as_nl"*)
22126         expr "X$arg" : "X\\(.*\\)$as_nl";
22127         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22128       esac;
22129       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22130     '
22131     export as_echo_n_body
22132     as_echo_n='sh -c $as_echo_n_body as_echo'
22133   fi
22134   export as_echo_body
22135   as_echo='sh -c $as_echo_body as_echo'
22136 fi
22137
22138 # The user is always right.
22139 if test "${PATH_SEPARATOR+set}" != set; then
22140   PATH_SEPARATOR=:
22141   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22142     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22143       PATH_SEPARATOR=';'
22144   }
22145 fi
22146
22147
22148 # IFS
22149 # We need space, tab and new line, in precisely that order.  Quoting is
22150 # there to prevent editors from complaining about space-tab.
22151 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22152 # splitting by setting IFS to empty value.)
22153 IFS=" ""        $as_nl"
22154
22155 # Find who we are.  Look in the path if we contain no directory separator.
22156 as_myself=
22157 case $0 in #((
22158   *[\\/]* ) as_myself=$0 ;;
22159   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22160 for as_dir in $PATH
22161 do
22162   IFS=$as_save_IFS
22163   test -z "$as_dir" && as_dir=.
22164     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22165   done
22166 IFS=$as_save_IFS
22167
22168      ;;
22169 esac
22170 # We did not find ourselves, most probably we were run as `sh COMMAND'
22171 # in which case we are not to be found in the path.
22172 if test "x$as_myself" = x; then
22173   as_myself=$0
22174 fi
22175 if test ! -f "$as_myself"; then
22176   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22177   exit 1
22178 fi
22179
22180 # Unset variables that we do not need and which cause bugs (e.g. in
22181 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22182 # suppresses any "Segmentation fault" message there.  '((' could
22183 # trigger a bug in pdksh 5.2.14.
22184 for as_var in BASH_ENV ENV MAIL MAILPATH
22185 do eval test x\${$as_var+set} = xset \
22186   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22187 done
22188 PS1='$ '
22189 PS2='> '
22190 PS4='+ '
22191
22192 # NLS nuisances.
22193 LC_ALL=C
22194 export LC_ALL
22195 LANGUAGE=C
22196 export LANGUAGE
22197
22198 # CDPATH.
22199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22200
22201
22202 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22203 # ----------------------------------------
22204 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22205 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22206 # script with STATUS, using 1 if that was 0.
22207 as_fn_error ()
22208 {
22209   as_status=$1; test $as_status -eq 0 && as_status=1
22210   if test "$4"; then
22211     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22212     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22213   fi
22214   $as_echo "$as_me: error: $2" >&2
22215   as_fn_exit $as_status
22216 } # as_fn_error
22217
22218
22219 # as_fn_set_status STATUS
22220 # -----------------------
22221 # Set $? to STATUS, without forking.
22222 as_fn_set_status ()
22223 {
22224   return $1
22225 } # as_fn_set_status
22226
22227 # as_fn_exit STATUS
22228 # -----------------
22229 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22230 as_fn_exit ()
22231 {
22232   set +e
22233   as_fn_set_status $1
22234   exit $1
22235 } # as_fn_exit
22236
22237 # as_fn_unset VAR
22238 # ---------------
22239 # Portably unset VAR.
22240 as_fn_unset ()
22241 {
22242   { eval $1=; unset $1;}
22243 }
22244 as_unset=as_fn_unset
22245 # as_fn_append VAR VALUE
22246 # ----------------------
22247 # Append the text in VALUE to the end of the definition contained in VAR. Take
22248 # advantage of any shell optimizations that allow amortized linear growth over
22249 # repeated appends, instead of the typical quadratic growth present in naive
22250 # implementations.
22251 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22252   eval 'as_fn_append ()
22253   {
22254     eval $1+=\$2
22255   }'
22256 else
22257   as_fn_append ()
22258   {
22259     eval $1=\$$1\$2
22260   }
22261 fi # as_fn_append
22262
22263 # as_fn_arith ARG...
22264 # ------------------
22265 # Perform arithmetic evaluation on the ARGs, and store the result in the
22266 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22267 # must be portable across $(()) and expr.
22268 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22269   eval 'as_fn_arith ()
22270   {
22271     as_val=$(( $* ))
22272   }'
22273 else
22274   as_fn_arith ()
22275   {
22276     as_val=`expr "$@" || test $? -eq 1`
22277   }
22278 fi # as_fn_arith
22279
22280
22281 if expr a : '\(a\)' >/dev/null 2>&1 &&
22282    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22283   as_expr=expr
22284 else
22285   as_expr=false
22286 fi
22287
22288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22289   as_basename=basename
22290 else
22291   as_basename=false
22292 fi
22293
22294 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22295   as_dirname=dirname
22296 else
22297   as_dirname=false
22298 fi
22299
22300 as_me=`$as_basename -- "$0" ||
22301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22302          X"$0" : 'X\(//\)$' \| \
22303          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22304 $as_echo X/"$0" |
22305     sed '/^.*\/\([^/][^/]*\)\/*$/{
22306             s//\1/
22307             q
22308           }
22309           /^X\/\(\/\/\)$/{
22310             s//\1/
22311             q
22312           }
22313           /^X\/\(\/\).*/{
22314             s//\1/
22315             q
22316           }
22317           s/.*/./; q'`
22318
22319 # Avoid depending upon Character Ranges.
22320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22323 as_cr_digits='0123456789'
22324 as_cr_alnum=$as_cr_Letters$as_cr_digits
22325
22326 ECHO_C= ECHO_N= ECHO_T=
22327 case `echo -n x` in #(((((
22328 -n*)
22329   case `echo 'xy\c'` in
22330   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22331   xy)  ECHO_C='\c';;
22332   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22333        ECHO_T=' ';;
22334   esac;;
22335 *)
22336   ECHO_N='-n';;
22337 esac
22338
22339 rm -f conf$$ conf$$.exe conf$$.file
22340 if test -d conf$$.dir; then
22341   rm -f conf$$.dir/conf$$.file
22342 else
22343   rm -f conf$$.dir
22344   mkdir conf$$.dir 2>/dev/null
22345 fi
22346 if (echo >conf$$.file) 2>/dev/null; then
22347   if ln -s conf$$.file conf$$ 2>/dev/null; then
22348     as_ln_s='ln -s'
22349     # ... but there are two gotchas:
22350     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22351     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22352     # In both cases, we have to default to `cp -pR'.
22353     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22354       as_ln_s='cp -pR'
22355   elif ln conf$$.file conf$$ 2>/dev/null; then
22356     as_ln_s=ln
22357   else
22358     as_ln_s='cp -pR'
22359   fi
22360 else
22361   as_ln_s='cp -pR'
22362 fi
22363 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22364 rmdir conf$$.dir 2>/dev/null
22365
22366
22367 # as_fn_mkdir_p
22368 # -------------
22369 # Create "$as_dir" as a directory, including parents if necessary.
22370 as_fn_mkdir_p ()
22371 {
22372
22373   case $as_dir in #(
22374   -*) as_dir=./$as_dir;;
22375   esac
22376   test -d "$as_dir" || eval $as_mkdir_p || {
22377     as_dirs=
22378     while :; do
22379       case $as_dir in #(
22380       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22381       *) as_qdir=$as_dir;;
22382       esac
22383       as_dirs="'$as_qdir' $as_dirs"
22384       as_dir=`$as_dirname -- "$as_dir" ||
22385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22386          X"$as_dir" : 'X\(//\)[^/]' \| \
22387          X"$as_dir" : 'X\(//\)$' \| \
22388          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22389 $as_echo X"$as_dir" |
22390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22391             s//\1/
22392             q
22393           }
22394           /^X\(\/\/\)[^/].*/{
22395             s//\1/
22396             q
22397           }
22398           /^X\(\/\/\)$/{
22399             s//\1/
22400             q
22401           }
22402           /^X\(\/\).*/{
22403             s//\1/
22404             q
22405           }
22406           s/.*/./; q'`
22407       test -d "$as_dir" && break
22408     done
22409     test -z "$as_dirs" || eval "mkdir $as_dirs"
22410   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22411
22412
22413 } # as_fn_mkdir_p
22414 if mkdir -p . 2>/dev/null; then
22415   as_mkdir_p='mkdir -p "$as_dir"'
22416 else
22417   test -d ./-p && rmdir ./-p
22418   as_mkdir_p=false
22419 fi
22420
22421
22422 # as_fn_executable_p FILE
22423 # -----------------------
22424 # Test if FILE is an executable regular file.
22425 as_fn_executable_p ()
22426 {
22427   test -f "$1" && test -x "$1"
22428 } # as_fn_executable_p
22429 as_test_x='test -x'
22430 as_executable_p=as_fn_executable_p
22431
22432 # Sed expression to map a string onto a valid CPP name.
22433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22434
22435 # Sed expression to map a string onto a valid variable name.
22436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22437
22438
22439 exec 6>&1
22440 ## ----------------------------------- ##
22441 ## Main body of $CONFIG_STATUS script. ##
22442 ## ----------------------------------- ##
22443 _ASEOF
22444 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22445
22446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22447 # Save the log message, to keep $0 and so on meaningful, and to
22448 # report actual input values of CONFIG_FILES etc. instead of their
22449 # values after options handling.
22450 ac_log="
22451 This file was extended by HarfBuzz $as_me 3.4.0, which was
22452 generated by GNU Autoconf 2.69.  Invocation command line was
22453
22454   CONFIG_FILES    = $CONFIG_FILES
22455   CONFIG_HEADERS  = $CONFIG_HEADERS
22456   CONFIG_LINKS    = $CONFIG_LINKS
22457   CONFIG_COMMANDS = $CONFIG_COMMANDS
22458   $ $0 $@
22459
22460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22461 "
22462
22463 _ACEOF
22464
22465 case $ac_config_files in *"
22466 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22467 esac
22468
22469 case $ac_config_headers in *"
22470 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22471 esac
22472
22473
22474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22475 # Files that config.status was made for.
22476 config_files="$ac_config_files"
22477 config_headers="$ac_config_headers"
22478 config_commands="$ac_config_commands"
22479
22480 _ACEOF
22481
22482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22483 ac_cs_usage="\
22484 \`$as_me' instantiates files and other configuration actions
22485 from templates according to the current configuration.  Unless the files
22486 and actions are specified as TAGs, all are instantiated by default.
22487
22488 Usage: $0 [OPTION]... [TAG]...
22489
22490   -h, --help       print this help, then exit
22491   -V, --version    print version number and configuration settings, then exit
22492       --config     print configuration, then exit
22493   -q, --quiet, --silent
22494                    do not print progress messages
22495   -d, --debug      don't remove temporary files
22496       --recheck    update $as_me by reconfiguring in the same conditions
22497       --file=FILE[:TEMPLATE]
22498                    instantiate the configuration file FILE
22499       --header=FILE[:TEMPLATE]
22500                    instantiate the configuration header FILE
22501
22502 Configuration files:
22503 $config_files
22504
22505 Configuration headers:
22506 $config_headers
22507
22508 Configuration commands:
22509 $config_commands
22510
22511 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
22512 HarfBuzz home page: <http://harfbuzz.org/>."
22513
22514 _ACEOF
22515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22516 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22517 ac_cs_version="\\
22518 HarfBuzz config.status 3.4.0
22519 configured by $0, generated by GNU Autoconf 2.69,
22520   with options \\"\$ac_cs_config\\"
22521
22522 Copyright (C) 2012 Free Software Foundation, Inc.
22523 This config.status script is free software; the Free Software Foundation
22524 gives unlimited permission to copy, distribute and modify it."
22525
22526 ac_pwd='$ac_pwd'
22527 srcdir='$srcdir'
22528 INSTALL='$INSTALL'
22529 MKDIR_P='$MKDIR_P'
22530 AWK='$AWK'
22531 test -n "\$AWK" || AWK=awk
22532 _ACEOF
22533
22534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22535 # The default lists apply if the user does not specify any file.
22536 ac_need_defaults=:
22537 while test $# != 0
22538 do
22539   case $1 in
22540   --*=?*)
22541     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22542     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22543     ac_shift=:
22544     ;;
22545   --*=)
22546     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22547     ac_optarg=
22548     ac_shift=:
22549     ;;
22550   *)
22551     ac_option=$1
22552     ac_optarg=$2
22553     ac_shift=shift
22554     ;;
22555   esac
22556
22557   case $ac_option in
22558   # Handling of the options.
22559   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22560     ac_cs_recheck=: ;;
22561   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22562     $as_echo "$ac_cs_version"; exit ;;
22563   --config | --confi | --conf | --con | --co | --c )
22564     $as_echo "$ac_cs_config"; exit ;;
22565   --debug | --debu | --deb | --de | --d | -d )
22566     debug=: ;;
22567   --file | --fil | --fi | --f )
22568     $ac_shift
22569     case $ac_optarg in
22570     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22571     '') as_fn_error $? "missing file argument" ;;
22572     esac
22573     as_fn_append CONFIG_FILES " '$ac_optarg'"
22574     ac_need_defaults=false;;
22575   --header | --heade | --head | --hea )
22576     $ac_shift
22577     case $ac_optarg in
22578     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22579     esac
22580     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22581     ac_need_defaults=false;;
22582   --he | --h)
22583     # Conflict between --help and --header
22584     as_fn_error $? "ambiguous option: \`$1'
22585 Try \`$0 --help' for more information.";;
22586   --help | --hel | -h )
22587     $as_echo "$ac_cs_usage"; exit ;;
22588   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22589   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22590     ac_cs_silent=: ;;
22591
22592   # This is an error.
22593   -*) as_fn_error $? "unrecognized option: \`$1'
22594 Try \`$0 --help' for more information." ;;
22595
22596   *) as_fn_append ac_config_targets " $1"
22597      ac_need_defaults=false ;;
22598
22599   esac
22600   shift
22601 done
22602
22603 ac_configure_extra_args=
22604
22605 if $ac_cs_silent; then
22606   exec 6>/dev/null
22607   ac_configure_extra_args="$ac_configure_extra_args --silent"
22608 fi
22609
22610 _ACEOF
22611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22612 if \$ac_cs_recheck; then
22613   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22614   shift
22615   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22616   CONFIG_SHELL='$SHELL'
22617   export CONFIG_SHELL
22618   exec "\$@"
22619 fi
22620
22621 _ACEOF
22622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22623 exec 5>>config.log
22624 {
22625   echo
22626   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22627 ## Running $as_me. ##
22628 _ASBOX
22629   $as_echo "$ac_log"
22630 } >&5
22631
22632 _ACEOF
22633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22634 #
22635 # INIT-COMMANDS
22636 #
22637 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22638
22639
22640 # The HP-UX ksh and POSIX shell print the target directory to stdout
22641 # if CDPATH is set.
22642 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22643
22644 sed_quote_subst='$sed_quote_subst'
22645 double_quote_subst='$double_quote_subst'
22646 delay_variable_subst='$delay_variable_subst'
22647 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22648 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22649 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22650 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22651 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22652 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22653 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22654 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22655 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22656 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22657 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22658 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22659 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22660 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22661 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22662 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22663 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22664 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22665 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22666 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22667 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22668 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22669 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22670 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22671 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22672 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22673 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22674 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22675 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22676 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22677 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22678 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22679 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22680 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22681 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22682 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22683 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22684 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22685 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22686 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22687 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22688 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22689 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22690 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22691 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22692 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22693 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22694 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22695 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22696 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22697 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22698 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22699 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22700 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22701 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22702 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22703 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22704 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22705 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"`'
22706 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22707 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22708 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22709 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22710 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22711 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22712 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22713 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22714 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22715 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22716 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22717 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22718 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22719 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22720 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22721 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22722 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22723 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22724 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22725 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22726 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22727 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22728 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22729 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22730 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22731 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22732 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22733 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22734 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22735 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22736 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22737 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22738 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22739 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22740 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22741 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22742 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22743 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22744 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22745 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22746 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22747 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22748 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22749 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22750 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22751 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22752 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22753 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22754 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22755 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22756 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22757 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22758 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22759 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22760 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22761 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22762 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22763 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22764 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22765 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22766 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22767 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22768 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22769 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22770 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22771 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22772 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22773 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22774 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22775 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22776 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22777 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22778 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22779 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22780 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22781 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22782 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22783 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22784 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22785 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22786 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22787 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22788 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22789 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22790 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22791 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22792 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22793 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22794 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22795 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22796 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22797 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22798 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22799 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22800 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22801 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22802 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22803 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22804 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22805 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22806 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22807 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22808 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22809 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22810 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22811 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22812 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22813 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22814 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22815 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22816 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22817 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22818 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22819 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22820 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22821 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22822 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22823 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22824 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22825 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22826 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22827 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22828 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22829 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22830 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22831 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22832 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22833 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22834 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22835 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22836
22837 LTCC='$LTCC'
22838 LTCFLAGS='$LTCFLAGS'
22839 compiler='$compiler_DEFAULT'
22840
22841 # A function that is used when there is no print builtin or printf.
22842 func_fallback_echo ()
22843 {
22844   eval 'cat <<_LTECHO_EOF
22845 \$1
22846 _LTECHO_EOF'
22847 }
22848
22849 # Quote evaled strings.
22850 for var in SHELL \
22851 ECHO \
22852 PATH_SEPARATOR \
22853 SED \
22854 GREP \
22855 EGREP \
22856 FGREP \
22857 LD \
22858 NM \
22859 LN_S \
22860 lt_SP2NL \
22861 lt_NL2SP \
22862 reload_flag \
22863 OBJDUMP \
22864 deplibs_check_method \
22865 file_magic_cmd \
22866 file_magic_glob \
22867 want_nocaseglob \
22868 DLLTOOL \
22869 sharedlib_from_linklib_cmd \
22870 AR \
22871 AR_FLAGS \
22872 archiver_list_spec \
22873 STRIP \
22874 RANLIB \
22875 CC \
22876 CFLAGS \
22877 compiler \
22878 lt_cv_sys_global_symbol_pipe \
22879 lt_cv_sys_global_symbol_to_cdecl \
22880 lt_cv_sys_global_symbol_to_import \
22881 lt_cv_sys_global_symbol_to_c_name_address \
22882 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22883 lt_cv_nm_interface \
22884 nm_file_list_spec \
22885 lt_cv_truncate_bin \
22886 lt_prog_compiler_no_builtin_flag \
22887 lt_prog_compiler_pic \
22888 lt_prog_compiler_wl \
22889 lt_prog_compiler_static \
22890 lt_cv_prog_compiler_c_o \
22891 need_locks \
22892 MANIFEST_TOOL \
22893 DSYMUTIL \
22894 NMEDIT \
22895 LIPO \
22896 OTOOL \
22897 OTOOL64 \
22898 shrext_cmds \
22899 export_dynamic_flag_spec \
22900 whole_archive_flag_spec \
22901 compiler_needs_object \
22902 with_gnu_ld \
22903 allow_undefined_flag \
22904 no_undefined_flag \
22905 hardcode_libdir_flag_spec \
22906 hardcode_libdir_separator \
22907 exclude_expsyms \
22908 include_expsyms \
22909 file_list_spec \
22910 variables_saved_for_relink \
22911 libname_spec \
22912 library_names_spec \
22913 soname_spec \
22914 install_override_mode \
22915 finish_eval \
22916 old_striplib \
22917 striplib \
22918 compiler_lib_search_dirs \
22919 predep_objects \
22920 postdep_objects \
22921 predeps \
22922 postdeps \
22923 compiler_lib_search_path \
22924 LD_CXX \
22925 reload_flag_CXX \
22926 compiler_CXX \
22927 lt_prog_compiler_no_builtin_flag_CXX \
22928 lt_prog_compiler_pic_CXX \
22929 lt_prog_compiler_wl_CXX \
22930 lt_prog_compiler_static_CXX \
22931 lt_cv_prog_compiler_c_o_CXX \
22932 export_dynamic_flag_spec_CXX \
22933 whole_archive_flag_spec_CXX \
22934 compiler_needs_object_CXX \
22935 with_gnu_ld_CXX \
22936 allow_undefined_flag_CXX \
22937 no_undefined_flag_CXX \
22938 hardcode_libdir_flag_spec_CXX \
22939 hardcode_libdir_separator_CXX \
22940 exclude_expsyms_CXX \
22941 include_expsyms_CXX \
22942 file_list_spec_CXX \
22943 compiler_lib_search_dirs_CXX \
22944 predep_objects_CXX \
22945 postdep_objects_CXX \
22946 predeps_CXX \
22947 postdeps_CXX \
22948 compiler_lib_search_path_CXX; do
22949     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22950     *[\\\\\\\`\\"\\\$]*)
22951       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22952       ;;
22953     *)
22954       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22955       ;;
22956     esac
22957 done
22958
22959 # Double-quote double-evaled strings.
22960 for var in reload_cmds \
22961 old_postinstall_cmds \
22962 old_postuninstall_cmds \
22963 old_archive_cmds \
22964 extract_expsyms_cmds \
22965 old_archive_from_new_cmds \
22966 old_archive_from_expsyms_cmds \
22967 archive_cmds \
22968 archive_expsym_cmds \
22969 module_cmds \
22970 module_expsym_cmds \
22971 export_symbols_cmds \
22972 prelink_cmds \
22973 postlink_cmds \
22974 postinstall_cmds \
22975 postuninstall_cmds \
22976 finish_cmds \
22977 sys_lib_search_path_spec \
22978 configure_time_dlsearch_path \
22979 configure_time_lt_sys_library_path \
22980 reload_cmds_CXX \
22981 old_archive_cmds_CXX \
22982 old_archive_from_new_cmds_CXX \
22983 old_archive_from_expsyms_cmds_CXX \
22984 archive_cmds_CXX \
22985 archive_expsym_cmds_CXX \
22986 module_cmds_CXX \
22987 module_expsym_cmds_CXX \
22988 export_symbols_cmds_CXX \
22989 prelink_cmds_CXX \
22990 postlink_cmds_CXX; do
22991     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22992     *[\\\\\\\`\\"\\\$]*)
22993       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22994       ;;
22995     *)
22996       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22997       ;;
22998     esac
22999 done
23000
23001 ac_aux_dir='$ac_aux_dir'
23002
23003 # See if we are running on zsh, and set the options that allow our
23004 # commands through without removal of \ escapes INIT.
23005 if test -n "\${ZSH_VERSION+set}"; then
23006    setopt NO_GLOB_SUBST
23007 fi
23008
23009
23010     PACKAGE='$PACKAGE'
23011     VERSION='$VERSION'
23012     RM='$RM'
23013     ofile='$ofile'
23014
23015
23016
23017
23018
23019
23020 _ACEOF
23021
23022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23023
23024 # Handling of arguments.
23025 for ac_config_target in $ac_config_targets
23026 do
23027   case $ac_config_target in
23028     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23029     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23030     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23031     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23032     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23033     "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
23034     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
23035     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23036     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
23037     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
23038     "test/shape/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/Makefile" ;;
23039     "test/shape/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/Makefile" ;;
23040     "test/shape/data/aots/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/aots/Makefile" ;;
23041     "test/shape/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/in-house/Makefile" ;;
23042     "test/shape/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shape/data/text-rendering-tests/Makefile" ;;
23043     "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
23044     "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
23045     "test/subset/data/repack_tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/repack_tests/Makefile" ;;
23046     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23047     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
23048
23049   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23050   esac
23051 done
23052
23053
23054 # If the user did not use the arguments to specify the items to instantiate,
23055 # then the envvar interface is used.  Set only those that are not.
23056 # We use the long form for the default assignment because of an extremely
23057 # bizarre bug on SunOS 4.1.3.
23058 if $ac_need_defaults; then
23059   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23060   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23061   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23062 fi
23063
23064 # Have a temporary directory for convenience.  Make it in the build tree
23065 # simply because there is no reason against having it here, and in addition,
23066 # creating and moving files from /tmp can sometimes cause problems.
23067 # Hook for its removal unless debugging.
23068 # Note that there is a small window in which the directory will not be cleaned:
23069 # after its creation but before its name has been assigned to `$tmp'.
23070 $debug ||
23071 {
23072   tmp= ac_tmp=
23073   trap 'exit_status=$?
23074   : "${ac_tmp:=$tmp}"
23075   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23076 ' 0
23077   trap 'as_fn_exit 1' 1 2 13 15
23078 }
23079 # Create a (secure) tmp directory for tmp files.
23080
23081 {
23082   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23083   test -d "$tmp"
23084 }  ||
23085 {
23086   tmp=./conf$$-$RANDOM
23087   (umask 077 && mkdir "$tmp")
23088 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23089 ac_tmp=$tmp
23090
23091 # Set up the scripts for CONFIG_FILES section.
23092 # No need to generate them if there are no CONFIG_FILES.
23093 # This happens for instance with `./config.status config.h'.
23094 if test -n "$CONFIG_FILES"; then
23095
23096
23097 ac_cr=`echo X | tr X '\015'`
23098 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23099 # But we know of no other shell where ac_cr would be empty at this
23100 # point, so we can use a bashism as a fallback.
23101 if test "x$ac_cr" = x; then
23102   eval ac_cr=\$\'\\r\'
23103 fi
23104 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23105 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23106   ac_cs_awk_cr='\\r'
23107 else
23108   ac_cs_awk_cr=$ac_cr
23109 fi
23110
23111 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23112 _ACEOF
23113
23114
23115 {
23116   echo "cat >conf$$subs.awk <<_ACEOF" &&
23117   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23118   echo "_ACEOF"
23119 } >conf$$subs.sh ||
23120   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23121 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23122 ac_delim='%!_!# '
23123 for ac_last_try in false false false false false :; do
23124   . ./conf$$subs.sh ||
23125     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23126
23127   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23128   if test $ac_delim_n = $ac_delim_num; then
23129     break
23130   elif $ac_last_try; then
23131     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23132   else
23133     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23134   fi
23135 done
23136 rm -f conf$$subs.sh
23137
23138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23139 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23140 _ACEOF
23141 sed -n '
23142 h
23143 s/^/S["/; s/!.*/"]=/
23144 p
23145 g
23146 s/^[^!]*!//
23147 :repl
23148 t repl
23149 s/'"$ac_delim"'$//
23150 t delim
23151 :nl
23152 h
23153 s/\(.\{148\}\)..*/\1/
23154 t more1
23155 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23156 p
23157 n
23158 b repl
23159 :more1
23160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23161 p
23162 g
23163 s/.\{148\}//
23164 t nl
23165 :delim
23166 h
23167 s/\(.\{148\}\)..*/\1/
23168 t more2
23169 s/["\\]/\\&/g; s/^/"/; s/$/"/
23170 p
23171 b
23172 :more2
23173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23174 p
23175 g
23176 s/.\{148\}//
23177 t delim
23178 ' <conf$$subs.awk | sed '
23179 /^[^""]/{
23180   N
23181   s/\n//
23182 }
23183 ' >>$CONFIG_STATUS || ac_write_fail=1
23184 rm -f conf$$subs.awk
23185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23186 _ACAWK
23187 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23188   for (key in S) S_is_set[key] = 1
23189   FS = "\a"
23190
23191 }
23192 {
23193   line = $ 0
23194   nfields = split(line, field, "@")
23195   substed = 0
23196   len = length(field[1])
23197   for (i = 2; i < nfields; i++) {
23198     key = field[i]
23199     keylen = length(key)
23200     if (S_is_set[key]) {
23201       value = S[key]
23202       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23203       len += length(value) + length(field[++i])
23204       substed = 1
23205     } else
23206       len += 1 + keylen
23207   }
23208
23209   print line
23210 }
23211
23212 _ACAWK
23213 _ACEOF
23214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23215 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23216   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23217 else
23218   cat
23219 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23220   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23221 _ACEOF
23222
23223 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23224 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23225 # trailing colons and then remove the whole line if VPATH becomes empty
23226 # (actually we leave an empty line to preserve line numbers).
23227 if test "x$srcdir" = x.; then
23228   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
23229 h
23230 s///
23231 s/^/:/
23232 s/[      ]*$/:/
23233 s/:\$(srcdir):/:/g
23234 s/:\${srcdir}:/:/g
23235 s/:@srcdir@:/:/g
23236 s/^:*//
23237 s/:*$//
23238 x
23239 s/\(=[   ]*\).*/\1/
23240 G
23241 s/\n//
23242 s/^[^=]*=[       ]*$//
23243 }'
23244 fi
23245
23246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23247 fi # test -n "$CONFIG_FILES"
23248
23249 # Set up the scripts for CONFIG_HEADERS section.
23250 # No need to generate them if there are no CONFIG_HEADERS.
23251 # This happens for instance with `./config.status Makefile'.
23252 if test -n "$CONFIG_HEADERS"; then
23253 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23254 BEGIN {
23255 _ACEOF
23256
23257 # Transform confdefs.h into an awk script `defines.awk', embedded as
23258 # here-document in config.status, that substitutes the proper values into
23259 # config.h.in to produce config.h.
23260
23261 # Create a delimiter string that does not exist in confdefs.h, to ease
23262 # handling of long lines.
23263 ac_delim='%!_!# '
23264 for ac_last_try in false false :; do
23265   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23266   if test -z "$ac_tt"; then
23267     break
23268   elif $ac_last_try; then
23269     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23270   else
23271     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23272   fi
23273 done
23274
23275 # For the awk script, D is an array of macro values keyed by name,
23276 # likewise P contains macro parameters if any.  Preserve backslash
23277 # newline sequences.
23278
23279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23280 sed -n '
23281 s/.\{148\}/&'"$ac_delim"'/g
23282 t rset
23283 :rset
23284 s/^[     ]*#[    ]*define[       ][      ]*/ /
23285 t def
23286 d
23287 :def
23288 s/\\$//
23289 t bsnl
23290 s/["\\]/\\&/g
23291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23292 D["\1"]=" \3"/p
23293 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
23294 d
23295 :bsnl
23296 s/["\\]/\\&/g
23297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
23298 D["\1"]=" \3\\\\\\n"\\/p
23299 t cont
23300 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23301 t cont
23302 d
23303 :cont
23304 n
23305 s/.\{148\}/&'"$ac_delim"'/g
23306 t clear
23307 :clear
23308 s/\\$//
23309 t bsnlc
23310 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23311 d
23312 :bsnlc
23313 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23314 b cont
23315 ' <confdefs.h | sed '
23316 s/'"$ac_delim"'/"\\\
23317 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23318
23319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23320   for (key in D) D_is_set[key] = 1
23321   FS = "\a"
23322 }
23323 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23324   line = \$ 0
23325   split(line, arg, " ")
23326   if (arg[1] == "#") {
23327     defundef = arg[2]
23328     mac1 = arg[3]
23329   } else {
23330     defundef = substr(arg[1], 2)
23331     mac1 = arg[2]
23332   }
23333   split(mac1, mac2, "(") #)
23334   macro = mac2[1]
23335   prefix = substr(line, 1, index(line, defundef) - 1)
23336   if (D_is_set[macro]) {
23337     # Preserve the white space surrounding the "#".
23338     print prefix "define", macro P[macro] D[macro]
23339     next
23340   } else {
23341     # Replace #undef with comments.  This is necessary, for example,
23342     # in the case of _POSIX_SOURCE, which is predefined and required
23343     # on some systems where configure will not decide to define it.
23344     if (defundef == "undef") {
23345       print "/*", prefix defundef, macro, "*/"
23346       next
23347     }
23348   }
23349 }
23350 { print }
23351 _ACAWK
23352 _ACEOF
23353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23354   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23355 fi # test -n "$CONFIG_HEADERS"
23356
23357
23358 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23359 shift
23360 for ac_tag
23361 do
23362   case $ac_tag in
23363   :[FHLC]) ac_mode=$ac_tag; continue;;
23364   esac
23365   case $ac_mode$ac_tag in
23366   :[FHL]*:*);;
23367   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23368   :[FH]-) ac_tag=-:-;;
23369   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23370   esac
23371   ac_save_IFS=$IFS
23372   IFS=:
23373   set x $ac_tag
23374   IFS=$ac_save_IFS
23375   shift
23376   ac_file=$1
23377   shift
23378
23379   case $ac_mode in
23380   :L) ac_source=$1;;
23381   :[FH])
23382     ac_file_inputs=
23383     for ac_f
23384     do
23385       case $ac_f in
23386       -) ac_f="$ac_tmp/stdin";;
23387       *) # Look for the file first in the build tree, then in the source tree
23388          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23389          # because $ac_f cannot contain `:'.
23390          test -f "$ac_f" ||
23391            case $ac_f in
23392            [\\/$]*) false;;
23393            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23394            esac ||
23395            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23396       esac
23397       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23398       as_fn_append ac_file_inputs " '$ac_f'"
23399     done
23400
23401     # Let's still pretend it is `configure' which instantiates (i.e., don't
23402     # use $as_me), people would be surprised to read:
23403     #    /* config.h.  Generated by config.status.  */
23404     configure_input='Generated from '`
23405           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23406         `' by configure.'
23407     if test x"$ac_file" != x-; then
23408       configure_input="$ac_file.  $configure_input"
23409       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23410 $as_echo "$as_me: creating $ac_file" >&6;}
23411     fi
23412     # Neutralize special characters interpreted by sed in replacement strings.
23413     case $configure_input in #(
23414     *\&* | *\|* | *\\* )
23415        ac_sed_conf_input=`$as_echo "$configure_input" |
23416        sed 's/[\\\\&|]/\\\\&/g'`;; #(
23417     *) ac_sed_conf_input=$configure_input;;
23418     esac
23419
23420     case $ac_tag in
23421     *:-:* | *:-) cat >"$ac_tmp/stdin" \
23422       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23423     esac
23424     ;;
23425   esac
23426
23427   ac_dir=`$as_dirname -- "$ac_file" ||
23428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23429          X"$ac_file" : 'X\(//\)[^/]' \| \
23430          X"$ac_file" : 'X\(//\)$' \| \
23431          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23432 $as_echo X"$ac_file" |
23433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23434             s//\1/
23435             q
23436           }
23437           /^X\(\/\/\)[^/].*/{
23438             s//\1/
23439             q
23440           }
23441           /^X\(\/\/\)$/{
23442             s//\1/
23443             q
23444           }
23445           /^X\(\/\).*/{
23446             s//\1/
23447             q
23448           }
23449           s/.*/./; q'`
23450   as_dir="$ac_dir"; as_fn_mkdir_p
23451   ac_builddir=.
23452
23453 case "$ac_dir" in
23454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23455 *)
23456   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23457   # A ".." for each directory in $ac_dir_suffix.
23458   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23459   case $ac_top_builddir_sub in
23460   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23461   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23462   esac ;;
23463 esac
23464 ac_abs_top_builddir=$ac_pwd
23465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23466 # for backward compatibility:
23467 ac_top_builddir=$ac_top_build_prefix
23468
23469 case $srcdir in
23470   .)  # We are building in place.
23471     ac_srcdir=.
23472     ac_top_srcdir=$ac_top_builddir_sub
23473     ac_abs_top_srcdir=$ac_pwd ;;
23474   [\\/]* | ?:[\\/]* )  # Absolute name.
23475     ac_srcdir=$srcdir$ac_dir_suffix;
23476     ac_top_srcdir=$srcdir
23477     ac_abs_top_srcdir=$srcdir ;;
23478   *) # Relative name.
23479     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23480     ac_top_srcdir=$ac_top_build_prefix$srcdir
23481     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23482 esac
23483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23484
23485
23486   case $ac_mode in
23487   :F)
23488   #
23489   # CONFIG_FILE
23490   #
23491
23492   case $INSTALL in
23493   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23494   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23495   esac
23496   ac_MKDIR_P=$MKDIR_P
23497   case $MKDIR_P in
23498   [\\/$]* | ?:[\\/]* ) ;;
23499   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23500   esac
23501 _ACEOF
23502
23503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23504 # If the template does not know about datarootdir, expand it.
23505 # FIXME: This hack should be removed a few years after 2.60.
23506 ac_datarootdir_hack=; ac_datarootdir_seen=
23507 ac_sed_dataroot='
23508 /datarootdir/ {
23509   p
23510   q
23511 }
23512 /@datadir@/p
23513 /@docdir@/p
23514 /@infodir@/p
23515 /@localedir@/p
23516 /@mandir@/p'
23517 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23518 *datarootdir*) ac_datarootdir_seen=yes;;
23519 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23520   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23521 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23522 _ACEOF
23523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23524   ac_datarootdir_hack='
23525   s&@datadir@&$datadir&g
23526   s&@docdir@&$docdir&g
23527   s&@infodir@&$infodir&g
23528   s&@localedir@&$localedir&g
23529   s&@mandir@&$mandir&g
23530   s&\\\${datarootdir}&$datarootdir&g' ;;
23531 esac
23532 _ACEOF
23533
23534 # Neutralize VPATH when `$srcdir' = `.'.
23535 # Shell code in configure.ac might set extrasub.
23536 # FIXME: do we really want to maintain this feature?
23537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23538 ac_sed_extra="$ac_vpsub
23539 $extrasub
23540 _ACEOF
23541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23542 :t
23543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23544 s|@configure_input@|$ac_sed_conf_input|;t t
23545 s&@top_builddir@&$ac_top_builddir_sub&;t t
23546 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23547 s&@srcdir@&$ac_srcdir&;t t
23548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23549 s&@top_srcdir@&$ac_top_srcdir&;t t
23550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23551 s&@builddir@&$ac_builddir&;t t
23552 s&@abs_builddir@&$ac_abs_builddir&;t t
23553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23554 s&@INSTALL@&$ac_INSTALL&;t t
23555 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23556 $ac_datarootdir_hack
23557 "
23558 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23559   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23560
23561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23562   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23563   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
23564       "$ac_tmp/out"`; test -z "$ac_out"; } &&
23565   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23566 which seems to be undefined.  Please make sure it is defined" >&5
23567 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23568 which seems to be undefined.  Please make sure it is defined" >&2;}
23569
23570   rm -f "$ac_tmp/stdin"
23571   case $ac_file in
23572   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23573   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23574   esac \
23575   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23576  ;;
23577   :H)
23578   #
23579   # CONFIG_HEADER
23580   #
23581   if test x"$ac_file" != x-; then
23582     {
23583       $as_echo "/* $configure_input  */" \
23584       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23585     } >"$ac_tmp/config.h" \
23586       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23587     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23588       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23589 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23590     else
23591       rm -f "$ac_file"
23592       mv "$ac_tmp/config.h" "$ac_file" \
23593         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23594     fi
23595   else
23596     $as_echo "/* $configure_input  */" \
23597       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23598       || as_fn_error $? "could not create -" "$LINENO" 5
23599   fi
23600 # Compute "$ac_file"'s index in $config_headers.
23601 _am_arg="$ac_file"
23602 _am_stamp_count=1
23603 for _am_header in $config_headers :; do
23604   case $_am_header in
23605     $_am_arg | $_am_arg:* )
23606       break ;;
23607     * )
23608       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23609   esac
23610 done
23611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23613          X"$_am_arg" : 'X\(//\)[^/]' \| \
23614          X"$_am_arg" : 'X\(//\)$' \| \
23615          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23616 $as_echo X"$_am_arg" |
23617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23618             s//\1/
23619             q
23620           }
23621           /^X\(\/\/\)[^/].*/{
23622             s//\1/
23623             q
23624           }
23625           /^X\(\/\/\)$/{
23626             s//\1/
23627             q
23628           }
23629           /^X\(\/\).*/{
23630             s//\1/
23631             q
23632           }
23633           s/.*/./; q'`/stamp-h$_am_stamp_count
23634  ;;
23635
23636   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23637 $as_echo "$as_me: executing $ac_file commands" >&6;}
23638  ;;
23639   esac
23640
23641
23642   case $ac_file$ac_mode in
23643     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23644   # Older Autoconf quotes --file arguments for eval, but not when files
23645   # are listed without --file.  Let's play safe and only enable the eval
23646   # if we detect the quoting.
23647   # TODO: see whether this extra hack can be removed once we start
23648   # requiring Autoconf 2.70 or later.
23649   case $CONFIG_FILES in #(
23650   *\'*) :
23651     eval set x "$CONFIG_FILES" ;; #(
23652   *) :
23653     set x $CONFIG_FILES ;; #(
23654   *) :
23655      ;;
23656 esac
23657   shift
23658   # Used to flag and report bootstrapping failures.
23659   am_rc=0
23660   for am_mf
23661   do
23662     # Strip MF so we end up with the name of the file.
23663     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23664     # Check whether this is an Automake generated Makefile which includes
23665     # dependency-tracking related rules and includes.
23666     # Grep'ing the whole file directly is not great: AIX grep has a line
23667     # limit of 2048, but all sed's we know have understand at least 4000.
23668     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23669       || continue
23670     am_dirpart=`$as_dirname -- "$am_mf" ||
23671 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23672          X"$am_mf" : 'X\(//\)[^/]' \| \
23673          X"$am_mf" : 'X\(//\)$' \| \
23674          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23675 $as_echo X"$am_mf" |
23676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23677             s//\1/
23678             q
23679           }
23680           /^X\(\/\/\)[^/].*/{
23681             s//\1/
23682             q
23683           }
23684           /^X\(\/\/\)$/{
23685             s//\1/
23686             q
23687           }
23688           /^X\(\/\).*/{
23689             s//\1/
23690             q
23691           }
23692           s/.*/./; q'`
23693     am_filepart=`$as_basename -- "$am_mf" ||
23694 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23695          X"$am_mf" : 'X\(//\)$' \| \
23696          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23697 $as_echo X/"$am_mf" |
23698     sed '/^.*\/\([^/][^/]*\)\/*$/{
23699             s//\1/
23700             q
23701           }
23702           /^X\/\(\/\/\)$/{
23703             s//\1/
23704             q
23705           }
23706           /^X\/\(\/\).*/{
23707             s//\1/
23708             q
23709           }
23710           s/.*/./; q'`
23711     { echo "$as_me:$LINENO: cd "$am_dirpart" \
23712       && sed -e '/# am--include-marker/d' "$am_filepart" \
23713         | $MAKE -f - am--depfiles" >&5
23714    (cd "$am_dirpart" \
23715       && sed -e '/# am--include-marker/d' "$am_filepart" \
23716         | $MAKE -f - am--depfiles) >&5 2>&5
23717    ac_status=$?
23718    echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719    (exit $ac_status); } || am_rc=$?
23720   done
23721   if test $am_rc -ne 0; then
23722     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23724 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23725     for automatic dependency tracking.  Try re-running configure with the
23726     '--disable-dependency-tracking' option to at least be able to build
23727     the package (albeit without support for automatic dependency tracking).
23728 See \`config.log' for more details" "$LINENO" 5; }
23729   fi
23730   { am_dirpart=; unset am_dirpart;}
23731   { am_filepart=; unset am_filepart;}
23732   { am_mf=; unset am_mf;}
23733   { am_rc=; unset am_rc;}
23734   rm -f conftest-deps.mk
23735 }
23736  ;;
23737     "libtool":C)
23738
23739     # See if we are running on zsh, and set the options that allow our
23740     # commands through without removal of \ escapes.
23741     if test -n "${ZSH_VERSION+set}"; then
23742       setopt NO_GLOB_SUBST
23743     fi
23744
23745     cfgfile=${ofile}T
23746     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23747     $RM "$cfgfile"
23748
23749     cat <<_LT_EOF >> "$cfgfile"
23750 #! $SHELL
23751 # Generated automatically by $as_me ($PACKAGE) $VERSION
23752 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23753
23754 # Provide generalized library-building support services.
23755 # Written by Gordon Matzigkeit, 1996
23756
23757 # Copyright (C) 2014 Free Software Foundation, Inc.
23758 # This is free software; see the source for copying conditions.  There is NO
23759 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23760
23761 # GNU Libtool is free software; you can redistribute it and/or modify
23762 # it under the terms of the GNU General Public License as published by
23763 # the Free Software Foundation; either version 2 of of the License, or
23764 # (at your option) any later version.
23765 #
23766 # As a special exception to the GNU General Public License, if you
23767 # distribute this file as part of a program or library that is built
23768 # using GNU Libtool, you may include this file under the  same
23769 # distribution terms that you use for the rest of that program.
23770 #
23771 # GNU Libtool is distributed in the hope that it will be useful, but
23772 # WITHOUT ANY WARRANTY; without even the implied warranty of
23773 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23774 # GNU General Public License for more details.
23775 #
23776 # You should have received a copy of the GNU General Public License
23777 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23778
23779
23780 # The names of the tagged configurations supported by this script.
23781 available_tags='CXX '
23782
23783 # Configured defaults for sys_lib_dlsearch_path munging.
23784 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23785
23786 # ### BEGIN LIBTOOL CONFIG
23787
23788 # Which release of libtool.m4 was used?
23789 macro_version=$macro_version
23790 macro_revision=$macro_revision
23791
23792 # Whether or not to build static libraries.
23793 build_old_libs=$enable_static
23794
23795 # Whether or not to build shared libraries.
23796 build_libtool_libs=$enable_shared
23797
23798 # What type of objects to build.
23799 pic_mode=$pic_mode
23800
23801 # Whether or not to optimize for fast installation.
23802 fast_install=$enable_fast_install
23803
23804 # Shared archive member basename,for filename based shared library versioning on AIX.
23805 shared_archive_member_spec=$shared_archive_member_spec
23806
23807 # Shell to use when invoking shell scripts.
23808 SHELL=$lt_SHELL
23809
23810 # An echo program that protects backslashes.
23811 ECHO=$lt_ECHO
23812
23813 # The PATH separator for the build system.
23814 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23815
23816 # The host system.
23817 host_alias=$host_alias
23818 host=$host
23819 host_os=$host_os
23820
23821 # The build system.
23822 build_alias=$build_alias
23823 build=$build
23824 build_os=$build_os
23825
23826 # A sed program that does not truncate output.
23827 SED=$lt_SED
23828
23829 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23830 Xsed="\$SED -e 1s/^X//"
23831
23832 # A grep program that handles long lines.
23833 GREP=$lt_GREP
23834
23835 # An ERE matcher.
23836 EGREP=$lt_EGREP
23837
23838 # A literal string matcher.
23839 FGREP=$lt_FGREP
23840
23841 # A BSD- or MS-compatible name lister.
23842 NM=$lt_NM
23843
23844 # Whether we need soft or hard links.
23845 LN_S=$lt_LN_S
23846
23847 # What is the maximum length of a command?
23848 max_cmd_len=$max_cmd_len
23849
23850 # Object file suffix (normally "o").
23851 objext=$ac_objext
23852
23853 # Executable file suffix (normally "").
23854 exeext=$exeext
23855
23856 # whether the shell understands "unset".
23857 lt_unset=$lt_unset
23858
23859 # turn spaces into newlines.
23860 SP2NL=$lt_lt_SP2NL
23861
23862 # turn newlines into spaces.
23863 NL2SP=$lt_lt_NL2SP
23864
23865 # convert \$build file names to \$host format.
23866 to_host_file_cmd=$lt_cv_to_host_file_cmd
23867
23868 # convert \$build files to toolchain format.
23869 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23870
23871 # An object symbol dumper.
23872 OBJDUMP=$lt_OBJDUMP
23873
23874 # Method to check whether dependent libraries are shared objects.
23875 deplibs_check_method=$lt_deplibs_check_method
23876
23877 # Command to use when deplibs_check_method = "file_magic".
23878 file_magic_cmd=$lt_file_magic_cmd
23879
23880 # How to find potential files when deplibs_check_method = "file_magic".
23881 file_magic_glob=$lt_file_magic_glob
23882
23883 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23884 want_nocaseglob=$lt_want_nocaseglob
23885
23886 # DLL creation program.
23887 DLLTOOL=$lt_DLLTOOL
23888
23889 # Command to associate shared and link libraries.
23890 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23891
23892 # The archiver.
23893 AR=$lt_AR
23894
23895 # Flags to create an archive.
23896 AR_FLAGS=$lt_AR_FLAGS
23897
23898 # How to feed a file listing to the archiver.
23899 archiver_list_spec=$lt_archiver_list_spec
23900
23901 # A symbol stripping program.
23902 STRIP=$lt_STRIP
23903
23904 # Commands used to install an old-style archive.
23905 RANLIB=$lt_RANLIB
23906 old_postinstall_cmds=$lt_old_postinstall_cmds
23907 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23908
23909 # Whether to use a lock for old archive extraction.
23910 lock_old_archive_extraction=$lock_old_archive_extraction
23911
23912 # A C compiler.
23913 LTCC=$lt_CC
23914
23915 # LTCC compiler flags.
23916 LTCFLAGS=$lt_CFLAGS
23917
23918 # Take the output of nm and produce a listing of raw symbols and C names.
23919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23920
23921 # Transform the output of nm in a proper C declaration.
23922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23923
23924 # Transform the output of nm into a list of symbols to manually relocate.
23925 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23926
23927 # Transform the output of nm in a C name address pair.
23928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23929
23930 # Transform the output of nm in a C name address pair when lib prefix is needed.
23931 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23932
23933 # The name lister interface.
23934 nm_interface=$lt_lt_cv_nm_interface
23935
23936 # Specify filename containing input files for \$NM.
23937 nm_file_list_spec=$lt_nm_file_list_spec
23938
23939 # The root where to search for dependent libraries,and where our libraries should be installed.
23940 lt_sysroot=$lt_sysroot
23941
23942 # Command to truncate a binary pipe.
23943 lt_truncate_bin=$lt_lt_cv_truncate_bin
23944
23945 # The name of the directory that contains temporary libtool files.
23946 objdir=$objdir
23947
23948 # Used to examine libraries when file_magic_cmd begins with "file".
23949 MAGIC_CMD=$MAGIC_CMD
23950
23951 # Must we lock files when doing compilation?
23952 need_locks=$lt_need_locks
23953
23954 # Manifest tool.
23955 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23956
23957 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23958 DSYMUTIL=$lt_DSYMUTIL
23959
23960 # Tool to change global to local symbols on Mac OS X.
23961 NMEDIT=$lt_NMEDIT
23962
23963 # Tool to manipulate fat objects and archives on Mac OS X.
23964 LIPO=$lt_LIPO
23965
23966 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23967 OTOOL=$lt_OTOOL
23968
23969 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23970 OTOOL64=$lt_OTOOL64
23971
23972 # Old archive suffix (normally "a").
23973 libext=$libext
23974
23975 # Shared library suffix (normally ".so").
23976 shrext_cmds=$lt_shrext_cmds
23977
23978 # The commands to extract the exported symbol list from a shared archive.
23979 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23980
23981 # Variables whose values should be saved in libtool wrapper scripts and
23982 # restored at link time.
23983 variables_saved_for_relink=$lt_variables_saved_for_relink
23984
23985 # Do we need the "lib" prefix for modules?
23986 need_lib_prefix=$need_lib_prefix
23987
23988 # Do we need a version for libraries?
23989 need_version=$need_version
23990
23991 # Library versioning type.
23992 version_type=$version_type
23993
23994 # Shared library runtime path variable.
23995 runpath_var=$runpath_var
23996
23997 # Shared library path variable.
23998 shlibpath_var=$shlibpath_var
23999
24000 # Is shlibpath searched before the hard-coded library search path?
24001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24002
24003 # Format of library name prefix.
24004 libname_spec=$lt_libname_spec
24005
24006 # List of archive names.  First name is the real one, the rest are links.
24007 # The last name is the one that the linker finds with -lNAME
24008 library_names_spec=$lt_library_names_spec
24009
24010 # The coded name of the library, if different from the real name.
24011 soname_spec=$lt_soname_spec
24012
24013 # Permission mode override for installation of shared libraries.
24014 install_override_mode=$lt_install_override_mode
24015
24016 # Command to use after installation of a shared archive.
24017 postinstall_cmds=$lt_postinstall_cmds
24018
24019 # Command to use after uninstallation of a shared archive.
24020 postuninstall_cmds=$lt_postuninstall_cmds
24021
24022 # Commands used to finish a libtool library installation in a directory.
24023 finish_cmds=$lt_finish_cmds
24024
24025 # As "finish_cmds", except a single script fragment to be evaled but
24026 # not shown.
24027 finish_eval=$lt_finish_eval
24028
24029 # Whether we should hardcode library paths into libraries.
24030 hardcode_into_libs=$hardcode_into_libs
24031
24032 # Compile-time system search path for libraries.
24033 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24034
24035 # Detected run-time system search path for libraries.
24036 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24037
24038 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24039 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24040
24041 # Whether dlopen is supported.
24042 dlopen_support=$enable_dlopen
24043
24044 # Whether dlopen of programs is supported.
24045 dlopen_self=$enable_dlopen_self
24046
24047 # Whether dlopen of statically linked programs is supported.
24048 dlopen_self_static=$enable_dlopen_self_static
24049
24050 # Commands to strip libraries.
24051 old_striplib=$lt_old_striplib
24052 striplib=$lt_striplib
24053
24054
24055 # The linker used to build libraries.
24056 LD=$lt_LD
24057
24058 # How to create reloadable object files.
24059 reload_flag=$lt_reload_flag
24060 reload_cmds=$lt_reload_cmds
24061
24062 # Commands used to build an old-style archive.
24063 old_archive_cmds=$lt_old_archive_cmds
24064
24065 # A language specific compiler.
24066 CC=$lt_compiler
24067
24068 # Is the compiler the GNU compiler?
24069 with_gcc=$GCC
24070
24071 # Compiler flag to turn off builtin functions.
24072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24073
24074 # Additional compiler flags for building library objects.
24075 pic_flag=$lt_lt_prog_compiler_pic
24076
24077 # How to pass a linker flag through the compiler.
24078 wl=$lt_lt_prog_compiler_wl
24079
24080 # Compiler flag to prevent dynamic linking.
24081 link_static_flag=$lt_lt_prog_compiler_static
24082
24083 # Does compiler simultaneously support -c and -o options?
24084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24085
24086 # Whether or not to add -lc for building shared libraries.
24087 build_libtool_need_lc=$archive_cmds_need_lc
24088
24089 # Whether or not to disallow shared libs when runtime libs are static.
24090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24091
24092 # Compiler flag to allow reflexive dlopens.
24093 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24094
24095 # Compiler flag to generate shared objects directly from archives.
24096 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24097
24098 # Whether the compiler copes with passing no objects directly.
24099 compiler_needs_object=$lt_compiler_needs_object
24100
24101 # Create an old-style archive from a shared archive.
24102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24103
24104 # Create a temporary old-style archive to link instead of a shared archive.
24105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24106
24107 # Commands used to build a shared archive.
24108 archive_cmds=$lt_archive_cmds
24109 archive_expsym_cmds=$lt_archive_expsym_cmds
24110
24111 # Commands used to build a loadable module if different from building
24112 # a shared archive.
24113 module_cmds=$lt_module_cmds
24114 module_expsym_cmds=$lt_module_expsym_cmds
24115
24116 # Whether we are building with GNU ld or not.
24117 with_gnu_ld=$lt_with_gnu_ld
24118
24119 # Flag that allows shared libraries with undefined symbols to be built.
24120 allow_undefined_flag=$lt_allow_undefined_flag
24121
24122 # Flag that enforces no undefined symbols.
24123 no_undefined_flag=$lt_no_undefined_flag
24124
24125 # Flag to hardcode \$libdir into a binary during linking.
24126 # This must work even if \$libdir does not exist
24127 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24128
24129 # Whether we need a single "-rpath" flag with a separated argument.
24130 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24131
24132 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24133 # DIR into the resulting binary.
24134 hardcode_direct=$hardcode_direct
24135
24136 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24137 # DIR into the resulting binary and the resulting library dependency is
24138 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24139 # library is relocated.
24140 hardcode_direct_absolute=$hardcode_direct_absolute
24141
24142 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24143 # into the resulting binary.
24144 hardcode_minus_L=$hardcode_minus_L
24145
24146 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24147 # into the resulting binary.
24148 hardcode_shlibpath_var=$hardcode_shlibpath_var
24149
24150 # Set to "yes" if building a shared library automatically hardcodes DIR
24151 # into the library and all subsequent libraries and executables linked
24152 # against it.
24153 hardcode_automatic=$hardcode_automatic
24154
24155 # Set to yes if linker adds runtime paths of dependent libraries
24156 # to runtime path list.
24157 inherit_rpath=$inherit_rpath
24158
24159 # Whether libtool must link a program against all its dependency libraries.
24160 link_all_deplibs=$link_all_deplibs
24161
24162 # Set to "yes" if exported symbols are required.
24163 always_export_symbols=$always_export_symbols
24164
24165 # The commands to list exported symbols.
24166 export_symbols_cmds=$lt_export_symbols_cmds
24167
24168 # Symbols that should not be listed in the preloaded symbols.
24169 exclude_expsyms=$lt_exclude_expsyms
24170
24171 # Symbols that must always be exported.
24172 include_expsyms=$lt_include_expsyms
24173
24174 # Commands necessary for linking programs (against libraries) with templates.
24175 prelink_cmds=$lt_prelink_cmds
24176
24177 # Commands necessary for finishing linking programs.
24178 postlink_cmds=$lt_postlink_cmds
24179
24180 # Specify filename containing input files.
24181 file_list_spec=$lt_file_list_spec
24182
24183 # How to hardcode a shared library path into an executable.
24184 hardcode_action=$hardcode_action
24185
24186 # The directories searched by this compiler when creating a shared library.
24187 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24188
24189 # Dependencies to place before and after the objects being linked to
24190 # create a shared library.
24191 predep_objects=$lt_predep_objects
24192 postdep_objects=$lt_postdep_objects
24193 predeps=$lt_predeps
24194 postdeps=$lt_postdeps
24195
24196 # The library search path used internally by the compiler when linking
24197 # a shared library.
24198 compiler_lib_search_path=$lt_compiler_lib_search_path
24199
24200 # ### END LIBTOOL CONFIG
24201
24202 _LT_EOF
24203
24204     cat <<'_LT_EOF' >> "$cfgfile"
24205
24206 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24207
24208 # func_munge_path_list VARIABLE PATH
24209 # -----------------------------------
24210 # VARIABLE is name of variable containing _space_ separated list of
24211 # directories to be munged by the contents of PATH, which is string
24212 # having a format:
24213 # "DIR[:DIR]:"
24214 #       string "DIR[ DIR]" will be prepended to VARIABLE
24215 # ":DIR[:DIR]"
24216 #       string "DIR[ DIR]" will be appended to VARIABLE
24217 # "DIRP[:DIRP]::[DIRA:]DIRA"
24218 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24219 #       "DIRA[ DIRA]" will be appended to VARIABLE
24220 # "DIR[:DIR]"
24221 #       VARIABLE will be replaced by "DIR[ DIR]"
24222 func_munge_path_list ()
24223 {
24224     case x$2 in
24225     x)
24226         ;;
24227     *:)
24228         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24229         ;;
24230     x:*)
24231         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24232         ;;
24233     *::*)
24234         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24235         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24236         ;;
24237     *)
24238         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24239         ;;
24240     esac
24241 }
24242
24243
24244 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24245 func_cc_basename ()
24246 {
24247     for cc_temp in $*""; do
24248       case $cc_temp in
24249         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24250         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24251         \-*) ;;
24252         *) break;;
24253       esac
24254     done
24255     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24256 }
24257
24258
24259 # ### END FUNCTIONS SHARED WITH CONFIGURE
24260
24261 _LT_EOF
24262
24263   case $host_os in
24264   aix3*)
24265     cat <<\_LT_EOF >> "$cfgfile"
24266 # AIX sometimes has problems with the GCC collect2 program.  For some
24267 # reason, if we set the COLLECT_NAMES environment variable, the problems
24268 # vanish in a puff of smoke.
24269 if test set != "${COLLECT_NAMES+set}"; then
24270   COLLECT_NAMES=
24271   export COLLECT_NAMES
24272 fi
24273 _LT_EOF
24274     ;;
24275   esac
24276
24277
24278 ltmain=$ac_aux_dir/ltmain.sh
24279
24280
24281   # We use sed instead of cat because bash on DJGPP gets confused if
24282   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24283   # text mode, it properly converts lines to CR/LF.  This bash problem
24284   # is reportedly fixed, but why not run on old versions too?
24285   sed '$q' "$ltmain" >> "$cfgfile" \
24286      || (rm -f "$cfgfile"; exit 1)
24287
24288    mv -f "$cfgfile" "$ofile" ||
24289     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24290   chmod +x "$ofile"
24291
24292
24293     cat <<_LT_EOF >> "$ofile"
24294
24295 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24296
24297 # The linker used to build libraries.
24298 LD=$lt_LD_CXX
24299
24300 # How to create reloadable object files.
24301 reload_flag=$lt_reload_flag_CXX
24302 reload_cmds=$lt_reload_cmds_CXX
24303
24304 # Commands used to build an old-style archive.
24305 old_archive_cmds=$lt_old_archive_cmds_CXX
24306
24307 # A language specific compiler.
24308 CC=$lt_compiler_CXX
24309
24310 # Is the compiler the GNU compiler?
24311 with_gcc=$GCC_CXX
24312
24313 # Compiler flag to turn off builtin functions.
24314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24315
24316 # Additional compiler flags for building library objects.
24317 pic_flag=$lt_lt_prog_compiler_pic_CXX
24318
24319 # How to pass a linker flag through the compiler.
24320 wl=$lt_lt_prog_compiler_wl_CXX
24321
24322 # Compiler flag to prevent dynamic linking.
24323 link_static_flag=$lt_lt_prog_compiler_static_CXX
24324
24325 # Does compiler simultaneously support -c and -o options?
24326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24327
24328 # Whether or not to add -lc for building shared libraries.
24329 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24330
24331 # Whether or not to disallow shared libs when runtime libs are static.
24332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24333
24334 # Compiler flag to allow reflexive dlopens.
24335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24336
24337 # Compiler flag to generate shared objects directly from archives.
24338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24339
24340 # Whether the compiler copes with passing no objects directly.
24341 compiler_needs_object=$lt_compiler_needs_object_CXX
24342
24343 # Create an old-style archive from a shared archive.
24344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24345
24346 # Create a temporary old-style archive to link instead of a shared archive.
24347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24348
24349 # Commands used to build a shared archive.
24350 archive_cmds=$lt_archive_cmds_CXX
24351 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24352
24353 # Commands used to build a loadable module if different from building
24354 # a shared archive.
24355 module_cmds=$lt_module_cmds_CXX
24356 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24357
24358 # Whether we are building with GNU ld or not.
24359 with_gnu_ld=$lt_with_gnu_ld_CXX
24360
24361 # Flag that allows shared libraries with undefined symbols to be built.
24362 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24363
24364 # Flag that enforces no undefined symbols.
24365 no_undefined_flag=$lt_no_undefined_flag_CXX
24366
24367 # Flag to hardcode \$libdir into a binary during linking.
24368 # This must work even if \$libdir does not exist
24369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24370
24371 # Whether we need a single "-rpath" flag with a separated argument.
24372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24373
24374 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24375 # DIR into the resulting binary.
24376 hardcode_direct=$hardcode_direct_CXX
24377
24378 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24379 # DIR into the resulting binary and the resulting library dependency is
24380 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24381 # library is relocated.
24382 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24383
24384 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24385 # into the resulting binary.
24386 hardcode_minus_L=$hardcode_minus_L_CXX
24387
24388 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24389 # into the resulting binary.
24390 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24391
24392 # Set to "yes" if building a shared library automatically hardcodes DIR
24393 # into the library and all subsequent libraries and executables linked
24394 # against it.
24395 hardcode_automatic=$hardcode_automatic_CXX
24396
24397 # Set to yes if linker adds runtime paths of dependent libraries
24398 # to runtime path list.
24399 inherit_rpath=$inherit_rpath_CXX
24400
24401 # Whether libtool must link a program against all its dependency libraries.
24402 link_all_deplibs=$link_all_deplibs_CXX
24403
24404 # Set to "yes" if exported symbols are required.
24405 always_export_symbols=$always_export_symbols_CXX
24406
24407 # The commands to list exported symbols.
24408 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24409
24410 # Symbols that should not be listed in the preloaded symbols.
24411 exclude_expsyms=$lt_exclude_expsyms_CXX
24412
24413 # Symbols that must always be exported.
24414 include_expsyms=$lt_include_expsyms_CXX
24415
24416 # Commands necessary for linking programs (against libraries) with templates.
24417 prelink_cmds=$lt_prelink_cmds_CXX
24418
24419 # Commands necessary for finishing linking programs.
24420 postlink_cmds=$lt_postlink_cmds_CXX
24421
24422 # Specify filename containing input files.
24423 file_list_spec=$lt_file_list_spec_CXX
24424
24425 # How to hardcode a shared library path into an executable.
24426 hardcode_action=$hardcode_action_CXX
24427
24428 # The directories searched by this compiler when creating a shared library.
24429 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24430
24431 # Dependencies to place before and after the objects being linked to
24432 # create a shared library.
24433 predep_objects=$lt_predep_objects_CXX
24434 postdep_objects=$lt_postdep_objects_CXX
24435 predeps=$lt_predeps_CXX
24436 postdeps=$lt_postdeps_CXX
24437
24438 # The library search path used internally by the compiler when linking
24439 # a shared library.
24440 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24441
24442 # ### END LIBTOOL TAG CONFIG: CXX
24443 _LT_EOF
24444
24445  ;;
24446
24447   esac
24448 done # for ac_tag
24449
24450
24451 as_fn_exit 0
24452 _ACEOF
24453 ac_clean_files=$ac_clean_files_save
24454
24455 test $ac_write_fail = 0 ||
24456   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24457
24458
24459 # configure is writing to config.log, and then calls config.status.
24460 # config.status does its own redirection, appending to config.log.
24461 # Unfortunately, on DOS this fails, as config.log is still kept open
24462 # by configure, so config.status won't be able to write to it; its
24463 # output is simply discarded.  So we exec the FD to /dev/null,
24464 # effectively closing config.log, so it can be properly (re)opened and
24465 # appended to by config.status.  When coming back to configure, we
24466 # need to make the FD available again.
24467 if test "$no_create" != yes; then
24468   ac_cs_success=:
24469   ac_config_status_args=
24470   test "$silent" = yes &&
24471     ac_config_status_args="$ac_config_status_args --quiet"
24472   exec 5>/dev/null
24473   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24474   exec 5>>config.log
24475   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24476   # would make configure fail if this is the last instruction.
24477   $ac_cs_success || as_fn_exit 1
24478 fi
24479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24480   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24481 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24482 fi
24483
24484
24485 echo
24486 echo "C++ compiler version:"
24487 $CXX --version
24488 echo
24489
24490 { $as_echo "$as_me:${as_lineno-$LINENO}:
24491
24492 Autotools is no longer our supported build system for building the library
24493 for *nix distributions, please migrate to meson.
24494
24495 " >&5
24496 $as_echo "$as_me:
24497
24498 Autotools is no longer our supported build system for building the library
24499 for *nix distributions, please migrate to meson.
24500
24501 " >&6;}
24502
24503
24504 { $as_echo "$as_me:${as_lineno-$LINENO}:
24505
24506 Build configuration:
24507
24508 Unicode callbacks (you want at least one):
24509         Builtin                 true
24510         Glib:                   ${have_glib}
24511         ICU:                    ${have_icu}
24512
24513 Font callbacks (the more the merrier):
24514         FreeType:               ${have_freetype}
24515
24516 Tools used for command-line utilities:
24517         Cairo:                  ${have_cairo}
24518         Chafa:                  ${have_chafa}
24519
24520 Additional shapers:
24521         Graphite2:              ${have_graphite2}
24522
24523 Platform shapers (not normally needed):
24524         CoreText:               ${have_coretext}
24525         DirectWrite:            ${have_directwrite}
24526         GDI:                    ${have_gdi}
24527         Uniscribe:              ${have_uniscribe}
24528
24529 Other features:
24530         Documentation:          ${enable_gtk_doc}
24531         GObject bindings:       ${have_gobject}
24532         Introspection:          ${have_introspection}
24533 " >&5
24534 $as_echo "$as_me:
24535
24536 Build configuration:
24537
24538 Unicode callbacks (you want at least one):
24539         Builtin                 true
24540         Glib:                   ${have_glib}
24541         ICU:                    ${have_icu}
24542
24543 Font callbacks (the more the merrier):
24544         FreeType:               ${have_freetype}
24545
24546 Tools used for command-line utilities:
24547         Cairo:                  ${have_cairo}
24548         Chafa:                  ${have_chafa}
24549
24550 Additional shapers:
24551         Graphite2:              ${have_graphite2}
24552
24553 Platform shapers (not normally needed):
24554         CoreText:               ${have_coretext}
24555         DirectWrite:            ${have_directwrite}
24556         GDI:                    ${have_gdi}
24557         Uniscribe:              ${have_uniscribe}
24558
24559 Other features:
24560         Documentation:          ${enable_gtk_doc}
24561         GObject bindings:       ${have_gobject}
24562         Introspection:          ${have_introspection}
24563 " >&6;}