04b284b73eeb28c3314c9927e1844fee7c0baaac
[platform/upstream/harfbuzz.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 1.3.0.
4 #
5 # Report bugs to <https://github.com/behdad/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
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/behdad/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='1.3.0'
594 PACKAGE_STRING='HarfBuzz 1.3.0'
595 PACKAGE_BUGREPORT='https://github.com/behdad/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
597
598 ac_unique_file="src/harfbuzz.pc.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_CORETEXT_FALSE
640 HAVE_CORETEXT_TRUE
641 CORETEXT_LIBS
642 CORETEXT_CFLAGS
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
645 DIRECTWRITE_LIBS
646 DIRECTWRITE_CXXFLAGS
647 HAVE_UNISCRIBE_FALSE
648 HAVE_UNISCRIBE_TRUE
649 UNISCRIBE_LIBS
650 UNISCRIBE_CFLAGS
651 HAVE_FREETYPE_FALSE
652 HAVE_FREETYPE_TRUE
653 FREETYPE_LIBS
654 FREETYPE_CFLAGS
655 FREETYPE_DEPS
656 HAVE_GRAPHITE2_FALSE
657 HAVE_GRAPHITE2_TRUE
658 GRAPHITE2_LIBS
659 GRAPHITE2_CFLAGS
660 GRAPHITE2_DEPS
661 HAVE_UCDN_FALSE
662 HAVE_UCDN_TRUE
663 HAVE_ICU_BUILTIN_FALSE
664 HAVE_ICU_BUILTIN_TRUE
665 HAVE_ICU_FALSE
666 HAVE_ICU_TRUE
667 ICU_CONFIG
668 ICU_LIBS
669 ICU_CFLAGS
670 HAVE_FONTCONFIG_FALSE
671 HAVE_FONTCONFIG_TRUE
672 FONTCONFIG_LIBS
673 FONTCONFIG_CFLAGS
674 HAVE_CAIRO_FT_FALSE
675 HAVE_CAIRO_FT_TRUE
676 CAIRO_FT_LIBS
677 CAIRO_FT_CFLAGS
678 HAVE_CAIRO_FALSE
679 HAVE_CAIRO_TRUE
680 CAIRO_LIBS
681 CAIRO_CFLAGS
682 HAVE_INTROSPECTION_FALSE
683 HAVE_INTROSPECTION_TRUE
684 INTROSPECTION_MAKEFILE
685 INTROSPECTION_LIBS
686 INTROSPECTION_CFLAGS
687 INTROSPECTION_TYPELIBDIR
688 INTROSPECTION_GIRDIR
689 INTROSPECTION_GENERATE
690 INTROSPECTION_COMPILER
691 INTROSPECTION_SCANNER
692 HAVE_GOBJECT_FALSE
693 HAVE_GOBJECT_TRUE
694 GLIB_MKENUMS
695 GOBJECT_LIBS
696 GOBJECT_CFLAGS
697 HAVE_GLIB_FALSE
698 HAVE_GLIB_TRUE
699 GLIB_LIBS
700 GLIB_CFLAGS
701 GLIB_DEPS
702 HAVE_FALLBACK_FALSE
703 HAVE_FALLBACK_TRUE
704 HAVE_OT_FALSE
705 HAVE_OT_TRUE
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 HB_LIBTOOL_VERSION_INFO
736 HB_VERSION
737 HB_VERSION_MICRO
738 HB_VERSION_MINOR
739 HB_VERSION_MAJOR
740 GIT
741 RAGEL
742 PKG_CONFIG
743 CXXCPP
744 am__fastdepCXX_FALSE
745 am__fastdepCXX_TRUE
746 CXXDEPMODE
747 ac_ct_CXX
748 CXXFLAGS
749 CXX
750 CPP
751 OTOOL64
752 OTOOL
753 LIPO
754 NMEDIT
755 DSYMUTIL
756 MANIFEST_TOOL
757 RANLIB
758 DLLTOOL
759 OBJDUMP
760 LN_S
761 NM
762 ac_ct_DUMPBIN
763 DUMPBIN
764 LD
765 FGREP
766 EGREP
767 GREP
768 SED
769 host_os
770 host_vendor
771 host_cpu
772 host
773 build_os
774 build_vendor
775 build_cpu
776 build
777 LIBTOOL
778 am__fastdepCC_FALSE
779 am__fastdepCC_TRUE
780 CCDEPMODE
781 am__nodep
782 AMDEPBACKSLASH
783 AMDEP_FALSE
784 AMDEP_TRUE
785 am__quote
786 am__include
787 DEPDIR
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
794 CC
795 ac_ct_AR
796 AR
797 AUTOMAKE_OLDER_THAN_1_13_FALSE
798 AUTOMAKE_OLDER_THAN_1_13_TRUE
799 AM_BACKSLASH
800 AM_DEFAULT_VERBOSITY
801 AM_DEFAULT_V
802 AM_V
803 am__untar
804 am__tar
805 AMTAR
806 am__leading_dot
807 SET_MAKE
808 AWK
809 mkdir_p
810 MKDIR_P
811 INSTALL_STRIP_PROGRAM
812 STRIP
813 install_sh
814 MAKEINFO
815 AUTOHEADER
816 AUTOMAKE
817 AUTOCONF
818 ACLOCAL
819 VERSION
820 PACKAGE
821 CYGPATH_W
822 am__isrc
823 INSTALL_DATA
824 INSTALL_SCRIPT
825 INSTALL_PROGRAM
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_silent_rules
868 enable_dependency_tracking
869 enable_static
870 enable_shared
871 with_pic
872 enable_fast_install
873 with_gnu_ld
874 with_sysroot
875 enable_libtool_lock
876 with_html_dir
877 enable_gtk_doc
878 enable_gtk_doc_html
879 enable_gtk_doc_pdf
880 with_glib
881 with_gobject
882 enable_introspection
883 with_cairo
884 with_fontconfig
885 with_icu
886 with_graphite2
887 with_freetype
888 with_uniscribe
889 with_directwrite
890 with_coretext
891 '
892       ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 CPP
901 CXX
902 CXXFLAGS
903 CCC
904 CXXCPP
905 PKG_CONFIG
906 GTKDOC_DEPS_CFLAGS
907 GTKDOC_DEPS_LIBS
908 GLIB_CFLAGS
909 GLIB_LIBS
910 GOBJECT_CFLAGS
911 GOBJECT_LIBS
912 CAIRO_CFLAGS
913 CAIRO_LIBS
914 CAIRO_FT_CFLAGS
915 CAIRO_FT_LIBS
916 FONTCONFIG_CFLAGS
917 FONTCONFIG_LIBS
918 ICU_CFLAGS
919 ICU_LIBS
920 GRAPHITE2_CFLAGS
921 GRAPHITE2_LIBS
922 FREETYPE_CFLAGS
923 FREETYPE_LIBS'
924
925
926 # Initialize some variables set by options.
927 ac_init_help=
928 ac_init_version=false
929 ac_unrecognized_opts=
930 ac_unrecognized_sep=
931 # The variables have the same names as the options, with
932 # dashes changed to underlines.
933 cache_file=/dev/null
934 exec_prefix=NONE
935 no_create=
936 no_recursion=
937 prefix=NONE
938 program_prefix=NONE
939 program_suffix=NONE
940 program_transform_name=s,x,x,
941 silent=
942 site=
943 srcdir=
944 verbose=
945 x_includes=NONE
946 x_libraries=NONE
947
948 # Installation directory options.
949 # These are left unexpanded so users can "make install exec_prefix=/foo"
950 # and all the variables that are supposed to be based on exec_prefix
951 # by default will actually change.
952 # Use braces instead of parens because sh, perl, etc. also accept them.
953 # (The list follows the same order as the GNU Coding Standards.)
954 bindir='${exec_prefix}/bin'
955 sbindir='${exec_prefix}/sbin'
956 libexecdir='${exec_prefix}/libexec'
957 datarootdir='${prefix}/share'
958 datadir='${datarootdir}'
959 sysconfdir='${prefix}/etc'
960 sharedstatedir='${prefix}/com'
961 localstatedir='${prefix}/var'
962 includedir='${prefix}/include'
963 oldincludedir='/usr/include'
964 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965 infodir='${datarootdir}/info'
966 htmldir='${docdir}'
967 dvidir='${docdir}'
968 pdfdir='${docdir}'
969 psdir='${docdir}'
970 libdir='${exec_prefix}/lib'
971 localedir='${datarootdir}/locale'
972 mandir='${datarootdir}/man'
973
974 ac_prev=
975 ac_dashdash=
976 for ac_option
977 do
978   # If the previous option needs an argument, assign it.
979   if test -n "$ac_prev"; then
980     eval $ac_prev=\$ac_option
981     ac_prev=
982     continue
983   fi
984
985   case $ac_option in
986   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987   *=)   ac_optarg= ;;
988   *)    ac_optarg=yes ;;
989   esac
990
991   # Accept the important Cygnus configure options, so we can diagnose typos.
992
993   case $ac_dashdash$ac_option in
994   --)
995     ac_dashdash=yes ;;
996
997   -bindir | --bindir | --bindi | --bind | --bin | --bi)
998     ac_prev=bindir ;;
999   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000     bindir=$ac_optarg ;;
1001
1002   -build | --build | --buil | --bui | --bu)
1003     ac_prev=build_alias ;;
1004   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005     build_alias=$ac_optarg ;;
1006
1007   -cache-file | --cache-file | --cache-fil | --cache-fi \
1008   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009     ac_prev=cache_file ;;
1010   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012     cache_file=$ac_optarg ;;
1013
1014   --config-cache | -C)
1015     cache_file=config.cache ;;
1016
1017   -datadir | --datadir | --datadi | --datad)
1018     ac_prev=datadir ;;
1019   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020     datadir=$ac_optarg ;;
1021
1022   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023   | --dataroo | --dataro | --datar)
1024     ac_prev=datarootdir ;;
1025   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027     datarootdir=$ac_optarg ;;
1028
1029   -disable-* | --disable-*)
1030     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033       as_fn_error $? "invalid feature name: $ac_useropt"
1034     ac_useropt_orig=$ac_useropt
1035     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036     case $ac_user_opts in
1037       *"
1038 "enable_$ac_useropt"
1039 "*) ;;
1040       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1041          ac_unrecognized_sep=', ';;
1042     esac
1043     eval enable_$ac_useropt=no ;;
1044
1045   -docdir | --docdir | --docdi | --doc | --do)
1046     ac_prev=docdir ;;
1047   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048     docdir=$ac_optarg ;;
1049
1050   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051     ac_prev=dvidir ;;
1052   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053     dvidir=$ac_optarg ;;
1054
1055   -enable-* | --enable-*)
1056     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059       as_fn_error $? "invalid feature name: $ac_useropt"
1060     ac_useropt_orig=$ac_useropt
1061     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062     case $ac_user_opts in
1063       *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1067          ac_unrecognized_sep=', ';;
1068     esac
1069     eval enable_$ac_useropt=\$ac_optarg ;;
1070
1071   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073   | --exec | --exe | --ex)
1074     ac_prev=exec_prefix ;;
1075   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077   | --exec=* | --exe=* | --ex=*)
1078     exec_prefix=$ac_optarg ;;
1079
1080   -gas | --gas | --ga | --g)
1081     # Obsolete; use --with-gas.
1082     with_gas=yes ;;
1083
1084   -help | --help | --hel | --he | -h)
1085     ac_init_help=long ;;
1086   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087     ac_init_help=recursive ;;
1088   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089     ac_init_help=short ;;
1090
1091   -host | --host | --hos | --ho)
1092     ac_prev=host_alias ;;
1093   -host=* | --host=* | --hos=* | --ho=*)
1094     host_alias=$ac_optarg ;;
1095
1096   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097     ac_prev=htmldir ;;
1098   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099   | --ht=*)
1100     htmldir=$ac_optarg ;;
1101
1102   -includedir | --includedir | --includedi | --included | --include \
1103   | --includ | --inclu | --incl | --inc)
1104     ac_prev=includedir ;;
1105   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106   | --includ=* | --inclu=* | --incl=* | --inc=*)
1107     includedir=$ac_optarg ;;
1108
1109   -infodir | --infodir | --infodi | --infod | --info | --inf)
1110     ac_prev=infodir ;;
1111   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112     infodir=$ac_optarg ;;
1113
1114   -libdir | --libdir | --libdi | --libd)
1115     ac_prev=libdir ;;
1116   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117     libdir=$ac_optarg ;;
1118
1119   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120   | --libexe | --libex | --libe)
1121     ac_prev=libexecdir ;;
1122   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123   | --libexe=* | --libex=* | --libe=*)
1124     libexecdir=$ac_optarg ;;
1125
1126   -localedir | --localedir | --localedi | --localed | --locale)
1127     ac_prev=localedir ;;
1128   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129     localedir=$ac_optarg ;;
1130
1131   -localstatedir | --localstatedir | --localstatedi | --localstated \
1132   | --localstate | --localstat | --localsta | --localst | --locals)
1133     ac_prev=localstatedir ;;
1134   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136     localstatedir=$ac_optarg ;;
1137
1138   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139     ac_prev=mandir ;;
1140   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141     mandir=$ac_optarg ;;
1142
1143   -nfp | --nfp | --nf)
1144     # Obsolete; use --without-fp.
1145     with_fp=no ;;
1146
1147   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148   | --no-cr | --no-c | -n)
1149     no_create=yes ;;
1150
1151   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153     no_recursion=yes ;;
1154
1155   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157   | --oldin | --oldi | --old | --ol | --o)
1158     ac_prev=oldincludedir ;;
1159   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162     oldincludedir=$ac_optarg ;;
1163
1164   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165     ac_prev=prefix ;;
1166   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167     prefix=$ac_optarg ;;
1168
1169   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170   | --program-pre | --program-pr | --program-p)
1171     ac_prev=program_prefix ;;
1172   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174     program_prefix=$ac_optarg ;;
1175
1176   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177   | --program-suf | --program-su | --program-s)
1178     ac_prev=program_suffix ;;
1179   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181     program_suffix=$ac_optarg ;;
1182
1183   -program-transform-name | --program-transform-name \
1184   | --program-transform-nam | --program-transform-na \
1185   | --program-transform-n | --program-transform- \
1186   | --program-transform | --program-transfor \
1187   | --program-transfo | --program-transf \
1188   | --program-trans | --program-tran \
1189   | --progr-tra | --program-tr | --program-t)
1190     ac_prev=program_transform_name ;;
1191   -program-transform-name=* | --program-transform-name=* \
1192   | --program-transform-nam=* | --program-transform-na=* \
1193   | --program-transform-n=* | --program-transform-=* \
1194   | --program-transform=* | --program-transfor=* \
1195   | --program-transfo=* | --program-transf=* \
1196   | --program-trans=* | --program-tran=* \
1197   | --progr-tra=* | --program-tr=* | --program-t=*)
1198     program_transform_name=$ac_optarg ;;
1199
1200   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201     ac_prev=pdfdir ;;
1202   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203     pdfdir=$ac_optarg ;;
1204
1205   -psdir | --psdir | --psdi | --psd | --ps)
1206     ac_prev=psdir ;;
1207   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208     psdir=$ac_optarg ;;
1209
1210   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211   | -silent | --silent | --silen | --sile | --sil)
1212     silent=yes ;;
1213
1214   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215     ac_prev=sbindir ;;
1216   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217   | --sbi=* | --sb=*)
1218     sbindir=$ac_optarg ;;
1219
1220   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222   | --sharedst | --shareds | --shared | --share | --shar \
1223   | --sha | --sh)
1224     ac_prev=sharedstatedir ;;
1225   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228   | --sha=* | --sh=*)
1229     sharedstatedir=$ac_optarg ;;
1230
1231   -site | --site | --sit)
1232     ac_prev=site ;;
1233   -site=* | --site=* | --sit=*)
1234     site=$ac_optarg ;;
1235
1236   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237     ac_prev=srcdir ;;
1238   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239     srcdir=$ac_optarg ;;
1240
1241   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242   | --syscon | --sysco | --sysc | --sys | --sy)
1243     ac_prev=sysconfdir ;;
1244   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246     sysconfdir=$ac_optarg ;;
1247
1248   -target | --target | --targe | --targ | --tar | --ta | --t)
1249     ac_prev=target_alias ;;
1250   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251     target_alias=$ac_optarg ;;
1252
1253   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254     verbose=yes ;;
1255
1256   -version | --version | --versio | --versi | --vers | -V)
1257     ac_init_version=: ;;
1258
1259   -with-* | --with-*)
1260     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263       as_fn_error $? "invalid package name: $ac_useropt"
1264     ac_useropt_orig=$ac_useropt
1265     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266     case $ac_user_opts in
1267       *"
1268 "with_$ac_useropt"
1269 "*) ;;
1270       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271          ac_unrecognized_sep=', ';;
1272     esac
1273     eval with_$ac_useropt=\$ac_optarg ;;
1274
1275   -without-* | --without-*)
1276     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279       as_fn_error $? "invalid package name: $ac_useropt"
1280     ac_useropt_orig=$ac_useropt
1281     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282     case $ac_user_opts in
1283       *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287          ac_unrecognized_sep=', ';;
1288     esac
1289     eval with_$ac_useropt=no ;;
1290
1291   --x)
1292     # Obsolete; use --with-x.
1293     with_x=yes ;;
1294
1295   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296   | --x-incl | --x-inc | --x-in | --x-i)
1297     ac_prev=x_includes ;;
1298   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300     x_includes=$ac_optarg ;;
1301
1302   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304     ac_prev=x_libraries ;;
1305   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307     x_libraries=$ac_optarg ;;
1308
1309   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1310 Try \`$0 --help' for more information"
1311     ;;
1312
1313   *=*)
1314     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315     # Reject names that are not valid shell variable names.
1316     case $ac_envvar in #(
1317       '' | [0-9]* | *[!_$as_cr_alnum]* )
1318       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1319     esac
1320     eval $ac_envvar=\$ac_optarg
1321     export $ac_envvar ;;
1322
1323   *)
1324     # FIXME: should be removed in autoconf 3.0.
1325     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329     ;;
1330
1331   esac
1332 done
1333
1334 if test -n "$ac_prev"; then
1335   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336   as_fn_error $? "missing argument to $ac_option"
1337 fi
1338
1339 if test -n "$ac_unrecognized_opts"; then
1340   case $enable_option_checking in
1341     no) ;;
1342     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1343     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344   esac
1345 fi
1346
1347 # Check all directory arguments for consistency.
1348 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349                 datadir sysconfdir sharedstatedir localstatedir includedir \
1350                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351                 libdir localedir mandir
1352 do
1353   eval ac_val=\$$ac_var
1354   # Remove trailing slashes.
1355   case $ac_val in
1356     */ )
1357       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358       eval $ac_var=\$ac_val;;
1359   esac
1360   # Be sure to have absolute directory names.
1361   case $ac_val in
1362     [\\/$]* | ?:[\\/]* )  continue;;
1363     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364   esac
1365   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1366 done
1367
1368 # There might be people who depend on the old broken behavior: `$host'
1369 # used to hold the argument of --host etc.
1370 # FIXME: To remove some day.
1371 build=$build_alias
1372 host=$host_alias
1373 target=$target_alias
1374
1375 # FIXME: To remove some day.
1376 if test "x$host_alias" != x; then
1377   if test "x$build_alias" = x; then
1378     cross_compiling=maybe
1379   elif test "x$build_alias" != "x$host_alias"; then
1380     cross_compiling=yes
1381   fi
1382 fi
1383
1384 ac_tool_prefix=
1385 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387 test "$silent" = yes && exec 6>/dev/null
1388
1389
1390 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391 ac_ls_di=`ls -di .` &&
1392 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393   as_fn_error $? "working directory cannot be determined"
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395   as_fn_error $? "pwd does not report name of working directory"
1396
1397
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400   ac_srcdir_defaulted=yes
1401   # Try the directory containing this script, then the parent directory.
1402   ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404          X"$as_myself" : 'X\(//\)[^/]' \| \
1405          X"$as_myself" : 'X\(//\)$' \| \
1406          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\/\)[^/].*/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\/\)$/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\).*/{
1421             s//\1/
1422             q
1423           }
1424           s/.*/./; q'`
1425   srcdir=$ac_confdir
1426   if test ! -r "$srcdir/$ac_unique_file"; then
1427     srcdir=..
1428   fi
1429 else
1430   ac_srcdir_defaulted=no
1431 fi
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1435 fi
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1439         pwd)`
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442   srcdir=.
1443 fi
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1447 case $srcdir in
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 esac
1450 for ac_var in $ac_precious_vars; do
1451   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452   eval ac_env_${ac_var}_value=\$${ac_var}
1453   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 done
1456
1457 #
1458 # Report the --help message.
1459 #
1460 if test "$ac_init_help" = "long"; then
1461   # Omit some internal or obsolete options to make the list less imposing.
1462   # This message is too long to be a string in the A/UX 3.1 sh.
1463   cat <<_ACEOF
1464 \`configure' configures HarfBuzz 1.3.0 to adapt to many kinds of systems.
1465
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE.  See below for descriptions of some of the useful variables.
1470
1471 Defaults for the options are specified in brackets.
1472
1473 Configuration:
1474   -h, --help              display this help and exit
1475       --help=short        display options specific to this package
1476       --help=recursive    display the short help of all the included packages
1477   -V, --version           display version information and exit
1478   -q, --quiet, --silent   do not print \`checking ...' messages
1479       --cache-file=FILE   cache test results in FILE [disabled]
1480   -C, --config-cache      alias for \`--cache-file=config.cache'
1481   -n, --no-create         do not create output files
1482       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1483
1484 Installation directories:
1485   --prefix=PREFIX         install architecture-independent files in PREFIX
1486                           [$ac_default_prefix]
1487   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1488                           [PREFIX]
1489
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1494
1495 For better control, use the options below.
1496
1497 Fine tuning of the installation directories:
1498   --bindir=DIR            user executables [EPREFIX/bin]
1499   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1500   --libexecdir=DIR        program executables [EPREFIX/libexec]
1501   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1502   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1503   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1504   --libdir=DIR            object code libraries [EPREFIX/lib]
1505   --includedir=DIR        C header files [PREFIX/include]
1506   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1507   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1508   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1509   --infodir=DIR           info documentation [DATAROOTDIR/info]
1510   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1511   --mandir=DIR            man documentation [DATAROOTDIR/man]
1512   --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
1513   --htmldir=DIR           html documentation [DOCDIR]
1514   --dvidir=DIR            dvi documentation [DOCDIR]
1515   --pdfdir=DIR            pdf documentation [DOCDIR]
1516   --psdir=DIR             ps documentation [DOCDIR]
1517 _ACEOF
1518
1519   cat <<\_ACEOF
1520
1521 Program names:
1522   --program-prefix=PREFIX            prepend PREFIX to installed program names
1523   --program-suffix=SUFFIX            append SUFFIX to installed program names
1524   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1525
1526 System types:
1527   --build=BUILD     configure for building on BUILD [guessed]
1528   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1529 _ACEOF
1530 fi
1531
1532 if test -n "$ac_init_help"; then
1533   case $ac_init_help in
1534      short | recursive ) echo "Configuration of HarfBuzz 1.3.0:";;
1535    esac
1536   cat <<\_ACEOF
1537
1538 Optional Features:
1539   --disable-option-checking  ignore unrecognized --enable/--with options
1540   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1541   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1542   --enable-silent-rules   less verbose build output (undo: "make V=1")
1543   --disable-silent-rules  verbose build output (undo: "make V=0")
1544   --enable-dependency-tracking
1545                           do not reject slow dependency extractors
1546   --disable-dependency-tracking
1547                           speeds up one-time build
1548   --enable-static[=PKGS]  build static libraries [default=no]
1549   --enable-shared[=PKGS]  build shared libraries [default=yes]
1550   --enable-fast-install[=PKGS]
1551                           optimize for fast installation [default=yes]
1552   --disable-libtool-lock  avoid locking (might break parallel builds)
1553   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1554   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1555   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1556   --enable-introspection=[no/auto/yes]
1557                           Enable introspection for this build
1558
1559 Optional Packages:
1560   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1561   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1562   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1563                           both]
1564   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565   --with-sysroot=DIR Search for dependent libraries within DIR
1566                         (or the compiler's sysroot if not specified).
1567   --with-html-dir=PATH    path to installed docs
1568   --with-glib=[yes/no/auto]
1569                           Use glib [default=auto]
1570   --with-gobject=[yes/no/auto]
1571                           Use gobject [default=auto]
1572   --with-cairo=[yes/no/auto]
1573                           Use cairo [default=auto]
1574   --with-fontconfig=[yes/no/auto]
1575                           Use fontconfig [default=auto]
1576   --with-icu=[yes/no/builtin/auto]
1577                           Use ICU [default=auto]
1578   --with-graphite2=[yes/no/auto]
1579                           Use the graphite2 library [default=no]
1580   --with-freetype=[yes/no/auto]
1581                           Use the FreeType library [default=auto]
1582   --with-uniscribe=[yes/no/auto]
1583                           Use the Uniscribe library [default=no]
1584   --with-directwrite=[yes/no/auto]
1585                           Use the DirectWrite library (experimental)
1586                           [default=no]
1587   --with-coretext=[yes/no/auto]
1588                           Use CoreText [default=no]
1589
1590 Some influential environment variables:
1591   CC          C compiler command
1592   CFLAGS      C compiler flags
1593   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1594               nonstandard directory <lib dir>
1595   LIBS        libraries to pass to the linker, e.g. -l<library>
1596   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1597               you have headers in a nonstandard directory <include dir>
1598   CPP         C preprocessor
1599   CXX         C++ compiler command
1600   CXXFLAGS    C++ compiler flags
1601   CXXCPP      C++ preprocessor
1602   PKG_CONFIG  path to pkg-config utility
1603   GTKDOC_DEPS_CFLAGS
1604               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1605   GTKDOC_DEPS_LIBS
1606               linker flags for GTKDOC_DEPS, overriding pkg-config
1607   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1608   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1609   GOBJECT_CFLAGS
1610               C compiler flags for GOBJECT, overriding pkg-config
1611   GOBJECT_LIBS
1612               linker flags for GOBJECT, overriding pkg-config
1613   CAIRO_CFLAGS
1614               C compiler flags for CAIRO, overriding pkg-config
1615   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1616   CAIRO_FT_CFLAGS
1617               C compiler flags for CAIRO_FT, overriding pkg-config
1618   CAIRO_FT_LIBS
1619               linker flags for CAIRO_FT, overriding pkg-config
1620   FONTCONFIG_CFLAGS
1621               C compiler flags for FONTCONFIG, overriding pkg-config
1622   FONTCONFIG_LIBS
1623               linker flags for FONTCONFIG, overriding pkg-config
1624   ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
1625   ICU_LIBS    linker flags for ICU, overriding pkg-config
1626   GRAPHITE2_CFLAGS
1627               C compiler flags for GRAPHITE2, overriding pkg-config
1628   GRAPHITE2_LIBS
1629               linker flags for GRAPHITE2, overriding pkg-config
1630   FREETYPE_CFLAGS
1631               C compiler flags for FREETYPE, overriding pkg-config
1632   FREETYPE_LIBS
1633               linker flags for FREETYPE, overriding pkg-config
1634
1635 Use these variables to override the choices made by `configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1637
1638 Report bugs to <https://github.com/behdad/harfbuzz/issues/new>.
1639 HarfBuzz home page: <http://harfbuzz.org/>.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645   # If there are subdirs, report their specific --help.
1646   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647     test -d "$ac_dir" ||
1648       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649       continue
1650     ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656   # A ".." for each directory in $ac_dir_suffix.
1657   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658   case $ac_top_builddir_sub in
1659   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661   esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669   .)  # We are building in place.
1670     ac_srcdir=.
1671     ac_top_srcdir=$ac_top_builddir_sub
1672     ac_abs_top_srcdir=$ac_pwd ;;
1673   [\\/]* | ?:[\\/]* )  # Absolute name.
1674     ac_srcdir=$srcdir$ac_dir_suffix;
1675     ac_top_srcdir=$srcdir
1676     ac_abs_top_srcdir=$srcdir ;;
1677   *) # Relative name.
1678     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679     ac_top_srcdir=$ac_top_build_prefix$srcdir
1680     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684     cd "$ac_dir" || { ac_status=$?; continue; }
1685     # Check for guested configure.
1686     if test -f "$ac_srcdir/configure.gnu"; then
1687       echo &&
1688       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689     elif test -f "$ac_srcdir/configure"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure" --help=recursive
1692     else
1693       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694     fi || ac_status=$?
1695     cd "$ac_pwd" || { ac_status=$?; break; }
1696   done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701   cat <<\_ACEOF
1702 HarfBuzz configure 1.3.0
1703 generated by GNU Autoconf 2.69
1704
1705 Copyright (C) 2012 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709   exit
1710 fi
1711
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1715
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   rm -f conftest.$ac_objext
1723   if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_compile") 2>conftest.err
1731   ac_status=$?
1732   if test -s conftest.err; then
1733     grep -v '^ *+' conftest.err >conftest.er1
1734     cat conftest.er1 >&5
1735     mv -f conftest.er1 conftest.err
1736   fi
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && {
1739          test -z "$ac_c_werror_flag" ||
1740          test ! -s conftest.err
1741        } && test -s conftest.$ac_objext; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747         ac_retval=1
1748 fi
1749   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750   as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_compile
1753
1754 # ac_fn_c_try_link LINENO
1755 # -----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_link ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   rm -f conftest.$ac_objext conftest$ac_exeext
1761   if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_link") 2>conftest.err
1769   ac_status=$?
1770   if test -s conftest.err; then
1771     grep -v '^ *+' conftest.err >conftest.er1
1772     cat conftest.er1 >&5
1773     mv -f conftest.er1 conftest.err
1774   fi
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && {
1777          test -z "$ac_c_werror_flag" ||
1778          test ! -s conftest.err
1779        } && test -s conftest$ac_exeext && {
1780          test "$cross_compiling" = yes ||
1781          test -x conftest$ac_exeext
1782        }; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788         ac_retval=1
1789 fi
1790   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1791   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1792   # interfere with the next link command; also delete a directory that is
1793   # left behind by Apple's compiler.  We do this before executing the actions.
1794   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796   as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_link
1799
1800 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists and can be compiled using the include files in
1803 # INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810   $as_echo_n "(cached) " >&6
1811 else
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 $4
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818   eval "$3=yes"
1819 else
1820   eval "$3=no"
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 fi
1824 eval ac_res=\$$3
1825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_header_compile
1830
1831 # ac_fn_c_try_cpp LINENO
1832 # ----------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_cpp ()
1835 {
1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837   if { { ac_try="$ac_cpp conftest.$ac_ext"
1838 case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1845   ac_status=$?
1846   if test -s conftest.err; then
1847     grep -v '^ *+' conftest.err >conftest.er1
1848     cat conftest.er1 >&5
1849     mv -f conftest.er1 conftest.err
1850   fi
1851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852   test $ac_status = 0; } > conftest.i && {
1853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1854          test ! -s conftest.err
1855        }; then :
1856   ac_retval=0
1857 else
1858   $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861     ac_retval=1
1862 fi
1863   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864   as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_cpp
1867
1868 # ac_fn_c_try_run LINENO
1869 # ----------------------
1870 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871 # that executables *can* be run.
1872 ac_fn_c_try_run ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   if { { ac_try="$ac_link"
1876 case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_link") 2>&5
1883   ac_status=$?
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886   { { case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892   (eval "$ac_try") 2>&5
1893   ac_status=$?
1894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; }; }; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: program exited with status $ac_status" >&5
1899        $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902        ac_retval=$ac_status
1903 fi
1904   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906   as_fn_set_status $ac_retval
1907
1908 } # ac_fn_c_try_run
1909
1910 # ac_fn_c_check_func LINENO FUNC VAR
1911 # ----------------------------------
1912 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1913 ac_fn_c_check_func ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919   $as_echo_n "(cached) " >&6
1920 else
1921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h.  */
1923 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1925 #define $2 innocuous_$2
1926
1927 /* System header to define __stub macros and hopefully few prototypes,
1928     which can conflict with char $2 (); below.
1929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930     <limits.h> exists even on freestanding compilers.  */
1931
1932 #ifdef __STDC__
1933 # include <limits.h>
1934 #else
1935 # include <assert.h>
1936 #endif
1937
1938 #undef $2
1939
1940 /* Override any GCC internal prototype to avoid an error.
1941    Use char because int might match the return type of a GCC
1942    builtin and then its argument prototype would still apply.  */
1943 #ifdef __cplusplus
1944 extern "C"
1945 #endif
1946 char $2 ();
1947 /* The GNU C library defines this for functions which it implements
1948     to always fail with ENOSYS.  Some functions are actually named
1949     something starting with __ and the normal name is an alias.  */
1950 #if defined __stub_$2 || defined __stub___$2
1951 choke me
1952 #endif
1953
1954 int
1955 main ()
1956 {
1957 return $2 ();
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_link "$LINENO"; then :
1963   eval "$3=yes"
1964 else
1965   eval "$3=no"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext \
1968     conftest$ac_exeext conftest.$ac_ext
1969 fi
1970 eval ac_res=\$$3
1971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975 } # ac_fn_c_check_func
1976
1977 # ac_fn_cxx_try_compile LINENO
1978 # ----------------------------
1979 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_compile ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   rm -f conftest.$ac_objext
1984   if { { ac_try="$ac_compile"
1985 case "(($ac_try" in
1986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987   *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991   (eval "$ac_compile") 2>conftest.err
1992   ac_status=$?
1993   if test -s conftest.err; then
1994     grep -v '^ *+' conftest.err >conftest.er1
1995     cat conftest.er1 >&5
1996     mv -f conftest.er1 conftest.err
1997   fi
1998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999   test $ac_status = 0; } && {
2000          test -z "$ac_cxx_werror_flag" ||
2001          test ! -s conftest.err
2002        } && test -s conftest.$ac_objext; then :
2003   ac_retval=0
2004 else
2005   $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008         ac_retval=1
2009 fi
2010   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011   as_fn_set_status $ac_retval
2012
2013 } # ac_fn_cxx_try_compile
2014
2015 # ac_fn_cxx_try_cpp LINENO
2016 # ------------------------
2017 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_cxx_try_cpp ()
2019 {
2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021   if { { ac_try="$ac_cpp conftest.$ac_ext"
2022 case "(($ac_try" in
2023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024   *) ac_try_echo=$ac_try;;
2025 esac
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2029   ac_status=$?
2030   if test -s conftest.err; then
2031     grep -v '^ *+' conftest.err >conftest.er1
2032     cat conftest.er1 >&5
2033     mv -f conftest.er1 conftest.err
2034   fi
2035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036   test $ac_status = 0; } > conftest.i && {
2037          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2038          test ! -s conftest.err
2039        }; then :
2040   ac_retval=0
2041 else
2042   $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2044
2045     ac_retval=1
2046 fi
2047   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048   as_fn_set_status $ac_retval
2049
2050 } # ac_fn_cxx_try_cpp
2051
2052 # ac_fn_cxx_try_link LINENO
2053 # -------------------------
2054 # Try to link conftest.$ac_ext, and return whether this succeeded.
2055 ac_fn_cxx_try_link ()
2056 {
2057   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058   rm -f conftest.$ac_objext conftest$ac_exeext
2059   if { { ac_try="$ac_link"
2060 case "(($ac_try" in
2061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062   *) ac_try_echo=$ac_try;;
2063 esac
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066   (eval "$ac_link") 2>conftest.err
2067   ac_status=$?
2068   if test -s conftest.err; then
2069     grep -v '^ *+' conftest.err >conftest.er1
2070     cat conftest.er1 >&5
2071     mv -f conftest.er1 conftest.err
2072   fi
2073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074   test $ac_status = 0; } && {
2075          test -z "$ac_cxx_werror_flag" ||
2076          test ! -s conftest.err
2077        } && test -s conftest$ac_exeext && {
2078          test "$cross_compiling" = yes ||
2079          test -x conftest$ac_exeext
2080        }; then :
2081   ac_retval=0
2082 else
2083   $as_echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.$ac_ext >&5
2085
2086         ac_retval=1
2087 fi
2088   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2089   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2090   # interfere with the next link command; also delete a directory that is
2091   # left behind by Apple's compiler.  We do this before executing the actions.
2092   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2093   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094   as_fn_set_status $ac_retval
2095
2096 } # ac_fn_cxx_try_link
2097
2098 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2099 # -------------------------------------------------------
2100 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2101 # the include files in INCLUDES and setting the cache variable VAR
2102 # accordingly.
2103 ac_fn_c_check_header_mongrel ()
2104 {
2105   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106   if eval \${$3+:} false; then :
2107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110   $as_echo_n "(cached) " >&6
2111 fi
2112 eval ac_res=\$$3
2113                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 else
2116   # Is the header compilable?
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2118 $as_echo_n "checking $2 usability... " >&6; }
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h.  */
2121 $4
2122 #include <$2>
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125   ac_header_compiler=yes
2126 else
2127   ac_header_compiler=no
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2131 $as_echo "$ac_header_compiler" >&6; }
2132
2133 # Is the header present?
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2135 $as_echo_n "checking $2 presence... " >&6; }
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h.  */
2138 #include <$2>
2139 _ACEOF
2140 if ac_fn_c_try_cpp "$LINENO"; then :
2141   ac_header_preproc=yes
2142 else
2143   ac_header_preproc=no
2144 fi
2145 rm -f conftest.err conftest.i conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2147 $as_echo "$ac_header_preproc" >&6; }
2148
2149 # So?  What about this header?
2150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2151   yes:no: )
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2153 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2155 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2156     ;;
2157   no:yes:* )
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2159 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2161 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2162     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2163 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2164     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2165 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2166     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2167 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2168 ( $as_echo "## ------------------------------------------------------------ ##
2169 ## Report this to https://github.com/behdad/harfbuzz/issues/new ##
2170 ## ------------------------------------------------------------ ##"
2171      ) | sed "s/^/$as_me: WARNING:     /" >&2
2172     ;;
2173 esac
2174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval \${$3+:} false; then :
2177   $as_echo_n "(cached) " >&6
2178 else
2179   eval "$3=\$ac_header_compiler"
2180 fi
2181 eval ac_res=\$$3
2182                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 fi
2185   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186
2187 } # ac_fn_c_check_header_mongrel
2188
2189 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2190 # --------------------------------------------
2191 # Tries to find the compile-time value of EXPR in a program that includes
2192 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2193 # computed
2194 ac_fn_c_compute_int ()
2195 {
2196   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197   if test "$cross_compiling" = yes; then
2198     # Depending upon the size, compute the lo and hi bounds.
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h.  */
2201 $4
2202 int
2203 main ()
2204 {
2205 static int test_array [1 - 2 * !(($2) >= 0)];
2206 test_array [0] = 0;
2207 return test_array [0];
2208
2209   ;
2210   return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214   ac_lo=0 ac_mid=0
2215   while :; do
2216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h.  */
2218 $4
2219 int
2220 main ()
2221 {
2222 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2223 test_array [0] = 0;
2224 return test_array [0];
2225
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231   ac_hi=$ac_mid; break
2232 else
2233   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2234                         if test $ac_lo -le $ac_mid; then
2235                           ac_lo= ac_hi=
2236                           break
2237                         fi
2238                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241   done
2242 else
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 static int test_array [1 - 2 * !(($2) < 0)];
2250 test_array [0] = 0;
2251 return test_array [0];
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258   ac_hi=-1 ac_mid=-1
2259   while :; do
2260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 int
2264 main ()
2265 {
2266 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2267 test_array [0] = 0;
2268 return test_array [0];
2269
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275   ac_lo=$ac_mid; break
2276 else
2277   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2278                         if test $ac_mid -le $ac_hi; then
2279                           ac_lo= ac_hi=
2280                           break
2281                         fi
2282                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285   done
2286 else
2287   ac_lo= ac_hi=
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 # Binary search between lo and hi bounds.
2293 while test "x$ac_lo" != "x$ac_hi"; do
2294   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
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) <= $ac_mid)];
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=$ac_mid
2311 else
2312   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2313 fi
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 done
2316 case $ac_lo in #((
2317 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2318 '') ac_retval=1 ;;
2319 esac
2320   else
2321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h.  */
2323 $4
2324 static long int longval () { return $2; }
2325 static unsigned long int ulongval () { return $2; }
2326 #include <stdio.h>
2327 #include <stdlib.h>
2328 int
2329 main ()
2330 {
2331
2332   FILE *f = fopen ("conftest.val", "w");
2333   if (! f)
2334     return 1;
2335   if (($2) < 0)
2336     {
2337       long int i = longval ();
2338       if (i != ($2))
2339         return 1;
2340       fprintf (f, "%ld", i);
2341     }
2342   else
2343     {
2344       unsigned long int i = ulongval ();
2345       if (i != ($2))
2346         return 1;
2347       fprintf (f, "%lu", i);
2348     }
2349   /* Do not output a trailing newline, as this causes \r\n confusion
2350      on some platforms.  */
2351   return ferror (f) || fclose (f) != 0;
2352
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 if ac_fn_c_try_run "$LINENO"; then :
2358   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2359 else
2360   ac_retval=1
2361 fi
2362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2363   conftest.$ac_objext conftest.beam conftest.$ac_ext
2364 rm -f conftest.val
2365
2366   fi
2367   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368   as_fn_set_status $ac_retval
2369
2370 } # ac_fn_c_compute_int
2371
2372 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2373 # ---------------------------------------------------------
2374 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2375 # the include files in INCLUDES and setting the cache variable VAR
2376 # accordingly.
2377 ac_fn_cxx_check_header_mongrel ()
2378 {
2379   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380   if eval \${$3+:} false; then :
2381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2382 $as_echo_n "checking for $2... " >&6; }
2383 if eval \${$3+:} false; then :
2384   $as_echo_n "(cached) " >&6
2385 fi
2386 eval ac_res=\$$3
2387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 else
2390   # Is the header compilable?
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2392 $as_echo_n "checking $2 usability... " >&6; }
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h.  */
2395 $4
2396 #include <$2>
2397 _ACEOF
2398 if ac_fn_cxx_try_compile "$LINENO"; then :
2399   ac_header_compiler=yes
2400 else
2401   ac_header_compiler=no
2402 fi
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2405 $as_echo "$ac_header_compiler" >&6; }
2406
2407 # Is the header present?
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2409 $as_echo_n "checking $2 presence... " >&6; }
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 #include <$2>
2413 _ACEOF
2414 if ac_fn_cxx_try_cpp "$LINENO"; then :
2415   ac_header_preproc=yes
2416 else
2417   ac_header_preproc=no
2418 fi
2419 rm -f conftest.err conftest.i conftest.$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2421 $as_echo "$ac_header_preproc" >&6; }
2422
2423 # So?  What about this header?
2424 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2425   yes:no: )
2426     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2427 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2428     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2429 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2430     ;;
2431   no:yes:* )
2432     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2433 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2434     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2435 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2436     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2437 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2438     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2439 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2440     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2441 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2442 ( $as_echo "## ------------------------------------------------------------ ##
2443 ## Report this to https://github.com/behdad/harfbuzz/issues/new ##
2444 ## ------------------------------------------------------------ ##"
2445      ) | sed "s/^/$as_me: WARNING:     /" >&2
2446     ;;
2447 esac
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449 $as_echo_n "checking for $2... " >&6; }
2450 if eval \${$3+:} false; then :
2451   $as_echo_n "(cached) " >&6
2452 else
2453   eval "$3=\$ac_header_compiler"
2454 fi
2455 eval ac_res=\$$3
2456                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458 fi
2459   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460
2461 } # ac_fn_cxx_check_header_mongrel
2462
2463 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2464 # -------------------------------------------
2465 # Tests whether TYPE exists after having included INCLUDES, setting cache
2466 # variable VAR accordingly.
2467 ac_fn_c_check_type ()
2468 {
2469   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if eval \${$3+:} false; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   eval "$3=no"
2476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h.  */
2478 $4
2479 int
2480 main ()
2481 {
2482 if (sizeof ($2))
2483          return 0;
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 if ac_fn_c_try_compile "$LINENO"; then :
2489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h.  */
2491 $4
2492 int
2493 main ()
2494 {
2495 if (sizeof (($2)))
2496             return 0;
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 if ac_fn_c_try_compile "$LINENO"; then :
2502
2503 else
2504   eval "$3=yes"
2505 fi
2506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 fi
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 fi
2510 eval ac_res=\$$3
2511                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2514
2515 } # ac_fn_c_check_type
2516 cat >config.log <<_ACEOF
2517 This file contains any messages produced by compilers while
2518 running configure, to aid debugging if configure makes a mistake.
2519
2520 It was created by HarfBuzz $as_me 1.3.0, which was
2521 generated by GNU Autoconf 2.69.  Invocation command line was
2522
2523   $ $0 $@
2524
2525 _ACEOF
2526 exec 5>>config.log
2527 {
2528 cat <<_ASUNAME
2529 ## --------- ##
2530 ## Platform. ##
2531 ## --------- ##
2532
2533 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2534 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2535 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2536 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2537 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2538
2539 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2540 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2541
2542 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2543 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2544 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2545 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2546 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2547 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2548 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2549
2550 _ASUNAME
2551
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557     $as_echo "PATH: $as_dir"
2558   done
2559 IFS=$as_save_IFS
2560
2561 } >&5
2562
2563 cat >&5 <<_ACEOF
2564
2565
2566 ## ----------- ##
2567 ## Core tests. ##
2568 ## ----------- ##
2569
2570 _ACEOF
2571
2572
2573 # Keep a trace of the command line.
2574 # Strip out --no-create and --no-recursion so they do not pile up.
2575 # Strip out --silent because we don't want to record it for future runs.
2576 # Also quote any args containing shell meta-characters.
2577 # Make two passes to allow for proper duplicate-argument suppression.
2578 ac_configure_args=
2579 ac_configure_args0=
2580 ac_configure_args1=
2581 ac_must_keep_next=false
2582 for ac_pass in 1 2
2583 do
2584   for ac_arg
2585   do
2586     case $ac_arg in
2587     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2588     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2589     | -silent | --silent | --silen | --sile | --sil)
2590       continue ;;
2591     *\'*)
2592       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2593     esac
2594     case $ac_pass in
2595     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2596     2)
2597       as_fn_append ac_configure_args1 " '$ac_arg'"
2598       if test $ac_must_keep_next = true; then
2599         ac_must_keep_next=false # Got value, back to normal.
2600       else
2601         case $ac_arg in
2602           *=* | --config-cache | -C | -disable-* | --disable-* \
2603           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2604           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2605           | -with-* | --with-* | -without-* | --without-* | --x)
2606             case "$ac_configure_args0 " in
2607               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2608             esac
2609             ;;
2610           -* ) ac_must_keep_next=true ;;
2611         esac
2612       fi
2613       as_fn_append ac_configure_args " '$ac_arg'"
2614       ;;
2615     esac
2616   done
2617 done
2618 { ac_configure_args0=; unset ac_configure_args0;}
2619 { ac_configure_args1=; unset ac_configure_args1;}
2620
2621 # When interrupted or exit'd, cleanup temporary files, and complete
2622 # config.log.  We remove comments because anyway the quotes in there
2623 # would cause problems or look ugly.
2624 # WARNING: Use '\'' to represent an apostrophe within the trap.
2625 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2626 trap 'exit_status=$?
2627   # Save into config.log some information that might help in debugging.
2628   {
2629     echo
2630
2631     $as_echo "## ---------------- ##
2632 ## Cache variables. ##
2633 ## ---------------- ##"
2634     echo
2635     # The following way of writing the cache mishandles newlines in values,
2636 (
2637   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2638     eval ac_val=\$$ac_var
2639     case $ac_val in #(
2640     *${as_nl}*)
2641       case $ac_var in #(
2642       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2643 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2644       esac
2645       case $ac_var in #(
2646       _ | IFS | as_nl) ;; #(
2647       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2648       *) { eval $ac_var=; unset $ac_var;} ;;
2649       esac ;;
2650     esac
2651   done
2652   (set) 2>&1 |
2653     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2654     *${as_nl}ac_space=\ *)
2655       sed -n \
2656         "s/'\''/'\''\\\\'\'''\''/g;
2657           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2658       ;; #(
2659     *)
2660       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2661       ;;
2662     esac |
2663     sort
2664 )
2665     echo
2666
2667     $as_echo "## ----------------- ##
2668 ## Output variables. ##
2669 ## ----------------- ##"
2670     echo
2671     for ac_var in $ac_subst_vars
2672     do
2673       eval ac_val=\$$ac_var
2674       case $ac_val in
2675       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2676       esac
2677       $as_echo "$ac_var='\''$ac_val'\''"
2678     done | sort
2679     echo
2680
2681     if test -n "$ac_subst_files"; then
2682       $as_echo "## ------------------- ##
2683 ## File substitutions. ##
2684 ## ------------------- ##"
2685       echo
2686       for ac_var in $ac_subst_files
2687       do
2688         eval ac_val=\$$ac_var
2689         case $ac_val in
2690         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2691         esac
2692         $as_echo "$ac_var='\''$ac_val'\''"
2693       done | sort
2694       echo
2695     fi
2696
2697     if test -s confdefs.h; then
2698       $as_echo "## ----------- ##
2699 ## confdefs.h. ##
2700 ## ----------- ##"
2701       echo
2702       cat confdefs.h
2703       echo
2704     fi
2705     test "$ac_signal" != 0 &&
2706       $as_echo "$as_me: caught signal $ac_signal"
2707     $as_echo "$as_me: exit $exit_status"
2708   } >&5
2709   rm -f core *.core core.conftest.* &&
2710     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2711     exit $exit_status
2712 ' 0
2713 for ac_signal in 1 2 13 15; do
2714   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2715 done
2716 ac_signal=0
2717
2718 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2719 rm -f -r conftest* confdefs.h
2720
2721 $as_echo "/* confdefs.h */" > confdefs.h
2722
2723 # Predefined preprocessor variables.
2724
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_NAME "$PACKAGE_NAME"
2727 _ACEOF
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2731 _ACEOF
2732
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2735 _ACEOF
2736
2737 cat >>confdefs.h <<_ACEOF
2738 #define PACKAGE_STRING "$PACKAGE_STRING"
2739 _ACEOF
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2743 _ACEOF
2744
2745 cat >>confdefs.h <<_ACEOF
2746 #define PACKAGE_URL "$PACKAGE_URL"
2747 _ACEOF
2748
2749
2750 # Let the site file select an alternate cache file if it wants to.
2751 # Prefer an explicitly selected file to automatically selected ones.
2752 ac_site_file1=NONE
2753 ac_site_file2=NONE
2754 if test -n "$CONFIG_SITE"; then
2755   # We do not want a PATH search for config.site.
2756   case $CONFIG_SITE in #((
2757     -*)  ac_site_file1=./$CONFIG_SITE;;
2758     */*) ac_site_file1=$CONFIG_SITE;;
2759     *)   ac_site_file1=./$CONFIG_SITE;;
2760   esac
2761 elif test "x$prefix" != xNONE; then
2762   ac_site_file1=$prefix/share/config.site
2763   ac_site_file2=$prefix/etc/config.site
2764 else
2765   ac_site_file1=$ac_default_prefix/share/config.site
2766   ac_site_file2=$ac_default_prefix/etc/config.site
2767 fi
2768 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2769 do
2770   test "x$ac_site_file" = xNONE && continue
2771   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2772     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2773 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2774     sed 's/^/| /' "$ac_site_file" >&5
2775     . "$ac_site_file" \
2776       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778 as_fn_error $? "failed to load site script $ac_site_file
2779 See \`config.log' for more details" "$LINENO" 5; }
2780   fi
2781 done
2782
2783 if test -r "$cache_file"; then
2784   # Some versions of bash will fail to source /dev/null (special files
2785   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2786   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2787     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2788 $as_echo "$as_me: loading cache $cache_file" >&6;}
2789     case $cache_file in
2790       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2791       *)                      . "./$cache_file";;
2792     esac
2793   fi
2794 else
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2796 $as_echo "$as_me: creating cache $cache_file" >&6;}
2797   >$cache_file
2798 fi
2799
2800 # Check that the precious variables saved in the cache have kept the same
2801 # value.
2802 ac_cache_corrupted=false
2803 for ac_var in $ac_precious_vars; do
2804   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2805   eval ac_new_set=\$ac_env_${ac_var}_set
2806   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2807   eval ac_new_val=\$ac_env_${ac_var}_value
2808   case $ac_old_set,$ac_new_set in
2809     set,)
2810       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2811 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2812       ac_cache_corrupted=: ;;
2813     ,set)
2814       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2815 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2816       ac_cache_corrupted=: ;;
2817     ,);;
2818     *)
2819       if test "x$ac_old_val" != "x$ac_new_val"; then
2820         # differences in whitespace do not lead to failure.
2821         ac_old_val_w=`echo x $ac_old_val`
2822         ac_new_val_w=`echo x $ac_new_val`
2823         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2824           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2825 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2826           ac_cache_corrupted=:
2827         else
2828           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2829 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2830           eval $ac_var=\$ac_old_val
2831         fi
2832         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2833 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2834         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2835 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2836       fi;;
2837   esac
2838   # Pass precious variables to config.status.
2839   if test "$ac_new_set" = set; then
2840     case $ac_new_val in
2841     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2842     *) ac_arg=$ac_var=$ac_new_val ;;
2843     esac
2844     case " $ac_configure_args " in
2845       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2846       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2847     esac
2848   fi
2849 done
2850 if $ac_cache_corrupted; then
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2854 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2855   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2856 fi
2857 ## -------------------- ##
2858 ## Main body of script. ##
2859 ## -------------------- ##
2860
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867
2868
2869
2870
2871 ac_config_headers="$ac_config_headers config.h"
2872
2873
2874 am__api_version='1.14'
2875
2876 ac_aux_dir=
2877 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2878   if test -f "$ac_dir/install-sh"; then
2879     ac_aux_dir=$ac_dir
2880     ac_install_sh="$ac_aux_dir/install-sh -c"
2881     break
2882   elif test -f "$ac_dir/install.sh"; then
2883     ac_aux_dir=$ac_dir
2884     ac_install_sh="$ac_aux_dir/install.sh -c"
2885     break
2886   elif test -f "$ac_dir/shtool"; then
2887     ac_aux_dir=$ac_dir
2888     ac_install_sh="$ac_aux_dir/shtool install -c"
2889     break
2890   fi
2891 done
2892 if test -z "$ac_aux_dir"; then
2893   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2894 fi
2895
2896 # These three variables are undocumented and unsupported,
2897 # and are intended to be withdrawn in a future Autoconf release.
2898 # They can cause serious problems if a builder's source tree is in a directory
2899 # whose full name contains unusual characters.
2900 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2901 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2902 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2903
2904
2905 # Find a good install program.  We prefer a C program (faster),
2906 # so one script is as good as another.  But avoid the broken or
2907 # incompatible versions:
2908 # SysV /etc/install, /usr/sbin/install
2909 # SunOS /usr/etc/install
2910 # IRIX /sbin/install
2911 # AIX /bin/install
2912 # AmigaOS /C/install, which installs bootblocks on floppy discs
2913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2916 # OS/2's system install, which has a completely different semantic
2917 # ./install, which can be erroneously created by make from ./install.sh.
2918 # Reject install programs that cannot install multiple files.
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2920 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2921 if test -z "$INSTALL"; then
2922 if ${ac_cv_path_install+:} false; then :
2923   $as_echo_n "(cached) " >&6
2924 else
2925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928   IFS=$as_save_IFS
2929   test -z "$as_dir" && as_dir=.
2930     # Account for people who put trailing slashes in PATH elements.
2931 case $as_dir/ in #((
2932   ./ | .// | /[cC]/* | \
2933   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2934   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2935   /usr/ucb/* ) ;;
2936   *)
2937     # OSF1 and SCO ODT 3.0 have their own names for install.
2938     # Don't use installbsd from OSF since it installs stuff as root
2939     # by default.
2940     for ac_prog in ginstall scoinst install; do
2941       for ac_exec_ext in '' $ac_executable_extensions; do
2942         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2943           if test $ac_prog = install &&
2944             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2945             # AIX install.  It has an incompatible calling convention.
2946             :
2947           elif test $ac_prog = install &&
2948             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2949             # program-specific install script used by HP pwplus--don't use.
2950             :
2951           else
2952             rm -rf conftest.one conftest.two conftest.dir
2953             echo one > conftest.one
2954             echo two > conftest.two
2955             mkdir conftest.dir
2956             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2957               test -s conftest.one && test -s conftest.two &&
2958               test -s conftest.dir/conftest.one &&
2959               test -s conftest.dir/conftest.two
2960             then
2961               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2962               break 3
2963             fi
2964           fi
2965         fi
2966       done
2967     done
2968     ;;
2969 esac
2970
2971   done
2972 IFS=$as_save_IFS
2973
2974 rm -rf conftest.one conftest.two conftest.dir
2975
2976 fi
2977   if test "${ac_cv_path_install+set}" = set; then
2978     INSTALL=$ac_cv_path_install
2979   else
2980     # As a last resort, use the slow shell script.  Don't cache a
2981     # value for INSTALL within a source directory, because that will
2982     # break other packages using the cache if that directory is
2983     # removed, or if the value is a relative name.
2984     INSTALL=$ac_install_sh
2985   fi
2986 fi
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2988 $as_echo "$INSTALL" >&6; }
2989
2990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2991 # It thinks the first close brace ends the variable substitution.
2992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2993
2994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2995
2996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2997
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2999 $as_echo_n "checking whether build environment is sane... " >&6; }
3000 # Reject unsafe characters in $srcdir or the absolute working directory
3001 # name.  Accept space and tab only in the latter.
3002 am_lf='
3003 '
3004 case `pwd` in
3005   *[\\\"\#\$\&\'\`$am_lf]*)
3006     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3007 esac
3008 case $srcdir in
3009   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3010     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3011 esac
3012
3013 # Do 'set' in a subshell so we don't clobber the current shell's
3014 # arguments.  Must try -L first in case configure is actually a
3015 # symlink; some systems play weird games with the mod time of symlinks
3016 # (eg FreeBSD returns the mod time of the symlink's containing
3017 # directory).
3018 if (
3019    am_has_slept=no
3020    for am_try in 1 2; do
3021      echo "timestamp, slept: $am_has_slept" > conftest.file
3022      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3023      if test "$*" = "X"; then
3024         # -L didn't work.
3025         set X `ls -t "$srcdir/configure" conftest.file`
3026      fi
3027      if test "$*" != "X $srcdir/configure conftest.file" \
3028         && test "$*" != "X conftest.file $srcdir/configure"; then
3029
3030         # If neither matched, then we have a broken ls.  This can happen
3031         # if, for instance, CONFIG_SHELL is bash and it inherits a
3032         # broken ls alias from the environment.  This has actually
3033         # happened.  Such a system could not be considered "sane".
3034         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3035   alias in your environment" "$LINENO" 5
3036      fi
3037      if test "$2" = conftest.file || test $am_try -eq 2; then
3038        break
3039      fi
3040      # Just in case.
3041      sleep 1
3042      am_has_slept=yes
3043    done
3044    test "$2" = conftest.file
3045    )
3046 then
3047    # Ok.
3048    :
3049 else
3050    as_fn_error $? "newly created file is older than distributed files!
3051 Check your system clock" "$LINENO" 5
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054 $as_echo "yes" >&6; }
3055 # If we didn't sleep, we still need to ensure time stamps of config.status and
3056 # generated files are strictly newer.
3057 am_sleep_pid=
3058 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3059   ( sleep 1 ) &
3060   am_sleep_pid=$!
3061 fi
3062
3063 rm -f conftest.file
3064
3065 test "$program_prefix" != NONE &&
3066   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3067 # Use a double $ so make ignores it.
3068 test "$program_suffix" != NONE &&
3069   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3070 # Double any \ or $.
3071 # By default was `s,x,x', remove it if useless.
3072 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3073 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3074
3075 # expand $ac_aux_dir to an absolute path
3076 am_aux_dir=`cd $ac_aux_dir && pwd`
3077
3078 if test x"${MISSING+set}" != xset; then
3079   case $am_aux_dir in
3080   *\ * | *\     *)
3081     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3082   *)
3083     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3084   esac
3085 fi
3086 # Use eval to expand $SHELL
3087 if eval "$MISSING --is-lightweight"; then
3088   am_missing_run="$MISSING "
3089 else
3090   am_missing_run=
3091   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3092 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3093 fi
3094
3095 if test x"${install_sh}" != xset; then
3096   case $am_aux_dir in
3097   *\ * | *\     *)
3098     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3099   *)
3100     install_sh="\${SHELL} $am_aux_dir/install-sh"
3101   esac
3102 fi
3103
3104 # Installed binaries are usually stripped using 'strip' when the user
3105 # run "make install-strip".  However 'strip' might not be the right
3106 # tool to use in cross-compilation environments, therefore Automake
3107 # will honor the 'STRIP' environment variable to overrule this program.
3108 if test "$cross_compiling" != no; then
3109   if test -n "$ac_tool_prefix"; then
3110   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}strip; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_STRIP+:} false; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   if test -n "$STRIP"; then
3118   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125     for ac_exec_ext in '' $ac_executable_extensions; do
3126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 STRIP=$ac_cv_prog_STRIP
3138 if test -n "$STRIP"; then
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3140 $as_echo "$STRIP" >&6; }
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 if test -z "$ac_cv_prog_STRIP"; then
3149   ac_ct_STRIP=$STRIP
3150   # Extract the first word of "strip", so it can be a program name with args.
3151 set dummy strip; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$ac_ct_STRIP"; then
3158   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167     ac_cv_prog_ac_ct_STRIP="strip"
3168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3178 if test -n "$ac_ct_STRIP"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3180 $as_echo "$ac_ct_STRIP" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186   if test "x$ac_ct_STRIP" = x; then
3187     STRIP=":"
3188   else
3189     case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195     STRIP=$ac_ct_STRIP
3196   fi
3197 else
3198   STRIP="$ac_cv_prog_STRIP"
3199 fi
3200
3201 fi
3202 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3203
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3205 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3206 if test -z "$MKDIR_P"; then
3207   if ${ac_cv_path_mkdir+:} false; then :
3208   $as_echo_n "(cached) " >&6
3209 else
3210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215     for ac_prog in mkdir gmkdir; do
3216          for ac_exec_ext in '' $ac_executable_extensions; do
3217            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3218            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3219              'mkdir (GNU coreutils) '* | \
3220              'mkdir (coreutils) '* | \
3221              'mkdir (fileutils) '4.1*)
3222                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3223                break 3;;
3224            esac
3225          done
3226        done
3227   done
3228 IFS=$as_save_IFS
3229
3230 fi
3231
3232   test -d ./--version && rmdir ./--version
3233   if test "${ac_cv_path_mkdir+set}" = set; then
3234     MKDIR_P="$ac_cv_path_mkdir -p"
3235   else
3236     # As a last resort, use the slow shell script.  Don't cache a
3237     # value for MKDIR_P within a source directory, because that will
3238     # break other packages using the cache if that directory is
3239     # removed, or if the value is a relative name.
3240     MKDIR_P="$ac_install_sh -d"
3241   fi
3242 fi
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3244 $as_echo "$MKDIR_P" >&6; }
3245
3246 for ac_prog in gawk mawk nawk awk
3247 do
3248   # Extract the first word of "$ac_prog", so it can be a program name with args.
3249 set dummy $ac_prog; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_AWK+:} false; then :
3253   $as_echo_n "(cached) " >&6
3254 else
3255   if test -n "$AWK"; then
3256   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261   IFS=$as_save_IFS
3262   test -z "$as_dir" && as_dir=.
3263     for ac_exec_ext in '' $ac_executable_extensions; do
3264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265     ac_cv_prog_AWK="$ac_prog"
3266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267     break 2
3268   fi
3269 done
3270   done
3271 IFS=$as_save_IFS
3272
3273 fi
3274 fi
3275 AWK=$ac_cv_prog_AWK
3276 if test -n "$AWK"; then
3277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3278 $as_echo "$AWK" >&6; }
3279 else
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 fi
3283
3284
3285   test -n "$AWK" && break
3286 done
3287
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3289 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3290 set x ${MAKE-make}
3291 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3292 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3293   $as_echo_n "(cached) " >&6
3294 else
3295   cat >conftest.make <<\_ACEOF
3296 SHELL = /bin/sh
3297 all:
3298         @echo '@@@%%%=$(MAKE)=@@@%%%'
3299 _ACEOF
3300 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3301 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3302   *@@@%%%=?*=@@@%%%*)
3303     eval ac_cv_prog_make_${ac_make}_set=yes;;
3304   *)
3305     eval ac_cv_prog_make_${ac_make}_set=no;;
3306 esac
3307 rm -f conftest.make
3308 fi
3309 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3312   SET_MAKE=
3313 else
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316   SET_MAKE="MAKE=${MAKE-make}"
3317 fi
3318
3319 rm -rf .tst 2>/dev/null
3320 mkdir .tst 2>/dev/null
3321 if test -d .tst; then
3322   am__leading_dot=.
3323 else
3324   am__leading_dot=_
3325 fi
3326 rmdir .tst 2>/dev/null
3327
3328 # Check whether --enable-silent-rules was given.
3329 if test "${enable_silent_rules+set}" = set; then :
3330   enableval=$enable_silent_rules;
3331 fi
3332
3333 case $enable_silent_rules in # (((
3334   yes) AM_DEFAULT_VERBOSITY=0;;
3335    no) AM_DEFAULT_VERBOSITY=1;;
3336     *) AM_DEFAULT_VERBOSITY=1;;
3337 esac
3338 am_make=${MAKE-make}
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3340 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3341 if ${am_cv_make_support_nested_variables+:} false; then :
3342   $as_echo_n "(cached) " >&6
3343 else
3344   if $as_echo 'TRUE=$(BAR$(V))
3345 BAR0=false
3346 BAR1=true
3347 V=1
3348 am__doit:
3349         @$(TRUE)
3350 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3351   am_cv_make_support_nested_variables=yes
3352 else
3353   am_cv_make_support_nested_variables=no
3354 fi
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3357 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3358 if test $am_cv_make_support_nested_variables = yes; then
3359     AM_V='$(V)'
3360   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3361 else
3362   AM_V=$AM_DEFAULT_VERBOSITY
3363   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3364 fi
3365 AM_BACKSLASH='\'
3366
3367 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3368   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3369   # is not polluted with repeated "-I."
3370   am__isrc=' -I$(srcdir)'
3371   # test to see if srcdir already configured
3372   if test -f $srcdir/config.status; then
3373     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3374   fi
3375 fi
3376
3377 # test whether we have cygpath
3378 if test -z "$CYGPATH_W"; then
3379   if (cygpath --version) >/dev/null 2>/dev/null; then
3380     CYGPATH_W='cygpath -w'
3381   else
3382     CYGPATH_W=echo
3383   fi
3384 fi
3385
3386
3387 # Define the identity of the package.
3388  PACKAGE='harfbuzz'
3389  VERSION='1.3.0'
3390
3391
3392 # Some tools Automake needs.
3393
3394 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3395
3396
3397 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3398
3399
3400 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3401
3402
3403 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3404
3405
3406 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3407
3408 # For better backward compatibility.  To be removed once Automake 1.9.x
3409 # dies out for good.  For more background, see:
3410 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3411 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3412 mkdir_p='$(MKDIR_P)'
3413
3414 # We need awk for the "check" target.  The system "awk" is bad on
3415 # some platforms.
3416 # Always define AMTAR for backward compatibility.  Yes, it's still used
3417 # in the wild :-(  We should find a proper way to deprecate it ...
3418 AMTAR='$${TAR-tar}'
3419
3420
3421 # We'll loop over all known methods to create a tar archive until one works.
3422 _am_tools='gnutar plaintar pax cpio none'
3423
3424 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3425       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3426       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3427       # and bug#13588).
3428       am_max_uid=2097151 # 2^21 - 1
3429       am_max_gid=$am_max_uid
3430       # The $UID and $GID variables are not portable, so we need to resort
3431       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3432       # below are definitely unexpected, so allow the users to see them
3433       # (that is, avoid stderr redirection).
3434       am_uid=`id -u || echo unknown`
3435       am_gid=`id -g || echo unknown`
3436       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3437 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3438       if test $am_uid -le $am_max_uid; then
3439          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 $as_echo "yes" >&6; }
3441       else
3442          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444          _am_tools=none
3445       fi
3446       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3447 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3448       if test $am_gid -le $am_max_gid; then
3449          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3450 $as_echo "yes" >&6; }
3451       else
3452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454         _am_tools=none
3455       fi
3456
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3458 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3459
3460   # Go ahead even if we have the value already cached.  We do so because we
3461   # need to set the values for the 'am__tar' and 'am__untar' variables.
3462   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3463
3464   for _am_tool in $_am_tools; do
3465     case $_am_tool in
3466     gnutar)
3467       for _am_tar in tar gnutar gtar; do
3468         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3469    ($_am_tar --version) >&5 2>&5
3470    ac_status=$?
3471    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472    (exit $ac_status); } && break
3473       done
3474       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3475       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3476       am__untar="$_am_tar -xf -"
3477       ;;
3478     plaintar)
3479       # Must skip GNU tar: if it does not support --format= it doesn't create
3480       # ustar tarball either.
3481       (tar --version) >/dev/null 2>&1 && continue
3482       am__tar='tar chf - "$$tardir"'
3483       am__tar_='tar chf - "$tardir"'
3484       am__untar='tar xf -'
3485       ;;
3486     pax)
3487       am__tar='pax -L -x ustar -w "$$tardir"'
3488       am__tar_='pax -L -x ustar -w "$tardir"'
3489       am__untar='pax -r'
3490       ;;
3491     cpio)
3492       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3493       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3494       am__untar='cpio -i -H ustar -d'
3495       ;;
3496     none)
3497       am__tar=false
3498       am__tar_=false
3499       am__untar=false
3500       ;;
3501     esac
3502
3503     # If the value was cached, stop now.  We just wanted to have am__tar
3504     # and am__untar set.
3505     test -n "${am_cv_prog_tar_ustar}" && break
3506
3507     # tar/untar a dummy directory, and stop if the command works.
3508     rm -rf conftest.dir
3509     mkdir conftest.dir
3510     echo GrepMe > conftest.dir/file
3511     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3512    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3513    ac_status=$?
3514    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515    (exit $ac_status); }
3516     rm -rf conftest.dir
3517     if test -s conftest.tar; then
3518       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3519    ($am__untar <conftest.tar) >&5 2>&5
3520    ac_status=$?
3521    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522    (exit $ac_status); }
3523       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3524    (cat conftest.dir/file) >&5 2>&5
3525    ac_status=$?
3526    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527    (exit $ac_status); }
3528       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3529     fi
3530   done
3531   rm -rf conftest.dir
3532
3533   if ${am_cv_prog_tar_ustar+:} false; then :
3534   $as_echo_n "(cached) " >&6
3535 else
3536   am_cv_prog_tar_ustar=$_am_tool
3537 fi
3538
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3540 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3541
3542
3543
3544
3545
3546
3547 # POSIX will say in a future version that running "rm -f" with no argument
3548 # is OK; and we want to be able to make that assumption in our Makefile
3549 # recipes.  So use an aggressive probe to check that the usage we want is
3550 # actually supported "in the wild" to an acceptable degree.
3551 # See automake bug#10828.
3552 # To make any issue more visible, cause the running configure to be aborted
3553 # by default if the 'rm' program in use doesn't match our expectations; the
3554 # user can still override this though.
3555 if rm -f && rm -fr && rm -rf; then : OK; else
3556   cat >&2 <<'END'
3557 Oops!
3558
3559 Your 'rm' program seems unable to run without file operands specified
3560 on the command line, even when the '-f' option is present.  This is contrary
3561 to the behaviour of most rm programs out there, and not conforming with
3562 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3563
3564 Please tell bug-automake@gnu.org about your system, including the value
3565 of your $PATH and any error possibly output before this message.  This
3566 can help us improve future automake versions.
3567
3568 END
3569   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3570     echo 'Configuration will proceed anyway, since you have set the' >&2
3571     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3572     echo >&2
3573   else
3574     cat >&2 <<'END'
3575 Aborting the configuration process, to ensure you take notice of the issue.
3576
3577 You can download and install GNU coreutils to get an 'rm' implementation
3578 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3579
3580 If you want to complete the configuration process using your problematic
3581 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3582 to "yes", and re-run configure.
3583
3584 END
3585     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3586   fi
3587 fi
3588  if test $am__api_version = 1.11 -o $am__api_version = 1.12; then
3589   AUTOMAKE_OLDER_THAN_1_13_TRUE=
3590   AUTOMAKE_OLDER_THAN_1_13_FALSE='#'
3591 else
3592   AUTOMAKE_OLDER_THAN_1_13_TRUE='#'
3593   AUTOMAKE_OLDER_THAN_1_13_FALSE=
3594 fi
3595
3596 # Check whether --enable-silent-rules was given.
3597 if test "${enable_silent_rules+set}" = set; then :
3598   enableval=$enable_silent_rules;
3599 fi
3600
3601 case $enable_silent_rules in # (((
3602   yes) AM_DEFAULT_VERBOSITY=0;;
3603    no) AM_DEFAULT_VERBOSITY=1;;
3604     *) AM_DEFAULT_VERBOSITY=0;;
3605 esac
3606 am_make=${MAKE-make}
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3608 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3609 if ${am_cv_make_support_nested_variables+:} false; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   if $as_echo 'TRUE=$(BAR$(V))
3613 BAR0=false
3614 BAR1=true
3615 V=1
3616 am__doit:
3617         @$(TRUE)
3618 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3619   am_cv_make_support_nested_variables=yes
3620 else
3621   am_cv_make_support_nested_variables=no
3622 fi
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3625 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3626 if test $am_cv_make_support_nested_variables = yes; then
3627     AM_V='$(V)'
3628   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3629 else
3630   AM_V=$AM_DEFAULT_VERBOSITY
3631   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3632 fi
3633 AM_BACKSLASH='\'
3634
3635
3636 # Initialize libtool
3637 DEPDIR="${am__leading_dot}deps"
3638
3639 ac_config_commands="$ac_config_commands depfiles"
3640
3641
3642 am_make=${MAKE-make}
3643 cat > confinc << 'END'
3644 am__doit:
3645         @echo this is the am__doit target
3646 .PHONY: am__doit
3647 END
3648 # If we don't find an include directive, just comment out the code.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3650 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3651 am__include="#"
3652 am__quote=
3653 _am_result=none
3654 # First try GNU make style include.
3655 echo "include confinc" > confmf
3656 # Ignore all kinds of additional output from 'make'.
3657 case `$am_make -s -f confmf 2> /dev/null` in #(
3658 *the\ am__doit\ target*)
3659   am__include=include
3660   am__quote=
3661   _am_result=GNU
3662   ;;
3663 esac
3664 # Now try BSD make style include.
3665 if test "$am__include" = "#"; then
3666    echo '.include "confinc"' > confmf
3667    case `$am_make -s -f confmf 2> /dev/null` in #(
3668    *the\ am__doit\ target*)
3669      am__include=.include
3670      am__quote="\""
3671      _am_result=BSD
3672      ;;
3673    esac
3674 fi
3675
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3678 $as_echo "$_am_result" >&6; }
3679 rm -f confinc confmf
3680
3681 # Check whether --enable-dependency-tracking was given.
3682 if test "${enable_dependency_tracking+set}" = set; then :
3683   enableval=$enable_dependency_tracking;
3684 fi
3685
3686 if test "x$enable_dependency_tracking" != xno; then
3687   am_depcomp="$ac_aux_dir/depcomp"
3688   AMDEPBACKSLASH='\'
3689   am__nodep='_no'
3690 fi
3691  if test "x$enable_dependency_tracking" != xno; then
3692   AMDEP_TRUE=
3693   AMDEP_FALSE='#'
3694 else
3695   AMDEP_TRUE='#'
3696   AMDEP_FALSE=
3697 fi
3698
3699
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 if test -n "$ac_tool_prefix"; then
3706   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3707 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_CC+:} false; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   if test -n "$CC"; then
3714   ac_cv_prog_CC="$CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721     for ac_exec_ext in '' $ac_executable_extensions; do
3722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728   done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3741
3742
3743 fi
3744 if test -z "$ac_cv_prog_CC"; then
3745   ac_ct_CC=$CC
3746   # Extract the first word of "gcc", so it can be a program name with args.
3747 set dummy gcc; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3751   $as_echo_n "(cached) " >&6
3752 else
3753   if test -n "$ac_ct_CC"; then
3754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759   IFS=$as_save_IFS
3760   test -z "$as_dir" && as_dir=.
3761     for ac_exec_ext in '' $ac_executable_extensions; do
3762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763     ac_cv_prog_ac_ct_CC="gcc"
3764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765     break 2
3766   fi
3767 done
3768   done
3769 IFS=$as_save_IFS
3770
3771 fi
3772 fi
3773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3774 if test -n "$ac_ct_CC"; then
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776 $as_echo "$ac_ct_CC" >&6; }
3777 else
3778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 fi
3781
3782   if test "x$ac_ct_CC" = x; then
3783     CC=""
3784   else
3785     case $cross_compiling:$ac_tool_warned in
3786 yes:)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3790 esac
3791     CC=$ac_ct_CC
3792   fi
3793 else
3794   CC="$ac_cv_prog_CC"
3795 fi
3796
3797 if test -z "$CC"; then
3798           if test -n "$ac_tool_prefix"; then
3799     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3800 set dummy ${ac_tool_prefix}cc; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_CC+:} false; then :
3804   $as_echo_n "(cached) " >&6
3805 else
3806   if test -n "$CC"; then
3807   ac_cv_prog_CC="$CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814     for ac_exec_ext in '' $ac_executable_extensions; do
3815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_prog_CC="${ac_tool_prefix}cc"
3817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821   done
3822 IFS=$as_save_IFS
3823
3824 fi
3825 fi
3826 CC=$ac_cv_prog_CC
3827 if test -n "$CC"; then
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829 $as_echo "$CC" >&6; }
3830 else
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835
3836   fi
3837 fi
3838 if test -z "$CC"; then
3839   # Extract the first word of "cc", so it can be a program name with args.
3840 set dummy cc; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_CC+:} false; then :
3844   $as_echo_n "(cached) " >&6
3845 else
3846   if test -n "$CC"; then
3847   ac_cv_prog_CC="$CC" # Let the user override the test.
3848 else
3849   ac_prog_rejected=no
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853   IFS=$as_save_IFS
3854   test -z "$as_dir" && as_dir=.
3855     for ac_exec_ext in '' $ac_executable_extensions; do
3856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3858        ac_prog_rejected=yes
3859        continue
3860      fi
3861     ac_cv_prog_CC="cc"
3862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863     break 2
3864   fi
3865 done
3866   done
3867 IFS=$as_save_IFS
3868
3869 if test $ac_prog_rejected = yes; then
3870   # We found a bogon in the path, so make sure we never use it.
3871   set dummy $ac_cv_prog_CC
3872   shift
3873   if test $# != 0; then
3874     # We chose a different compiler from the bogus one.
3875     # However, it has the same basename, so the bogon will be chosen
3876     # first if we set CC to just the basename; use the full file name.
3877     shift
3878     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3879   fi
3880 fi
3881 fi
3882 fi
3883 CC=$ac_cv_prog_CC
3884 if test -n "$CC"; then
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3886 $as_echo "$CC" >&6; }
3887 else
3888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3890 fi
3891
3892
3893 fi
3894 if test -z "$CC"; then
3895   if test -n "$ac_tool_prefix"; then
3896   for ac_prog in cl.exe
3897   do
3898     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if ${ac_cv_prog_CC+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   if test -n "$CC"; then
3906   ac_cv_prog_CC="$CC" # Let the user override the test.
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913     for ac_exec_ext in '' $ac_executable_extensions; do
3914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920   done
3921 IFS=$as_save_IFS
3922
3923 fi
3924 fi
3925 CC=$ac_cv_prog_CC
3926 if test -n "$CC"; then
3927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3928 $as_echo "$CC" >&6; }
3929 else
3930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 fi
3933
3934
3935     test -n "$CC" && break
3936   done
3937 fi
3938 if test -z "$CC"; then
3939   ac_ct_CC=$CC
3940   for ac_prog in cl.exe
3941 do
3942   # Extract the first word of "$ac_prog", so it can be a program name with args.
3943 set dummy $ac_prog; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   if test -n "$ac_ct_CC"; then
3950   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955   IFS=$as_save_IFS
3956   test -z "$as_dir" && as_dir=.
3957     for ac_exec_ext in '' $ac_executable_extensions; do
3958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959     ac_cv_prog_ac_ct_CC="$ac_prog"
3960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961     break 2
3962   fi
3963 done
3964   done
3965 IFS=$as_save_IFS
3966
3967 fi
3968 fi
3969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3970 if test -n "$ac_ct_CC"; then
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3972 $as_echo "$ac_ct_CC" >&6; }
3973 else
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 fi
3977
3978
3979   test -n "$ac_ct_CC" && break
3980 done
3981
3982   if test "x$ac_ct_CC" = x; then
3983     CC=""
3984   else
3985     case $cross_compiling:$ac_tool_warned in
3986 yes:)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3990 esac
3991     CC=$ac_ct_CC
3992   fi
3993 fi
3994
3995 fi
3996
3997
3998 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "no acceptable C compiler found in \$PATH
4001 See \`config.log' for more details" "$LINENO" 5; }
4002
4003 # Provide some information about the compiler.
4004 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4005 set X $ac_compile
4006 ac_compiler=$2
4007 for ac_option in --version -v -V -qversion; do
4008   { { ac_try="$ac_compiler $ac_option >&5"
4009 case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4016   ac_status=$?
4017   if test -s conftest.err; then
4018     sed '10a\
4019 ... rest of stderr output deleted ...
4020          10q' conftest.err >conftest.er1
4021     cat conftest.er1 >&5
4022   fi
4023   rm -f conftest.er1 conftest.err
4024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025   test $ac_status = 0; }
4026 done
4027
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h.  */
4030
4031 int
4032 main ()
4033 {
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 ac_clean_files_save=$ac_clean_files
4040 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4041 # Try to create an executable without -o first, disregard a.out.
4042 # It will help us diagnose broken compilers, and finding out an intuition
4043 # of exeext.
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4045 $as_echo_n "checking whether the C compiler works... " >&6; }
4046 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4047
4048 # The possible output files:
4049 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4050
4051 ac_rmfiles=
4052 for ac_file in $ac_files
4053 do
4054   case $ac_file in
4055     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4056     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4057   esac
4058 done
4059 rm -f $ac_rmfiles
4060
4061 if { { ac_try="$ac_link_default"
4062 case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067 $as_echo "$ac_try_echo"; } >&5
4068   (eval "$ac_link_default") 2>&5
4069   ac_status=$?
4070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071   test $ac_status = 0; }; then :
4072   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4073 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4074 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4075 # so that the user can short-circuit this test for compilers unknown to
4076 # Autoconf.
4077 for ac_file in $ac_files ''
4078 do
4079   test -f "$ac_file" || continue
4080   case $ac_file in
4081     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4082         ;;
4083     [ab].out )
4084         # We found the default executable, but exeext='' is most
4085         # certainly right.
4086         break;;
4087     *.* )
4088         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4089         then :; else
4090            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4091         fi
4092         # We set ac_cv_exeext here because the later test for it is not
4093         # safe: cross compilers may not add the suffix if given an `-o'
4094         # argument, so we may need to know it at that point already.
4095         # Even if this section looks crufty: it has the advantage of
4096         # actually working.
4097         break;;
4098     * )
4099         break;;
4100   esac
4101 done
4102 test "$ac_cv_exeext" = no && ac_cv_exeext=
4103
4104 else
4105   ac_file=''
4106 fi
4107 if test -z "$ac_file"; then :
4108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error 77 "C compiler cannot create executables
4116 See \`config.log' for more details" "$LINENO" 5; }
4117 else
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119 $as_echo "yes" >&6; }
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4122 $as_echo_n "checking for C compiler default output file name... " >&6; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4124 $as_echo "$ac_file" >&6; }
4125 ac_exeext=$ac_cv_exeext
4126
4127 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4128 ac_clean_files=$ac_clean_files_save
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4130 $as_echo_n "checking for suffix of executables... " >&6; }
4131 if { { ac_try="$ac_link"
4132 case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137 $as_echo "$ac_try_echo"; } >&5
4138   (eval "$ac_link") 2>&5
4139   ac_status=$?
4140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4141   test $ac_status = 0; }; then :
4142   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4143 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4144 # work properly (i.e., refer to `conftest.exe'), while it won't with
4145 # `rm'.
4146 for ac_file in conftest.exe conftest conftest.*; do
4147   test -f "$ac_file" || continue
4148   case $ac_file in
4149     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4150     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4151           break;;
4152     * ) break;;
4153   esac
4154 done
4155 else
4156   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4159 See \`config.log' for more details" "$LINENO" 5; }
4160 fi
4161 rm -f conftest conftest$ac_cv_exeext
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4163 $as_echo "$ac_cv_exeext" >&6; }
4164
4165 rm -f conftest.$ac_ext
4166 EXEEXT=$ac_cv_exeext
4167 ac_exeext=$EXEEXT
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h.  */
4170 #include <stdio.h>
4171 int
4172 main ()
4173 {
4174 FILE *f = fopen ("conftest.out", "w");
4175  return ferror (f) || fclose (f) != 0;
4176
4177   ;
4178   return 0;
4179 }
4180 _ACEOF
4181 ac_clean_files="$ac_clean_files conftest.out"
4182 # Check that the compiler produces executables we can run.  If not, either
4183 # the compiler is broken, or we cross compile.
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4185 $as_echo_n "checking whether we are cross compiling... " >&6; }
4186 if test "$cross_compiling" != yes; then
4187   { { ac_try="$ac_link"
4188 case "(($ac_try" in
4189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190   *) ac_try_echo=$ac_try;;
4191 esac
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194   (eval "$ac_link") 2>&5
4195   ac_status=$?
4196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197   test $ac_status = 0; }
4198   if { ac_try='./conftest$ac_cv_exeext'
4199   { { case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205   (eval "$ac_try") 2>&5
4206   ac_status=$?
4207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208   test $ac_status = 0; }; }; then
4209     cross_compiling=no
4210   else
4211     if test "$cross_compiling" = maybe; then
4212         cross_compiling=yes
4213     else
4214         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216 as_fn_error $? "cannot run C compiled programs.
4217 If you meant to cross compile, use \`--host'.
4218 See \`config.log' for more details" "$LINENO" 5; }
4219     fi
4220   fi
4221 fi
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4223 $as_echo "$cross_compiling" >&6; }
4224
4225 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4226 ac_clean_files=$ac_clean_files_save
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4228 $as_echo_n "checking for suffix of object files... " >&6; }
4229 if ${ac_cv_objext+:} false; then :
4230   $as_echo_n "(cached) " >&6
4231 else
4232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h.  */
4234
4235 int
4236 main ()
4237 {
4238
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 rm -f conftest.o conftest.obj
4244 if { { ac_try="$ac_compile"
4245 case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251   (eval "$ac_compile") 2>&5
4252   ac_status=$?
4253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254   test $ac_status = 0; }; then :
4255   for ac_file in conftest.o conftest.obj conftest.*; do
4256   test -f "$ac_file" || continue;
4257   case $ac_file in
4258     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4259     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4260        break;;
4261   esac
4262 done
4263 else
4264   $as_echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error $? "cannot compute suffix of object files: cannot compile
4270 See \`config.log' for more details" "$LINENO" 5; }
4271 fi
4272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4275 $as_echo "$ac_cv_objext" >&6; }
4276 OBJEXT=$ac_cv_objext
4277 ac_objext=$OBJEXT
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4279 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4280 if ${ac_cv_c_compiler_gnu+:} false; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h.  */
4285
4286 int
4287 main ()
4288 {
4289 #ifndef __GNUC__
4290        choke me
4291 #endif
4292
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298   ac_compiler_gnu=yes
4299 else
4300   ac_compiler_gnu=no
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4304
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4307 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4308 if test $ac_compiler_gnu = yes; then
4309   GCC=yes
4310 else
4311   GCC=
4312 fi
4313 ac_test_CFLAGS=${CFLAGS+set}
4314 ac_save_CFLAGS=$CFLAGS
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4316 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4317 if ${ac_cv_prog_cc_g+:} false; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   ac_save_c_werror_flag=$ac_c_werror_flag
4321    ac_c_werror_flag=yes
4322    ac_cv_prog_cc_g=no
4323    CFLAGS="-g"
4324    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h.  */
4326
4327 int
4328 main ()
4329 {
4330
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336   ac_cv_prog_cc_g=yes
4337 else
4338   CFLAGS=""
4339       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h.  */
4341
4342 int
4343 main ()
4344 {
4345
4346   ;
4347   return 0;
4348 }
4349 _ACEOF
4350 if ac_fn_c_try_compile "$LINENO"; then :
4351
4352 else
4353   ac_c_werror_flag=$ac_save_c_werror_flag
4354          CFLAGS="-g"
4355          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h.  */
4357
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367   ac_cv_prog_cc_g=yes
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 fi
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374    ac_c_werror_flag=$ac_save_c_werror_flag
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4377 $as_echo "$ac_cv_prog_cc_g" >&6; }
4378 if test "$ac_test_CFLAGS" = set; then
4379   CFLAGS=$ac_save_CFLAGS
4380 elif test $ac_cv_prog_cc_g = yes; then
4381   if test "$GCC" = yes; then
4382     CFLAGS="-g -O2"
4383   else
4384     CFLAGS="-g"
4385   fi
4386 else
4387   if test "$GCC" = yes; then
4388     CFLAGS="-O2"
4389   else
4390     CFLAGS=
4391   fi
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4394 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4395 if ${ac_cv_prog_cc_c89+:} false; then :
4396   $as_echo_n "(cached) " >&6
4397 else
4398   ac_cv_prog_cc_c89=no
4399 ac_save_CC=$CC
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h.  */
4402 #include <stdarg.h>
4403 #include <stdio.h>
4404 struct stat;
4405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4406 struct buf { int x; };
4407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4408 static char *e (p, i)
4409      char **p;
4410      int i;
4411 {
4412   return p[i];
4413 }
4414 static char *f (char * (*g) (char **, int), char **p, ...)
4415 {
4416   char *s;
4417   va_list v;
4418   va_start (v,p);
4419   s = g (p, va_arg (v,int));
4420   va_end (v);
4421   return s;
4422 }
4423
4424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4425    function prototypes and stuff, but not '\xHH' hex character constants.
4426    These don't provoke an error unfortunately, instead are silently treated
4427    as 'x'.  The following induces an error, until -std is added to get
4428    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4429    array size at least.  It's necessary to write '\x00'==0 to get something
4430    that's true only with -std.  */
4431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4432
4433 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4434    inside strings and character constants.  */
4435 #define FOO(x) 'x'
4436 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4437
4438 int test (int i, double x);
4439 struct s1 {int (*f) (int a);};
4440 struct s2 {int (*f) (double a);};
4441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4442 int argc;
4443 char **argv;
4444 int
4445 main ()
4446 {
4447 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4448   ;
4449   return 0;
4450 }
4451 _ACEOF
4452 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4453         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4454 do
4455   CC="$ac_save_CC $ac_arg"
4456   if ac_fn_c_try_compile "$LINENO"; then :
4457   ac_cv_prog_cc_c89=$ac_arg
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext
4460   test "x$ac_cv_prog_cc_c89" != "xno" && break
4461 done
4462 rm -f conftest.$ac_ext
4463 CC=$ac_save_CC
4464
4465 fi
4466 # AC_CACHE_VAL
4467 case "x$ac_cv_prog_cc_c89" in
4468   x)
4469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4470 $as_echo "none needed" >&6; } ;;
4471   xno)
4472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4473 $as_echo "unsupported" >&6; } ;;
4474   *)
4475     CC="$CC $ac_cv_prog_cc_c89"
4476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4477 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4478 esac
4479 if test "x$ac_cv_prog_cc_c89" != xno; then :
4480
4481 fi
4482
4483 ac_ext=c
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489 ac_ext=c
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4495 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4496 if ${am_cv_prog_cc_c_o+:} false; then :
4497   $as_echo_n "(cached) " >&6
4498 else
4499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501
4502 int
4503 main ()
4504 {
4505
4506   ;
4507   return 0;
4508 }
4509 _ACEOF
4510   # Make sure it works both with $CC and with simple cc.
4511   # Following AC_PROG_CC_C_O, we do the test twice because some
4512   # compilers refuse to overwrite an existing .o file with -o,
4513   # though they will create one.
4514   am_cv_prog_cc_c_o=yes
4515   for am_i in 1 2; do
4516     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4517    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4518    ac_status=$?
4519    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520    (exit $ac_status); } \
4521          && test -f conftest2.$ac_objext; then
4522       : OK
4523     else
4524       am_cv_prog_cc_c_o=no
4525       break
4526     fi
4527   done
4528   rm -f core conftest*
4529   unset am_i
4530 fi
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4532 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4533 if test "$am_cv_prog_cc_c_o" != yes; then
4534    # Losing compiler, so override with the script.
4535    # FIXME: It is wrong to rewrite CC.
4536    # But if we don't then we get into trouble of one sort or another.
4537    # A longer-term fix would be to have automake use am__CC in this case,
4538    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4539    CC="$am_aux_dir/compile $CC"
4540 fi
4541 ac_ext=c
4542 ac_cpp='$CPP $CPPFLAGS'
4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546
4547
4548 depcc="$CC"   am_compiler_list=
4549
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4551 $as_echo_n "checking dependency style of $depcc... " >&6; }
4552 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4553   $as_echo_n "(cached) " >&6
4554 else
4555   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4556   # We make a subdir and do the tests there.  Otherwise we can end up
4557   # making bogus files that we don't know about and never remove.  For
4558   # instance it was reported that on HP-UX the gcc test will end up
4559   # making a dummy file named 'D' -- because '-MD' means "put the output
4560   # in D".
4561   rm -rf conftest.dir
4562   mkdir conftest.dir
4563   # Copy depcomp to subdir because otherwise we won't find it if we're
4564   # using a relative directory.
4565   cp "$am_depcomp" conftest.dir
4566   cd conftest.dir
4567   # We will build objects and dependencies in a subdirectory because
4568   # it helps to detect inapplicable dependency modes.  For instance
4569   # both Tru64's cc and ICC support -MD to output dependencies as a
4570   # side effect of compilation, but ICC will put the dependencies in
4571   # the current directory while Tru64 will put them in the object
4572   # directory.
4573   mkdir sub
4574
4575   am_cv_CC_dependencies_compiler_type=none
4576   if test "$am_compiler_list" = ""; then
4577      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4578   fi
4579   am__universal=false
4580   case " $depcc " in #(
4581      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4582      esac
4583
4584   for depmode in $am_compiler_list; do
4585     # Setup a source with many dependencies, because some compilers
4586     # like to wrap large dependency lists on column 80 (with \), and
4587     # we should not choose a depcomp mode which is confused by this.
4588     #
4589     # We need to recreate these files for each test, as the compiler may
4590     # overwrite some of them when testing with obscure command lines.
4591     # This happens at least with the AIX C compiler.
4592     : > sub/conftest.c
4593     for i in 1 2 3 4 5 6; do
4594       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4595       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4596       # Solaris 10 /bin/sh.
4597       echo '/* dummy */' > sub/conftst$i.h
4598     done
4599     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4600
4601     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4602     # mode.  It turns out that the SunPro C++ compiler does not properly
4603     # handle '-M -o', and we need to detect this.  Also, some Intel
4604     # versions had trouble with output in subdirs.
4605     am__obj=sub/conftest.${OBJEXT-o}
4606     am__minus_obj="-o $am__obj"
4607     case $depmode in
4608     gcc)
4609       # This depmode causes a compiler race in universal mode.
4610       test "$am__universal" = false || continue
4611       ;;
4612     nosideeffect)
4613       # After this tag, mechanisms are not by side-effect, so they'll
4614       # only be used when explicitly requested.
4615       if test "x$enable_dependency_tracking" = xyes; then
4616         continue
4617       else
4618         break
4619       fi
4620       ;;
4621     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4622       # This compiler won't grok '-c -o', but also, the minuso test has
4623       # not run yet.  These depmodes are late enough in the game, and
4624       # so weak that their functioning should not be impacted.
4625       am__obj=conftest.${OBJEXT-o}
4626       am__minus_obj=
4627       ;;
4628     none) break ;;
4629     esac
4630     if depmode=$depmode \
4631        source=sub/conftest.c object=$am__obj \
4632        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4633        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4634          >/dev/null 2>conftest.err &&
4635        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4636        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4637        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4638        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4639       # icc doesn't choke on unknown options, it will just issue warnings
4640       # or remarks (even with -Werror).  So we grep stderr for any message
4641       # that says an option was ignored or not supported.
4642       # When given -MP, icc 7.0 and 7.1 complain thusly:
4643       #   icc: Command line warning: ignoring option '-M'; no argument required
4644       # The diagnosis changed in icc 8.0:
4645       #   icc: Command line remark: option '-MP' not supported
4646       if (grep 'ignoring option' conftest.err ||
4647           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4648         am_cv_CC_dependencies_compiler_type=$depmode
4649         break
4650       fi
4651     fi
4652   done
4653
4654   cd ..
4655   rm -rf conftest.dir
4656 else
4657   am_cv_CC_dependencies_compiler_type=none
4658 fi
4659
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4662 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4663 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4664
4665  if
4666   test "x$enable_dependency_tracking" != xno \
4667   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4668   am__fastdepCC_TRUE=
4669   am__fastdepCC_FALSE='#'
4670 else
4671   am__fastdepCC_TRUE='#'
4672   am__fastdepCC_FALSE=
4673 fi
4674
4675
4676
4677 if test -n "$ac_tool_prefix"; then
4678   for ac_prog in ar lib "link -lib"
4679   do
4680     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_AR+:} false; then :
4685   $as_echo_n "(cached) " >&6
4686 else
4687   if test -n "$AR"; then
4688   ac_cv_prog_AR="$AR" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695     for ac_exec_ext in '' $ac_executable_extensions; do
4696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702   done
4703 IFS=$as_save_IFS
4704
4705 fi
4706 fi
4707 AR=$ac_cv_prog_AR
4708 if test -n "$AR"; then
4709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4710 $as_echo "$AR" >&6; }
4711 else
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4714 fi
4715
4716
4717     test -n "$AR" && break
4718   done
4719 fi
4720 if test -z "$AR"; then
4721   ac_ct_AR=$AR
4722   for ac_prog in ar lib "link -lib"
4723 do
4724   # Extract the first word of "$ac_prog", so it can be a program name with args.
4725 set dummy $ac_prog; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -n "$ac_ct_AR"; then
4732   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_exec_ext in '' $ac_executable_extensions; do
4740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741     ac_cv_prog_ac_ct_AR="$ac_prog"
4742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746   done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4752 if test -n "$ac_ct_AR"; then
4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4754 $as_echo "$ac_ct_AR" >&6; }
4755 else
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760
4761   test -n "$ac_ct_AR" && break
4762 done
4763
4764   if test "x$ac_ct_AR" = x; then
4765     AR="false"
4766   else
4767     case $cross_compiling:$ac_tool_warned in
4768 yes:)
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771 ac_tool_warned=yes ;;
4772 esac
4773     AR=$ac_ct_AR
4774   fi
4775 fi
4776
4777 : ${AR=ar}
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4780 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4781 if ${am_cv_ar_interface+:} false; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789
4790    am_cv_ar_interface=ar
4791    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h.  */
4793 int some_variable = 0;
4794 _ACEOF
4795 if ac_fn_c_try_compile "$LINENO"; then :
4796   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4797       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4798   (eval $am_ar_try) 2>&5
4799   ac_status=$?
4800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4801   test $ac_status = 0; }
4802       if test "$ac_status" -eq 0; then
4803         am_cv_ar_interface=ar
4804       else
4805         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4806         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4807   (eval $am_ar_try) 2>&5
4808   ac_status=$?
4809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4810   test $ac_status = 0; }
4811         if test "$ac_status" -eq 0; then
4812           am_cv_ar_interface=lib
4813         else
4814           am_cv_ar_interface=unknown
4815         fi
4816       fi
4817       rm -f conftest.lib libconftest.a
4818
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821    ac_ext=c
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4829 $as_echo "$am_cv_ar_interface" >&6; }
4830
4831 case $am_cv_ar_interface in
4832 ar)
4833   ;;
4834 lib)
4835   # Microsoft lib, so override with the ar-lib wrapper script.
4836   # FIXME: It is wrong to rewrite AR.
4837   # But if we don't then we get into trouble of one sort or another.
4838   # A longer-term fix would be to have automake use am__AR in this case,
4839   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4840   # similar.
4841   AR="$am_aux_dir/ar-lib $AR"
4842   ;;
4843 unknown)
4844   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4845   ;;
4846 esac
4847
4848
4849 case `pwd` in
4850   *\ * | *\     *)
4851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4852 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4853 esac
4854
4855
4856
4857 macro_version='2.4.2'
4858 macro_revision='1.3337'
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872 ltmain="$ac_aux_dir/ltmain.sh"
4873
4874 # Make sure we can run config.sub.
4875 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4876   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4877
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4879 $as_echo_n "checking build system type... " >&6; }
4880 if ${ac_cv_build+:} false; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   ac_build_alias=$build_alias
4884 test "x$ac_build_alias" = x &&
4885   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4886 test "x$ac_build_alias" = x &&
4887   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4888 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4889   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4890
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4893 $as_echo "$ac_cv_build" >&6; }
4894 case $ac_cv_build in
4895 *-*-*) ;;
4896 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4897 esac
4898 build=$ac_cv_build
4899 ac_save_IFS=$IFS; IFS='-'
4900 set x $ac_cv_build
4901 shift
4902 build_cpu=$1
4903 build_vendor=$2
4904 shift; shift
4905 # Remember, the first character of IFS is used to create $*,
4906 # except with old shells:
4907 build_os=$*
4908 IFS=$ac_save_IFS
4909 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4913 $as_echo_n "checking host system type... " >&6; }
4914 if ${ac_cv_host+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if test "x$host_alias" = x; then
4918   ac_cv_host=$ac_cv_build
4919 else
4920   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4921     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4922 fi
4923
4924 fi
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4926 $as_echo "$ac_cv_host" >&6; }
4927 case $ac_cv_host in
4928 *-*-*) ;;
4929 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4930 esac
4931 host=$ac_cv_host
4932 ac_save_IFS=$IFS; IFS='-'
4933 set x $ac_cv_host
4934 shift
4935 host_cpu=$1
4936 host_vendor=$2
4937 shift; shift
4938 # Remember, the first character of IFS is used to create $*,
4939 # except with old shells:
4940 host_os=$*
4941 IFS=$ac_save_IFS
4942 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4943
4944
4945 # Backslashify metacharacters that are still active within
4946 # double-quoted strings.
4947 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4948
4949 # Same as above, but do not quote variable references.
4950 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4951
4952 # Sed substitution to delay expansion of an escaped shell variable in a
4953 # double_quote_subst'ed string.
4954 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4955
4956 # Sed substitution to delay expansion of an escaped single quote.
4957 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4958
4959 # Sed substitution to avoid accidental globbing in evaled expressions
4960 no_glob_subst='s/\*/\\\*/g'
4961
4962 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4963 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4964 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4967 $as_echo_n "checking how to print strings... " >&6; }
4968 # Test print first, because it will be a builtin if present.
4969 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4970    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4971   ECHO='print -r --'
4972 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4973   ECHO='printf %s\n'
4974 else
4975   # Use this function as a fallback that always works.
4976   func_fallback_echo ()
4977   {
4978     eval 'cat <<_LTECHO_EOF
4979 $1
4980 _LTECHO_EOF'
4981   }
4982   ECHO='func_fallback_echo'
4983 fi
4984
4985 # func_echo_all arg...
4986 # Invoke $ECHO with all args, space-separated.
4987 func_echo_all ()
4988 {
4989     $ECHO ""
4990 }
4991
4992 case "$ECHO" in
4993   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4994 $as_echo "printf" >&6; } ;;
4995   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4996 $as_echo "print -r" >&6; } ;;
4997   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4998 $as_echo "cat" >&6; } ;;
4999 esac
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5015 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5016 if ${ac_cv_path_SED+:} false; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5020      for ac_i in 1 2 3 4 5 6 7; do
5021        ac_script="$ac_script$as_nl$ac_script"
5022      done
5023      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5024      { ac_script=; unset ac_script;}
5025      if test -z "$SED"; then
5026   ac_path_SED_found=false
5027   # Loop through the user's path and test for each of PROGNAME-LIST
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_prog in sed gsed; do
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5036       as_fn_executable_p "$ac_path_SED" || continue
5037 # Check for GNU ac_path_SED and select it if it is found.
5038   # Check for GNU $ac_path_SED
5039 case `"$ac_path_SED" --version 2>&1` in
5040 *GNU*)
5041   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5042 *)
5043   ac_count=0
5044   $as_echo_n 0123456789 >"conftest.in"
5045   while :
5046   do
5047     cat "conftest.in" "conftest.in" >"conftest.tmp"
5048     mv "conftest.tmp" "conftest.in"
5049     cp "conftest.in" "conftest.nl"
5050     $as_echo '' >> "conftest.nl"
5051     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053     as_fn_arith $ac_count + 1 && ac_count=$as_val
5054     if test $ac_count -gt ${ac_path_SED_max-0}; then
5055       # Best one so far, save it but keep looking for a better one
5056       ac_cv_path_SED="$ac_path_SED"
5057       ac_path_SED_max=$ac_count
5058     fi
5059     # 10*(2^10) chars as input seems more than enough
5060     test $ac_count -gt 10 && break
5061   done
5062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063 esac
5064
5065       $ac_path_SED_found && break 3
5066     done
5067   done
5068   done
5069 IFS=$as_save_IFS
5070   if test -z "$ac_cv_path_SED"; then
5071     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5072   fi
5073 else
5074   ac_cv_path_SED=$SED
5075 fi
5076
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5079 $as_echo "$ac_cv_path_SED" >&6; }
5080  SED="$ac_cv_path_SED"
5081   rm -f conftest.sed
5082
5083 test -z "$SED" && SED=sed
5084 Xsed="$SED -e 1s/^X//"
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5097 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5098 if ${ac_cv_path_GREP+:} false; then :
5099   $as_echo_n "(cached) " >&6
5100 else
5101   if test -z "$GREP"; then
5102   ac_path_GREP_found=false
5103   # Loop through the user's path and test for each of PROGNAME-LIST
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_prog in grep ggrep; do
5110     for ac_exec_ext in '' $ac_executable_extensions; do
5111       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5112       as_fn_executable_p "$ac_path_GREP" || continue
5113 # Check for GNU ac_path_GREP and select it if it is found.
5114   # Check for GNU $ac_path_GREP
5115 case `"$ac_path_GREP" --version 2>&1` in
5116 *GNU*)
5117   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5118 *)
5119   ac_count=0
5120   $as_echo_n 0123456789 >"conftest.in"
5121   while :
5122   do
5123     cat "conftest.in" "conftest.in" >"conftest.tmp"
5124     mv "conftest.tmp" "conftest.in"
5125     cp "conftest.in" "conftest.nl"
5126     $as_echo 'GREP' >> "conftest.nl"
5127     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5128     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5129     as_fn_arith $ac_count + 1 && ac_count=$as_val
5130     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5131       # Best one so far, save it but keep looking for a better one
5132       ac_cv_path_GREP="$ac_path_GREP"
5133       ac_path_GREP_max=$ac_count
5134     fi
5135     # 10*(2^10) chars as input seems more than enough
5136     test $ac_count -gt 10 && break
5137   done
5138   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5139 esac
5140
5141       $ac_path_GREP_found && break 3
5142     done
5143   done
5144   done
5145 IFS=$as_save_IFS
5146   if test -z "$ac_cv_path_GREP"; then
5147     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5148   fi
5149 else
5150   ac_cv_path_GREP=$GREP
5151 fi
5152
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5155 $as_echo "$ac_cv_path_GREP" >&6; }
5156  GREP="$ac_cv_path_GREP"
5157
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5160 $as_echo_n "checking for egrep... " >&6; }
5161 if ${ac_cv_path_EGREP+:} false; then :
5162   $as_echo_n "(cached) " >&6
5163 else
5164   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5165    then ac_cv_path_EGREP="$GREP -E"
5166    else
5167      if test -z "$EGREP"; then
5168   ac_path_EGREP_found=false
5169   # Loop through the user's path and test for each of PROGNAME-LIST
5170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175     for ac_prog in egrep; do
5176     for ac_exec_ext in '' $ac_executable_extensions; do
5177       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5178       as_fn_executable_p "$ac_path_EGREP" || continue
5179 # Check for GNU ac_path_EGREP and select it if it is found.
5180   # Check for GNU $ac_path_EGREP
5181 case `"$ac_path_EGREP" --version 2>&1` in
5182 *GNU*)
5183   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5184 *)
5185   ac_count=0
5186   $as_echo_n 0123456789 >"conftest.in"
5187   while :
5188   do
5189     cat "conftest.in" "conftest.in" >"conftest.tmp"
5190     mv "conftest.tmp" "conftest.in"
5191     cp "conftest.in" "conftest.nl"
5192     $as_echo 'EGREP' >> "conftest.nl"
5193     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5195     as_fn_arith $ac_count + 1 && ac_count=$as_val
5196     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5197       # Best one so far, save it but keep looking for a better one
5198       ac_cv_path_EGREP="$ac_path_EGREP"
5199       ac_path_EGREP_max=$ac_count
5200     fi
5201     # 10*(2^10) chars as input seems more than enough
5202     test $ac_count -gt 10 && break
5203   done
5204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5205 esac
5206
5207       $ac_path_EGREP_found && break 3
5208     done
5209   done
5210   done
5211 IFS=$as_save_IFS
5212   if test -z "$ac_cv_path_EGREP"; then
5213     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5214   fi
5215 else
5216   ac_cv_path_EGREP=$EGREP
5217 fi
5218
5219    fi
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5222 $as_echo "$ac_cv_path_EGREP" >&6; }
5223  EGREP="$ac_cv_path_EGREP"
5224
5225
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5227 $as_echo_n "checking for fgrep... " >&6; }
5228 if ${ac_cv_path_FGREP+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5232    then ac_cv_path_FGREP="$GREP -F"
5233    else
5234      if test -z "$FGREP"; then
5235   ac_path_FGREP_found=false
5236   # Loop through the user's path and test for each of PROGNAME-LIST
5237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5239 do
5240   IFS=$as_save_IFS
5241   test -z "$as_dir" && as_dir=.
5242     for ac_prog in fgrep; do
5243     for ac_exec_ext in '' $ac_executable_extensions; do
5244       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5245       as_fn_executable_p "$ac_path_FGREP" || continue
5246 # Check for GNU ac_path_FGREP and select it if it is found.
5247   # Check for GNU $ac_path_FGREP
5248 case `"$ac_path_FGREP" --version 2>&1` in
5249 *GNU*)
5250   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5251 *)
5252   ac_count=0
5253   $as_echo_n 0123456789 >"conftest.in"
5254   while :
5255   do
5256     cat "conftest.in" "conftest.in" >"conftest.tmp"
5257     mv "conftest.tmp" "conftest.in"
5258     cp "conftest.in" "conftest.nl"
5259     $as_echo 'FGREP' >> "conftest.nl"
5260     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5261     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5262     as_fn_arith $ac_count + 1 && ac_count=$as_val
5263     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5264       # Best one so far, save it but keep looking for a better one
5265       ac_cv_path_FGREP="$ac_path_FGREP"
5266       ac_path_FGREP_max=$ac_count
5267     fi
5268     # 10*(2^10) chars as input seems more than enough
5269     test $ac_count -gt 10 && break
5270   done
5271   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5272 esac
5273
5274       $ac_path_FGREP_found && break 3
5275     done
5276   done
5277   done
5278 IFS=$as_save_IFS
5279   if test -z "$ac_cv_path_FGREP"; then
5280     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5281   fi
5282 else
5283   ac_cv_path_FGREP=$FGREP
5284 fi
5285
5286    fi
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5289 $as_echo "$ac_cv_path_FGREP" >&6; }
5290  FGREP="$ac_cv_path_FGREP"
5291
5292
5293 test -z "$GREP" && GREP=grep
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313 # Check whether --with-gnu-ld was given.
5314 if test "${with_gnu_ld+set}" = set; then :
5315   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5316 else
5317   with_gnu_ld=no
5318 fi
5319
5320 ac_prog=ld
5321 if test "$GCC" = yes; then
5322   # Check if gcc -print-prog-name=ld gives a path.
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5324 $as_echo_n "checking for ld used by $CC... " >&6; }
5325   case $host in
5326   *-*-mingw*)
5327     # gcc leaves a trailing carriage return which upsets mingw
5328     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5329   *)
5330     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5331   esac
5332   case $ac_prog in
5333     # Accept absolute paths.
5334     [\\/]* | ?:[\\/]*)
5335       re_direlt='/[^/][^/]*/\.\./'
5336       # Canonicalize the pathname of ld
5337       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5338       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5339         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5340       done
5341       test -z "$LD" && LD="$ac_prog"
5342       ;;
5343   "")
5344     # If it fails, then pretend we aren't using GCC.
5345     ac_prog=ld
5346     ;;
5347   *)
5348     # If it is relative, then search for the first ld in PATH.
5349     with_gnu_ld=unknown
5350     ;;
5351   esac
5352 elif test "$with_gnu_ld" = yes; then
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5354 $as_echo_n "checking for GNU ld... " >&6; }
5355 else
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5357 $as_echo_n "checking for non-GNU ld... " >&6; }
5358 fi
5359 if ${lt_cv_path_LD+:} false; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   if test -z "$LD"; then
5363   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5364   for ac_dir in $PATH; do
5365     IFS="$lt_save_ifs"
5366     test -z "$ac_dir" && ac_dir=.
5367     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5368       lt_cv_path_LD="$ac_dir/$ac_prog"
5369       # Check to see if the program is GNU ld.  I'd rather use --version,
5370       # but apparently some variants of GNU ld only accept -v.
5371       # Break only if it was the GNU/non-GNU ld that we prefer.
5372       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5373       *GNU* | *'with BFD'*)
5374         test "$with_gnu_ld" != no && break
5375         ;;
5376       *)
5377         test "$with_gnu_ld" != yes && break
5378         ;;
5379       esac
5380     fi
5381   done
5382   IFS="$lt_save_ifs"
5383 else
5384   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5385 fi
5386 fi
5387
5388 LD="$lt_cv_path_LD"
5389 if test -n "$LD"; then
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5391 $as_echo "$LD" >&6; }
5392 else
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5398 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5399 if ${lt_cv_prog_gnu_ld+:} false; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5403 case `$LD -v 2>&1 </dev/null` in
5404 *GNU* | *'with BFD'*)
5405   lt_cv_prog_gnu_ld=yes
5406   ;;
5407 *)
5408   lt_cv_prog_gnu_ld=no
5409   ;;
5410 esac
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5413 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5414 with_gnu_ld=$lt_cv_prog_gnu_ld
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5425 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5426 if ${lt_cv_path_NM+:} false; then :
5427   $as_echo_n "(cached) " >&6
5428 else
5429   if test -n "$NM"; then
5430   # Let the user override the test.
5431   lt_cv_path_NM="$NM"
5432 else
5433   lt_nm_to_check="${ac_tool_prefix}nm"
5434   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5435     lt_nm_to_check="$lt_nm_to_check nm"
5436   fi
5437   for lt_tmp_nm in $lt_nm_to_check; do
5438     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5439     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5440       IFS="$lt_save_ifs"
5441       test -z "$ac_dir" && ac_dir=.
5442       tmp_nm="$ac_dir/$lt_tmp_nm"
5443       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5444         # Check to see if the nm accepts a BSD-compat flag.
5445         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5446         #   nm: unknown option "B" ignored
5447         # Tru64's nm complains that /dev/null is an invalid object file
5448         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5449         */dev/null* | *'Invalid file or object type'*)
5450           lt_cv_path_NM="$tmp_nm -B"
5451           break
5452           ;;
5453         *)
5454           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5455           */dev/null*)
5456             lt_cv_path_NM="$tmp_nm -p"
5457             break
5458             ;;
5459           *)
5460             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5461             continue # so that we can try to find one that supports BSD flags
5462             ;;
5463           esac
5464           ;;
5465         esac
5466       fi
5467     done
5468     IFS="$lt_save_ifs"
5469   done
5470   : ${lt_cv_path_NM=no}
5471 fi
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5474 $as_echo "$lt_cv_path_NM" >&6; }
5475 if test "$lt_cv_path_NM" != "no"; then
5476   NM="$lt_cv_path_NM"
5477 else
5478   # Didn't find any BSD compatible name lister, look for dumpbin.
5479   if test -n "$DUMPBIN"; then :
5480     # Let the user override the test.
5481   else
5482     if test -n "$ac_tool_prefix"; then
5483   for ac_prog in dumpbin "link -dump"
5484   do
5485     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_DUMPBIN+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   if test -n "$DUMPBIN"; then
5493   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500     for ac_exec_ext in '' $ac_executable_extensions; do
5501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504     break 2
5505   fi
5506 done
5507   done
5508 IFS=$as_save_IFS
5509
5510 fi
5511 fi
5512 DUMPBIN=$ac_cv_prog_DUMPBIN
5513 if test -n "$DUMPBIN"; then
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5515 $as_echo "$DUMPBIN" >&6; }
5516 else
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521
5522     test -n "$DUMPBIN" && break
5523   done
5524 fi
5525 if test -z "$DUMPBIN"; then
5526   ac_ct_DUMPBIN=$DUMPBIN
5527   for ac_prog in dumpbin "link -dump"
5528 do
5529   # Extract the first word of "$ac_prog", so it can be a program name with args.
5530 set dummy $ac_prog; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5534   $as_echo_n "(cached) " >&6
5535 else
5536   if test -n "$ac_ct_DUMPBIN"; then
5537   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542   IFS=$as_save_IFS
5543   test -z "$as_dir" && as_dir=.
5544     for ac_exec_ext in '' $ac_executable_extensions; do
5545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548     break 2
5549   fi
5550 done
5551   done
5552 IFS=$as_save_IFS
5553
5554 fi
5555 fi
5556 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5557 if test -n "$ac_ct_DUMPBIN"; then
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5559 $as_echo "$ac_ct_DUMPBIN" >&6; }
5560 else
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5563 fi
5564
5565
5566   test -n "$ac_ct_DUMPBIN" && break
5567 done
5568
5569   if test "x$ac_ct_DUMPBIN" = x; then
5570     DUMPBIN=":"
5571   else
5572     case $cross_compiling:$ac_tool_warned in
5573 yes:)
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576 ac_tool_warned=yes ;;
5577 esac
5578     DUMPBIN=$ac_ct_DUMPBIN
5579   fi
5580 fi
5581
5582     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5583     *COFF*)
5584       DUMPBIN="$DUMPBIN -symbols"
5585       ;;
5586     *)
5587       DUMPBIN=:
5588       ;;
5589     esac
5590   fi
5591
5592   if test "$DUMPBIN" != ":"; then
5593     NM="$DUMPBIN"
5594   fi
5595 fi
5596 test -z "$NM" && NM=nm
5597
5598
5599
5600
5601
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5604 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5605 if ${lt_cv_nm_interface+:} false; then :
5606   $as_echo_n "(cached) " >&6
5607 else
5608   lt_cv_nm_interface="BSD nm"
5609   echo "int some_variable = 0;" > conftest.$ac_ext
5610   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5611   (eval "$ac_compile" 2>conftest.err)
5612   cat conftest.err >&5
5613   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5614   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5615   cat conftest.err >&5
5616   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5617   cat conftest.out >&5
5618   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5619     lt_cv_nm_interface="MS dumpbin"
5620   fi
5621   rm -f conftest*
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5624 $as_echo "$lt_cv_nm_interface" >&6; }
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5627 $as_echo_n "checking whether ln -s works... " >&6; }
5628 LN_S=$as_ln_s
5629 if test "$LN_S" = "ln -s"; then
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5631 $as_echo "yes" >&6; }
5632 else
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5634 $as_echo "no, using $LN_S" >&6; }
5635 fi
5636
5637 # find the maximum length of command line arguments
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5639 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5640 if ${lt_cv_sys_max_cmd_len+:} false; then :
5641   $as_echo_n "(cached) " >&6
5642 else
5643     i=0
5644   teststring="ABCD"
5645
5646   case $build_os in
5647   msdosdjgpp*)
5648     # On DJGPP, this test can blow up pretty badly due to problems in libc
5649     # (any single argument exceeding 2000 bytes causes a buffer overrun
5650     # during glob expansion).  Even if it were fixed, the result of this
5651     # check would be larger than it should be.
5652     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5653     ;;
5654
5655   gnu*)
5656     # Under GNU Hurd, this test is not required because there is
5657     # no limit to the length of command line arguments.
5658     # Libtool will interpret -1 as no limit whatsoever
5659     lt_cv_sys_max_cmd_len=-1;
5660     ;;
5661
5662   cygwin* | mingw* | cegcc*)
5663     # On Win9x/ME, this test blows up -- it succeeds, but takes
5664     # about 5 minutes as the teststring grows exponentially.
5665     # Worse, since 9x/ME are not pre-emptively multitasking,
5666     # you end up with a "frozen" computer, even though with patience
5667     # the test eventually succeeds (with a max line length of 256k).
5668     # Instead, let's just punt: use the minimum linelength reported by
5669     # all of the supported platforms: 8192 (on NT/2K/XP).
5670     lt_cv_sys_max_cmd_len=8192;
5671     ;;
5672
5673   mint*)
5674     # On MiNT this can take a long time and run out of memory.
5675     lt_cv_sys_max_cmd_len=8192;
5676     ;;
5677
5678   amigaos*)
5679     # On AmigaOS with pdksh, this test takes hours, literally.
5680     # So we just punt and use a minimum line length of 8192.
5681     lt_cv_sys_max_cmd_len=8192;
5682     ;;
5683
5684   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5685     # This has been around since 386BSD, at least.  Likely further.
5686     if test -x /sbin/sysctl; then
5687       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5688     elif test -x /usr/sbin/sysctl; then
5689       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5690     else
5691       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5692     fi
5693     # And add a safety zone
5694     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5695     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5696     ;;
5697
5698   interix*)
5699     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5700     lt_cv_sys_max_cmd_len=196608
5701     ;;
5702
5703   os2*)
5704     # The test takes a long time on OS/2.
5705     lt_cv_sys_max_cmd_len=8192
5706     ;;
5707
5708   osf*)
5709     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5710     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5711     # nice to cause kernel panics so lets avoid the loop below.
5712     # First set a reasonable default.
5713     lt_cv_sys_max_cmd_len=16384
5714     #
5715     if test -x /sbin/sysconfig; then
5716       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5717         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5718       esac
5719     fi
5720     ;;
5721   sco3.2v5*)
5722     lt_cv_sys_max_cmd_len=102400
5723     ;;
5724   sysv5* | sco5v6* | sysv4.2uw2*)
5725     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5726     if test -n "$kargmax"; then
5727       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5728     else
5729       lt_cv_sys_max_cmd_len=32768
5730     fi
5731     ;;
5732   *)
5733     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5734     if test -n "$lt_cv_sys_max_cmd_len" && \
5735         test undefined != "$lt_cv_sys_max_cmd_len"; then
5736       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5737       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5738     else
5739       # Make teststring a little bigger before we do anything with it.
5740       # a 1K string should be a reasonable start.
5741       for i in 1 2 3 4 5 6 7 8 ; do
5742         teststring=$teststring$teststring
5743       done
5744       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5745       # If test is not a shell built-in, we'll probably end up computing a
5746       # maximum length that is only half of the actual maximum length, but
5747       # we can't tell.
5748       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5749                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5750               test $i != 17 # 1/2 MB should be enough
5751       do
5752         i=`expr $i + 1`
5753         teststring=$teststring$teststring
5754       done
5755       # Only check the string length outside the loop.
5756       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5757       teststring=
5758       # Add a significant safety factor because C++ compilers can tack on
5759       # massive amounts of additional arguments before passing them to the
5760       # linker.  It appears as though 1/2 is a usable value.
5761       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5762     fi
5763     ;;
5764   esac
5765
5766 fi
5767
5768 if test -n $lt_cv_sys_max_cmd_len ; then
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5770 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5773 $as_echo "none" >&6; }
5774 fi
5775 max_cmd_len=$lt_cv_sys_max_cmd_len
5776
5777
5778
5779
5780
5781
5782 : ${CP="cp -f"}
5783 : ${MV="mv -f"}
5784 : ${RM="rm -f"}
5785
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5787 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5788 # Try some XSI features
5789 xsi_shell=no
5790 ( _lt_dummy="a/b/c"
5791   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5792       = c,a/b,b/c, \
5793     && eval 'test $(( 1 + 1 )) -eq 2 \
5794     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5795   && xsi_shell=yes
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5797 $as_echo "$xsi_shell" >&6; }
5798
5799
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5801 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5802 lt_shell_append=no
5803 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5804     >/dev/null 2>&1 \
5805   && lt_shell_append=yes
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5807 $as_echo "$lt_shell_append" >&6; }
5808
5809
5810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5811   lt_unset=unset
5812 else
5813   lt_unset=false
5814 fi
5815
5816
5817
5818
5819
5820 # test EBCDIC or ASCII
5821 case `echo X|tr X '\101'` in
5822  A) # ASCII based system
5823     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5824   lt_SP2NL='tr \040 \012'
5825   lt_NL2SP='tr \015\012 \040\040'
5826   ;;
5827  *) # EBCDIC based system
5828   lt_SP2NL='tr \100 \n'
5829   lt_NL2SP='tr \r\n \100\100'
5830   ;;
5831 esac
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5842 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5843 if ${lt_cv_to_host_file_cmd+:} false; then :
5844   $as_echo_n "(cached) " >&6
5845 else
5846   case $host in
5847   *-*-mingw* )
5848     case $build in
5849       *-*-mingw* ) # actually msys
5850         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5851         ;;
5852       *-*-cygwin* )
5853         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5854         ;;
5855       * ) # otherwise, assume *nix
5856         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5857         ;;
5858     esac
5859     ;;
5860   *-*-cygwin* )
5861     case $build in
5862       *-*-mingw* ) # actually msys
5863         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5864         ;;
5865       *-*-cygwin* )
5866         lt_cv_to_host_file_cmd=func_convert_file_noop
5867         ;;
5868       * ) # otherwise, assume *nix
5869         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5870         ;;
5871     esac
5872     ;;
5873   * ) # unhandled hosts (and "normal" native builds)
5874     lt_cv_to_host_file_cmd=func_convert_file_noop
5875     ;;
5876 esac
5877
5878 fi
5879
5880 to_host_file_cmd=$lt_cv_to_host_file_cmd
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5882 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5883
5884
5885
5886
5887
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5889 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5890 if ${lt_cv_to_tool_file_cmd+:} false; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   #assume ordinary cross tools, or native build.
5894 lt_cv_to_tool_file_cmd=func_convert_file_noop
5895 case $host in
5896   *-*-mingw* )
5897     case $build in
5898       *-*-mingw* ) # actually msys
5899         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5900         ;;
5901     esac
5902     ;;
5903 esac
5904
5905 fi
5906
5907 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5909 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5910
5911
5912
5913
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5916 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5917 if ${lt_cv_ld_reload_flag+:} false; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   lt_cv_ld_reload_flag='-r'
5921 fi
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5923 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5924 reload_flag=$lt_cv_ld_reload_flag
5925 case $reload_flag in
5926 "" | " "*) ;;
5927 *) reload_flag=" $reload_flag" ;;
5928 esac
5929 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5930 case $host_os in
5931   cygwin* | mingw* | pw32* | cegcc*)
5932     if test "$GCC" != yes; then
5933       reload_cmds=false
5934     fi
5935     ;;
5936   darwin*)
5937     if test "$GCC" = yes; then
5938       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5939     else
5940       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5941     fi
5942     ;;
5943 esac
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953 if test -n "$ac_tool_prefix"; then
5954   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_OBJDUMP+:} false; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   if test -n "$OBJDUMP"; then
5962   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969     for ac_exec_ext in '' $ac_executable_extensions; do
5970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976   done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 OBJDUMP=$ac_cv_prog_OBJDUMP
5982 if test -n "$OBJDUMP"; then
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5984 $as_echo "$OBJDUMP" >&6; }
5985 else
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990
5991 fi
5992 if test -z "$ac_cv_prog_OBJDUMP"; then
5993   ac_ct_OBJDUMP=$OBJDUMP
5994   # Extract the first word of "objdump", so it can be a program name with args.
5995 set dummy objdump; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001   if test -n "$ac_ct_OBJDUMP"; then
6002   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009     for ac_exec_ext in '' $ac_executable_extensions; do
6010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013     break 2
6014   fi
6015 done
6016   done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6022 if test -n "$ac_ct_OBJDUMP"; then
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6024 $as_echo "$ac_ct_OBJDUMP" >&6; }
6025 else
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030   if test "x$ac_ct_OBJDUMP" = x; then
6031     OBJDUMP="false"
6032   else
6033     case $cross_compiling:$ac_tool_warned in
6034 yes:)
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039     OBJDUMP=$ac_ct_OBJDUMP
6040   fi
6041 else
6042   OBJDUMP="$ac_cv_prog_OBJDUMP"
6043 fi
6044
6045 test -z "$OBJDUMP" && OBJDUMP=objdump
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6056 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6057 if ${lt_cv_deplibs_check_method+:} false; then :
6058   $as_echo_n "(cached) " >&6
6059 else
6060   lt_cv_file_magic_cmd='$MAGIC_CMD'
6061 lt_cv_file_magic_test_file=
6062 lt_cv_deplibs_check_method='unknown'
6063 # Need to set the preceding variable on all platforms that support
6064 # interlibrary dependencies.
6065 # 'none' -- dependencies not supported.
6066 # `unknown' -- same as none, but documents that we really don't know.
6067 # 'pass_all' -- all dependencies passed with no checks.
6068 # 'test_compile' -- check by making test program.
6069 # 'file_magic [[regex]]' -- check by looking for files in library path
6070 # which responds to the $file_magic_cmd with a given extended regex.
6071 # If you have `file' or equivalent on your system and you're not sure
6072 # whether `pass_all' will *always* work, you probably want this one.
6073
6074 case $host_os in
6075 aix[4-9]*)
6076   lt_cv_deplibs_check_method=pass_all
6077   ;;
6078
6079 beos*)
6080   lt_cv_deplibs_check_method=pass_all
6081   ;;
6082
6083 bsdi[45]*)
6084   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6085   lt_cv_file_magic_cmd='/usr/bin/file -L'
6086   lt_cv_file_magic_test_file=/shlib/libc.so
6087   ;;
6088
6089 cygwin*)
6090   # func_win32_libid is a shell function defined in ltmain.sh
6091   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6092   lt_cv_file_magic_cmd='func_win32_libid'
6093   ;;
6094
6095 mingw* | pw32*)
6096   # Base MSYS/MinGW do not provide the 'file' command needed by
6097   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6098   # unless we find 'file', for example because we are cross-compiling.
6099   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6100   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6101     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6102     lt_cv_file_magic_cmd='func_win32_libid'
6103   else
6104     # Keep this pattern in sync with the one in func_win32_libid.
6105     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6106     lt_cv_file_magic_cmd='$OBJDUMP -f'
6107   fi
6108   ;;
6109
6110 cegcc*)
6111   # use the weaker test based on 'objdump'. See mingw*.
6112   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6113   lt_cv_file_magic_cmd='$OBJDUMP -f'
6114   ;;
6115
6116 darwin* | rhapsody*)
6117   lt_cv_deplibs_check_method=pass_all
6118   ;;
6119
6120 freebsd* | dragonfly*)
6121   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6122     case $host_cpu in
6123     i*86 )
6124       # Not sure whether the presence of OpenBSD here was a mistake.
6125       # Let's accept both of them until this is cleared up.
6126       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6127       lt_cv_file_magic_cmd=/usr/bin/file
6128       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6129       ;;
6130     esac
6131   else
6132     lt_cv_deplibs_check_method=pass_all
6133   fi
6134   ;;
6135
6136 haiku*)
6137   lt_cv_deplibs_check_method=pass_all
6138   ;;
6139
6140 hpux10.20* | hpux11*)
6141   lt_cv_file_magic_cmd=/usr/bin/file
6142   case $host_cpu in
6143   ia64*)
6144     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6145     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6146     ;;
6147   hppa*64*)
6148     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]'
6149     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6150     ;;
6151   *)
6152     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6153     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6154     ;;
6155   esac
6156   ;;
6157
6158 interix[3-9]*)
6159   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6160   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6161   ;;
6162
6163 irix5* | irix6* | nonstopux*)
6164   case $LD in
6165   *-32|*"-32 ") libmagic=32-bit;;
6166   *-n32|*"-n32 ") libmagic=N32;;
6167   *-64|*"-64 ") libmagic=64-bit;;
6168   *) libmagic=never-match;;
6169   esac
6170   lt_cv_deplibs_check_method=pass_all
6171   ;;
6172
6173 # This must be glibc/ELF.
6174 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6175   lt_cv_deplibs_check_method=pass_all
6176   ;;
6177
6178 netbsd* | netbsdelf*-gnu)
6179   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6180     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6181   else
6182     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6183   fi
6184   ;;
6185
6186 newos6*)
6187   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6188   lt_cv_file_magic_cmd=/usr/bin/file
6189   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6190   ;;
6191
6192 *nto* | *qnx*)
6193   lt_cv_deplibs_check_method=pass_all
6194   ;;
6195
6196 openbsd*)
6197   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6198     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6199   else
6200     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6201   fi
6202   ;;
6203
6204 osf3* | osf4* | osf5*)
6205   lt_cv_deplibs_check_method=pass_all
6206   ;;
6207
6208 rdos*)
6209   lt_cv_deplibs_check_method=pass_all
6210   ;;
6211
6212 solaris*)
6213   lt_cv_deplibs_check_method=pass_all
6214   ;;
6215
6216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6217   lt_cv_deplibs_check_method=pass_all
6218   ;;
6219
6220 sysv4 | sysv4.3*)
6221   case $host_vendor in
6222   motorola)
6223     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]'
6224     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6225     ;;
6226   ncr)
6227     lt_cv_deplibs_check_method=pass_all
6228     ;;
6229   sequent)
6230     lt_cv_file_magic_cmd='/bin/file'
6231     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6232     ;;
6233   sni)
6234     lt_cv_file_magic_cmd='/bin/file'
6235     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6236     lt_cv_file_magic_test_file=/lib/libc.so
6237     ;;
6238   siemens)
6239     lt_cv_deplibs_check_method=pass_all
6240     ;;
6241   pc)
6242     lt_cv_deplibs_check_method=pass_all
6243     ;;
6244   esac
6245   ;;
6246
6247 tpf*)
6248   lt_cv_deplibs_check_method=pass_all
6249   ;;
6250 esac
6251
6252 fi
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6254 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6255
6256 file_magic_glob=
6257 want_nocaseglob=no
6258 if test "$build" = "$host"; then
6259   case $host_os in
6260   mingw* | pw32*)
6261     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6262       want_nocaseglob=yes
6263     else
6264       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6265     fi
6266     ;;
6267   esac
6268 fi
6269
6270 file_magic_cmd=$lt_cv_file_magic_cmd
6271 deplibs_check_method=$lt_cv_deplibs_check_method
6272 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 if test -n "$ac_tool_prefix"; then
6296   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_DLLTOOL+:} false; then :
6301   $as_echo_n "(cached) " >&6
6302 else
6303   if test -n "$DLLTOOL"; then
6304   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309   IFS=$as_save_IFS
6310   test -z "$as_dir" && as_dir=.
6311     for ac_exec_ext in '' $ac_executable_extensions; do
6312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315     break 2
6316   fi
6317 done
6318   done
6319 IFS=$as_save_IFS
6320
6321 fi
6322 fi
6323 DLLTOOL=$ac_cv_prog_DLLTOOL
6324 if test -n "$DLLTOOL"; then
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6326 $as_echo "$DLLTOOL" >&6; }
6327 else
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331
6332
6333 fi
6334 if test -z "$ac_cv_prog_DLLTOOL"; then
6335   ac_ct_DLLTOOL=$DLLTOOL
6336   # Extract the first word of "dlltool", so it can be a program name with args.
6337 set dummy dlltool; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   if test -n "$ac_ct_DLLTOOL"; then
6344   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349   IFS=$as_save_IFS
6350   test -z "$as_dir" && as_dir=.
6351     for ac_exec_ext in '' $ac_executable_extensions; do
6352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355     break 2
6356   fi
6357 done
6358   done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6364 if test -n "$ac_ct_DLLTOOL"; then
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6366 $as_echo "$ac_ct_DLLTOOL" >&6; }
6367 else
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372   if test "x$ac_ct_DLLTOOL" = x; then
6373     DLLTOOL="false"
6374   else
6375     case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6380 esac
6381     DLLTOOL=$ac_ct_DLLTOOL
6382   fi
6383 else
6384   DLLTOOL="$ac_cv_prog_DLLTOOL"
6385 fi
6386
6387 test -z "$DLLTOOL" && DLLTOOL=dlltool
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6399 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6400 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   lt_cv_sharedlib_from_linklib_cmd='unknown'
6404
6405 case $host_os in
6406 cygwin* | mingw* | pw32* | cegcc*)
6407   # two different shell functions defined in ltmain.sh
6408   # decide which to use based on capabilities of $DLLTOOL
6409   case `$DLLTOOL --help 2>&1` in
6410   *--identify-strict*)
6411     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6412     ;;
6413   *)
6414     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6415     ;;
6416   esac
6417   ;;
6418 *)
6419   # fallback: assume linklib IS sharedlib
6420   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6421   ;;
6422 esac
6423
6424 fi
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6426 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6427 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6428 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6429
6430
6431
6432
6433
6434
6435
6436 if test -n "$ac_tool_prefix"; then
6437   for ac_prog in ar
6438   do
6439     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_AR+:} false; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$AR"; then
6447   ac_cv_prog_AR="$AR" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 AR=$ac_cv_prog_AR
6467 if test -n "$AR"; then
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6469 $as_echo "$AR" >&6; }
6470 else
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476     test -n "$AR" && break
6477   done
6478 fi
6479 if test -z "$AR"; then
6480   ac_ct_AR=$AR
6481   for ac_prog in ar
6482 do
6483   # Extract the first word of "$ac_prog", so it can be a program name with args.
6484 set dummy $ac_prog; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   if test -n "$ac_ct_AR"; then
6491   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496   IFS=$as_save_IFS
6497   test -z "$as_dir" && as_dir=.
6498     for ac_exec_ext in '' $ac_executable_extensions; do
6499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500     ac_cv_prog_ac_ct_AR="$ac_prog"
6501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502     break 2
6503   fi
6504 done
6505   done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6511 if test -n "$ac_ct_AR"; then
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6513 $as_echo "$ac_ct_AR" >&6; }
6514 else
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519
6520   test -n "$ac_ct_AR" && break
6521 done
6522
6523   if test "x$ac_ct_AR" = x; then
6524     AR="false"
6525   else
6526     case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532     AR=$ac_ct_AR
6533   fi
6534 fi
6535
6536 : ${AR=ar}
6537 : ${AR_FLAGS=cru}
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6550 $as_echo_n "checking for archiver @FILE support... " >&6; }
6551 if ${lt_cv_ar_at_file+:} false; then :
6552   $as_echo_n "(cached) " >&6
6553 else
6554   lt_cv_ar_at_file=no
6555    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h.  */
6557
6558 int
6559 main ()
6560 {
6561
6562   ;
6563   return 0;
6564 }
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567   echo conftest.$ac_objext > conftest.lst
6568       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6569       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6570   (eval $lt_ar_try) 2>&5
6571   ac_status=$?
6572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573   test $ac_status = 0; }
6574       if test "$ac_status" -eq 0; then
6575         # Ensure the archiver fails upon bogus file names.
6576         rm -f conftest.$ac_objext libconftest.a
6577         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6578   (eval $lt_ar_try) 2>&5
6579   ac_status=$?
6580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581   test $ac_status = 0; }
6582         if test "$ac_status" -ne 0; then
6583           lt_cv_ar_at_file=@
6584         fi
6585       fi
6586       rm -f conftest.* libconftest.a
6587
6588 fi
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590
6591 fi
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6593 $as_echo "$lt_cv_ar_at_file" >&6; }
6594
6595 if test "x$lt_cv_ar_at_file" = xno; then
6596   archiver_list_spec=
6597 else
6598   archiver_list_spec=$lt_cv_ar_at_file
6599 fi
6600
6601
6602
6603
6604
6605
6606
6607 if test -n "$ac_tool_prefix"; then
6608   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}strip; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_STRIP+:} false; then :
6613   $as_echo_n "(cached) " >&6
6614 else
6615   if test -n "$STRIP"; then
6616   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623     for ac_exec_ext in '' $ac_executable_extensions; do
6624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630   done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 STRIP=$ac_cv_prog_STRIP
6636 if test -n "$STRIP"; then
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6638 $as_echo "$STRIP" >&6; }
6639 else
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_STRIP"; then
6647   ac_ct_STRIP=$STRIP
6648   # Extract the first word of "strip", so it can be a program name with args.
6649 set dummy strip; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6653   $as_echo_n "(cached) " >&6
6654 else
6655   if test -n "$ac_ct_STRIP"; then
6656   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661   IFS=$as_save_IFS
6662   test -z "$as_dir" && as_dir=.
6663     for ac_exec_ext in '' $ac_executable_extensions; do
6664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665     ac_cv_prog_ac_ct_STRIP="strip"
6666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667     break 2
6668   fi
6669 done
6670   done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6676 if test -n "$ac_ct_STRIP"; then
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6678 $as_echo "$ac_ct_STRIP" >&6; }
6679 else
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6682 fi
6683
6684   if test "x$ac_ct_STRIP" = x; then
6685     STRIP=":"
6686   else
6687     case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693     STRIP=$ac_ct_STRIP
6694   fi
6695 else
6696   STRIP="$ac_cv_prog_STRIP"
6697 fi
6698
6699 test -z "$STRIP" && STRIP=:
6700
6701
6702
6703
6704
6705
6706 if test -n "$ac_tool_prefix"; then
6707   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_RANLIB+:} false; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   if test -n "$RANLIB"; then
6715   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722     for ac_exec_ext in '' $ac_executable_extensions; do
6723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726     break 2
6727   fi
6728 done
6729   done
6730 IFS=$as_save_IFS
6731
6732 fi
6733 fi
6734 RANLIB=$ac_cv_prog_RANLIB
6735 if test -n "$RANLIB"; then
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6737 $as_echo "$RANLIB" >&6; }
6738 else
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742
6743
6744 fi
6745 if test -z "$ac_cv_prog_RANLIB"; then
6746   ac_ct_RANLIB=$RANLIB
6747   # Extract the first word of "ranlib", so it can be a program name with args.
6748 set dummy ranlib; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   if test -n "$ac_ct_RANLIB"; then
6755   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762     for ac_exec_ext in '' $ac_executable_extensions; do
6763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764     ac_cv_prog_ac_ct_RANLIB="ranlib"
6765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769   done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6775 if test -n "$ac_ct_RANLIB"; then
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6777 $as_echo "$ac_ct_RANLIB" >&6; }
6778 else
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783   if test "x$ac_ct_RANLIB" = x; then
6784     RANLIB=":"
6785   else
6786     case $cross_compiling:$ac_tool_warned in
6787 yes:)
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790 ac_tool_warned=yes ;;
6791 esac
6792     RANLIB=$ac_ct_RANLIB
6793   fi
6794 else
6795   RANLIB="$ac_cv_prog_RANLIB"
6796 fi
6797
6798 test -z "$RANLIB" && RANLIB=:
6799
6800
6801
6802
6803
6804
6805 # Determine commands to create old-style static archives.
6806 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6807 old_postinstall_cmds='chmod 644 $oldlib'
6808 old_postuninstall_cmds=
6809
6810 if test -n "$RANLIB"; then
6811   case $host_os in
6812   openbsd*)
6813     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6814     ;;
6815   *)
6816     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6817     ;;
6818   esac
6819   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6820 fi
6821
6822 case $host_os in
6823   darwin*)
6824     lock_old_archive_extraction=yes ;;
6825   *)
6826     lock_old_archive_extraction=no ;;
6827 esac
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867 # If no C compiler was specified, use CC.
6868 LTCC=${LTCC-"$CC"}
6869
6870 # If no C compiler flags were specified, use CFLAGS.
6871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6872
6873 # Allow CC to be a program name with arguments.
6874 compiler=$CC
6875
6876
6877 # Check for command to grab the raw symbol name followed by C symbol from nm.
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6879 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6880 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883
6884 # These are sane defaults that work on at least a few old systems.
6885 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6886
6887 # Character class describing NM global symbol codes.
6888 symcode='[BCDEGRST]'
6889
6890 # Regexp to match symbols that can be accessed directly from C.
6891 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6892
6893 # Define system-specific variables.
6894 case $host_os in
6895 aix*)
6896   symcode='[BCDT]'
6897   ;;
6898 cygwin* | mingw* | pw32* | cegcc*)
6899   symcode='[ABCDGISTW]'
6900   ;;
6901 hpux*)
6902   if test "$host_cpu" = ia64; then
6903     symcode='[ABCDEGRST]'
6904   fi
6905   ;;
6906 irix* | nonstopux*)
6907   symcode='[BCDEGRST]'
6908   ;;
6909 osf*)
6910   symcode='[BCDEGQRST]'
6911   ;;
6912 solaris*)
6913   symcode='[BDRT]'
6914   ;;
6915 sco3.2v5*)
6916   symcode='[DT]'
6917   ;;
6918 sysv4.2uw2*)
6919   symcode='[DT]'
6920   ;;
6921 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6922   symcode='[ABDT]'
6923   ;;
6924 sysv4)
6925   symcode='[DFNSTU]'
6926   ;;
6927 esac
6928
6929 # If we're using GNU nm, then use its standard symbol codes.
6930 case `$NM -V 2>&1` in
6931 *GNU* | *'with BFD'*)
6932   symcode='[ABCDGIRSTW]' ;;
6933 esac
6934
6935 # Transform an extracted symbol line into a proper C declaration.
6936 # Some systems (esp. on ia64) link data and code symbols differently,
6937 # so use this general approach.
6938 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6939
6940 # Transform an extracted symbol line into symbol name and symbol address
6941 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6942 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6943
6944 # Handle CRLF in mingw tool chain
6945 opt_cr=
6946 case $build_os in
6947 mingw*)
6948   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6949   ;;
6950 esac
6951
6952 # Try without a prefix underscore, then with it.
6953 for ac_symprfx in "" "_"; do
6954
6955   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6956   symxfrm="\\1 $ac_symprfx\\2 \\2"
6957
6958   # Write the raw and C identifiers.
6959   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6960     # Fake it for dumpbin and say T for any non-static function
6961     # and D for any global variable.
6962     # Also find C++ and __fastcall symbols from MSVC++,
6963     # which start with @ or ?.
6964     lt_cv_sys_global_symbol_pipe="$AWK '"\
6965 "     {last_section=section; section=\$ 3};"\
6966 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6967 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6968 "     \$ 0!~/External *\|/{next};"\
6969 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6970 "     {if(hide[section]) next};"\
6971 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6972 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6973 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6974 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6975 "     ' prfx=^$ac_symprfx"
6976   else
6977     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6978   fi
6979   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6980
6981   # Check to see that the pipe works correctly.
6982   pipe_works=no
6983
6984   rm -f conftest*
6985   cat > conftest.$ac_ext <<_LT_EOF
6986 #ifdef __cplusplus
6987 extern "C" {
6988 #endif
6989 char nm_test_var;
6990 void nm_test_func(void);
6991 void nm_test_func(void){}
6992 #ifdef __cplusplus
6993 }
6994 #endif
6995 int main(){nm_test_var='a';nm_test_func();return(0);}
6996 _LT_EOF
6997
6998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999   (eval $ac_compile) 2>&5
7000   ac_status=$?
7001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002   test $ac_status = 0; }; then
7003     # Now try to grab the symbols.
7004     nlist=conftest.nm
7005     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7006   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7007   ac_status=$?
7008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009   test $ac_status = 0; } && test -s "$nlist"; then
7010       # Try sorting and uniquifying the output.
7011       if sort "$nlist" | uniq > "$nlist"T; then
7012         mv -f "$nlist"T "$nlist"
7013       else
7014         rm -f "$nlist"T
7015       fi
7016
7017       # Make sure that we snagged all the symbols we need.
7018       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7019         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7020           cat <<_LT_EOF > conftest.$ac_ext
7021 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7022 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7023 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7024    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7025 # define LT_DLSYM_CONST
7026 #elif defined(__osf__)
7027 /* This system does not cope well with relocations in const data.  */
7028 # define LT_DLSYM_CONST
7029 #else
7030 # define LT_DLSYM_CONST const
7031 #endif
7032
7033 #ifdef __cplusplus
7034 extern "C" {
7035 #endif
7036
7037 _LT_EOF
7038           # Now generate the symbol file.
7039           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7040
7041           cat <<_LT_EOF >> conftest.$ac_ext
7042
7043 /* The mapping between symbol names and symbols.  */
7044 LT_DLSYM_CONST struct {
7045   const char *name;
7046   void       *address;
7047 }
7048 lt__PROGRAM__LTX_preloaded_symbols[] =
7049 {
7050   { "@PROGRAM@", (void *) 0 },
7051 _LT_EOF
7052           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7053           cat <<\_LT_EOF >> conftest.$ac_ext
7054   {0, (void *) 0}
7055 };
7056
7057 /* This works around a problem in FreeBSD linker */
7058 #ifdef FREEBSD_WORKAROUND
7059 static const void *lt_preloaded_setup() {
7060   return lt__PROGRAM__LTX_preloaded_symbols;
7061 }
7062 #endif
7063
7064 #ifdef __cplusplus
7065 }
7066 #endif
7067 _LT_EOF
7068           # Now try linking the two files.
7069           mv conftest.$ac_objext conftstm.$ac_objext
7070           lt_globsym_save_LIBS=$LIBS
7071           lt_globsym_save_CFLAGS=$CFLAGS
7072           LIBS="conftstm.$ac_objext"
7073           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7074           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7075   (eval $ac_link) 2>&5
7076   ac_status=$?
7077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7079             pipe_works=yes
7080           fi
7081           LIBS=$lt_globsym_save_LIBS
7082           CFLAGS=$lt_globsym_save_CFLAGS
7083         else
7084           echo "cannot find nm_test_func in $nlist" >&5
7085         fi
7086       else
7087         echo "cannot find nm_test_var in $nlist" >&5
7088       fi
7089     else
7090       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7091     fi
7092   else
7093     echo "$progname: failed program was:" >&5
7094     cat conftest.$ac_ext >&5
7095   fi
7096   rm -rf conftest* conftst*
7097
7098   # Do not use the global_symbol_pipe unless it works.
7099   if test "$pipe_works" = yes; then
7100     break
7101   else
7102     lt_cv_sys_global_symbol_pipe=
7103   fi
7104 done
7105
7106 fi
7107
7108 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7109   lt_cv_sys_global_symbol_to_cdecl=
7110 fi
7111 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7113 $as_echo "failed" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7116 $as_echo "ok" >&6; }
7117 fi
7118
7119 # Response file support.
7120 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7121   nm_file_list_spec='@'
7122 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7123   nm_file_list_spec='@'
7124 fi
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7153 $as_echo_n "checking for sysroot... " >&6; }
7154
7155 # Check whether --with-sysroot was given.
7156 if test "${with_sysroot+set}" = set; then :
7157   withval=$with_sysroot;
7158 else
7159   with_sysroot=no
7160 fi
7161
7162
7163 lt_sysroot=
7164 case ${with_sysroot} in #(
7165  yes)
7166    if test "$GCC" = yes; then
7167      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7168    fi
7169    ;; #(
7170  /*)
7171    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7172    ;; #(
7173  no|'')
7174    ;; #(
7175  *)
7176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7177 $as_echo "${with_sysroot}" >&6; }
7178    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7179    ;;
7180 esac
7181
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7183 $as_echo "${lt_sysroot:-no}" >&6; }
7184
7185
7186
7187
7188
7189 # Check whether --enable-libtool-lock was given.
7190 if test "${enable_libtool_lock+set}" = set; then :
7191   enableval=$enable_libtool_lock;
7192 fi
7193
7194 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7195
7196 # Some flags need to be propagated to the compiler or linker for good
7197 # libtool support.
7198 case $host in
7199 ia64-*-hpux*)
7200   # Find out which ABI we are using.
7201   echo 'int i;' > conftest.$ac_ext
7202   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7203   (eval $ac_compile) 2>&5
7204   ac_status=$?
7205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206   test $ac_status = 0; }; then
7207     case `/usr/bin/file conftest.$ac_objext` in
7208       *ELF-32*)
7209         HPUX_IA64_MODE="32"
7210         ;;
7211       *ELF-64*)
7212         HPUX_IA64_MODE="64"
7213         ;;
7214     esac
7215   fi
7216   rm -rf conftest*
7217   ;;
7218 *-*-irix6*)
7219   # Find out which ABI we are using.
7220   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7221   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7222   (eval $ac_compile) 2>&5
7223   ac_status=$?
7224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225   test $ac_status = 0; }; then
7226     if test "$lt_cv_prog_gnu_ld" = yes; then
7227       case `/usr/bin/file conftest.$ac_objext` in
7228         *32-bit*)
7229           LD="${LD-ld} -melf32bsmip"
7230           ;;
7231         *N32*)
7232           LD="${LD-ld} -melf32bmipn32"
7233           ;;
7234         *64-bit*)
7235           LD="${LD-ld} -melf64bmip"
7236         ;;
7237       esac
7238     else
7239       case `/usr/bin/file conftest.$ac_objext` in
7240         *32-bit*)
7241           LD="${LD-ld} -32"
7242           ;;
7243         *N32*)
7244           LD="${LD-ld} -n32"
7245           ;;
7246         *64-bit*)
7247           LD="${LD-ld} -64"
7248           ;;
7249       esac
7250     fi
7251   fi
7252   rm -rf conftest*
7253   ;;
7254
7255 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7256 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7257   # Find out which ABI we are using.
7258   echo 'int i;' > conftest.$ac_ext
7259   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7260   (eval $ac_compile) 2>&5
7261   ac_status=$?
7262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7263   test $ac_status = 0; }; then
7264     case `/usr/bin/file conftest.o` in
7265       *32-bit*)
7266         case $host in
7267           x86_64-*kfreebsd*-gnu)
7268             LD="${LD-ld} -m elf_i386_fbsd"
7269             ;;
7270           x86_64-*linux*)
7271             case `/usr/bin/file conftest.o` in
7272               *x86-64*)
7273                 LD="${LD-ld} -m elf32_x86_64"
7274                 ;;
7275               *)
7276                 LD="${LD-ld} -m elf_i386"
7277                 ;;
7278             esac
7279             ;;
7280           powerpc64le-*)
7281             LD="${LD-ld} -m elf32lppclinux"
7282             ;;
7283           powerpc64-*)
7284             LD="${LD-ld} -m elf32ppclinux"
7285             ;;
7286           s390x-*linux*)
7287             LD="${LD-ld} -m elf_s390"
7288             ;;
7289           sparc64-*linux*)
7290             LD="${LD-ld} -m elf32_sparc"
7291             ;;
7292         esac
7293         ;;
7294       *64-bit*)
7295         case $host in
7296           x86_64-*kfreebsd*-gnu)
7297             LD="${LD-ld} -m elf_x86_64_fbsd"
7298             ;;
7299           x86_64-*linux*)
7300             LD="${LD-ld} -m elf_x86_64"
7301             ;;
7302           powerpcle-*)
7303             LD="${LD-ld} -m elf64lppc"
7304             ;;
7305           powerpc-*)
7306             LD="${LD-ld} -m elf64ppc"
7307             ;;
7308           s390*-*linux*|s390*-*tpf*)
7309             LD="${LD-ld} -m elf64_s390"
7310             ;;
7311           sparc*-*linux*)
7312             LD="${LD-ld} -m elf64_sparc"
7313             ;;
7314         esac
7315         ;;
7316     esac
7317   fi
7318   rm -rf conftest*
7319   ;;
7320
7321 *-*-sco3.2v5*)
7322   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7323   SAVE_CFLAGS="$CFLAGS"
7324   CFLAGS="$CFLAGS -belf"
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7326 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7327 if ${lt_cv_cc_needs_belf+:} false; then :
7328   $as_echo_n "(cached) " >&6
7329 else
7330   ac_ext=c
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
7336      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h.  */
7338
7339 int
7340 main ()
7341 {
7342
7343   ;
7344   return 0;
7345 }
7346 _ACEOF
7347 if ac_fn_c_try_link "$LINENO"; then :
7348   lt_cv_cc_needs_belf=yes
7349 else
7350   lt_cv_cc_needs_belf=no
7351 fi
7352 rm -f core conftest.err conftest.$ac_objext \
7353     conftest$ac_exeext conftest.$ac_ext
7354      ac_ext=c
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7362 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7363   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7364     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7365     CFLAGS="$SAVE_CFLAGS"
7366   fi
7367   ;;
7368 *-*solaris*)
7369   # Find out which ABI we are using.
7370   echo 'int i;' > conftest.$ac_ext
7371   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7372   (eval $ac_compile) 2>&5
7373   ac_status=$?
7374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7375   test $ac_status = 0; }; then
7376     case `/usr/bin/file conftest.o` in
7377     *64-bit*)
7378       case $lt_cv_prog_gnu_ld in
7379       yes*)
7380         case $host in
7381         i?86-*-solaris*)
7382           LD="${LD-ld} -m elf_x86_64"
7383           ;;
7384         sparc*-*-solaris*)
7385           LD="${LD-ld} -m elf64_sparc"
7386           ;;
7387         esac
7388         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7389         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7390           LD="${LD-ld}_sol2"
7391         fi
7392         ;;
7393       *)
7394         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7395           LD="${LD-ld} -64"
7396         fi
7397         ;;
7398       esac
7399       ;;
7400     esac
7401   fi
7402   rm -rf conftest*
7403   ;;
7404 esac
7405
7406 need_locks="$enable_libtool_lock"
7407
7408 if test -n "$ac_tool_prefix"; then
7409   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}mt; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7414   $as_echo_n "(cached) " >&6
7415 else
7416   if test -n "$MANIFEST_TOOL"; then
7417   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424     for ac_exec_ext in '' $ac_executable_extensions; do
7425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431   done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7437 if test -n "$MANIFEST_TOOL"; then
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7439 $as_echo "$MANIFEST_TOOL" >&6; }
7440 else
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445
7446 fi
7447 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7448   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7449   # Extract the first word of "mt", so it can be a program name with args.
7450 set dummy mt; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   if test -n "$ac_ct_MANIFEST_TOOL"; then
7457   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464     for ac_exec_ext in '' $ac_executable_extensions; do
7465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471   done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7477 if test -n "$ac_ct_MANIFEST_TOOL"; then
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7479 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7480 else
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 fi
7484
7485   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7486     MANIFEST_TOOL=":"
7487   else
7488     case $cross_compiling:$ac_tool_warned in
7489 yes:)
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492 ac_tool_warned=yes ;;
7493 esac
7494     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7495   fi
7496 else
7497   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7498 fi
7499
7500 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7502 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7503 if ${lt_cv_path_mainfest_tool+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   lt_cv_path_mainfest_tool=no
7507   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7508   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7509   cat conftest.err >&5
7510   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7511     lt_cv_path_mainfest_tool=yes
7512   fi
7513   rm -f conftest*
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7516 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7517 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7518   MANIFEST_TOOL=:
7519 fi
7520
7521
7522
7523
7524
7525
7526   case $host_os in
7527     rhapsody* | darwin*)
7528     if test -n "$ac_tool_prefix"; then
7529   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7530 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   if test -n "$DSYMUTIL"; then
7537   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542   IFS=$as_save_IFS
7543   test -z "$as_dir" && as_dir=.
7544     for ac_exec_ext in '' $ac_executable_extensions; do
7545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548     break 2
7549   fi
7550 done
7551   done
7552 IFS=$as_save_IFS
7553
7554 fi
7555 fi
7556 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7557 if test -n "$DSYMUTIL"; then
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7559 $as_echo "$DSYMUTIL" >&6; }
7560 else
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7563 fi
7564
7565
7566 fi
7567 if test -z "$ac_cv_prog_DSYMUTIL"; then
7568   ac_ct_DSYMUTIL=$DSYMUTIL
7569   # Extract the first word of "dsymutil", so it can be a program name with args.
7570 set dummy dsymutil; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7574   $as_echo_n "(cached) " >&6
7575 else
7576   if test -n "$ac_ct_DSYMUTIL"; then
7577   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584     for ac_exec_ext in '' $ac_executable_extensions; do
7585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591   done
7592 IFS=$as_save_IFS
7593
7594 fi
7595 fi
7596 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7597 if test -n "$ac_ct_DSYMUTIL"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7599 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605   if test "x$ac_ct_DSYMUTIL" = x; then
7606     DSYMUTIL=":"
7607   else
7608     case $cross_compiling:$ac_tool_warned in
7609 yes:)
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7612 ac_tool_warned=yes ;;
7613 esac
7614     DSYMUTIL=$ac_ct_DSYMUTIL
7615   fi
7616 else
7617   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7618 fi
7619
7620     if test -n "$ac_tool_prefix"; then
7621   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7622 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_prog_NMEDIT+:} false; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   if test -n "$NMEDIT"; then
7629   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634   IFS=$as_save_IFS
7635   test -z "$as_dir" && as_dir=.
7636     for ac_exec_ext in '' $ac_executable_extensions; do
7637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640     break 2
7641   fi
7642 done
7643   done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 NMEDIT=$ac_cv_prog_NMEDIT
7649 if test -n "$NMEDIT"; then
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7651 $as_echo "$NMEDIT" >&6; }
7652 else
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657
7658 fi
7659 if test -z "$ac_cv_prog_NMEDIT"; then
7660   ac_ct_NMEDIT=$NMEDIT
7661   # Extract the first word of "nmedit", so it can be a program name with args.
7662 set dummy nmedit; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668   if test -n "$ac_ct_NMEDIT"; then
7669   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676     for ac_exec_ext in '' $ac_executable_extensions; do
7677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683   done
7684 IFS=$as_save_IFS
7685
7686 fi
7687 fi
7688 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7689 if test -n "$ac_ct_NMEDIT"; then
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7691 $as_echo "$ac_ct_NMEDIT" >&6; }
7692 else
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697   if test "x$ac_ct_NMEDIT" = x; then
7698     NMEDIT=":"
7699   else
7700     case $cross_compiling:$ac_tool_warned in
7701 yes:)
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7704 ac_tool_warned=yes ;;
7705 esac
7706     NMEDIT=$ac_ct_NMEDIT
7707   fi
7708 else
7709   NMEDIT="$ac_cv_prog_NMEDIT"
7710 fi
7711
7712     if test -n "$ac_tool_prefix"; then
7713   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_LIPO+:} false; then :
7718   $as_echo_n "(cached) " >&6
7719 else
7720   if test -n "$LIPO"; then
7721   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728     for ac_exec_ext in '' $ac_executable_extensions; do
7729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735   done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 LIPO=$ac_cv_prog_LIPO
7741 if test -n "$LIPO"; then
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7743 $as_echo "$LIPO" >&6; }
7744 else
7745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748
7749
7750 fi
7751 if test -z "$ac_cv_prog_LIPO"; then
7752   ac_ct_LIPO=$LIPO
7753   # Extract the first word of "lipo", so it can be a program name with args.
7754 set dummy lipo; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   if test -n "$ac_ct_LIPO"; then
7761   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768     for ac_exec_ext in '' $ac_executable_extensions; do
7769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770     ac_cv_prog_ac_ct_LIPO="lipo"
7771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775   done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7781 if test -n "$ac_ct_LIPO"; then
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7783 $as_echo "$ac_ct_LIPO" >&6; }
7784 else
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789   if test "x$ac_ct_LIPO" = x; then
7790     LIPO=":"
7791   else
7792     case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7797 esac
7798     LIPO=$ac_ct_LIPO
7799   fi
7800 else
7801   LIPO="$ac_cv_prog_LIPO"
7802 fi
7803
7804     if test -n "$ac_tool_prefix"; then
7805   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}otool; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_OTOOL+:} false; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   if test -n "$OTOOL"; then
7813   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820     for ac_exec_ext in '' $ac_executable_extensions; do
7821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827   done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 OTOOL=$ac_cv_prog_OTOOL
7833 if test -n "$OTOOL"; then
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7835 $as_echo "$OTOOL" >&6; }
7836 else
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 fi
7843 if test -z "$ac_cv_prog_OTOOL"; then
7844   ac_ct_OTOOL=$OTOOL
7845   # Extract the first word of "otool", so it can be a program name with args.
7846 set dummy otool; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   if test -n "$ac_ct_OTOOL"; then
7853   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860     for ac_exec_ext in '' $ac_executable_extensions; do
7861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862     ac_cv_prog_ac_ct_OTOOL="otool"
7863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867   done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7873 if test -n "$ac_ct_OTOOL"; then
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7875 $as_echo "$ac_ct_OTOOL" >&6; }
7876 else
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 fi
7880
7881   if test "x$ac_ct_OTOOL" = x; then
7882     OTOOL=":"
7883   else
7884     case $cross_compiling:$ac_tool_warned in
7885 yes:)
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890     OTOOL=$ac_ct_OTOOL
7891   fi
7892 else
7893   OTOOL="$ac_cv_prog_OTOOL"
7894 fi
7895
7896     if test -n "$ac_tool_prefix"; then
7897   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_OTOOL64+:} false; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   if test -n "$OTOOL64"; then
7905   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912     for ac_exec_ext in '' $ac_executable_extensions; do
7913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919   done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 OTOOL64=$ac_cv_prog_OTOOL64
7925 if test -n "$OTOOL64"; then
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7927 $as_echo "$OTOOL64" >&6; }
7928 else
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933
7934 fi
7935 if test -z "$ac_cv_prog_OTOOL64"; then
7936   ac_ct_OTOOL64=$OTOOL64
7937   # Extract the first word of "otool64", so it can be a program name with args.
7938 set dummy otool64; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   if test -n "$ac_ct_OTOOL64"; then
7945   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952     for ac_exec_ext in '' $ac_executable_extensions; do
7953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954     ac_cv_prog_ac_ct_OTOOL64="otool64"
7955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959   done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7965 if test -n "$ac_ct_OTOOL64"; then
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7967 $as_echo "$ac_ct_OTOOL64" >&6; }
7968 else
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973   if test "x$ac_ct_OTOOL64" = x; then
7974     OTOOL64=":"
7975   else
7976     case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982     OTOOL64=$ac_ct_OTOOL64
7983   fi
7984 else
7985   OTOOL64="$ac_cv_prog_OTOOL64"
7986 fi
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8015 $as_echo_n "checking for -single_module linker flag... " >&6; }
8016 if ${lt_cv_apple_cc_single_mod+:} false; then :
8017   $as_echo_n "(cached) " >&6
8018 else
8019   lt_cv_apple_cc_single_mod=no
8020       if test -z "${LT_MULTI_MODULE}"; then
8021         # By default we will add the -single_module flag. You can override
8022         # by either setting the environment variable LT_MULTI_MODULE
8023         # non-empty at configure time, or by adding -multi_module to the
8024         # link flags.
8025         rm -rf libconftest.dylib*
8026         echo "int foo(void){return 1;}" > conftest.c
8027         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8028 -dynamiclib -Wl,-single_module conftest.c" >&5
8029         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8030           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8031         _lt_result=$?
8032         # If there is a non-empty error log, and "single_module"
8033         # appears in it, assume the flag caused a linker warning
8034         if test -s conftest.err && $GREP single_module conftest.err; then
8035           cat conftest.err >&5
8036         # Otherwise, if the output was created with a 0 exit code from
8037         # the compiler, it worked.
8038         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8039           lt_cv_apple_cc_single_mod=yes
8040         else
8041           cat conftest.err >&5
8042         fi
8043         rm -rf libconftest.dylib*
8044         rm -f conftest.*
8045       fi
8046 fi
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8048 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8049
8050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8051 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8052 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8053   $as_echo_n "(cached) " >&6
8054 else
8055   lt_cv_ld_exported_symbols_list=no
8056       save_LDFLAGS=$LDFLAGS
8057       echo "_main" > conftest.sym
8058       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8059       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h.  */
8061
8062 int
8063 main ()
8064 {
8065
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 if ac_fn_c_try_link "$LINENO"; then :
8071   lt_cv_ld_exported_symbols_list=yes
8072 else
8073   lt_cv_ld_exported_symbols_list=no
8074 fi
8075 rm -f core conftest.err conftest.$ac_objext \
8076     conftest$ac_exeext conftest.$ac_ext
8077         LDFLAGS="$save_LDFLAGS"
8078
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8081 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8082
8083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8084 $as_echo_n "checking for -force_load linker flag... " >&6; }
8085 if ${lt_cv_ld_force_load+:} false; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   lt_cv_ld_force_load=no
8089       cat > conftest.c << _LT_EOF
8090 int forced_loaded() { return 2;}
8091 _LT_EOF
8092       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8093       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8094       echo "$AR cru libconftest.a conftest.o" >&5
8095       $AR cru libconftest.a conftest.o 2>&5
8096       echo "$RANLIB libconftest.a" >&5
8097       $RANLIB libconftest.a 2>&5
8098       cat > conftest.c << _LT_EOF
8099 int main() { return 0;}
8100 _LT_EOF
8101       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8102       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8103       _lt_result=$?
8104       if test -s conftest.err && $GREP force_load conftest.err; then
8105         cat conftest.err >&5
8106       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8107         lt_cv_ld_force_load=yes
8108       else
8109         cat conftest.err >&5
8110       fi
8111         rm -f conftest.err libconftest.a conftest conftest.c
8112         rm -rf conftest.dSYM
8113
8114 fi
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8116 $as_echo "$lt_cv_ld_force_load" >&6; }
8117     case $host_os in
8118     rhapsody* | darwin1.[012])
8119       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8120     darwin1.*)
8121       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8122     darwin*) # darwin 5.x on
8123       # if running on 10.5 or later, the deployment target defaults
8124       # to the OS version, if on x86, and 10.4, the deployment
8125       # target defaults to 10.4. Don't you love it?
8126       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8127         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8128           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8129         10.[012]*)
8130           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8131         10.*)
8132           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8133       esac
8134     ;;
8135   esac
8136     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8137       _lt_dar_single_mod='$single_module'
8138     fi
8139     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8140       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8141     else
8142       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8143     fi
8144     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8145       _lt_dsymutil='~$DSYMUTIL $lib || :'
8146     else
8147       _lt_dsymutil=
8148     fi
8149     ;;
8150   esac
8151
8152 ac_ext=c
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8158 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8159 # On Suns, sometimes $CPP names a directory.
8160 if test -n "$CPP" && test -d "$CPP"; then
8161   CPP=
8162 fi
8163 if test -z "$CPP"; then
8164   if ${ac_cv_prog_CPP+:} false; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167       # Double quotes because CPP needs to be expanded
8168     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8169     do
8170       ac_preproc_ok=false
8171 for ac_c_preproc_warn_flag in '' yes
8172 do
8173   # Use a header file that comes with gcc, so configuring glibc
8174   # with a fresh cross-compiler works.
8175   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8176   # <limits.h> exists even on freestanding compilers.
8177   # On the NeXT, cc -E runs the code through the compiler's parser,
8178   # not just through cpp. "Syntax error" is here to catch this case.
8179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h.  */
8181 #ifdef __STDC__
8182 # include <limits.h>
8183 #else
8184 # include <assert.h>
8185 #endif
8186                      Syntax error
8187 _ACEOF
8188 if ac_fn_c_try_cpp "$LINENO"; then :
8189
8190 else
8191   # Broken: fails on valid input.
8192 continue
8193 fi
8194 rm -f conftest.err conftest.i conftest.$ac_ext
8195
8196   # OK, works on sane cases.  Now check whether nonexistent headers
8197   # can be detected and how.
8198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h.  */
8200 #include <ac_nonexistent.h>
8201 _ACEOF
8202 if ac_fn_c_try_cpp "$LINENO"; then :
8203   # Broken: success on invalid input.
8204 continue
8205 else
8206   # Passes both tests.
8207 ac_preproc_ok=:
8208 break
8209 fi
8210 rm -f conftest.err conftest.i conftest.$ac_ext
8211
8212 done
8213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8214 rm -f conftest.i conftest.err conftest.$ac_ext
8215 if $ac_preproc_ok; then :
8216   break
8217 fi
8218
8219     done
8220     ac_cv_prog_CPP=$CPP
8221
8222 fi
8223   CPP=$ac_cv_prog_CPP
8224 else
8225   ac_cv_prog_CPP=$CPP
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8228 $as_echo "$CPP" >&6; }
8229 ac_preproc_ok=false
8230 for ac_c_preproc_warn_flag in '' yes
8231 do
8232   # Use a header file that comes with gcc, so configuring glibc
8233   # with a fresh cross-compiler works.
8234   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8235   # <limits.h> exists even on freestanding compilers.
8236   # On the NeXT, cc -E runs the code through the compiler's parser,
8237   # not just through cpp. "Syntax error" is here to catch this case.
8238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h.  */
8240 #ifdef __STDC__
8241 # include <limits.h>
8242 #else
8243 # include <assert.h>
8244 #endif
8245                      Syntax error
8246 _ACEOF
8247 if ac_fn_c_try_cpp "$LINENO"; then :
8248
8249 else
8250   # Broken: fails on valid input.
8251 continue
8252 fi
8253 rm -f conftest.err conftest.i conftest.$ac_ext
8254
8255   # OK, works on sane cases.  Now check whether nonexistent headers
8256   # can be detected and how.
8257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h.  */
8259 #include <ac_nonexistent.h>
8260 _ACEOF
8261 if ac_fn_c_try_cpp "$LINENO"; then :
8262   # Broken: success on invalid input.
8263 continue
8264 else
8265   # Passes both tests.
8266 ac_preproc_ok=:
8267 break
8268 fi
8269 rm -f conftest.err conftest.i conftest.$ac_ext
8270
8271 done
8272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8273 rm -f conftest.i conftest.err conftest.$ac_ext
8274 if $ac_preproc_ok; then :
8275
8276 else
8277   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8279 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8280 See \`config.log' for more details" "$LINENO" 5; }
8281 fi
8282
8283 ac_ext=c
8284 ac_cpp='$CPP $CPPFLAGS'
8285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8288
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8291 $as_echo_n "checking for ANSI C header files... " >&6; }
8292 if ${ac_cv_header_stdc+:} false; then :
8293   $as_echo_n "(cached) " >&6
8294 else
8295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h.  */
8297 #include <stdlib.h>
8298 #include <stdarg.h>
8299 #include <string.h>
8300 #include <float.h>
8301
8302 int
8303 main ()
8304 {
8305
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311   ac_cv_header_stdc=yes
8312 else
8313   ac_cv_header_stdc=no
8314 fi
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316
8317 if test $ac_cv_header_stdc = yes; then
8318   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h.  */
8321 #include <string.h>
8322
8323 _ACEOF
8324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8325   $EGREP "memchr" >/dev/null 2>&1; then :
8326
8327 else
8328   ac_cv_header_stdc=no
8329 fi
8330 rm -f conftest*
8331
8332 fi
8333
8334 if test $ac_cv_header_stdc = yes; then
8335   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h.  */
8338 #include <stdlib.h>
8339
8340 _ACEOF
8341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8342   $EGREP "free" >/dev/null 2>&1; then :
8343
8344 else
8345   ac_cv_header_stdc=no
8346 fi
8347 rm -f conftest*
8348
8349 fi
8350
8351 if test $ac_cv_header_stdc = yes; then
8352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8353   if test "$cross_compiling" = yes; then :
8354   :
8355 else
8356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h.  */
8358 #include <ctype.h>
8359 #include <stdlib.h>
8360 #if ((' ' & 0x0FF) == 0x020)
8361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8363 #else
8364 # define ISLOWER(c) \
8365                    (('a' <= (c) && (c) <= 'i') \
8366                      || ('j' <= (c) && (c) <= 'r') \
8367                      || ('s' <= (c) && (c) <= 'z'))
8368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8369 #endif
8370
8371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8372 int
8373 main ()
8374 {
8375   int i;
8376   for (i = 0; i < 256; i++)
8377     if (XOR (islower (i), ISLOWER (i))
8378         || toupper (i) != TOUPPER (i))
8379       return 2;
8380   return 0;
8381 }
8382 _ACEOF
8383 if ac_fn_c_try_run "$LINENO"; then :
8384
8385 else
8386   ac_cv_header_stdc=no
8387 fi
8388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8389   conftest.$ac_objext conftest.beam conftest.$ac_ext
8390 fi
8391
8392 fi
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8395 $as_echo "$ac_cv_header_stdc" >&6; }
8396 if test $ac_cv_header_stdc = yes; then
8397
8398 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8399
8400 fi
8401
8402 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8403 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8404                   inttypes.h stdint.h unistd.h
8405 do :
8406   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8407 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8408 "
8409 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8410   cat >>confdefs.h <<_ACEOF
8411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8412 _ACEOF
8413
8414 fi
8415
8416 done
8417
8418
8419 for ac_header in dlfcn.h
8420 do :
8421   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8422 "
8423 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8424   cat >>confdefs.h <<_ACEOF
8425 #define HAVE_DLFCN_H 1
8426 _ACEOF
8427
8428 fi
8429
8430 done
8431
8432
8433
8434
8435
8436 # Set options
8437 # Check whether --enable-static was given.
8438 if test "${enable_static+set}" = set; then :
8439   enableval=$enable_static; p=${PACKAGE-default}
8440     case $enableval in
8441     yes) enable_static=yes ;;
8442     no) enable_static=no ;;
8443     *)
8444      enable_static=no
8445       # Look at the argument we got.  We use all the common list separators.
8446       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8447       for pkg in $enableval; do
8448         IFS="$lt_save_ifs"
8449         if test "X$pkg" = "X$p"; then
8450           enable_static=yes
8451         fi
8452       done
8453       IFS="$lt_save_ifs"
8454       ;;
8455     esac
8456 else
8457   enable_static=no
8458 fi
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469         enable_dlopen=no
8470
8471
8472   enable_win32_dll=no
8473
8474
8475             # Check whether --enable-shared was given.
8476 if test "${enable_shared+set}" = set; then :
8477   enableval=$enable_shared; p=${PACKAGE-default}
8478     case $enableval in
8479     yes) enable_shared=yes ;;
8480     no) enable_shared=no ;;
8481     *)
8482       enable_shared=no
8483       # Look at the argument we got.  We use all the common list separators.
8484       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8485       for pkg in $enableval; do
8486         IFS="$lt_save_ifs"
8487         if test "X$pkg" = "X$p"; then
8488           enable_shared=yes
8489         fi
8490       done
8491       IFS="$lt_save_ifs"
8492       ;;
8493     esac
8494 else
8495   enable_shared=yes
8496 fi
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508 # Check whether --with-pic was given.
8509 if test "${with_pic+set}" = set; then :
8510   withval=$with_pic; lt_p=${PACKAGE-default}
8511     case $withval in
8512     yes|no) pic_mode=$withval ;;
8513     *)
8514       pic_mode=default
8515       # Look at the argument we got.  We use all the common list separators.
8516       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8517       for lt_pkg in $withval; do
8518         IFS="$lt_save_ifs"
8519         if test "X$lt_pkg" = "X$lt_p"; then
8520           pic_mode=yes
8521         fi
8522       done
8523       IFS="$lt_save_ifs"
8524       ;;
8525     esac
8526 else
8527   pic_mode=default
8528 fi
8529
8530
8531 test -z "$pic_mode" && pic_mode=default
8532
8533
8534
8535
8536
8537
8538
8539   # Check whether --enable-fast-install was given.
8540 if test "${enable_fast_install+set}" = set; then :
8541   enableval=$enable_fast_install; p=${PACKAGE-default}
8542     case $enableval in
8543     yes) enable_fast_install=yes ;;
8544     no) enable_fast_install=no ;;
8545     *)
8546       enable_fast_install=no
8547       # Look at the argument we got.  We use all the common list separators.
8548       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8549       for pkg in $enableval; do
8550         IFS="$lt_save_ifs"
8551         if test "X$pkg" = "X$p"; then
8552           enable_fast_install=yes
8553         fi
8554       done
8555       IFS="$lt_save_ifs"
8556       ;;
8557     esac
8558 else
8559   enable_fast_install=yes
8560 fi
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572 # This can be used to rebuild libtool when needed
8573 LIBTOOL_DEPS="$ltmain"
8574
8575 # Always use our own libtool.
8576 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607 test -z "$LN_S" && LN_S="ln -s"
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622 if test -n "${ZSH_VERSION+set}" ; then
8623    setopt NO_GLOB_SUBST
8624 fi
8625
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8627 $as_echo_n "checking for objdir... " >&6; }
8628 if ${lt_cv_objdir+:} false; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   rm -f .libs 2>/dev/null
8632 mkdir .libs 2>/dev/null
8633 if test -d .libs; then
8634   lt_cv_objdir=.libs
8635 else
8636   # MS-DOS does not allow filenames that begin with a dot.
8637   lt_cv_objdir=_libs
8638 fi
8639 rmdir .libs 2>/dev/null
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8642 $as_echo "$lt_cv_objdir" >&6; }
8643 objdir=$lt_cv_objdir
8644
8645
8646
8647
8648
8649 cat >>confdefs.h <<_ACEOF
8650 #define LT_OBJDIR "$lt_cv_objdir/"
8651 _ACEOF
8652
8653
8654
8655
8656 case $host_os in
8657 aix3*)
8658   # AIX sometimes has problems with the GCC collect2 program.  For some
8659   # reason, if we set the COLLECT_NAMES environment variable, the problems
8660   # vanish in a puff of smoke.
8661   if test "X${COLLECT_NAMES+set}" != Xset; then
8662     COLLECT_NAMES=
8663     export COLLECT_NAMES
8664   fi
8665   ;;
8666 esac
8667
8668 # Global variables:
8669 ofile=libtool
8670 can_build_shared=yes
8671
8672 # All known linkers require a `.a' archive for static linking (except MSVC,
8673 # which needs '.lib').
8674 libext=a
8675
8676 with_gnu_ld="$lt_cv_prog_gnu_ld"
8677
8678 old_CC="$CC"
8679 old_CFLAGS="$CFLAGS"
8680
8681 # Set sane defaults for various variables
8682 test -z "$CC" && CC=cc
8683 test -z "$LTCC" && LTCC=$CC
8684 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8685 test -z "$LD" && LD=ld
8686 test -z "$ac_objext" && ac_objext=o
8687
8688 for cc_temp in $compiler""; do
8689   case $cc_temp in
8690     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8691     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8692     \-*) ;;
8693     *) break;;
8694   esac
8695 done
8696 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8697
8698
8699 # Only perform the check for file, if the check method requires it
8700 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8701 case $deplibs_check_method in
8702 file_magic*)
8703   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8705 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8706 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8707   $as_echo_n "(cached) " >&6
8708 else
8709   case $MAGIC_CMD in
8710 [\\/*] |  ?:[\\/]*)
8711   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8712   ;;
8713 *)
8714   lt_save_MAGIC_CMD="$MAGIC_CMD"
8715   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8716   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8717   for ac_dir in $ac_dummy; do
8718     IFS="$lt_save_ifs"
8719     test -z "$ac_dir" && ac_dir=.
8720     if test -f $ac_dir/${ac_tool_prefix}file; then
8721       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8722       if test -n "$file_magic_test_file"; then
8723         case $deplibs_check_method in
8724         "file_magic "*)
8725           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8726           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8727           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8728             $EGREP "$file_magic_regex" > /dev/null; then
8729             :
8730           else
8731             cat <<_LT_EOF 1>&2
8732
8733 *** Warning: the command libtool uses to detect shared libraries,
8734 *** $file_magic_cmd, produces output that libtool cannot recognize.
8735 *** The result is that libtool may fail to recognize shared libraries
8736 *** as such.  This will affect the creation of libtool libraries that
8737 *** depend on shared libraries, but programs linked with such libtool
8738 *** libraries will work regardless of this problem.  Nevertheless, you
8739 *** may want to report the problem to your system manager and/or to
8740 *** bug-libtool@gnu.org
8741
8742 _LT_EOF
8743           fi ;;
8744         esac
8745       fi
8746       break
8747     fi
8748   done
8749   IFS="$lt_save_ifs"
8750   MAGIC_CMD="$lt_save_MAGIC_CMD"
8751   ;;
8752 esac
8753 fi
8754
8755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8756 if test -n "$MAGIC_CMD"; then
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8758 $as_echo "$MAGIC_CMD" >&6; }
8759 else
8760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8762 fi
8763
8764
8765
8766
8767
8768 if test -z "$lt_cv_path_MAGIC_CMD"; then
8769   if test -n "$ac_tool_prefix"; then
8770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8771 $as_echo_n "checking for file... " >&6; }
8772 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8773   $as_echo_n "(cached) " >&6
8774 else
8775   case $MAGIC_CMD in
8776 [\\/*] |  ?:[\\/]*)
8777   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8778   ;;
8779 *)
8780   lt_save_MAGIC_CMD="$MAGIC_CMD"
8781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8782   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8783   for ac_dir in $ac_dummy; do
8784     IFS="$lt_save_ifs"
8785     test -z "$ac_dir" && ac_dir=.
8786     if test -f $ac_dir/file; then
8787       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8788       if test -n "$file_magic_test_file"; then
8789         case $deplibs_check_method in
8790         "file_magic "*)
8791           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8792           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8793           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8794             $EGREP "$file_magic_regex" > /dev/null; then
8795             :
8796           else
8797             cat <<_LT_EOF 1>&2
8798
8799 *** Warning: the command libtool uses to detect shared libraries,
8800 *** $file_magic_cmd, produces output that libtool cannot recognize.
8801 *** The result is that libtool may fail to recognize shared libraries
8802 *** as such.  This will affect the creation of libtool libraries that
8803 *** depend on shared libraries, but programs linked with such libtool
8804 *** libraries will work regardless of this problem.  Nevertheless, you
8805 *** may want to report the problem to your system manager and/or to
8806 *** bug-libtool@gnu.org
8807
8808 _LT_EOF
8809           fi ;;
8810         esac
8811       fi
8812       break
8813     fi
8814   done
8815   IFS="$lt_save_ifs"
8816   MAGIC_CMD="$lt_save_MAGIC_CMD"
8817   ;;
8818 esac
8819 fi
8820
8821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8822 if test -n "$MAGIC_CMD"; then
8823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8824 $as_echo "$MAGIC_CMD" >&6; }
8825 else
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830
8831   else
8832     MAGIC_CMD=:
8833   fi
8834 fi
8835
8836   fi
8837   ;;
8838 esac
8839
8840 # Use C for the default configuration in the libtool script
8841
8842 lt_save_CC="$CC"
8843 ac_ext=c
8844 ac_cpp='$CPP $CPPFLAGS'
8845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8848
8849
8850 # Source file extension for C test sources.
8851 ac_ext=c
8852
8853 # Object file extension for compiled C test sources.
8854 objext=o
8855 objext=$objext
8856
8857 # Code to be used in simple compile tests
8858 lt_simple_compile_test_code="int some_variable = 0;"
8859
8860 # Code to be used in simple link tests
8861 lt_simple_link_test_code='int main(){return(0);}'
8862
8863
8864
8865
8866
8867
8868
8869 # If no C compiler was specified, use CC.
8870 LTCC=${LTCC-"$CC"}
8871
8872 # If no C compiler flags were specified, use CFLAGS.
8873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8874
8875 # Allow CC to be a program name with arguments.
8876 compiler=$CC
8877
8878 # Save the default compiler, since it gets overwritten when the other
8879 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8880 compiler_DEFAULT=$CC
8881
8882 # save warnings/boilerplate of simple test code
8883 ac_outfile=conftest.$ac_objext
8884 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8885 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8886 _lt_compiler_boilerplate=`cat conftest.err`
8887 $RM conftest*
8888
8889 ac_outfile=conftest.$ac_objext
8890 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8891 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8892 _lt_linker_boilerplate=`cat conftest.err`
8893 $RM -r conftest*
8894
8895
8896 ## CAVEAT EMPTOR:
8897 ## There is no encapsulation within the following macros, do not change
8898 ## the running order or otherwise move them around unless you know exactly
8899 ## what you are doing...
8900 if test -n "$compiler"; then
8901
8902 lt_prog_compiler_no_builtin_flag=
8903
8904 if test "$GCC" = yes; then
8905   case $cc_basename in
8906   nvcc*)
8907     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8908   *)
8909     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8910   esac
8911
8912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8913 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8914 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8915   $as_echo_n "(cached) " >&6
8916 else
8917   lt_cv_prog_compiler_rtti_exceptions=no
8918    ac_outfile=conftest.$ac_objext
8919    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8920    lt_compiler_flag="-fno-rtti -fno-exceptions"
8921    # Insert the option either (1) after the last *FLAGS variable, or
8922    # (2) before a word containing "conftest.", or (3) at the end.
8923    # Note that $ac_compile itself does not contain backslashes and begins
8924    # with a dollar sign (not a hyphen), so the echo should work correctly.
8925    # The option is referenced via a variable to avoid confusing sed.
8926    lt_compile=`echo "$ac_compile" | $SED \
8927    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8929    -e 's:$: $lt_compiler_flag:'`
8930    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8931    (eval "$lt_compile" 2>conftest.err)
8932    ac_status=$?
8933    cat conftest.err >&5
8934    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935    if (exit $ac_status) && test -s "$ac_outfile"; then
8936      # The compiler can only warn and ignore the option if not recognized
8937      # So say no if there are warnings other than the usual output.
8938      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8939      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8940      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8941        lt_cv_prog_compiler_rtti_exceptions=yes
8942      fi
8943    fi
8944    $RM conftest*
8945
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8948 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8949
8950 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8951     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8952 else
8953     :
8954 fi
8955
8956 fi
8957
8958
8959
8960
8961
8962
8963   lt_prog_compiler_wl=
8964 lt_prog_compiler_pic=
8965 lt_prog_compiler_static=
8966
8967
8968   if test "$GCC" = yes; then
8969     lt_prog_compiler_wl='-Wl,'
8970     lt_prog_compiler_static='-static'
8971
8972     case $host_os in
8973       aix*)
8974       # All AIX code is PIC.
8975       if test "$host_cpu" = ia64; then
8976         # AIX 5 now supports IA64 processor
8977         lt_prog_compiler_static='-Bstatic'
8978       fi
8979       ;;
8980
8981     amigaos*)
8982       case $host_cpu in
8983       powerpc)
8984             # see comment about AmigaOS4 .so support
8985             lt_prog_compiler_pic='-fPIC'
8986         ;;
8987       m68k)
8988             # FIXME: we need at least 68020 code to build shared libraries, but
8989             # adding the `-m68020' flag to GCC prevents building anything better,
8990             # like `-m68040'.
8991             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8992         ;;
8993       esac
8994       ;;
8995
8996     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8997       # PIC is the default for these OSes.
8998       ;;
8999
9000     mingw* | cygwin* | pw32* | os2* | cegcc*)
9001       # This hack is so that the source file can tell whether it is being
9002       # built for inclusion in a dll (and should export symbols for example).
9003       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9004       # (--disable-auto-import) libraries
9005       lt_prog_compiler_pic='-DDLL_EXPORT'
9006       ;;
9007
9008     darwin* | rhapsody*)
9009       # PIC is the default on this platform
9010       # Common symbols not allowed in MH_DYLIB files
9011       lt_prog_compiler_pic='-fno-common'
9012       ;;
9013
9014     haiku*)
9015       # PIC is the default for Haiku.
9016       # The "-static" flag exists, but is broken.
9017       lt_prog_compiler_static=
9018       ;;
9019
9020     hpux*)
9021       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9022       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9023       # sets the default TLS model and affects inlining.
9024       case $host_cpu in
9025       hppa*64*)
9026         # +Z the default
9027         ;;
9028       *)
9029         lt_prog_compiler_pic='-fPIC'
9030         ;;
9031       esac
9032       ;;
9033
9034     interix[3-9]*)
9035       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9036       # Instead, we relocate shared libraries at runtime.
9037       ;;
9038
9039     msdosdjgpp*)
9040       # Just because we use GCC doesn't mean we suddenly get shared libraries
9041       # on systems that don't support them.
9042       lt_prog_compiler_can_build_shared=no
9043       enable_shared=no
9044       ;;
9045
9046     *nto* | *qnx*)
9047       # QNX uses GNU C++, but need to define -shared option too, otherwise
9048       # it will coredump.
9049       lt_prog_compiler_pic='-fPIC -shared'
9050       ;;
9051
9052     sysv4*MP*)
9053       if test -d /usr/nec; then
9054         lt_prog_compiler_pic=-Kconform_pic
9055       fi
9056       ;;
9057
9058     *)
9059       lt_prog_compiler_pic='-fPIC'
9060       ;;
9061     esac
9062
9063     case $cc_basename in
9064     nvcc*) # Cuda Compiler Driver 2.2
9065       lt_prog_compiler_wl='-Xlinker '
9066       if test -n "$lt_prog_compiler_pic"; then
9067         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9068       fi
9069       ;;
9070     esac
9071   else
9072     # PORTME Check for flag to pass linker flags through the system compiler.
9073     case $host_os in
9074     aix*)
9075       lt_prog_compiler_wl='-Wl,'
9076       if test "$host_cpu" = ia64; then
9077         # AIX 5 now supports IA64 processor
9078         lt_prog_compiler_static='-Bstatic'
9079       else
9080         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9081       fi
9082       ;;
9083
9084     mingw* | cygwin* | pw32* | os2* | cegcc*)
9085       # This hack is so that the source file can tell whether it is being
9086       # built for inclusion in a dll (and should export symbols for example).
9087       lt_prog_compiler_pic='-DDLL_EXPORT'
9088       ;;
9089
9090     hpux9* | hpux10* | hpux11*)
9091       lt_prog_compiler_wl='-Wl,'
9092       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9093       # not for PA HP-UX.
9094       case $host_cpu in
9095       hppa*64*|ia64*)
9096         # +Z the default
9097         ;;
9098       *)
9099         lt_prog_compiler_pic='+Z'
9100         ;;
9101       esac
9102       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9103       lt_prog_compiler_static='${wl}-a ${wl}archive'
9104       ;;
9105
9106     irix5* | irix6* | nonstopux*)
9107       lt_prog_compiler_wl='-Wl,'
9108       # PIC (with -KPIC) is the default.
9109       lt_prog_compiler_static='-non_shared'
9110       ;;
9111
9112     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9113       case $cc_basename in
9114       # old Intel for x86_64 which still supported -KPIC.
9115       ecc*)
9116         lt_prog_compiler_wl='-Wl,'
9117         lt_prog_compiler_pic='-KPIC'
9118         lt_prog_compiler_static='-static'
9119         ;;
9120       # icc used to be incompatible with GCC.
9121       # ICC 10 doesn't accept -KPIC any more.
9122       icc* | ifort*)
9123         lt_prog_compiler_wl='-Wl,'
9124         lt_prog_compiler_pic='-fPIC'
9125         lt_prog_compiler_static='-static'
9126         ;;
9127       # Lahey Fortran 8.1.
9128       lf95*)
9129         lt_prog_compiler_wl='-Wl,'
9130         lt_prog_compiler_pic='--shared'
9131         lt_prog_compiler_static='--static'
9132         ;;
9133       nagfor*)
9134         # NAG Fortran compiler
9135         lt_prog_compiler_wl='-Wl,-Wl,,'
9136         lt_prog_compiler_pic='-PIC'
9137         lt_prog_compiler_static='-Bstatic'
9138         ;;
9139       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9140         # Portland Group compilers (*not* the Pentium gcc compiler,
9141         # which looks to be a dead project)
9142         lt_prog_compiler_wl='-Wl,'
9143         lt_prog_compiler_pic='-fpic'
9144         lt_prog_compiler_static='-Bstatic'
9145         ;;
9146       ccc*)
9147         lt_prog_compiler_wl='-Wl,'
9148         # All Alpha code is PIC.
9149         lt_prog_compiler_static='-non_shared'
9150         ;;
9151       xl* | bgxl* | bgf* | mpixl*)
9152         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9153         lt_prog_compiler_wl='-Wl,'
9154         lt_prog_compiler_pic='-qpic'
9155         lt_prog_compiler_static='-qstaticlink'
9156         ;;
9157       *)
9158         case `$CC -V 2>&1 | sed 5q` in
9159         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9160           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9161           lt_prog_compiler_pic='-KPIC'
9162           lt_prog_compiler_static='-Bstatic'
9163           lt_prog_compiler_wl=''
9164           ;;
9165         *Sun\ F* | *Sun*Fortran*)
9166           lt_prog_compiler_pic='-KPIC'
9167           lt_prog_compiler_static='-Bstatic'
9168           lt_prog_compiler_wl='-Qoption ld '
9169           ;;
9170         *Sun\ C*)
9171           # Sun C 5.9
9172           lt_prog_compiler_pic='-KPIC'
9173           lt_prog_compiler_static='-Bstatic'
9174           lt_prog_compiler_wl='-Wl,'
9175           ;;
9176         *Intel*\ [CF]*Compiler*)
9177           lt_prog_compiler_wl='-Wl,'
9178           lt_prog_compiler_pic='-fPIC'
9179           lt_prog_compiler_static='-static'
9180           ;;
9181         *Portland\ Group*)
9182           lt_prog_compiler_wl='-Wl,'
9183           lt_prog_compiler_pic='-fpic'
9184           lt_prog_compiler_static='-Bstatic'
9185           ;;
9186         esac
9187         ;;
9188       esac
9189       ;;
9190
9191     newsos6)
9192       lt_prog_compiler_pic='-KPIC'
9193       lt_prog_compiler_static='-Bstatic'
9194       ;;
9195
9196     *nto* | *qnx*)
9197       # QNX uses GNU C++, but need to define -shared option too, otherwise
9198       # it will coredump.
9199       lt_prog_compiler_pic='-fPIC -shared'
9200       ;;
9201
9202     osf3* | osf4* | osf5*)
9203       lt_prog_compiler_wl='-Wl,'
9204       # All OSF/1 code is PIC.
9205       lt_prog_compiler_static='-non_shared'
9206       ;;
9207
9208     rdos*)
9209       lt_prog_compiler_static='-non_shared'
9210       ;;
9211
9212     solaris*)
9213       lt_prog_compiler_pic='-KPIC'
9214       lt_prog_compiler_static='-Bstatic'
9215       case $cc_basename in
9216       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9217         lt_prog_compiler_wl='-Qoption ld ';;
9218       *)
9219         lt_prog_compiler_wl='-Wl,';;
9220       esac
9221       ;;
9222
9223     sunos4*)
9224       lt_prog_compiler_wl='-Qoption ld '
9225       lt_prog_compiler_pic='-PIC'
9226       lt_prog_compiler_static='-Bstatic'
9227       ;;
9228
9229     sysv4 | sysv4.2uw2* | sysv4.3*)
9230       lt_prog_compiler_wl='-Wl,'
9231       lt_prog_compiler_pic='-KPIC'
9232       lt_prog_compiler_static='-Bstatic'
9233       ;;
9234
9235     sysv4*MP*)
9236       if test -d /usr/nec ;then
9237         lt_prog_compiler_pic='-Kconform_pic'
9238         lt_prog_compiler_static='-Bstatic'
9239       fi
9240       ;;
9241
9242     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9243       lt_prog_compiler_wl='-Wl,'
9244       lt_prog_compiler_pic='-KPIC'
9245       lt_prog_compiler_static='-Bstatic'
9246       ;;
9247
9248     unicos*)
9249       lt_prog_compiler_wl='-Wl,'
9250       lt_prog_compiler_can_build_shared=no
9251       ;;
9252
9253     uts4*)
9254       lt_prog_compiler_pic='-pic'
9255       lt_prog_compiler_static='-Bstatic'
9256       ;;
9257
9258     *)
9259       lt_prog_compiler_can_build_shared=no
9260       ;;
9261     esac
9262   fi
9263
9264 case $host_os in
9265   # For platforms which do not support PIC, -DPIC is meaningless:
9266   *djgpp*)
9267     lt_prog_compiler_pic=
9268     ;;
9269   *)
9270     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9271     ;;
9272 esac
9273
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9275 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9276 if ${lt_cv_prog_compiler_pic+:} false; then :
9277   $as_echo_n "(cached) " >&6
9278 else
9279   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9280 fi
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9282 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9283 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9284
9285 #
9286 # Check to make sure the PIC flag actually works.
9287 #
9288 if test -n "$lt_prog_compiler_pic"; then
9289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9290 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9291 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9292   $as_echo_n "(cached) " >&6
9293 else
9294   lt_cv_prog_compiler_pic_works=no
9295    ac_outfile=conftest.$ac_objext
9296    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9297    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9298    # Insert the option either (1) after the last *FLAGS variable, or
9299    # (2) before a word containing "conftest.", or (3) at the end.
9300    # Note that $ac_compile itself does not contain backslashes and begins
9301    # with a dollar sign (not a hyphen), so the echo should work correctly.
9302    # The option is referenced via a variable to avoid confusing sed.
9303    lt_compile=`echo "$ac_compile" | $SED \
9304    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9305    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9306    -e 's:$: $lt_compiler_flag:'`
9307    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9308    (eval "$lt_compile" 2>conftest.err)
9309    ac_status=$?
9310    cat conftest.err >&5
9311    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312    if (exit $ac_status) && test -s "$ac_outfile"; then
9313      # The compiler can only warn and ignore the option if not recognized
9314      # So say no if there are warnings other than the usual output.
9315      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9316      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9318        lt_cv_prog_compiler_pic_works=yes
9319      fi
9320    fi
9321    $RM conftest*
9322
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9325 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9326
9327 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9328     case $lt_prog_compiler_pic in
9329      "" | " "*) ;;
9330      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9331      esac
9332 else
9333     lt_prog_compiler_pic=
9334      lt_prog_compiler_can_build_shared=no
9335 fi
9336
9337 fi
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349 #
9350 # Check to make sure the static flag actually works.
9351 #
9352 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9354 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9355 if ${lt_cv_prog_compiler_static_works+:} false; then :
9356   $as_echo_n "(cached) " >&6
9357 else
9358   lt_cv_prog_compiler_static_works=no
9359    save_LDFLAGS="$LDFLAGS"
9360    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9361    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9362    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9363      # The linker can only warn and ignore the option if not recognized
9364      # So say no if there are warnings
9365      if test -s conftest.err; then
9366        # Append any errors to the config.log.
9367        cat conftest.err 1>&5
9368        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9369        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9370        if diff conftest.exp conftest.er2 >/dev/null; then
9371          lt_cv_prog_compiler_static_works=yes
9372        fi
9373      else
9374        lt_cv_prog_compiler_static_works=yes
9375      fi
9376    fi
9377    $RM -r conftest*
9378    LDFLAGS="$save_LDFLAGS"
9379
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9382 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9383
9384 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9385     :
9386 else
9387     lt_prog_compiler_static=
9388 fi
9389
9390
9391
9392
9393
9394
9395
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9398 if ${lt_cv_prog_compiler_c_o+:} false; then :
9399   $as_echo_n "(cached) " >&6
9400 else
9401   lt_cv_prog_compiler_c_o=no
9402    $RM -r conftest 2>/dev/null
9403    mkdir conftest
9404    cd conftest
9405    mkdir out
9406    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9407
9408    lt_compiler_flag="-o out/conftest2.$ac_objext"
9409    # Insert the option either (1) after the last *FLAGS variable, or
9410    # (2) before a word containing "conftest.", or (3) at the end.
9411    # Note that $ac_compile itself does not contain backslashes and begins
9412    # with a dollar sign (not a hyphen), so the echo should work correctly.
9413    lt_compile=`echo "$ac_compile" | $SED \
9414    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9415    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9416    -e 's:$: $lt_compiler_flag:'`
9417    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9418    (eval "$lt_compile" 2>out/conftest.err)
9419    ac_status=$?
9420    cat out/conftest.err >&5
9421    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9423    then
9424      # The compiler can only warn and ignore the option if not recognized
9425      # So say no if there are warnings
9426      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9427      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9428      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9429        lt_cv_prog_compiler_c_o=yes
9430      fi
9431    fi
9432    chmod u+w . 2>&5
9433    $RM conftest*
9434    # SGI C++ compiler will create directory out/ii_files/ for
9435    # template instantiation
9436    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9437    $RM out/* && rmdir out
9438    cd ..
9439    $RM -r conftest
9440    $RM conftest*
9441
9442 fi
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9444 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9445
9446
9447
9448
9449
9450
9451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9452 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9453 if ${lt_cv_prog_compiler_c_o+:} false; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   lt_cv_prog_compiler_c_o=no
9457    $RM -r conftest 2>/dev/null
9458    mkdir conftest
9459    cd conftest
9460    mkdir out
9461    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9462
9463    lt_compiler_flag="-o out/conftest2.$ac_objext"
9464    # Insert the option either (1) after the last *FLAGS variable, or
9465    # (2) before a word containing "conftest.", or (3) at the end.
9466    # Note that $ac_compile itself does not contain backslashes and begins
9467    # with a dollar sign (not a hyphen), so the echo should work correctly.
9468    lt_compile=`echo "$ac_compile" | $SED \
9469    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9470    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9471    -e 's:$: $lt_compiler_flag:'`
9472    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9473    (eval "$lt_compile" 2>out/conftest.err)
9474    ac_status=$?
9475    cat out/conftest.err >&5
9476    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9478    then
9479      # The compiler can only warn and ignore the option if not recognized
9480      # So say no if there are warnings
9481      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9482      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9483      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9484        lt_cv_prog_compiler_c_o=yes
9485      fi
9486    fi
9487    chmod u+w . 2>&5
9488    $RM conftest*
9489    # SGI C++ compiler will create directory out/ii_files/ for
9490    # template instantiation
9491    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9492    $RM out/* && rmdir out
9493    cd ..
9494    $RM -r conftest
9495    $RM conftest*
9496
9497 fi
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9499 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9500
9501
9502
9503
9504 hard_links="nottested"
9505 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9506   # do not overwrite the value of need_locks provided by the user
9507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9508 $as_echo_n "checking if we can lock with hard links... " >&6; }
9509   hard_links=yes
9510   $RM conftest*
9511   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9512   touch conftest.a
9513   ln conftest.a conftest.b 2>&5 || hard_links=no
9514   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9516 $as_echo "$hard_links" >&6; }
9517   if test "$hard_links" = no; then
9518     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9519 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9520     need_locks=warn
9521   fi
9522 else
9523   need_locks=no
9524 fi
9525
9526
9527
9528
9529
9530
9531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9532 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9533
9534   runpath_var=
9535   allow_undefined_flag=
9536   always_export_symbols=no
9537   archive_cmds=
9538   archive_expsym_cmds=
9539   compiler_needs_object=no
9540   enable_shared_with_static_runtimes=no
9541   export_dynamic_flag_spec=
9542   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9543   hardcode_automatic=no
9544   hardcode_direct=no
9545   hardcode_direct_absolute=no
9546   hardcode_libdir_flag_spec=
9547   hardcode_libdir_separator=
9548   hardcode_minus_L=no
9549   hardcode_shlibpath_var=unsupported
9550   inherit_rpath=no
9551   link_all_deplibs=unknown
9552   module_cmds=
9553   module_expsym_cmds=
9554   old_archive_from_new_cmds=
9555   old_archive_from_expsyms_cmds=
9556   thread_safe_flag_spec=
9557   whole_archive_flag_spec=
9558   # include_expsyms should be a list of space-separated symbols to be *always*
9559   # included in the symbol list
9560   include_expsyms=
9561   # exclude_expsyms can be an extended regexp of symbols to exclude
9562   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9563   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9564   # as well as any symbol that contains `d'.
9565   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9566   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9567   # platforms (ab)use it in PIC code, but their linkers get confused if
9568   # the symbol is explicitly referenced.  Since portable code cannot
9569   # rely on this symbol name, it's probably fine to never include it in
9570   # preloaded symbol tables.
9571   # Exclude shared library initialization/finalization symbols.
9572   extract_expsyms_cmds=
9573
9574   case $host_os in
9575   cygwin* | mingw* | pw32* | cegcc*)
9576     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9577     # When not using gcc, we currently assume that we are using
9578     # Microsoft Visual C++.
9579     if test "$GCC" != yes; then
9580       with_gnu_ld=no
9581     fi
9582     ;;
9583   interix*)
9584     # we just hope/assume this is gcc and not c89 (= MSVC++)
9585     with_gnu_ld=yes
9586     ;;
9587   openbsd*)
9588     with_gnu_ld=no
9589     ;;
9590   linux* | k*bsd*-gnu | gnu*)
9591     link_all_deplibs=no
9592     ;;
9593   esac
9594
9595   ld_shlibs=yes
9596
9597   # On some targets, GNU ld is compatible enough with the native linker
9598   # that we're better off using the native interface for both.
9599   lt_use_gnu_ld_interface=no
9600   if test "$with_gnu_ld" = yes; then
9601     case $host_os in
9602       aix*)
9603         # The AIX port of GNU ld has always aspired to compatibility
9604         # with the native linker.  However, as the warning in the GNU ld
9605         # block says, versions before 2.19.5* couldn't really create working
9606         # shared libraries, regardless of the interface used.
9607         case `$LD -v 2>&1` in
9608           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9609           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9610           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9611           *)
9612             lt_use_gnu_ld_interface=yes
9613             ;;
9614         esac
9615         ;;
9616       *)
9617         lt_use_gnu_ld_interface=yes
9618         ;;
9619     esac
9620   fi
9621
9622   if test "$lt_use_gnu_ld_interface" = yes; then
9623     # If archive_cmds runs LD, not CC, wlarc should be empty
9624     wlarc='${wl}'
9625
9626     # Set some defaults for GNU ld with shared library support. These
9627     # are reset later if shared libraries are not supported. Putting them
9628     # here allows them to be overridden if necessary.
9629     runpath_var=LD_RUN_PATH
9630     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631     export_dynamic_flag_spec='${wl}--export-dynamic'
9632     # ancient GNU ld didn't support --whole-archive et. al.
9633     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9634       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9635     else
9636       whole_archive_flag_spec=
9637     fi
9638     supports_anon_versioning=no
9639     case `$LD -v 2>&1` in
9640       *GNU\ gold*) supports_anon_versioning=yes ;;
9641       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9642       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9643       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9644       *\ 2.11.*) ;; # other 2.11 versions
9645       *) supports_anon_versioning=yes ;;
9646     esac
9647
9648     # See if GNU ld supports shared libraries.
9649     case $host_os in
9650     aix[3-9]*)
9651       # On AIX/PPC, the GNU linker is very broken
9652       if test "$host_cpu" != ia64; then
9653         ld_shlibs=no
9654         cat <<_LT_EOF 1>&2
9655
9656 *** Warning: the GNU linker, at least up to release 2.19, is reported
9657 *** to be unable to reliably create shared libraries on AIX.
9658 *** Therefore, libtool is disabling shared libraries support.  If you
9659 *** really care for shared libraries, you may want to install binutils
9660 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9661 *** You will then need to restart the configuration process.
9662
9663 _LT_EOF
9664       fi
9665       ;;
9666
9667     amigaos*)
9668       case $host_cpu in
9669       powerpc)
9670             # see comment about AmigaOS4 .so support
9671             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9672             archive_expsym_cmds=''
9673         ;;
9674       m68k)
9675             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)'
9676             hardcode_libdir_flag_spec='-L$libdir'
9677             hardcode_minus_L=yes
9678         ;;
9679       esac
9680       ;;
9681
9682     beos*)
9683       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9684         allow_undefined_flag=unsupported
9685         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9686         # support --undefined.  This deserves some investigation.  FIXME
9687         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9688       else
9689         ld_shlibs=no
9690       fi
9691       ;;
9692
9693     cygwin* | mingw* | pw32* | cegcc*)
9694       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9695       # as there is no search path for DLLs.
9696       hardcode_libdir_flag_spec='-L$libdir'
9697       export_dynamic_flag_spec='${wl}--export-all-symbols'
9698       allow_undefined_flag=unsupported
9699       always_export_symbols=no
9700       enable_shared_with_static_runtimes=yes
9701       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'
9702       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9703
9704       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9705         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9706         # If the export-symbols file already is a .def file (1st line
9707         # is EXPORTS), use it as is; otherwise, prepend...
9708         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9709           cp $export_symbols $output_objdir/$soname.def;
9710         else
9711           echo EXPORTS > $output_objdir/$soname.def;
9712           cat $export_symbols >> $output_objdir/$soname.def;
9713         fi~
9714         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9715       else
9716         ld_shlibs=no
9717       fi
9718       ;;
9719
9720     haiku*)
9721       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9722       link_all_deplibs=yes
9723       ;;
9724
9725     interix[3-9]*)
9726       hardcode_direct=no
9727       hardcode_shlibpath_var=no
9728       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9729       export_dynamic_flag_spec='${wl}-E'
9730       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9731       # Instead, shared libraries are loaded at an image base (0x10000000 by
9732       # default) and relocated if they conflict, which is a slow very memory
9733       # consuming and fragmenting process.  To avoid this, we pick a random,
9734       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9735       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9736       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9737       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'
9738       ;;
9739
9740     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9741       tmp_diet=no
9742       if test "$host_os" = linux-dietlibc; then
9743         case $cc_basename in
9744           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9745         esac
9746       fi
9747       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9748          && test "$tmp_diet" = no
9749       then
9750         tmp_addflag=' $pic_flag'
9751         tmp_sharedflag='-shared'
9752         case $cc_basename,$host_cpu in
9753         pgcc*)                          # Portland Group C compiler
9754           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'
9755           tmp_addflag=' $pic_flag'
9756           ;;
9757         pgf77* | pgf90* | pgf95* | pgfortran*)
9758                                         # Portland Group f77 and f90 compilers
9759           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'
9760           tmp_addflag=' $pic_flag -Mnomain' ;;
9761         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9762           tmp_addflag=' -i_dynamic' ;;
9763         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9764           tmp_addflag=' -i_dynamic -nofor_main' ;;
9765         ifc* | ifort*)                  # Intel Fortran compiler
9766           tmp_addflag=' -nofor_main' ;;
9767         lf95*)                          # Lahey Fortran 8.1
9768           whole_archive_flag_spec=
9769           tmp_sharedflag='--shared' ;;
9770         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9771           tmp_sharedflag='-qmkshrobj'
9772           tmp_addflag= ;;
9773         nvcc*)  # Cuda Compiler Driver 2.2
9774           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'
9775           compiler_needs_object=yes
9776           ;;
9777         esac
9778         case `$CC -V 2>&1 | sed 5q` in
9779         *Sun\ C*)                       # Sun C 5.9
9780           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'
9781           compiler_needs_object=yes
9782           tmp_sharedflag='-G' ;;
9783         *Sun\ F*)                       # Sun Fortran 8.3
9784           tmp_sharedflag='-G' ;;
9785         esac
9786         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787
9788         if test "x$supports_anon_versioning" = xyes; then
9789           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9790             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9791             echo "local: *; };" >> $output_objdir/$libname.ver~
9792             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9793         fi
9794
9795         case $cc_basename in
9796         xlf* | bgf* | bgxlf* | mpixlf*)
9797           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9798           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9799           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9800           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9801           if test "x$supports_anon_versioning" = xyes; then
9802             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9803               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9804               echo "local: *; };" >> $output_objdir/$libname.ver~
9805               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9806           fi
9807           ;;
9808         esac
9809       else
9810         ld_shlibs=no
9811       fi
9812       ;;
9813
9814     netbsd* | netbsdelf*-gnu)
9815       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9816         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9817         wlarc=
9818       else
9819         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9821       fi
9822       ;;
9823
9824     solaris*)
9825       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9826         ld_shlibs=no
9827         cat <<_LT_EOF 1>&2
9828
9829 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9830 *** create shared libraries on Solaris systems.  Therefore, libtool
9831 *** is disabling shared libraries support.  We urge you to upgrade GNU
9832 *** binutils to release 2.9.1 or newer.  Another option is to modify
9833 *** your PATH or compiler configuration so that the native linker is
9834 *** used, and then restart.
9835
9836 _LT_EOF
9837       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9838         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9839         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9840       else
9841         ld_shlibs=no
9842       fi
9843       ;;
9844
9845     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9846       case `$LD -v 2>&1` in
9847         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9848         ld_shlibs=no
9849         cat <<_LT_EOF 1>&2
9850
9851 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9852 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9853 *** is disabling shared libraries support.  We urge you to upgrade GNU
9854 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9855 *** your PATH or compiler configuration so that the native linker is
9856 *** used, and then restart.
9857
9858 _LT_EOF
9859         ;;
9860         *)
9861           # For security reasons, it is highly recommended that you always
9862           # use absolute paths for naming shared libraries, and exclude the
9863           # DT_RUNPATH tag from executables and libraries.  But doing so
9864           # requires that you compile everything twice, which is a pain.
9865           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9866             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9867             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9869           else
9870             ld_shlibs=no
9871           fi
9872         ;;
9873       esac
9874       ;;
9875
9876     sunos4*)
9877       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9878       wlarc=
9879       hardcode_direct=yes
9880       hardcode_shlibpath_var=no
9881       ;;
9882
9883     *)
9884       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9885         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9887       else
9888         ld_shlibs=no
9889       fi
9890       ;;
9891     esac
9892
9893     if test "$ld_shlibs" = no; then
9894       runpath_var=
9895       hardcode_libdir_flag_spec=
9896       export_dynamic_flag_spec=
9897       whole_archive_flag_spec=
9898     fi
9899   else
9900     # PORTME fill in a description of your system's linker (not GNU ld)
9901     case $host_os in
9902     aix3*)
9903       allow_undefined_flag=unsupported
9904       always_export_symbols=yes
9905       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'
9906       # Note: this linker hardcodes the directories in LIBPATH if there
9907       # are no directories specified by -L.
9908       hardcode_minus_L=yes
9909       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9910         # Neither direct hardcoding nor static linking is supported with a
9911         # broken collect2.
9912         hardcode_direct=unsupported
9913       fi
9914       ;;
9915
9916     aix[4-9]*)
9917       if test "$host_cpu" = ia64; then
9918         # On IA64, the linker does run time linking by default, so we don't
9919         # have to do anything special.
9920         aix_use_runtimelinking=no
9921         exp_sym_flag='-Bexport'
9922         no_entry_flag=""
9923       else
9924         # If we're using GNU nm, then we don't want the "-C" option.
9925         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9926         # Also, AIX nm treats weak defined symbols like other global
9927         # defined symbols, whereas GNU nm marks them as "W".
9928         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9929           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9930         else
9931           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9932         fi
9933         aix_use_runtimelinking=no
9934
9935         # Test if we are trying to use run time linking or normal
9936         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9937         # need to do runtime linking.
9938         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9939           for ld_flag in $LDFLAGS; do
9940           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9941             aix_use_runtimelinking=yes
9942             break
9943           fi
9944           done
9945           ;;
9946         esac
9947
9948         exp_sym_flag='-bexport'
9949         no_entry_flag='-bnoentry'
9950       fi
9951
9952       # When large executables or shared objects are built, AIX ld can
9953       # have problems creating the table of contents.  If linking a library
9954       # or program results in "error TOC overflow" add -mminimal-toc to
9955       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9956       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9957
9958       archive_cmds=''
9959       hardcode_direct=yes
9960       hardcode_direct_absolute=yes
9961       hardcode_libdir_separator=':'
9962       link_all_deplibs=yes
9963       file_list_spec='${wl}-f,'
9964
9965       if test "$GCC" = yes; then
9966         case $host_os in aix4.[012]|aix4.[012].*)
9967         # We only want to do this on AIX 4.2 and lower, the check
9968         # below for broken collect2 doesn't work under 4.3+
9969           collect2name=`${CC} -print-prog-name=collect2`
9970           if test -f "$collect2name" &&
9971            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9972           then
9973           # We have reworked collect2
9974           :
9975           else
9976           # We have old collect2
9977           hardcode_direct=unsupported
9978           # It fails to find uninstalled libraries when the uninstalled
9979           # path is not listed in the libpath.  Setting hardcode_minus_L
9980           # to unsupported forces relinking
9981           hardcode_minus_L=yes
9982           hardcode_libdir_flag_spec='-L$libdir'
9983           hardcode_libdir_separator=
9984           fi
9985           ;;
9986         esac
9987         shared_flag='-shared'
9988         if test "$aix_use_runtimelinking" = yes; then
9989           shared_flag="$shared_flag "'${wl}-G'
9990         fi
9991         link_all_deplibs=no
9992       else
9993         # not using gcc
9994         if test "$host_cpu" = ia64; then
9995         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9996         # chokes on -Wl,-G. The following line is correct:
9997           shared_flag='-G'
9998         else
9999           if test "$aix_use_runtimelinking" = yes; then
10000             shared_flag='${wl}-G'
10001           else
10002             shared_flag='${wl}-bM:SRE'
10003           fi
10004         fi
10005       fi
10006
10007       export_dynamic_flag_spec='${wl}-bexpall'
10008       # It seems that -bexpall does not export symbols beginning with
10009       # underscore (_), so it is better to generate a list of symbols to export.
10010       always_export_symbols=yes
10011       if test "$aix_use_runtimelinking" = yes; then
10012         # Warning - without using the other runtime loading flags (-brtl),
10013         # -berok will link without error, but may produce a broken library.
10014         allow_undefined_flag='-berok'
10015         # Determine the default libpath from the value encoded in an
10016         # empty executable.
10017         if test "${lt_cv_aix_libpath+set}" = set; then
10018   aix_libpath=$lt_cv_aix_libpath
10019 else
10020   if ${lt_cv_aix_libpath_+:} false; then :
10021   $as_echo_n "(cached) " >&6
10022 else
10023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h.  */
10025
10026 int
10027 main ()
10028 {
10029
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 if ac_fn_c_try_link "$LINENO"; then :
10035
10036   lt_aix_libpath_sed='
10037       /Import File Strings/,/^$/ {
10038           /^0/ {
10039               s/^0  *\([^ ]*\) *$/\1/
10040               p
10041           }
10042       }'
10043   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10044   # Check for a 64-bit object if we didn't find anything.
10045   if test -z "$lt_cv_aix_libpath_"; then
10046     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10047   fi
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext \
10050     conftest$ac_exeext conftest.$ac_ext
10051   if test -z "$lt_cv_aix_libpath_"; then
10052     lt_cv_aix_libpath_="/usr/lib:/lib"
10053   fi
10054
10055 fi
10056
10057   aix_libpath=$lt_cv_aix_libpath_
10058 fi
10059
10060         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10061         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10062       else
10063         if test "$host_cpu" = ia64; then
10064           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10065           allow_undefined_flag="-z nodefs"
10066           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"
10067         else
10068          # Determine the default libpath from the value encoded in an
10069          # empty executable.
10070          if test "${lt_cv_aix_libpath+set}" = set; then
10071   aix_libpath=$lt_cv_aix_libpath
10072 else
10073   if ${lt_cv_aix_libpath_+:} false; then :
10074   $as_echo_n "(cached) " >&6
10075 else
10076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h.  */
10078
10079 int
10080 main ()
10081 {
10082
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 if ac_fn_c_try_link "$LINENO"; then :
10088
10089   lt_aix_libpath_sed='
10090       /Import File Strings/,/^$/ {
10091           /^0/ {
10092               s/^0  *\([^ ]*\) *$/\1/
10093               p
10094           }
10095       }'
10096   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10097   # Check for a 64-bit object if we didn't find anything.
10098   if test -z "$lt_cv_aix_libpath_"; then
10099     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10100   fi
10101 fi
10102 rm -f core conftest.err conftest.$ac_objext \
10103     conftest$ac_exeext conftest.$ac_ext
10104   if test -z "$lt_cv_aix_libpath_"; then
10105     lt_cv_aix_libpath_="/usr/lib:/lib"
10106   fi
10107
10108 fi
10109
10110   aix_libpath=$lt_cv_aix_libpath_
10111 fi
10112
10113          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10114           # Warning - without using the other run time loading flags,
10115           # -berok will link without error, but may produce a broken library.
10116           no_undefined_flag=' ${wl}-bernotok'
10117           allow_undefined_flag=' ${wl}-berok'
10118           if test "$with_gnu_ld" = yes; then
10119             # We only use this code for GNU lds that support --whole-archive.
10120             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10121           else
10122             # Exported symbols can be pulled into shared objects from archives
10123             whole_archive_flag_spec='$convenience'
10124           fi
10125           archive_cmds_need_lc=yes
10126           # This is similar to how AIX traditionally builds its shared libraries.
10127           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10128         fi
10129       fi
10130       ;;
10131
10132     amigaos*)
10133       case $host_cpu in
10134       powerpc)
10135             # see comment about AmigaOS4 .so support
10136             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10137             archive_expsym_cmds=''
10138         ;;
10139       m68k)
10140             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)'
10141             hardcode_libdir_flag_spec='-L$libdir'
10142             hardcode_minus_L=yes
10143         ;;
10144       esac
10145       ;;
10146
10147     bsdi[45]*)
10148       export_dynamic_flag_spec=-rdynamic
10149       ;;
10150
10151     cygwin* | mingw* | pw32* | cegcc*)
10152       # When not using gcc, we currently assume that we are using
10153       # Microsoft Visual C++.
10154       # hardcode_libdir_flag_spec is actually meaningless, as there is
10155       # no search path for DLLs.
10156       case $cc_basename in
10157       cl*)
10158         # Native MSVC
10159         hardcode_libdir_flag_spec=' '
10160         allow_undefined_flag=unsupported
10161         always_export_symbols=yes
10162         file_list_spec='@'
10163         # Tell ltmain to make .lib files, not .a files.
10164         libext=lib
10165         # Tell ltmain to make .dll files, not .so files.
10166         shrext_cmds=".dll"
10167         # FIXME: Setting linknames here is a bad hack.
10168         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10169         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10170             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10171           else
10172             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10173           fi~
10174           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10175           linknames='
10176         # The linker will not automatically build a static lib if we build a DLL.
10177         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10178         enable_shared_with_static_runtimes=yes
10179         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10180         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10181         # Don't use ranlib
10182         old_postinstall_cmds='chmod 644 $oldlib'
10183         postlink_cmds='lt_outputfile="@OUTPUT@"~
10184           lt_tool_outputfile="@TOOL_OUTPUT@"~
10185           case $lt_outputfile in
10186             *.exe|*.EXE) ;;
10187             *)
10188               lt_outputfile="$lt_outputfile.exe"
10189               lt_tool_outputfile="$lt_tool_outputfile.exe"
10190               ;;
10191           esac~
10192           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10193             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10194             $RM "$lt_outputfile.manifest";
10195           fi'
10196         ;;
10197       *)
10198         # Assume MSVC wrapper
10199         hardcode_libdir_flag_spec=' '
10200         allow_undefined_flag=unsupported
10201         # Tell ltmain to make .lib files, not .a files.
10202         libext=lib
10203         # Tell ltmain to make .dll files, not .so files.
10204         shrext_cmds=".dll"
10205         # FIXME: Setting linknames here is a bad hack.
10206         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10207         # The linker will automatically build a .lib file if we build a DLL.
10208         old_archive_from_new_cmds='true'
10209         # FIXME: Should let the user specify the lib program.
10210         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10211         enable_shared_with_static_runtimes=yes
10212         ;;
10213       esac
10214       ;;
10215
10216     darwin* | rhapsody*)
10217
10218
10219   archive_cmds_need_lc=no
10220   hardcode_direct=no
10221   hardcode_automatic=yes
10222   hardcode_shlibpath_var=unsupported
10223   if test "$lt_cv_ld_force_load" = "yes"; then
10224     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\"`'
10225
10226   else
10227     whole_archive_flag_spec=''
10228   fi
10229   link_all_deplibs=yes
10230   allow_undefined_flag="$_lt_dar_allow_undefined"
10231   case $cc_basename in
10232      ifort*) _lt_dar_can_shared=yes ;;
10233      *) _lt_dar_can_shared=$GCC ;;
10234   esac
10235   if test "$_lt_dar_can_shared" = "yes"; then
10236     output_verbose_link_cmd=func_echo_all
10237     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10238     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10239     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}"
10240     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}"
10241
10242   else
10243   ld_shlibs=no
10244   fi
10245
10246       ;;
10247
10248     dgux*)
10249       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250       hardcode_libdir_flag_spec='-L$libdir'
10251       hardcode_shlibpath_var=no
10252       ;;
10253
10254     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10255     # support.  Future versions do this automatically, but an explicit c++rt0.o
10256     # does not break anything, and helps significantly (at the cost of a little
10257     # extra space).
10258     freebsd2.2*)
10259       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10260       hardcode_libdir_flag_spec='-R$libdir'
10261       hardcode_direct=yes
10262       hardcode_shlibpath_var=no
10263       ;;
10264
10265     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10266     freebsd2.*)
10267       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10268       hardcode_direct=yes
10269       hardcode_minus_L=yes
10270       hardcode_shlibpath_var=no
10271       ;;
10272
10273     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10274     freebsd* | dragonfly*)
10275       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10276       hardcode_libdir_flag_spec='-R$libdir'
10277       hardcode_direct=yes
10278       hardcode_shlibpath_var=no
10279       ;;
10280
10281     hpux9*)
10282       if test "$GCC" = yes; then
10283         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10284       else
10285         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10286       fi
10287       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10288       hardcode_libdir_separator=:
10289       hardcode_direct=yes
10290
10291       # hardcode_minus_L: Not really in the search PATH,
10292       # but as the default location of the library.
10293       hardcode_minus_L=yes
10294       export_dynamic_flag_spec='${wl}-E'
10295       ;;
10296
10297     hpux10*)
10298       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10299         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10300       else
10301         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10302       fi
10303       if test "$with_gnu_ld" = no; then
10304         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10305         hardcode_libdir_separator=:
10306         hardcode_direct=yes
10307         hardcode_direct_absolute=yes
10308         export_dynamic_flag_spec='${wl}-E'
10309         # hardcode_minus_L: Not really in the search PATH,
10310         # but as the default location of the library.
10311         hardcode_minus_L=yes
10312       fi
10313       ;;
10314
10315     hpux11*)
10316       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10317         case $host_cpu in
10318         hppa*64*)
10319           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10320           ;;
10321         ia64*)
10322           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10323           ;;
10324         *)
10325           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10326           ;;
10327         esac
10328       else
10329         case $host_cpu in
10330         hppa*64*)
10331           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10332           ;;
10333         ia64*)
10334           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10335           ;;
10336         *)
10337
10338           # Older versions of the 11.00 compiler do not understand -b yet
10339           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10340           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10341 $as_echo_n "checking if $CC understands -b... " >&6; }
10342 if ${lt_cv_prog_compiler__b+:} false; then :
10343   $as_echo_n "(cached) " >&6
10344 else
10345   lt_cv_prog_compiler__b=no
10346    save_LDFLAGS="$LDFLAGS"
10347    LDFLAGS="$LDFLAGS -b"
10348    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10349    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10350      # The linker can only warn and ignore the option if not recognized
10351      # So say no if there are warnings
10352      if test -s conftest.err; then
10353        # Append any errors to the config.log.
10354        cat conftest.err 1>&5
10355        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10356        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10357        if diff conftest.exp conftest.er2 >/dev/null; then
10358          lt_cv_prog_compiler__b=yes
10359        fi
10360      else
10361        lt_cv_prog_compiler__b=yes
10362      fi
10363    fi
10364    $RM -r conftest*
10365    LDFLAGS="$save_LDFLAGS"
10366
10367 fi
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10369 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10370
10371 if test x"$lt_cv_prog_compiler__b" = xyes; then
10372     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10373 else
10374     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10375 fi
10376
10377           ;;
10378         esac
10379       fi
10380       if test "$with_gnu_ld" = no; then
10381         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10382         hardcode_libdir_separator=:
10383
10384         case $host_cpu in
10385         hppa*64*|ia64*)
10386           hardcode_direct=no
10387           hardcode_shlibpath_var=no
10388           ;;
10389         *)
10390           hardcode_direct=yes
10391           hardcode_direct_absolute=yes
10392           export_dynamic_flag_spec='${wl}-E'
10393
10394           # hardcode_minus_L: Not really in the search PATH,
10395           # but as the default location of the library.
10396           hardcode_minus_L=yes
10397           ;;
10398         esac
10399       fi
10400       ;;
10401
10402     irix5* | irix6* | nonstopux*)
10403       if test "$GCC" = yes; then
10404         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'
10405         # Try to use the -exported_symbol ld option, if it does not
10406         # work, assume that -exports_file does not work either and
10407         # implicitly export all symbols.
10408         # This should be the same for all languages, so no per-tag cache variable.
10409         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10410 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10411 if ${lt_cv_irix_exported_symbol+:} false; then :
10412   $as_echo_n "(cached) " >&6
10413 else
10414   save_LDFLAGS="$LDFLAGS"
10415            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10416            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h.  */
10418 int foo (void) { return 0; }
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421   lt_cv_irix_exported_symbol=yes
10422 else
10423   lt_cv_irix_exported_symbol=no
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext \
10426     conftest$ac_exeext conftest.$ac_ext
10427            LDFLAGS="$save_LDFLAGS"
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10430 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10431         if test "$lt_cv_irix_exported_symbol" = yes; then
10432           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'
10433         fi
10434       else
10435         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'
10436         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'
10437       fi
10438       archive_cmds_need_lc='no'
10439       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10440       hardcode_libdir_separator=:
10441       inherit_rpath=yes
10442       link_all_deplibs=yes
10443       ;;
10444
10445     netbsd* | netbsdelf*-gnu)
10446       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10447         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10448       else
10449         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10450       fi
10451       hardcode_libdir_flag_spec='-R$libdir'
10452       hardcode_direct=yes
10453       hardcode_shlibpath_var=no
10454       ;;
10455
10456     newsos6)
10457       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458       hardcode_direct=yes
10459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10460       hardcode_libdir_separator=:
10461       hardcode_shlibpath_var=no
10462       ;;
10463
10464     *nto* | *qnx*)
10465       ;;
10466
10467     openbsd*)
10468       if test -f /usr/libexec/ld.so; then
10469         hardcode_direct=yes
10470         hardcode_shlibpath_var=no
10471         hardcode_direct_absolute=yes
10472         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10473           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10474           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10475           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10476           export_dynamic_flag_spec='${wl}-E'
10477         else
10478           case $host_os in
10479            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10480              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10481              hardcode_libdir_flag_spec='-R$libdir'
10482              ;;
10483            *)
10484              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10485              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10486              ;;
10487           esac
10488         fi
10489       else
10490         ld_shlibs=no
10491       fi
10492       ;;
10493
10494     os2*)
10495       hardcode_libdir_flag_spec='-L$libdir'
10496       hardcode_minus_L=yes
10497       allow_undefined_flag=unsupported
10498       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10499       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10500       ;;
10501
10502     osf3*)
10503       if test "$GCC" = yes; then
10504         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10505         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'
10506       else
10507         allow_undefined_flag=' -expect_unresolved \*'
10508         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'
10509       fi
10510       archive_cmds_need_lc='no'
10511       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10512       hardcode_libdir_separator=:
10513       ;;
10514
10515     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10516       if test "$GCC" = yes; then
10517         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10518         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'
10519         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10520       else
10521         allow_undefined_flag=' -expect_unresolved \*'
10522         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'
10523         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~
10524         $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'
10525
10526         # Both c and cxx compiler support -rpath directly
10527         hardcode_libdir_flag_spec='-rpath $libdir'
10528       fi
10529       archive_cmds_need_lc='no'
10530       hardcode_libdir_separator=:
10531       ;;
10532
10533     solaris*)
10534       no_undefined_flag=' -z defs'
10535       if test "$GCC" = yes; then
10536         wlarc='${wl}'
10537         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10538         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10539           $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'
10540       else
10541         case `$CC -V 2>&1` in
10542         *"Compilers 5.0"*)
10543           wlarc=''
10544           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10546           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10547           ;;
10548         *)
10549           wlarc='${wl}'
10550           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10551           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10552           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10553           ;;
10554         esac
10555       fi
10556       hardcode_libdir_flag_spec='-R$libdir'
10557       hardcode_shlibpath_var=no
10558       case $host_os in
10559       solaris2.[0-5] | solaris2.[0-5].*) ;;
10560       *)
10561         # The compiler driver will combine and reorder linker options,
10562         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10563         # but is careful enough not to reorder.
10564         # Supported since Solaris 2.6 (maybe 2.5.1?)
10565         if test "$GCC" = yes; then
10566           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10567         else
10568           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10569         fi
10570         ;;
10571       esac
10572       link_all_deplibs=yes
10573       ;;
10574
10575     sunos4*)
10576       if test "x$host_vendor" = xsequent; then
10577         # Use $CC to link under sequent, because it throws in some extra .o
10578         # files that make .init and .fini sections work.
10579         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10580       else
10581         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10582       fi
10583       hardcode_libdir_flag_spec='-L$libdir'
10584       hardcode_direct=yes
10585       hardcode_minus_L=yes
10586       hardcode_shlibpath_var=no
10587       ;;
10588
10589     sysv4)
10590       case $host_vendor in
10591         sni)
10592           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593           hardcode_direct=yes # is this really true???
10594         ;;
10595         siemens)
10596           ## LD is ld it makes a PLAMLIB
10597           ## CC just makes a GrossModule.
10598           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10599           reload_cmds='$CC -r -o $output$reload_objs'
10600           hardcode_direct=no
10601         ;;
10602         motorola)
10603           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10604           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10605         ;;
10606       esac
10607       runpath_var='LD_RUN_PATH'
10608       hardcode_shlibpath_var=no
10609       ;;
10610
10611     sysv4.3*)
10612       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613       hardcode_shlibpath_var=no
10614       export_dynamic_flag_spec='-Bexport'
10615       ;;
10616
10617     sysv4*MP*)
10618       if test -d /usr/nec; then
10619         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10620         hardcode_shlibpath_var=no
10621         runpath_var=LD_RUN_PATH
10622         hardcode_runpath_var=yes
10623         ld_shlibs=yes
10624       fi
10625       ;;
10626
10627     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10628       no_undefined_flag='${wl}-z,text'
10629       archive_cmds_need_lc=no
10630       hardcode_shlibpath_var=no
10631       runpath_var='LD_RUN_PATH'
10632
10633       if test "$GCC" = yes; then
10634         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10635         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636       else
10637         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639       fi
10640       ;;
10641
10642     sysv5* | sco3.2v5* | sco5v6*)
10643       # Note: We can NOT use -z defs as we might desire, because we do not
10644       # link with -lc, and that would cause any symbols used from libc to
10645       # always be unresolved, which means just about no library would
10646       # ever link correctly.  If we're not using GNU ld we use -z text
10647       # though, which does catch some bad symbols but isn't as heavy-handed
10648       # as -z defs.
10649       no_undefined_flag='${wl}-z,text'
10650       allow_undefined_flag='${wl}-z,nodefs'
10651       archive_cmds_need_lc=no
10652       hardcode_shlibpath_var=no
10653       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10654       hardcode_libdir_separator=':'
10655       link_all_deplibs=yes
10656       export_dynamic_flag_spec='${wl}-Bexport'
10657       runpath_var='LD_RUN_PATH'
10658
10659       if test "$GCC" = yes; then
10660         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10661         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662       else
10663         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665       fi
10666       ;;
10667
10668     uts4*)
10669       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670       hardcode_libdir_flag_spec='-L$libdir'
10671       hardcode_shlibpath_var=no
10672       ;;
10673
10674     *)
10675       ld_shlibs=no
10676       ;;
10677     esac
10678
10679     if test x$host_vendor = xsni; then
10680       case $host in
10681       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10682         export_dynamic_flag_spec='${wl}-Blargedynsym'
10683         ;;
10684       esac
10685     fi
10686   fi
10687
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10689 $as_echo "$ld_shlibs" >&6; }
10690 test "$ld_shlibs" = no && can_build_shared=no
10691
10692 with_gnu_ld=$with_gnu_ld
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708 #
10709 # Do we need to explicitly link libc?
10710 #
10711 case "x$archive_cmds_need_lc" in
10712 x|xyes)
10713   # Assume -lc should be added
10714   archive_cmds_need_lc=yes
10715
10716   if test "$enable_shared" = yes && test "$GCC" = yes; then
10717     case $archive_cmds in
10718     *'~'*)
10719       # FIXME: we may have to deal with multi-command sequences.
10720       ;;
10721     '$CC '*)
10722       # Test whether the compiler implicitly links with -lc since on some
10723       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10724       # to ld, don't add -lc before -lgcc.
10725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10726 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10727 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10728   $as_echo_n "(cached) " >&6
10729 else
10730   $RM conftest*
10731         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10732
10733         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10734   (eval $ac_compile) 2>&5
10735   ac_status=$?
10736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10737   test $ac_status = 0; } 2>conftest.err; then
10738           soname=conftest
10739           lib=conftest
10740           libobjs=conftest.$ac_objext
10741           deplibs=
10742           wl=$lt_prog_compiler_wl
10743           pic_flag=$lt_prog_compiler_pic
10744           compiler_flags=-v
10745           linker_flags=-v
10746           verstring=
10747           output_objdir=.
10748           libname=conftest
10749           lt_save_allow_undefined_flag=$allow_undefined_flag
10750           allow_undefined_flag=
10751           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10752   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10753   ac_status=$?
10754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755   test $ac_status = 0; }
10756           then
10757             lt_cv_archive_cmds_need_lc=no
10758           else
10759             lt_cv_archive_cmds_need_lc=yes
10760           fi
10761           allow_undefined_flag=$lt_save_allow_undefined_flag
10762         else
10763           cat conftest.err 1>&5
10764         fi
10765         $RM conftest*
10766
10767 fi
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10769 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10770       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10771       ;;
10772     esac
10773   fi
10774   ;;
10775 esac
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10929 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10930
10931 if test "$GCC" = yes; then
10932   case $host_os in
10933     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10934     *) lt_awk_arg="/^libraries:/" ;;
10935   esac
10936   case $host_os in
10937     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10938     *) lt_sed_strip_eq="s,=/,/,g" ;;
10939   esac
10940   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10941   case $lt_search_path_spec in
10942   *\;*)
10943     # if the path contains ";" then we assume it to be the separator
10944     # otherwise default to the standard path separator (i.e. ":") - it is
10945     # assumed that no part of a normal pathname contains ";" but that should
10946     # okay in the real world where ";" in dirpaths is itself problematic.
10947     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10948     ;;
10949   *)
10950     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10951     ;;
10952   esac
10953   # Ok, now we have the path, separated by spaces, we can step through it
10954   # and add multilib dir if necessary.
10955   lt_tmp_lt_search_path_spec=
10956   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10957   for lt_sys_path in $lt_search_path_spec; do
10958     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10959       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10960     else
10961       test -d "$lt_sys_path" && \
10962         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10963     fi
10964   done
10965   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10966 BEGIN {RS=" "; FS="/|\n";} {
10967   lt_foo="";
10968   lt_count=0;
10969   for (lt_i = NF; lt_i > 0; lt_i--) {
10970     if ($lt_i != "" && $lt_i != ".") {
10971       if ($lt_i == "..") {
10972         lt_count++;
10973       } else {
10974         if (lt_count == 0) {
10975           lt_foo="/" $lt_i lt_foo;
10976         } else {
10977           lt_count--;
10978         }
10979       }
10980     }
10981   }
10982   if (lt_foo != "") { lt_freq[lt_foo]++; }
10983   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10984 }'`
10985   # AWK program above erroneously prepends '/' to C:/dos/paths
10986   # for these hosts.
10987   case $host_os in
10988     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10989       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10990   esac
10991   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10992 else
10993   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10994 fi
10995 library_names_spec=
10996 libname_spec='lib$name'
10997 soname_spec=
10998 shrext_cmds=".so"
10999 postinstall_cmds=
11000 postuninstall_cmds=
11001 finish_cmds=
11002 finish_eval=
11003 shlibpath_var=
11004 shlibpath_overrides_runpath=unknown
11005 version_type=none
11006 dynamic_linker="$host_os ld.so"
11007 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11008 need_lib_prefix=unknown
11009 hardcode_into_libs=no
11010
11011 # when you set need_version to no, make sure it does not cause -set_version
11012 # flags to be left without arguments
11013 need_version=unknown
11014
11015 case $host_os in
11016 aix3*)
11017   version_type=linux # correct to gnu/linux during the next big refactor
11018   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11019   shlibpath_var=LIBPATH
11020
11021   # AIX 3 has no versioning support, so we append a major version to the name.
11022   soname_spec='${libname}${release}${shared_ext}$major'
11023   ;;
11024
11025 aix[4-9]*)
11026   version_type=linux # correct to gnu/linux during the next big refactor
11027   need_lib_prefix=no
11028   need_version=no
11029   hardcode_into_libs=yes
11030   if test "$host_cpu" = ia64; then
11031     # AIX 5 supports IA64
11032     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11033     shlibpath_var=LD_LIBRARY_PATH
11034   else
11035     # With GCC up to 2.95.x, collect2 would create an import file
11036     # for dependence libraries.  The import file would start with
11037     # the line `#! .'.  This would cause the generated library to
11038     # depend on `.', always an invalid library.  This was fixed in
11039     # development snapshots of GCC prior to 3.0.
11040     case $host_os in
11041       aix4 | aix4.[01] | aix4.[01].*)
11042       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11043            echo ' yes '
11044            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11045         :
11046       else
11047         can_build_shared=no
11048       fi
11049       ;;
11050     esac
11051     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11052     # soname into executable. Probably we can add versioning support to
11053     # collect2, so additional links can be useful in future.
11054     if test "$aix_use_runtimelinking" = yes; then
11055       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11056       # instead of lib<name>.a to let people know that these are not
11057       # typical AIX shared libraries.
11058       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059     else
11060       # We preserve .a as extension for shared libraries through AIX4.2
11061       # and later when we are not doing run time linking.
11062       library_names_spec='${libname}${release}.a $libname.a'
11063       soname_spec='${libname}${release}${shared_ext}$major'
11064     fi
11065     shlibpath_var=LIBPATH
11066   fi
11067   ;;
11068
11069 amigaos*)
11070   case $host_cpu in
11071   powerpc)
11072     # Since July 2007 AmigaOS4 officially supports .so libraries.
11073     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075     ;;
11076   m68k)
11077     library_names_spec='$libname.ixlibrary $libname.a'
11078     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11079     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
11080     ;;
11081   esac
11082   ;;
11083
11084 beos*)
11085   library_names_spec='${libname}${shared_ext}'
11086   dynamic_linker="$host_os ld.so"
11087   shlibpath_var=LIBRARY_PATH
11088   ;;
11089
11090 bsdi[45]*)
11091   version_type=linux # correct to gnu/linux during the next big refactor
11092   need_version=no
11093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094   soname_spec='${libname}${release}${shared_ext}$major'
11095   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11096   shlibpath_var=LD_LIBRARY_PATH
11097   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11098   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11099   # the default ld.so.conf also contains /usr/contrib/lib and
11100   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11101   # libtool to hard-code these into programs
11102   ;;
11103
11104 cygwin* | mingw* | pw32* | cegcc*)
11105   version_type=windows
11106   shrext_cmds=".dll"
11107   need_version=no
11108   need_lib_prefix=no
11109
11110   case $GCC,$cc_basename in
11111   yes,*)
11112     # gcc
11113     library_names_spec='$libname.dll.a'
11114     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11115     postinstall_cmds='base_file=`basename \${file}`~
11116       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11117       dldir=$destdir/`dirname \$dlpath`~
11118       test -d \$dldir || mkdir -p \$dldir~
11119       $install_prog $dir/$dlname \$dldir/$dlname~
11120       chmod a+x \$dldir/$dlname~
11121       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11122         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11123       fi'
11124     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11125       dlpath=$dir/\$dldll~
11126        $RM \$dlpath'
11127     shlibpath_overrides_runpath=yes
11128
11129     case $host_os in
11130     cygwin*)
11131       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11132       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11133
11134       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11135       ;;
11136     mingw* | cegcc*)
11137       # MinGW DLLs use traditional 'lib' prefix
11138       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11139       ;;
11140     pw32*)
11141       # pw32 DLLs use 'pw' prefix rather than 'lib'
11142       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11143       ;;
11144     esac
11145     dynamic_linker='Win32 ld.exe'
11146     ;;
11147
11148   *,cl*)
11149     # Native MSVC
11150     libname_spec='$name'
11151     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11152     library_names_spec='${libname}.dll.lib'
11153
11154     case $build_os in
11155     mingw*)
11156       sys_lib_search_path_spec=
11157       lt_save_ifs=$IFS
11158       IFS=';'
11159       for lt_path in $LIB
11160       do
11161         IFS=$lt_save_ifs
11162         # Let DOS variable expansion print the short 8.3 style file name.
11163         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11164         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11165       done
11166       IFS=$lt_save_ifs
11167       # Convert to MSYS style.
11168       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11169       ;;
11170     cygwin*)
11171       # Convert to unix form, then to dos form, then back to unix form
11172       # but this time dos style (no spaces!) so that the unix form looks
11173       # like /cygdrive/c/PROGRA~1:/cygdr...
11174       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11175       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11176       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11177       ;;
11178     *)
11179       sys_lib_search_path_spec="$LIB"
11180       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11181         # It is most probably a Windows format PATH.
11182         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11183       else
11184         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11185       fi
11186       # FIXME: find the short name or the path components, as spaces are
11187       # common. (e.g. "Program Files" -> "PROGRA~1")
11188       ;;
11189     esac
11190
11191     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11192     postinstall_cmds='base_file=`basename \${file}`~
11193       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11194       dldir=$destdir/`dirname \$dlpath`~
11195       test -d \$dldir || mkdir -p \$dldir~
11196       $install_prog $dir/$dlname \$dldir/$dlname'
11197     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11198       dlpath=$dir/\$dldll~
11199        $RM \$dlpath'
11200     shlibpath_overrides_runpath=yes
11201     dynamic_linker='Win32 link.exe'
11202     ;;
11203
11204   *)
11205     # Assume MSVC wrapper
11206     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11207     dynamic_linker='Win32 ld.exe'
11208     ;;
11209   esac
11210   # FIXME: first we should search . and the directory the executable is in
11211   shlibpath_var=PATH
11212   ;;
11213
11214 darwin* | rhapsody*)
11215   dynamic_linker="$host_os dyld"
11216   version_type=darwin
11217   need_lib_prefix=no
11218   need_version=no
11219   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11220   soname_spec='${libname}${release}${major}$shared_ext'
11221   shlibpath_overrides_runpath=yes
11222   shlibpath_var=DYLD_LIBRARY_PATH
11223   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11224
11225   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11226   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11227   ;;
11228
11229 dgux*)
11230   version_type=linux # correct to gnu/linux during the next big refactor
11231   need_lib_prefix=no
11232   need_version=no
11233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11234   soname_spec='${libname}${release}${shared_ext}$major'
11235   shlibpath_var=LD_LIBRARY_PATH
11236   ;;
11237
11238 freebsd* | dragonfly*)
11239   # DragonFly does not have aout.  When/if they implement a new
11240   # versioning mechanism, adjust this.
11241   if test -x /usr/bin/objformat; then
11242     objformat=`/usr/bin/objformat`
11243   else
11244     case $host_os in
11245     freebsd[23].*) objformat=aout ;;
11246     *) objformat=elf ;;
11247     esac
11248   fi
11249   version_type=freebsd-$objformat
11250   case $version_type in
11251     freebsd-elf*)
11252       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11253       need_version=no
11254       need_lib_prefix=no
11255       ;;
11256     freebsd-*)
11257       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11258       need_version=yes
11259       ;;
11260   esac
11261   shlibpath_var=LD_LIBRARY_PATH
11262   case $host_os in
11263   freebsd2.*)
11264     shlibpath_overrides_runpath=yes
11265     ;;
11266   freebsd3.[01]* | freebsdelf3.[01]*)
11267     shlibpath_overrides_runpath=yes
11268     hardcode_into_libs=yes
11269     ;;
11270   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11271   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11272     shlibpath_overrides_runpath=no
11273     hardcode_into_libs=yes
11274     ;;
11275   *) # from 4.6 on, and DragonFly
11276     shlibpath_overrides_runpath=yes
11277     hardcode_into_libs=yes
11278     ;;
11279   esac
11280   ;;
11281
11282 haiku*)
11283   version_type=linux # correct to gnu/linux during the next big refactor
11284   need_lib_prefix=no
11285   need_version=no
11286   dynamic_linker="$host_os runtime_loader"
11287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11288   soname_spec='${libname}${release}${shared_ext}$major'
11289   shlibpath_var=LIBRARY_PATH
11290   shlibpath_overrides_runpath=yes
11291   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11292   hardcode_into_libs=yes
11293   ;;
11294
11295 hpux9* | hpux10* | hpux11*)
11296   # Give a soname corresponding to the major version so that dld.sl refuses to
11297   # link against other versions.
11298   version_type=sunos
11299   need_lib_prefix=no
11300   need_version=no
11301   case $host_cpu in
11302   ia64*)
11303     shrext_cmds='.so'
11304     hardcode_into_libs=yes
11305     dynamic_linker="$host_os dld.so"
11306     shlibpath_var=LD_LIBRARY_PATH
11307     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309     soname_spec='${libname}${release}${shared_ext}$major'
11310     if test "X$HPUX_IA64_MODE" = X32; then
11311       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11312     else
11313       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11314     fi
11315     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11316     ;;
11317   hppa*64*)
11318     shrext_cmds='.sl'
11319     hardcode_into_libs=yes
11320     dynamic_linker="$host_os dld.sl"
11321     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11322     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11323     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324     soname_spec='${libname}${release}${shared_ext}$major'
11325     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11326     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11327     ;;
11328   *)
11329     shrext_cmds='.sl'
11330     dynamic_linker="$host_os dld.sl"
11331     shlibpath_var=SHLIB_PATH
11332     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11333     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334     soname_spec='${libname}${release}${shared_ext}$major'
11335     ;;
11336   esac
11337   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11338   postinstall_cmds='chmod 555 $lib'
11339   # or fails outright, so override atomically:
11340   install_override_mode=555
11341   ;;
11342
11343 interix[3-9]*)
11344   version_type=linux # correct to gnu/linux during the next big refactor
11345   need_lib_prefix=no
11346   need_version=no
11347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11348   soname_spec='${libname}${release}${shared_ext}$major'
11349   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11350   shlibpath_var=LD_LIBRARY_PATH
11351   shlibpath_overrides_runpath=no
11352   hardcode_into_libs=yes
11353   ;;
11354
11355 irix5* | irix6* | nonstopux*)
11356   case $host_os in
11357     nonstopux*) version_type=nonstopux ;;
11358     *)
11359         if test "$lt_cv_prog_gnu_ld" = yes; then
11360                 version_type=linux # correct to gnu/linux during the next big refactor
11361         else
11362                 version_type=irix
11363         fi ;;
11364   esac
11365   need_lib_prefix=no
11366   need_version=no
11367   soname_spec='${libname}${release}${shared_ext}$major'
11368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11369   case $host_os in
11370   irix5* | nonstopux*)
11371     libsuff= shlibsuff=
11372     ;;
11373   *)
11374     case $LD in # libtool.m4 will add one of these switches to LD
11375     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11376       libsuff= shlibsuff= libmagic=32-bit;;
11377     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11378       libsuff=32 shlibsuff=N32 libmagic=N32;;
11379     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11380       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11381     *) libsuff= shlibsuff= libmagic=never-match;;
11382     esac
11383     ;;
11384   esac
11385   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11386   shlibpath_overrides_runpath=no
11387   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11388   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11389   hardcode_into_libs=yes
11390   ;;
11391
11392 # No shared lib support for Linux oldld, aout, or coff.
11393 linux*oldld* | linux*aout* | linux*coff*)
11394   dynamic_linker=no
11395   ;;
11396
11397 # This must be glibc/ELF.
11398 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11399   version_type=linux # correct to gnu/linux during the next big refactor
11400   need_lib_prefix=no
11401   need_version=no
11402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403   soname_spec='${libname}${release}${shared_ext}$major'
11404   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11405   shlibpath_var=LD_LIBRARY_PATH
11406   shlibpath_overrides_runpath=no
11407
11408   # Some binutils ld are patched to set DT_RUNPATH
11409   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11410   $as_echo_n "(cached) " >&6
11411 else
11412   lt_cv_shlibpath_overrides_runpath=no
11413     save_LDFLAGS=$LDFLAGS
11414     save_libdir=$libdir
11415     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11416          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h.  */
11419
11420 int
11421 main ()
11422 {
11423
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11430   lt_cv_shlibpath_overrides_runpath=yes
11431 fi
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext \
11434     conftest$ac_exeext conftest.$ac_ext
11435     LDFLAGS=$save_LDFLAGS
11436     libdir=$save_libdir
11437
11438 fi
11439
11440   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11441
11442   # This implies no fast_install, which is unacceptable.
11443   # Some rework will be needed to allow for fast_install
11444   # before this can be enabled.
11445   hardcode_into_libs=yes
11446
11447   # Append ld.so.conf contents to the search path
11448   if test -f /etc/ld.so.conf; then
11449     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' ' '`
11450     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11451   fi
11452
11453   # We used to test for /lib/ld.so.1 and disable shared libraries on
11454   # powerpc, because MkLinux only supported shared libraries with the
11455   # GNU dynamic linker.  Since this was broken with cross compilers,
11456   # most powerpc-linux boxes support dynamic linking these days and
11457   # people can always --disable-shared, the test was removed, and we
11458   # assume the GNU/Linux dynamic linker is in use.
11459   dynamic_linker='GNU/Linux ld.so'
11460   ;;
11461
11462 netbsdelf*-gnu)
11463   version_type=linux
11464   need_lib_prefix=no
11465   need_version=no
11466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11467   soname_spec='${libname}${release}${shared_ext}$major'
11468   shlibpath_var=LD_LIBRARY_PATH
11469   shlibpath_overrides_runpath=no
11470   hardcode_into_libs=yes
11471   dynamic_linker='NetBSD ld.elf_so'
11472   ;;
11473
11474 netbsd*)
11475   version_type=sunos
11476   need_lib_prefix=no
11477   need_version=no
11478   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11481     dynamic_linker='NetBSD (a.out) ld.so'
11482   else
11483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11484     soname_spec='${libname}${release}${shared_ext}$major'
11485     dynamic_linker='NetBSD ld.elf_so'
11486   fi
11487   shlibpath_var=LD_LIBRARY_PATH
11488   shlibpath_overrides_runpath=yes
11489   hardcode_into_libs=yes
11490   ;;
11491
11492 newsos6)
11493   version_type=linux # correct to gnu/linux during the next big refactor
11494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495   shlibpath_var=LD_LIBRARY_PATH
11496   shlibpath_overrides_runpath=yes
11497   ;;
11498
11499 *nto* | *qnx*)
11500   version_type=qnx
11501   need_lib_prefix=no
11502   need_version=no
11503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504   soname_spec='${libname}${release}${shared_ext}$major'
11505   shlibpath_var=LD_LIBRARY_PATH
11506   shlibpath_overrides_runpath=no
11507   hardcode_into_libs=yes
11508   dynamic_linker='ldqnx.so'
11509   ;;
11510
11511 openbsd*)
11512   version_type=sunos
11513   sys_lib_dlsearch_path_spec="/usr/lib"
11514   need_lib_prefix=no
11515   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11516   case $host_os in
11517     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11518     *)                          need_version=no  ;;
11519   esac
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11521   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11524     case $host_os in
11525       openbsd2.[89] | openbsd2.[89].*)
11526         shlibpath_overrides_runpath=no
11527         ;;
11528       *)
11529         shlibpath_overrides_runpath=yes
11530         ;;
11531       esac
11532   else
11533     shlibpath_overrides_runpath=yes
11534   fi
11535   ;;
11536
11537 os2*)
11538   libname_spec='$name'
11539   shrext_cmds=".dll"
11540   need_lib_prefix=no
11541   library_names_spec='$libname${shared_ext} $libname.a'
11542   dynamic_linker='OS/2 ld.exe'
11543   shlibpath_var=LIBPATH
11544   ;;
11545
11546 osf3* | osf4* | osf5*)
11547   version_type=osf
11548   need_lib_prefix=no
11549   need_version=no
11550   soname_spec='${libname}${release}${shared_ext}$major'
11551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552   shlibpath_var=LD_LIBRARY_PATH
11553   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11554   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11555   ;;
11556
11557 rdos*)
11558   dynamic_linker=no
11559   ;;
11560
11561 solaris*)
11562   version_type=linux # correct to gnu/linux during the next big refactor
11563   need_lib_prefix=no
11564   need_version=no
11565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566   soname_spec='${libname}${release}${shared_ext}$major'
11567   shlibpath_var=LD_LIBRARY_PATH
11568   shlibpath_overrides_runpath=yes
11569   hardcode_into_libs=yes
11570   # ldd complains unless libraries are executable
11571   postinstall_cmds='chmod +x $lib'
11572   ;;
11573
11574 sunos4*)
11575   version_type=sunos
11576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11577   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11578   shlibpath_var=LD_LIBRARY_PATH
11579   shlibpath_overrides_runpath=yes
11580   if test "$with_gnu_ld" = yes; then
11581     need_lib_prefix=no
11582   fi
11583   need_version=yes
11584   ;;
11585
11586 sysv4 | sysv4.3*)
11587   version_type=linux # correct to gnu/linux during the next big refactor
11588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589   soname_spec='${libname}${release}${shared_ext}$major'
11590   shlibpath_var=LD_LIBRARY_PATH
11591   case $host_vendor in
11592     sni)
11593       shlibpath_overrides_runpath=no
11594       need_lib_prefix=no
11595       runpath_var=LD_RUN_PATH
11596       ;;
11597     siemens)
11598       need_lib_prefix=no
11599       ;;
11600     motorola)
11601       need_lib_prefix=no
11602       need_version=no
11603       shlibpath_overrides_runpath=no
11604       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11605       ;;
11606   esac
11607   ;;
11608
11609 sysv4*MP*)
11610   if test -d /usr/nec ;then
11611     version_type=linux # correct to gnu/linux during the next big refactor
11612     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11613     soname_spec='$libname${shared_ext}.$major'
11614     shlibpath_var=LD_LIBRARY_PATH
11615   fi
11616   ;;
11617
11618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11619   version_type=freebsd-elf
11620   need_lib_prefix=no
11621   need_version=no
11622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11623   soname_spec='${libname}${release}${shared_ext}$major'
11624   shlibpath_var=LD_LIBRARY_PATH
11625   shlibpath_overrides_runpath=yes
11626   hardcode_into_libs=yes
11627   if test "$with_gnu_ld" = yes; then
11628     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11629   else
11630     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11631     case $host_os in
11632       sco3.2v5*)
11633         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11634         ;;
11635     esac
11636   fi
11637   sys_lib_dlsearch_path_spec='/usr/lib'
11638   ;;
11639
11640 tpf*)
11641   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11642   version_type=linux # correct to gnu/linux during the next big refactor
11643   need_lib_prefix=no
11644   need_version=no
11645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646   shlibpath_var=LD_LIBRARY_PATH
11647   shlibpath_overrides_runpath=no
11648   hardcode_into_libs=yes
11649   ;;
11650
11651 uts4*)
11652   version_type=linux # correct to gnu/linux during the next big refactor
11653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654   soname_spec='${libname}${release}${shared_ext}$major'
11655   shlibpath_var=LD_LIBRARY_PATH
11656   ;;
11657
11658 *)
11659   dynamic_linker=no
11660   ;;
11661 esac
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11663 $as_echo "$dynamic_linker" >&6; }
11664 test "$dynamic_linker" = no && can_build_shared=no
11665
11666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11667 if test "$GCC" = yes; then
11668   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11669 fi
11670
11671 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11672   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11673 fi
11674 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11675   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11676 fi
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11770 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11771 hardcode_action=
11772 if test -n "$hardcode_libdir_flag_spec" ||
11773    test -n "$runpath_var" ||
11774    test "X$hardcode_automatic" = "Xyes" ; then
11775
11776   # We can hardcode non-existent directories.
11777   if test "$hardcode_direct" != no &&
11778      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11779      # have to relink, otherwise we might link with an installed library
11780      # when we should be linking with a yet-to-be-installed one
11781      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11782      test "$hardcode_minus_L" != no; then
11783     # Linking always hardcodes the temporary library directory.
11784     hardcode_action=relink
11785   else
11786     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11787     hardcode_action=immediate
11788   fi
11789 else
11790   # We cannot hardcode anything, or else we can only hardcode existing
11791   # directories.
11792   hardcode_action=unsupported
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11795 $as_echo "$hardcode_action" >&6; }
11796
11797 if test "$hardcode_action" = relink ||
11798    test "$inherit_rpath" = yes; then
11799   # Fast installation is not supported
11800   enable_fast_install=no
11801 elif test "$shlibpath_overrides_runpath" = yes ||
11802      test "$enable_shared" = no; then
11803   # Fast installation is not necessary
11804   enable_fast_install=needless
11805 fi
11806
11807
11808
11809
11810
11811
11812   if test "x$enable_dlopen" != xyes; then
11813   enable_dlopen=unknown
11814   enable_dlopen_self=unknown
11815   enable_dlopen_self_static=unknown
11816 else
11817   lt_cv_dlopen=no
11818   lt_cv_dlopen_libs=
11819
11820   case $host_os in
11821   beos*)
11822     lt_cv_dlopen="load_add_on"
11823     lt_cv_dlopen_libs=
11824     lt_cv_dlopen_self=yes
11825     ;;
11826
11827   mingw* | pw32* | cegcc*)
11828     lt_cv_dlopen="LoadLibrary"
11829     lt_cv_dlopen_libs=
11830     ;;
11831
11832   cygwin*)
11833     lt_cv_dlopen="dlopen"
11834     lt_cv_dlopen_libs=
11835     ;;
11836
11837   darwin*)
11838   # if libdl is installed we need to link against it
11839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11840 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11841 if ${ac_cv_lib_dl_dlopen+:} false; then :
11842   $as_echo_n "(cached) " >&6
11843 else
11844   ac_check_lib_save_LIBS=$LIBS
11845 LIBS="-ldl  $LIBS"
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h.  */
11848
11849 /* Override any GCC internal prototype to avoid an error.
11850    Use char because int might match the return type of a GCC
11851    builtin and then its argument prototype would still apply.  */
11852 #ifdef __cplusplus
11853 extern "C"
11854 #endif
11855 char dlopen ();
11856 int
11857 main ()
11858 {
11859 return dlopen ();
11860   ;
11861   return 0;
11862 }
11863 _ACEOF
11864 if ac_fn_c_try_link "$LINENO"; then :
11865   ac_cv_lib_dl_dlopen=yes
11866 else
11867   ac_cv_lib_dl_dlopen=no
11868 fi
11869 rm -f core conftest.err conftest.$ac_objext \
11870     conftest$ac_exeext conftest.$ac_ext
11871 LIBS=$ac_check_lib_save_LIBS
11872 fi
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11874 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11875 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11876   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11877 else
11878
11879     lt_cv_dlopen="dyld"
11880     lt_cv_dlopen_libs=
11881     lt_cv_dlopen_self=yes
11882
11883 fi
11884
11885     ;;
11886
11887   *)
11888     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11889 if test "x$ac_cv_func_shl_load" = xyes; then :
11890   lt_cv_dlopen="shl_load"
11891 else
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11893 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11894 if ${ac_cv_lib_dld_shl_load+:} false; then :
11895   $as_echo_n "(cached) " >&6
11896 else
11897   ac_check_lib_save_LIBS=$LIBS
11898 LIBS="-ldld  $LIBS"
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h.  */
11901
11902 /* Override any GCC internal prototype to avoid an error.
11903    Use char because int might match the return type of a GCC
11904    builtin and then its argument prototype would still apply.  */
11905 #ifdef __cplusplus
11906 extern "C"
11907 #endif
11908 char shl_load ();
11909 int
11910 main ()
11911 {
11912 return shl_load ();
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 if ac_fn_c_try_link "$LINENO"; then :
11918   ac_cv_lib_dld_shl_load=yes
11919 else
11920   ac_cv_lib_dld_shl_load=no
11921 fi
11922 rm -f core conftest.err conftest.$ac_objext \
11923     conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11927 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11928 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11929   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11930 else
11931   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11932 if test "x$ac_cv_func_dlopen" = xyes; then :
11933   lt_cv_dlopen="dlopen"
11934 else
11935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11937 if ${ac_cv_lib_dl_dlopen+:} false; then :
11938   $as_echo_n "(cached) " >&6
11939 else
11940   ac_check_lib_save_LIBS=$LIBS
11941 LIBS="-ldl  $LIBS"
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h.  */
11944
11945 /* Override any GCC internal prototype to avoid an error.
11946    Use char because int might match the return type of a GCC
11947    builtin and then its argument prototype would still apply.  */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char dlopen ();
11952 int
11953 main ()
11954 {
11955 return dlopen ();
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961   ac_cv_lib_dl_dlopen=yes
11962 else
11963   ac_cv_lib_dl_dlopen=no
11964 fi
11965 rm -f core conftest.err conftest.$ac_objext \
11966     conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_check_lib_save_LIBS
11968 fi
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11971 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11972   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11973 else
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11975 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11976 if ${ac_cv_lib_svld_dlopen+:} false; then :
11977   $as_echo_n "(cached) " >&6
11978 else
11979   ac_check_lib_save_LIBS=$LIBS
11980 LIBS="-lsvld  $LIBS"
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h.  */
11983
11984 /* Override any GCC internal prototype to avoid an error.
11985    Use char because int might match the return type of a GCC
11986    builtin and then its argument prototype would still apply.  */
11987 #ifdef __cplusplus
11988 extern "C"
11989 #endif
11990 char dlopen ();
11991 int
11992 main ()
11993 {
11994 return dlopen ();
11995   ;
11996   return 0;
11997 }
11998 _ACEOF
11999 if ac_fn_c_try_link "$LINENO"; then :
12000   ac_cv_lib_svld_dlopen=yes
12001 else
12002   ac_cv_lib_svld_dlopen=no
12003 fi
12004 rm -f core conftest.err conftest.$ac_objext \
12005     conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12007 fi
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12009 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12010 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12011   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12012 else
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12014 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12015 if ${ac_cv_lib_dld_dld_link+:} false; then :
12016   $as_echo_n "(cached) " >&6
12017 else
12018   ac_check_lib_save_LIBS=$LIBS
12019 LIBS="-ldld  $LIBS"
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h.  */
12022
12023 /* Override any GCC internal prototype to avoid an error.
12024    Use char because int might match the return type of a GCC
12025    builtin and then its argument prototype would still apply.  */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 char dld_link ();
12030 int
12031 main ()
12032 {
12033 return dld_link ();
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_link "$LINENO"; then :
12039   ac_cv_lib_dld_dld_link=yes
12040 else
12041   ac_cv_lib_dld_dld_link=no
12042 fi
12043 rm -f core conftest.err conftest.$ac_objext \
12044     conftest$ac_exeext conftest.$ac_ext
12045 LIBS=$ac_check_lib_save_LIBS
12046 fi
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12048 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12049 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12050   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12051 fi
12052
12053
12054 fi
12055
12056
12057 fi
12058
12059
12060 fi
12061
12062
12063 fi
12064
12065
12066 fi
12067
12068     ;;
12069   esac
12070
12071   if test "x$lt_cv_dlopen" != xno; then
12072     enable_dlopen=yes
12073   else
12074     enable_dlopen=no
12075   fi
12076
12077   case $lt_cv_dlopen in
12078   dlopen)
12079     save_CPPFLAGS="$CPPFLAGS"
12080     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12081
12082     save_LDFLAGS="$LDFLAGS"
12083     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12084
12085     save_LIBS="$LIBS"
12086     LIBS="$lt_cv_dlopen_libs $LIBS"
12087
12088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12089 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12090 if ${lt_cv_dlopen_self+:} false; then :
12091   $as_echo_n "(cached) " >&6
12092 else
12093           if test "$cross_compiling" = yes; then :
12094   lt_cv_dlopen_self=cross
12095 else
12096   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12097   lt_status=$lt_dlunknown
12098   cat > conftest.$ac_ext <<_LT_EOF
12099 #line $LINENO "configure"
12100 #include "confdefs.h"
12101
12102 #if HAVE_DLFCN_H
12103 #include <dlfcn.h>
12104 #endif
12105
12106 #include <stdio.h>
12107
12108 #ifdef RTLD_GLOBAL
12109 #  define LT_DLGLOBAL           RTLD_GLOBAL
12110 #else
12111 #  ifdef DL_GLOBAL
12112 #    define LT_DLGLOBAL         DL_GLOBAL
12113 #  else
12114 #    define LT_DLGLOBAL         0
12115 #  endif
12116 #endif
12117
12118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12119    find out it does not work in some platform. */
12120 #ifndef LT_DLLAZY_OR_NOW
12121 #  ifdef RTLD_LAZY
12122 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12123 #  else
12124 #    ifdef DL_LAZY
12125 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12126 #    else
12127 #      ifdef RTLD_NOW
12128 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12129 #      else
12130 #        ifdef DL_NOW
12131 #          define LT_DLLAZY_OR_NOW      DL_NOW
12132 #        else
12133 #          define LT_DLLAZY_OR_NOW      0
12134 #        endif
12135 #      endif
12136 #    endif
12137 #  endif
12138 #endif
12139
12140 /* When -fvisbility=hidden is used, assume the code has been annotated
12141    correspondingly for the symbols needed.  */
12142 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12143 int fnord () __attribute__((visibility("default")));
12144 #endif
12145
12146 int fnord () { return 42; }
12147 int main ()
12148 {
12149   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12150   int status = $lt_dlunknown;
12151
12152   if (self)
12153     {
12154       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12155       else
12156         {
12157           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12158           else puts (dlerror ());
12159         }
12160       /* dlclose (self); */
12161     }
12162   else
12163     puts (dlerror ());
12164
12165   return status;
12166 }
12167 _LT_EOF
12168   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12169   (eval $ac_link) 2>&5
12170   ac_status=$?
12171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12172   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12173     (./conftest; exit; ) >&5 2>/dev/null
12174     lt_status=$?
12175     case x$lt_status in
12176       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12177       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12178       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12179     esac
12180   else :
12181     # compilation failed
12182     lt_cv_dlopen_self=no
12183   fi
12184 fi
12185 rm -fr conftest*
12186
12187
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12190 $as_echo "$lt_cv_dlopen_self" >&6; }
12191
12192     if test "x$lt_cv_dlopen_self" = xyes; then
12193       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12194       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12195 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12196 if ${lt_cv_dlopen_self_static+:} false; then :
12197   $as_echo_n "(cached) " >&6
12198 else
12199           if test "$cross_compiling" = yes; then :
12200   lt_cv_dlopen_self_static=cross
12201 else
12202   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12203   lt_status=$lt_dlunknown
12204   cat > conftest.$ac_ext <<_LT_EOF
12205 #line $LINENO "configure"
12206 #include "confdefs.h"
12207
12208 #if HAVE_DLFCN_H
12209 #include <dlfcn.h>
12210 #endif
12211
12212 #include <stdio.h>
12213
12214 #ifdef RTLD_GLOBAL
12215 #  define LT_DLGLOBAL           RTLD_GLOBAL
12216 #else
12217 #  ifdef DL_GLOBAL
12218 #    define LT_DLGLOBAL         DL_GLOBAL
12219 #  else
12220 #    define LT_DLGLOBAL         0
12221 #  endif
12222 #endif
12223
12224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12225    find out it does not work in some platform. */
12226 #ifndef LT_DLLAZY_OR_NOW
12227 #  ifdef RTLD_LAZY
12228 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12229 #  else
12230 #    ifdef DL_LAZY
12231 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12232 #    else
12233 #      ifdef RTLD_NOW
12234 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12235 #      else
12236 #        ifdef DL_NOW
12237 #          define LT_DLLAZY_OR_NOW      DL_NOW
12238 #        else
12239 #          define LT_DLLAZY_OR_NOW      0
12240 #        endif
12241 #      endif
12242 #    endif
12243 #  endif
12244 #endif
12245
12246 /* When -fvisbility=hidden is used, assume the code has been annotated
12247    correspondingly for the symbols needed.  */
12248 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12249 int fnord () __attribute__((visibility("default")));
12250 #endif
12251
12252 int fnord () { return 42; }
12253 int main ()
12254 {
12255   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12256   int status = $lt_dlunknown;
12257
12258   if (self)
12259     {
12260       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12261       else
12262         {
12263           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12264           else puts (dlerror ());
12265         }
12266       /* dlclose (self); */
12267     }
12268   else
12269     puts (dlerror ());
12270
12271   return status;
12272 }
12273 _LT_EOF
12274   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12275   (eval $ac_link) 2>&5
12276   ac_status=$?
12277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12279     (./conftest; exit; ) >&5 2>/dev/null
12280     lt_status=$?
12281     case x$lt_status in
12282       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12283       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12284       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12285     esac
12286   else :
12287     # compilation failed
12288     lt_cv_dlopen_self_static=no
12289   fi
12290 fi
12291 rm -fr conftest*
12292
12293
12294 fi
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12296 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12297     fi
12298
12299     CPPFLAGS="$save_CPPFLAGS"
12300     LDFLAGS="$save_LDFLAGS"
12301     LIBS="$save_LIBS"
12302     ;;
12303   esac
12304
12305   case $lt_cv_dlopen_self in
12306   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12307   *) enable_dlopen_self=unknown ;;
12308   esac
12309
12310   case $lt_cv_dlopen_self_static in
12311   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12312   *) enable_dlopen_self_static=unknown ;;
12313   esac
12314 fi
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332 striplib=
12333 old_striplib=
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12335 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12336 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12337   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12338   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12340 $as_echo "yes" >&6; }
12341 else
12342 # FIXME - insert some real tests, host_os isn't really good enough
12343   case $host_os in
12344   darwin*)
12345     if test -n "$STRIP" ; then
12346       striplib="$STRIP -x"
12347       old_striplib="$STRIP -S"
12348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349 $as_echo "yes" >&6; }
12350     else
12351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353     fi
12354     ;;
12355   *)
12356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358     ;;
12359   esac
12360 fi
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373   # Report which library types will actually be built
12374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12375 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12377 $as_echo "$can_build_shared" >&6; }
12378
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12380 $as_echo_n "checking whether to build shared libraries... " >&6; }
12381   test "$can_build_shared" = "no" && enable_shared=no
12382
12383   # On AIX, shared libraries and static libraries use the same namespace, and
12384   # are all built from PIC.
12385   case $host_os in
12386   aix3*)
12387     test "$enable_shared" = yes && enable_static=no
12388     if test -n "$RANLIB"; then
12389       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12390       postinstall_cmds='$RANLIB $lib'
12391     fi
12392     ;;
12393
12394   aix[4-9]*)
12395     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12396       test "$enable_shared" = yes && enable_static=no
12397     fi
12398     ;;
12399   esac
12400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12401 $as_echo "$enable_shared" >&6; }
12402
12403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12404 $as_echo_n "checking whether to build static libraries... " >&6; }
12405   # Make sure either enable_shared or enable_static is yes.
12406   test "$enable_shared" = yes || enable_static=yes
12407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12408 $as_echo "$enable_static" >&6; }
12409
12410
12411
12412
12413 fi
12414 ac_ext=c
12415 ac_cpp='$CPP $CPPFLAGS'
12416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12419
12420 CC="$lt_save_CC"
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436         ac_config_commands="$ac_config_commands libtool"
12437
12438
12439
12440
12441 # Only expand once:
12442
12443
12444
12445 # Check for programs
12446 ac_ext=c
12447 ac_cpp='$CPP $CPPFLAGS'
12448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12451 if test -n "$ac_tool_prefix"; then
12452   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12455 $as_echo_n "checking for $ac_word... " >&6; }
12456 if ${ac_cv_prog_CC+:} false; then :
12457   $as_echo_n "(cached) " >&6
12458 else
12459   if test -n "$CC"; then
12460   ac_cv_prog_CC="$CC" # Let the user override the test.
12461 else
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12464 do
12465   IFS=$as_save_IFS
12466   test -z "$as_dir" && as_dir=.
12467     for ac_exec_ext in '' $ac_executable_extensions; do
12468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12469     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12471     break 2
12472   fi
12473 done
12474   done
12475 IFS=$as_save_IFS
12476
12477 fi
12478 fi
12479 CC=$ac_cv_prog_CC
12480 if test -n "$CC"; then
12481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12482 $as_echo "$CC" >&6; }
12483 else
12484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12486 fi
12487
12488
12489 fi
12490 if test -z "$ac_cv_prog_CC"; then
12491   ac_ct_CC=$CC
12492   # Extract the first word of "gcc", so it can be a program name with args.
12493 set dummy gcc; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12497   $as_echo_n "(cached) " >&6
12498 else
12499   if test -n "$ac_ct_CC"; then
12500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12501 else
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12504 do
12505   IFS=$as_save_IFS
12506   test -z "$as_dir" && as_dir=.
12507     for ac_exec_ext in '' $ac_executable_extensions; do
12508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12509     ac_cv_prog_ac_ct_CC="gcc"
12510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511     break 2
12512   fi
12513 done
12514   done
12515 IFS=$as_save_IFS
12516
12517 fi
12518 fi
12519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12520 if test -n "$ac_ct_CC"; then
12521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12522 $as_echo "$ac_ct_CC" >&6; }
12523 else
12524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12526 fi
12527
12528   if test "x$ac_ct_CC" = x; then
12529     CC=""
12530   else
12531     case $cross_compiling:$ac_tool_warned in
12532 yes:)
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12535 ac_tool_warned=yes ;;
12536 esac
12537     CC=$ac_ct_CC
12538   fi
12539 else
12540   CC="$ac_cv_prog_CC"
12541 fi
12542
12543 if test -z "$CC"; then
12544           if test -n "$ac_tool_prefix"; then
12545     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12546 set dummy ${ac_tool_prefix}cc; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if ${ac_cv_prog_CC+:} false; then :
12550   $as_echo_n "(cached) " >&6
12551 else
12552   if test -n "$CC"; then
12553   ac_cv_prog_CC="$CC" # Let the user override the test.
12554 else
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12557 do
12558   IFS=$as_save_IFS
12559   test -z "$as_dir" && as_dir=.
12560     for ac_exec_ext in '' $ac_executable_extensions; do
12561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562     ac_cv_prog_CC="${ac_tool_prefix}cc"
12563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564     break 2
12565   fi
12566 done
12567   done
12568 IFS=$as_save_IFS
12569
12570 fi
12571 fi
12572 CC=$ac_cv_prog_CC
12573 if test -n "$CC"; then
12574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12575 $as_echo "$CC" >&6; }
12576 else
12577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579 fi
12580
12581
12582   fi
12583 fi
12584 if test -z "$CC"; then
12585   # Extract the first word of "cc", so it can be a program name with args.
12586 set dummy cc; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_prog_CC+:} false; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592   if test -n "$CC"; then
12593   ac_cv_prog_CC="$CC" # Let the user override the test.
12594 else
12595   ac_prog_rejected=no
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12598 do
12599   IFS=$as_save_IFS
12600   test -z "$as_dir" && as_dir=.
12601     for ac_exec_ext in '' $ac_executable_extensions; do
12602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12604        ac_prog_rejected=yes
12605        continue
12606      fi
12607     ac_cv_prog_CC="cc"
12608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609     break 2
12610   fi
12611 done
12612   done
12613 IFS=$as_save_IFS
12614
12615 if test $ac_prog_rejected = yes; then
12616   # We found a bogon in the path, so make sure we never use it.
12617   set dummy $ac_cv_prog_CC
12618   shift
12619   if test $# != 0; then
12620     # We chose a different compiler from the bogus one.
12621     # However, it has the same basename, so the bogon will be chosen
12622     # first if we set CC to just the basename; use the full file name.
12623     shift
12624     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12625   fi
12626 fi
12627 fi
12628 fi
12629 CC=$ac_cv_prog_CC
12630 if test -n "$CC"; then
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12632 $as_echo "$CC" >&6; }
12633 else
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12636 fi
12637
12638
12639 fi
12640 if test -z "$CC"; then
12641   if test -n "$ac_tool_prefix"; then
12642   for ac_prog in cl.exe
12643   do
12644     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if ${ac_cv_prog_CC+:} false; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   if test -n "$CC"; then
12652   ac_cv_prog_CC="$CC" # Let the user override the test.
12653 else
12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655 for as_dir in $PATH
12656 do
12657   IFS=$as_save_IFS
12658   test -z "$as_dir" && as_dir=.
12659     for ac_exec_ext in '' $ac_executable_extensions; do
12660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12661     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663     break 2
12664   fi
12665 done
12666   done
12667 IFS=$as_save_IFS
12668
12669 fi
12670 fi
12671 CC=$ac_cv_prog_CC
12672 if test -n "$CC"; then
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12674 $as_echo "$CC" >&6; }
12675 else
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12678 fi
12679
12680
12681     test -n "$CC" && break
12682   done
12683 fi
12684 if test -z "$CC"; then
12685   ac_ct_CC=$CC
12686   for ac_prog in cl.exe
12687 do
12688   # Extract the first word of "$ac_prog", so it can be a program name with args.
12689 set dummy $ac_prog; ac_word=$2
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12691 $as_echo_n "checking for $ac_word... " >&6; }
12692 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12693   $as_echo_n "(cached) " >&6
12694 else
12695   if test -n "$ac_ct_CC"; then
12696   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12697 else
12698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $PATH
12700 do
12701   IFS=$as_save_IFS
12702   test -z "$as_dir" && as_dir=.
12703     for ac_exec_ext in '' $ac_executable_extensions; do
12704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12705     ac_cv_prog_ac_ct_CC="$ac_prog"
12706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707     break 2
12708   fi
12709 done
12710   done
12711 IFS=$as_save_IFS
12712
12713 fi
12714 fi
12715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12716 if test -n "$ac_ct_CC"; then
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12718 $as_echo "$ac_ct_CC" >&6; }
12719 else
12720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12722 fi
12723
12724
12725   test -n "$ac_ct_CC" && break
12726 done
12727
12728   if test "x$ac_ct_CC" = x; then
12729     CC=""
12730   else
12731     case $cross_compiling:$ac_tool_warned in
12732 yes:)
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12735 ac_tool_warned=yes ;;
12736 esac
12737     CC=$ac_ct_CC
12738   fi
12739 fi
12740
12741 fi
12742
12743
12744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12746 as_fn_error $? "no acceptable C compiler found in \$PATH
12747 See \`config.log' for more details" "$LINENO" 5; }
12748
12749 # Provide some information about the compiler.
12750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12751 set X $ac_compile
12752 ac_compiler=$2
12753 for ac_option in --version -v -V -qversion; do
12754   { { ac_try="$ac_compiler $ac_option >&5"
12755 case "(($ac_try" in
12756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757   *) ac_try_echo=$ac_try;;
12758 esac
12759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12760 $as_echo "$ac_try_echo"; } >&5
12761   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12762   ac_status=$?
12763   if test -s conftest.err; then
12764     sed '10a\
12765 ... rest of stderr output deleted ...
12766          10q' conftest.err >conftest.er1
12767     cat conftest.er1 >&5
12768   fi
12769   rm -f conftest.er1 conftest.err
12770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12771   test $ac_status = 0; }
12772 done
12773
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12776 if ${ac_cv_c_compiler_gnu+:} false; then :
12777   $as_echo_n "(cached) " >&6
12778 else
12779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h.  */
12781
12782 int
12783 main ()
12784 {
12785 #ifndef __GNUC__
12786        choke me
12787 #endif
12788
12789   ;
12790   return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_c_try_compile "$LINENO"; then :
12794   ac_compiler_gnu=yes
12795 else
12796   ac_compiler_gnu=no
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12800
12801 fi
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12804 if test $ac_compiler_gnu = yes; then
12805   GCC=yes
12806 else
12807   GCC=
12808 fi
12809 ac_test_CFLAGS=${CFLAGS+set}
12810 ac_save_CFLAGS=$CFLAGS
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12813 if ${ac_cv_prog_cc_g+:} false; then :
12814   $as_echo_n "(cached) " >&6
12815 else
12816   ac_save_c_werror_flag=$ac_c_werror_flag
12817    ac_c_werror_flag=yes
12818    ac_cv_prog_cc_g=no
12819    CFLAGS="-g"
12820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h.  */
12822
12823 int
12824 main ()
12825 {
12826
12827   ;
12828   return 0;
12829 }
12830 _ACEOF
12831 if ac_fn_c_try_compile "$LINENO"; then :
12832   ac_cv_prog_cc_g=yes
12833 else
12834   CFLAGS=""
12835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h.  */
12837
12838 int
12839 main ()
12840 {
12841
12842   ;
12843   return 0;
12844 }
12845 _ACEOF
12846 if ac_fn_c_try_compile "$LINENO"; then :
12847
12848 else
12849   ac_c_werror_flag=$ac_save_c_werror_flag
12850          CFLAGS="-g"
12851          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h.  */
12853
12854 int
12855 main ()
12856 {
12857
12858   ;
12859   return 0;
12860 }
12861 _ACEOF
12862 if ac_fn_c_try_compile "$LINENO"; then :
12863   ac_cv_prog_cc_g=yes
12864 fi
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 fi
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 fi
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870    ac_c_werror_flag=$ac_save_c_werror_flag
12871 fi
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12873 $as_echo "$ac_cv_prog_cc_g" >&6; }
12874 if test "$ac_test_CFLAGS" = set; then
12875   CFLAGS=$ac_save_CFLAGS
12876 elif test $ac_cv_prog_cc_g = yes; then
12877   if test "$GCC" = yes; then
12878     CFLAGS="-g -O2"
12879   else
12880     CFLAGS="-g"
12881   fi
12882 else
12883   if test "$GCC" = yes; then
12884     CFLAGS="-O2"
12885   else
12886     CFLAGS=
12887   fi
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12891 if ${ac_cv_prog_cc_c89+:} false; then :
12892   $as_echo_n "(cached) " >&6
12893 else
12894   ac_cv_prog_cc_c89=no
12895 ac_save_CC=$CC
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h.  */
12898 #include <stdarg.h>
12899 #include <stdio.h>
12900 struct stat;
12901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12902 struct buf { int x; };
12903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12904 static char *e (p, i)
12905      char **p;
12906      int i;
12907 {
12908   return p[i];
12909 }
12910 static char *f (char * (*g) (char **, int), char **p, ...)
12911 {
12912   char *s;
12913   va_list v;
12914   va_start (v,p);
12915   s = g (p, va_arg (v,int));
12916   va_end (v);
12917   return s;
12918 }
12919
12920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12921    function prototypes and stuff, but not '\xHH' hex character constants.
12922    These don't provoke an error unfortunately, instead are silently treated
12923    as 'x'.  The following induces an error, until -std is added to get
12924    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12925    array size at least.  It's necessary to write '\x00'==0 to get something
12926    that's true only with -std.  */
12927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12928
12929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12930    inside strings and character constants.  */
12931 #define FOO(x) 'x'
12932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12933
12934 int test (int i, double x);
12935 struct s1 {int (*f) (int a);};
12936 struct s2 {int (*f) (double a);};
12937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12938 int argc;
12939 char **argv;
12940 int
12941 main ()
12942 {
12943 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12944   ;
12945   return 0;
12946 }
12947 _ACEOF
12948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12949         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12950 do
12951   CC="$ac_save_CC $ac_arg"
12952   if ac_fn_c_try_compile "$LINENO"; then :
12953   ac_cv_prog_cc_c89=$ac_arg
12954 fi
12955 rm -f core conftest.err conftest.$ac_objext
12956   test "x$ac_cv_prog_cc_c89" != "xno" && break
12957 done
12958 rm -f conftest.$ac_ext
12959 CC=$ac_save_CC
12960
12961 fi
12962 # AC_CACHE_VAL
12963 case "x$ac_cv_prog_cc_c89" in
12964   x)
12965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12966 $as_echo "none needed" >&6; } ;;
12967   xno)
12968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12969 $as_echo "unsupported" >&6; } ;;
12970   *)
12971     CC="$CC $ac_cv_prog_cc_c89"
12972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12974 esac
12975 if test "x$ac_cv_prog_cc_c89" != xno; then :
12976
12977 fi
12978
12979 ac_ext=c
12980 ac_cpp='$CPP $CPPFLAGS'
12981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12984
12985 ac_ext=c
12986 ac_cpp='$CPP $CPPFLAGS'
12987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12991 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12992 if ${am_cv_prog_cc_c_o+:} false; then :
12993   $as_echo_n "(cached) " >&6
12994 else
12995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h.  */
12997
12998 int
12999 main ()
13000 {
13001
13002   ;
13003   return 0;
13004 }
13005 _ACEOF
13006   # Make sure it works both with $CC and with simple cc.
13007   # Following AC_PROG_CC_C_O, we do the test twice because some
13008   # compilers refuse to overwrite an existing .o file with -o,
13009   # though they will create one.
13010   am_cv_prog_cc_c_o=yes
13011   for am_i in 1 2; do
13012     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13013    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13014    ac_status=$?
13015    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016    (exit $ac_status); } \
13017          && test -f conftest2.$ac_objext; then
13018       : OK
13019     else
13020       am_cv_prog_cc_c_o=no
13021       break
13022     fi
13023   done
13024   rm -f core conftest*
13025   unset am_i
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13028 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13029 if test "$am_cv_prog_cc_c_o" != yes; then
13030    # Losing compiler, so override with the script.
13031    # FIXME: It is wrong to rewrite CC.
13032    # But if we don't then we get into trouble of one sort or another.
13033    # A longer-term fix would be to have automake use am__CC in this case,
13034    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13035    CC="$am_aux_dir/compile $CC"
13036 fi
13037 ac_ext=c
13038 ac_cpp='$CPP $CPPFLAGS'
13039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13042
13043
13044 depcc="$CC"   am_compiler_list=
13045
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13047 $as_echo_n "checking dependency style of $depcc... " >&6; }
13048 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13049   $as_echo_n "(cached) " >&6
13050 else
13051   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13052   # We make a subdir and do the tests there.  Otherwise we can end up
13053   # making bogus files that we don't know about and never remove.  For
13054   # instance it was reported that on HP-UX the gcc test will end up
13055   # making a dummy file named 'D' -- because '-MD' means "put the output
13056   # in D".
13057   rm -rf conftest.dir
13058   mkdir conftest.dir
13059   # Copy depcomp to subdir because otherwise we won't find it if we're
13060   # using a relative directory.
13061   cp "$am_depcomp" conftest.dir
13062   cd conftest.dir
13063   # We will build objects and dependencies in a subdirectory because
13064   # it helps to detect inapplicable dependency modes.  For instance
13065   # both Tru64's cc and ICC support -MD to output dependencies as a
13066   # side effect of compilation, but ICC will put the dependencies in
13067   # the current directory while Tru64 will put them in the object
13068   # directory.
13069   mkdir sub
13070
13071   am_cv_CC_dependencies_compiler_type=none
13072   if test "$am_compiler_list" = ""; then
13073      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13074   fi
13075   am__universal=false
13076   case " $depcc " in #(
13077      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13078      esac
13079
13080   for depmode in $am_compiler_list; do
13081     # Setup a source with many dependencies, because some compilers
13082     # like to wrap large dependency lists on column 80 (with \), and
13083     # we should not choose a depcomp mode which is confused by this.
13084     #
13085     # We need to recreate these files for each test, as the compiler may
13086     # overwrite some of them when testing with obscure command lines.
13087     # This happens at least with the AIX C compiler.
13088     : > sub/conftest.c
13089     for i in 1 2 3 4 5 6; do
13090       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13091       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13092       # Solaris 10 /bin/sh.
13093       echo '/* dummy */' > sub/conftst$i.h
13094     done
13095     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13096
13097     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13098     # mode.  It turns out that the SunPro C++ compiler does not properly
13099     # handle '-M -o', and we need to detect this.  Also, some Intel
13100     # versions had trouble with output in subdirs.
13101     am__obj=sub/conftest.${OBJEXT-o}
13102     am__minus_obj="-o $am__obj"
13103     case $depmode in
13104     gcc)
13105       # This depmode causes a compiler race in universal mode.
13106       test "$am__universal" = false || continue
13107       ;;
13108     nosideeffect)
13109       # After this tag, mechanisms are not by side-effect, so they'll
13110       # only be used when explicitly requested.
13111       if test "x$enable_dependency_tracking" = xyes; then
13112         continue
13113       else
13114         break
13115       fi
13116       ;;
13117     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13118       # This compiler won't grok '-c -o', but also, the minuso test has
13119       # not run yet.  These depmodes are late enough in the game, and
13120       # so weak that their functioning should not be impacted.
13121       am__obj=conftest.${OBJEXT-o}
13122       am__minus_obj=
13123       ;;
13124     none) break ;;
13125     esac
13126     if depmode=$depmode \
13127        source=sub/conftest.c object=$am__obj \
13128        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13129        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13130          >/dev/null 2>conftest.err &&
13131        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13132        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13133        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13134        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13135       # icc doesn't choke on unknown options, it will just issue warnings
13136       # or remarks (even with -Werror).  So we grep stderr for any message
13137       # that says an option was ignored or not supported.
13138       # When given -MP, icc 7.0 and 7.1 complain thusly:
13139       #   icc: Command line warning: ignoring option '-M'; no argument required
13140       # The diagnosis changed in icc 8.0:
13141       #   icc: Command line remark: option '-MP' not supported
13142       if (grep 'ignoring option' conftest.err ||
13143           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13144         am_cv_CC_dependencies_compiler_type=$depmode
13145         break
13146       fi
13147     fi
13148   done
13149
13150   cd ..
13151   rm -rf conftest.dir
13152 else
13153   am_cv_CC_dependencies_compiler_type=none
13154 fi
13155
13156 fi
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13158 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13159 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13160
13161  if
13162   test "x$enable_dependency_tracking" != xno \
13163   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13164   am__fastdepCC_TRUE=
13165   am__fastdepCC_FALSE='#'
13166 else
13167   am__fastdepCC_TRUE='#'
13168   am__fastdepCC_FALSE=
13169 fi
13170
13171
13172
13173 ac_ext=cpp
13174 ac_cpp='$CXXCPP $CPPFLAGS'
13175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13178 if test -z "$CXX"; then
13179   if test -n "$CCC"; then
13180     CXX=$CCC
13181   else
13182     if test -n "$ac_tool_prefix"; then
13183   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13184   do
13185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188 $as_echo_n "checking for $ac_word... " >&6; }
13189 if ${ac_cv_prog_CXX+:} false; then :
13190   $as_echo_n "(cached) " >&6
13191 else
13192   if test -n "$CXX"; then
13193   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13194 else
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $PATH
13197 do
13198   IFS=$as_save_IFS
13199   test -z "$as_dir" && as_dir=.
13200     for ac_exec_ext in '' $ac_executable_extensions; do
13201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13202     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204     break 2
13205   fi
13206 done
13207   done
13208 IFS=$as_save_IFS
13209
13210 fi
13211 fi
13212 CXX=$ac_cv_prog_CXX
13213 if test -n "$CXX"; then
13214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13215 $as_echo "$CXX" >&6; }
13216 else
13217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218 $as_echo "no" >&6; }
13219 fi
13220
13221
13222     test -n "$CXX" && break
13223   done
13224 fi
13225 if test -z "$CXX"; then
13226   ac_ct_CXX=$CXX
13227   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13228 do
13229   # Extract the first word of "$ac_prog", so it can be a program name with args.
13230 set dummy $ac_prog; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13234   $as_echo_n "(cached) " >&6
13235 else
13236   if test -n "$ac_ct_CXX"; then
13237   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13238 else
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13241 do
13242   IFS=$as_save_IFS
13243   test -z "$as_dir" && as_dir=.
13244     for ac_exec_ext in '' $ac_executable_extensions; do
13245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13246     ac_cv_prog_ac_ct_CXX="$ac_prog"
13247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248     break 2
13249   fi
13250 done
13251   done
13252 IFS=$as_save_IFS
13253
13254 fi
13255 fi
13256 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13257 if test -n "$ac_ct_CXX"; then
13258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13259 $as_echo "$ac_ct_CXX" >&6; }
13260 else
13261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13263 fi
13264
13265
13266   test -n "$ac_ct_CXX" && break
13267 done
13268
13269   if test "x$ac_ct_CXX" = x; then
13270     CXX="g++"
13271   else
13272     case $cross_compiling:$ac_tool_warned in
13273 yes:)
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13276 ac_tool_warned=yes ;;
13277 esac
13278     CXX=$ac_ct_CXX
13279   fi
13280 fi
13281
13282   fi
13283 fi
13284 # Provide some information about the compiler.
13285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13286 set X $ac_compile
13287 ac_compiler=$2
13288 for ac_option in --version -v -V -qversion; do
13289   { { ac_try="$ac_compiler $ac_option >&5"
13290 case "(($ac_try" in
13291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292   *) ac_try_echo=$ac_try;;
13293 esac
13294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13295 $as_echo "$ac_try_echo"; } >&5
13296   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13297   ac_status=$?
13298   if test -s conftest.err; then
13299     sed '10a\
13300 ... rest of stderr output deleted ...
13301          10q' conftest.err >conftest.er1
13302     cat conftest.er1 >&5
13303   fi
13304   rm -f conftest.er1 conftest.err
13305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13306   test $ac_status = 0; }
13307 done
13308
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13310 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13311 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13312   $as_echo_n "(cached) " >&6
13313 else
13314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h.  */
13316
13317 int
13318 main ()
13319 {
13320 #ifndef __GNUC__
13321        choke me
13322 #endif
13323
13324   ;
13325   return 0;
13326 }
13327 _ACEOF
13328 if ac_fn_cxx_try_compile "$LINENO"; then :
13329   ac_compiler_gnu=yes
13330 else
13331   ac_compiler_gnu=no
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13335
13336 fi
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13338 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13339 if test $ac_compiler_gnu = yes; then
13340   GXX=yes
13341 else
13342   GXX=
13343 fi
13344 ac_test_CXXFLAGS=${CXXFLAGS+set}
13345 ac_save_CXXFLAGS=$CXXFLAGS
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13347 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13348 if ${ac_cv_prog_cxx_g+:} false; then :
13349   $as_echo_n "(cached) " >&6
13350 else
13351   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13352    ac_cxx_werror_flag=yes
13353    ac_cv_prog_cxx_g=no
13354    CXXFLAGS="-g"
13355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h.  */
13357
13358 int
13359 main ()
13360 {
13361
13362   ;
13363   return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_cxx_try_compile "$LINENO"; then :
13367   ac_cv_prog_cxx_g=yes
13368 else
13369   CXXFLAGS=""
13370       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h.  */
13372
13373 int
13374 main ()
13375 {
13376
13377   ;
13378   return 0;
13379 }
13380 _ACEOF
13381 if ac_fn_cxx_try_compile "$LINENO"; then :
13382
13383 else
13384   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13385          CXXFLAGS="-g"
13386          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h.  */
13388
13389 int
13390 main ()
13391 {
13392
13393   ;
13394   return 0;
13395 }
13396 _ACEOF
13397 if ac_fn_cxx_try_compile "$LINENO"; then :
13398   ac_cv_prog_cxx_g=yes
13399 fi
13400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 fi
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13406 fi
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13408 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13409 if test "$ac_test_CXXFLAGS" = set; then
13410   CXXFLAGS=$ac_save_CXXFLAGS
13411 elif test $ac_cv_prog_cxx_g = yes; then
13412   if test "$GXX" = yes; then
13413     CXXFLAGS="-g -O2"
13414   else
13415     CXXFLAGS="-g"
13416   fi
13417 else
13418   if test "$GXX" = yes; then
13419     CXXFLAGS="-O2"
13420   else
13421     CXXFLAGS=
13422   fi
13423 fi
13424 ac_ext=c
13425 ac_cpp='$CPP $CPPFLAGS'
13426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13429
13430 depcc="$CXX"  am_compiler_list=
13431
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13433 $as_echo_n "checking dependency style of $depcc... " >&6; }
13434 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13435   $as_echo_n "(cached) " >&6
13436 else
13437   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13438   # We make a subdir and do the tests there.  Otherwise we can end up
13439   # making bogus files that we don't know about and never remove.  For
13440   # instance it was reported that on HP-UX the gcc test will end up
13441   # making a dummy file named 'D' -- because '-MD' means "put the output
13442   # in D".
13443   rm -rf conftest.dir
13444   mkdir conftest.dir
13445   # Copy depcomp to subdir because otherwise we won't find it if we're
13446   # using a relative directory.
13447   cp "$am_depcomp" conftest.dir
13448   cd conftest.dir
13449   # We will build objects and dependencies in a subdirectory because
13450   # it helps to detect inapplicable dependency modes.  For instance
13451   # both Tru64's cc and ICC support -MD to output dependencies as a
13452   # side effect of compilation, but ICC will put the dependencies in
13453   # the current directory while Tru64 will put them in the object
13454   # directory.
13455   mkdir sub
13456
13457   am_cv_CXX_dependencies_compiler_type=none
13458   if test "$am_compiler_list" = ""; then
13459      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13460   fi
13461   am__universal=false
13462   case " $depcc " in #(
13463      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13464      esac
13465
13466   for depmode in $am_compiler_list; do
13467     # Setup a source with many dependencies, because some compilers
13468     # like to wrap large dependency lists on column 80 (with \), and
13469     # we should not choose a depcomp mode which is confused by this.
13470     #
13471     # We need to recreate these files for each test, as the compiler may
13472     # overwrite some of them when testing with obscure command lines.
13473     # This happens at least with the AIX C compiler.
13474     : > sub/conftest.c
13475     for i in 1 2 3 4 5 6; do
13476       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13477       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13478       # Solaris 10 /bin/sh.
13479       echo '/* dummy */' > sub/conftst$i.h
13480     done
13481     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13482
13483     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13484     # mode.  It turns out that the SunPro C++ compiler does not properly
13485     # handle '-M -o', and we need to detect this.  Also, some Intel
13486     # versions had trouble with output in subdirs.
13487     am__obj=sub/conftest.${OBJEXT-o}
13488     am__minus_obj="-o $am__obj"
13489     case $depmode in
13490     gcc)
13491       # This depmode causes a compiler race in universal mode.
13492       test "$am__universal" = false || continue
13493       ;;
13494     nosideeffect)
13495       # After this tag, mechanisms are not by side-effect, so they'll
13496       # only be used when explicitly requested.
13497       if test "x$enable_dependency_tracking" = xyes; then
13498         continue
13499       else
13500         break
13501       fi
13502       ;;
13503     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13504       # This compiler won't grok '-c -o', but also, the minuso test has
13505       # not run yet.  These depmodes are late enough in the game, and
13506       # so weak that their functioning should not be impacted.
13507       am__obj=conftest.${OBJEXT-o}
13508       am__minus_obj=
13509       ;;
13510     none) break ;;
13511     esac
13512     if depmode=$depmode \
13513        source=sub/conftest.c object=$am__obj \
13514        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13515        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13516          >/dev/null 2>conftest.err &&
13517        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13518        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13519        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13520        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13521       # icc doesn't choke on unknown options, it will just issue warnings
13522       # or remarks (even with -Werror).  So we grep stderr for any message
13523       # that says an option was ignored or not supported.
13524       # When given -MP, icc 7.0 and 7.1 complain thusly:
13525       #   icc: Command line warning: ignoring option '-M'; no argument required
13526       # The diagnosis changed in icc 8.0:
13527       #   icc: Command line remark: option '-MP' not supported
13528       if (grep 'ignoring option' conftest.err ||
13529           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13530         am_cv_CXX_dependencies_compiler_type=$depmode
13531         break
13532       fi
13533     fi
13534   done
13535
13536   cd ..
13537   rm -rf conftest.dir
13538 else
13539   am_cv_CXX_dependencies_compiler_type=none
13540 fi
13541
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13544 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13545 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13546
13547  if
13548   test "x$enable_dependency_tracking" != xno \
13549   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13550   am__fastdepCXX_TRUE=
13551   am__fastdepCXX_FALSE='#'
13552 else
13553   am__fastdepCXX_TRUE='#'
13554   am__fastdepCXX_FALSE=
13555 fi
13556
13557
13558
13559
13560 func_stripname_cnf ()
13561 {
13562   case ${2} in
13563   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13564   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13565   esac
13566 } # func_stripname_cnf
13567
13568       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13569     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13570     (test "X$CXX" != "Xg++"))) ; then
13571   ac_ext=cpp
13572 ac_cpp='$CXXCPP $CPPFLAGS'
13573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13577 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13578 if test -z "$CXXCPP"; then
13579   if ${ac_cv_prog_CXXCPP+:} false; then :
13580   $as_echo_n "(cached) " >&6
13581 else
13582       # Double quotes because CXXCPP needs to be expanded
13583     for CXXCPP in "$CXX -E" "/lib/cpp"
13584     do
13585       ac_preproc_ok=false
13586 for ac_cxx_preproc_warn_flag in '' yes
13587 do
13588   # Use a header file that comes with gcc, so configuring glibc
13589   # with a fresh cross-compiler works.
13590   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13591   # <limits.h> exists even on freestanding compilers.
13592   # On the NeXT, cc -E runs the code through the compiler's parser,
13593   # not just through cpp. "Syntax error" is here to catch this case.
13594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h.  */
13596 #ifdef __STDC__
13597 # include <limits.h>
13598 #else
13599 # include <assert.h>
13600 #endif
13601                      Syntax error
13602 _ACEOF
13603 if ac_fn_cxx_try_cpp "$LINENO"; then :
13604
13605 else
13606   # Broken: fails on valid input.
13607 continue
13608 fi
13609 rm -f conftest.err conftest.i conftest.$ac_ext
13610
13611   # OK, works on sane cases.  Now check whether nonexistent headers
13612   # can be detected and how.
13613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h.  */
13615 #include <ac_nonexistent.h>
13616 _ACEOF
13617 if ac_fn_cxx_try_cpp "$LINENO"; then :
13618   # Broken: success on invalid input.
13619 continue
13620 else
13621   # Passes both tests.
13622 ac_preproc_ok=:
13623 break
13624 fi
13625 rm -f conftest.err conftest.i conftest.$ac_ext
13626
13627 done
13628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13629 rm -f conftest.i conftest.err conftest.$ac_ext
13630 if $ac_preproc_ok; then :
13631   break
13632 fi
13633
13634     done
13635     ac_cv_prog_CXXCPP=$CXXCPP
13636
13637 fi
13638   CXXCPP=$ac_cv_prog_CXXCPP
13639 else
13640   ac_cv_prog_CXXCPP=$CXXCPP
13641 fi
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13643 $as_echo "$CXXCPP" >&6; }
13644 ac_preproc_ok=false
13645 for ac_cxx_preproc_warn_flag in '' yes
13646 do
13647   # Use a header file that comes with gcc, so configuring glibc
13648   # with a fresh cross-compiler works.
13649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650   # <limits.h> exists even on freestanding compilers.
13651   # On the NeXT, cc -E runs the code through the compiler's parser,
13652   # not just through cpp. "Syntax error" is here to catch this case.
13653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h.  */
13655 #ifdef __STDC__
13656 # include <limits.h>
13657 #else
13658 # include <assert.h>
13659 #endif
13660                      Syntax error
13661 _ACEOF
13662 if ac_fn_cxx_try_cpp "$LINENO"; then :
13663
13664 else
13665   # Broken: fails on valid input.
13666 continue
13667 fi
13668 rm -f conftest.err conftest.i conftest.$ac_ext
13669
13670   # OK, works on sane cases.  Now check whether nonexistent headers
13671   # can be detected and how.
13672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h.  */
13674 #include <ac_nonexistent.h>
13675 _ACEOF
13676 if ac_fn_cxx_try_cpp "$LINENO"; then :
13677   # Broken: success on invalid input.
13678 continue
13679 else
13680   # Passes both tests.
13681 ac_preproc_ok=:
13682 break
13683 fi
13684 rm -f conftest.err conftest.i conftest.$ac_ext
13685
13686 done
13687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13688 rm -f conftest.i conftest.err conftest.$ac_ext
13689 if $ac_preproc_ok; then :
13690
13691 else
13692   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13694 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13695 See \`config.log' for more details" "$LINENO" 5; }
13696 fi
13697
13698 ac_ext=c
13699 ac_cpp='$CPP $CPPFLAGS'
13700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13703
13704 else
13705   _lt_caught_CXX_error=yes
13706 fi
13707
13708 ac_ext=cpp
13709 ac_cpp='$CXXCPP $CPPFLAGS'
13710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13713
13714 archive_cmds_need_lc_CXX=no
13715 allow_undefined_flag_CXX=
13716 always_export_symbols_CXX=no
13717 archive_expsym_cmds_CXX=
13718 compiler_needs_object_CXX=no
13719 export_dynamic_flag_spec_CXX=
13720 hardcode_direct_CXX=no
13721 hardcode_direct_absolute_CXX=no
13722 hardcode_libdir_flag_spec_CXX=
13723 hardcode_libdir_separator_CXX=
13724 hardcode_minus_L_CXX=no
13725 hardcode_shlibpath_var_CXX=unsupported
13726 hardcode_automatic_CXX=no
13727 inherit_rpath_CXX=no
13728 module_cmds_CXX=
13729 module_expsym_cmds_CXX=
13730 link_all_deplibs_CXX=unknown
13731 old_archive_cmds_CXX=$old_archive_cmds
13732 reload_flag_CXX=$reload_flag
13733 reload_cmds_CXX=$reload_cmds
13734 no_undefined_flag_CXX=
13735 whole_archive_flag_spec_CXX=
13736 enable_shared_with_static_runtimes_CXX=no
13737
13738 # Source file extension for C++ test sources.
13739 ac_ext=cpp
13740
13741 # Object file extension for compiled C++ test sources.
13742 objext=o
13743 objext_CXX=$objext
13744
13745 # No sense in running all these tests if we already determined that
13746 # the CXX compiler isn't working.  Some variables (like enable_shared)
13747 # are currently assumed to apply to all compilers on this platform,
13748 # and will be corrupted by setting them based on a non-working compiler.
13749 if test "$_lt_caught_CXX_error" != yes; then
13750   # Code to be used in simple compile tests
13751   lt_simple_compile_test_code="int some_variable = 0;"
13752
13753   # Code to be used in simple link tests
13754   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13755
13756   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13757
13758
13759
13760
13761
13762
13763 # If no C compiler was specified, use CC.
13764 LTCC=${LTCC-"$CC"}
13765
13766 # If no C compiler flags were specified, use CFLAGS.
13767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13768
13769 # Allow CC to be a program name with arguments.
13770 compiler=$CC
13771
13772
13773   # save warnings/boilerplate of simple test code
13774   ac_outfile=conftest.$ac_objext
13775 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13776 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13777 _lt_compiler_boilerplate=`cat conftest.err`
13778 $RM conftest*
13779
13780   ac_outfile=conftest.$ac_objext
13781 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13782 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13783 _lt_linker_boilerplate=`cat conftest.err`
13784 $RM -r conftest*
13785
13786
13787   # Allow CC to be a program name with arguments.
13788   lt_save_CC=$CC
13789   lt_save_CFLAGS=$CFLAGS
13790   lt_save_LD=$LD
13791   lt_save_GCC=$GCC
13792   GCC=$GXX
13793   lt_save_with_gnu_ld=$with_gnu_ld
13794   lt_save_path_LD=$lt_cv_path_LD
13795   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13796     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13797   else
13798     $as_unset lt_cv_prog_gnu_ld
13799   fi
13800   if test -n "${lt_cv_path_LDCXX+set}"; then
13801     lt_cv_path_LD=$lt_cv_path_LDCXX
13802   else
13803     $as_unset lt_cv_path_LD
13804   fi
13805   test -z "${LDCXX+set}" || LD=$LDCXX
13806   CC=${CXX-"c++"}
13807   CFLAGS=$CXXFLAGS
13808   compiler=$CC
13809   compiler_CXX=$CC
13810   for cc_temp in $compiler""; do
13811   case $cc_temp in
13812     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13813     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13814     \-*) ;;
13815     *) break;;
13816   esac
13817 done
13818 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13819
13820
13821   if test -n "$compiler"; then
13822     # We don't want -fno-exception when compiling C++ code, so set the
13823     # no_builtin_flag separately
13824     if test "$GXX" = yes; then
13825       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13826     else
13827       lt_prog_compiler_no_builtin_flag_CXX=
13828     fi
13829
13830     if test "$GXX" = yes; then
13831       # Set up default GNU C++ configuration
13832
13833
13834
13835 # Check whether --with-gnu-ld was given.
13836 if test "${with_gnu_ld+set}" = set; then :
13837   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13838 else
13839   with_gnu_ld=no
13840 fi
13841
13842 ac_prog=ld
13843 if test "$GCC" = yes; then
13844   # Check if gcc -print-prog-name=ld gives a path.
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13846 $as_echo_n "checking for ld used by $CC... " >&6; }
13847   case $host in
13848   *-*-mingw*)
13849     # gcc leaves a trailing carriage return which upsets mingw
13850     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13851   *)
13852     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13853   esac
13854   case $ac_prog in
13855     # Accept absolute paths.
13856     [\\/]* | ?:[\\/]*)
13857       re_direlt='/[^/][^/]*/\.\./'
13858       # Canonicalize the pathname of ld
13859       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13860       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13861         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13862       done
13863       test -z "$LD" && LD="$ac_prog"
13864       ;;
13865   "")
13866     # If it fails, then pretend we aren't using GCC.
13867     ac_prog=ld
13868     ;;
13869   *)
13870     # If it is relative, then search for the first ld in PATH.
13871     with_gnu_ld=unknown
13872     ;;
13873   esac
13874 elif test "$with_gnu_ld" = yes; then
13875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13876 $as_echo_n "checking for GNU ld... " >&6; }
13877 else
13878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13879 $as_echo_n "checking for non-GNU ld... " >&6; }
13880 fi
13881 if ${lt_cv_path_LD+:} false; then :
13882   $as_echo_n "(cached) " >&6
13883 else
13884   if test -z "$LD"; then
13885   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13886   for ac_dir in $PATH; do
13887     IFS="$lt_save_ifs"
13888     test -z "$ac_dir" && ac_dir=.
13889     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13890       lt_cv_path_LD="$ac_dir/$ac_prog"
13891       # Check to see if the program is GNU ld.  I'd rather use --version,
13892       # but apparently some variants of GNU ld only accept -v.
13893       # Break only if it was the GNU/non-GNU ld that we prefer.
13894       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13895       *GNU* | *'with BFD'*)
13896         test "$with_gnu_ld" != no && break
13897         ;;
13898       *)
13899         test "$with_gnu_ld" != yes && break
13900         ;;
13901       esac
13902     fi
13903   done
13904   IFS="$lt_save_ifs"
13905 else
13906   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13907 fi
13908 fi
13909
13910 LD="$lt_cv_path_LD"
13911 if test -n "$LD"; then
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13913 $as_echo "$LD" >&6; }
13914 else
13915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13917 fi
13918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13921 if ${lt_cv_prog_gnu_ld+:} false; then :
13922   $as_echo_n "(cached) " >&6
13923 else
13924   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13925 case `$LD -v 2>&1 </dev/null` in
13926 *GNU* | *'with BFD'*)
13927   lt_cv_prog_gnu_ld=yes
13928   ;;
13929 *)
13930   lt_cv_prog_gnu_ld=no
13931   ;;
13932 esac
13933 fi
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13935 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13936 with_gnu_ld=$lt_cv_prog_gnu_ld
13937
13938
13939
13940
13941
13942
13943
13944       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13945       # archiving commands below assume that GNU ld is being used.
13946       if test "$with_gnu_ld" = yes; then
13947         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13948         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'
13949
13950         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13951         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13952
13953         # If archive_cmds runs LD, not CC, wlarc should be empty
13954         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13955         #     investigate it a little bit more. (MM)
13956         wlarc='${wl}'
13957
13958         # ancient GNU ld didn't support --whole-archive et. al.
13959         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13960           $GREP 'no-whole-archive' > /dev/null; then
13961           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13962         else
13963           whole_archive_flag_spec_CXX=
13964         fi
13965       else
13966         with_gnu_ld=no
13967         wlarc=
13968
13969         # A generic and very simple default shared library creation
13970         # command for GNU C++ for the case where it uses the native
13971         # linker, instead of GNU ld.  If possible, this setting should
13972         # overridden to take advantage of the native linker features on
13973         # the platform it is being used on.
13974         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13975       fi
13976
13977       # Commands to make compiler produce verbose output that lists
13978       # what "hidden" libraries, object files and flags are used when
13979       # linking a shared library.
13980       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13981
13982     else
13983       GXX=no
13984       with_gnu_ld=no
13985       wlarc=
13986     fi
13987
13988     # PORTME: fill in a description of your system's C++ link characteristics
13989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13990 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13991     ld_shlibs_CXX=yes
13992     case $host_os in
13993       aix3*)
13994         # FIXME: insert proper C++ library support
13995         ld_shlibs_CXX=no
13996         ;;
13997       aix[4-9]*)
13998         if test "$host_cpu" = ia64; then
13999           # On IA64, the linker does run time linking by default, so we don't
14000           # have to do anything special.
14001           aix_use_runtimelinking=no
14002           exp_sym_flag='-Bexport'
14003           no_entry_flag=""
14004         else
14005           aix_use_runtimelinking=no
14006
14007           # Test if we are trying to use run time linking or normal
14008           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14009           # need to do runtime linking.
14010           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14011             for ld_flag in $LDFLAGS; do
14012               case $ld_flag in
14013               *-brtl*)
14014                 aix_use_runtimelinking=yes
14015                 break
14016                 ;;
14017               esac
14018             done
14019             ;;
14020           esac
14021
14022           exp_sym_flag='-bexport'
14023           no_entry_flag='-bnoentry'
14024         fi
14025
14026         # When large executables or shared objects are built, AIX ld can
14027         # have problems creating the table of contents.  If linking a library
14028         # or program results in "error TOC overflow" add -mminimal-toc to
14029         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14030         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14031
14032         archive_cmds_CXX=''
14033         hardcode_direct_CXX=yes
14034         hardcode_direct_absolute_CXX=yes
14035         hardcode_libdir_separator_CXX=':'
14036         link_all_deplibs_CXX=yes
14037         file_list_spec_CXX='${wl}-f,'
14038
14039         if test "$GXX" = yes; then
14040           case $host_os in aix4.[012]|aix4.[012].*)
14041           # We only want to do this on AIX 4.2 and lower, the check
14042           # below for broken collect2 doesn't work under 4.3+
14043           collect2name=`${CC} -print-prog-name=collect2`
14044           if test -f "$collect2name" &&
14045              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14046           then
14047             # We have reworked collect2
14048             :
14049           else
14050             # We have old collect2
14051             hardcode_direct_CXX=unsupported
14052             # It fails to find uninstalled libraries when the uninstalled
14053             # path is not listed in the libpath.  Setting hardcode_minus_L
14054             # to unsupported forces relinking
14055             hardcode_minus_L_CXX=yes
14056             hardcode_libdir_flag_spec_CXX='-L$libdir'
14057             hardcode_libdir_separator_CXX=
14058           fi
14059           esac
14060           shared_flag='-shared'
14061           if test "$aix_use_runtimelinking" = yes; then
14062             shared_flag="$shared_flag "'${wl}-G'
14063           fi
14064         else
14065           # not using gcc
14066           if test "$host_cpu" = ia64; then
14067           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14068           # chokes on -Wl,-G. The following line is correct:
14069           shared_flag='-G'
14070           else
14071             if test "$aix_use_runtimelinking" = yes; then
14072               shared_flag='${wl}-G'
14073             else
14074               shared_flag='${wl}-bM:SRE'
14075             fi
14076           fi
14077         fi
14078
14079         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14080         # It seems that -bexpall does not export symbols beginning with
14081         # underscore (_), so it is better to generate a list of symbols to
14082         # export.
14083         always_export_symbols_CXX=yes
14084         if test "$aix_use_runtimelinking" = yes; then
14085           # Warning - without using the other runtime loading flags (-brtl),
14086           # -berok will link without error, but may produce a broken library.
14087           allow_undefined_flag_CXX='-berok'
14088           # Determine the default libpath from the value encoded in an empty
14089           # executable.
14090           if test "${lt_cv_aix_libpath+set}" = set; then
14091   aix_libpath=$lt_cv_aix_libpath
14092 else
14093   if ${lt_cv_aix_libpath__CXX+:} false; then :
14094   $as_echo_n "(cached) " >&6
14095 else
14096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h.  */
14098
14099 int
14100 main ()
14101 {
14102
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 if ac_fn_cxx_try_link "$LINENO"; then :
14108
14109   lt_aix_libpath_sed='
14110       /Import File Strings/,/^$/ {
14111           /^0/ {
14112               s/^0  *\([^ ]*\) *$/\1/
14113               p
14114           }
14115       }'
14116   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14117   # Check for a 64-bit object if we didn't find anything.
14118   if test -z "$lt_cv_aix_libpath__CXX"; then
14119     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14120   fi
14121 fi
14122 rm -f core conftest.err conftest.$ac_objext \
14123     conftest$ac_exeext conftest.$ac_ext
14124   if test -z "$lt_cv_aix_libpath__CXX"; then
14125     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14126   fi
14127
14128 fi
14129
14130   aix_libpath=$lt_cv_aix_libpath__CXX
14131 fi
14132
14133           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14134
14135           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14136         else
14137           if test "$host_cpu" = ia64; then
14138             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14139             allow_undefined_flag_CXX="-z nodefs"
14140             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"
14141           else
14142             # Determine the default libpath from the value encoded in an
14143             # empty executable.
14144             if test "${lt_cv_aix_libpath+set}" = set; then
14145   aix_libpath=$lt_cv_aix_libpath
14146 else
14147   if ${lt_cv_aix_libpath__CXX+:} false; then :
14148   $as_echo_n "(cached) " >&6
14149 else
14150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h.  */
14152
14153 int
14154 main ()
14155 {
14156
14157   ;
14158   return 0;
14159 }
14160 _ACEOF
14161 if ac_fn_cxx_try_link "$LINENO"; then :
14162
14163   lt_aix_libpath_sed='
14164       /Import File Strings/,/^$/ {
14165           /^0/ {
14166               s/^0  *\([^ ]*\) *$/\1/
14167               p
14168           }
14169       }'
14170   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14171   # Check for a 64-bit object if we didn't find anything.
14172   if test -z "$lt_cv_aix_libpath__CXX"; then
14173     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14174   fi
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext \
14177     conftest$ac_exeext conftest.$ac_ext
14178   if test -z "$lt_cv_aix_libpath__CXX"; then
14179     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14180   fi
14181
14182 fi
14183
14184   aix_libpath=$lt_cv_aix_libpath__CXX
14185 fi
14186
14187             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14188             # Warning - without using the other run time loading flags,
14189             # -berok will link without error, but may produce a broken library.
14190             no_undefined_flag_CXX=' ${wl}-bernotok'
14191             allow_undefined_flag_CXX=' ${wl}-berok'
14192             if test "$with_gnu_ld" = yes; then
14193               # We only use this code for GNU lds that support --whole-archive.
14194               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14195             else
14196               # Exported symbols can be pulled into shared objects from archives
14197               whole_archive_flag_spec_CXX='$convenience'
14198             fi
14199             archive_cmds_need_lc_CXX=yes
14200             # This is similar to how AIX traditionally builds its shared
14201             # libraries.
14202             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14203           fi
14204         fi
14205         ;;
14206
14207       beos*)
14208         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14209           allow_undefined_flag_CXX=unsupported
14210           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14211           # support --undefined.  This deserves some investigation.  FIXME
14212           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14213         else
14214           ld_shlibs_CXX=no
14215         fi
14216         ;;
14217
14218       chorus*)
14219         case $cc_basename in
14220           *)
14221           # FIXME: insert proper C++ library support
14222           ld_shlibs_CXX=no
14223           ;;
14224         esac
14225         ;;
14226
14227       cygwin* | mingw* | pw32* | cegcc*)
14228         case $GXX,$cc_basename in
14229         ,cl* | no,cl*)
14230           # Native MSVC
14231           # hardcode_libdir_flag_spec is actually meaningless, as there is
14232           # no search path for DLLs.
14233           hardcode_libdir_flag_spec_CXX=' '
14234           allow_undefined_flag_CXX=unsupported
14235           always_export_symbols_CXX=yes
14236           file_list_spec_CXX='@'
14237           # Tell ltmain to make .lib files, not .a files.
14238           libext=lib
14239           # Tell ltmain to make .dll files, not .so files.
14240           shrext_cmds=".dll"
14241           # FIXME: Setting linknames here is a bad hack.
14242           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14243           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14244               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14245             else
14246               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14247             fi~
14248             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14249             linknames='
14250           # The linker will not automatically build a static lib if we build a DLL.
14251           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14252           enable_shared_with_static_runtimes_CXX=yes
14253           # Don't use ranlib
14254           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14255           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14256             lt_tool_outputfile="@TOOL_OUTPUT@"~
14257             case $lt_outputfile in
14258               *.exe|*.EXE) ;;
14259               *)
14260                 lt_outputfile="$lt_outputfile.exe"
14261                 lt_tool_outputfile="$lt_tool_outputfile.exe"
14262                 ;;
14263             esac~
14264             func_to_tool_file "$lt_outputfile"~
14265             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14266               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14267               $RM "$lt_outputfile.manifest";
14268             fi'
14269           ;;
14270         *)
14271           # g++
14272           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14273           # as there is no search path for DLLs.
14274           hardcode_libdir_flag_spec_CXX='-L$libdir'
14275           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14276           allow_undefined_flag_CXX=unsupported
14277           always_export_symbols_CXX=no
14278           enable_shared_with_static_runtimes_CXX=yes
14279
14280           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14281             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'
14282             # If the export-symbols file already is a .def file (1st line
14283             # is EXPORTS), use it as is; otherwise, prepend...
14284             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14285               cp $export_symbols $output_objdir/$soname.def;
14286             else
14287               echo EXPORTS > $output_objdir/$soname.def;
14288               cat $export_symbols >> $output_objdir/$soname.def;
14289             fi~
14290             $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'
14291           else
14292             ld_shlibs_CXX=no
14293           fi
14294           ;;
14295         esac
14296         ;;
14297       darwin* | rhapsody*)
14298
14299
14300   archive_cmds_need_lc_CXX=no
14301   hardcode_direct_CXX=no
14302   hardcode_automatic_CXX=yes
14303   hardcode_shlibpath_var_CXX=unsupported
14304   if test "$lt_cv_ld_force_load" = "yes"; then
14305     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\"`'
14306
14307   else
14308     whole_archive_flag_spec_CXX=''
14309   fi
14310   link_all_deplibs_CXX=yes
14311   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14312   case $cc_basename in
14313      ifort*) _lt_dar_can_shared=yes ;;
14314      *) _lt_dar_can_shared=$GCC ;;
14315   esac
14316   if test "$_lt_dar_can_shared" = "yes"; then
14317     output_verbose_link_cmd=func_echo_all
14318     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}"
14319     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14320     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}"
14321     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}"
14322        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14323       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}"
14324       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}"
14325     fi
14326
14327   else
14328   ld_shlibs_CXX=no
14329   fi
14330
14331         ;;
14332
14333       dgux*)
14334         case $cc_basename in
14335           ec++*)
14336             # FIXME: insert proper C++ library support
14337             ld_shlibs_CXX=no
14338             ;;
14339           ghcx*)
14340             # Green Hills C++ Compiler
14341             # FIXME: insert proper C++ library support
14342             ld_shlibs_CXX=no
14343             ;;
14344           *)
14345             # FIXME: insert proper C++ library support
14346             ld_shlibs_CXX=no
14347             ;;
14348         esac
14349         ;;
14350
14351       freebsd2.*)
14352         # C++ shared libraries reported to be fairly broken before
14353         # switch to ELF
14354         ld_shlibs_CXX=no
14355         ;;
14356
14357       freebsd-elf*)
14358         archive_cmds_need_lc_CXX=no
14359         ;;
14360
14361       freebsd* | dragonfly*)
14362         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14363         # conventions
14364         ld_shlibs_CXX=yes
14365         ;;
14366
14367       haiku*)
14368         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14369         link_all_deplibs_CXX=yes
14370         ;;
14371
14372       hpux9*)
14373         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14374         hardcode_libdir_separator_CXX=:
14375         export_dynamic_flag_spec_CXX='${wl}-E'
14376         hardcode_direct_CXX=yes
14377         hardcode_minus_L_CXX=yes # Not in the search PATH,
14378                                              # but as the default
14379                                              # location of the library.
14380
14381         case $cc_basename in
14382           CC*)
14383             # FIXME: insert proper C++ library support
14384             ld_shlibs_CXX=no
14385             ;;
14386           aCC*)
14387             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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14388             # Commands to make compiler produce verbose output that lists
14389             # what "hidden" libraries, object files and flags are used when
14390             # linking a shared library.
14391             #
14392             # There doesn't appear to be a way to prevent this compiler from
14393             # explicitly linking system object files so we need to strip them
14394             # from the output so that they don't get included in the library
14395             # dependencies.
14396             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"'
14397             ;;
14398           *)
14399             if test "$GXX" = yes; then
14400               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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14401             else
14402               # FIXME: insert proper C++ library support
14403               ld_shlibs_CXX=no
14404             fi
14405             ;;
14406         esac
14407         ;;
14408
14409       hpux10*|hpux11*)
14410         if test $with_gnu_ld = no; then
14411           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14412           hardcode_libdir_separator_CXX=:
14413
14414           case $host_cpu in
14415             hppa*64*|ia64*)
14416               ;;
14417             *)
14418               export_dynamic_flag_spec_CXX='${wl}-E'
14419               ;;
14420           esac
14421         fi
14422         case $host_cpu in
14423           hppa*64*|ia64*)
14424             hardcode_direct_CXX=no
14425             hardcode_shlibpath_var_CXX=no
14426             ;;
14427           *)
14428             hardcode_direct_CXX=yes
14429             hardcode_direct_absolute_CXX=yes
14430             hardcode_minus_L_CXX=yes # Not in the search PATH,
14431                                                  # but as the default
14432                                                  # location of the library.
14433             ;;
14434         esac
14435
14436         case $cc_basename in
14437           CC*)
14438             # FIXME: insert proper C++ library support
14439             ld_shlibs_CXX=no
14440             ;;
14441           aCC*)
14442             case $host_cpu in
14443               hppa*64*)
14444                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14445                 ;;
14446               ia64*)
14447                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14448                 ;;
14449               *)
14450                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14451                 ;;
14452             esac
14453             # Commands to make compiler produce verbose output that lists
14454             # what "hidden" libraries, object files and flags are used when
14455             # linking a shared library.
14456             #
14457             # There doesn't appear to be a way to prevent this compiler from
14458             # explicitly linking system object files so we need to strip them
14459             # from the output so that they don't get included in the library
14460             # dependencies.
14461             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"'
14462             ;;
14463           *)
14464             if test "$GXX" = yes; then
14465               if test $with_gnu_ld = no; then
14466                 case $host_cpu in
14467                   hppa*64*)
14468                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14469                     ;;
14470                   ia64*)
14471                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14472                     ;;
14473                   *)
14474                     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'
14475                     ;;
14476                 esac
14477               fi
14478             else
14479               # FIXME: insert proper C++ library support
14480               ld_shlibs_CXX=no
14481             fi
14482             ;;
14483         esac
14484         ;;
14485
14486       interix[3-9]*)
14487         hardcode_direct_CXX=no
14488         hardcode_shlibpath_var_CXX=no
14489         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14490         export_dynamic_flag_spec_CXX='${wl}-E'
14491         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14492         # Instead, shared libraries are loaded at an image base (0x10000000 by
14493         # default) and relocated if they conflict, which is a slow very memory
14494         # consuming and fragmenting process.  To avoid this, we pick a random,
14495         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14496         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14497         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'
14498         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'
14499         ;;
14500       irix5* | irix6*)
14501         case $cc_basename in
14502           CC*)
14503             # SGI C++
14504             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'
14505
14506             # Archives containing C++ object files must be created using
14507             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14508             # necessary to make sure instantiated templates are included
14509             # in the archive.
14510             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14511             ;;
14512           *)
14513             if test "$GXX" = yes; then
14514               if test "$with_gnu_ld" = no; then
14515                 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'
14516               else
14517                 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'
14518               fi
14519             fi
14520             link_all_deplibs_CXX=yes
14521             ;;
14522         esac
14523         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14524         hardcode_libdir_separator_CXX=:
14525         inherit_rpath_CXX=yes
14526         ;;
14527
14528       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14529         case $cc_basename in
14530           KCC*)
14531             # Kuck and Associates, Inc. (KAI) C++ Compiler
14532
14533             # KCC will only create a shared library if the output file
14534             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14535             # to its proper name (with version) after linking.
14536             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'
14537             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'
14538             # Commands to make compiler produce verbose output that lists
14539             # what "hidden" libraries, object files and flags are used when
14540             # linking a shared library.
14541             #
14542             # There doesn't appear to be a way to prevent this compiler from
14543             # explicitly linking system object files so we need to strip them
14544             # from the output so that they don't get included in the library
14545             # dependencies.
14546             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"'
14547
14548             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14549             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14550
14551             # Archives containing C++ object files must be created using
14552             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14553             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14554             ;;
14555           icpc* | ecpc* )
14556             # Intel C++
14557             with_gnu_ld=yes
14558             # version 8.0 and above of icpc choke on multiply defined symbols
14559             # if we add $predep_objects and $postdep_objects, however 7.1 and
14560             # earlier do not add the objects themselves.
14561             case `$CC -V 2>&1` in
14562               *"Version 7."*)
14563                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14564                 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'
14565                 ;;
14566               *)  # Version 8.0 or newer
14567                 tmp_idyn=
14568                 case $host_cpu in
14569                   ia64*) tmp_idyn=' -i_dynamic';;
14570                 esac
14571                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14572                 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'
14573                 ;;
14574             esac
14575             archive_cmds_need_lc_CXX=no
14576             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14577             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14578             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14579             ;;
14580           pgCC* | pgcpp*)
14581             # Portland Group C++ compiler
14582             case `$CC -V` in
14583             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14584               prelink_cmds_CXX='tpldir=Template.dir~
14585                 rm -rf $tpldir~
14586                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14587                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14588               old_archive_cmds_CXX='tpldir=Template.dir~
14589                 rm -rf $tpldir~
14590                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14591                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14592                 $RANLIB $oldlib'
14593               archive_cmds_CXX='tpldir=Template.dir~
14594                 rm -rf $tpldir~
14595                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14596                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14597               archive_expsym_cmds_CXX='tpldir=Template.dir~
14598                 rm -rf $tpldir~
14599                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14600                 $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'
14601               ;;
14602             *) # Version 6 and above use weak symbols
14603               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14604               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'
14605               ;;
14606             esac
14607
14608             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14609             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14610             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'
14611             ;;
14612           cxx*)
14613             # Compaq C++
14614             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14615             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'
14616
14617             runpath_var=LD_RUN_PATH
14618             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14619             hardcode_libdir_separator_CXX=:
14620
14621             # Commands to make compiler produce verbose output that lists
14622             # what "hidden" libraries, object files and flags are used when
14623             # linking a shared library.
14624             #
14625             # There doesn't appear to be a way to prevent this compiler from
14626             # explicitly linking system object files so we need to strip them
14627             # from the output so that they don't get included in the library
14628             # dependencies.
14629             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'
14630             ;;
14631           xl* | mpixl* | bgxl*)
14632             # IBM XL 8.0 on PPC, with GNU ld
14633             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14634             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14635             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14636             if test "x$supports_anon_versioning" = xyes; then
14637               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14638                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14639                 echo "local: *; };" >> $output_objdir/$libname.ver~
14640                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14641             fi
14642             ;;
14643           *)
14644             case `$CC -V 2>&1 | sed 5q` in
14645             *Sun\ C*)
14646               # Sun C++ 5.9
14647               no_undefined_flag_CXX=' -zdefs'
14648               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14649               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'
14650               hardcode_libdir_flag_spec_CXX='-R$libdir'
14651               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'
14652               compiler_needs_object_CXX=yes
14653
14654               # Not sure whether something based on
14655               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14656               # would be better.
14657               output_verbose_link_cmd='func_echo_all'
14658
14659               # Archives containing C++ object files must be created using
14660               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14661               # necessary to make sure instantiated templates are included
14662               # in the archive.
14663               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14664               ;;
14665             esac
14666             ;;
14667         esac
14668         ;;
14669
14670       lynxos*)
14671         # FIXME: insert proper C++ library support
14672         ld_shlibs_CXX=no
14673         ;;
14674
14675       m88k*)
14676         # FIXME: insert proper C++ library support
14677         ld_shlibs_CXX=no
14678         ;;
14679
14680       mvs*)
14681         case $cc_basename in
14682           cxx*)
14683             # FIXME: insert proper C++ library support
14684             ld_shlibs_CXX=no
14685             ;;
14686           *)
14687             # FIXME: insert proper C++ library support
14688             ld_shlibs_CXX=no
14689             ;;
14690         esac
14691         ;;
14692
14693       netbsd*)
14694         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14695           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14696           wlarc=
14697           hardcode_libdir_flag_spec_CXX='-R$libdir'
14698           hardcode_direct_CXX=yes
14699           hardcode_shlibpath_var_CXX=no
14700         fi
14701         # Workaround some broken pre-1.5 toolchains
14702         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14703         ;;
14704
14705       *nto* | *qnx*)
14706         ld_shlibs_CXX=yes
14707         ;;
14708
14709       openbsd2*)
14710         # C++ shared libraries are fairly broken
14711         ld_shlibs_CXX=no
14712         ;;
14713
14714       openbsd*)
14715         if test -f /usr/libexec/ld.so; then
14716           hardcode_direct_CXX=yes
14717           hardcode_shlibpath_var_CXX=no
14718           hardcode_direct_absolute_CXX=yes
14719           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14720           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14721           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14722             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14723             export_dynamic_flag_spec_CXX='${wl}-E'
14724             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14725           fi
14726           output_verbose_link_cmd=func_echo_all
14727         else
14728           ld_shlibs_CXX=no
14729         fi
14730         ;;
14731
14732       osf3* | osf4* | osf5*)
14733         case $cc_basename in
14734           KCC*)
14735             # Kuck and Associates, Inc. (KAI) C++ Compiler
14736
14737             # KCC will only create a shared library if the output file
14738             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14739             # to its proper name (with version) after linking.
14740             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'
14741
14742             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14743             hardcode_libdir_separator_CXX=:
14744
14745             # Archives containing C++ object files must be created using
14746             # the KAI C++ compiler.
14747             case $host in
14748               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14749               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14750             esac
14751             ;;
14752           RCC*)
14753             # Rational C++ 2.4.1
14754             # FIXME: insert proper C++ library support
14755             ld_shlibs_CXX=no
14756             ;;
14757           cxx*)
14758             case $host in
14759               osf3*)
14760                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14761                 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'
14762                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14763                 ;;
14764               *)
14765                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14766                 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'
14767                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14768                   echo "-hidden">> $lib.exp~
14769                   $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~
14770                   $RM $lib.exp'
14771                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14772                 ;;
14773             esac
14774
14775             hardcode_libdir_separator_CXX=:
14776
14777             # Commands to make compiler produce verbose output that lists
14778             # what "hidden" libraries, object files and flags are used when
14779             # linking a shared library.
14780             #
14781             # There doesn't appear to be a way to prevent this compiler from
14782             # explicitly linking system object files so we need to strip them
14783             # from the output so that they don't get included in the library
14784             # dependencies.
14785             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"'
14786             ;;
14787           *)
14788             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14789               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14790               case $host in
14791                 osf3*)
14792                   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'
14793                   ;;
14794                 *)
14795                   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'
14796                   ;;
14797               esac
14798
14799               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14800               hardcode_libdir_separator_CXX=:
14801
14802               # Commands to make compiler produce verbose output that lists
14803               # what "hidden" libraries, object files and flags are used when
14804               # linking a shared library.
14805               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14806
14807             else
14808               # FIXME: insert proper C++ library support
14809               ld_shlibs_CXX=no
14810             fi
14811             ;;
14812         esac
14813         ;;
14814
14815       psos*)
14816         # FIXME: insert proper C++ library support
14817         ld_shlibs_CXX=no
14818         ;;
14819
14820       sunos4*)
14821         case $cc_basename in
14822           CC*)
14823             # Sun C++ 4.x
14824             # FIXME: insert proper C++ library support
14825             ld_shlibs_CXX=no
14826             ;;
14827           lcc*)
14828             # Lucid
14829             # FIXME: insert proper C++ library support
14830             ld_shlibs_CXX=no
14831             ;;
14832           *)
14833             # FIXME: insert proper C++ library support
14834             ld_shlibs_CXX=no
14835             ;;
14836         esac
14837         ;;
14838
14839       solaris*)
14840         case $cc_basename in
14841           CC* | sunCC*)
14842             # Sun C++ 4.2, 5.x and Centerline C++
14843             archive_cmds_need_lc_CXX=yes
14844             no_undefined_flag_CXX=' -zdefs'
14845             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14846             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14847               $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'
14848
14849             hardcode_libdir_flag_spec_CXX='-R$libdir'
14850             hardcode_shlibpath_var_CXX=no
14851             case $host_os in
14852               solaris2.[0-5] | solaris2.[0-5].*) ;;
14853               *)
14854                 # The compiler driver will combine and reorder linker options,
14855                 # but understands `-z linker_flag'.
14856                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14857                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14858                 ;;
14859             esac
14860             link_all_deplibs_CXX=yes
14861
14862             output_verbose_link_cmd='func_echo_all'
14863
14864             # Archives containing C++ object files must be created using
14865             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14866             # necessary to make sure instantiated templates are included
14867             # in the archive.
14868             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14869             ;;
14870           gcx*)
14871             # Green Hills C++ Compiler
14872             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14873
14874             # The C++ compiler must be used to create the archive.
14875             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14876             ;;
14877           *)
14878             # GNU C++ compiler with Solaris linker
14879             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14880               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14881               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14882                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14883                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14884                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14885
14886                 # Commands to make compiler produce verbose output that lists
14887                 # what "hidden" libraries, object files and flags are used when
14888                 # linking a shared library.
14889                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14890               else
14891                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14892                 # platform.
14893                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14894                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14895                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14896
14897                 # Commands to make compiler produce verbose output that lists
14898                 # what "hidden" libraries, object files and flags are used when
14899                 # linking a shared library.
14900                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14901               fi
14902
14903               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14904               case $host_os in
14905                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14906                 *)
14907                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14908                   ;;
14909               esac
14910             fi
14911             ;;
14912         esac
14913         ;;
14914
14915     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14916       no_undefined_flag_CXX='${wl}-z,text'
14917       archive_cmds_need_lc_CXX=no
14918       hardcode_shlibpath_var_CXX=no
14919       runpath_var='LD_RUN_PATH'
14920
14921       case $cc_basename in
14922         CC*)
14923           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14924           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925           ;;
14926         *)
14927           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14928           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14929           ;;
14930       esac
14931       ;;
14932
14933       sysv5* | sco3.2v5* | sco5v6*)
14934         # Note: We can NOT use -z defs as we might desire, because we do not
14935         # link with -lc, and that would cause any symbols used from libc to
14936         # always be unresolved, which means just about no library would
14937         # ever link correctly.  If we're not using GNU ld we use -z text
14938         # though, which does catch some bad symbols but isn't as heavy-handed
14939         # as -z defs.
14940         no_undefined_flag_CXX='${wl}-z,text'
14941         allow_undefined_flag_CXX='${wl}-z,nodefs'
14942         archive_cmds_need_lc_CXX=no
14943         hardcode_shlibpath_var_CXX=no
14944         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14945         hardcode_libdir_separator_CXX=':'
14946         link_all_deplibs_CXX=yes
14947         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14948         runpath_var='LD_RUN_PATH'
14949
14950         case $cc_basename in
14951           CC*)
14952             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14953             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14954             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14955               '"$old_archive_cmds_CXX"
14956             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14957               '"$reload_cmds_CXX"
14958             ;;
14959           *)
14960             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14961             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962             ;;
14963         esac
14964       ;;
14965
14966       tandem*)
14967         case $cc_basename in
14968           NCC*)
14969             # NonStop-UX NCC 3.20
14970             # FIXME: insert proper C++ library support
14971             ld_shlibs_CXX=no
14972             ;;
14973           *)
14974             # FIXME: insert proper C++ library support
14975             ld_shlibs_CXX=no
14976             ;;
14977         esac
14978         ;;
14979
14980       vxworks*)
14981         # FIXME: insert proper C++ library support
14982         ld_shlibs_CXX=no
14983         ;;
14984
14985       *)
14986         # FIXME: insert proper C++ library support
14987         ld_shlibs_CXX=no
14988         ;;
14989     esac
14990
14991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14992 $as_echo "$ld_shlibs_CXX" >&6; }
14993     test "$ld_shlibs_CXX" = no && can_build_shared=no
14994
14995     GCC_CXX="$GXX"
14996     LD_CXX="$LD"
14997
14998     ## CAVEAT EMPTOR:
14999     ## There is no encapsulation within the following macros, do not change
15000     ## the running order or otherwise move them around unless you know exactly
15001     ## what you are doing...
15002     # Dependencies to place before and after the object being linked:
15003 predep_objects_CXX=
15004 postdep_objects_CXX=
15005 predeps_CXX=
15006 postdeps_CXX=
15007 compiler_lib_search_path_CXX=
15008
15009 cat > conftest.$ac_ext <<_LT_EOF
15010 class Foo
15011 {
15012 public:
15013   Foo (void) { a = 0; }
15014 private:
15015   int a;
15016 };
15017 _LT_EOF
15018
15019
15020 _lt_libdeps_save_CFLAGS=$CFLAGS
15021 case "$CC $CFLAGS " in #(
15022 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15023 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15024 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15025 esac
15026
15027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15028   (eval $ac_compile) 2>&5
15029   ac_status=$?
15030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031   test $ac_status = 0; }; then
15032   # Parse the compiler output and extract the necessary
15033   # objects, libraries and library flags.
15034
15035   # Sentinel used to keep track of whether or not we are before
15036   # the conftest object file.
15037   pre_test_object_deps_done=no
15038
15039   for p in `eval "$output_verbose_link_cmd"`; do
15040     case ${prev}${p} in
15041
15042     -L* | -R* | -l*)
15043        # Some compilers place space between "-{L,R}" and the path.
15044        # Remove the space.
15045        if test $p = "-L" ||
15046           test $p = "-R"; then
15047          prev=$p
15048          continue
15049        fi
15050
15051        # Expand the sysroot to ease extracting the directories later.
15052        if test -z "$prev"; then
15053          case $p in
15054          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15055          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15056          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15057          esac
15058        fi
15059        case $p in
15060        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15061        esac
15062        if test "$pre_test_object_deps_done" = no; then
15063          case ${prev} in
15064          -L | -R)
15065            # Internal compiler library paths should come after those
15066            # provided the user.  The postdeps already come after the
15067            # user supplied libs so there is no need to process them.
15068            if test -z "$compiler_lib_search_path_CXX"; then
15069              compiler_lib_search_path_CXX="${prev}${p}"
15070            else
15071              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15072            fi
15073            ;;
15074          # The "-l" case would never come before the object being
15075          # linked, so don't bother handling this case.
15076          esac
15077        else
15078          if test -z "$postdeps_CXX"; then
15079            postdeps_CXX="${prev}${p}"
15080          else
15081            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15082          fi
15083        fi
15084        prev=
15085        ;;
15086
15087     *.lto.$objext) ;; # Ignore GCC LTO objects
15088     *.$objext)
15089        # This assumes that the test object file only shows up
15090        # once in the compiler output.
15091        if test "$p" = "conftest.$objext"; then
15092          pre_test_object_deps_done=yes
15093          continue
15094        fi
15095
15096        if test "$pre_test_object_deps_done" = no; then
15097          if test -z "$predep_objects_CXX"; then
15098            predep_objects_CXX="$p"
15099          else
15100            predep_objects_CXX="$predep_objects_CXX $p"
15101          fi
15102        else
15103          if test -z "$postdep_objects_CXX"; then
15104            postdep_objects_CXX="$p"
15105          else
15106            postdep_objects_CXX="$postdep_objects_CXX $p"
15107          fi
15108        fi
15109        ;;
15110
15111     *) ;; # Ignore the rest.
15112
15113     esac
15114   done
15115
15116   # Clean up.
15117   rm -f a.out a.exe
15118 else
15119   echo "libtool.m4: error: problem compiling CXX test program"
15120 fi
15121
15122 $RM -f confest.$objext
15123 CFLAGS=$_lt_libdeps_save_CFLAGS
15124
15125 # PORTME: override above test on systems where it is broken
15126 case $host_os in
15127 interix[3-9]*)
15128   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15129   # hack all around it, let's just trust "g++" to DTRT.
15130   predep_objects_CXX=
15131   postdep_objects_CXX=
15132   postdeps_CXX=
15133   ;;
15134
15135 linux*)
15136   case `$CC -V 2>&1 | sed 5q` in
15137   *Sun\ C*)
15138     # Sun C++ 5.9
15139
15140     # The more standards-conforming stlport4 library is
15141     # incompatible with the Cstd library. Avoid specifying
15142     # it if it's in CXXFLAGS. Ignore libCrun as
15143     # -library=stlport4 depends on it.
15144     case " $CXX $CXXFLAGS " in
15145     *" -library=stlport4 "*)
15146       solaris_use_stlport4=yes
15147       ;;
15148     esac
15149
15150     if test "$solaris_use_stlport4" != yes; then
15151       postdeps_CXX='-library=Cstd -library=Crun'
15152     fi
15153     ;;
15154   esac
15155   ;;
15156
15157 solaris*)
15158   case $cc_basename in
15159   CC* | sunCC*)
15160     # The more standards-conforming stlport4 library is
15161     # incompatible with the Cstd library. Avoid specifying
15162     # it if it's in CXXFLAGS. Ignore libCrun as
15163     # -library=stlport4 depends on it.
15164     case " $CXX $CXXFLAGS " in
15165     *" -library=stlport4 "*)
15166       solaris_use_stlport4=yes
15167       ;;
15168     esac
15169
15170     # Adding this requires a known-good setup of shared libraries for
15171     # Sun compiler versions before 5.6, else PIC objects from an old
15172     # archive will be linked into the output, leading to subtle bugs.
15173     if test "$solaris_use_stlport4" != yes; then
15174       postdeps_CXX='-library=Cstd -library=Crun'
15175     fi
15176     ;;
15177   esac
15178   ;;
15179 esac
15180
15181
15182 case " $postdeps_CXX " in
15183 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15184 esac
15185  compiler_lib_search_dirs_CXX=
15186 if test -n "${compiler_lib_search_path_CXX}"; then
15187  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15188 fi
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220     lt_prog_compiler_wl_CXX=
15221 lt_prog_compiler_pic_CXX=
15222 lt_prog_compiler_static_CXX=
15223
15224
15225   # C++ specific cases for pic, static, wl, etc.
15226   if test "$GXX" = yes; then
15227     lt_prog_compiler_wl_CXX='-Wl,'
15228     lt_prog_compiler_static_CXX='-static'
15229
15230     case $host_os in
15231     aix*)
15232       # All AIX code is PIC.
15233       if test "$host_cpu" = ia64; then
15234         # AIX 5 now supports IA64 processor
15235         lt_prog_compiler_static_CXX='-Bstatic'
15236       fi
15237       ;;
15238
15239     amigaos*)
15240       case $host_cpu in
15241       powerpc)
15242             # see comment about AmigaOS4 .so support
15243             lt_prog_compiler_pic_CXX='-fPIC'
15244         ;;
15245       m68k)
15246             # FIXME: we need at least 68020 code to build shared libraries, but
15247             # adding the `-m68020' flag to GCC prevents building anything better,
15248             # like `-m68040'.
15249             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15250         ;;
15251       esac
15252       ;;
15253
15254     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15255       # PIC is the default for these OSes.
15256       ;;
15257     mingw* | cygwin* | os2* | pw32* | cegcc*)
15258       # This hack is so that the source file can tell whether it is being
15259       # built for inclusion in a dll (and should export symbols for example).
15260       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15261       # (--disable-auto-import) libraries
15262       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15263       ;;
15264     darwin* | rhapsody*)
15265       # PIC is the default on this platform
15266       # Common symbols not allowed in MH_DYLIB files
15267       lt_prog_compiler_pic_CXX='-fno-common'
15268       ;;
15269     *djgpp*)
15270       # DJGPP does not support shared libraries at all
15271       lt_prog_compiler_pic_CXX=
15272       ;;
15273     haiku*)
15274       # PIC is the default for Haiku.
15275       # The "-static" flag exists, but is broken.
15276       lt_prog_compiler_static_CXX=
15277       ;;
15278     interix[3-9]*)
15279       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15280       # Instead, we relocate shared libraries at runtime.
15281       ;;
15282     sysv4*MP*)
15283       if test -d /usr/nec; then
15284         lt_prog_compiler_pic_CXX=-Kconform_pic
15285       fi
15286       ;;
15287     hpux*)
15288       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15289       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15290       # sets the default TLS model and affects inlining.
15291       case $host_cpu in
15292       hppa*64*)
15293         ;;
15294       *)
15295         lt_prog_compiler_pic_CXX='-fPIC'
15296         ;;
15297       esac
15298       ;;
15299     *qnx* | *nto*)
15300       # QNX uses GNU C++, but need to define -shared option too, otherwise
15301       # it will coredump.
15302       lt_prog_compiler_pic_CXX='-fPIC -shared'
15303       ;;
15304     *)
15305       lt_prog_compiler_pic_CXX='-fPIC'
15306       ;;
15307     esac
15308   else
15309     case $host_os in
15310       aix[4-9]*)
15311         # All AIX code is PIC.
15312         if test "$host_cpu" = ia64; then
15313           # AIX 5 now supports IA64 processor
15314           lt_prog_compiler_static_CXX='-Bstatic'
15315         else
15316           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15317         fi
15318         ;;
15319       chorus*)
15320         case $cc_basename in
15321         cxch68*)
15322           # Green Hills C++ Compiler
15323           # _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"
15324           ;;
15325         esac
15326         ;;
15327       mingw* | cygwin* | os2* | pw32* | cegcc*)
15328         # This hack is so that the source file can tell whether it is being
15329         # built for inclusion in a dll (and should export symbols for example).
15330         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15331         ;;
15332       dgux*)
15333         case $cc_basename in
15334           ec++*)
15335             lt_prog_compiler_pic_CXX='-KPIC'
15336             ;;
15337           ghcx*)
15338             # Green Hills C++ Compiler
15339             lt_prog_compiler_pic_CXX='-pic'
15340             ;;
15341           *)
15342             ;;
15343         esac
15344         ;;
15345       freebsd* | dragonfly*)
15346         # FreeBSD uses GNU C++
15347         ;;
15348       hpux9* | hpux10* | hpux11*)
15349         case $cc_basename in
15350           CC*)
15351             lt_prog_compiler_wl_CXX='-Wl,'
15352             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15353             if test "$host_cpu" != ia64; then
15354               lt_prog_compiler_pic_CXX='+Z'
15355             fi
15356             ;;
15357           aCC*)
15358             lt_prog_compiler_wl_CXX='-Wl,'
15359             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15360             case $host_cpu in
15361             hppa*64*|ia64*)
15362               # +Z the default
15363               ;;
15364             *)
15365               lt_prog_compiler_pic_CXX='+Z'
15366               ;;
15367             esac
15368             ;;
15369           *)
15370             ;;
15371         esac
15372         ;;
15373       interix*)
15374         # This is c89, which is MS Visual C++ (no shared libs)
15375         # Anyone wants to do a port?
15376         ;;
15377       irix5* | irix6* | nonstopux*)
15378         case $cc_basename in
15379           CC*)
15380             lt_prog_compiler_wl_CXX='-Wl,'
15381             lt_prog_compiler_static_CXX='-non_shared'
15382             # CC pic flag -KPIC is the default.
15383             ;;
15384           *)
15385             ;;
15386         esac
15387         ;;
15388       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15389         case $cc_basename in
15390           KCC*)
15391             # KAI C++ Compiler
15392             lt_prog_compiler_wl_CXX='--backend -Wl,'
15393             lt_prog_compiler_pic_CXX='-fPIC'
15394             ;;
15395           ecpc* )
15396             # old Intel C++ for x86_64 which still supported -KPIC.
15397             lt_prog_compiler_wl_CXX='-Wl,'
15398             lt_prog_compiler_pic_CXX='-KPIC'
15399             lt_prog_compiler_static_CXX='-static'
15400             ;;
15401           icpc* )
15402             # Intel C++, used to be incompatible with GCC.
15403             # ICC 10 doesn't accept -KPIC any more.
15404             lt_prog_compiler_wl_CXX='-Wl,'
15405             lt_prog_compiler_pic_CXX='-fPIC'
15406             lt_prog_compiler_static_CXX='-static'
15407             ;;
15408           pgCC* | pgcpp*)
15409             # Portland Group C++ compiler
15410             lt_prog_compiler_wl_CXX='-Wl,'
15411             lt_prog_compiler_pic_CXX='-fpic'
15412             lt_prog_compiler_static_CXX='-Bstatic'
15413             ;;
15414           cxx*)
15415             # Compaq C++
15416             # Make sure the PIC flag is empty.  It appears that all Alpha
15417             # Linux and Compaq Tru64 Unix objects are PIC.
15418             lt_prog_compiler_pic_CXX=
15419             lt_prog_compiler_static_CXX='-non_shared'
15420             ;;
15421           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15422             # IBM XL 8.0, 9.0 on PPC and BlueGene
15423             lt_prog_compiler_wl_CXX='-Wl,'
15424             lt_prog_compiler_pic_CXX='-qpic'
15425             lt_prog_compiler_static_CXX='-qstaticlink'
15426             ;;
15427           *)
15428             case `$CC -V 2>&1 | sed 5q` in
15429             *Sun\ C*)
15430               # Sun C++ 5.9
15431               lt_prog_compiler_pic_CXX='-KPIC'
15432               lt_prog_compiler_static_CXX='-Bstatic'
15433               lt_prog_compiler_wl_CXX='-Qoption ld '
15434               ;;
15435             esac
15436             ;;
15437         esac
15438         ;;
15439       lynxos*)
15440         ;;
15441       m88k*)
15442         ;;
15443       mvs*)
15444         case $cc_basename in
15445           cxx*)
15446             lt_prog_compiler_pic_CXX='-W c,exportall'
15447             ;;
15448           *)
15449             ;;
15450         esac
15451         ;;
15452       netbsd* | netbsdelf*-gnu)
15453         ;;
15454       *qnx* | *nto*)
15455         # QNX uses GNU C++, but need to define -shared option too, otherwise
15456         # it will coredump.
15457         lt_prog_compiler_pic_CXX='-fPIC -shared'
15458         ;;
15459       osf3* | osf4* | osf5*)
15460         case $cc_basename in
15461           KCC*)
15462             lt_prog_compiler_wl_CXX='--backend -Wl,'
15463             ;;
15464           RCC*)
15465             # Rational C++ 2.4.1
15466             lt_prog_compiler_pic_CXX='-pic'
15467             ;;
15468           cxx*)
15469             # Digital/Compaq C++
15470             lt_prog_compiler_wl_CXX='-Wl,'
15471             # Make sure the PIC flag is empty.  It appears that all Alpha
15472             # Linux and Compaq Tru64 Unix objects are PIC.
15473             lt_prog_compiler_pic_CXX=
15474             lt_prog_compiler_static_CXX='-non_shared'
15475             ;;
15476           *)
15477             ;;
15478         esac
15479         ;;
15480       psos*)
15481         ;;
15482       solaris*)
15483         case $cc_basename in
15484           CC* | sunCC*)
15485             # Sun C++ 4.2, 5.x and Centerline C++
15486             lt_prog_compiler_pic_CXX='-KPIC'
15487             lt_prog_compiler_static_CXX='-Bstatic'
15488             lt_prog_compiler_wl_CXX='-Qoption ld '
15489             ;;
15490           gcx*)
15491             # Green Hills C++ Compiler
15492             lt_prog_compiler_pic_CXX='-PIC'
15493             ;;
15494           *)
15495             ;;
15496         esac
15497         ;;
15498       sunos4*)
15499         case $cc_basename in
15500           CC*)
15501             # Sun C++ 4.x
15502             lt_prog_compiler_pic_CXX='-pic'
15503             lt_prog_compiler_static_CXX='-Bstatic'
15504             ;;
15505           lcc*)
15506             # Lucid
15507             lt_prog_compiler_pic_CXX='-pic'
15508             ;;
15509           *)
15510             ;;
15511         esac
15512         ;;
15513       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15514         case $cc_basename in
15515           CC*)
15516             lt_prog_compiler_wl_CXX='-Wl,'
15517             lt_prog_compiler_pic_CXX='-KPIC'
15518             lt_prog_compiler_static_CXX='-Bstatic'
15519             ;;
15520         esac
15521         ;;
15522       tandem*)
15523         case $cc_basename in
15524           NCC*)
15525             # NonStop-UX NCC 3.20
15526             lt_prog_compiler_pic_CXX='-KPIC'
15527             ;;
15528           *)
15529             ;;
15530         esac
15531         ;;
15532       vxworks*)
15533         ;;
15534       *)
15535         lt_prog_compiler_can_build_shared_CXX=no
15536         ;;
15537     esac
15538   fi
15539
15540 case $host_os in
15541   # For platforms which do not support PIC, -DPIC is meaningless:
15542   *djgpp*)
15543     lt_prog_compiler_pic_CXX=
15544     ;;
15545   *)
15546     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15547     ;;
15548 esac
15549
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15551 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15552 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15553   $as_echo_n "(cached) " >&6
15554 else
15555   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15556 fi
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15558 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15559 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15560
15561 #
15562 # Check to make sure the PIC flag actually works.
15563 #
15564 if test -n "$lt_prog_compiler_pic_CXX"; then
15565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15566 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15567 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15568   $as_echo_n "(cached) " >&6
15569 else
15570   lt_cv_prog_compiler_pic_works_CXX=no
15571    ac_outfile=conftest.$ac_objext
15572    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15573    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15574    # Insert the option either (1) after the last *FLAGS variable, or
15575    # (2) before a word containing "conftest.", or (3) at the end.
15576    # Note that $ac_compile itself does not contain backslashes and begins
15577    # with a dollar sign (not a hyphen), so the echo should work correctly.
15578    # The option is referenced via a variable to avoid confusing sed.
15579    lt_compile=`echo "$ac_compile" | $SED \
15580    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15581    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15582    -e 's:$: $lt_compiler_flag:'`
15583    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15584    (eval "$lt_compile" 2>conftest.err)
15585    ac_status=$?
15586    cat conftest.err >&5
15587    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588    if (exit $ac_status) && test -s "$ac_outfile"; then
15589      # The compiler can only warn and ignore the option if not recognized
15590      # So say no if there are warnings other than the usual output.
15591      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15592      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15593      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15594        lt_cv_prog_compiler_pic_works_CXX=yes
15595      fi
15596    fi
15597    $RM conftest*
15598
15599 fi
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15601 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15602
15603 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15604     case $lt_prog_compiler_pic_CXX in
15605      "" | " "*) ;;
15606      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15607      esac
15608 else
15609     lt_prog_compiler_pic_CXX=
15610      lt_prog_compiler_can_build_shared_CXX=no
15611 fi
15612
15613 fi
15614
15615
15616
15617
15618
15619 #
15620 # Check to make sure the static flag actually works.
15621 #
15622 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15624 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15625 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15626   $as_echo_n "(cached) " >&6
15627 else
15628   lt_cv_prog_compiler_static_works_CXX=no
15629    save_LDFLAGS="$LDFLAGS"
15630    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15631    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15632    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15633      # The linker can only warn and ignore the option if not recognized
15634      # So say no if there are warnings
15635      if test -s conftest.err; then
15636        # Append any errors to the config.log.
15637        cat conftest.err 1>&5
15638        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15639        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15640        if diff conftest.exp conftest.er2 >/dev/null; then
15641          lt_cv_prog_compiler_static_works_CXX=yes
15642        fi
15643      else
15644        lt_cv_prog_compiler_static_works_CXX=yes
15645      fi
15646    fi
15647    $RM -r conftest*
15648    LDFLAGS="$save_LDFLAGS"
15649
15650 fi
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15652 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15653
15654 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15655     :
15656 else
15657     lt_prog_compiler_static_CXX=
15658 fi
15659
15660
15661
15662
15663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15665 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15666   $as_echo_n "(cached) " >&6
15667 else
15668   lt_cv_prog_compiler_c_o_CXX=no
15669    $RM -r conftest 2>/dev/null
15670    mkdir conftest
15671    cd conftest
15672    mkdir out
15673    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15674
15675    lt_compiler_flag="-o out/conftest2.$ac_objext"
15676    # Insert the option either (1) after the last *FLAGS variable, or
15677    # (2) before a word containing "conftest.", or (3) at the end.
15678    # Note that $ac_compile itself does not contain backslashes and begins
15679    # with a dollar sign (not a hyphen), so the echo should work correctly.
15680    lt_compile=`echo "$ac_compile" | $SED \
15681    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15682    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15683    -e 's:$: $lt_compiler_flag:'`
15684    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15685    (eval "$lt_compile" 2>out/conftest.err)
15686    ac_status=$?
15687    cat out/conftest.err >&5
15688    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15690    then
15691      # The compiler can only warn and ignore the option if not recognized
15692      # So say no if there are warnings
15693      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15694      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15695      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15696        lt_cv_prog_compiler_c_o_CXX=yes
15697      fi
15698    fi
15699    chmod u+w . 2>&5
15700    $RM conftest*
15701    # SGI C++ compiler will create directory out/ii_files/ for
15702    # template instantiation
15703    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15704    $RM out/* && rmdir out
15705    cd ..
15706    $RM -r conftest
15707    $RM conftest*
15708
15709 fi
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15711 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15712
15713
15714
15715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15716 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15717 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15718   $as_echo_n "(cached) " >&6
15719 else
15720   lt_cv_prog_compiler_c_o_CXX=no
15721    $RM -r conftest 2>/dev/null
15722    mkdir conftest
15723    cd conftest
15724    mkdir out
15725    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15726
15727    lt_compiler_flag="-o out/conftest2.$ac_objext"
15728    # Insert the option either (1) after the last *FLAGS variable, or
15729    # (2) before a word containing "conftest.", or (3) at the end.
15730    # Note that $ac_compile itself does not contain backslashes and begins
15731    # with a dollar sign (not a hyphen), so the echo should work correctly.
15732    lt_compile=`echo "$ac_compile" | $SED \
15733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15735    -e 's:$: $lt_compiler_flag:'`
15736    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15737    (eval "$lt_compile" 2>out/conftest.err)
15738    ac_status=$?
15739    cat out/conftest.err >&5
15740    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15742    then
15743      # The compiler can only warn and ignore the option if not recognized
15744      # So say no if there are warnings
15745      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15746      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15747      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15748        lt_cv_prog_compiler_c_o_CXX=yes
15749      fi
15750    fi
15751    chmod u+w . 2>&5
15752    $RM conftest*
15753    # SGI C++ compiler will create directory out/ii_files/ for
15754    # template instantiation
15755    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15756    $RM out/* && rmdir out
15757    cd ..
15758    $RM -r conftest
15759    $RM conftest*
15760
15761 fi
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15763 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15764
15765
15766
15767
15768 hard_links="nottested"
15769 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15770   # do not overwrite the value of need_locks provided by the user
15771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15772 $as_echo_n "checking if we can lock with hard links... " >&6; }
15773   hard_links=yes
15774   $RM conftest*
15775   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15776   touch conftest.a
15777   ln conftest.a conftest.b 2>&5 || hard_links=no
15778   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15780 $as_echo "$hard_links" >&6; }
15781   if test "$hard_links" = no; then
15782     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15783 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15784     need_locks=warn
15785   fi
15786 else
15787   need_locks=no
15788 fi
15789
15790
15791
15792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15793 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15794
15795   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15796   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15797   case $host_os in
15798   aix[4-9]*)
15799     # If we're using GNU nm, then we don't want the "-C" option.
15800     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15801     # Also, AIX nm treats weak defined symbols like other global defined
15802     # symbols, whereas GNU nm marks them as "W".
15803     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15804       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15805     else
15806       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15807     fi
15808     ;;
15809   pw32*)
15810     export_symbols_cmds_CXX="$ltdll_cmds"
15811     ;;
15812   cygwin* | mingw* | cegcc*)
15813     case $cc_basename in
15814     cl*)
15815       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15816       ;;
15817     *)
15818       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'
15819       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15820       ;;
15821     esac
15822     ;;
15823   linux* | k*bsd*-gnu | gnu*)
15824     link_all_deplibs_CXX=no
15825     ;;
15826   *)
15827     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15828     ;;
15829   esac
15830
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15832 $as_echo "$ld_shlibs_CXX" >&6; }
15833 test "$ld_shlibs_CXX" = no && can_build_shared=no
15834
15835 with_gnu_ld_CXX=$with_gnu_ld
15836
15837
15838
15839
15840
15841
15842 #
15843 # Do we need to explicitly link libc?
15844 #
15845 case "x$archive_cmds_need_lc_CXX" in
15846 x|xyes)
15847   # Assume -lc should be added
15848   archive_cmds_need_lc_CXX=yes
15849
15850   if test "$enable_shared" = yes && test "$GCC" = yes; then
15851     case $archive_cmds_CXX in
15852     *'~'*)
15853       # FIXME: we may have to deal with multi-command sequences.
15854       ;;
15855     '$CC '*)
15856       # Test whether the compiler implicitly links with -lc since on some
15857       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15858       # to ld, don't add -lc before -lgcc.
15859       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15861 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15862   $as_echo_n "(cached) " >&6
15863 else
15864   $RM conftest*
15865         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15866
15867         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15868   (eval $ac_compile) 2>&5
15869   ac_status=$?
15870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15871   test $ac_status = 0; } 2>conftest.err; then
15872           soname=conftest
15873           lib=conftest
15874           libobjs=conftest.$ac_objext
15875           deplibs=
15876           wl=$lt_prog_compiler_wl_CXX
15877           pic_flag=$lt_prog_compiler_pic_CXX
15878           compiler_flags=-v
15879           linker_flags=-v
15880           verstring=
15881           output_objdir=.
15882           libname=conftest
15883           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15884           allow_undefined_flag_CXX=
15885           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15886   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15887   ac_status=$?
15888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15889   test $ac_status = 0; }
15890           then
15891             lt_cv_archive_cmds_need_lc_CXX=no
15892           else
15893             lt_cv_archive_cmds_need_lc_CXX=yes
15894           fi
15895           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15896         else
15897           cat conftest.err 1>&5
15898         fi
15899         $RM conftest*
15900
15901 fi
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15903 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15904       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15905       ;;
15906     esac
15907   fi
15908   ;;
15909 esac
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15974
15975 library_names_spec=
15976 libname_spec='lib$name'
15977 soname_spec=
15978 shrext_cmds=".so"
15979 postinstall_cmds=
15980 postuninstall_cmds=
15981 finish_cmds=
15982 finish_eval=
15983 shlibpath_var=
15984 shlibpath_overrides_runpath=unknown
15985 version_type=none
15986 dynamic_linker="$host_os ld.so"
15987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15988 need_lib_prefix=unknown
15989 hardcode_into_libs=no
15990
15991 # when you set need_version to no, make sure it does not cause -set_version
15992 # flags to be left without arguments
15993 need_version=unknown
15994
15995 case $host_os in
15996 aix3*)
15997   version_type=linux # correct to gnu/linux during the next big refactor
15998   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15999   shlibpath_var=LIBPATH
16000
16001   # AIX 3 has no versioning support, so we append a major version to the name.
16002   soname_spec='${libname}${release}${shared_ext}$major'
16003   ;;
16004
16005 aix[4-9]*)
16006   version_type=linux # correct to gnu/linux during the next big refactor
16007   need_lib_prefix=no
16008   need_version=no
16009   hardcode_into_libs=yes
16010   if test "$host_cpu" = ia64; then
16011     # AIX 5 supports IA64
16012     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16013     shlibpath_var=LD_LIBRARY_PATH
16014   else
16015     # With GCC up to 2.95.x, collect2 would create an import file
16016     # for dependence libraries.  The import file would start with
16017     # the line `#! .'.  This would cause the generated library to
16018     # depend on `.', always an invalid library.  This was fixed in
16019     # development snapshots of GCC prior to 3.0.
16020     case $host_os in
16021       aix4 | aix4.[01] | aix4.[01].*)
16022       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16023            echo ' yes '
16024            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16025         :
16026       else
16027         can_build_shared=no
16028       fi
16029       ;;
16030     esac
16031     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16032     # soname into executable. Probably we can add versioning support to
16033     # collect2, so additional links can be useful in future.
16034     if test "$aix_use_runtimelinking" = yes; then
16035       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16036       # instead of lib<name>.a to let people know that these are not
16037       # typical AIX shared libraries.
16038       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16039     else
16040       # We preserve .a as extension for shared libraries through AIX4.2
16041       # and later when we are not doing run time linking.
16042       library_names_spec='${libname}${release}.a $libname.a'
16043       soname_spec='${libname}${release}${shared_ext}$major'
16044     fi
16045     shlibpath_var=LIBPATH
16046   fi
16047   ;;
16048
16049 amigaos*)
16050   case $host_cpu in
16051   powerpc)
16052     # Since July 2007 AmigaOS4 officially supports .so libraries.
16053     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055     ;;
16056   m68k)
16057     library_names_spec='$libname.ixlibrary $libname.a'
16058     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16059     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
16060     ;;
16061   esac
16062   ;;
16063
16064 beos*)
16065   library_names_spec='${libname}${shared_ext}'
16066   dynamic_linker="$host_os ld.so"
16067   shlibpath_var=LIBRARY_PATH
16068   ;;
16069
16070 bsdi[45]*)
16071   version_type=linux # correct to gnu/linux during the next big refactor
16072   need_version=no
16073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074   soname_spec='${libname}${release}${shared_ext}$major'
16075   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16076   shlibpath_var=LD_LIBRARY_PATH
16077   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16078   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16079   # the default ld.so.conf also contains /usr/contrib/lib and
16080   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16081   # libtool to hard-code these into programs
16082   ;;
16083
16084 cygwin* | mingw* | pw32* | cegcc*)
16085   version_type=windows
16086   shrext_cmds=".dll"
16087   need_version=no
16088   need_lib_prefix=no
16089
16090   case $GCC,$cc_basename in
16091   yes,*)
16092     # gcc
16093     library_names_spec='$libname.dll.a'
16094     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16095     postinstall_cmds='base_file=`basename \${file}`~
16096       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16097       dldir=$destdir/`dirname \$dlpath`~
16098       test -d \$dldir || mkdir -p \$dldir~
16099       $install_prog $dir/$dlname \$dldir/$dlname~
16100       chmod a+x \$dldir/$dlname~
16101       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16102         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16103       fi'
16104     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16105       dlpath=$dir/\$dldll~
16106        $RM \$dlpath'
16107     shlibpath_overrides_runpath=yes
16108
16109     case $host_os in
16110     cygwin*)
16111       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16112       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16113
16114       ;;
16115     mingw* | cegcc*)
16116       # MinGW DLLs use traditional 'lib' prefix
16117       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118       ;;
16119     pw32*)
16120       # pw32 DLLs use 'pw' prefix rather than 'lib'
16121       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16122       ;;
16123     esac
16124     dynamic_linker='Win32 ld.exe'
16125     ;;
16126
16127   *,cl*)
16128     # Native MSVC
16129     libname_spec='$name'
16130     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16131     library_names_spec='${libname}.dll.lib'
16132
16133     case $build_os in
16134     mingw*)
16135       sys_lib_search_path_spec=
16136       lt_save_ifs=$IFS
16137       IFS=';'
16138       for lt_path in $LIB
16139       do
16140         IFS=$lt_save_ifs
16141         # Let DOS variable expansion print the short 8.3 style file name.
16142         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16143         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16144       done
16145       IFS=$lt_save_ifs
16146       # Convert to MSYS style.
16147       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16148       ;;
16149     cygwin*)
16150       # Convert to unix form, then to dos form, then back to unix form
16151       # but this time dos style (no spaces!) so that the unix form looks
16152       # like /cygdrive/c/PROGRA~1:/cygdr...
16153       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16154       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16155       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16156       ;;
16157     *)
16158       sys_lib_search_path_spec="$LIB"
16159       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16160         # It is most probably a Windows format PATH.
16161         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16162       else
16163         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16164       fi
16165       # FIXME: find the short name or the path components, as spaces are
16166       # common. (e.g. "Program Files" -> "PROGRA~1")
16167       ;;
16168     esac
16169
16170     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16171     postinstall_cmds='base_file=`basename \${file}`~
16172       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16173       dldir=$destdir/`dirname \$dlpath`~
16174       test -d \$dldir || mkdir -p \$dldir~
16175       $install_prog $dir/$dlname \$dldir/$dlname'
16176     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16177       dlpath=$dir/\$dldll~
16178        $RM \$dlpath'
16179     shlibpath_overrides_runpath=yes
16180     dynamic_linker='Win32 link.exe'
16181     ;;
16182
16183   *)
16184     # Assume MSVC wrapper
16185     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16186     dynamic_linker='Win32 ld.exe'
16187     ;;
16188   esac
16189   # FIXME: first we should search . and the directory the executable is in
16190   shlibpath_var=PATH
16191   ;;
16192
16193 darwin* | rhapsody*)
16194   dynamic_linker="$host_os dyld"
16195   version_type=darwin
16196   need_lib_prefix=no
16197   need_version=no
16198   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16199   soname_spec='${libname}${release}${major}$shared_ext'
16200   shlibpath_overrides_runpath=yes
16201   shlibpath_var=DYLD_LIBRARY_PATH
16202   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16203
16204   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16205   ;;
16206
16207 dgux*)
16208   version_type=linux # correct to gnu/linux during the next big refactor
16209   need_lib_prefix=no
16210   need_version=no
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16212   soname_spec='${libname}${release}${shared_ext}$major'
16213   shlibpath_var=LD_LIBRARY_PATH
16214   ;;
16215
16216 freebsd* | dragonfly*)
16217   # DragonFly does not have aout.  When/if they implement a new
16218   # versioning mechanism, adjust this.
16219   if test -x /usr/bin/objformat; then
16220     objformat=`/usr/bin/objformat`
16221   else
16222     case $host_os in
16223     freebsd[23].*) objformat=aout ;;
16224     *) objformat=elf ;;
16225     esac
16226   fi
16227   version_type=freebsd-$objformat
16228   case $version_type in
16229     freebsd-elf*)
16230       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16231       need_version=no
16232       need_lib_prefix=no
16233       ;;
16234     freebsd-*)
16235       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16236       need_version=yes
16237       ;;
16238   esac
16239   shlibpath_var=LD_LIBRARY_PATH
16240   case $host_os in
16241   freebsd2.*)
16242     shlibpath_overrides_runpath=yes
16243     ;;
16244   freebsd3.[01]* | freebsdelf3.[01]*)
16245     shlibpath_overrides_runpath=yes
16246     hardcode_into_libs=yes
16247     ;;
16248   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16249   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16250     shlibpath_overrides_runpath=no
16251     hardcode_into_libs=yes
16252     ;;
16253   *) # from 4.6 on, and DragonFly
16254     shlibpath_overrides_runpath=yes
16255     hardcode_into_libs=yes
16256     ;;
16257   esac
16258   ;;
16259
16260 haiku*)
16261   version_type=linux # correct to gnu/linux during the next big refactor
16262   need_lib_prefix=no
16263   need_version=no
16264   dynamic_linker="$host_os runtime_loader"
16265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16266   soname_spec='${libname}${release}${shared_ext}$major'
16267   shlibpath_var=LIBRARY_PATH
16268   shlibpath_overrides_runpath=yes
16269   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16270   hardcode_into_libs=yes
16271   ;;
16272
16273 hpux9* | hpux10* | hpux11*)
16274   # Give a soname corresponding to the major version so that dld.sl refuses to
16275   # link against other versions.
16276   version_type=sunos
16277   need_lib_prefix=no
16278   need_version=no
16279   case $host_cpu in
16280   ia64*)
16281     shrext_cmds='.so'
16282     hardcode_into_libs=yes
16283     dynamic_linker="$host_os dld.so"
16284     shlibpath_var=LD_LIBRARY_PATH
16285     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287     soname_spec='${libname}${release}${shared_ext}$major'
16288     if test "X$HPUX_IA64_MODE" = X32; then
16289       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16290     else
16291       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16292     fi
16293     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16294     ;;
16295   hppa*64*)
16296     shrext_cmds='.sl'
16297     hardcode_into_libs=yes
16298     dynamic_linker="$host_os dld.sl"
16299     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16300     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16302     soname_spec='${libname}${release}${shared_ext}$major'
16303     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16304     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16305     ;;
16306   *)
16307     shrext_cmds='.sl'
16308     dynamic_linker="$host_os dld.sl"
16309     shlibpath_var=SHLIB_PATH
16310     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312     soname_spec='${libname}${release}${shared_ext}$major'
16313     ;;
16314   esac
16315   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16316   postinstall_cmds='chmod 555 $lib'
16317   # or fails outright, so override atomically:
16318   install_override_mode=555
16319   ;;
16320
16321 interix[3-9]*)
16322   version_type=linux # correct to gnu/linux during the next big refactor
16323   need_lib_prefix=no
16324   need_version=no
16325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16326   soname_spec='${libname}${release}${shared_ext}$major'
16327   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16328   shlibpath_var=LD_LIBRARY_PATH
16329   shlibpath_overrides_runpath=no
16330   hardcode_into_libs=yes
16331   ;;
16332
16333 irix5* | irix6* | nonstopux*)
16334   case $host_os in
16335     nonstopux*) version_type=nonstopux ;;
16336     *)
16337         if test "$lt_cv_prog_gnu_ld" = yes; then
16338                 version_type=linux # correct to gnu/linux during the next big refactor
16339         else
16340                 version_type=irix
16341         fi ;;
16342   esac
16343   need_lib_prefix=no
16344   need_version=no
16345   soname_spec='${libname}${release}${shared_ext}$major'
16346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16347   case $host_os in
16348   irix5* | nonstopux*)
16349     libsuff= shlibsuff=
16350     ;;
16351   *)
16352     case $LD in # libtool.m4 will add one of these switches to LD
16353     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16354       libsuff= shlibsuff= libmagic=32-bit;;
16355     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16356       libsuff=32 shlibsuff=N32 libmagic=N32;;
16357     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16358       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16359     *) libsuff= shlibsuff= libmagic=never-match;;
16360     esac
16361     ;;
16362   esac
16363   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16364   shlibpath_overrides_runpath=no
16365   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16366   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16367   hardcode_into_libs=yes
16368   ;;
16369
16370 # No shared lib support for Linux oldld, aout, or coff.
16371 linux*oldld* | linux*aout* | linux*coff*)
16372   dynamic_linker=no
16373   ;;
16374
16375 # This must be glibc/ELF.
16376 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16377   version_type=linux # correct to gnu/linux during the next big refactor
16378   need_lib_prefix=no
16379   need_version=no
16380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381   soname_spec='${libname}${release}${shared_ext}$major'
16382   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16383   shlibpath_var=LD_LIBRARY_PATH
16384   shlibpath_overrides_runpath=no
16385
16386   # Some binutils ld are patched to set DT_RUNPATH
16387   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16388   $as_echo_n "(cached) " >&6
16389 else
16390   lt_cv_shlibpath_overrides_runpath=no
16391     save_LDFLAGS=$LDFLAGS
16392     save_libdir=$libdir
16393     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16394          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16395     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h.  */
16397
16398 int
16399 main ()
16400 {
16401
16402   ;
16403   return 0;
16404 }
16405 _ACEOF
16406 if ac_fn_cxx_try_link "$LINENO"; then :
16407   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16408   lt_cv_shlibpath_overrides_runpath=yes
16409 fi
16410 fi
16411 rm -f core conftest.err conftest.$ac_objext \
16412     conftest$ac_exeext conftest.$ac_ext
16413     LDFLAGS=$save_LDFLAGS
16414     libdir=$save_libdir
16415
16416 fi
16417
16418   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16419
16420   # This implies no fast_install, which is unacceptable.
16421   # Some rework will be needed to allow for fast_install
16422   # before this can be enabled.
16423   hardcode_into_libs=yes
16424
16425   # Append ld.so.conf contents to the search path
16426   if test -f /etc/ld.so.conf; then
16427     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' ' '`
16428     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16429   fi
16430
16431   # We used to test for /lib/ld.so.1 and disable shared libraries on
16432   # powerpc, because MkLinux only supported shared libraries with the
16433   # GNU dynamic linker.  Since this was broken with cross compilers,
16434   # most powerpc-linux boxes support dynamic linking these days and
16435   # people can always --disable-shared, the test was removed, and we
16436   # assume the GNU/Linux dynamic linker is in use.
16437   dynamic_linker='GNU/Linux ld.so'
16438   ;;
16439
16440 netbsdelf*-gnu)
16441   version_type=linux
16442   need_lib_prefix=no
16443   need_version=no
16444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16445   soname_spec='${libname}${release}${shared_ext}$major'
16446   shlibpath_var=LD_LIBRARY_PATH
16447   shlibpath_overrides_runpath=no
16448   hardcode_into_libs=yes
16449   dynamic_linker='NetBSD ld.elf_so'
16450   ;;
16451
16452 netbsd*)
16453   version_type=sunos
16454   need_lib_prefix=no
16455   need_version=no
16456   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16458     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16459     dynamic_linker='NetBSD (a.out) ld.so'
16460   else
16461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16462     soname_spec='${libname}${release}${shared_ext}$major'
16463     dynamic_linker='NetBSD ld.elf_so'
16464   fi
16465   shlibpath_var=LD_LIBRARY_PATH
16466   shlibpath_overrides_runpath=yes
16467   hardcode_into_libs=yes
16468   ;;
16469
16470 newsos6)
16471   version_type=linux # correct to gnu/linux during the next big refactor
16472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473   shlibpath_var=LD_LIBRARY_PATH
16474   shlibpath_overrides_runpath=yes
16475   ;;
16476
16477 *nto* | *qnx*)
16478   version_type=qnx
16479   need_lib_prefix=no
16480   need_version=no
16481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482   soname_spec='${libname}${release}${shared_ext}$major'
16483   shlibpath_var=LD_LIBRARY_PATH
16484   shlibpath_overrides_runpath=no
16485   hardcode_into_libs=yes
16486   dynamic_linker='ldqnx.so'
16487   ;;
16488
16489 openbsd*)
16490   version_type=sunos
16491   sys_lib_dlsearch_path_spec="/usr/lib"
16492   need_lib_prefix=no
16493   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16494   case $host_os in
16495     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16496     *)                          need_version=no  ;;
16497   esac
16498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16500   shlibpath_var=LD_LIBRARY_PATH
16501   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16502     case $host_os in
16503       openbsd2.[89] | openbsd2.[89].*)
16504         shlibpath_overrides_runpath=no
16505         ;;
16506       *)
16507         shlibpath_overrides_runpath=yes
16508         ;;
16509       esac
16510   else
16511     shlibpath_overrides_runpath=yes
16512   fi
16513   ;;
16514
16515 os2*)
16516   libname_spec='$name'
16517   shrext_cmds=".dll"
16518   need_lib_prefix=no
16519   library_names_spec='$libname${shared_ext} $libname.a'
16520   dynamic_linker='OS/2 ld.exe'
16521   shlibpath_var=LIBPATH
16522   ;;
16523
16524 osf3* | osf4* | osf5*)
16525   version_type=osf
16526   need_lib_prefix=no
16527   need_version=no
16528   soname_spec='${libname}${release}${shared_ext}$major'
16529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530   shlibpath_var=LD_LIBRARY_PATH
16531   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16532   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16533   ;;
16534
16535 rdos*)
16536   dynamic_linker=no
16537   ;;
16538
16539 solaris*)
16540   version_type=linux # correct to gnu/linux during the next big refactor
16541   need_lib_prefix=no
16542   need_version=no
16543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16544   soname_spec='${libname}${release}${shared_ext}$major'
16545   shlibpath_var=LD_LIBRARY_PATH
16546   shlibpath_overrides_runpath=yes
16547   hardcode_into_libs=yes
16548   # ldd complains unless libraries are executable
16549   postinstall_cmds='chmod +x $lib'
16550   ;;
16551
16552 sunos4*)
16553   version_type=sunos
16554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16555   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16556   shlibpath_var=LD_LIBRARY_PATH
16557   shlibpath_overrides_runpath=yes
16558   if test "$with_gnu_ld" = yes; then
16559     need_lib_prefix=no
16560   fi
16561   need_version=yes
16562   ;;
16563
16564 sysv4 | sysv4.3*)
16565   version_type=linux # correct to gnu/linux during the next big refactor
16566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567   soname_spec='${libname}${release}${shared_ext}$major'
16568   shlibpath_var=LD_LIBRARY_PATH
16569   case $host_vendor in
16570     sni)
16571       shlibpath_overrides_runpath=no
16572       need_lib_prefix=no
16573       runpath_var=LD_RUN_PATH
16574       ;;
16575     siemens)
16576       need_lib_prefix=no
16577       ;;
16578     motorola)
16579       need_lib_prefix=no
16580       need_version=no
16581       shlibpath_overrides_runpath=no
16582       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16583       ;;
16584   esac
16585   ;;
16586
16587 sysv4*MP*)
16588   if test -d /usr/nec ;then
16589     version_type=linux # correct to gnu/linux during the next big refactor
16590     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16591     soname_spec='$libname${shared_ext}.$major'
16592     shlibpath_var=LD_LIBRARY_PATH
16593   fi
16594   ;;
16595
16596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16597   version_type=freebsd-elf
16598   need_lib_prefix=no
16599   need_version=no
16600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16601   soname_spec='${libname}${release}${shared_ext}$major'
16602   shlibpath_var=LD_LIBRARY_PATH
16603   shlibpath_overrides_runpath=yes
16604   hardcode_into_libs=yes
16605   if test "$with_gnu_ld" = yes; then
16606     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16607   else
16608     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16609     case $host_os in
16610       sco3.2v5*)
16611         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16612         ;;
16613     esac
16614   fi
16615   sys_lib_dlsearch_path_spec='/usr/lib'
16616   ;;
16617
16618 tpf*)
16619   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16620   version_type=linux # correct to gnu/linux during the next big refactor
16621   need_lib_prefix=no
16622   need_version=no
16623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624   shlibpath_var=LD_LIBRARY_PATH
16625   shlibpath_overrides_runpath=no
16626   hardcode_into_libs=yes
16627   ;;
16628
16629 uts4*)
16630   version_type=linux # correct to gnu/linux during the next big refactor
16631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632   soname_spec='${libname}${release}${shared_ext}$major'
16633   shlibpath_var=LD_LIBRARY_PATH
16634   ;;
16635
16636 *)
16637   dynamic_linker=no
16638   ;;
16639 esac
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16641 $as_echo "$dynamic_linker" >&6; }
16642 test "$dynamic_linker" = no && can_build_shared=no
16643
16644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16645 if test "$GCC" = yes; then
16646   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16647 fi
16648
16649 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16650   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16651 fi
16652 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16653   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16654 fi
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16695 hardcode_action_CXX=
16696 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16697    test -n "$runpath_var_CXX" ||
16698    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16699
16700   # We can hardcode non-existent directories.
16701   if test "$hardcode_direct_CXX" != no &&
16702      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16703      # have to relink, otherwise we might link with an installed library
16704      # when we should be linking with a yet-to-be-installed one
16705      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16706      test "$hardcode_minus_L_CXX" != no; then
16707     # Linking always hardcodes the temporary library directory.
16708     hardcode_action_CXX=relink
16709   else
16710     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16711     hardcode_action_CXX=immediate
16712   fi
16713 else
16714   # We cannot hardcode anything, or else we can only hardcode existing
16715   # directories.
16716   hardcode_action_CXX=unsupported
16717 fi
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16719 $as_echo "$hardcode_action_CXX" >&6; }
16720
16721 if test "$hardcode_action_CXX" = relink ||
16722    test "$inherit_rpath_CXX" = yes; then
16723   # Fast installation is not supported
16724   enable_fast_install=no
16725 elif test "$shlibpath_overrides_runpath" = yes ||
16726      test "$enable_shared" = no; then
16727   # Fast installation is not necessary
16728   enable_fast_install=needless
16729 fi
16730
16731
16732
16733
16734
16735
16736
16737   fi # test -n "$compiler"
16738
16739   CC=$lt_save_CC
16740   CFLAGS=$lt_save_CFLAGS
16741   LDCXX=$LD
16742   LD=$lt_save_LD
16743   GCC=$lt_save_GCC
16744   with_gnu_ld=$lt_save_with_gnu_ld
16745   lt_cv_path_LDCXX=$lt_cv_path_LD
16746   lt_cv_path_LD=$lt_save_path_LD
16747   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16748   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16749 fi # test "$_lt_caught_CXX_error" != yes
16750
16751 ac_ext=c
16752 ac_cpp='$CPP $CPPFLAGS'
16753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16756
16757
16758
16759
16760 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16761         if test -n "$ac_tool_prefix"; then
16762   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16763 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16765 $as_echo_n "checking for $ac_word... " >&6; }
16766 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16767   $as_echo_n "(cached) " >&6
16768 else
16769   case $PKG_CONFIG in
16770   [\\/]* | ?:[\\/]*)
16771   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16772   ;;
16773   *)
16774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16775 for as_dir in $PATH
16776 do
16777   IFS=$as_save_IFS
16778   test -z "$as_dir" && as_dir=.
16779     for ac_exec_ext in '' $ac_executable_extensions; do
16780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16781     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16783     break 2
16784   fi
16785 done
16786   done
16787 IFS=$as_save_IFS
16788
16789   ;;
16790 esac
16791 fi
16792 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16793 if test -n "$PKG_CONFIG"; then
16794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16795 $as_echo "$PKG_CONFIG" >&6; }
16796 else
16797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16798 $as_echo "no" >&6; }
16799 fi
16800
16801
16802 fi
16803 if test -z "$ac_cv_path_PKG_CONFIG"; then
16804   ac_pt_PKG_CONFIG=$PKG_CONFIG
16805   # Extract the first word of "pkg-config", so it can be a program name with args.
16806 set dummy pkg-config; ac_word=$2
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16808 $as_echo_n "checking for $ac_word... " >&6; }
16809 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16810   $as_echo_n "(cached) " >&6
16811 else
16812   case $ac_pt_PKG_CONFIG in
16813   [\\/]* | ?:[\\/]*)
16814   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16815   ;;
16816   *)
16817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16818 for as_dir in $PATH
16819 do
16820   IFS=$as_save_IFS
16821   test -z "$as_dir" && as_dir=.
16822     for ac_exec_ext in '' $ac_executable_extensions; do
16823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16824     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16826     break 2
16827   fi
16828 done
16829   done
16830 IFS=$as_save_IFS
16831
16832   ;;
16833 esac
16834 fi
16835 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16836 if test -n "$ac_pt_PKG_CONFIG"; then
16837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16838 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16839 else
16840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841 $as_echo "no" >&6; }
16842 fi
16843
16844   if test "x$ac_pt_PKG_CONFIG" = x; then
16845     PKG_CONFIG=""
16846   else
16847     case $cross_compiling:$ac_tool_warned in
16848 yes:)
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16851 ac_tool_warned=yes ;;
16852 esac
16853     PKG_CONFIG=$ac_pt_PKG_CONFIG
16854   fi
16855 else
16856   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16857 fi
16858
16859 fi
16860 if test -n "$PKG_CONFIG"; then
16861         _pkg_min_version=0.20
16862         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16863 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16864         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16865                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16866 $as_echo "yes" >&6; }
16867         else
16868                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16869 $as_echo "no" >&6; }
16870                 PKG_CONFIG=""
16871         fi
16872
16873 fi
16874
16875 RAGEL=${RAGEL-"${am_missing_run}ragel"}
16876
16877
16878 GIT=${GIT-"${am_missing_run}git"}
16879
16880
16881 # Version
16882
16883
16884
16885
16886 HB_VERSION_MAJOR=1
16887 HB_VERSION_MINOR=3
16888 HB_VERSION_MICRO=0
16889 HB_VERSION=1.3.0
16890
16891
16892
16893
16894
16895 # Libtool version
16896
16897
16898
16899
16900 HB_LIBTOOL_VERSION_INFO=10300:0:10300
16901
16902
16903 # Documentation
16904 have_gtk_doc=false
16905
16906
16907
16908
16909   gtk_doc_requires="gtk-doc >= 1.15"
16910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
16911 $as_echo_n "checking for gtk-doc... " >&6; }
16912   if test -n "$PKG_CONFIG" && \
16913     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
16914   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
16915   ac_status=$?
16916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16917   test $ac_status = 0; }; then
16918   have_gtk_doc=yes
16919 else
16920   have_gtk_doc=no
16921 fi
16922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
16923 $as_echo "$have_gtk_doc" >&6; }
16924
16925   if test "$have_gtk_doc" = "no"; then
16926       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16927   You will not be able to create source packages with 'make dist'
16928   because $gtk_doc_requires is not found." >&5
16929 $as_echo "$as_me: WARNING:
16930   You will not be able to create source packages with 'make dist'
16931   because $gtk_doc_requires is not found." >&2;}
16932   fi
16933
16934             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16935 set dummy gtkdoc-check; ac_word=$2
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16937 $as_echo_n "checking for $ac_word... " >&6; }
16938 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
16939   $as_echo_n "(cached) " >&6
16940 else
16941   if test -n "$GTKDOC_CHECK"; then
16942   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
16943 else
16944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16945 for as_dir in $PATH
16946 do
16947   IFS=$as_save_IFS
16948   test -z "$as_dir" && as_dir=.
16949     for ac_exec_ext in '' $ac_executable_extensions; do
16950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16951     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
16952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16953     break 2
16954   fi
16955 done
16956   done
16957 IFS=$as_save_IFS
16958
16959 fi
16960 fi
16961 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
16962 if test -n "$GTKDOC_CHECK"; then
16963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
16964 $as_echo "$GTKDOC_CHECK" >&6; }
16965 else
16966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16967 $as_echo "no" >&6; }
16968 fi
16969
16970
16971   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
16972 set dummy gtkdoc-check; ac_word=$2
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16974 $as_echo_n "checking for $ac_word... " >&6; }
16975 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
16976   $as_echo_n "(cached) " >&6
16977 else
16978   case $GTKDOC_CHECK_PATH in
16979   [\\/]* | ?:[\\/]*)
16980   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
16981   ;;
16982   *)
16983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984 for as_dir in $PATH
16985 do
16986   IFS=$as_save_IFS
16987   test -z "$as_dir" && as_dir=.
16988     for ac_exec_ext in '' $ac_executable_extensions; do
16989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16990     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
16991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16992     break 2
16993   fi
16994 done
16995   done
16996 IFS=$as_save_IFS
16997
16998   ;;
16999 esac
17000 fi
17001 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
17002 if test -n "$GTKDOC_CHECK_PATH"; then
17003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
17004 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
17005 else
17006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17007 $as_echo "no" >&6; }
17008 fi
17009
17010
17011   for ac_prog in gtkdoc-rebase
17012 do
17013   # Extract the first word of "$ac_prog", so it can be a program name with args.
17014 set dummy $ac_prog; ac_word=$2
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17016 $as_echo_n "checking for $ac_word... " >&6; }
17017 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
17018   $as_echo_n "(cached) " >&6
17019 else
17020   case $GTKDOC_REBASE in
17021   [\\/]* | ?:[\\/]*)
17022   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
17023   ;;
17024   *)
17025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17026 for as_dir in $PATH
17027 do
17028   IFS=$as_save_IFS
17029   test -z "$as_dir" && as_dir=.
17030     for ac_exec_ext in '' $ac_executable_extensions; do
17031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17032     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
17033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17034     break 2
17035   fi
17036 done
17037   done
17038 IFS=$as_save_IFS
17039
17040   ;;
17041 esac
17042 fi
17043 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
17044 if test -n "$GTKDOC_REBASE"; then
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
17046 $as_echo "$GTKDOC_REBASE" >&6; }
17047 else
17048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 $as_echo "no" >&6; }
17050 fi
17051
17052
17053   test -n "$GTKDOC_REBASE" && break
17054 done
17055 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
17056
17057   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
17058 set dummy gtkdoc-mkpdf; ac_word=$2
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17060 $as_echo_n "checking for $ac_word... " >&6; }
17061 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
17062   $as_echo_n "(cached) " >&6
17063 else
17064   case $GTKDOC_MKPDF in
17065   [\\/]* | ?:[\\/]*)
17066   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
17067   ;;
17068   *)
17069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17070 for as_dir in $PATH
17071 do
17072   IFS=$as_save_IFS
17073   test -z "$as_dir" && as_dir=.
17074     for ac_exec_ext in '' $ac_executable_extensions; do
17075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17076     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
17077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17078     break 2
17079   fi
17080 done
17081   done
17082 IFS=$as_save_IFS
17083
17084   ;;
17085 esac
17086 fi
17087 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
17088 if test -n "$GTKDOC_MKPDF"; then
17089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
17090 $as_echo "$GTKDOC_MKPDF" >&6; }
17091 else
17092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093 $as_echo "no" >&6; }
17094 fi
17095
17096
17097
17098
17099 # Check whether --with-html-dir was given.
17100 if test "${with_html_dir+set}" = set; then :
17101   withval=$with_html_dir;
17102 else
17103   with_html_dir='${datadir}/gtk-doc/html'
17104 fi
17105
17106   HTML_DIR="$with_html_dir"
17107
17108
17109     # Check whether --enable-gtk-doc was given.
17110 if test "${enable_gtk_doc+set}" = set; then :
17111   enableval=$enable_gtk_doc;
17112 else
17113   enable_gtk_doc=no
17114 fi
17115
17116
17117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
17118 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
17119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
17120 $as_echo "$enable_gtk_doc" >&6; }
17121
17122   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
17123     as_fn_error $? "
17124   You must have $gtk_doc_requires installed to build documentation for
17125   $PACKAGE_NAME. Please install gtk-doc or disable building the
17126   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
17127   fi
17128
17129     if test "x$PACKAGE_NAME" != "xglib"; then
17130
17131 pkg_failed=no
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
17133 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
17134
17135 if test -n "$PKG_CONFIG"; then
17136     if test -n "$GTKDOC_DEPS_CFLAGS"; then
17137         pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
17138     else
17139         if test -n "$PKG_CONFIG" && \
17140     { { $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
17141   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17142   ac_status=$?
17143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17144   test $ac_status = 0; }; then
17145   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17146 else
17147   pkg_failed=yes
17148 fi
17149     fi
17150 else
17151         pkg_failed=untried
17152 fi
17153 if test -n "$PKG_CONFIG"; then
17154     if test -n "$GTKDOC_DEPS_LIBS"; then
17155         pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
17156     else
17157         if test -n "$PKG_CONFIG" && \
17158     { { $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
17159   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
17160   ac_status=$?
17161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17162   test $ac_status = 0; }; then
17163   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
17164 else
17165   pkg_failed=yes
17166 fi
17167     fi
17168 else
17169         pkg_failed=untried
17170 fi
17171
17172
17173
17174 if test $pkg_failed = yes; then
17175
17176 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17177         _pkg_short_errors_supported=yes
17178 else
17179         _pkg_short_errors_supported=no
17180 fi
17181         if test $_pkg_short_errors_supported = yes; then
17182                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
17183         else
17184                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
17185         fi
17186         # Put the nasty error message in config.log where it belongs
17187         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
17188
17189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17191                 :
17192 elif test $pkg_failed = untried; then
17193         :
17194 else
17195         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
17196         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
17197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17198 $as_echo "yes" >&6; }
17199         :
17200 fi
17201   fi
17202
17203     # Check whether --enable-gtk-doc-html was given.
17204 if test "${enable_gtk_doc_html+set}" = set; then :
17205   enableval=$enable_gtk_doc_html;
17206 else
17207   enable_gtk_doc_html=yes
17208 fi
17209
17210     # Check whether --enable-gtk-doc-pdf was given.
17211 if test "${enable_gtk_doc_pdf+set}" = set; then :
17212   enableval=$enable_gtk_doc_pdf;
17213 else
17214   enable_gtk_doc_pdf=no
17215 fi
17216
17217
17218   if test -z "$GTKDOC_MKPDF"; then
17219     enable_gtk_doc_pdf=no
17220   fi
17221
17222   if test -z "$AM_DEFAULT_VERBOSITY"; then
17223     AM_DEFAULT_VERBOSITY=1
17224   fi
17225
17226
17227    if test x$have_gtk_doc = xyes; then
17228   HAVE_GTK_DOC_TRUE=
17229   HAVE_GTK_DOC_FALSE='#'
17230 else
17231   HAVE_GTK_DOC_TRUE='#'
17232   HAVE_GTK_DOC_FALSE=
17233 fi
17234
17235    if test x$enable_gtk_doc = xyes; then
17236   ENABLE_GTK_DOC_TRUE=
17237   ENABLE_GTK_DOC_FALSE='#'
17238 else
17239   ENABLE_GTK_DOC_TRUE='#'
17240   ENABLE_GTK_DOC_FALSE=
17241 fi
17242
17243    if test x$enable_gtk_doc_html = xyes; then
17244   GTK_DOC_BUILD_HTML_TRUE=
17245   GTK_DOC_BUILD_HTML_FALSE='#'
17246 else
17247   GTK_DOC_BUILD_HTML_TRUE='#'
17248   GTK_DOC_BUILD_HTML_FALSE=
17249 fi
17250
17251    if test x$enable_gtk_doc_pdf = xyes; then
17252   GTK_DOC_BUILD_PDF_TRUE=
17253   GTK_DOC_BUILD_PDF_FALSE='#'
17254 else
17255   GTK_DOC_BUILD_PDF_TRUE='#'
17256   GTK_DOC_BUILD_PDF_FALSE=
17257 fi
17258
17259    if test -n "$LIBTOOL"; then
17260   GTK_DOC_USE_LIBTOOL_TRUE=
17261   GTK_DOC_USE_LIBTOOL_FALSE='#'
17262 else
17263   GTK_DOC_USE_LIBTOOL_TRUE='#'
17264   GTK_DOC_USE_LIBTOOL_FALSE=
17265 fi
17266
17267    if test -n "$GTKDOC_REBASE"; then
17268   GTK_DOC_USE_REBASE_TRUE=
17269   GTK_DOC_USE_REBASE_FALSE='#'
17270 else
17271   GTK_DOC_USE_REBASE_TRUE='#'
17272   GTK_DOC_USE_REBASE_FALSE=
17273 fi
17274
17275
17276         if test "x$enable_gtk_doc" = xyes; then
17277                 have_gtk_doc=true
17278         fi
17279
17280
17281 # Functions and headers
17282 for ac_func in atexit mprotect sysconf getpagesize mmap isatty
17283 do :
17284   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17285 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17286 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17287   cat >>confdefs.h <<_ACEOF
17288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17289 _ACEOF
17290
17291 fi
17292 done
17293
17294 for ac_header in unistd.h sys/mman.h
17295 do :
17296   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17297 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17298 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17299   cat >>confdefs.h <<_ACEOF
17300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17301 _ACEOF
17302
17303 fi
17304
17305 done
17306
17307
17308 # Compiler flags
17309
17310 # The cast to long int works around a bug in the HP C Compiler,
17311 # see AC_CHECK_SIZEOF for more information.
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
17313 $as_echo_n "checking alignment of struct{char;}... " >&6; }
17314 if ${ac_cv_alignof_struct_char__+:} false; then :
17315   $as_echo_n "(cached) " >&6
17316 else
17317   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
17318 #ifndef offsetof
17319 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17320 #endif
17321 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
17322
17323 else
17324   if test "$ac_cv_type_struct_char__" = yes; then
17325      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17327 as_fn_error 77 "cannot compute alignment of struct{char;}
17328 See \`config.log' for more details" "$LINENO" 5; }
17329    else
17330      ac_cv_alignof_struct_char__=0
17331    fi
17332 fi
17333
17334 fi
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
17336 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
17337
17338
17339
17340 cat >>confdefs.h <<_ACEOF
17341 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
17342 _ACEOF
17343
17344
17345 if test "x$GCC" = "xyes"; then
17346
17347         # Make symbols link locally
17348         LDFLAGS="$LDFLAGS -Bsymbolic-functions"
17349
17350         # Make sure we don't link to libstdc++
17351         CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
17352
17353         # Assorted warnings
17354         CXXFLAGS="$CXXFLAGS -Wcast-align"
17355
17356         case "$host" in
17357                 *-*-mingw*)
17358                 ;;
17359                 *)
17360                         # Hide inline methods
17361                         CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
17362                 ;;
17363         esac
17364
17365         case "$host" in
17366                 arm-*-*)
17367                         if test "x$ac_cv_alignof_struct_char__" != x1; then
17368                                 # Request byte alignment
17369                                 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
17370                         fi
17371                 ;;
17372         esac
17373 fi
17374
17375  if test "x$GCC" = "xyes"; then
17376   HAVE_GCC_TRUE=
17377   HAVE_GCC_FALSE='#'
17378 else
17379   HAVE_GCC_TRUE='#'
17380   HAVE_GCC_FALSE=
17381 fi
17382
17383
17384 hb_os_win32=no
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
17386 $as_echo_n "checking for native Win32... " >&6; }
17387 case "$host" in
17388   *-*-mingw*)
17389     hb_os_win32=yes
17390     ;;
17391 esac
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
17393 $as_echo "$hb_os_win32" >&6; }
17394  if test "$hb_os_win32" = "yes"; then
17395   OS_WIN32_TRUE=
17396   OS_WIN32_FALSE='#'
17397 else
17398   OS_WIN32_TRUE='#'
17399   OS_WIN32_FALSE=
17400 fi
17401
17402
17403 have_pthread=false
17404 if test "$hb_os_win32" = no; then
17405
17406
17407 ac_ext=c
17408 ac_cpp='$CPP $CPPFLAGS'
17409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17412
17413 ax_pthread_ok=no
17414
17415 # We used to check for pthread.h first, but this fails if pthread.h
17416 # requires special compiler flags (e.g. on True64 or Sequent).
17417 # It gets checked for in the link test anyway.
17418
17419 # First of all, check if the user has set any of the PTHREAD_LIBS,
17420 # etcetera environment variables, and if threads linking works using
17421 # them:
17422 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17423         save_CFLAGS="$CFLAGS"
17424         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17425         save_LIBS="$LIBS"
17426         LIBS="$PTHREAD_LIBS $LIBS"
17427         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17428 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17429         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430 /* end confdefs.h.  */
17431
17432 /* Override any GCC internal prototype to avoid an error.
17433    Use char because int might match the return type of a GCC
17434    builtin and then its argument prototype would still apply.  */
17435 #ifdef __cplusplus
17436 extern "C"
17437 #endif
17438 char pthread_join ();
17439 int
17440 main ()
17441 {
17442 return pthread_join ();
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 if ac_fn_c_try_link "$LINENO"; then :
17448   ax_pthread_ok=yes
17449 fi
17450 rm -f core conftest.err conftest.$ac_objext \
17451     conftest$ac_exeext conftest.$ac_ext
17452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17453 $as_echo "$ax_pthread_ok" >&6; }
17454         if test x"$ax_pthread_ok" = xno; then
17455                 PTHREAD_LIBS=""
17456                 PTHREAD_CFLAGS=""
17457         fi
17458         LIBS="$save_LIBS"
17459         CFLAGS="$save_CFLAGS"
17460 fi
17461
17462 # We must check for the threads library under a number of different
17463 # names; the ordering is very important because some systems
17464 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17465 # libraries is broken (non-POSIX).
17466
17467 # Create a list of thread flags to try.  Items starting with a "-" are
17468 # C compiler flags, and other items are library names, except for "none"
17469 # which indicates that we try without any flags at all, and "pthread-config"
17470 # which is a program returning the flags for the Pth emulation library.
17471
17472 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17473
17474 # The ordering *is* (sometimes) important.  Some notes on the
17475 # individual items follow:
17476
17477 # pthreads: AIX (must check this before -lpthread)
17478 # none: in case threads are in libc; should be tried before -Kthread and
17479 #       other compiler flags to prevent continual compiler warnings
17480 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17481 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17482 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17483 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17484 # -pthreads: Solaris/gcc
17485 # -mthreads: Mingw32/gcc, Lynx/gcc
17486 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17487 #      doesn't hurt to check since this sometimes defines pthreads too;
17488 #      also defines -D_REENTRANT)
17489 #      ... -mt is also the pthreads flag for HP/aCC
17490 # pthread: Linux, etcetera
17491 # --thread-safe: KAI C++
17492 # pthread-config: use pthread-config program (for GNU Pth library)
17493
17494 case ${host_os} in
17495         solaris*)
17496
17497         # On Solaris (at least, for some versions), libc contains stubbed
17498         # (non-functional) versions of the pthreads routines, so link-based
17499         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17500         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17501         # a function called by this macro, so we could check for that, but
17502         # who knows whether they'll stub that too in a future libc.)  So,
17503         # we'll just look for -pthreads and -lpthread first:
17504
17505         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
17506         ;;
17507
17508         darwin*)
17509         ax_pthread_flags="-pthread $ax_pthread_flags"
17510         ;;
17511 esac
17512
17513 if test x"$ax_pthread_ok" = xno; then
17514 for flag in $ax_pthread_flags; do
17515
17516         case $flag in
17517                 none)
17518                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17519 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17520                 ;;
17521
17522                 -*)
17523                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17524 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17525                 PTHREAD_CFLAGS="$flag"
17526                 ;;
17527
17528                 pthread-config)
17529                 # Extract the first word of "pthread-config", so it can be a program name with args.
17530 set dummy pthread-config; ac_word=$2
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17532 $as_echo_n "checking for $ac_word... " >&6; }
17533 if ${ac_cv_prog_ax_pthread_config+:} false; then :
17534   $as_echo_n "(cached) " >&6
17535 else
17536   if test -n "$ax_pthread_config"; then
17537   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
17538 else
17539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17540 for as_dir in $PATH
17541 do
17542   IFS=$as_save_IFS
17543   test -z "$as_dir" && as_dir=.
17544     for ac_exec_ext in '' $ac_executable_extensions; do
17545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17546     ac_cv_prog_ax_pthread_config="yes"
17547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17548     break 2
17549   fi
17550 done
17551   done
17552 IFS=$as_save_IFS
17553
17554   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
17555 fi
17556 fi
17557 ax_pthread_config=$ac_cv_prog_ax_pthread_config
17558 if test -n "$ax_pthread_config"; then
17559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
17560 $as_echo "$ax_pthread_config" >&6; }
17561 else
17562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563 $as_echo "no" >&6; }
17564 fi
17565
17566
17567                 if test x"$ax_pthread_config" = xno; then continue; fi
17568                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17569                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17570                 ;;
17571
17572                 *)
17573                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17574 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17575                 PTHREAD_LIBS="-l$flag"
17576                 ;;
17577         esac
17578
17579         save_LIBS="$LIBS"
17580         save_CFLAGS="$CFLAGS"
17581         LIBS="$PTHREAD_LIBS $LIBS"
17582         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17583
17584         # Check for various functions.  We must include pthread.h,
17585         # since some functions may be macros.  (On the Sequent, we
17586         # need a special flag -Kthread to make this header compile.)
17587         # We check for pthread_join because it is in -lpthread on IRIX
17588         # while pthread_create is in libc.  We check for pthread_attr_init
17589         # due to DEC craziness with -lpthreads.  We check for
17590         # pthread_cleanup_push because it is one of the few pthread
17591         # functions on Solaris that doesn't have a non-functional libc stub.
17592         # We try pthread_create on general principles.
17593         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h.  */
17595 #include <pthread.h>
17596                         static void routine(void *a) { a = 0; }
17597                         static void *start_routine(void *a) { return a; }
17598 int
17599 main ()
17600 {
17601 pthread_t th; pthread_attr_t attr;
17602                         pthread_create(&th, 0, start_routine, 0);
17603                         pthread_join(th, 0);
17604                         pthread_attr_init(&attr);
17605                         pthread_cleanup_push(routine, 0);
17606                         pthread_cleanup_pop(0) /* ; */
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 if ac_fn_c_try_link "$LINENO"; then :
17612   ax_pthread_ok=yes
17613 fi
17614 rm -f core conftest.err conftest.$ac_objext \
17615     conftest$ac_exeext conftest.$ac_ext
17616
17617         LIBS="$save_LIBS"
17618         CFLAGS="$save_CFLAGS"
17619
17620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17621 $as_echo "$ax_pthread_ok" >&6; }
17622         if test "x$ax_pthread_ok" = xyes; then
17623                 break;
17624         fi
17625
17626         PTHREAD_LIBS=""
17627         PTHREAD_CFLAGS=""
17628 done
17629 fi
17630
17631 # Various other checks:
17632 if test "x$ax_pthread_ok" = xyes; then
17633         save_LIBS="$LIBS"
17634         LIBS="$PTHREAD_LIBS $LIBS"
17635         save_CFLAGS="$CFLAGS"
17636         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17637
17638         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17639         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17640 $as_echo_n "checking for joinable pthread attribute... " >&6; }
17641         attr_name=unknown
17642         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17643             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h.  */
17645 #include <pthread.h>
17646 int
17647 main ()
17648 {
17649 int attr = $attr; return attr /* ; */
17650   ;
17651   return 0;
17652 }
17653 _ACEOF
17654 if ac_fn_c_try_link "$LINENO"; then :
17655   attr_name=$attr; break
17656 fi
17657 rm -f core conftest.err conftest.$ac_objext \
17658     conftest$ac_exeext conftest.$ac_ext
17659         done
17660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17661 $as_echo "$attr_name" >&6; }
17662         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17663
17664 cat >>confdefs.h <<_ACEOF
17665 #define PTHREAD_CREATE_JOINABLE $attr_name
17666 _ACEOF
17667
17668         fi
17669
17670         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17671 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17672         flag=no
17673         case ${host_os} in
17674             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
17675             osf* | hpux*) flag="-D_REENTRANT";;
17676             solaris*)
17677             if test "$GCC" = "yes"; then
17678                 flag="-D_REENTRANT"
17679             else
17680                 flag="-mt -D_REENTRANT"
17681             fi
17682             ;;
17683         esac
17684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17685 $as_echo "${flag}" >&6; }
17686         if test "x$flag" != xno; then
17687             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17688         fi
17689
17690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17691 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17692 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
17693   $as_echo_n "(cached) " >&6
17694 else
17695
17696                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h.  */
17698
17699                     #include <pthread.h>
17700 int
17701 main ()
17702 {
17703 int i = PTHREAD_PRIO_INHERIT;
17704   ;
17705   return 0;
17706 }
17707 _ACEOF
17708 if ac_fn_c_try_link "$LINENO"; then :
17709   ax_cv_PTHREAD_PRIO_INHERIT=yes
17710 else
17711   ax_cv_PTHREAD_PRIO_INHERIT=no
17712 fi
17713 rm -f core conftest.err conftest.$ac_objext \
17714     conftest$ac_exeext conftest.$ac_ext
17715
17716 fi
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17718 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17719         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
17720
17721 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17722
17723 fi
17724
17725         LIBS="$save_LIBS"
17726         CFLAGS="$save_CFLAGS"
17727
17728         # More AIX lossage: must compile with xlc_r or cc_r
17729         if test x"$GCC" != xyes; then
17730           for ac_prog in xlc_r cc_r
17731 do
17732   # Extract the first word of "$ac_prog", so it can be a program name with args.
17733 set dummy $ac_prog; ac_word=$2
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17735 $as_echo_n "checking for $ac_word... " >&6; }
17736 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17737   $as_echo_n "(cached) " >&6
17738 else
17739   if test -n "$PTHREAD_CC"; then
17740   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17741 else
17742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17743 for as_dir in $PATH
17744 do
17745   IFS=$as_save_IFS
17746   test -z "$as_dir" && as_dir=.
17747     for ac_exec_ext in '' $ac_executable_extensions; do
17748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17749     ac_cv_prog_PTHREAD_CC="$ac_prog"
17750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17751     break 2
17752   fi
17753 done
17754   done
17755 IFS=$as_save_IFS
17756
17757 fi
17758 fi
17759 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17760 if test -n "$PTHREAD_CC"; then
17761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17762 $as_echo "$PTHREAD_CC" >&6; }
17763 else
17764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765 $as_echo "no" >&6; }
17766 fi
17767
17768
17769   test -n "$PTHREAD_CC" && break
17770 done
17771 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
17772
17773         else
17774           PTHREAD_CC=$CC
17775         fi
17776 else
17777         PTHREAD_CC="$CC"
17778 fi
17779
17780
17781
17782
17783
17784 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17785 if test x"$ax_pthread_ok" = xyes; then
17786         have_pthread=true
17787         :
17788 else
17789         ax_pthread_ok=no
17790
17791 fi
17792 ac_ext=c
17793 ac_cpp='$CPP $CPPFLAGS'
17794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17797
17798
17799 fi
17800 if $have_pthread; then
17801
17802 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17803
17804 fi
17805  if $have_pthread; then
17806   HAVE_PTHREAD_TRUE=
17807   HAVE_PTHREAD_FALSE='#'
17808 else
17809   HAVE_PTHREAD_TRUE='#'
17810   HAVE_PTHREAD_FALSE=
17811 fi
17812
17813
17814
17815 have_ot=true
17816 if $have_ot; then
17817
17818 $as_echo "#define HAVE_OT 1" >>confdefs.h
17819
17820 fi
17821  if $have_ot; then
17822   HAVE_OT_TRUE=
17823   HAVE_OT_FALSE='#'
17824 else
17825   HAVE_OT_TRUE='#'
17826   HAVE_OT_FALSE=
17827 fi
17828
17829
17830 have_fallback=true
17831 if $have_fallback; then
17832
17833 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
17834
17835 fi
17836  if $have_fallback; then
17837   HAVE_FALLBACK_TRUE=
17838   HAVE_FALLBACK_FALSE='#'
17839 else
17840   HAVE_FALLBACK_TRUE='#'
17841   HAVE_FALLBACK_FALSE=
17842 fi
17843
17844
17845
17846
17847 # Check whether --with-glib was given.
17848 if test "${with_glib+set}" = set; then :
17849   withval=$with_glib;
17850 else
17851   with_glib=auto
17852 fi
17853
17854 have_glib=false
17855 GLIB_DEPS="glib-2.0 >= 2.16"
17856
17857 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
17858
17859 pkg_failed=no
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
17861 $as_echo_n "checking for GLIB... " >&6; }
17862
17863 if test -n "$PKG_CONFIG"; then
17864     if test -n "$GLIB_CFLAGS"; then
17865         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
17866     else
17867         if test -n "$PKG_CONFIG" && \
17868     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
17869   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
17870   ac_status=$?
17871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17872   test $ac_status = 0; }; then
17873   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
17874 else
17875   pkg_failed=yes
17876 fi
17877     fi
17878 else
17879         pkg_failed=untried
17880 fi
17881 if test -n "$PKG_CONFIG"; then
17882     if test -n "$GLIB_LIBS"; then
17883         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
17884     else
17885         if test -n "$PKG_CONFIG" && \
17886     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
17887   ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
17888   ac_status=$?
17889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17890   test $ac_status = 0; }; then
17891   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
17892 else
17893   pkg_failed=yes
17894 fi
17895     fi
17896 else
17897         pkg_failed=untried
17898 fi
17899
17900
17901
17902 if test $pkg_failed = yes; then
17903
17904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17905         _pkg_short_errors_supported=yes
17906 else
17907         _pkg_short_errors_supported=no
17908 fi
17909         if test $_pkg_short_errors_supported = yes; then
17910                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_DEPS"`
17911         else
17912                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_DEPS"`
17913         fi
17914         # Put the nasty error message in config.log where it belongs
17915         echo "$GLIB_PKG_ERRORS" >&5
17916
17917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17918 $as_echo "no" >&6; }
17919                 :
17920 elif test $pkg_failed = untried; then
17921         :
17922 else
17923         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
17924         GLIB_LIBS=$pkg_cv_GLIB_LIBS
17925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17926 $as_echo "yes" >&6; }
17927         have_glib=true
17928 fi
17929 fi
17930 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
17931         as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
17932 fi
17933 if $have_glib; then
17934
17935 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
17936
17937 fi
17938  if $have_glib; then
17939   HAVE_GLIB_TRUE=
17940   HAVE_GLIB_FALSE='#'
17941 else
17942   HAVE_GLIB_TRUE='#'
17943   HAVE_GLIB_FALSE=
17944 fi
17945
17946
17947
17948
17949 # Check whether --with-gobject was given.
17950 if test "${with_gobject+set}" = set; then :
17951   withval=$with_gobject;
17952 else
17953   with_gobject=no
17954 fi
17955
17956 have_gobject=false
17957 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
17958
17959 pkg_failed=no
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
17961 $as_echo_n "checking for GOBJECT... " >&6; }
17962
17963 if test -n "$PKG_CONFIG"; then
17964     if test -n "$GOBJECT_CFLAGS"; then
17965         pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
17966     else
17967         if test -n "$PKG_CONFIG" && \
17968     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
17969   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
17970   ac_status=$?
17971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17972   test $ac_status = 0; }; then
17973   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
17974 else
17975   pkg_failed=yes
17976 fi
17977     fi
17978 else
17979         pkg_failed=untried
17980 fi
17981 if test -n "$PKG_CONFIG"; then
17982     if test -n "$GOBJECT_LIBS"; then
17983         pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
17984     else
17985         if test -n "$PKG_CONFIG" && \
17986     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
17987   ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
17988   ac_status=$?
17989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17990   test $ac_status = 0; }; then
17991   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
17992 else
17993   pkg_failed=yes
17994 fi
17995     fi
17996 else
17997         pkg_failed=untried
17998 fi
17999
18000
18001
18002 if test $pkg_failed = yes; then
18003
18004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18005         _pkg_short_errors_supported=yes
18006 else
18007         _pkg_short_errors_supported=no
18008 fi
18009         if test $_pkg_short_errors_supported = yes; then
18010                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
18011         else
18012                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
18013         fi
18014         # Put the nasty error message in config.log where it belongs
18015         echo "$GOBJECT_PKG_ERRORS" >&5
18016
18017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18018 $as_echo "no" >&6; }
18019                 :
18020 elif test $pkg_failed = untried; then
18021         :
18022 else
18023         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
18024         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
18025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18026 $as_echo "yes" >&6; }
18027         have_gobject=true
18028 fi
18029 fi
18030 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
18031         as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
18032 fi
18033 if $have_gobject; then
18034
18035 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
18036
18037         GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
18038
18039 fi
18040  if $have_gobject; then
18041   HAVE_GOBJECT_TRUE=
18042   HAVE_GOBJECT_FALSE='#'
18043 else
18044   HAVE_GOBJECT_TRUE='#'
18045   HAVE_GOBJECT_FALSE=
18046 fi
18047
18048
18049
18050
18051 # Gobject-Introspection
18052 have_introspection=false
18053
18054         if $have_gobject; then
18055
18056
18057
18058                 # Check whether --enable-introspection was given.
18059 if test "${enable_introspection+set}" = set; then :
18060   enableval=$enable_introspection;
18061 else
18062   enable_introspection=auto
18063 fi
18064
18065
18066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
18067 $as_echo_n "checking for gobject-introspection... " >&6; }
18068
18069         case $enable_introspection in #(
18070   no) :
18071             found_introspection="no (disabled, use --enable-introspection to enable)"
18072      ;; #(
18073       yes) :
18074             if test -n "$PKG_CONFIG" && \
18075     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
18076   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
18077   ac_status=$?
18078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18079   test $ac_status = 0; }; then
18080   :
18081 else
18082   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
18083 fi
18084         if test -n "$PKG_CONFIG" && \
18085     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18086   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18087   ac_status=$?
18088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18089   test $ac_status = 0; }; then
18090   found_introspection=yes
18091 else
18092   as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
18093 fi
18094      ;; #(
18095       auto) :
18096             if test -n "$PKG_CONFIG" && \
18097     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
18098   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
18099   ac_status=$?
18100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18101   test $ac_status = 0; }; then
18102   found_introspection=yes
18103 else
18104   found_introspection=no
18105 fi
18106                 enable_introspection=$found_introspection
18107      ;; #(
18108   *) :
18109                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
18110      ;;
18111 esac
18112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
18113 $as_echo "$found_introspection" >&6; }
18114
18115     INTROSPECTION_SCANNER=
18116     INTROSPECTION_COMPILER=
18117     INTROSPECTION_GENERATE=
18118     INTROSPECTION_GIRDIR=
18119     INTROSPECTION_TYPELIBDIR=
18120     if test "x$found_introspection" = "xyes"; then
18121        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
18122        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
18123        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
18124        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
18125        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
18126        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
18127        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
18128        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
18129     fi
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139      if test "x$found_introspection" = "xyes"; then
18140   HAVE_INTROSPECTION_TRUE=
18141   HAVE_INTROSPECTION_FALSE='#'
18142 else
18143   HAVE_INTROSPECTION_TRUE='#'
18144   HAVE_INTROSPECTION_FALSE=
18145 fi
18146
18147
18148
18149                 if test "x$found_introspection" = xyes; then
18150                         have_introspection=true
18151                 fi
18152         else
18153                  if false; then
18154   HAVE_INTROSPECTION_TRUE=
18155   HAVE_INTROSPECTION_FALSE='#'
18156 else
18157   HAVE_INTROSPECTION_TRUE='#'
18158   HAVE_INTROSPECTION_FALSE=
18159 fi
18160
18161         fi
18162
18163
18164
18165
18166 # Check whether --with-cairo was given.
18167 if test "${with_cairo+set}" = set; then :
18168   withval=$with_cairo;
18169 else
18170   with_cairo=auto
18171 fi
18172
18173 have_cairo=false
18174 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
18175
18176 pkg_failed=no
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
18178 $as_echo_n "checking for CAIRO... " >&6; }
18179
18180 if test -n "$PKG_CONFIG"; then
18181     if test -n "$CAIRO_CFLAGS"; then
18182         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
18183     else
18184         if test -n "$PKG_CONFIG" && \
18185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18186   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18187   ac_status=$?
18188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18189   test $ac_status = 0; }; then
18190   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
18191 else
18192   pkg_failed=yes
18193 fi
18194     fi
18195 else
18196         pkg_failed=untried
18197 fi
18198 if test -n "$PKG_CONFIG"; then
18199     if test -n "$CAIRO_LIBS"; then
18200         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
18201     else
18202         if test -n "$PKG_CONFIG" && \
18203     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
18204   ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
18205   ac_status=$?
18206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207   test $ac_status = 0; }; then
18208   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
18209 else
18210   pkg_failed=yes
18211 fi
18212     fi
18213 else
18214         pkg_failed=untried
18215 fi
18216
18217
18218
18219 if test $pkg_failed = yes; then
18220
18221 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18222         _pkg_short_errors_supported=yes
18223 else
18224         _pkg_short_errors_supported=no
18225 fi
18226         if test $_pkg_short_errors_supported = yes; then
18227                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18228         else
18229                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
18230         fi
18231         # Put the nasty error message in config.log where it belongs
18232         echo "$CAIRO_PKG_ERRORS" >&5
18233
18234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18235 $as_echo "no" >&6; }
18236                 :
18237 elif test $pkg_failed = untried; then
18238         :
18239 else
18240         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
18241         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
18242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18243 $as_echo "yes" >&6; }
18244         have_cairo=true
18245 fi
18246 fi
18247 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
18248         as_fn_error $? "cairo support requested but not found" "$LINENO" 5
18249 fi
18250 if $have_cairo; then
18251
18252 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
18253
18254 fi
18255  if $have_cairo; then
18256   HAVE_CAIRO_TRUE=
18257   HAVE_CAIRO_FALSE='#'
18258 else
18259   HAVE_CAIRO_TRUE='#'
18260   HAVE_CAIRO_FALSE=
18261 fi
18262
18263
18264 have_cairo_ft=false
18265 if $have_cairo; then
18266
18267 pkg_failed=no
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
18269 $as_echo_n "checking for CAIRO_FT... " >&6; }
18270
18271 if test -n "$PKG_CONFIG"; then
18272     if test -n "$CAIRO_FT_CFLAGS"; then
18273         pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
18274     else
18275         if test -n "$PKG_CONFIG" && \
18276     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18277   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18278   ac_status=$?
18279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18280   test $ac_status = 0; }; then
18281   pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
18282 else
18283   pkg_failed=yes
18284 fi
18285     fi
18286 else
18287         pkg_failed=untried
18288 fi
18289 if test -n "$PKG_CONFIG"; then
18290     if test -n "$CAIRO_FT_LIBS"; then
18291         pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
18292     else
18293         if test -n "$PKG_CONFIG" && \
18294     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
18295   ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
18296   ac_status=$?
18297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18298   test $ac_status = 0; }; then
18299   pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
18300 else
18301   pkg_failed=yes
18302 fi
18303     fi
18304 else
18305         pkg_failed=untried
18306 fi
18307
18308
18309
18310 if test $pkg_failed = yes; then
18311
18312 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18313         _pkg_short_errors_supported=yes
18314 else
18315         _pkg_short_errors_supported=no
18316 fi
18317         if test $_pkg_short_errors_supported = yes; then
18318                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
18319         else
18320                 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
18321         fi
18322         # Put the nasty error message in config.log where it belongs
18323         echo "$CAIRO_FT_PKG_ERRORS" >&5
18324
18325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18326 $as_echo "no" >&6; }
18327                 :
18328 elif test $pkg_failed = untried; then
18329         :
18330 else
18331         CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
18332         CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
18333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18334 $as_echo "yes" >&6; }
18335         have_cairo_ft=true
18336 fi
18337 fi
18338 if $have_cairo_ft; then
18339
18340 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
18341
18342 fi
18343  if $have_cairo_ft; then
18344   HAVE_CAIRO_FT_TRUE=
18345   HAVE_CAIRO_FT_FALSE='#'
18346 else
18347   HAVE_CAIRO_FT_TRUE='#'
18348   HAVE_CAIRO_FT_FALSE=
18349 fi
18350
18351
18352
18353
18354 # Check whether --with-fontconfig was given.
18355 if test "${with_fontconfig+set}" = set; then :
18356   withval=$with_fontconfig;
18357 else
18358   with_fontconfig=auto
18359 fi
18360
18361 have_fontconfig=false
18362 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
18363
18364 pkg_failed=no
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
18366 $as_echo_n "checking for FONTCONFIG... " >&6; }
18367
18368 if test -n "$PKG_CONFIG"; then
18369     if test -n "$FONTCONFIG_CFLAGS"; then
18370         pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
18371     else
18372         if test -n "$PKG_CONFIG" && \
18373     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18374   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18375   ac_status=$?
18376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18377   test $ac_status = 0; }; then
18378   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
18379 else
18380   pkg_failed=yes
18381 fi
18382     fi
18383 else
18384         pkg_failed=untried
18385 fi
18386 if test -n "$PKG_CONFIG"; then
18387     if test -n "$FONTCONFIG_LIBS"; then
18388         pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
18389     else
18390         if test -n "$PKG_CONFIG" && \
18391     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
18392   ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
18393   ac_status=$?
18394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18395   test $ac_status = 0; }; then
18396   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
18397 else
18398   pkg_failed=yes
18399 fi
18400     fi
18401 else
18402         pkg_failed=untried
18403 fi
18404
18405
18406
18407 if test $pkg_failed = yes; then
18408
18409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18410         _pkg_short_errors_supported=yes
18411 else
18412         _pkg_short_errors_supported=no
18413 fi
18414         if test $_pkg_short_errors_supported = yes; then
18415                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
18416         else
18417                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
18418         fi
18419         # Put the nasty error message in config.log where it belongs
18420         echo "$FONTCONFIG_PKG_ERRORS" >&5
18421
18422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 $as_echo "no" >&6; }
18424                 :
18425 elif test $pkg_failed = untried; then
18426         :
18427 else
18428         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
18429         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
18430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18431 $as_echo "yes" >&6; }
18432         have_fontconfig=true
18433 fi
18434 fi
18435 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
18436         as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
18437 fi
18438 if $have_fontconfig; then
18439
18440 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
18441
18442 fi
18443  if $have_fontconfig; then
18444   HAVE_FONTCONFIG_TRUE=
18445   HAVE_FONTCONFIG_FALSE='#'
18446 else
18447   HAVE_FONTCONFIG_TRUE='#'
18448   HAVE_FONTCONFIG_FALSE=
18449 fi
18450
18451
18452
18453
18454 # Check whether --with-icu was given.
18455 if test "${with_icu+set}" = set; then :
18456   withval=$with_icu;
18457 else
18458   with_icu=auto
18459 fi
18460
18461 have_icu=false
18462 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
18463
18464 pkg_failed=no
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
18466 $as_echo_n "checking for ICU... " >&6; }
18467
18468 if test -n "$PKG_CONFIG"; then
18469     if test -n "$ICU_CFLAGS"; then
18470         pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
18471     else
18472         if test -n "$PKG_CONFIG" && \
18473     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18474   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18475   ac_status=$?
18476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18477   test $ac_status = 0; }; then
18478   pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
18479 else
18480   pkg_failed=yes
18481 fi
18482     fi
18483 else
18484         pkg_failed=untried
18485 fi
18486 if test -n "$PKG_CONFIG"; then
18487     if test -n "$ICU_LIBS"; then
18488         pkg_cv_ICU_LIBS="$ICU_LIBS"
18489     else
18490         if test -n "$PKG_CONFIG" && \
18491     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
18492   ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
18493   ac_status=$?
18494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18495   test $ac_status = 0; }; then
18496   pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
18497 else
18498   pkg_failed=yes
18499 fi
18500     fi
18501 else
18502         pkg_failed=untried
18503 fi
18504
18505
18506
18507 if test $pkg_failed = yes; then
18508
18509 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18510         _pkg_short_errors_supported=yes
18511 else
18512         _pkg_short_errors_supported=no
18513 fi
18514         if test $_pkg_short_errors_supported = yes; then
18515                 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
18516         else
18517                 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
18518         fi
18519         # Put the nasty error message in config.log where it belongs
18520         echo "$ICU_PKG_ERRORS" >&5
18521
18522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523 $as_echo "no" >&6; }
18524                 :
18525 elif test $pkg_failed = untried; then
18526         :
18527 else
18528         ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
18529         ICU_LIBS=$pkg_cv_ICU_LIBS
18530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18531 $as_echo "yes" >&6; }
18532         have_icu=true
18533 fi
18534
18535                 if test "$have_icu" != "true"; then
18536                 if test -n "$ac_tool_prefix"; then
18537   # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
18538 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18540 $as_echo_n "checking for $ac_word... " >&6; }
18541 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
18542   $as_echo_n "(cached) " >&6
18543 else
18544   if test -n "$ICU_CONFIG"; then
18545   ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
18546 else
18547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18548 for as_dir in $PATH
18549 do
18550   IFS=$as_save_IFS
18551   test -z "$as_dir" && as_dir=.
18552     for ac_exec_ext in '' $ac_executable_extensions; do
18553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18554     ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
18555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18556     break 2
18557   fi
18558 done
18559   done
18560 IFS=$as_save_IFS
18561
18562 fi
18563 fi
18564 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
18565 if test -n "$ICU_CONFIG"; then
18566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
18567 $as_echo "$ICU_CONFIG" >&6; }
18568 else
18569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18570 $as_echo "no" >&6; }
18571 fi
18572
18573
18574 fi
18575 if test -z "$ac_cv_prog_ICU_CONFIG"; then
18576   ac_ct_ICU_CONFIG=$ICU_CONFIG
18577   # Extract the first word of "icu-config", so it can be a program name with args.
18578 set dummy icu-config; ac_word=$2
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18580 $as_echo_n "checking for $ac_word... " >&6; }
18581 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
18582   $as_echo_n "(cached) " >&6
18583 else
18584   if test -n "$ac_ct_ICU_CONFIG"; then
18585   ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
18586 else
18587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18588 for as_dir in $PATH
18589 do
18590   IFS=$as_save_IFS
18591   test -z "$as_dir" && as_dir=.
18592     for ac_exec_ext in '' $ac_executable_extensions; do
18593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18594     ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
18595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18596     break 2
18597   fi
18598 done
18599   done
18600 IFS=$as_save_IFS
18601
18602 fi
18603 fi
18604 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
18605 if test -n "$ac_ct_ICU_CONFIG"; then
18606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
18607 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
18608 else
18609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18610 $as_echo "no" >&6; }
18611 fi
18612
18613   if test "x$ac_ct_ICU_CONFIG" = x; then
18614     ICU_CONFIG="no"
18615   else
18616     case $cross_compiling:$ac_tool_warned in
18617 yes:)
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18620 ac_tool_warned=yes ;;
18621 esac
18622     ICU_CONFIG=$ac_ct_ICU_CONFIG
18623   fi
18624 else
18625   ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
18626 fi
18627
18628                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
18629 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
18630                 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
18631                         have_icu=true
18632                         # We don't use --cflags as this gives us a lot of things that we don't
18633                         # necessarily want, like debugging and optimization flags
18634                         # See man (1) icu-config for more info.
18635                         ICU_CFLAGS=`$ICU_CONFIG --cppflags`
18636                         ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
18637
18638
18639                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18640 $as_echo "yes" >&6; }
18641                 else
18642                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18643 $as_echo "no" >&6; }
18644                 fi
18645         fi
18646 fi
18647 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
18648         as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
18649 fi
18650
18651 if $have_icu; then
18652         CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
18653
18654 $as_echo "#define HAVE_ICU 1" >>confdefs.h
18655
18656         if test "x$with_icu" = "xbuiltin"; then
18657
18658 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
18659
18660         fi
18661 fi
18662  if $have_icu; then
18663   HAVE_ICU_TRUE=
18664   HAVE_ICU_FALSE='#'
18665 else
18666   HAVE_ICU_TRUE='#'
18667   HAVE_ICU_FALSE=
18668 fi
18669
18670  if $have_icu && test "x$with_icu" = "xbuiltin"; then
18671   HAVE_ICU_BUILTIN_TRUE=
18672   HAVE_ICU_BUILTIN_FALSE='#'
18673 else
18674   HAVE_ICU_BUILTIN_TRUE='#'
18675   HAVE_ICU_BUILTIN_FALSE=
18676 fi
18677
18678
18679
18680 have_ucdn=true
18681 if $have_glib || $have_icu && test "x$with_icu" = "xbuiltin"; then
18682         have_ucdn=false
18683 fi
18684 if $have_ucdn; then
18685
18686 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
18687
18688 fi
18689  if $have_ucdn; then
18690   HAVE_UCDN_TRUE=
18691   HAVE_UCDN_FALSE='#'
18692 else
18693   HAVE_UCDN_TRUE='#'
18694   HAVE_UCDN_FALSE=
18695 fi
18696
18697
18698
18699
18700 # Check whether --with-graphite2 was given.
18701 if test "${with_graphite2+set}" = set; then :
18702   withval=$with_graphite2;
18703 else
18704   with_graphite2=no
18705 fi
18706
18707 have_graphite2=false
18708 GRAPHITE2_DEPS="graphite2"
18709
18710 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
18711
18712 pkg_failed=no
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
18714 $as_echo_n "checking for GRAPHITE2... " >&6; }
18715
18716 if test -n "$PKG_CONFIG"; then
18717     if test -n "$GRAPHITE2_CFLAGS"; then
18718         pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
18719     else
18720         if test -n "$PKG_CONFIG" && \
18721     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
18722   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
18723   ac_status=$?
18724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18725   test $ac_status = 0; }; then
18726   pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
18727 else
18728   pkg_failed=yes
18729 fi
18730     fi
18731 else
18732         pkg_failed=untried
18733 fi
18734 if test -n "$PKG_CONFIG"; then
18735     if test -n "$GRAPHITE2_LIBS"; then
18736         pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
18737     else
18738         if test -n "$PKG_CONFIG" && \
18739     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
18740   ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
18741   ac_status=$?
18742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743   test $ac_status = 0; }; then
18744   pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
18745 else
18746   pkg_failed=yes
18747 fi
18748     fi
18749 else
18750         pkg_failed=untried
18751 fi
18752
18753
18754
18755 if test $pkg_failed = yes; then
18756
18757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18758         _pkg_short_errors_supported=yes
18759 else
18760         _pkg_short_errors_supported=no
18761 fi
18762         if test $_pkg_short_errors_supported = yes; then
18763                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
18764         else
18765                 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
18766         fi
18767         # Put the nasty error message in config.log where it belongs
18768         echo "$GRAPHITE2_PKG_ERRORS" >&5
18769
18770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18772                 :
18773 elif test $pkg_failed = untried; then
18774         :
18775 else
18776         GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
18777         GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
18778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18779 $as_echo "yes" >&6; }
18780         have_graphite2=true
18781 fi
18782 fi
18783 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
18784         as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
18785 fi
18786 if $have_graphite2; then
18787
18788 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
18789
18790 fi
18791  if $have_graphite2; then
18792   HAVE_GRAPHITE2_TRUE=
18793   HAVE_GRAPHITE2_FALSE='#'
18794 else
18795   HAVE_GRAPHITE2_TRUE='#'
18796   HAVE_GRAPHITE2_FALSE=
18797 fi
18798
18799
18800
18801
18802 # Check whether --with-freetype was given.
18803 if test "${with_freetype+set}" = set; then :
18804   withval=$with_freetype;
18805 else
18806   with_freetype=auto
18807 fi
18808
18809 have_freetype=false
18810 FREETYPE_DEPS="freetype2 >= 12.0.6"
18811
18812 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
18813         # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
18814
18815 pkg_failed=no
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18817 $as_echo_n "checking for FREETYPE... " >&6; }
18818
18819 if test -n "$PKG_CONFIG"; then
18820     if test -n "$FREETYPE_CFLAGS"; then
18821         pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18822     else
18823         if test -n "$PKG_CONFIG" && \
18824     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
18825   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
18826   ac_status=$?
18827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18828   test $ac_status = 0; }; then
18829   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
18830 else
18831   pkg_failed=yes
18832 fi
18833     fi
18834 else
18835         pkg_failed=untried
18836 fi
18837 if test -n "$PKG_CONFIG"; then
18838     if test -n "$FREETYPE_LIBS"; then
18839         pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18840     else
18841         if test -n "$PKG_CONFIG" && \
18842     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
18843   ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
18844   ac_status=$?
18845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18846   test $ac_status = 0; }; then
18847   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
18848 else
18849   pkg_failed=yes
18850 fi
18851     fi
18852 else
18853         pkg_failed=untried
18854 fi
18855
18856
18857
18858 if test $pkg_failed = yes; then
18859
18860 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18861         _pkg_short_errors_supported=yes
18862 else
18863         _pkg_short_errors_supported=no
18864 fi
18865         if test $_pkg_short_errors_supported = yes; then
18866                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
18867         else
18868                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
18869         fi
18870         # Put the nasty error message in config.log where it belongs
18871         echo "$FREETYPE_PKG_ERRORS" >&5
18872
18873         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18874 $as_echo "no" >&6; }
18875                 :
18876 elif test $pkg_failed = untried; then
18877         :
18878 else
18879         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18880         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18882 $as_echo "yes" >&6; }
18883         have_freetype=true
18884 fi
18885 fi
18886 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
18887         as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
18888 fi
18889 if $have_freetype; then
18890
18891 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
18892
18893 fi
18894  if $have_freetype; then
18895   HAVE_FREETYPE_TRUE=
18896   HAVE_FREETYPE_FALSE='#'
18897 else
18898   HAVE_FREETYPE_TRUE='#'
18899   HAVE_FREETYPE_FALSE=
18900 fi
18901
18902
18903
18904
18905 # Check whether --with-uniscribe was given.
18906 if test "${with_uniscribe+set}" = set; then :
18907   withval=$with_uniscribe;
18908 else
18909   with_uniscribe=no
18910 fi
18911
18912 have_uniscribe=false
18913 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
18914         for ac_header in usp10.h windows.h
18915 do :
18916   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18917 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18918 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18919   cat >>confdefs.h <<_ACEOF
18920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18921 _ACEOF
18922  have_uniscribe=true
18923 fi
18924
18925 done
18926
18927 fi
18928 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
18929         as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
18930 fi
18931 if $have_uniscribe; then
18932         UNISCRIBE_CFLAGS=
18933         UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
18934
18935
18936
18937 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
18938
18939 fi
18940  if $have_uniscribe; then
18941   HAVE_UNISCRIBE_TRUE=
18942   HAVE_UNISCRIBE_FALSE='#'
18943 else
18944   HAVE_UNISCRIBE_TRUE='#'
18945   HAVE_UNISCRIBE_FALSE=
18946 fi
18947
18948
18949
18950
18951 # Check whether --with-directwrite was given.
18952 if test "${with_directwrite+set}" = set; then :
18953   withval=$with_directwrite;
18954 else
18955   with_directwrite=no
18956 fi
18957
18958 have_directwrite=false
18959 ac_ext=cpp
18960 ac_cpp='$CXXCPP $CPPFLAGS'
18961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18964
18965 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
18966
18967 for ac_header in dwrite.h
18968 do :
18969   ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
18970 if test "x$ac_cv_header_dwrite_h" = xyes; then :
18971   cat >>confdefs.h <<_ACEOF
18972 #define HAVE_DWRITE_H 1
18973 _ACEOF
18974  have_directwrite=true
18975 fi
18976
18977 done
18978
18979 fi
18980 ac_ext=c
18981 ac_cpp='$CPP $CPPFLAGS'
18982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18985
18986 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
18987         as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
18988 fi
18989 if $have_directwrite; then
18990         DIRECTWRITE_CXXFLAGS=
18991         DIRECTWRITE_LIBS="-ldwrite"
18992
18993
18994
18995 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
18996
18997 fi
18998  if $have_directwrite; then
18999   HAVE_DIRECTWRITE_TRUE=
19000   HAVE_DIRECTWRITE_FALSE='#'
19001 else
19002   HAVE_DIRECTWRITE_TRUE='#'
19003   HAVE_DIRECTWRITE_FALSE=
19004 fi
19005
19006
19007
19008
19009 # Check whether --with-coretext was given.
19010 if test "${with_coretext+set}" = set; then :
19011   withval=$with_coretext;
19012 else
19013   with_coretext=no
19014 fi
19015
19016 have_coretext=false
19017 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
19018         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
19019 "
19020 if test "x$ac_cv_type_CTFontRef" = xyes; then :
19021   have_coretext=true
19022 fi
19023
19024
19025         if $have_coretext; then
19026                 CORETEXT_CFLAGS=
19027                 CORETEXT_LIBS="-framework ApplicationServices"
19028
19029
19030         else
19031                 # On iOS CoreText and CoreGraphics are stand-alone frameworks
19032                 if test "x$have_coretext" != "xtrue"; then
19033                         ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <CoreText/CoreText.h>
19034 "
19035 if test "x$ac_cv_type_CTFontRef" = xyes; then :
19036   have_coretext=true
19037 fi
19038
19039                 fi
19040
19041                 if $have_coretext; then
19042                         CORETEXT_CFLAGS=
19043                         CORETEXT_LIBS="-framework CoreText -framework CoreGraphics"
19044
19045
19046                 fi
19047         fi
19048 fi
19049 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
19050         as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
19051 fi
19052 if $have_coretext; then
19053
19054 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
19055
19056 fi
19057  if $have_coretext; then
19058   HAVE_CORETEXT_TRUE=
19059   HAVE_CORETEXT_FALSE='#'
19060 else
19061   HAVE_CORETEXT_TRUE='#'
19062   HAVE_CORETEXT_FALSE=
19063 fi
19064
19065
19066
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
19068 $as_echo_n "checking for Intel atomic primitives... " >&6; }
19069 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
19070   $as_echo_n "(cached) " >&6
19071 else
19072
19073         hb_cv_have_intel_atomic_primitives=false
19074         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h.  */
19076
19077                 void memory_barrier (void) { __sync_synchronize (); }
19078                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
19079                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
19080                 void mutex_unlock (int *m) { __sync_lock_release (m); }
19081
19082 int
19083 main ()
19084 {
19085
19086   ;
19087   return 0;
19088 }
19089 _ACEOF
19090 if ac_fn_c_try_link "$LINENO"; then :
19091   hb_cv_have_intel_atomic_primitives=true
19092
19093 fi
19094 rm -f core conftest.err conftest.$ac_objext \
19095     conftest$ac_exeext conftest.$ac_ext
19096
19097 fi
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
19099 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
19100 if $hb_cv_have_intel_atomic_primitives; then
19101
19102 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
19103
19104 fi
19105
19106
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
19108 $as_echo_n "checking for Solaris atomic operations... " >&6; }
19109 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
19110   $as_echo_n "(cached) " >&6
19111 else
19112
19113         hb_cv_have_solaris_atomic_ops=false
19114         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h.  */
19116
19117                 #include <atomic.h>
19118                 /* This requires Solaris Studio 12.2 or newer: */
19119                 #include <mbarrier.h>
19120                 void memory_barrier (void) { __machine_rw_barrier (); }
19121                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
19122                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
19123
19124 int
19125 main ()
19126 {
19127
19128   ;
19129   return 0;
19130 }
19131 _ACEOF
19132 if ac_fn_c_try_link "$LINENO"; then :
19133   hb_cv_have_solaris_atomic_ops=true
19134
19135 fi
19136 rm -f core conftest.err conftest.$ac_objext \
19137     conftest$ac_exeext conftest.$ac_ext
19138
19139 fi
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
19141 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
19142 if $hb_cv_have_solaris_atomic_ops; then
19143
19144 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
19145
19146 fi
19147
19148 if test "$os_win32" = no && ! $have_pthread; then
19149         for ac_header in sched.h
19150 do :
19151   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19152 if test "x$ac_cv_header_sched_h" = xyes; then :
19153   cat >>confdefs.h <<_ACEOF
19154 #define HAVE_SCHED_H 1
19155 _ACEOF
19156
19157 fi
19158
19159 done
19160
19161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19162 $as_echo_n "checking for library containing sched_yield... " >&6; }
19163 if ${ac_cv_search_sched_yield+:} false; then :
19164   $as_echo_n "(cached) " >&6
19165 else
19166   ac_func_search_save_LIBS=$LIBS
19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h.  */
19169
19170 /* Override any GCC internal prototype to avoid an error.
19171    Use char because int might match the return type of a GCC
19172    builtin and then its argument prototype would still apply.  */
19173 #ifdef __cplusplus
19174 extern "C"
19175 #endif
19176 char sched_yield ();
19177 int
19178 main ()
19179 {
19180 return sched_yield ();
19181   ;
19182   return 0;
19183 }
19184 _ACEOF
19185 for ac_lib in '' rt; do
19186   if test -z "$ac_lib"; then
19187     ac_res="none required"
19188   else
19189     ac_res=-l$ac_lib
19190     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19191   fi
19192   if ac_fn_c_try_link "$LINENO"; then :
19193   ac_cv_search_sched_yield=$ac_res
19194 fi
19195 rm -f core conftest.err conftest.$ac_objext \
19196     conftest$ac_exeext
19197   if ${ac_cv_search_sched_yield+:} false; then :
19198   break
19199 fi
19200 done
19201 if ${ac_cv_search_sched_yield+:} false; then :
19202
19203 else
19204   ac_cv_search_sched_yield=no
19205 fi
19206 rm conftest.$ac_ext
19207 LIBS=$ac_func_search_save_LIBS
19208 fi
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19210 $as_echo "$ac_cv_search_sched_yield" >&6; }
19211 ac_res=$ac_cv_search_sched_yield
19212 if test "$ac_res" != no; then :
19213   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19214
19215 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19216
19217 fi
19218
19219 fi
19220
19221
19222 ac_config_files="$ac_config_files Makefile src/Makefile src/hb-version.h src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile docs/Makefile docs/version.xml win32/Makefile win32/config.h.win32"
19223
19224
19225 cat >confcache <<\_ACEOF
19226 # This file is a shell script that caches the results of configure
19227 # tests run on this system so they can be shared between configure
19228 # scripts and configure runs, see configure's option --config-cache.
19229 # It is not useful on other systems.  If it contains results you don't
19230 # want to keep, you may remove or edit it.
19231 #
19232 # config.status only pays attention to the cache file if you give it
19233 # the --recheck option to rerun configure.
19234 #
19235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19237 # following values.
19238
19239 _ACEOF
19240
19241 # The following way of writing the cache mishandles newlines in values,
19242 # but we know of no workaround that is simple, portable, and efficient.
19243 # So, we kill variables containing newlines.
19244 # Ultrix sh set writes to stderr and can't be redirected directly,
19245 # and sets the high bit in the cache file unless we assign to the vars.
19246 (
19247   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19248     eval ac_val=\$$ac_var
19249     case $ac_val in #(
19250     *${as_nl}*)
19251       case $ac_var in #(
19252       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19253 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19254       esac
19255       case $ac_var in #(
19256       _ | IFS | as_nl) ;; #(
19257       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19258       *) { eval $ac_var=; unset $ac_var;} ;;
19259       esac ;;
19260     esac
19261   done
19262
19263   (set) 2>&1 |
19264     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19265     *${as_nl}ac_space=\ *)
19266       # `set' does not quote correctly, so add quotes: double-quote
19267       # substitution turns \\\\ into \\, and sed turns \\ into \.
19268       sed -n \
19269         "s/'/'\\\\''/g;
19270           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19271       ;; #(
19272     *)
19273       # `set' quotes correctly as required by POSIX, so do not add quotes.
19274       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19275       ;;
19276     esac |
19277     sort
19278 ) |
19279   sed '
19280      /^ac_cv_env_/b end
19281      t clear
19282      :clear
19283      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19284      t end
19285      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19286      :end' >>confcache
19287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19288   if test -w "$cache_file"; then
19289     if test "x$cache_file" != "x/dev/null"; then
19290       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19291 $as_echo "$as_me: updating cache $cache_file" >&6;}
19292       if test ! -f "$cache_file" || test -h "$cache_file"; then
19293         cat confcache >"$cache_file"
19294       else
19295         case $cache_file in #(
19296         */* | ?:*)
19297           mv -f confcache "$cache_file"$$ &&
19298           mv -f "$cache_file"$$ "$cache_file" ;; #(
19299         *)
19300           mv -f confcache "$cache_file" ;;
19301         esac
19302       fi
19303     fi
19304   else
19305     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19306 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19307   fi
19308 fi
19309 rm -f confcache
19310
19311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19312 # Let make expand exec_prefix.
19313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19314
19315 DEFS=-DHAVE_CONFIG_H
19316
19317 ac_libobjs=
19318 ac_ltlibobjs=
19319 U=
19320 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19321   # 1. Remove the extension, and $U if already installed.
19322   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19323   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19324   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19325   #    will be set to the directory where LIBOBJS objects are built.
19326   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19327   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19328 done
19329 LIBOBJS=$ac_libobjs
19330
19331 LTLIBOBJS=$ac_ltlibobjs
19332
19333
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19335 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19336    if test -n "$am_sleep_pid"; then
19337      # Hide warnings about reused PIDs.
19338      wait $am_sleep_pid 2>/dev/null
19339    fi
19340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19341 $as_echo "done" >&6; }
19342  if test -n "$EXEEXT"; then
19343   am__EXEEXT_TRUE=
19344   am__EXEEXT_FALSE='#'
19345 else
19346   am__EXEEXT_TRUE='#'
19347   am__EXEEXT_FALSE=
19348 fi
19349
19350 if test -z "${AUTOMAKE_OLDER_THAN_1_13_TRUE}" && test -z "${AUTOMAKE_OLDER_THAN_1_13_FALSE}"; then
19351   as_fn_error $? "conditional \"AUTOMAKE_OLDER_THAN_1_13\" was never defined.
19352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19353 fi
19354 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19355   as_fn_error $? "conditional \"AMDEP\" was never defined.
19356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19357 fi
19358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19359   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19361 fi
19362 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19363   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19365 fi
19366 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19367   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19369 fi
19370 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
19371   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
19372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19373 fi
19374 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
19375   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
19376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19377 fi
19378 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
19379   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
19380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19381 fi
19382 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
19383   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
19384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19385 fi
19386 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
19387   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
19388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19389 fi
19390 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
19391   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
19392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19393 fi
19394 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
19395   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
19396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19397 fi
19398 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
19399   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
19400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19401 fi
19402 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19403   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19405 fi
19406 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
19407   as_fn_error $? "conditional \"HAVE_OT\" was never defined.
19408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19409 fi
19410 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
19411   as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
19412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19413 fi
19414 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
19415   as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
19416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19417 fi
19418 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
19419   as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
19420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19421 fi
19422 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19423   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19425 fi
19426 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
19427   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
19428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19429 fi
19430 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
19431   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
19432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19433 fi
19434 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
19435   as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
19436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19437 fi
19438 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
19439   as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
19440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19441 fi
19442 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
19443   as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
19444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19445 fi
19446 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
19447   as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
19448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19449 fi
19450 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
19451   as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
19452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19453 fi
19454 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
19455   as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
19456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19457 fi
19458 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
19459   as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
19460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19461 fi
19462 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
19463   as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
19464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19465 fi
19466 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
19467   as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
19468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19469 fi
19470 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
19471   as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
19472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19473 fi
19474
19475 : "${CONFIG_STATUS=./config.status}"
19476 ac_write_fail=0
19477 ac_clean_files_save=$ac_clean_files
19478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19480 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19481 as_write_fail=0
19482 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19483 #! $SHELL
19484 # Generated by $as_me.
19485 # Run this file to recreate the current configuration.
19486 # Compiler output produced by configure, useful for debugging
19487 # configure, is in config.log if it exists.
19488
19489 debug=false
19490 ac_cs_recheck=false
19491 ac_cs_silent=false
19492
19493 SHELL=\${CONFIG_SHELL-$SHELL}
19494 export SHELL
19495 _ASEOF
19496 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19497 ## -------------------- ##
19498 ## M4sh Initialization. ##
19499 ## -------------------- ##
19500
19501 # Be more Bourne compatible
19502 DUALCASE=1; export DUALCASE # for MKS sh
19503 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19504   emulate sh
19505   NULLCMD=:
19506   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19507   # is contrary to our usage.  Disable this feature.
19508   alias -g '${1+"$@"}'='"$@"'
19509   setopt NO_GLOB_SUBST
19510 else
19511   case `(set -o) 2>/dev/null` in #(
19512   *posix*) :
19513     set -o posix ;; #(
19514   *) :
19515      ;;
19516 esac
19517 fi
19518
19519
19520 as_nl='
19521 '
19522 export as_nl
19523 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19524 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19527 # Prefer a ksh shell builtin over an external printf program on Solaris,
19528 # but without wasting forks for bash or zsh.
19529 if test -z "$BASH_VERSION$ZSH_VERSION" \
19530     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19531   as_echo='print -r --'
19532   as_echo_n='print -rn --'
19533 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19534   as_echo='printf %s\n'
19535   as_echo_n='printf %s'
19536 else
19537   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19538     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19539     as_echo_n='/usr/ucb/echo -n'
19540   else
19541     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19542     as_echo_n_body='eval
19543       arg=$1;
19544       case $arg in #(
19545       *"$as_nl"*)
19546         expr "X$arg" : "X\\(.*\\)$as_nl";
19547         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19548       esac;
19549       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19550     '
19551     export as_echo_n_body
19552     as_echo_n='sh -c $as_echo_n_body as_echo'
19553   fi
19554   export as_echo_body
19555   as_echo='sh -c $as_echo_body as_echo'
19556 fi
19557
19558 # The user is always right.
19559 if test "${PATH_SEPARATOR+set}" != set; then
19560   PATH_SEPARATOR=:
19561   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19562     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19563       PATH_SEPARATOR=';'
19564   }
19565 fi
19566
19567
19568 # IFS
19569 # We need space, tab and new line, in precisely that order.  Quoting is
19570 # there to prevent editors from complaining about space-tab.
19571 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19572 # splitting by setting IFS to empty value.)
19573 IFS=" ""        $as_nl"
19574
19575 # Find who we are.  Look in the path if we contain no directory separator.
19576 as_myself=
19577 case $0 in #((
19578   *[\\/]* ) as_myself=$0 ;;
19579   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19580 for as_dir in $PATH
19581 do
19582   IFS=$as_save_IFS
19583   test -z "$as_dir" && as_dir=.
19584     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19585   done
19586 IFS=$as_save_IFS
19587
19588      ;;
19589 esac
19590 # We did not find ourselves, most probably we were run as `sh COMMAND'
19591 # in which case we are not to be found in the path.
19592 if test "x$as_myself" = x; then
19593   as_myself=$0
19594 fi
19595 if test ! -f "$as_myself"; then
19596   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19597   exit 1
19598 fi
19599
19600 # Unset variables that we do not need and which cause bugs (e.g. in
19601 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19602 # suppresses any "Segmentation fault" message there.  '((' could
19603 # trigger a bug in pdksh 5.2.14.
19604 for as_var in BASH_ENV ENV MAIL MAILPATH
19605 do eval test x\${$as_var+set} = xset \
19606   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19607 done
19608 PS1='$ '
19609 PS2='> '
19610 PS4='+ '
19611
19612 # NLS nuisances.
19613 LC_ALL=C
19614 export LC_ALL
19615 LANGUAGE=C
19616 export LANGUAGE
19617
19618 # CDPATH.
19619 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19620
19621
19622 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19623 # ----------------------------------------
19624 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19625 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19626 # script with STATUS, using 1 if that was 0.
19627 as_fn_error ()
19628 {
19629   as_status=$1; test $as_status -eq 0 && as_status=1
19630   if test "$4"; then
19631     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19632     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19633   fi
19634   $as_echo "$as_me: error: $2" >&2
19635   as_fn_exit $as_status
19636 } # as_fn_error
19637
19638
19639 # as_fn_set_status STATUS
19640 # -----------------------
19641 # Set $? to STATUS, without forking.
19642 as_fn_set_status ()
19643 {
19644   return $1
19645 } # as_fn_set_status
19646
19647 # as_fn_exit STATUS
19648 # -----------------
19649 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19650 as_fn_exit ()
19651 {
19652   set +e
19653   as_fn_set_status $1
19654   exit $1
19655 } # as_fn_exit
19656
19657 # as_fn_unset VAR
19658 # ---------------
19659 # Portably unset VAR.
19660 as_fn_unset ()
19661 {
19662   { eval $1=; unset $1;}
19663 }
19664 as_unset=as_fn_unset
19665 # as_fn_append VAR VALUE
19666 # ----------------------
19667 # Append the text in VALUE to the end of the definition contained in VAR. Take
19668 # advantage of any shell optimizations that allow amortized linear growth over
19669 # repeated appends, instead of the typical quadratic growth present in naive
19670 # implementations.
19671 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19672   eval 'as_fn_append ()
19673   {
19674     eval $1+=\$2
19675   }'
19676 else
19677   as_fn_append ()
19678   {
19679     eval $1=\$$1\$2
19680   }
19681 fi # as_fn_append
19682
19683 # as_fn_arith ARG...
19684 # ------------------
19685 # Perform arithmetic evaluation on the ARGs, and store the result in the
19686 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19687 # must be portable across $(()) and expr.
19688 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19689   eval 'as_fn_arith ()
19690   {
19691     as_val=$(( $* ))
19692   }'
19693 else
19694   as_fn_arith ()
19695   {
19696     as_val=`expr "$@" || test $? -eq 1`
19697   }
19698 fi # as_fn_arith
19699
19700
19701 if expr a : '\(a\)' >/dev/null 2>&1 &&
19702    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19703   as_expr=expr
19704 else
19705   as_expr=false
19706 fi
19707
19708 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19709   as_basename=basename
19710 else
19711   as_basename=false
19712 fi
19713
19714 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19715   as_dirname=dirname
19716 else
19717   as_dirname=false
19718 fi
19719
19720 as_me=`$as_basename -- "$0" ||
19721 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19722          X"$0" : 'X\(//\)$' \| \
19723          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19724 $as_echo X/"$0" |
19725     sed '/^.*\/\([^/][^/]*\)\/*$/{
19726             s//\1/
19727             q
19728           }
19729           /^X\/\(\/\/\)$/{
19730             s//\1/
19731             q
19732           }
19733           /^X\/\(\/\).*/{
19734             s//\1/
19735             q
19736           }
19737           s/.*/./; q'`
19738
19739 # Avoid depending upon Character Ranges.
19740 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19741 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19742 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19743 as_cr_digits='0123456789'
19744 as_cr_alnum=$as_cr_Letters$as_cr_digits
19745
19746 ECHO_C= ECHO_N= ECHO_T=
19747 case `echo -n x` in #(((((
19748 -n*)
19749   case `echo 'xy\c'` in
19750   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19751   xy)  ECHO_C='\c';;
19752   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19753        ECHO_T=' ';;
19754   esac;;
19755 *)
19756   ECHO_N='-n';;
19757 esac
19758
19759 rm -f conf$$ conf$$.exe conf$$.file
19760 if test -d conf$$.dir; then
19761   rm -f conf$$.dir/conf$$.file
19762 else
19763   rm -f conf$$.dir
19764   mkdir conf$$.dir 2>/dev/null
19765 fi
19766 if (echo >conf$$.file) 2>/dev/null; then
19767   if ln -s conf$$.file conf$$ 2>/dev/null; then
19768     as_ln_s='ln -s'
19769     # ... but there are two gotchas:
19770     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19771     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19772     # In both cases, we have to default to `cp -pR'.
19773     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19774       as_ln_s='cp -pR'
19775   elif ln conf$$.file conf$$ 2>/dev/null; then
19776     as_ln_s=ln
19777   else
19778     as_ln_s='cp -pR'
19779   fi
19780 else
19781   as_ln_s='cp -pR'
19782 fi
19783 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19784 rmdir conf$$.dir 2>/dev/null
19785
19786
19787 # as_fn_mkdir_p
19788 # -------------
19789 # Create "$as_dir" as a directory, including parents if necessary.
19790 as_fn_mkdir_p ()
19791 {
19792
19793   case $as_dir in #(
19794   -*) as_dir=./$as_dir;;
19795   esac
19796   test -d "$as_dir" || eval $as_mkdir_p || {
19797     as_dirs=
19798     while :; do
19799       case $as_dir in #(
19800       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19801       *) as_qdir=$as_dir;;
19802       esac
19803       as_dirs="'$as_qdir' $as_dirs"
19804       as_dir=`$as_dirname -- "$as_dir" ||
19805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19806          X"$as_dir" : 'X\(//\)[^/]' \| \
19807          X"$as_dir" : 'X\(//\)$' \| \
19808          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19809 $as_echo X"$as_dir" |
19810     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19811             s//\1/
19812             q
19813           }
19814           /^X\(\/\/\)[^/].*/{
19815             s//\1/
19816             q
19817           }
19818           /^X\(\/\/\)$/{
19819             s//\1/
19820             q
19821           }
19822           /^X\(\/\).*/{
19823             s//\1/
19824             q
19825           }
19826           s/.*/./; q'`
19827       test -d "$as_dir" && break
19828     done
19829     test -z "$as_dirs" || eval "mkdir $as_dirs"
19830   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19831
19832
19833 } # as_fn_mkdir_p
19834 if mkdir -p . 2>/dev/null; then
19835   as_mkdir_p='mkdir -p "$as_dir"'
19836 else
19837   test -d ./-p && rmdir ./-p
19838   as_mkdir_p=false
19839 fi
19840
19841
19842 # as_fn_executable_p FILE
19843 # -----------------------
19844 # Test if FILE is an executable regular file.
19845 as_fn_executable_p ()
19846 {
19847   test -f "$1" && test -x "$1"
19848 } # as_fn_executable_p
19849 as_test_x='test -x'
19850 as_executable_p=as_fn_executable_p
19851
19852 # Sed expression to map a string onto a valid CPP name.
19853 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19854
19855 # Sed expression to map a string onto a valid variable name.
19856 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19857
19858
19859 exec 6>&1
19860 ## ----------------------------------- ##
19861 ## Main body of $CONFIG_STATUS script. ##
19862 ## ----------------------------------- ##
19863 _ASEOF
19864 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19865
19866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19867 # Save the log message, to keep $0 and so on meaningful, and to
19868 # report actual input values of CONFIG_FILES etc. instead of their
19869 # values after options handling.
19870 ac_log="
19871 This file was extended by HarfBuzz $as_me 1.3.0, which was
19872 generated by GNU Autoconf 2.69.  Invocation command line was
19873
19874   CONFIG_FILES    = $CONFIG_FILES
19875   CONFIG_HEADERS  = $CONFIG_HEADERS
19876   CONFIG_LINKS    = $CONFIG_LINKS
19877   CONFIG_COMMANDS = $CONFIG_COMMANDS
19878   $ $0 $@
19879
19880 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19881 "
19882
19883 _ACEOF
19884
19885 case $ac_config_files in *"
19886 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19887 esac
19888
19889 case $ac_config_headers in *"
19890 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19891 esac
19892
19893
19894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19895 # Files that config.status was made for.
19896 config_files="$ac_config_files"
19897 config_headers="$ac_config_headers"
19898 config_commands="$ac_config_commands"
19899
19900 _ACEOF
19901
19902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19903 ac_cs_usage="\
19904 \`$as_me' instantiates files and other configuration actions
19905 from templates according to the current configuration.  Unless the files
19906 and actions are specified as TAGs, all are instantiated by default.
19907
19908 Usage: $0 [OPTION]... [TAG]...
19909
19910   -h, --help       print this help, then exit
19911   -V, --version    print version number and configuration settings, then exit
19912       --config     print configuration, then exit
19913   -q, --quiet, --silent
19914                    do not print progress messages
19915   -d, --debug      don't remove temporary files
19916       --recheck    update $as_me by reconfiguring in the same conditions
19917       --file=FILE[:TEMPLATE]
19918                    instantiate the configuration file FILE
19919       --header=FILE[:TEMPLATE]
19920                    instantiate the configuration header FILE
19921
19922 Configuration files:
19923 $config_files
19924
19925 Configuration headers:
19926 $config_headers
19927
19928 Configuration commands:
19929 $config_commands
19930
19931 Report bugs to <https://github.com/behdad/harfbuzz/issues/new>.
19932 HarfBuzz home page: <http://harfbuzz.org/>."
19933
19934 _ACEOF
19935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19936 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19937 ac_cs_version="\\
19938 HarfBuzz config.status 1.3.0
19939 configured by $0, generated by GNU Autoconf 2.69,
19940   with options \\"\$ac_cs_config\\"
19941
19942 Copyright (C) 2012 Free Software Foundation, Inc.
19943 This config.status script is free software; the Free Software Foundation
19944 gives unlimited permission to copy, distribute and modify it."
19945
19946 ac_pwd='$ac_pwd'
19947 srcdir='$srcdir'
19948 INSTALL='$INSTALL'
19949 MKDIR_P='$MKDIR_P'
19950 AWK='$AWK'
19951 test -n "\$AWK" || AWK=awk
19952 _ACEOF
19953
19954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19955 # The default lists apply if the user does not specify any file.
19956 ac_need_defaults=:
19957 while test $# != 0
19958 do
19959   case $1 in
19960   --*=?*)
19961     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19962     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19963     ac_shift=:
19964     ;;
19965   --*=)
19966     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19967     ac_optarg=
19968     ac_shift=:
19969     ;;
19970   *)
19971     ac_option=$1
19972     ac_optarg=$2
19973     ac_shift=shift
19974     ;;
19975   esac
19976
19977   case $ac_option in
19978   # Handling of the options.
19979   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19980     ac_cs_recheck=: ;;
19981   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19982     $as_echo "$ac_cs_version"; exit ;;
19983   --config | --confi | --conf | --con | --co | --c )
19984     $as_echo "$ac_cs_config"; exit ;;
19985   --debug | --debu | --deb | --de | --d | -d )
19986     debug=: ;;
19987   --file | --fil | --fi | --f )
19988     $ac_shift
19989     case $ac_optarg in
19990     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19991     '') as_fn_error $? "missing file argument" ;;
19992     esac
19993     as_fn_append CONFIG_FILES " '$ac_optarg'"
19994     ac_need_defaults=false;;
19995   --header | --heade | --head | --hea )
19996     $ac_shift
19997     case $ac_optarg in
19998     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19999     esac
20000     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20001     ac_need_defaults=false;;
20002   --he | --h)
20003     # Conflict between --help and --header
20004     as_fn_error $? "ambiguous option: \`$1'
20005 Try \`$0 --help' for more information.";;
20006   --help | --hel | -h )
20007     $as_echo "$ac_cs_usage"; exit ;;
20008   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20009   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20010     ac_cs_silent=: ;;
20011
20012   # This is an error.
20013   -*) as_fn_error $? "unrecognized option: \`$1'
20014 Try \`$0 --help' for more information." ;;
20015
20016   *) as_fn_append ac_config_targets " $1"
20017      ac_need_defaults=false ;;
20018
20019   esac
20020   shift
20021 done
20022
20023 ac_configure_extra_args=
20024
20025 if $ac_cs_silent; then
20026   exec 6>/dev/null
20027   ac_configure_extra_args="$ac_configure_extra_args --silent"
20028 fi
20029
20030 _ACEOF
20031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20032 if \$ac_cs_recheck; then
20033   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20034   shift
20035   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20036   CONFIG_SHELL='$SHELL'
20037   export CONFIG_SHELL
20038   exec "\$@"
20039 fi
20040
20041 _ACEOF
20042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20043 exec 5>>config.log
20044 {
20045   echo
20046   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20047 ## Running $as_me. ##
20048 _ASBOX
20049   $as_echo "$ac_log"
20050 } >&5
20051
20052 _ACEOF
20053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20054 #
20055 # INIT-COMMANDS
20056 #
20057 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20058
20059
20060 # The HP-UX ksh and POSIX shell print the target directory to stdout
20061 # if CDPATH is set.
20062 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20063
20064 sed_quote_subst='$sed_quote_subst'
20065 double_quote_subst='$double_quote_subst'
20066 delay_variable_subst='$delay_variable_subst'
20067 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20068 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20069 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20070 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20071 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20072 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20073 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20074 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20075 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20076 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20077 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20078 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20079 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20080 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20081 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20082 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20083 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20084 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20085 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20086 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20087 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20088 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20089 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20090 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20091 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20092 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20093 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20094 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20095 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20096 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20097 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20098 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20099 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20100 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20101 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20102 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20103 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20104 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20105 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20106 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20107 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20108 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20109 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20110 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20111 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20112 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20113 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20114 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20115 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20116 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20117 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20118 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20119 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20120 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20121 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20122 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20123 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"`'
20124 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20125 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20126 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20127 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20128 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20129 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20130 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20131 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20132 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20133 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20134 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20135 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20136 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20137 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20138 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20139 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20140 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20141 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20142 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20143 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20144 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20145 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20146 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20147 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20148 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20149 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20150 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20151 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20152 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20153 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20154 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20155 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20156 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20157 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20158 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20159 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20160 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20161 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20162 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20163 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20164 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20165 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20166 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20167 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20168 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20169 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20170 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20171 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20172 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20173 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20174 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20175 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20176 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20177 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20178 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20179 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20180 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20181 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20182 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20183 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20184 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20185 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20186 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20187 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20188 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20189 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20190 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20191 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20192 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20193 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20194 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20195 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20196 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20197 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20198 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20199 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20200 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20201 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20202 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20203 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20204 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20205 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20206 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20207 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20208 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20209 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20210 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20211 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20212 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20213 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20214 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20215 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20216 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20217 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20218 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20219 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20220 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20221 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20222 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20223 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20224 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20225 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20226 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20227 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20228 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20229 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20230 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20231 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20232 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20233 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20234 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20235 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20236 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20237 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20238 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20239 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20240 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20241 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20242 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20243 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20244 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20245 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20246 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20247 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20248 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20249 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20250 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20251
20252 LTCC='$LTCC'
20253 LTCFLAGS='$LTCFLAGS'
20254 compiler='$compiler_DEFAULT'
20255
20256 # A function that is used when there is no print builtin or printf.
20257 func_fallback_echo ()
20258 {
20259   eval 'cat <<_LTECHO_EOF
20260 \$1
20261 _LTECHO_EOF'
20262 }
20263
20264 # Quote evaled strings.
20265 for var in SHELL \
20266 ECHO \
20267 PATH_SEPARATOR \
20268 SED \
20269 GREP \
20270 EGREP \
20271 FGREP \
20272 LD \
20273 NM \
20274 LN_S \
20275 lt_SP2NL \
20276 lt_NL2SP \
20277 reload_flag \
20278 OBJDUMP \
20279 deplibs_check_method \
20280 file_magic_cmd \
20281 file_magic_glob \
20282 want_nocaseglob \
20283 DLLTOOL \
20284 sharedlib_from_linklib_cmd \
20285 AR \
20286 AR_FLAGS \
20287 archiver_list_spec \
20288 STRIP \
20289 RANLIB \
20290 CC \
20291 CFLAGS \
20292 compiler \
20293 lt_cv_sys_global_symbol_pipe \
20294 lt_cv_sys_global_symbol_to_cdecl \
20295 lt_cv_sys_global_symbol_to_c_name_address \
20296 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20297 nm_file_list_spec \
20298 lt_prog_compiler_no_builtin_flag \
20299 lt_prog_compiler_pic \
20300 lt_prog_compiler_wl \
20301 lt_prog_compiler_static \
20302 lt_cv_prog_compiler_c_o \
20303 need_locks \
20304 MANIFEST_TOOL \
20305 DSYMUTIL \
20306 NMEDIT \
20307 LIPO \
20308 OTOOL \
20309 OTOOL64 \
20310 shrext_cmds \
20311 export_dynamic_flag_spec \
20312 whole_archive_flag_spec \
20313 compiler_needs_object \
20314 with_gnu_ld \
20315 allow_undefined_flag \
20316 no_undefined_flag \
20317 hardcode_libdir_flag_spec \
20318 hardcode_libdir_separator \
20319 exclude_expsyms \
20320 include_expsyms \
20321 file_list_spec \
20322 variables_saved_for_relink \
20323 libname_spec \
20324 library_names_spec \
20325 soname_spec \
20326 install_override_mode \
20327 finish_eval \
20328 old_striplib \
20329 striplib \
20330 compiler_lib_search_dirs \
20331 predep_objects \
20332 postdep_objects \
20333 predeps \
20334 postdeps \
20335 compiler_lib_search_path \
20336 LD_CXX \
20337 reload_flag_CXX \
20338 compiler_CXX \
20339 lt_prog_compiler_no_builtin_flag_CXX \
20340 lt_prog_compiler_pic_CXX \
20341 lt_prog_compiler_wl_CXX \
20342 lt_prog_compiler_static_CXX \
20343 lt_cv_prog_compiler_c_o_CXX \
20344 export_dynamic_flag_spec_CXX \
20345 whole_archive_flag_spec_CXX \
20346 compiler_needs_object_CXX \
20347 with_gnu_ld_CXX \
20348 allow_undefined_flag_CXX \
20349 no_undefined_flag_CXX \
20350 hardcode_libdir_flag_spec_CXX \
20351 hardcode_libdir_separator_CXX \
20352 exclude_expsyms_CXX \
20353 include_expsyms_CXX \
20354 file_list_spec_CXX \
20355 compiler_lib_search_dirs_CXX \
20356 predep_objects_CXX \
20357 postdep_objects_CXX \
20358 predeps_CXX \
20359 postdeps_CXX \
20360 compiler_lib_search_path_CXX; do
20361     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20362     *[\\\\\\\`\\"\\\$]*)
20363       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20364       ;;
20365     *)
20366       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20367       ;;
20368     esac
20369 done
20370
20371 # Double-quote double-evaled strings.
20372 for var in reload_cmds \
20373 old_postinstall_cmds \
20374 old_postuninstall_cmds \
20375 old_archive_cmds \
20376 extract_expsyms_cmds \
20377 old_archive_from_new_cmds \
20378 old_archive_from_expsyms_cmds \
20379 archive_cmds \
20380 archive_expsym_cmds \
20381 module_cmds \
20382 module_expsym_cmds \
20383 export_symbols_cmds \
20384 prelink_cmds \
20385 postlink_cmds \
20386 postinstall_cmds \
20387 postuninstall_cmds \
20388 finish_cmds \
20389 sys_lib_search_path_spec \
20390 sys_lib_dlsearch_path_spec \
20391 reload_cmds_CXX \
20392 old_archive_cmds_CXX \
20393 old_archive_from_new_cmds_CXX \
20394 old_archive_from_expsyms_cmds_CXX \
20395 archive_cmds_CXX \
20396 archive_expsym_cmds_CXX \
20397 module_cmds_CXX \
20398 module_expsym_cmds_CXX \
20399 export_symbols_cmds_CXX \
20400 prelink_cmds_CXX \
20401 postlink_cmds_CXX; do
20402     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20403     *[\\\\\\\`\\"\\\$]*)
20404       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20405       ;;
20406     *)
20407       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20408       ;;
20409     esac
20410 done
20411
20412 ac_aux_dir='$ac_aux_dir'
20413 xsi_shell='$xsi_shell'
20414 lt_shell_append='$lt_shell_append'
20415
20416 # See if we are running on zsh, and set the options which allow our
20417 # commands through without removal of \ escapes INIT.
20418 if test -n "\${ZSH_VERSION+set}" ; then
20419    setopt NO_GLOB_SUBST
20420 fi
20421
20422
20423     PACKAGE='$PACKAGE'
20424     VERSION='$VERSION'
20425     TIMESTAMP='$TIMESTAMP'
20426     RM='$RM'
20427     ofile='$ofile'
20428
20429
20430
20431
20432
20433
20434 _ACEOF
20435
20436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20437
20438 # Handling of arguments.
20439 for ac_config_target in $ac_config_targets
20440 do
20441   case $ac_config_target in
20442     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20443     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20444     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20445     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20446     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20447     "src/hb-version.h") CONFIG_FILES="$CONFIG_FILES src/hb-version.h" ;;
20448     "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
20449     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20450     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20451     "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
20452     "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
20453     "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
20454     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20455     "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
20456     "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
20457     "win32/config.h.win32") CONFIG_FILES="$CONFIG_FILES win32/config.h.win32" ;;
20458
20459   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20460   esac
20461 done
20462
20463
20464 # If the user did not use the arguments to specify the items to instantiate,
20465 # then the envvar interface is used.  Set only those that are not.
20466 # We use the long form for the default assignment because of an extremely
20467 # bizarre bug on SunOS 4.1.3.
20468 if $ac_need_defaults; then
20469   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20470   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20471   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20472 fi
20473
20474 # Have a temporary directory for convenience.  Make it in the build tree
20475 # simply because there is no reason against having it here, and in addition,
20476 # creating and moving files from /tmp can sometimes cause problems.
20477 # Hook for its removal unless debugging.
20478 # Note that there is a small window in which the directory will not be cleaned:
20479 # after its creation but before its name has been assigned to `$tmp'.
20480 $debug ||
20481 {
20482   tmp= ac_tmp=
20483   trap 'exit_status=$?
20484   : "${ac_tmp:=$tmp}"
20485   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20486 ' 0
20487   trap 'as_fn_exit 1' 1 2 13 15
20488 }
20489 # Create a (secure) tmp directory for tmp files.
20490
20491 {
20492   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20493   test -d "$tmp"
20494 }  ||
20495 {
20496   tmp=./conf$$-$RANDOM
20497   (umask 077 && mkdir "$tmp")
20498 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20499 ac_tmp=$tmp
20500
20501 # Set up the scripts for CONFIG_FILES section.
20502 # No need to generate them if there are no CONFIG_FILES.
20503 # This happens for instance with `./config.status config.h'.
20504 if test -n "$CONFIG_FILES"; then
20505
20506
20507 ac_cr=`echo X | tr X '\015'`
20508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20509 # But we know of no other shell where ac_cr would be empty at this
20510 # point, so we can use a bashism as a fallback.
20511 if test "x$ac_cr" = x; then
20512   eval ac_cr=\$\'\\r\'
20513 fi
20514 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20516   ac_cs_awk_cr='\\r'
20517 else
20518   ac_cs_awk_cr=$ac_cr
20519 fi
20520
20521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20522 _ACEOF
20523
20524
20525 {
20526   echo "cat >conf$$subs.awk <<_ACEOF" &&
20527   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20528   echo "_ACEOF"
20529 } >conf$$subs.sh ||
20530   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20532 ac_delim='%!_!# '
20533 for ac_last_try in false false false false false :; do
20534   . ./conf$$subs.sh ||
20535     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20536
20537   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20538   if test $ac_delim_n = $ac_delim_num; then
20539     break
20540   elif $ac_last_try; then
20541     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20542   else
20543     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20544   fi
20545 done
20546 rm -f conf$$subs.sh
20547
20548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20550 _ACEOF
20551 sed -n '
20552 h
20553 s/^/S["/; s/!.*/"]=/
20554 p
20555 g
20556 s/^[^!]*!//
20557 :repl
20558 t repl
20559 s/'"$ac_delim"'$//
20560 t delim
20561 :nl
20562 h
20563 s/\(.\{148\}\)..*/\1/
20564 t more1
20565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20566 p
20567 n
20568 b repl
20569 :more1
20570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20571 p
20572 g
20573 s/.\{148\}//
20574 t nl
20575 :delim
20576 h
20577 s/\(.\{148\}\)..*/\1/
20578 t more2
20579 s/["\\]/\\&/g; s/^/"/; s/$/"/
20580 p
20581 b
20582 :more2
20583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20584 p
20585 g
20586 s/.\{148\}//
20587 t delim
20588 ' <conf$$subs.awk | sed '
20589 /^[^""]/{
20590   N
20591   s/\n//
20592 }
20593 ' >>$CONFIG_STATUS || ac_write_fail=1
20594 rm -f conf$$subs.awk
20595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20596 _ACAWK
20597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20598   for (key in S) S_is_set[key] = 1
20599   FS = "\a"
20600
20601 }
20602 {
20603   line = $ 0
20604   nfields = split(line, field, "@")
20605   substed = 0
20606   len = length(field[1])
20607   for (i = 2; i < nfields; i++) {
20608     key = field[i]
20609     keylen = length(key)
20610     if (S_is_set[key]) {
20611       value = S[key]
20612       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20613       len += length(value) + length(field[++i])
20614       substed = 1
20615     } else
20616       len += 1 + keylen
20617   }
20618
20619   print line
20620 }
20621
20622 _ACAWK
20623 _ACEOF
20624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20625 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20626   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20627 else
20628   cat
20629 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20630   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20631 _ACEOF
20632
20633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20635 # trailing colons and then remove the whole line if VPATH becomes empty
20636 # (actually we leave an empty line to preserve line numbers).
20637 if test "x$srcdir" = x.; then
20638   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20639 h
20640 s///
20641 s/^/:/
20642 s/[      ]*$/:/
20643 s/:\$(srcdir):/:/g
20644 s/:\${srcdir}:/:/g
20645 s/:@srcdir@:/:/g
20646 s/^:*//
20647 s/:*$//
20648 x
20649 s/\(=[   ]*\).*/\1/
20650 G
20651 s/\n//
20652 s/^[^=]*=[       ]*$//
20653 }'
20654 fi
20655
20656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20657 fi # test -n "$CONFIG_FILES"
20658
20659 # Set up the scripts for CONFIG_HEADERS section.
20660 # No need to generate them if there are no CONFIG_HEADERS.
20661 # This happens for instance with `./config.status Makefile'.
20662 if test -n "$CONFIG_HEADERS"; then
20663 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20664 BEGIN {
20665 _ACEOF
20666
20667 # Transform confdefs.h into an awk script `defines.awk', embedded as
20668 # here-document in config.status, that substitutes the proper values into
20669 # config.h.in to produce config.h.
20670
20671 # Create a delimiter string that does not exist in confdefs.h, to ease
20672 # handling of long lines.
20673 ac_delim='%!_!# '
20674 for ac_last_try in false false :; do
20675   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20676   if test -z "$ac_tt"; then
20677     break
20678   elif $ac_last_try; then
20679     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20680   else
20681     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20682   fi
20683 done
20684
20685 # For the awk script, D is an array of macro values keyed by name,
20686 # likewise P contains macro parameters if any.  Preserve backslash
20687 # newline sequences.
20688
20689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20690 sed -n '
20691 s/.\{148\}/&'"$ac_delim"'/g
20692 t rset
20693 :rset
20694 s/^[     ]*#[    ]*define[       ][      ]*/ /
20695 t def
20696 d
20697 :def
20698 s/\\$//
20699 t bsnl
20700 s/["\\]/\\&/g
20701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20702 D["\1"]=" \3"/p
20703 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20704 d
20705 :bsnl
20706 s/["\\]/\\&/g
20707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20708 D["\1"]=" \3\\\\\\n"\\/p
20709 t cont
20710 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20711 t cont
20712 d
20713 :cont
20714 n
20715 s/.\{148\}/&'"$ac_delim"'/g
20716 t clear
20717 :clear
20718 s/\\$//
20719 t bsnlc
20720 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20721 d
20722 :bsnlc
20723 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20724 b cont
20725 ' <confdefs.h | sed '
20726 s/'"$ac_delim"'/"\\\
20727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20728
20729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20730   for (key in D) D_is_set[key] = 1
20731   FS = "\a"
20732 }
20733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20734   line = \$ 0
20735   split(line, arg, " ")
20736   if (arg[1] == "#") {
20737     defundef = arg[2]
20738     mac1 = arg[3]
20739   } else {
20740     defundef = substr(arg[1], 2)
20741     mac1 = arg[2]
20742   }
20743   split(mac1, mac2, "(") #)
20744   macro = mac2[1]
20745   prefix = substr(line, 1, index(line, defundef) - 1)
20746   if (D_is_set[macro]) {
20747     # Preserve the white space surrounding the "#".
20748     print prefix "define", macro P[macro] D[macro]
20749     next
20750   } else {
20751     # Replace #undef with comments.  This is necessary, for example,
20752     # in the case of _POSIX_SOURCE, which is predefined and required
20753     # on some systems where configure will not decide to define it.
20754     if (defundef == "undef") {
20755       print "/*", prefix defundef, macro, "*/"
20756       next
20757     }
20758   }
20759 }
20760 { print }
20761 _ACAWK
20762 _ACEOF
20763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20764   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20765 fi # test -n "$CONFIG_HEADERS"
20766
20767
20768 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20769 shift
20770 for ac_tag
20771 do
20772   case $ac_tag in
20773   :[FHLC]) ac_mode=$ac_tag; continue;;
20774   esac
20775   case $ac_mode$ac_tag in
20776   :[FHL]*:*);;
20777   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20778   :[FH]-) ac_tag=-:-;;
20779   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20780   esac
20781   ac_save_IFS=$IFS
20782   IFS=:
20783   set x $ac_tag
20784   IFS=$ac_save_IFS
20785   shift
20786   ac_file=$1
20787   shift
20788
20789   case $ac_mode in
20790   :L) ac_source=$1;;
20791   :[FH])
20792     ac_file_inputs=
20793     for ac_f
20794     do
20795       case $ac_f in
20796       -) ac_f="$ac_tmp/stdin";;
20797       *) # Look for the file first in the build tree, then in the source tree
20798          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20799          # because $ac_f cannot contain `:'.
20800          test -f "$ac_f" ||
20801            case $ac_f in
20802            [\\/$]*) false;;
20803            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20804            esac ||
20805            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20806       esac
20807       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20808       as_fn_append ac_file_inputs " '$ac_f'"
20809     done
20810
20811     # Let's still pretend it is `configure' which instantiates (i.e., don't
20812     # use $as_me), people would be surprised to read:
20813     #    /* config.h.  Generated by config.status.  */
20814     configure_input='Generated from '`
20815           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20816         `' by configure.'
20817     if test x"$ac_file" != x-; then
20818       configure_input="$ac_file.  $configure_input"
20819       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20820 $as_echo "$as_me: creating $ac_file" >&6;}
20821     fi
20822     # Neutralize special characters interpreted by sed in replacement strings.
20823     case $configure_input in #(
20824     *\&* | *\|* | *\\* )
20825        ac_sed_conf_input=`$as_echo "$configure_input" |
20826        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20827     *) ac_sed_conf_input=$configure_input;;
20828     esac
20829
20830     case $ac_tag in
20831     *:-:* | *:-) cat >"$ac_tmp/stdin" \
20832       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20833     esac
20834     ;;
20835   esac
20836
20837   ac_dir=`$as_dirname -- "$ac_file" ||
20838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20839          X"$ac_file" : 'X\(//\)[^/]' \| \
20840          X"$ac_file" : 'X\(//\)$' \| \
20841          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20842 $as_echo X"$ac_file" |
20843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20844             s//\1/
20845             q
20846           }
20847           /^X\(\/\/\)[^/].*/{
20848             s//\1/
20849             q
20850           }
20851           /^X\(\/\/\)$/{
20852             s//\1/
20853             q
20854           }
20855           /^X\(\/\).*/{
20856             s//\1/
20857             q
20858           }
20859           s/.*/./; q'`
20860   as_dir="$ac_dir"; as_fn_mkdir_p
20861   ac_builddir=.
20862
20863 case "$ac_dir" in
20864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20865 *)
20866   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20867   # A ".." for each directory in $ac_dir_suffix.
20868   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20869   case $ac_top_builddir_sub in
20870   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20871   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20872   esac ;;
20873 esac
20874 ac_abs_top_builddir=$ac_pwd
20875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20876 # for backward compatibility:
20877 ac_top_builddir=$ac_top_build_prefix
20878
20879 case $srcdir in
20880   .)  # We are building in place.
20881     ac_srcdir=.
20882     ac_top_srcdir=$ac_top_builddir_sub
20883     ac_abs_top_srcdir=$ac_pwd ;;
20884   [\\/]* | ?:[\\/]* )  # Absolute name.
20885     ac_srcdir=$srcdir$ac_dir_suffix;
20886     ac_top_srcdir=$srcdir
20887     ac_abs_top_srcdir=$srcdir ;;
20888   *) # Relative name.
20889     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20890     ac_top_srcdir=$ac_top_build_prefix$srcdir
20891     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20892 esac
20893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20894
20895
20896   case $ac_mode in
20897   :F)
20898   #
20899   # CONFIG_FILE
20900   #
20901
20902   case $INSTALL in
20903   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20904   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20905   esac
20906   ac_MKDIR_P=$MKDIR_P
20907   case $MKDIR_P in
20908   [\\/$]* | ?:[\\/]* ) ;;
20909   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20910   esac
20911 _ACEOF
20912
20913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20914 # If the template does not know about datarootdir, expand it.
20915 # FIXME: This hack should be removed a few years after 2.60.
20916 ac_datarootdir_hack=; ac_datarootdir_seen=
20917 ac_sed_dataroot='
20918 /datarootdir/ {
20919   p
20920   q
20921 }
20922 /@datadir@/p
20923 /@docdir@/p
20924 /@infodir@/p
20925 /@localedir@/p
20926 /@mandir@/p'
20927 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20928 *datarootdir*) ac_datarootdir_seen=yes;;
20929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20930   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20931 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20932 _ACEOF
20933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20934   ac_datarootdir_hack='
20935   s&@datadir@&$datadir&g
20936   s&@docdir@&$docdir&g
20937   s&@infodir@&$infodir&g
20938   s&@localedir@&$localedir&g
20939   s&@mandir@&$mandir&g
20940   s&\\\${datarootdir}&$datarootdir&g' ;;
20941 esac
20942 _ACEOF
20943
20944 # Neutralize VPATH when `$srcdir' = `.'.
20945 # Shell code in configure.ac might set extrasub.
20946 # FIXME: do we really want to maintain this feature?
20947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20948 ac_sed_extra="$ac_vpsub
20949 $extrasub
20950 _ACEOF
20951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20952 :t
20953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20954 s|@configure_input@|$ac_sed_conf_input|;t t
20955 s&@top_builddir@&$ac_top_builddir_sub&;t t
20956 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20957 s&@srcdir@&$ac_srcdir&;t t
20958 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20959 s&@top_srcdir@&$ac_top_srcdir&;t t
20960 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20961 s&@builddir@&$ac_builddir&;t t
20962 s&@abs_builddir@&$ac_abs_builddir&;t t
20963 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20964 s&@INSTALL@&$ac_INSTALL&;t t
20965 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20966 $ac_datarootdir_hack
20967 "
20968 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20969   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20970
20971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20972   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20973   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
20974       "$ac_tmp/out"`; test -z "$ac_out"; } &&
20975   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20976 which seems to be undefined.  Please make sure it is defined" >&5
20977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20978 which seems to be undefined.  Please make sure it is defined" >&2;}
20979
20980   rm -f "$ac_tmp/stdin"
20981   case $ac_file in
20982   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20983   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20984   esac \
20985   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20986  ;;
20987   :H)
20988   #
20989   # CONFIG_HEADER
20990   #
20991   if test x"$ac_file" != x-; then
20992     {
20993       $as_echo "/* $configure_input  */" \
20994       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20995     } >"$ac_tmp/config.h" \
20996       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20997     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20998       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20999 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21000     else
21001       rm -f "$ac_file"
21002       mv "$ac_tmp/config.h" "$ac_file" \
21003         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21004     fi
21005   else
21006     $as_echo "/* $configure_input  */" \
21007       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21008       || as_fn_error $? "could not create -" "$LINENO" 5
21009   fi
21010 # Compute "$ac_file"'s index in $config_headers.
21011 _am_arg="$ac_file"
21012 _am_stamp_count=1
21013 for _am_header in $config_headers :; do
21014   case $_am_header in
21015     $_am_arg | $_am_arg:* )
21016       break ;;
21017     * )
21018       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21019   esac
21020 done
21021 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21022 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21023          X"$_am_arg" : 'X\(//\)[^/]' \| \
21024          X"$_am_arg" : 'X\(//\)$' \| \
21025          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21026 $as_echo X"$_am_arg" |
21027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21028             s//\1/
21029             q
21030           }
21031           /^X\(\/\/\)[^/].*/{
21032             s//\1/
21033             q
21034           }
21035           /^X\(\/\/\)$/{
21036             s//\1/
21037             q
21038           }
21039           /^X\(\/\).*/{
21040             s//\1/
21041             q
21042           }
21043           s/.*/./; q'`/stamp-h$_am_stamp_count
21044  ;;
21045
21046   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21047 $as_echo "$as_me: executing $ac_file commands" >&6;}
21048  ;;
21049   esac
21050
21051
21052   case $ac_file$ac_mode in
21053     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21054   # Older Autoconf quotes --file arguments for eval, but not when files
21055   # are listed without --file.  Let's play safe and only enable the eval
21056   # if we detect the quoting.
21057   case $CONFIG_FILES in
21058   *\'*) eval set x "$CONFIG_FILES" ;;
21059   *)   set x $CONFIG_FILES ;;
21060   esac
21061   shift
21062   for mf
21063   do
21064     # Strip MF so we end up with the name of the file.
21065     mf=`echo "$mf" | sed -e 's/:.*$//'`
21066     # Check whether this is an Automake generated Makefile or not.
21067     # We used to match only the files named 'Makefile.in', but
21068     # some people rename them; so instead we look at the file content.
21069     # Grep'ing the first line is not enough: some people post-process
21070     # each Makefile.in and add a new line on top of each file to say so.
21071     # Grep'ing the whole file is not good either: AIX grep has a line
21072     # limit of 2048, but all sed's we know have understand at least 4000.
21073     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21074       dirpart=`$as_dirname -- "$mf" ||
21075 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21076          X"$mf" : 'X\(//\)[^/]' \| \
21077          X"$mf" : 'X\(//\)$' \| \
21078          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21079 $as_echo X"$mf" |
21080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21081             s//\1/
21082             q
21083           }
21084           /^X\(\/\/\)[^/].*/{
21085             s//\1/
21086             q
21087           }
21088           /^X\(\/\/\)$/{
21089             s//\1/
21090             q
21091           }
21092           /^X\(\/\).*/{
21093             s//\1/
21094             q
21095           }
21096           s/.*/./; q'`
21097     else
21098       continue
21099     fi
21100     # Extract the definition of DEPDIR, am__include, and am__quote
21101     # from the Makefile without running 'make'.
21102     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21103     test -z "$DEPDIR" && continue
21104     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21105     test -z "$am__include" && continue
21106     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21107     # Find all dependency output files, they are included files with
21108     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21109     # simplest approach to changing $(DEPDIR) to its actual value in the
21110     # expansion.
21111     for file in `sed -n "
21112       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21113          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21114       # Make sure the directory exists.
21115       test -f "$dirpart/$file" && continue
21116       fdir=`$as_dirname -- "$file" ||
21117 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21118          X"$file" : 'X\(//\)[^/]' \| \
21119          X"$file" : 'X\(//\)$' \| \
21120          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21121 $as_echo X"$file" |
21122     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21123             s//\1/
21124             q
21125           }
21126           /^X\(\/\/\)[^/].*/{
21127             s//\1/
21128             q
21129           }
21130           /^X\(\/\/\)$/{
21131             s//\1/
21132             q
21133           }
21134           /^X\(\/\).*/{
21135             s//\1/
21136             q
21137           }
21138           s/.*/./; q'`
21139       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21140       # echo "creating $dirpart/$file"
21141       echo '# dummy' > "$dirpart/$file"
21142     done
21143   done
21144 }
21145  ;;
21146     "libtool":C)
21147
21148     # See if we are running on zsh, and set the options which allow our
21149     # commands through without removal of \ escapes.
21150     if test -n "${ZSH_VERSION+set}" ; then
21151       setopt NO_GLOB_SUBST
21152     fi
21153
21154     cfgfile="${ofile}T"
21155     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21156     $RM "$cfgfile"
21157
21158     cat <<_LT_EOF >> "$cfgfile"
21159 #! $SHELL
21160
21161 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21162 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21164 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21165 #
21166 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21167 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21168 #                 Foundation, Inc.
21169 #   Written by Gordon Matzigkeit, 1996
21170 #
21171 #   This file is part of GNU Libtool.
21172 #
21173 # GNU Libtool is free software; you can redistribute it and/or
21174 # modify it under the terms of the GNU General Public License as
21175 # published by the Free Software Foundation; either version 2 of
21176 # the License, or (at your option) any later version.
21177 #
21178 # As a special exception to the GNU General Public License,
21179 # if you distribute this file as part of a program or library that
21180 # is built using GNU Libtool, you may include this file under the
21181 # same distribution terms that you use for the rest of that program.
21182 #
21183 # GNU Libtool is distributed in the hope that it will be useful,
21184 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21185 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21186 # GNU General Public License for more details.
21187 #
21188 # You should have received a copy of the GNU General Public License
21189 # along with GNU Libtool; see the file COPYING.  If not, a copy
21190 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21191 # obtained by writing to the Free Software Foundation, Inc.,
21192 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21193
21194
21195 # The names of the tagged configurations supported by this script.
21196 available_tags="CXX "
21197
21198 # ### BEGIN LIBTOOL CONFIG
21199
21200 # Which release of libtool.m4 was used?
21201 macro_version=$macro_version
21202 macro_revision=$macro_revision
21203
21204 # Whether or not to build static libraries.
21205 build_old_libs=$enable_static
21206
21207 # Whether or not to build shared libraries.
21208 build_libtool_libs=$enable_shared
21209
21210 # What type of objects to build.
21211 pic_mode=$pic_mode
21212
21213 # Whether or not to optimize for fast installation.
21214 fast_install=$enable_fast_install
21215
21216 # Shell to use when invoking shell scripts.
21217 SHELL=$lt_SHELL
21218
21219 # An echo program that protects backslashes.
21220 ECHO=$lt_ECHO
21221
21222 # The PATH separator for the build system.
21223 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21224
21225 # The host system.
21226 host_alias=$host_alias
21227 host=$host
21228 host_os=$host_os
21229
21230 # The build system.
21231 build_alias=$build_alias
21232 build=$build
21233 build_os=$build_os
21234
21235 # A sed program that does not truncate output.
21236 SED=$lt_SED
21237
21238 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21239 Xsed="\$SED -e 1s/^X//"
21240
21241 # A grep program that handles long lines.
21242 GREP=$lt_GREP
21243
21244 # An ERE matcher.
21245 EGREP=$lt_EGREP
21246
21247 # A literal string matcher.
21248 FGREP=$lt_FGREP
21249
21250 # A BSD- or MS-compatible name lister.
21251 NM=$lt_NM
21252
21253 # Whether we need soft or hard links.
21254 LN_S=$lt_LN_S
21255
21256 # What is the maximum length of a command?
21257 max_cmd_len=$max_cmd_len
21258
21259 # Object file suffix (normally "o").
21260 objext=$ac_objext
21261
21262 # Executable file suffix (normally "").
21263 exeext=$exeext
21264
21265 # whether the shell understands "unset".
21266 lt_unset=$lt_unset
21267
21268 # turn spaces into newlines.
21269 SP2NL=$lt_lt_SP2NL
21270
21271 # turn newlines into spaces.
21272 NL2SP=$lt_lt_NL2SP
21273
21274 # convert \$build file names to \$host format.
21275 to_host_file_cmd=$lt_cv_to_host_file_cmd
21276
21277 # convert \$build files to toolchain format.
21278 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21279
21280 # An object symbol dumper.
21281 OBJDUMP=$lt_OBJDUMP
21282
21283 # Method to check whether dependent libraries are shared objects.
21284 deplibs_check_method=$lt_deplibs_check_method
21285
21286 # Command to use when deplibs_check_method = "file_magic".
21287 file_magic_cmd=$lt_file_magic_cmd
21288
21289 # How to find potential files when deplibs_check_method = "file_magic".
21290 file_magic_glob=$lt_file_magic_glob
21291
21292 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21293 want_nocaseglob=$lt_want_nocaseglob
21294
21295 # DLL creation program.
21296 DLLTOOL=$lt_DLLTOOL
21297
21298 # Command to associate shared and link libraries.
21299 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21300
21301 # The archiver.
21302 AR=$lt_AR
21303
21304 # Flags to create an archive.
21305 AR_FLAGS=$lt_AR_FLAGS
21306
21307 # How to feed a file listing to the archiver.
21308 archiver_list_spec=$lt_archiver_list_spec
21309
21310 # A symbol stripping program.
21311 STRIP=$lt_STRIP
21312
21313 # Commands used to install an old-style archive.
21314 RANLIB=$lt_RANLIB
21315 old_postinstall_cmds=$lt_old_postinstall_cmds
21316 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21317
21318 # Whether to use a lock for old archive extraction.
21319 lock_old_archive_extraction=$lock_old_archive_extraction
21320
21321 # A C compiler.
21322 LTCC=$lt_CC
21323
21324 # LTCC compiler flags.
21325 LTCFLAGS=$lt_CFLAGS
21326
21327 # Take the output of nm and produce a listing of raw symbols and C names.
21328 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21329
21330 # Transform the output of nm in a proper C declaration.
21331 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21332
21333 # Transform the output of nm in a C name address pair.
21334 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21335
21336 # Transform the output of nm in a C name address pair when lib prefix is needed.
21337 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21338
21339 # Specify filename containing input files for \$NM.
21340 nm_file_list_spec=$lt_nm_file_list_spec
21341
21342 # The root where to search for dependent libraries,and in which our libraries should be installed.
21343 lt_sysroot=$lt_sysroot
21344
21345 # The name of the directory that contains temporary libtool files.
21346 objdir=$objdir
21347
21348 # Used to examine libraries when file_magic_cmd begins with "file".
21349 MAGIC_CMD=$MAGIC_CMD
21350
21351 # Must we lock files when doing compilation?
21352 need_locks=$lt_need_locks
21353
21354 # Manifest tool.
21355 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21356
21357 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21358 DSYMUTIL=$lt_DSYMUTIL
21359
21360 # Tool to change global to local symbols on Mac OS X.
21361 NMEDIT=$lt_NMEDIT
21362
21363 # Tool to manipulate fat objects and archives on Mac OS X.
21364 LIPO=$lt_LIPO
21365
21366 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21367 OTOOL=$lt_OTOOL
21368
21369 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21370 OTOOL64=$lt_OTOOL64
21371
21372 # Old archive suffix (normally "a").
21373 libext=$libext
21374
21375 # Shared library suffix (normally ".so").
21376 shrext_cmds=$lt_shrext_cmds
21377
21378 # The commands to extract the exported symbol list from a shared archive.
21379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21380
21381 # Variables whose values should be saved in libtool wrapper scripts and
21382 # restored at link time.
21383 variables_saved_for_relink=$lt_variables_saved_for_relink
21384
21385 # Do we need the "lib" prefix for modules?
21386 need_lib_prefix=$need_lib_prefix
21387
21388 # Do we need a version for libraries?
21389 need_version=$need_version
21390
21391 # Library versioning type.
21392 version_type=$version_type
21393
21394 # Shared library runtime path variable.
21395 runpath_var=$runpath_var
21396
21397 # Shared library path variable.
21398 shlibpath_var=$shlibpath_var
21399
21400 # Is shlibpath searched before the hard-coded library search path?
21401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21402
21403 # Format of library name prefix.
21404 libname_spec=$lt_libname_spec
21405
21406 # List of archive names.  First name is the real one, the rest are links.
21407 # The last name is the one that the linker finds with -lNAME
21408 library_names_spec=$lt_library_names_spec
21409
21410 # The coded name of the library, if different from the real name.
21411 soname_spec=$lt_soname_spec
21412
21413 # Permission mode override for installation of shared libraries.
21414 install_override_mode=$lt_install_override_mode
21415
21416 # Command to use after installation of a shared archive.
21417 postinstall_cmds=$lt_postinstall_cmds
21418
21419 # Command to use after uninstallation of a shared archive.
21420 postuninstall_cmds=$lt_postuninstall_cmds
21421
21422 # Commands used to finish a libtool library installation in a directory.
21423 finish_cmds=$lt_finish_cmds
21424
21425 # As "finish_cmds", except a single script fragment to be evaled but
21426 # not shown.
21427 finish_eval=$lt_finish_eval
21428
21429 # Whether we should hardcode library paths into libraries.
21430 hardcode_into_libs=$hardcode_into_libs
21431
21432 # Compile-time system search path for libraries.
21433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21434
21435 # Run-time system search path for libraries.
21436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21437
21438 # Whether dlopen is supported.
21439 dlopen_support=$enable_dlopen
21440
21441 # Whether dlopen of programs is supported.
21442 dlopen_self=$enable_dlopen_self
21443
21444 # Whether dlopen of statically linked programs is supported.
21445 dlopen_self_static=$enable_dlopen_self_static
21446
21447 # Commands to strip libraries.
21448 old_striplib=$lt_old_striplib
21449 striplib=$lt_striplib
21450
21451
21452 # The linker used to build libraries.
21453 LD=$lt_LD
21454
21455 # How to create reloadable object files.
21456 reload_flag=$lt_reload_flag
21457 reload_cmds=$lt_reload_cmds
21458
21459 # Commands used to build an old-style archive.
21460 old_archive_cmds=$lt_old_archive_cmds
21461
21462 # A language specific compiler.
21463 CC=$lt_compiler
21464
21465 # Is the compiler the GNU compiler?
21466 with_gcc=$GCC
21467
21468 # Compiler flag to turn off builtin functions.
21469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21470
21471 # Additional compiler flags for building library objects.
21472 pic_flag=$lt_lt_prog_compiler_pic
21473
21474 # How to pass a linker flag through the compiler.
21475 wl=$lt_lt_prog_compiler_wl
21476
21477 # Compiler flag to prevent dynamic linking.
21478 link_static_flag=$lt_lt_prog_compiler_static
21479
21480 # Does compiler simultaneously support -c and -o options?
21481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21482
21483 # Whether or not to add -lc for building shared libraries.
21484 build_libtool_need_lc=$archive_cmds_need_lc
21485
21486 # Whether or not to disallow shared libs when runtime libs are static.
21487 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21488
21489 # Compiler flag to allow reflexive dlopens.
21490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21491
21492 # Compiler flag to generate shared objects directly from archives.
21493 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21494
21495 # Whether the compiler copes with passing no objects directly.
21496 compiler_needs_object=$lt_compiler_needs_object
21497
21498 # Create an old-style archive from a shared archive.
21499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21500
21501 # Create a temporary old-style archive to link instead of a shared archive.
21502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21503
21504 # Commands used to build a shared archive.
21505 archive_cmds=$lt_archive_cmds
21506 archive_expsym_cmds=$lt_archive_expsym_cmds
21507
21508 # Commands used to build a loadable module if different from building
21509 # a shared archive.
21510 module_cmds=$lt_module_cmds
21511 module_expsym_cmds=$lt_module_expsym_cmds
21512
21513 # Whether we are building with GNU ld or not.
21514 with_gnu_ld=$lt_with_gnu_ld
21515
21516 # Flag that allows shared libraries with undefined symbols to be built.
21517 allow_undefined_flag=$lt_allow_undefined_flag
21518
21519 # Flag that enforces no undefined symbols.
21520 no_undefined_flag=$lt_no_undefined_flag
21521
21522 # Flag to hardcode \$libdir into a binary during linking.
21523 # This must work even if \$libdir does not exist
21524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21525
21526 # Whether we need a single "-rpath" flag with a separated argument.
21527 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21528
21529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21530 # DIR into the resulting binary.
21531 hardcode_direct=$hardcode_direct
21532
21533 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21534 # DIR into the resulting binary and the resulting library dependency is
21535 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21536 # library is relocated.
21537 hardcode_direct_absolute=$hardcode_direct_absolute
21538
21539 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21540 # into the resulting binary.
21541 hardcode_minus_L=$hardcode_minus_L
21542
21543 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21544 # into the resulting binary.
21545 hardcode_shlibpath_var=$hardcode_shlibpath_var
21546
21547 # Set to "yes" if building a shared library automatically hardcodes DIR
21548 # into the library and all subsequent libraries and executables linked
21549 # against it.
21550 hardcode_automatic=$hardcode_automatic
21551
21552 # Set to yes if linker adds runtime paths of dependent libraries
21553 # to runtime path list.
21554 inherit_rpath=$inherit_rpath
21555
21556 # Whether libtool must link a program against all its dependency libraries.
21557 link_all_deplibs=$link_all_deplibs
21558
21559 # Set to "yes" if exported symbols are required.
21560 always_export_symbols=$always_export_symbols
21561
21562 # The commands to list exported symbols.
21563 export_symbols_cmds=$lt_export_symbols_cmds
21564
21565 # Symbols that should not be listed in the preloaded symbols.
21566 exclude_expsyms=$lt_exclude_expsyms
21567
21568 # Symbols that must always be exported.
21569 include_expsyms=$lt_include_expsyms
21570
21571 # Commands necessary for linking programs (against libraries) with templates.
21572 prelink_cmds=$lt_prelink_cmds
21573
21574 # Commands necessary for finishing linking programs.
21575 postlink_cmds=$lt_postlink_cmds
21576
21577 # Specify filename containing input files.
21578 file_list_spec=$lt_file_list_spec
21579
21580 # How to hardcode a shared library path into an executable.
21581 hardcode_action=$hardcode_action
21582
21583 # The directories searched by this compiler when creating a shared library.
21584 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21585
21586 # Dependencies to place before and after the objects being linked to
21587 # create a shared library.
21588 predep_objects=$lt_predep_objects
21589 postdep_objects=$lt_postdep_objects
21590 predeps=$lt_predeps
21591 postdeps=$lt_postdeps
21592
21593 # The library search path used internally by the compiler when linking
21594 # a shared library.
21595 compiler_lib_search_path=$lt_compiler_lib_search_path
21596
21597 # ### END LIBTOOL CONFIG
21598
21599 _LT_EOF
21600
21601   case $host_os in
21602   aix3*)
21603     cat <<\_LT_EOF >> "$cfgfile"
21604 # AIX sometimes has problems with the GCC collect2 program.  For some
21605 # reason, if we set the COLLECT_NAMES environment variable, the problems
21606 # vanish in a puff of smoke.
21607 if test "X${COLLECT_NAMES+set}" != Xset; then
21608   COLLECT_NAMES=
21609   export COLLECT_NAMES
21610 fi
21611 _LT_EOF
21612     ;;
21613   esac
21614
21615
21616 ltmain="$ac_aux_dir/ltmain.sh"
21617
21618
21619   # We use sed instead of cat because bash on DJGPP gets confused if
21620   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21621   # text mode, it properly converts lines to CR/LF.  This bash problem
21622   # is reportedly fixed, but why not run on old versions too?
21623   sed '$q' "$ltmain" >> "$cfgfile" \
21624      || (rm -f "$cfgfile"; exit 1)
21625
21626   if test x"$xsi_shell" = xyes; then
21627   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21628 func_dirname ()\
21629 {\
21630 \    case ${1} in\
21631 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21632 \      *  ) func_dirname_result="${3}" ;;\
21633 \    esac\
21634 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21635   && mv -f "$cfgfile.tmp" "$cfgfile" \
21636     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21637 test 0 -eq $? || _lt_function_replace_fail=:
21638
21639
21640   sed -e '/^func_basename ()$/,/^} # func_basename /c\
21641 func_basename ()\
21642 {\
21643 \    func_basename_result="${1##*/}"\
21644 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21645   && mv -f "$cfgfile.tmp" "$cfgfile" \
21646     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21647 test 0 -eq $? || _lt_function_replace_fail=:
21648
21649
21650   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21651 func_dirname_and_basename ()\
21652 {\
21653 \    case ${1} in\
21654 \      */*) func_dirname_result="${1%/*}${2}" ;;\
21655 \      *  ) func_dirname_result="${3}" ;;\
21656 \    esac\
21657 \    func_basename_result="${1##*/}"\
21658 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21659   && mv -f "$cfgfile.tmp" "$cfgfile" \
21660     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21661 test 0 -eq $? || _lt_function_replace_fail=:
21662
21663
21664   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21665 func_stripname ()\
21666 {\
21667 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21668 \    # positional parameters, so assign one to ordinary parameter first.\
21669 \    func_stripname_result=${3}\
21670 \    func_stripname_result=${func_stripname_result#"${1}"}\
21671 \    func_stripname_result=${func_stripname_result%"${2}"}\
21672 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21673   && mv -f "$cfgfile.tmp" "$cfgfile" \
21674     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21675 test 0 -eq $? || _lt_function_replace_fail=:
21676
21677
21678   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21679 func_split_long_opt ()\
21680 {\
21681 \    func_split_long_opt_name=${1%%=*}\
21682 \    func_split_long_opt_arg=${1#*=}\
21683 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21684   && mv -f "$cfgfile.tmp" "$cfgfile" \
21685     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21686 test 0 -eq $? || _lt_function_replace_fail=:
21687
21688
21689   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21690 func_split_short_opt ()\
21691 {\
21692 \    func_split_short_opt_arg=${1#??}\
21693 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21694 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21695   && mv -f "$cfgfile.tmp" "$cfgfile" \
21696     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21697 test 0 -eq $? || _lt_function_replace_fail=:
21698
21699
21700   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21701 func_lo2o ()\
21702 {\
21703 \    case ${1} in\
21704 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21705 \      *)    func_lo2o_result=${1} ;;\
21706 \    esac\
21707 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21708   && mv -f "$cfgfile.tmp" "$cfgfile" \
21709     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21710 test 0 -eq $? || _lt_function_replace_fail=:
21711
21712
21713   sed -e '/^func_xform ()$/,/^} # func_xform /c\
21714 func_xform ()\
21715 {\
21716     func_xform_result=${1%.*}.lo\
21717 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21718   && mv -f "$cfgfile.tmp" "$cfgfile" \
21719     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21720 test 0 -eq $? || _lt_function_replace_fail=:
21721
21722
21723   sed -e '/^func_arith ()$/,/^} # func_arith /c\
21724 func_arith ()\
21725 {\
21726     func_arith_result=$(( $* ))\
21727 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21728   && mv -f "$cfgfile.tmp" "$cfgfile" \
21729     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21730 test 0 -eq $? || _lt_function_replace_fail=:
21731
21732
21733   sed -e '/^func_len ()$/,/^} # func_len /c\
21734 func_len ()\
21735 {\
21736     func_len_result=${#1}\
21737 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21738   && mv -f "$cfgfile.tmp" "$cfgfile" \
21739     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21740 test 0 -eq $? || _lt_function_replace_fail=:
21741
21742 fi
21743
21744 if test x"$lt_shell_append" = xyes; then
21745   sed -e '/^func_append ()$/,/^} # func_append /c\
21746 func_append ()\
21747 {\
21748     eval "${1}+=\\${2}"\
21749 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21750   && mv -f "$cfgfile.tmp" "$cfgfile" \
21751     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21752 test 0 -eq $? || _lt_function_replace_fail=:
21753
21754
21755   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21756 func_append_quoted ()\
21757 {\
21758 \    func_quote_for_eval "${2}"\
21759 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21760 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21761   && mv -f "$cfgfile.tmp" "$cfgfile" \
21762     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21763 test 0 -eq $? || _lt_function_replace_fail=:
21764
21765
21766   # Save a `func_append' function call where possible by direct use of '+='
21767   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21768     && mv -f "$cfgfile.tmp" "$cfgfile" \
21769       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21770   test 0 -eq $? || _lt_function_replace_fail=:
21771 else
21772   # Save a `func_append' function call even when '+=' is not available
21773   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21774     && mv -f "$cfgfile.tmp" "$cfgfile" \
21775       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21776   test 0 -eq $? || _lt_function_replace_fail=:
21777 fi
21778
21779 if test x"$_lt_function_replace_fail" = x":"; then
21780   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21781 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21782 fi
21783
21784
21785    mv -f "$cfgfile" "$ofile" ||
21786     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21787   chmod +x "$ofile"
21788
21789
21790     cat <<_LT_EOF >> "$ofile"
21791
21792 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21793
21794 # The linker used to build libraries.
21795 LD=$lt_LD_CXX
21796
21797 # How to create reloadable object files.
21798 reload_flag=$lt_reload_flag_CXX
21799 reload_cmds=$lt_reload_cmds_CXX
21800
21801 # Commands used to build an old-style archive.
21802 old_archive_cmds=$lt_old_archive_cmds_CXX
21803
21804 # A language specific compiler.
21805 CC=$lt_compiler_CXX
21806
21807 # Is the compiler the GNU compiler?
21808 with_gcc=$GCC_CXX
21809
21810 # Compiler flag to turn off builtin functions.
21811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21812
21813 # Additional compiler flags for building library objects.
21814 pic_flag=$lt_lt_prog_compiler_pic_CXX
21815
21816 # How to pass a linker flag through the compiler.
21817 wl=$lt_lt_prog_compiler_wl_CXX
21818
21819 # Compiler flag to prevent dynamic linking.
21820 link_static_flag=$lt_lt_prog_compiler_static_CXX
21821
21822 # Does compiler simultaneously support -c and -o options?
21823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21824
21825 # Whether or not to add -lc for building shared libraries.
21826 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21827
21828 # Whether or not to disallow shared libs when runtime libs are static.
21829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21830
21831 # Compiler flag to allow reflexive dlopens.
21832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21833
21834 # Compiler flag to generate shared objects directly from archives.
21835 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21836
21837 # Whether the compiler copes with passing no objects directly.
21838 compiler_needs_object=$lt_compiler_needs_object_CXX
21839
21840 # Create an old-style archive from a shared archive.
21841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21842
21843 # Create a temporary old-style archive to link instead of a shared archive.
21844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21845
21846 # Commands used to build a shared archive.
21847 archive_cmds=$lt_archive_cmds_CXX
21848 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21849
21850 # Commands used to build a loadable module if different from building
21851 # a shared archive.
21852 module_cmds=$lt_module_cmds_CXX
21853 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21854
21855 # Whether we are building with GNU ld or not.
21856 with_gnu_ld=$lt_with_gnu_ld_CXX
21857
21858 # Flag that allows shared libraries with undefined symbols to be built.
21859 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21860
21861 # Flag that enforces no undefined symbols.
21862 no_undefined_flag=$lt_no_undefined_flag_CXX
21863
21864 # Flag to hardcode \$libdir into a binary during linking.
21865 # This must work even if \$libdir does not exist
21866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21867
21868 # Whether we need a single "-rpath" flag with a separated argument.
21869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21870
21871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21872 # DIR into the resulting binary.
21873 hardcode_direct=$hardcode_direct_CXX
21874
21875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21876 # DIR into the resulting binary and the resulting library dependency is
21877 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21878 # library is relocated.
21879 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21880
21881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21882 # into the resulting binary.
21883 hardcode_minus_L=$hardcode_minus_L_CXX
21884
21885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21886 # into the resulting binary.
21887 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21888
21889 # Set to "yes" if building a shared library automatically hardcodes DIR
21890 # into the library and all subsequent libraries and executables linked
21891 # against it.
21892 hardcode_automatic=$hardcode_automatic_CXX
21893
21894 # Set to yes if linker adds runtime paths of dependent libraries
21895 # to runtime path list.
21896 inherit_rpath=$inherit_rpath_CXX
21897
21898 # Whether libtool must link a program against all its dependency libraries.
21899 link_all_deplibs=$link_all_deplibs_CXX
21900
21901 # Set to "yes" if exported symbols are required.
21902 always_export_symbols=$always_export_symbols_CXX
21903
21904 # The commands to list exported symbols.
21905 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21906
21907 # Symbols that should not be listed in the preloaded symbols.
21908 exclude_expsyms=$lt_exclude_expsyms_CXX
21909
21910 # Symbols that must always be exported.
21911 include_expsyms=$lt_include_expsyms_CXX
21912
21913 # Commands necessary for linking programs (against libraries) with templates.
21914 prelink_cmds=$lt_prelink_cmds_CXX
21915
21916 # Commands necessary for finishing linking programs.
21917 postlink_cmds=$lt_postlink_cmds_CXX
21918
21919 # Specify filename containing input files.
21920 file_list_spec=$lt_file_list_spec_CXX
21921
21922 # How to hardcode a shared library path into an executable.
21923 hardcode_action=$hardcode_action_CXX
21924
21925 # The directories searched by this compiler when creating a shared library.
21926 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21927
21928 # Dependencies to place before and after the objects being linked to
21929 # create a shared library.
21930 predep_objects=$lt_predep_objects_CXX
21931 postdep_objects=$lt_postdep_objects_CXX
21932 predeps=$lt_predeps_CXX
21933 postdeps=$lt_postdeps_CXX
21934
21935 # The library search path used internally by the compiler when linking
21936 # a shared library.
21937 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21938
21939 # ### END LIBTOOL TAG CONFIG: CXX
21940 _LT_EOF
21941
21942  ;;
21943
21944   esac
21945 done # for ac_tag
21946
21947
21948 as_fn_exit 0
21949 _ACEOF
21950 ac_clean_files=$ac_clean_files_save
21951
21952 test $ac_write_fail = 0 ||
21953   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21954
21955
21956 # configure is writing to config.log, and then calls config.status.
21957 # config.status does its own redirection, appending to config.log.
21958 # Unfortunately, on DOS this fails, as config.log is still kept open
21959 # by configure, so config.status won't be able to write to it; its
21960 # output is simply discarded.  So we exec the FD to /dev/null,
21961 # effectively closing config.log, so it can be properly (re)opened and
21962 # appended to by config.status.  When coming back to configure, we
21963 # need to make the FD available again.
21964 if test "$no_create" != yes; then
21965   ac_cs_success=:
21966   ac_config_status_args=
21967   test "$silent" = yes &&
21968     ac_config_status_args="$ac_config_status_args --quiet"
21969   exec 5>/dev/null
21970   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21971   exec 5>>config.log
21972   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21973   # would make configure fail if this is the last instruction.
21974   $ac_cs_success || as_fn_exit 1
21975 fi
21976 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21977   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21978 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21979 fi
21980
21981
21982 { $as_echo "$as_me:${as_lineno-$LINENO}:
21983
21984 Build configuration:
21985
21986 Unicode callbacks (you want at least one):
21987         Glib:                   ${have_glib}
21988         ICU:                    ${have_icu}
21989         UCDN:                   ${have_ucdn}
21990
21991 Font callbacks (the more the better):
21992         FreeType:               ${have_freetype}
21993
21994 Tools used for command-line utilities:
21995         Cairo:                  ${have_cairo}
21996         Fontconfig:             ${have_fontconfig}
21997
21998 Additional shapers (the more the better):
21999         Graphite2:              ${have_graphite2}
22000
22001 Platform shapers (not normally needed):
22002         CoreText:               ${have_coretext}
22003         Uniscribe:              ${have_uniscribe}
22004         DirectWrite:            ${have_directwrite}
22005
22006 Other features:
22007         Documentation:          ${have_gtk_doc}
22008         GObject bindings:       ${have_gobject}
22009         Introspection:          ${have_introspection}
22010 " >&5
22011 $as_echo "$as_me:
22012
22013 Build configuration:
22014
22015 Unicode callbacks (you want at least one):
22016         Glib:                   ${have_glib}
22017         ICU:                    ${have_icu}
22018         UCDN:                   ${have_ucdn}
22019
22020 Font callbacks (the more the better):
22021         FreeType:               ${have_freetype}
22022
22023 Tools used for command-line utilities:
22024         Cairo:                  ${have_cairo}
22025         Fontconfig:             ${have_fontconfig}
22026
22027 Additional shapers (the more the better):
22028         Graphite2:              ${have_graphite2}
22029
22030 Platform shapers (not normally needed):
22031         CoreText:               ${have_coretext}
22032         Uniscribe:              ${have_uniscribe}
22033         DirectWrite:            ${have_directwrite}
22034
22035 Other features:
22036         Documentation:          ${have_gtk_doc}
22037         GObject bindings:       ${have_gobject}
22038         Introspection:          ${have_introspection}
22039 " >&6;}