1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for yaml 0.2.5.
4#
5# Report bugs to <https://github.com/yaml/libyaml/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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104     ;;
105esac
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.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
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
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
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
244fi; }
245IFS=$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.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $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
267exit 255
268fi
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 https://github.com/yaml/libyaml/issues/new about
278$0: your system, including any error possibly output before
279$0: this message. Then install a modern shell, or manually
280$0: run the script under such a shell if you do have one."
281  fi
282  exit 1
283fi
284fi
285fi
286SHELL=${CONFIG_SHELL-/bin/sh}
287export SHELL
288# Unset more variables known to interfere with behavior of common tools.
289CLICOLOR_FORCE= GREP_OPTIONS=
290unset CLICOLOR_FORCE GREP_OPTIONS
291
292## --------------------- ##
293## M4sh Shell Functions. ##
294## --------------------- ##
295# as_fn_unset VAR
296# ---------------
297# Portably unset VAR.
298as_fn_unset ()
299{
300  { eval $1=; unset $1;}
301}
302as_unset=as_fn_unset
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344$as_echo X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384  eval 'as_fn_append ()
385  {
386    eval $1+=\$2
387  }'
388else
389  as_fn_append ()
390  {
391    eval $1=\$$1\$2
392  }
393fi # as_fn_append
394
395# as_fn_arith ARG...
396# ------------------
397# Perform arithmetic evaluation on the ARGs, and store the result in the
398# global $as_val. Take advantage of shells that can avoid forks. The arguments
399# must be portable across $(()) and expr.
400if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401  eval 'as_fn_arith ()
402  {
403    as_val=$(( $* ))
404  }'
405else
406  as_fn_arith ()
407  {
408    as_val=`expr "$@" || test $? -eq 1`
409  }
410fi # as_fn_arith
411
412
413# as_fn_error STATUS ERROR [LINENO LOG_FD]
414# ----------------------------------------
415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417# script with STATUS, using 1 if that was 0.
418as_fn_error ()
419{
420  as_status=$1; test $as_status -eq 0 && as_status=1
421  if test "$4"; then
422    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424  fi
425  $as_echo "$as_me: error: $2" >&2
426  as_fn_exit $as_status
427} # as_fn_error
428
429if expr a : '\(a\)' >/dev/null 2>&1 &&
430   test "X`expr 00001 : '.*\(...\)'`" = X001; then
431  as_expr=expr
432else
433  as_expr=false
434fi
435
436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437  as_basename=basename
438else
439  as_basename=false
440fi
441
442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443  as_dirname=dirname
444else
445  as_dirname=false
446fi
447
448as_me=`$as_basename -- "$0" ||
449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450	 X"$0" : 'X\(//\)$' \| \
451	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452$as_echo X/"$0" |
453    sed '/^.*\/\([^/][^/]*\)\/*$/{
454	    s//\1/
455	    q
456	  }
457	  /^X\/\(\/\/\)$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\).*/{
462	    s//\1/
463	    q
464	  }
465	  s/.*/./; q'`
466
467# Avoid depending upon Character Ranges.
468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471as_cr_digits='0123456789'
472as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475  as_lineno_1=$LINENO as_lineno_1a=$LINENO
476  as_lineno_2=$LINENO as_lineno_2a=$LINENO
477  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
480  sed -n '
481    p
482    /[$]LINENO/=
483  ' <$as_myself |
484    sed '
485      s/[$]LINENO.*/&-/
486      t lineno
487      b
488      :lineno
489      N
490      :loop
491      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492      t loop
493      s/-\n.*//
494    ' >$as_me.lineno &&
495  chmod +x "$as_me.lineno" ||
496    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499  # already done that, so ensure we don't try to do so again and fall
500  # in an infinite loop.  This has already happened in practice.
501  _as_can_reexec=no; export _as_can_reexec
502  # Don't try to exec as it changes $[0], causing all sort of problems
503  # (the dirname of $[0] is not the place where we might find the
504  # original and so on.  Autoconf is especially sensitive to this).
505  . "./$as_me.lineno"
506  # Exit status is that of the last command.
507  exit
508}
509
510ECHO_C= ECHO_N= ECHO_T=
511case `echo -n x` in #(((((
512-n*)
513  case `echo 'xy\c'` in
514  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
515  xy)  ECHO_C='\c';;
516  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
517       ECHO_T='	';;
518  esac;;
519*)
520  ECHO_N='-n';;
521esac
522
523rm -f conf$$ conf$$.exe conf$$.file
524if test -d conf$$.dir; then
525  rm -f conf$$.dir/conf$$.file
526else
527  rm -f conf$$.dir
528  mkdir conf$$.dir 2>/dev/null
529fi
530if (echo >conf$$.file) 2>/dev/null; then
531  if ln -s conf$$.file conf$$ 2>/dev/null; then
532    as_ln_s='ln -s'
533    # ... but there are two gotchas:
534    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536    # In both cases, we have to default to `cp -pR'.
537    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538      as_ln_s='cp -pR'
539  elif ln conf$$.file conf$$ 2>/dev/null; then
540    as_ln_s=ln
541  else
542    as_ln_s='cp -pR'
543  fi
544else
545  as_ln_s='cp -pR'
546fi
547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548rmdir conf$$.dir 2>/dev/null
549
550if mkdir -p . 2>/dev/null; then
551  as_mkdir_p='mkdir -p "$as_dir"'
552else
553  test -d ./-p && rmdir ./-p
554  as_mkdir_p=false
555fi
556
557as_test_x='test -x'
558as_executable_p=as_fn_executable_p
559
560# Sed expression to map a string onto a valid CPP name.
561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563# Sed expression to map a string onto a valid variable name.
564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569test -n "$DJDIR" || exec 7<&0 </dev/null
570exec 6>&1
571
572# Name of the host.
573# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574# so uname gets run too.
575ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577#
578# Initializations.
579#
580ac_default_prefix=/usr/local
581ac_clean_files=
582ac_config_libobj_dir=.
583LIBOBJS=
584cross_compiling=no
585subdirs=
586MFLAGS=
587MAKEFLAGS=
588
589# Identity of this package.
590PACKAGE_NAME='yaml'
591PACKAGE_TARNAME='yaml'
592PACKAGE_VERSION='0.2.5'
593PACKAGE_STRING='yaml 0.2.5'
594PACKAGE_BUGREPORT='https://github.com/yaml/libyaml/issues/new'
595PACKAGE_URL=''
596
597# Factoring default headers for most tests.
598ac_includes_default="\
599#include <stdio.h>
600#ifdef HAVE_SYS_TYPES_H
601# include <sys/types.h>
602#endif
603#ifdef HAVE_SYS_STAT_H
604# include <sys/stat.h>
605#endif
606#ifdef STDC_HEADERS
607# include <stdlib.h>
608# include <stddef.h>
609#else
610# ifdef HAVE_STDLIB_H
611#  include <stdlib.h>
612# endif
613#endif
614#ifdef HAVE_STRING_H
615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616#  include <memory.h>
617# endif
618# include <string.h>
619#endif
620#ifdef HAVE_STRINGS_H
621# include <strings.h>
622#endif
623#ifdef HAVE_INTTYPES_H
624# include <inttypes.h>
625#endif
626#ifdef HAVE_STDINT_H
627# include <stdint.h>
628#endif
629#ifdef HAVE_UNISTD_H
630# include <unistd.h>
631#endif"
632
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637DOXYGEN_FALSE
638DOXYGEN_TRUE
639DOXYGEN
640LT_SYS_LIBRARY_PATH
641OTOOL64
642OTOOL
643LIPO
644NMEDIT
645DSYMUTIL
646MANIFEST_TOOL
647RANLIB
648ac_ct_AR
649AR
650DLLTOOL
651OBJDUMP
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657EGREP
658GREP
659SED
660host_os
661host_vendor
662host_cpu
663host
664build_os
665build_vendor
666build_cpu
667build
668LIBTOOL
669LN_S
670CPP
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674am__nodep
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
688YAML_LT_AGE
689YAML_LT_REVISION
690YAML_LT_CURRENT
691YAML_LT_RELEASE
692AM_BACKSLASH
693AM_DEFAULT_VERBOSITY
694AM_DEFAULT_V
695AM_V
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738runstatedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
761enable_silent_rules
762enable_dependency_tracking
763enable_shared
764enable_static
765with_pic
766enable_fast_install
767with_aix_soname
768with_gnu_ld
769with_sysroot
770enable_libtool_lock
771'
772      ac_precious_vars='build_alias
773host_alias
774target_alias
775CC
776CFLAGS
777LDFLAGS
778LIBS
779CPPFLAGS
780CPP
781LT_SYS_LIBRARY_PATH'
782
783
784# Initialize some variables set by options.
785ac_init_help=
786ac_init_version=false
787ac_unrecognized_opts=
788ac_unrecognized_sep=
789# The variables have the same names as the options, with
790# dashes changed to underlines.
791cache_file=/dev/null
792exec_prefix=NONE
793no_create=
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
802verbose=
803x_includes=NONE
804x_libraries=NONE
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
811# (The list follows the same order as the GNU Coding Standards.)
812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
820runstatedir='${localstatedir}/run'
821includedir='${prefix}/include'
822oldincludedir='/usr/include'
823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824infodir='${datarootdir}/info'
825htmldir='${docdir}'
826dvidir='${docdir}'
827pdfdir='${docdir}'
828psdir='${docdir}'
829libdir='${exec_prefix}/lib'
830localedir='${datarootdir}/locale'
831mandir='${datarootdir}/man'
832
833ac_prev=
834ac_dashdash=
835for ac_option
836do
837  # If the previous option needs an argument, assign it.
838  if test -n "$ac_prev"; then
839    eval $ac_prev=\$ac_option
840    ac_prev=
841    continue
842  fi
843
844  case $ac_option in
845  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846  *=)   ac_optarg= ;;
847  *)    ac_optarg=yes ;;
848  esac
849
850  # Accept the important Cygnus configure options, so we can diagnose typos.
851
852  case $ac_dashdash$ac_option in
853  --)
854    ac_dashdash=yes ;;
855
856  -bindir | --bindir | --bindi | --bind | --bin | --bi)
857    ac_prev=bindir ;;
858  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859    bindir=$ac_optarg ;;
860
861  -build | --build | --buil | --bui | --bu)
862    ac_prev=build_alias ;;
863  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864    build_alias=$ac_optarg ;;
865
866  -cache-file | --cache-file | --cache-fil | --cache-fi \
867  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868    ac_prev=cache_file ;;
869  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871    cache_file=$ac_optarg ;;
872
873  --config-cache | -C)
874    cache_file=config.cache ;;
875
876  -datadir | --datadir | --datadi | --datad)
877    ac_prev=datadir ;;
878  -datadir=* | --datadir=* | --datadi=* | --datad=*)
879    datadir=$ac_optarg ;;
880
881  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882  | --dataroo | --dataro | --datar)
883    ac_prev=datarootdir ;;
884  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886    datarootdir=$ac_optarg ;;
887
888  -disable-* | --disable-*)
889    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890    # Reject names that are not valid shell variable names.
891    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892      as_fn_error $? "invalid feature name: $ac_useropt"
893    ac_useropt_orig=$ac_useropt
894    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895    case $ac_user_opts in
896      *"
897"enable_$ac_useropt"
898"*) ;;
899      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900	 ac_unrecognized_sep=', ';;
901    esac
902    eval enable_$ac_useropt=no ;;
903
904  -docdir | --docdir | --docdi | --doc | --do)
905    ac_prev=docdir ;;
906  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907    docdir=$ac_optarg ;;
908
909  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910    ac_prev=dvidir ;;
911  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912    dvidir=$ac_optarg ;;
913
914  -enable-* | --enable-*)
915    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916    # Reject names that are not valid shell variable names.
917    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918      as_fn_error $? "invalid feature name: $ac_useropt"
919    ac_useropt_orig=$ac_useropt
920    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921    case $ac_user_opts in
922      *"
923"enable_$ac_useropt"
924"*) ;;
925      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926	 ac_unrecognized_sep=', ';;
927    esac
928    eval enable_$ac_useropt=\$ac_optarg ;;
929
930  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932  | --exec | --exe | --ex)
933    ac_prev=exec_prefix ;;
934  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936  | --exec=* | --exe=* | --ex=*)
937    exec_prefix=$ac_optarg ;;
938
939  -gas | --gas | --ga | --g)
940    # Obsolete; use --with-gas.
941    with_gas=yes ;;
942
943  -help | --help | --hel | --he | -h)
944    ac_init_help=long ;;
945  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946    ac_init_help=recursive ;;
947  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948    ac_init_help=short ;;
949
950  -host | --host | --hos | --ho)
951    ac_prev=host_alias ;;
952  -host=* | --host=* | --hos=* | --ho=*)
953    host_alias=$ac_optarg ;;
954
955  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956    ac_prev=htmldir ;;
957  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958  | --ht=*)
959    htmldir=$ac_optarg ;;
960
961  -includedir | --includedir | --includedi | --included | --include \
962  | --includ | --inclu | --incl | --inc)
963    ac_prev=includedir ;;
964  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965  | --includ=* | --inclu=* | --incl=* | --inc=*)
966    includedir=$ac_optarg ;;
967
968  -infodir | --infodir | --infodi | --infod | --info | --inf)
969    ac_prev=infodir ;;
970  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971    infodir=$ac_optarg ;;
972
973  -libdir | --libdir | --libdi | --libd)
974    ac_prev=libdir ;;
975  -libdir=* | --libdir=* | --libdi=* | --libd=*)
976    libdir=$ac_optarg ;;
977
978  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979  | --libexe | --libex | --libe)
980    ac_prev=libexecdir ;;
981  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982  | --libexe=* | --libex=* | --libe=*)
983    libexecdir=$ac_optarg ;;
984
985  -localedir | --localedir | --localedi | --localed | --locale)
986    ac_prev=localedir ;;
987  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988    localedir=$ac_optarg ;;
989
990  -localstatedir | --localstatedir | --localstatedi | --localstated \
991  | --localstate | --localstat | --localsta | --localst | --locals)
992    ac_prev=localstatedir ;;
993  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995    localstatedir=$ac_optarg ;;
996
997  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998    ac_prev=mandir ;;
999  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000    mandir=$ac_optarg ;;
1001
1002  -nfp | --nfp | --nf)
1003    # Obsolete; use --without-fp.
1004    with_fp=no ;;
1005
1006  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007  | --no-cr | --no-c | -n)
1008    no_create=yes ;;
1009
1010  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012    no_recursion=yes ;;
1013
1014  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016  | --oldin | --oldi | --old | --ol | --o)
1017    ac_prev=oldincludedir ;;
1018  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021    oldincludedir=$ac_optarg ;;
1022
1023  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024    ac_prev=prefix ;;
1025  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026    prefix=$ac_optarg ;;
1027
1028  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029  | --program-pre | --program-pr | --program-p)
1030    ac_prev=program_prefix ;;
1031  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033    program_prefix=$ac_optarg ;;
1034
1035  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036  | --program-suf | --program-su | --program-s)
1037    ac_prev=program_suffix ;;
1038  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040    program_suffix=$ac_optarg ;;
1041
1042  -program-transform-name | --program-transform-name \
1043  | --program-transform-nam | --program-transform-na \
1044  | --program-transform-n | --program-transform- \
1045  | --program-transform | --program-transfor \
1046  | --program-transfo | --program-transf \
1047  | --program-trans | --program-tran \
1048  | --progr-tra | --program-tr | --program-t)
1049    ac_prev=program_transform_name ;;
1050  -program-transform-name=* | --program-transform-name=* \
1051  | --program-transform-nam=* | --program-transform-na=* \
1052  | --program-transform-n=* | --program-transform-=* \
1053  | --program-transform=* | --program-transfor=* \
1054  | --program-transfo=* | --program-transf=* \
1055  | --program-trans=* | --program-tran=* \
1056  | --progr-tra=* | --program-tr=* | --program-t=*)
1057    program_transform_name=$ac_optarg ;;
1058
1059  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060    ac_prev=pdfdir ;;
1061  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062    pdfdir=$ac_optarg ;;
1063
1064  -psdir | --psdir | --psdi | --psd | --ps)
1065    ac_prev=psdir ;;
1066  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067    psdir=$ac_optarg ;;
1068
1069  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070  | -silent | --silent | --silen | --sile | --sil)
1071    silent=yes ;;
1072
1073  -runstatedir | --runstatedir | --runstatedi | --runstated \
1074  | --runstate | --runstat | --runsta | --runst | --runs \
1075  | --run | --ru | --r)
1076    ac_prev=runstatedir ;;
1077  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1078  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1079  | --run=* | --ru=* | --r=*)
1080    runstatedir=$ac_optarg ;;
1081
1082  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083    ac_prev=sbindir ;;
1084  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085  | --sbi=* | --sb=*)
1086    sbindir=$ac_optarg ;;
1087
1088  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090  | --sharedst | --shareds | --shared | --share | --shar \
1091  | --sha | --sh)
1092    ac_prev=sharedstatedir ;;
1093  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096  | --sha=* | --sh=*)
1097    sharedstatedir=$ac_optarg ;;
1098
1099  -site | --site | --sit)
1100    ac_prev=site ;;
1101  -site=* | --site=* | --sit=*)
1102    site=$ac_optarg ;;
1103
1104  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105    ac_prev=srcdir ;;
1106  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107    srcdir=$ac_optarg ;;
1108
1109  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110  | --syscon | --sysco | --sysc | --sys | --sy)
1111    ac_prev=sysconfdir ;;
1112  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114    sysconfdir=$ac_optarg ;;
1115
1116  -target | --target | --targe | --targ | --tar | --ta | --t)
1117    ac_prev=target_alias ;;
1118  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119    target_alias=$ac_optarg ;;
1120
1121  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122    verbose=yes ;;
1123
1124  -version | --version | --versio | --versi | --vers | -V)
1125    ac_init_version=: ;;
1126
1127  -with-* | --with-*)
1128    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129    # Reject names that are not valid shell variable names.
1130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131      as_fn_error $? "invalid package name: $ac_useropt"
1132    ac_useropt_orig=$ac_useropt
1133    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134    case $ac_user_opts in
1135      *"
1136"with_$ac_useropt"
1137"*) ;;
1138      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139	 ac_unrecognized_sep=', ';;
1140    esac
1141    eval with_$ac_useropt=\$ac_optarg ;;
1142
1143  -without-* | --without-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error $? "invalid package name: $ac_useropt"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"with_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval with_$ac_useropt=no ;;
1158
1159  --x)
1160    # Obsolete; use --with-x.
1161    with_x=yes ;;
1162
1163  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164  | --x-incl | --x-inc | --x-in | --x-i)
1165    ac_prev=x_includes ;;
1166  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168    x_includes=$ac_optarg ;;
1169
1170  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172    ac_prev=x_libraries ;;
1173  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175    x_libraries=$ac_optarg ;;
1176
1177  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178Try \`$0 --help' for more information"
1179    ;;
1180
1181  *=*)
1182    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183    # Reject names that are not valid shell variable names.
1184    case $ac_envvar in #(
1185      '' | [0-9]* | *[!_$as_cr_alnum]* )
1186      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187    esac
1188    eval $ac_envvar=\$ac_optarg
1189    export $ac_envvar ;;
1190
1191  *)
1192    # FIXME: should be removed in autoconf 3.0.
1193    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197    ;;
1198
1199  esac
1200done
1201
1202if test -n "$ac_prev"; then
1203  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204  as_fn_error $? "missing argument to $ac_option"
1205fi
1206
1207if test -n "$ac_unrecognized_opts"; then
1208  case $enable_option_checking in
1209    no) ;;
1210    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212  esac
1213fi
1214
1215# Check all directory arguments for consistency.
1216for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217		datadir sysconfdir sharedstatedir localstatedir includedir \
1218		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219		libdir localedir mandir runstatedir
1220do
1221  eval ac_val=\$$ac_var
1222  # Remove trailing slashes.
1223  case $ac_val in
1224    */ )
1225      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226      eval $ac_var=\$ac_val;;
1227  esac
1228  # Be sure to have absolute directory names.
1229  case $ac_val in
1230    [\\/$]* | ?:[\\/]* )  continue;;
1231    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232  esac
1233  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234done
1235
1236# There might be people who depend on the old broken behavior: `$host'
1237# used to hold the argument of --host etc.
1238# FIXME: To remove some day.
1239build=$build_alias
1240host=$host_alias
1241target=$target_alias
1242
1243# FIXME: To remove some day.
1244if test "x$host_alias" != x; then
1245  if test "x$build_alias" = x; then
1246    cross_compiling=maybe
1247  elif test "x$build_alias" != "x$host_alias"; then
1248    cross_compiling=yes
1249  fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261  as_fn_error $? "working directory cannot be determined"
1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263  as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268  ac_srcdir_defaulted=yes
1269  # Try the directory containing this script, then the parent directory.
1270  ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272	 X"$as_myself" : 'X\(//\)[^/]' \| \
1273	 X"$as_myself" : 'X\(//\)$' \| \
1274	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\/\)[^/].*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\).*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  s/.*/./; q'`
1293  srcdir=$ac_confdir
1294  if test ! -r "$srcdir/$ac_unique_file"; then
1295    srcdir=..
1296  fi
1297else
1298  ac_srcdir_defaulted=no
1299fi
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307	pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310  srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_env_${ac_var}_value=\$${ac_var}
1321  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
1324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329  # Omit some internal or obsolete options to make the list less imposing.
1330  # This message is too long to be a string in the A/UX 3.1 sh.
1331  cat <<_ACEOF
1332\`configure' configures yaml 0.2.5 to adapt to many kinds of systems.
1333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342  -h, --help              display this help and exit
1343      --help=short        display options specific to this package
1344      --help=recursive    display the short help of all the included packages
1345  -V, --version           display version information and exit
1346  -q, --quiet, --silent   do not print \`checking ...' messages
1347      --cache-file=FILE   cache test results in FILE [disabled]
1348  -C, --config-cache      alias for \`--cache-file=config.cache'
1349  -n, --no-create         do not create output files
1350      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352Installation directories:
1353  --prefix=PREFIX         install architecture-independent files in PREFIX
1354                          [$ac_default_prefix]
1355  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                          [PREFIX]
1357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
1366  --bindir=DIR            user executables [EPREFIX/bin]
1367  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1368  --libexecdir=DIR        program executables [EPREFIX/libexec]
1369  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1370  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1371  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1372  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1373  --libdir=DIR            object code libraries [EPREFIX/lib]
1374  --includedir=DIR        C header files [PREFIX/include]
1375  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1376  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1377  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1378  --infodir=DIR           info documentation [DATAROOTDIR/info]
1379  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1380  --mandir=DIR            man documentation [DATAROOTDIR/man]
1381  --docdir=DIR            documentation root [DATAROOTDIR/doc/yaml]
1382  --htmldir=DIR           html documentation [DOCDIR]
1383  --dvidir=DIR            dvi documentation [DOCDIR]
1384  --pdfdir=DIR            pdf documentation [DOCDIR]
1385  --psdir=DIR             ps documentation [DOCDIR]
1386_ACEOF
1387
1388  cat <<\_ACEOF
1389
1390Program names:
1391  --program-prefix=PREFIX            prepend PREFIX to installed program names
1392  --program-suffix=SUFFIX            append SUFFIX to installed program names
1393  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1394
1395System types:
1396  --build=BUILD     configure for building on BUILD [guessed]
1397  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1398_ACEOF
1399fi
1400
1401if test -n "$ac_init_help"; then
1402  case $ac_init_help in
1403     short | recursive ) echo "Configuration of yaml 0.2.5:";;
1404   esac
1405  cat <<\_ACEOF
1406
1407Optional Features:
1408  --disable-option-checking  ignore unrecognized --enable/--with options
1409  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1410  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1411  --enable-silent-rules   less verbose build output (undo: "make V=1")
1412  --disable-silent-rules  verbose build output (undo: "make V=0")
1413  --enable-dependency-tracking
1414                          do not reject slow dependency extractors
1415  --disable-dependency-tracking
1416                          speeds up one-time build
1417  --enable-shared[=PKGS]  build shared libraries [default=yes]
1418  --enable-static[=PKGS]  build static libraries [default=yes]
1419  --enable-fast-install[=PKGS]
1420                          optimize for fast installation [default=yes]
1421  --disable-libtool-lock  avoid locking (might break parallel builds)
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-aix-soname=aix|svr4|both
1429                          shared library versioning (aka "SONAME") variant to
1430                          provide on AIX, [default=aix].
1431  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1432  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1433                          compiler's sysroot if not specified).
1434
1435Some influential environment variables:
1436  CC          C compiler command
1437  CFLAGS      C compiler flags
1438  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1439              nonstandard directory <lib dir>
1440  LIBS        libraries to pass to the linker, e.g. -l<library>
1441  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442              you have headers in a nonstandard directory <include dir>
1443  CPP         C preprocessor
1444  LT_SYS_LIBRARY_PATH
1445              User-defined run-time library search path.
1446
1447Use these variables to override the choices made by `configure' or to help
1448it to find libraries and programs with nonstandard names/locations.
1449
1450Report bugs to <https://github.com/yaml/libyaml/issues/new>.
1451_ACEOF
1452ac_status=$?
1453fi
1454
1455if test "$ac_init_help" = "recursive"; then
1456  # If there are subdirs, report their specific --help.
1457  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458    test -d "$ac_dir" ||
1459      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460      continue
1461    ac_builddir=.
1462
1463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
1466  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467  # A ".." for each directory in $ac_dir_suffix.
1468  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469  case $ac_top_builddir_sub in
1470  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472  esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
1478
1479case $srcdir in
1480  .)  # We are building in place.
1481    ac_srcdir=.
1482    ac_top_srcdir=$ac_top_builddir_sub
1483    ac_abs_top_srcdir=$ac_pwd ;;
1484  [\\/]* | ?:[\\/]* )  # Absolute name.
1485    ac_srcdir=$srcdir$ac_dir_suffix;
1486    ac_top_srcdir=$srcdir
1487    ac_abs_top_srcdir=$srcdir ;;
1488  *) # Relative name.
1489    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490    ac_top_srcdir=$ac_top_build_prefix$srcdir
1491    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492esac
1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495    cd "$ac_dir" || { ac_status=$?; continue; }
1496    # Check for guested configure.
1497    if test -f "$ac_srcdir/configure.gnu"; then
1498      echo &&
1499      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500    elif test -f "$ac_srcdir/configure"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure" --help=recursive
1503    else
1504      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505    fi || ac_status=$?
1506    cd "$ac_pwd" || { ac_status=$?; break; }
1507  done
1508fi
1509
1510test -n "$ac_init_help" && exit $ac_status
1511if $ac_init_version; then
1512  cat <<\_ACEOF
1513yaml configure 0.2.5
1514generated by GNU Autoconf 2.69
1515
1516Copyright (C) 2012 Free Software Foundation, Inc.
1517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
1520  exit
1521fi
1522
1523## ------------------------ ##
1524## Autoconf initialization. ##
1525## ------------------------ ##
1526
1527# ac_fn_c_try_compile LINENO
1528# --------------------------
1529# Try to compile conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_compile ()
1531{
1532  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533  rm -f conftest.$ac_objext
1534  if { { ac_try="$ac_compile"
1535case "(($ac_try" in
1536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537  *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541  (eval "$ac_compile") 2>conftest.err
1542  ac_status=$?
1543  if test -s conftest.err; then
1544    grep -v '^ *+' conftest.err >conftest.er1
1545    cat conftest.er1 >&5
1546    mv -f conftest.er1 conftest.err
1547  fi
1548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549  test $ac_status = 0; } && {
1550	 test -z "$ac_c_werror_flag" ||
1551	 test ! -s conftest.err
1552       } && test -s conftest.$ac_objext; then :
1553  ac_retval=0
1554else
1555  $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
1557
1558	ac_retval=1
1559fi
1560  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561  as_fn_set_status $ac_retval
1562
1563} # ac_fn_c_try_compile
1564
1565# ac_fn_c_try_cpp LINENO
1566# ----------------------
1567# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_cpp ()
1569{
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  if { { ac_try="$ac_cpp conftest.$ac_ext"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } > conftest.i && {
1587	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588	 test ! -s conftest.err
1589       }; then :
1590  ac_retval=0
1591else
1592  $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595    ac_retval=1
1596fi
1597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598  as_fn_set_status $ac_retval
1599
1600} # ac_fn_c_try_cpp
1601
1602# ac_fn_c_try_link LINENO
1603# -----------------------
1604# Try to link conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_c_try_link ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  rm -f conftest.$ac_objext conftest$ac_exeext
1609  if { { ac_try="$ac_link"
1610case "(($ac_try" in
1611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612  *) ac_try_echo=$ac_try;;
1613esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615$as_echo "$ac_try_echo"; } >&5
1616  (eval "$ac_link") 2>conftest.err
1617  ac_status=$?
1618  if test -s conftest.err; then
1619    grep -v '^ *+' conftest.err >conftest.er1
1620    cat conftest.er1 >&5
1621    mv -f conftest.er1 conftest.err
1622  fi
1623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624  test $ac_status = 0; } && {
1625	 test -z "$ac_c_werror_flag" ||
1626	 test ! -s conftest.err
1627       } && test -s conftest$ac_exeext && {
1628	 test "$cross_compiling" = yes ||
1629	 test -x conftest$ac_exeext
1630       }; then :
1631  ac_retval=0
1632else
1633  $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636	ac_retval=1
1637fi
1638  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640  # interfere with the next link command; also delete a directory that is
1641  # left behind by Apple's compiler.  We do this before executing the actions.
1642  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_link
1647
1648# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists and can be compiled using the include files in
1651# INCLUDES, setting the cache variable VAR accordingly.
1652ac_fn_c_check_header_compile ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if eval \${$3+:} false; then :
1658  $as_echo_n "(cached) " >&6
1659else
1660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h.  */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"; then :
1666  eval "$3=yes"
1667else
1668  eval "$3=no"
1669fi
1670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671fi
1672eval ac_res=\$$3
1673	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674$as_echo "$ac_res" >&6; }
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676
1677} # ac_fn_c_check_header_compile
1678
1679# ac_fn_c_try_run LINENO
1680# ----------------------
1681# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682# that executables *can* be run.
1683ac_fn_c_try_run ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if { { ac_try="$ac_link"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_link") 2>&5
1694  ac_status=$?
1695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697  { { case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_try") 2>&5
1704  ac_status=$?
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; }; }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: program exited with status $ac_status" >&5
1710       $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713       ac_retval=$ac_status
1714fi
1715  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717  as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_run
1720
1721# ac_fn_c_check_func LINENO FUNC VAR
1722# ----------------------------------
1723# Tests whether FUNC exists, setting the cache variable VAR accordingly
1724ac_fn_c_check_func ()
1725{
1726  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
1729if eval \${$3+:} false; then :
1730  $as_echo_n "(cached) " >&6
1731else
1732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h.  */
1734/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1736#define $2 innocuous_$2
1737
1738/* System header to define __stub macros and hopefully few prototypes,
1739    which can conflict with char $2 (); below.
1740    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741    <limits.h> exists even on freestanding compilers.  */
1742
1743#ifdef __STDC__
1744# include <limits.h>
1745#else
1746# include <assert.h>
1747#endif
1748
1749#undef $2
1750
1751/* Override any GCC internal prototype to avoid an error.
1752   Use char because int might match the return type of a GCC
1753   builtin and then its argument prototype would still apply.  */
1754#ifdef __cplusplus
1755extern "C"
1756#endif
1757char $2 ();
1758/* The GNU C library defines this for functions which it implements
1759    to always fail with ENOSYS.  Some functions are actually named
1760    something starting with __ and the normal name is an alias.  */
1761#if defined __stub_$2 || defined __stub___$2
1762choke me
1763#endif
1764
1765int
1766main ()
1767{
1768return $2 ();
1769  ;
1770  return 0;
1771}
1772_ACEOF
1773if ac_fn_c_try_link "$LINENO"; then :
1774  eval "$3=yes"
1775else
1776  eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext \
1779    conftest$ac_exeext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_func
1787
1788# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791# the include files in INCLUDES and setting the cache variable VAR
1792# accordingly.
1793ac_fn_c_check_header_mongrel ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  if eval \${$3+:} false; then :
1797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if eval \${$3+:} false; then :
1800  $as_echo_n "(cached) " >&6
1801fi
1802eval ac_res=\$$3
1803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805else
1806  # Is the header compilable?
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808$as_echo_n "checking $2 usability... " >&6; }
1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811$4
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815  ac_header_compiler=yes
1816else
1817  ac_header_compiler=no
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821$as_echo "$ac_header_compiler" >&6; }
1822
1823# Is the header present?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825$as_echo_n "checking $2 presence... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h.  */
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_cpp "$LINENO"; then :
1831  ac_header_preproc=yes
1832else
1833  ac_header_preproc=no
1834fi
1835rm -f conftest.err conftest.i conftest.$ac_ext
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837$as_echo "$ac_header_preproc" >&6; }
1838
1839# So?  What about this header?
1840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841  yes:no: )
1842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846    ;;
1847  no:yes:* )
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1851$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1855$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858( $as_echo "## --------------------------------------------------------- ##
1859## Report this to https://github.com/yaml/libyaml/issues/new ##
1860## --------------------------------------------------------- ##"
1861     ) | sed "s/^/$as_me: WARNING:     /" >&2
1862    ;;
1863esac
1864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868else
1869  eval "$3=\$ac_header_compiler"
1870fi
1871eval ac_res=\$$3
1872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874fi
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877} # ac_fn_c_check_header_mongrel
1878
1879# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1880# -------------------------------------------
1881# Tests whether TYPE exists after having included INCLUDES, setting cache
1882# variable VAR accordingly.
1883ac_fn_c_check_type ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if eval \${$3+:} false; then :
1889  $as_echo_n "(cached) " >&6
1890else
1891  eval "$3=no"
1892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h.  */
1894$4
1895int
1896main ()
1897{
1898if (sizeof ($2))
1899	 return 0;
1900  ;
1901  return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907$4
1908int
1909main ()
1910{
1911if (sizeof (($2)))
1912	    return 0;
1913  ;
1914  return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918
1919else
1920  eval "$3=yes"
1921fi
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_type
1932cat >config.log <<_ACEOF
1933This file contains any messages produced by compilers while
1934running configure, to aid debugging if configure makes a mistake.
1935
1936It was created by yaml $as_me 0.2.5, which was
1937generated by GNU Autoconf 2.69.  Invocation command line was
1938
1939  $ $0 $@
1940
1941_ACEOF
1942exec 5>>config.log
1943{
1944cat <<_ASUNAME
1945## --------- ##
1946## Platform. ##
1947## --------- ##
1948
1949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954
1955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1957
1958/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1959/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1961/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1962/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1963/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1964/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1965
1966_ASUNAME
1967
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971  IFS=$as_save_IFS
1972  test -z "$as_dir" && as_dir=.
1973    $as_echo "PATH: $as_dir"
1974  done
1975IFS=$as_save_IFS
1976
1977} >&5
1978
1979cat >&5 <<_ACEOF
1980
1981
1982## ----------- ##
1983## Core tests. ##
1984## ----------- ##
1985
1986_ACEOF
1987
1988
1989# Keep a trace of the command line.
1990# Strip out --no-create and --no-recursion so they do not pile up.
1991# Strip out --silent because we don't want to record it for future runs.
1992# Also quote any args containing shell meta-characters.
1993# Make two passes to allow for proper duplicate-argument suppression.
1994ac_configure_args=
1995ac_configure_args0=
1996ac_configure_args1=
1997ac_must_keep_next=false
1998for ac_pass in 1 2
1999do
2000  for ac_arg
2001  do
2002    case $ac_arg in
2003    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005    | -silent | --silent | --silen | --sile | --sil)
2006      continue ;;
2007    *\'*)
2008      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2009    esac
2010    case $ac_pass in
2011    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2012    2)
2013      as_fn_append ac_configure_args1 " '$ac_arg'"
2014      if test $ac_must_keep_next = true; then
2015	ac_must_keep_next=false # Got value, back to normal.
2016      else
2017	case $ac_arg in
2018	  *=* | --config-cache | -C | -disable-* | --disable-* \
2019	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021	  | -with-* | --with-* | -without-* | --without-* | --x)
2022	    case "$ac_configure_args0 " in
2023	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2024	    esac
2025	    ;;
2026	  -* ) ac_must_keep_next=true ;;
2027	esac
2028      fi
2029      as_fn_append ac_configure_args " '$ac_arg'"
2030      ;;
2031    esac
2032  done
2033done
2034{ ac_configure_args0=; unset ac_configure_args0;}
2035{ ac_configure_args1=; unset ac_configure_args1;}
2036
2037# When interrupted or exit'd, cleanup temporary files, and complete
2038# config.log.  We remove comments because anyway the quotes in there
2039# would cause problems or look ugly.
2040# WARNING: Use '\'' to represent an apostrophe within the trap.
2041# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2042trap 'exit_status=$?
2043  # Save into config.log some information that might help in debugging.
2044  {
2045    echo
2046
2047    $as_echo "## ---------------- ##
2048## Cache variables. ##
2049## ---------------- ##"
2050    echo
2051    # The following way of writing the cache mishandles newlines in values,
2052(
2053  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054    eval ac_val=\$$ac_var
2055    case $ac_val in #(
2056    *${as_nl}*)
2057      case $ac_var in #(
2058      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2060      esac
2061      case $ac_var in #(
2062      _ | IFS | as_nl) ;; #(
2063      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064      *) { eval $ac_var=; unset $ac_var;} ;;
2065      esac ;;
2066    esac
2067  done
2068  (set) 2>&1 |
2069    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070    *${as_nl}ac_space=\ *)
2071      sed -n \
2072	"s/'\''/'\''\\\\'\'''\''/g;
2073	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2074      ;; #(
2075    *)
2076      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2077      ;;
2078    esac |
2079    sort
2080)
2081    echo
2082
2083    $as_echo "## ----------------- ##
2084## Output variables. ##
2085## ----------------- ##"
2086    echo
2087    for ac_var in $ac_subst_vars
2088    do
2089      eval ac_val=\$$ac_var
2090      case $ac_val in
2091      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092      esac
2093      $as_echo "$ac_var='\''$ac_val'\''"
2094    done | sort
2095    echo
2096
2097    if test -n "$ac_subst_files"; then
2098      $as_echo "## ------------------- ##
2099## File substitutions. ##
2100## ------------------- ##"
2101      echo
2102      for ac_var in $ac_subst_files
2103      do
2104	eval ac_val=\$$ac_var
2105	case $ac_val in
2106	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107	esac
2108	$as_echo "$ac_var='\''$ac_val'\''"
2109      done | sort
2110      echo
2111    fi
2112
2113    if test -s confdefs.h; then
2114      $as_echo "## ----------- ##
2115## confdefs.h. ##
2116## ----------- ##"
2117      echo
2118      cat confdefs.h
2119      echo
2120    fi
2121    test "$ac_signal" != 0 &&
2122      $as_echo "$as_me: caught signal $ac_signal"
2123    $as_echo "$as_me: exit $exit_status"
2124  } >&5
2125  rm -f core *.core core.conftest.* &&
2126    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2127    exit $exit_status
2128' 0
2129for ac_signal in 1 2 13 15; do
2130  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2131done
2132ac_signal=0
2133
2134# confdefs.h avoids OS command line length limits that DEFS can exceed.
2135rm -f -r conftest* confdefs.h
2136
2137$as_echo "/* confdefs.h */" > confdefs.h
2138
2139# Predefined preprocessor variables.
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_NAME "$PACKAGE_NAME"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2147_ACEOF
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_VERSION "$PACKAGE_VERSION"
2151_ACEOF
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_STRING "$PACKAGE_STRING"
2155_ACEOF
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2159_ACEOF
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_URL "$PACKAGE_URL"
2163_ACEOF
2164
2165
2166# Let the site file select an alternate cache file if it wants to.
2167# Prefer an explicitly selected file to automatically selected ones.
2168ac_site_file1=NONE
2169ac_site_file2=NONE
2170if test -n "$CONFIG_SITE"; then
2171  # We do not want a PATH search for config.site.
2172  case $CONFIG_SITE in #((
2173    -*)  ac_site_file1=./$CONFIG_SITE;;
2174    */*) ac_site_file1=$CONFIG_SITE;;
2175    *)   ac_site_file1=./$CONFIG_SITE;;
2176  esac
2177elif test "x$prefix" != xNONE; then
2178  ac_site_file1=$prefix/share/config.site
2179  ac_site_file2=$prefix/etc/config.site
2180else
2181  ac_site_file1=$ac_default_prefix/share/config.site
2182  ac_site_file2=$ac_default_prefix/etc/config.site
2183fi
2184for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185do
2186  test "x$ac_site_file" = xNONE && continue
2187  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2188    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2190    sed 's/^/| /' "$ac_site_file" >&5
2191    . "$ac_site_file" \
2192      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194as_fn_error $? "failed to load site script $ac_site_file
2195See \`config.log' for more details" "$LINENO" 5; }
2196  fi
2197done
2198
2199if test -r "$cache_file"; then
2200  # Some versions of bash will fail to source /dev/null (special files
2201  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2202  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2203    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204$as_echo "$as_me: loading cache $cache_file" >&6;}
2205    case $cache_file in
2206      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207      *)                      . "./$cache_file";;
2208    esac
2209  fi
2210else
2211  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212$as_echo "$as_me: creating cache $cache_file" >&6;}
2213  >$cache_file
2214fi
2215
2216# Check that the precious variables saved in the cache have kept the same
2217# value.
2218ac_cache_corrupted=false
2219for ac_var in $ac_precious_vars; do
2220  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221  eval ac_new_set=\$ac_env_${ac_var}_set
2222  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223  eval ac_new_val=\$ac_env_${ac_var}_value
2224  case $ac_old_set,$ac_new_set in
2225    set,)
2226      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228      ac_cache_corrupted=: ;;
2229    ,set)
2230      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232      ac_cache_corrupted=: ;;
2233    ,);;
2234    *)
2235      if test "x$ac_old_val" != "x$ac_new_val"; then
2236	# differences in whitespace do not lead to failure.
2237	ac_old_val_w=`echo x $ac_old_val`
2238	ac_new_val_w=`echo x $ac_new_val`
2239	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242	  ac_cache_corrupted=:
2243	else
2244	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246	  eval $ac_var=\$ac_old_val
2247	fi
2248	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2249$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2250	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2251$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2252      fi;;
2253  esac
2254  # Pass precious variables to config.status.
2255  if test "$ac_new_set" = set; then
2256    case $ac_new_val in
2257    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258    *) ac_arg=$ac_var=$ac_new_val ;;
2259    esac
2260    case " $ac_configure_args " in
2261      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2262      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2263    esac
2264  fi
2265done
2266if $ac_cache_corrupted; then
2267  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2272fi
2273## -------------------- ##
2274## Main body of script. ##
2275## -------------------- ##
2276
2277ac_ext=c
2278ac_cpp='$CPP $CPPFLAGS'
2279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283
2284ac_aux_dir=
2285for ac_dir in config "$srcdir"/config; do
2286  if test -f "$ac_dir/install-sh"; then
2287    ac_aux_dir=$ac_dir
2288    ac_install_sh="$ac_aux_dir/install-sh -c"
2289    break
2290  elif test -f "$ac_dir/install.sh"; then
2291    ac_aux_dir=$ac_dir
2292    ac_install_sh="$ac_aux_dir/install.sh -c"
2293    break
2294  elif test -f "$ac_dir/shtool"; then
2295    ac_aux_dir=$ac_dir
2296    ac_install_sh="$ac_aux_dir/shtool install -c"
2297    break
2298  fi
2299done
2300if test -z "$ac_aux_dir"; then
2301  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2302fi
2303
2304# These three variables are undocumented and unsupported,
2305# and are intended to be withdrawn in a future Autoconf release.
2306# They can cause serious problems if a builder's source tree is in a directory
2307# whose full name contains unusual characters.
2308ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2309ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2310ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2311
2312
2313ac_config_headers="$ac_config_headers include/config.h"
2314
2315am__api_version='1.15'
2316
2317# Find a good install program.  We prefer a C program (faster),
2318# so one script is as good as another.  But avoid the broken or
2319# incompatible versions:
2320# SysV /etc/install, /usr/sbin/install
2321# SunOS /usr/etc/install
2322# IRIX /sbin/install
2323# AIX /bin/install
2324# AmigaOS /C/install, which installs bootblocks on floppy discs
2325# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2326# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2327# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2328# OS/2's system install, which has a completely different semantic
2329# ./install, which can be erroneously created by make from ./install.sh.
2330# Reject install programs that cannot install multiple files.
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2332$as_echo_n "checking for a BSD-compatible install... " >&6; }
2333if test -z "$INSTALL"; then
2334if ${ac_cv_path_install+:} false; then :
2335  $as_echo_n "(cached) " >&6
2336else
2337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340  IFS=$as_save_IFS
2341  test -z "$as_dir" && as_dir=.
2342    # Account for people who put trailing slashes in PATH elements.
2343case $as_dir/ in #((
2344  ./ | .// | /[cC]/* | \
2345  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2346  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2347  /usr/ucb/* ) ;;
2348  *)
2349    # OSF1 and SCO ODT 3.0 have their own names for install.
2350    # Don't use installbsd from OSF since it installs stuff as root
2351    # by default.
2352    for ac_prog in ginstall scoinst install; do
2353      for ac_exec_ext in '' $ac_executable_extensions; do
2354	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2355	  if test $ac_prog = install &&
2356	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2357	    # AIX install.  It has an incompatible calling convention.
2358	    :
2359	  elif test $ac_prog = install &&
2360	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361	    # program-specific install script used by HP pwplus--don't use.
2362	    :
2363	  else
2364	    rm -rf conftest.one conftest.two conftest.dir
2365	    echo one > conftest.one
2366	    echo two > conftest.two
2367	    mkdir conftest.dir
2368	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2369	      test -s conftest.one && test -s conftest.two &&
2370	      test -s conftest.dir/conftest.one &&
2371	      test -s conftest.dir/conftest.two
2372	    then
2373	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2374	      break 3
2375	    fi
2376	  fi
2377	fi
2378      done
2379    done
2380    ;;
2381esac
2382
2383  done
2384IFS=$as_save_IFS
2385
2386rm -rf conftest.one conftest.two conftest.dir
2387
2388fi
2389  if test "${ac_cv_path_install+set}" = set; then
2390    INSTALL=$ac_cv_path_install
2391  else
2392    # As a last resort, use the slow shell script.  Don't cache a
2393    # value for INSTALL within a source directory, because that will
2394    # break other packages using the cache if that directory is
2395    # removed, or if the value is a relative name.
2396    INSTALL=$ac_install_sh
2397  fi
2398fi
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2400$as_echo "$INSTALL" >&6; }
2401
2402# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2403# It thinks the first close brace ends the variable substitution.
2404test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2405
2406test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2407
2408test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2409
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2411$as_echo_n "checking whether build environment is sane... " >&6; }
2412# Reject unsafe characters in $srcdir or the absolute working directory
2413# name.  Accept space and tab only in the latter.
2414am_lf='
2415'
2416case `pwd` in
2417  *[\\\"\#\$\&\'\`$am_lf]*)
2418    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2419esac
2420case $srcdir in
2421  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2422    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2423esac
2424
2425# Do 'set' in a subshell so we don't clobber the current shell's
2426# arguments.  Must try -L first in case configure is actually a
2427# symlink; some systems play weird games with the mod time of symlinks
2428# (eg FreeBSD returns the mod time of the symlink's containing
2429# directory).
2430if (
2431   am_has_slept=no
2432   for am_try in 1 2; do
2433     echo "timestamp, slept: $am_has_slept" > conftest.file
2434     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2435     if test "$*" = "X"; then
2436	# -L didn't work.
2437	set X `ls -t "$srcdir/configure" conftest.file`
2438     fi
2439     if test "$*" != "X $srcdir/configure conftest.file" \
2440	&& test "$*" != "X conftest.file $srcdir/configure"; then
2441
2442	# If neither matched, then we have a broken ls.  This can happen
2443	# if, for instance, CONFIG_SHELL is bash and it inherits a
2444	# broken ls alias from the environment.  This has actually
2445	# happened.  Such a system could not be considered "sane".
2446	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2447  alias in your environment" "$LINENO" 5
2448     fi
2449     if test "$2" = conftest.file || test $am_try -eq 2; then
2450       break
2451     fi
2452     # Just in case.
2453     sleep 1
2454     am_has_slept=yes
2455   done
2456   test "$2" = conftest.file
2457   )
2458then
2459   # Ok.
2460   :
2461else
2462   as_fn_error $? "newly created file is older than distributed files!
2463Check your system clock" "$LINENO" 5
2464fi
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2466$as_echo "yes" >&6; }
2467# If we didn't sleep, we still need to ensure time stamps of config.status and
2468# generated files are strictly newer.
2469am_sleep_pid=
2470if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2471  ( sleep 1 ) &
2472  am_sleep_pid=$!
2473fi
2474
2475rm -f conftest.file
2476
2477test "$program_prefix" != NONE &&
2478  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2479# Use a double $ so make ignores it.
2480test "$program_suffix" != NONE &&
2481  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2482# Double any \ or $.
2483# By default was `s,x,x', remove it if useless.
2484ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2485program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2486
2487# Expand $ac_aux_dir to an absolute path.
2488am_aux_dir=`cd "$ac_aux_dir" && pwd`
2489
2490if test x"${MISSING+set}" != xset; then
2491  case $am_aux_dir in
2492  *\ * | *\	*)
2493    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2494  *)
2495    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2496  esac
2497fi
2498# Use eval to expand $SHELL
2499if eval "$MISSING --is-lightweight"; then
2500  am_missing_run="$MISSING "
2501else
2502  am_missing_run=
2503  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2504$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2505fi
2506
2507if test x"${install_sh+set}" != xset; then
2508  case $am_aux_dir in
2509  *\ * | *\	*)
2510    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2511  *)
2512    install_sh="\${SHELL} $am_aux_dir/install-sh"
2513  esac
2514fi
2515
2516# Installed binaries are usually stripped using 'strip' when the user
2517# run "make install-strip".  However 'strip' might not be the right
2518# tool to use in cross-compilation environments, therefore Automake
2519# will honor the 'STRIP' environment variable to overrule this program.
2520if test "$cross_compiling" != no; then
2521  if test -n "$ac_tool_prefix"; then
2522  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2523set dummy ${ac_tool_prefix}strip; ac_word=$2
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525$as_echo_n "checking for $ac_word... " >&6; }
2526if ${ac_cv_prog_STRIP+:} false; then :
2527  $as_echo_n "(cached) " >&6
2528else
2529  if test -n "$STRIP"; then
2530  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535  IFS=$as_save_IFS
2536  test -z "$as_dir" && as_dir=.
2537    for ac_exec_ext in '' $ac_executable_extensions; do
2538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541    break 2
2542  fi
2543done
2544  done
2545IFS=$as_save_IFS
2546
2547fi
2548fi
2549STRIP=$ac_cv_prog_STRIP
2550if test -n "$STRIP"; then
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2552$as_echo "$STRIP" >&6; }
2553else
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555$as_echo "no" >&6; }
2556fi
2557
2558
2559fi
2560if test -z "$ac_cv_prog_STRIP"; then
2561  ac_ct_STRIP=$STRIP
2562  # Extract the first word of "strip", so it can be a program name with args.
2563set dummy strip; ac_word=$2
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565$as_echo_n "checking for $ac_word... " >&6; }
2566if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2567  $as_echo_n "(cached) " >&6
2568else
2569  if test -n "$ac_ct_STRIP"; then
2570  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2571else
2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573for as_dir in $PATH
2574do
2575  IFS=$as_save_IFS
2576  test -z "$as_dir" && as_dir=.
2577    for ac_exec_ext in '' $ac_executable_extensions; do
2578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2579    ac_cv_prog_ac_ct_STRIP="strip"
2580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581    break 2
2582  fi
2583done
2584  done
2585IFS=$as_save_IFS
2586
2587fi
2588fi
2589ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2590if test -n "$ac_ct_STRIP"; then
2591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2592$as_echo "$ac_ct_STRIP" >&6; }
2593else
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595$as_echo "no" >&6; }
2596fi
2597
2598  if test "x$ac_ct_STRIP" = x; then
2599    STRIP=":"
2600  else
2601    case $cross_compiling:$ac_tool_warned in
2602yes:)
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2605ac_tool_warned=yes ;;
2606esac
2607    STRIP=$ac_ct_STRIP
2608  fi
2609else
2610  STRIP="$ac_cv_prog_STRIP"
2611fi
2612
2613fi
2614INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2615
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2617$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2618if test -z "$MKDIR_P"; then
2619  if ${ac_cv_path_mkdir+:} false; then :
2620  $as_echo_n "(cached) " >&6
2621else
2622  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2624do
2625  IFS=$as_save_IFS
2626  test -z "$as_dir" && as_dir=.
2627    for ac_prog in mkdir gmkdir; do
2628	 for ac_exec_ext in '' $ac_executable_extensions; do
2629	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2630	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2631	     'mkdir (GNU coreutils) '* | \
2632	     'mkdir (coreutils) '* | \
2633	     'mkdir (fileutils) '4.1*)
2634	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2635	       break 3;;
2636	   esac
2637	 done
2638       done
2639  done
2640IFS=$as_save_IFS
2641
2642fi
2643
2644  test -d ./--version && rmdir ./--version
2645  if test "${ac_cv_path_mkdir+set}" = set; then
2646    MKDIR_P="$ac_cv_path_mkdir -p"
2647  else
2648    # As a last resort, use the slow shell script.  Don't cache a
2649    # value for MKDIR_P within a source directory, because that will
2650    # break other packages using the cache if that directory is
2651    # removed, or if the value is a relative name.
2652    MKDIR_P="$ac_install_sh -d"
2653  fi
2654fi
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2656$as_echo "$MKDIR_P" >&6; }
2657
2658for ac_prog in gawk mawk nawk awk
2659do
2660  # Extract the first word of "$ac_prog", so it can be a program name with args.
2661set dummy $ac_prog; ac_word=$2
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663$as_echo_n "checking for $ac_word... " >&6; }
2664if ${ac_cv_prog_AWK+:} false; then :
2665  $as_echo_n "(cached) " >&6
2666else
2667  if test -n "$AWK"; then
2668  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2669else
2670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671for as_dir in $PATH
2672do
2673  IFS=$as_save_IFS
2674  test -z "$as_dir" && as_dir=.
2675    for ac_exec_ext in '' $ac_executable_extensions; do
2676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677    ac_cv_prog_AWK="$ac_prog"
2678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679    break 2
2680  fi
2681done
2682  done
2683IFS=$as_save_IFS
2684
2685fi
2686fi
2687AWK=$ac_cv_prog_AWK
2688if test -n "$AWK"; then
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2690$as_echo "$AWK" >&6; }
2691else
2692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693$as_echo "no" >&6; }
2694fi
2695
2696
2697  test -n "$AWK" && break
2698done
2699
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2701$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2702set x ${MAKE-make}
2703ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2704if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2705  $as_echo_n "(cached) " >&6
2706else
2707  cat >conftest.make <<\_ACEOF
2708SHELL = /bin/sh
2709all:
2710	@echo '@@@%%%=$(MAKE)=@@@%%%'
2711_ACEOF
2712# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2713case `${MAKE-make} -f conftest.make 2>/dev/null` in
2714  *@@@%%%=?*=@@@%%%*)
2715    eval ac_cv_prog_make_${ac_make}_set=yes;;
2716  *)
2717    eval ac_cv_prog_make_${ac_make}_set=no;;
2718esac
2719rm -f conftest.make
2720fi
2721if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2723$as_echo "yes" >&6; }
2724  SET_MAKE=
2725else
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727$as_echo "no" >&6; }
2728  SET_MAKE="MAKE=${MAKE-make}"
2729fi
2730
2731rm -rf .tst 2>/dev/null
2732mkdir .tst 2>/dev/null
2733if test -d .tst; then
2734  am__leading_dot=.
2735else
2736  am__leading_dot=_
2737fi
2738rmdir .tst 2>/dev/null
2739
2740# Check whether --enable-silent-rules was given.
2741if test "${enable_silent_rules+set}" = set; then :
2742  enableval=$enable_silent_rules;
2743fi
2744
2745case $enable_silent_rules in # (((
2746  yes) AM_DEFAULT_VERBOSITY=0;;
2747   no) AM_DEFAULT_VERBOSITY=1;;
2748    *) AM_DEFAULT_VERBOSITY=1;;
2749esac
2750am_make=${MAKE-make}
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2752$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2753if ${am_cv_make_support_nested_variables+:} false; then :
2754  $as_echo_n "(cached) " >&6
2755else
2756  if $as_echo 'TRUE=$(BAR$(V))
2757BAR0=false
2758BAR1=true
2759V=1
2760am__doit:
2761	@$(TRUE)
2762.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2763  am_cv_make_support_nested_variables=yes
2764else
2765  am_cv_make_support_nested_variables=no
2766fi
2767fi
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2769$as_echo "$am_cv_make_support_nested_variables" >&6; }
2770if test $am_cv_make_support_nested_variables = yes; then
2771    AM_V='$(V)'
2772  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2773else
2774  AM_V=$AM_DEFAULT_VERBOSITY
2775  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2776fi
2777AM_BACKSLASH='\'
2778
2779if test "`cd $srcdir && pwd`" != "`pwd`"; then
2780  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2781  # is not polluted with repeated "-I."
2782  am__isrc=' -I$(srcdir)'
2783  # test to see if srcdir already configured
2784  if test -f $srcdir/config.status; then
2785    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2786  fi
2787fi
2788
2789# test whether we have cygpath
2790if test -z "$CYGPATH_W"; then
2791  if (cygpath --version) >/dev/null 2>/dev/null; then
2792    CYGPATH_W='cygpath -w'
2793  else
2794    CYGPATH_W=echo
2795  fi
2796fi
2797
2798
2799# Define the identity of the package.
2800 PACKAGE='yaml'
2801 VERSION='0.2.5'
2802
2803
2804cat >>confdefs.h <<_ACEOF
2805#define PACKAGE "$PACKAGE"
2806_ACEOF
2807
2808
2809cat >>confdefs.h <<_ACEOF
2810#define VERSION "$VERSION"
2811_ACEOF
2812
2813# Some tools Automake needs.
2814
2815ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2816
2817
2818AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2819
2820
2821AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2822
2823
2824AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2825
2826
2827MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2828
2829# For better backward compatibility.  To be removed once Automake 1.9.x
2830# dies out for good.  For more background, see:
2831# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2832# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2833mkdir_p='$(MKDIR_P)'
2834
2835# We need awk for the "check" target (and possibly the TAP driver).  The
2836# system "awk" is bad on some platforms.
2837# Always define AMTAR for backward compatibility.  Yes, it's still used
2838# in the wild :-(  We should find a proper way to deprecate it ...
2839AMTAR='$${TAR-tar}'
2840
2841
2842# We'll loop over all known methods to create a tar archive until one works.
2843_am_tools='gnutar  pax cpio none'
2844
2845am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2846
2847
2848
2849
2850
2851
2852# POSIX will say in a future version that running "rm -f" with no argument
2853# is OK; and we want to be able to make that assumption in our Makefile
2854# recipes.  So use an aggressive probe to check that the usage we want is
2855# actually supported "in the wild" to an acceptable degree.
2856# See automake bug#10828.
2857# To make any issue more visible, cause the running configure to be aborted
2858# by default if the 'rm' program in use doesn't match our expectations; the
2859# user can still override this though.
2860if rm -f && rm -fr && rm -rf; then : OK; else
2861  cat >&2 <<'END'
2862Oops!
2863
2864Your 'rm' program seems unable to run without file operands specified
2865on the command line, even when the '-f' option is present.  This is contrary
2866to the behaviour of most rm programs out there, and not conforming with
2867the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2868
2869Please tell bug-automake@gnu.org about your system, including the value
2870of your $PATH and any error possibly output before this message.  This
2871can help us improve future automake versions.
2872
2873END
2874  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2875    echo 'Configuration will proceed anyway, since you have set the' >&2
2876    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2877    echo >&2
2878  else
2879    cat >&2 <<'END'
2880Aborting the configuration process, to ensure you take notice of the issue.
2881
2882You can download and install GNU coreutils to get an 'rm' implementation
2883that behaves properly: <http://www.gnu.org/software/coreutils/>.
2884
2885If you want to complete the configuration process using your problematic
2886'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2887to "yes", and re-run configure.
2888
2889END
2890    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2891  fi
2892fi
2893
2894
2895# Define macro variables for the package version numbers.
2896
2897$as_echo "#define YAML_VERSION_MAJOR 0" >>confdefs.h
2898
2899
2900$as_echo "#define YAML_VERSION_MINOR 2" >>confdefs.h
2901
2902
2903$as_echo "#define YAML_VERSION_PATCH 5" >>confdefs.h
2904
2905
2906$as_echo "#define YAML_VERSION_STRING \"0.2.5\"" >>confdefs.h
2907
2908
2909# Define substitutions for the libtool version numbers.
2910YAML_LT_RELEASE=0
2911YAML_LT_CURRENT=2
2912YAML_LT_REVISION=9
2913YAML_LT_AGE=0
2914
2915
2916
2917
2918
2919# Note: in order to update checks, run `autoscan` and look through "configure.scan".
2920
2921# Checks for programs.
2922ac_ext=c
2923ac_cpp='$CPP $CPPFLAGS'
2924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927if test -n "$ac_tool_prefix"; then
2928  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2929set dummy ${ac_tool_prefix}gcc; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if ${ac_cv_prog_CC+:} false; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test -n "$CC"; then
2936  ac_cv_prog_CC="$CC" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941  IFS=$as_save_IFS
2942  test -z "$as_dir" && as_dir=.
2943    for ac_exec_ext in '' $ac_executable_extensions; do
2944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947    break 2
2948  fi
2949done
2950  done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955CC=$ac_cv_prog_CC
2956if test -n "$CC"; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958$as_echo "$CC" >&6; }
2959else
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965fi
2966if test -z "$ac_cv_prog_CC"; then
2967  ac_ct_CC=$CC
2968  # Extract the first word of "gcc", so it can be a program name with args.
2969set dummy gcc; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if ${ac_cv_prog_ac_ct_CC+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  if test -n "$ac_ct_CC"; then
2976  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983    for ac_exec_ext in '' $ac_executable_extensions; do
2984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985    ac_cv_prog_ac_ct_CC="gcc"
2986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990  done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996if test -n "$ac_ct_CC"; then
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2998$as_echo "$ac_ct_CC" >&6; }
2999else
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004  if test "x$ac_ct_CC" = x; then
3005    CC=""
3006  else
3007    case $cross_compiling:$ac_tool_warned in
3008yes:)
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011ac_tool_warned=yes ;;
3012esac
3013    CC=$ac_ct_CC
3014  fi
3015else
3016  CC="$ac_cv_prog_CC"
3017fi
3018
3019if test -z "$CC"; then
3020          if test -n "$ac_tool_prefix"; then
3021    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3022set dummy ${ac_tool_prefix}cc; ac_word=$2
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024$as_echo_n "checking for $ac_word... " >&6; }
3025if ${ac_cv_prog_CC+:} false; then :
3026  $as_echo_n "(cached) " >&6
3027else
3028  if test -n "$CC"; then
3029  ac_cv_prog_CC="$CC" # Let the user override the test.
3030else
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034  IFS=$as_save_IFS
3035  test -z "$as_dir" && as_dir=.
3036    for ac_exec_ext in '' $ac_executable_extensions; do
3037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038    ac_cv_prog_CC="${ac_tool_prefix}cc"
3039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043  done
3044IFS=$as_save_IFS
3045
3046fi
3047fi
3048CC=$ac_cv_prog_CC
3049if test -n "$CC"; then
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051$as_echo "$CC" >&6; }
3052else
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055fi
3056
3057
3058  fi
3059fi
3060if test -z "$CC"; then
3061  # Extract the first word of "cc", so it can be a program name with args.
3062set dummy cc; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071  ac_prog_rejected=no
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077    for ac_exec_ext in '' $ac_executable_extensions; do
3078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3080       ac_prog_rejected=yes
3081       continue
3082     fi
3083    ac_cv_prog_CC="cc"
3084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085    break 2
3086  fi
3087done
3088  done
3089IFS=$as_save_IFS
3090
3091if test $ac_prog_rejected = yes; then
3092  # We found a bogon in the path, so make sure we never use it.
3093  set dummy $ac_cv_prog_CC
3094  shift
3095  if test $# != 0; then
3096    # We chose a different compiler from the bogus one.
3097    # However, it has the same basename, so the bogon will be chosen
3098    # first if we set CC to just the basename; use the full file name.
3099    shift
3100    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3101  fi
3102fi
3103fi
3104fi
3105CC=$ac_cv_prog_CC
3106if test -n "$CC"; then
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108$as_echo "$CC" >&6; }
3109else
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112fi
3113
3114
3115fi
3116if test -z "$CC"; then
3117  if test -n "$ac_tool_prefix"; then
3118  for ac_prog in cl.exe
3119  do
3120    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123$as_echo_n "checking for $ac_word... " >&6; }
3124if ${ac_cv_prog_CC+:} false; then :
3125  $as_echo_n "(cached) " >&6
3126else
3127  if test -n "$CC"; then
3128  ac_cv_prog_CC="$CC" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135    for ac_exec_ext in '' $ac_executable_extensions; do
3136  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3138    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139    break 2
3140  fi
3141done
3142  done
3143IFS=$as_save_IFS
3144
3145fi
3146fi
3147CC=$ac_cv_prog_CC
3148if test -n "$CC"; then
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150$as_echo "$CC" >&6; }
3151else
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156
3157    test -n "$CC" && break
3158  done
3159fi
3160if test -z "$CC"; then
3161  ac_ct_CC=$CC
3162  for ac_prog in cl.exe
3163do
3164  # Extract the first word of "$ac_prog", so it can be a program name with args.
3165set dummy $ac_prog; ac_word=$2
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167$as_echo_n "checking for $ac_word... " >&6; }
3168if ${ac_cv_prog_ac_ct_CC+:} false; then :
3169  $as_echo_n "(cached) " >&6
3170else
3171  if test -n "$ac_ct_CC"; then
3172  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177  IFS=$as_save_IFS
3178  test -z "$as_dir" && as_dir=.
3179    for ac_exec_ext in '' $ac_executable_extensions; do
3180  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181    ac_cv_prog_ac_ct_CC="$ac_prog"
3182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183    break 2
3184  fi
3185done
3186  done
3187IFS=$as_save_IFS
3188
3189fi
3190fi
3191ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192if test -n "$ac_ct_CC"; then
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194$as_echo "$ac_ct_CC" >&6; }
3195else
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198fi
3199
3200
3201  test -n "$ac_ct_CC" && break
3202done
3203
3204  if test "x$ac_ct_CC" = x; then
3205    CC=""
3206  else
3207    case $cross_compiling:$ac_tool_warned in
3208yes:)
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211ac_tool_warned=yes ;;
3212esac
3213    CC=$ac_ct_CC
3214  fi
3215fi
3216
3217fi
3218
3219
3220test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222as_fn_error $? "no acceptable C compiler found in \$PATH
3223See \`config.log' for more details" "$LINENO" 5; }
3224
3225# Provide some information about the compiler.
3226$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3227set X $ac_compile
3228ac_compiler=$2
3229for ac_option in --version -v -V -qversion; do
3230  { { ac_try="$ac_compiler $ac_option >&5"
3231case "(($ac_try" in
3232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233  *) ac_try_echo=$ac_try;;
3234esac
3235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236$as_echo "$ac_try_echo"; } >&5
3237  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3238  ac_status=$?
3239  if test -s conftest.err; then
3240    sed '10a\
3241... rest of stderr output deleted ...
3242         10q' conftest.err >conftest.er1
3243    cat conftest.er1 >&5
3244  fi
3245  rm -f conftest.er1 conftest.err
3246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247  test $ac_status = 0; }
3248done
3249
3250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251/* end confdefs.h.  */
3252
3253int
3254main ()
3255{
3256
3257  ;
3258  return 0;
3259}
3260_ACEOF
3261ac_clean_files_save=$ac_clean_files
3262ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3263# Try to create an executable without -o first, disregard a.out.
3264# It will help us diagnose broken compilers, and finding out an intuition
3265# of exeext.
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3267$as_echo_n "checking whether the C compiler works... " >&6; }
3268ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3269
3270# The possible output files:
3271ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3272
3273ac_rmfiles=
3274for ac_file in $ac_files
3275do
3276  case $ac_file in
3277    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3279  esac
3280done
3281rm -f $ac_rmfiles
3282
3283if { { ac_try="$ac_link_default"
3284case "(($ac_try" in
3285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286  *) ac_try_echo=$ac_try;;
3287esac
3288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289$as_echo "$ac_try_echo"; } >&5
3290  (eval "$ac_link_default") 2>&5
3291  ac_status=$?
3292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293  test $ac_status = 0; }; then :
3294  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3295# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3296# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3297# so that the user can short-circuit this test for compilers unknown to
3298# Autoconf.
3299for ac_file in $ac_files ''
3300do
3301  test -f "$ac_file" || continue
3302  case $ac_file in
3303    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3304	;;
3305    [ab].out )
3306	# We found the default executable, but exeext='' is most
3307	# certainly right.
3308	break;;
3309    *.* )
3310	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3311	then :; else
3312	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313	fi
3314	# We set ac_cv_exeext here because the later test for it is not
3315	# safe: cross compilers may not add the suffix if given an `-o'
3316	# argument, so we may need to know it at that point already.
3317	# Even if this section looks crufty: it has the advantage of
3318	# actually working.
3319	break;;
3320    * )
3321	break;;
3322  esac
3323done
3324test "$ac_cv_exeext" = no && ac_cv_exeext=
3325
3326else
3327  ac_file=''
3328fi
3329if test -z "$ac_file"; then :
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
3332$as_echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337as_fn_error 77 "C compiler cannot create executables
3338See \`config.log' for more details" "$LINENO" 5; }
3339else
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341$as_echo "yes" >&6; }
3342fi
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3344$as_echo_n "checking for C compiler default output file name... " >&6; }
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3346$as_echo "$ac_file" >&6; }
3347ac_exeext=$ac_cv_exeext
3348
3349rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3350ac_clean_files=$ac_clean_files_save
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3352$as_echo_n "checking for suffix of executables... " >&6; }
3353if { { ac_try="$ac_link"
3354case "(($ac_try" in
3355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356  *) ac_try_echo=$ac_try;;
3357esac
3358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359$as_echo "$ac_try_echo"; } >&5
3360  (eval "$ac_link") 2>&5
3361  ac_status=$?
3362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363  test $ac_status = 0; }; then :
3364  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3365# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3366# work properly (i.e., refer to `conftest.exe'), while it won't with
3367# `rm'.
3368for ac_file in conftest.exe conftest conftest.*; do
3369  test -f "$ac_file" || continue
3370  case $ac_file in
3371    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3372    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3373	  break;;
3374    * ) break;;
3375  esac
3376done
3377else
3378  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3381See \`config.log' for more details" "$LINENO" 5; }
3382fi
3383rm -f conftest conftest$ac_cv_exeext
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3385$as_echo "$ac_cv_exeext" >&6; }
3386
3387rm -f conftest.$ac_ext
3388EXEEXT=$ac_cv_exeext
3389ac_exeext=$EXEEXT
3390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391/* end confdefs.h.  */
3392#include <stdio.h>
3393int
3394main ()
3395{
3396FILE *f = fopen ("conftest.out", "w");
3397 return ferror (f) || fclose (f) != 0;
3398
3399  ;
3400  return 0;
3401}
3402_ACEOF
3403ac_clean_files="$ac_clean_files conftest.out"
3404# Check that the compiler produces executables we can run.  If not, either
3405# the compiler is broken, or we cross compile.
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3407$as_echo_n "checking whether we are cross compiling... " >&6; }
3408if test "$cross_compiling" != yes; then
3409  { { ac_try="$ac_link"
3410case "(($ac_try" in
3411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412  *) ac_try_echo=$ac_try;;
3413esac
3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415$as_echo "$ac_try_echo"; } >&5
3416  (eval "$ac_link") 2>&5
3417  ac_status=$?
3418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419  test $ac_status = 0; }
3420  if { ac_try='./conftest$ac_cv_exeext'
3421  { { case "(($ac_try" in
3422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423  *) ac_try_echo=$ac_try;;
3424esac
3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426$as_echo "$ac_try_echo"; } >&5
3427  (eval "$ac_try") 2>&5
3428  ac_status=$?
3429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430  test $ac_status = 0; }; }; then
3431    cross_compiling=no
3432  else
3433    if test "$cross_compiling" = maybe; then
3434	cross_compiling=yes
3435    else
3436	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438as_fn_error $? "cannot run C compiled programs.
3439If you meant to cross compile, use \`--host'.
3440See \`config.log' for more details" "$LINENO" 5; }
3441    fi
3442  fi
3443fi
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3445$as_echo "$cross_compiling" >&6; }
3446
3447rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3448ac_clean_files=$ac_clean_files_save
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3450$as_echo_n "checking for suffix of object files... " >&6; }
3451if ${ac_cv_objext+:} false; then :
3452  $as_echo_n "(cached) " >&6
3453else
3454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455/* end confdefs.h.  */
3456
3457int
3458main ()
3459{
3460
3461  ;
3462  return 0;
3463}
3464_ACEOF
3465rm -f conftest.o conftest.obj
3466if { { ac_try="$ac_compile"
3467case "(($ac_try" in
3468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469  *) ac_try_echo=$ac_try;;
3470esac
3471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472$as_echo "$ac_try_echo"; } >&5
3473  (eval "$ac_compile") 2>&5
3474  ac_status=$?
3475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476  test $ac_status = 0; }; then :
3477  for ac_file in conftest.o conftest.obj conftest.*; do
3478  test -f "$ac_file" || continue;
3479  case $ac_file in
3480    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3481    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3482       break;;
3483  esac
3484done
3485else
3486  $as_echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491as_fn_error $? "cannot compute suffix of object files: cannot compile
3492See \`config.log' for more details" "$LINENO" 5; }
3493fi
3494rm -f conftest.$ac_cv_objext conftest.$ac_ext
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3497$as_echo "$ac_cv_objext" >&6; }
3498OBJEXT=$ac_cv_objext
3499ac_objext=$OBJEXT
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3501$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3502if ${ac_cv_c_compiler_gnu+:} false; then :
3503  $as_echo_n "(cached) " >&6
3504else
3505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506/* end confdefs.h.  */
3507
3508int
3509main ()
3510{
3511#ifndef __GNUC__
3512       choke me
3513#endif
3514
3515  ;
3516  return 0;
3517}
3518_ACEOF
3519if ac_fn_c_try_compile "$LINENO"; then :
3520  ac_compiler_gnu=yes
3521else
3522  ac_compiler_gnu=no
3523fi
3524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525ac_cv_c_compiler_gnu=$ac_compiler_gnu
3526
3527fi
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3529$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3530if test $ac_compiler_gnu = yes; then
3531  GCC=yes
3532else
3533  GCC=
3534fi
3535ac_test_CFLAGS=${CFLAGS+set}
3536ac_save_CFLAGS=$CFLAGS
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3538$as_echo_n "checking whether $CC accepts -g... " >&6; }
3539if ${ac_cv_prog_cc_g+:} false; then :
3540  $as_echo_n "(cached) " >&6
3541else
3542  ac_save_c_werror_flag=$ac_c_werror_flag
3543   ac_c_werror_flag=yes
3544   ac_cv_prog_cc_g=no
3545   CFLAGS="-g"
3546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547/* end confdefs.h.  */
3548
3549int
3550main ()
3551{
3552
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557if ac_fn_c_try_compile "$LINENO"; then :
3558  ac_cv_prog_cc_g=yes
3559else
3560  CFLAGS=""
3561      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h.  */
3563
3564int
3565main ()
3566{
3567
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572if ac_fn_c_try_compile "$LINENO"; then :
3573
3574else
3575  ac_c_werror_flag=$ac_save_c_werror_flag
3576	 CFLAGS="-g"
3577	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h.  */
3579
3580int
3581main ()
3582{
3583
3584  ;
3585  return 0;
3586}
3587_ACEOF
3588if ac_fn_c_try_compile "$LINENO"; then :
3589  ac_cv_prog_cc_g=yes
3590fi
3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592fi
3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594fi
3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596   ac_c_werror_flag=$ac_save_c_werror_flag
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3599$as_echo "$ac_cv_prog_cc_g" >&6; }
3600if test "$ac_test_CFLAGS" = set; then
3601  CFLAGS=$ac_save_CFLAGS
3602elif test $ac_cv_prog_cc_g = yes; then
3603  if test "$GCC" = yes; then
3604    CFLAGS="-g -O2"
3605  else
3606    CFLAGS="-g"
3607  fi
3608else
3609  if test "$GCC" = yes; then
3610    CFLAGS="-O2"
3611  else
3612    CFLAGS=
3613  fi
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3616$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3617if ${ac_cv_prog_cc_c89+:} false; then :
3618  $as_echo_n "(cached) " >&6
3619else
3620  ac_cv_prog_cc_c89=no
3621ac_save_CC=$CC
3622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623/* end confdefs.h.  */
3624#include <stdarg.h>
3625#include <stdio.h>
3626struct stat;
3627/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3628struct buf { int x; };
3629FILE * (*rcsopen) (struct buf *, struct stat *, int);
3630static char *e (p, i)
3631     char **p;
3632     int i;
3633{
3634  return p[i];
3635}
3636static char *f (char * (*g) (char **, int), char **p, ...)
3637{
3638  char *s;
3639  va_list v;
3640  va_start (v,p);
3641  s = g (p, va_arg (v,int));
3642  va_end (v);
3643  return s;
3644}
3645
3646/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3647   function prototypes and stuff, but not '\xHH' hex character constants.
3648   These don't provoke an error unfortunately, instead are silently treated
3649   as 'x'.  The following induces an error, until -std is added to get
3650   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3651   array size at least.  It's necessary to write '\x00'==0 to get something
3652   that's true only with -std.  */
3653int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3654
3655/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3656   inside strings and character constants.  */
3657#define FOO(x) 'x'
3658int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3659
3660int test (int i, double x);
3661struct s1 {int (*f) (int a);};
3662struct s2 {int (*f) (double a);};
3663int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664int argc;
3665char **argv;
3666int
3667main ()
3668{
3669return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3675	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3676do
3677  CC="$ac_save_CC $ac_arg"
3678  if ac_fn_c_try_compile "$LINENO"; then :
3679  ac_cv_prog_cc_c89=$ac_arg
3680fi
3681rm -f core conftest.err conftest.$ac_objext
3682  test "x$ac_cv_prog_cc_c89" != "xno" && break
3683done
3684rm -f conftest.$ac_ext
3685CC=$ac_save_CC
3686
3687fi
3688# AC_CACHE_VAL
3689case "x$ac_cv_prog_cc_c89" in
3690  x)
3691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3692$as_echo "none needed" >&6; } ;;
3693  xno)
3694    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3695$as_echo "unsupported" >&6; } ;;
3696  *)
3697    CC="$CC $ac_cv_prog_cc_c89"
3698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3699$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3700esac
3701if test "x$ac_cv_prog_cc_c89" != xno; then :
3702
3703fi
3704
3705ac_ext=c
3706ac_cpp='$CPP $CPPFLAGS'
3707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711ac_ext=c
3712ac_cpp='$CPP $CPPFLAGS'
3713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3717$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3718if ${am_cv_prog_cc_c_o+:} false; then :
3719  $as_echo_n "(cached) " >&6
3720else
3721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723
3724int
3725main ()
3726{
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732  # Make sure it works both with $CC and with simple cc.
3733  # Following AC_PROG_CC_C_O, we do the test twice because some
3734  # compilers refuse to overwrite an existing .o file with -o,
3735  # though they will create one.
3736  am_cv_prog_cc_c_o=yes
3737  for am_i in 1 2; do
3738    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3739   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } \
3743         && test -f conftest2.$ac_objext; then
3744      : OK
3745    else
3746      am_cv_prog_cc_c_o=no
3747      break
3748    fi
3749  done
3750  rm -f core conftest*
3751  unset am_i
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3754$as_echo "$am_cv_prog_cc_c_o" >&6; }
3755if test "$am_cv_prog_cc_c_o" != yes; then
3756   # Losing compiler, so override with the script.
3757   # FIXME: It is wrong to rewrite CC.
3758   # But if we don't then we get into trouble of one sort or another.
3759   # A longer-term fix would be to have automake use am__CC in this case,
3760   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3761   CC="$am_aux_dir/compile $CC"
3762fi
3763ac_ext=c
3764ac_cpp='$CPP $CPPFLAGS'
3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768
3769DEPDIR="${am__leading_dot}deps"
3770
3771ac_config_commands="$ac_config_commands depfiles"
3772
3773
3774am_make=${MAKE-make}
3775cat > confinc << 'END'
3776am__doit:
3777	@echo this is the am__doit target
3778.PHONY: am__doit
3779END
3780# If we don't find an include directive, just comment out the code.
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3782$as_echo_n "checking for style of include used by $am_make... " >&6; }
3783am__include="#"
3784am__quote=
3785_am_result=none
3786# First try GNU make style include.
3787echo "include confinc" > confmf
3788# Ignore all kinds of additional output from 'make'.
3789case `$am_make -s -f confmf 2> /dev/null` in #(
3790*the\ am__doit\ target*)
3791  am__include=include
3792  am__quote=
3793  _am_result=GNU
3794  ;;
3795esac
3796# Now try BSD make style include.
3797if test "$am__include" = "#"; then
3798   echo '.include "confinc"' > confmf
3799   case `$am_make -s -f confmf 2> /dev/null` in #(
3800   *the\ am__doit\ target*)
3801     am__include=.include
3802     am__quote="\""
3803     _am_result=BSD
3804     ;;
3805   esac
3806fi
3807
3808
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3810$as_echo "$_am_result" >&6; }
3811rm -f confinc confmf
3812
3813# Check whether --enable-dependency-tracking was given.
3814if test "${enable_dependency_tracking+set}" = set; then :
3815  enableval=$enable_dependency_tracking;
3816fi
3817
3818if test "x$enable_dependency_tracking" != xno; then
3819  am_depcomp="$ac_aux_dir/depcomp"
3820  AMDEPBACKSLASH='\'
3821  am__nodep='_no'
3822fi
3823 if test "x$enable_dependency_tracking" != xno; then
3824  AMDEP_TRUE=
3825  AMDEP_FALSE='#'
3826else
3827  AMDEP_TRUE='#'
3828  AMDEP_FALSE=
3829fi
3830
3831
3832
3833depcc="$CC"   am_compiler_list=
3834
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3836$as_echo_n "checking dependency style of $depcc... " >&6; }
3837if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3838  $as_echo_n "(cached) " >&6
3839else
3840  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3841  # We make a subdir and do the tests there.  Otherwise we can end up
3842  # making bogus files that we don't know about and never remove.  For
3843  # instance it was reported that on HP-UX the gcc test will end up
3844  # making a dummy file named 'D' -- because '-MD' means "put the output
3845  # in D".
3846  rm -rf conftest.dir
3847  mkdir conftest.dir
3848  # Copy depcomp to subdir because otherwise we won't find it if we're
3849  # using a relative directory.
3850  cp "$am_depcomp" conftest.dir
3851  cd conftest.dir
3852  # We will build objects and dependencies in a subdirectory because
3853  # it helps to detect inapplicable dependency modes.  For instance
3854  # both Tru64's cc and ICC support -MD to output dependencies as a
3855  # side effect of compilation, but ICC will put the dependencies in
3856  # the current directory while Tru64 will put them in the object
3857  # directory.
3858  mkdir sub
3859
3860  am_cv_CC_dependencies_compiler_type=none
3861  if test "$am_compiler_list" = ""; then
3862     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3863  fi
3864  am__universal=false
3865  case " $depcc " in #(
3866     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3867     esac
3868
3869  for depmode in $am_compiler_list; do
3870    # Setup a source with many dependencies, because some compilers
3871    # like to wrap large dependency lists on column 80 (with \), and
3872    # we should not choose a depcomp mode which is confused by this.
3873    #
3874    # We need to recreate these files for each test, as the compiler may
3875    # overwrite some of them when testing with obscure command lines.
3876    # This happens at least with the AIX C compiler.
3877    : > sub/conftest.c
3878    for i in 1 2 3 4 5 6; do
3879      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3880      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3881      # Solaris 10 /bin/sh.
3882      echo '/* dummy */' > sub/conftst$i.h
3883    done
3884    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3885
3886    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3887    # mode.  It turns out that the SunPro C++ compiler does not properly
3888    # handle '-M -o', and we need to detect this.  Also, some Intel
3889    # versions had trouble with output in subdirs.
3890    am__obj=sub/conftest.${OBJEXT-o}
3891    am__minus_obj="-o $am__obj"
3892    case $depmode in
3893    gcc)
3894      # This depmode causes a compiler race in universal mode.
3895      test "$am__universal" = false || continue
3896      ;;
3897    nosideeffect)
3898      # After this tag, mechanisms are not by side-effect, so they'll
3899      # only be used when explicitly requested.
3900      if test "x$enable_dependency_tracking" = xyes; then
3901	continue
3902      else
3903	break
3904      fi
3905      ;;
3906    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3907      # This compiler won't grok '-c -o', but also, the minuso test has
3908      # not run yet.  These depmodes are late enough in the game, and
3909      # so weak that their functioning should not be impacted.
3910      am__obj=conftest.${OBJEXT-o}
3911      am__minus_obj=
3912      ;;
3913    none) break ;;
3914    esac
3915    if depmode=$depmode \
3916       source=sub/conftest.c object=$am__obj \
3917       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3918       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3919         >/dev/null 2>conftest.err &&
3920       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3921       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3922       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3923       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3924      # icc doesn't choke on unknown options, it will just issue warnings
3925      # or remarks (even with -Werror).  So we grep stderr for any message
3926      # that says an option was ignored or not supported.
3927      # When given -MP, icc 7.0 and 7.1 complain thusly:
3928      #   icc: Command line warning: ignoring option '-M'; no argument required
3929      # The diagnosis changed in icc 8.0:
3930      #   icc: Command line remark: option '-MP' not supported
3931      if (grep 'ignoring option' conftest.err ||
3932          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3933        am_cv_CC_dependencies_compiler_type=$depmode
3934        break
3935      fi
3936    fi
3937  done
3938
3939  cd ..
3940  rm -rf conftest.dir
3941else
3942  am_cv_CC_dependencies_compiler_type=none
3943fi
3944
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3947$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3948CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3949
3950 if
3951  test "x$enable_dependency_tracking" != xno \
3952  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3953  am__fastdepCC_TRUE=
3954  am__fastdepCC_FALSE='#'
3955else
3956  am__fastdepCC_TRUE='#'
3957  am__fastdepCC_FALSE=
3958fi
3959
3960
3961ac_ext=c
3962ac_cpp='$CPP $CPPFLAGS'
3963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3967$as_echo_n "checking how to run the C preprocessor... " >&6; }
3968# On Suns, sometimes $CPP names a directory.
3969if test -n "$CPP" && test -d "$CPP"; then
3970  CPP=
3971fi
3972if test -z "$CPP"; then
3973  if ${ac_cv_prog_CPP+:} false; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976      # Double quotes because CPP needs to be expanded
3977    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3978    do
3979      ac_preproc_ok=false
3980for ac_c_preproc_warn_flag in '' yes
3981do
3982  # Use a header file that comes with gcc, so configuring glibc
3983  # with a fresh cross-compiler works.
3984  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3985  # <limits.h> exists even on freestanding compilers.
3986  # On the NeXT, cc -E runs the code through the compiler's parser,
3987  # not just through cpp. "Syntax error" is here to catch this case.
3988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h.  */
3990#ifdef __STDC__
3991# include <limits.h>
3992#else
3993# include <assert.h>
3994#endif
3995		     Syntax error
3996_ACEOF
3997if ac_fn_c_try_cpp "$LINENO"; then :
3998
3999else
4000  # Broken: fails on valid input.
4001continue
4002fi
4003rm -f conftest.err conftest.i conftest.$ac_ext
4004
4005  # OK, works on sane cases.  Now check whether nonexistent headers
4006  # can be detected and how.
4007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h.  */
4009#include <ac_nonexistent.h>
4010_ACEOF
4011if ac_fn_c_try_cpp "$LINENO"; then :
4012  # Broken: success on invalid input.
4013continue
4014else
4015  # Passes both tests.
4016ac_preproc_ok=:
4017break
4018fi
4019rm -f conftest.err conftest.i conftest.$ac_ext
4020
4021done
4022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4023rm -f conftest.i conftest.err conftest.$ac_ext
4024if $ac_preproc_ok; then :
4025  break
4026fi
4027
4028    done
4029    ac_cv_prog_CPP=$CPP
4030
4031fi
4032  CPP=$ac_cv_prog_CPP
4033else
4034  ac_cv_prog_CPP=$CPP
4035fi
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4037$as_echo "$CPP" >&6; }
4038ac_preproc_ok=false
4039for ac_c_preproc_warn_flag in '' yes
4040do
4041  # Use a header file that comes with gcc, so configuring glibc
4042  # with a fresh cross-compiler works.
4043  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4044  # <limits.h> exists even on freestanding compilers.
4045  # On the NeXT, cc -E runs the code through the compiler's parser,
4046  # not just through cpp. "Syntax error" is here to catch this case.
4047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h.  */
4049#ifdef __STDC__
4050# include <limits.h>
4051#else
4052# include <assert.h>
4053#endif
4054		     Syntax error
4055_ACEOF
4056if ac_fn_c_try_cpp "$LINENO"; then :
4057
4058else
4059  # Broken: fails on valid input.
4060continue
4061fi
4062rm -f conftest.err conftest.i conftest.$ac_ext
4063
4064  # OK, works on sane cases.  Now check whether nonexistent headers
4065  # can be detected and how.
4066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h.  */
4068#include <ac_nonexistent.h>
4069_ACEOF
4070if ac_fn_c_try_cpp "$LINENO"; then :
4071  # Broken: success on invalid input.
4072continue
4073else
4074  # Passes both tests.
4075ac_preproc_ok=:
4076break
4077fi
4078rm -f conftest.err conftest.i conftest.$ac_ext
4079
4080done
4081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082rm -f conftest.i conftest.err conftest.$ac_ext
4083if $ac_preproc_ok; then :
4084
4085else
4086  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4089See \`config.log' for more details" "$LINENO" 5; }
4090fi
4091
4092ac_ext=c
4093ac_cpp='$CPP $CPPFLAGS'
4094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097
4098
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4100$as_echo_n "checking whether ln -s works... " >&6; }
4101LN_S=$as_ln_s
4102if test "$LN_S" = "ln -s"; then
4103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4104$as_echo "yes" >&6; }
4105else
4106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4107$as_echo "no, using $LN_S" >&6; }
4108fi
4109
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4111$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4112set x ${MAKE-make}
4113ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4114if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  cat >conftest.make <<\_ACEOF
4118SHELL = /bin/sh
4119all:
4120	@echo '@@@%%%=$(MAKE)=@@@%%%'
4121_ACEOF
4122# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4123case `${MAKE-make} -f conftest.make 2>/dev/null` in
4124  *@@@%%%=?*=@@@%%%*)
4125    eval ac_cv_prog_make_${ac_make}_set=yes;;
4126  *)
4127    eval ac_cv_prog_make_${ac_make}_set=no;;
4128esac
4129rm -f conftest.make
4130fi
4131if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4133$as_echo "yes" >&6; }
4134  SET_MAKE=
4135else
4136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137$as_echo "no" >&6; }
4138  SET_MAKE="MAKE=${MAKE-make}"
4139fi
4140
4141case `pwd` in
4142  *\ * | *\	*)
4143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4144$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4145esac
4146
4147
4148
4149macro_version='2.4.6'
4150macro_revision='2.4.6'
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164ltmain=$ac_aux_dir/ltmain.sh
4165
4166# Make sure we can run config.sub.
4167$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4168  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4171$as_echo_n "checking build system type... " >&6; }
4172if ${ac_cv_build+:} false; then :
4173  $as_echo_n "(cached) " >&6
4174else
4175  ac_build_alias=$build_alias
4176test "x$ac_build_alias" = x &&
4177  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4178test "x$ac_build_alias" = x &&
4179  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4180ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4181  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4182
4183fi
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4185$as_echo "$ac_cv_build" >&6; }
4186case $ac_cv_build in
4187*-*-*) ;;
4188*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4189esac
4190build=$ac_cv_build
4191ac_save_IFS=$IFS; IFS='-'
4192set x $ac_cv_build
4193shift
4194build_cpu=$1
4195build_vendor=$2
4196shift; shift
4197# Remember, the first character of IFS is used to create $*,
4198# except with old shells:
4199build_os=$*
4200IFS=$ac_save_IFS
4201case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4202
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4205$as_echo_n "checking host system type... " >&6; }
4206if ${ac_cv_host+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  if test "x$host_alias" = x; then
4210  ac_cv_host=$ac_cv_build
4211else
4212  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4213    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4214fi
4215
4216fi
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4218$as_echo "$ac_cv_host" >&6; }
4219case $ac_cv_host in
4220*-*-*) ;;
4221*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4222esac
4223host=$ac_cv_host
4224ac_save_IFS=$IFS; IFS='-'
4225set x $ac_cv_host
4226shift
4227host_cpu=$1
4228host_vendor=$2
4229shift; shift
4230# Remember, the first character of IFS is used to create $*,
4231# except with old shells:
4232host_os=$*
4233IFS=$ac_save_IFS
4234case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4235
4236
4237# Backslashify metacharacters that are still active within
4238# double-quoted strings.
4239sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4240
4241# Same as above, but do not quote variable references.
4242double_quote_subst='s/\(["`\\]\)/\\\1/g'
4243
4244# Sed substitution to delay expansion of an escaped shell variable in a
4245# double_quote_subst'ed string.
4246delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4247
4248# Sed substitution to delay expansion of an escaped single quote.
4249delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4250
4251# Sed substitution to avoid accidental globbing in evaled expressions
4252no_glob_subst='s/\*/\\\*/g'
4253
4254ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4255ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4256ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4257
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4259$as_echo_n "checking how to print strings... " >&6; }
4260# Test print first, because it will be a builtin if present.
4261if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4262   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4263  ECHO='print -r --'
4264elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4265  ECHO='printf %s\n'
4266else
4267  # Use this function as a fallback that always works.
4268  func_fallback_echo ()
4269  {
4270    eval 'cat <<_LTECHO_EOF
4271$1
4272_LTECHO_EOF'
4273  }
4274  ECHO='func_fallback_echo'
4275fi
4276
4277# func_echo_all arg...
4278# Invoke $ECHO with all args, space-separated.
4279func_echo_all ()
4280{
4281    $ECHO ""
4282}
4283
4284case $ECHO in
4285  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4286$as_echo "printf" >&6; } ;;
4287  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4288$as_echo "print -r" >&6; } ;;
4289  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4290$as_echo "cat" >&6; } ;;
4291esac
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4307$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4308if ${ac_cv_path_SED+:} false; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4312     for ac_i in 1 2 3 4 5 6 7; do
4313       ac_script="$ac_script$as_nl$ac_script"
4314     done
4315     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4316     { ac_script=; unset ac_script;}
4317     if test -z "$SED"; then
4318  ac_path_SED_found=false
4319  # Loop through the user's path and test for each of PROGNAME-LIST
4320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323  IFS=$as_save_IFS
4324  test -z "$as_dir" && as_dir=.
4325    for ac_prog in sed gsed; do
4326    for ac_exec_ext in '' $ac_executable_extensions; do
4327      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4328      as_fn_executable_p "$ac_path_SED" || continue
4329# Check for GNU ac_path_SED and select it if it is found.
4330  # Check for GNU $ac_path_SED
4331case `"$ac_path_SED" --version 2>&1` in
4332*GNU*)
4333  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4334*)
4335  ac_count=0
4336  $as_echo_n 0123456789 >"conftest.in"
4337  while :
4338  do
4339    cat "conftest.in" "conftest.in" >"conftest.tmp"
4340    mv "conftest.tmp" "conftest.in"
4341    cp "conftest.in" "conftest.nl"
4342    $as_echo '' >> "conftest.nl"
4343    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345    as_fn_arith $ac_count + 1 && ac_count=$as_val
4346    if test $ac_count -gt ${ac_path_SED_max-0}; then
4347      # Best one so far, save it but keep looking for a better one
4348      ac_cv_path_SED="$ac_path_SED"
4349      ac_path_SED_max=$ac_count
4350    fi
4351    # 10*(2^10) chars as input seems more than enough
4352    test $ac_count -gt 10 && break
4353  done
4354  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355esac
4356
4357      $ac_path_SED_found && break 3
4358    done
4359  done
4360  done
4361IFS=$as_save_IFS
4362  if test -z "$ac_cv_path_SED"; then
4363    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4364  fi
4365else
4366  ac_cv_path_SED=$SED
4367fi
4368
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4371$as_echo "$ac_cv_path_SED" >&6; }
4372 SED="$ac_cv_path_SED"
4373  rm -f conftest.sed
4374
4375test -z "$SED" && SED=sed
4376Xsed="$SED -e 1s/^X//"
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4389$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4390if ${ac_cv_path_GREP+:} false; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  if test -z "$GREP"; then
4394  ac_path_GREP_found=false
4395  # Loop through the user's path and test for each of PROGNAME-LIST
4396  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398do
4399  IFS=$as_save_IFS
4400  test -z "$as_dir" && as_dir=.
4401    for ac_prog in grep ggrep; do
4402    for ac_exec_ext in '' $ac_executable_extensions; do
4403      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4404      as_fn_executable_p "$ac_path_GREP" || continue
4405# Check for GNU ac_path_GREP and select it if it is found.
4406  # Check for GNU $ac_path_GREP
4407case `"$ac_path_GREP" --version 2>&1` in
4408*GNU*)
4409  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4410*)
4411  ac_count=0
4412  $as_echo_n 0123456789 >"conftest.in"
4413  while :
4414  do
4415    cat "conftest.in" "conftest.in" >"conftest.tmp"
4416    mv "conftest.tmp" "conftest.in"
4417    cp "conftest.in" "conftest.nl"
4418    $as_echo 'GREP' >> "conftest.nl"
4419    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4420    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4421    as_fn_arith $ac_count + 1 && ac_count=$as_val
4422    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4423      # Best one so far, save it but keep looking for a better one
4424      ac_cv_path_GREP="$ac_path_GREP"
4425      ac_path_GREP_max=$ac_count
4426    fi
4427    # 10*(2^10) chars as input seems more than enough
4428    test $ac_count -gt 10 && break
4429  done
4430  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431esac
4432
4433      $ac_path_GREP_found && break 3
4434    done
4435  done
4436  done
4437IFS=$as_save_IFS
4438  if test -z "$ac_cv_path_GREP"; then
4439    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4440  fi
4441else
4442  ac_cv_path_GREP=$GREP
4443fi
4444
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4447$as_echo "$ac_cv_path_GREP" >&6; }
4448 GREP="$ac_cv_path_GREP"
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4452$as_echo_n "checking for egrep... " >&6; }
4453if ${ac_cv_path_EGREP+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4457   then ac_cv_path_EGREP="$GREP -E"
4458   else
4459     if test -z "$EGREP"; then
4460  ac_path_EGREP_found=false
4461  # Loop through the user's path and test for each of PROGNAME-LIST
4462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464do
4465  IFS=$as_save_IFS
4466  test -z "$as_dir" && as_dir=.
4467    for ac_prog in egrep; do
4468    for ac_exec_ext in '' $ac_executable_extensions; do
4469      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4470      as_fn_executable_p "$ac_path_EGREP" || continue
4471# Check for GNU ac_path_EGREP and select it if it is found.
4472  # Check for GNU $ac_path_EGREP
4473case `"$ac_path_EGREP" --version 2>&1` in
4474*GNU*)
4475  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4476*)
4477  ac_count=0
4478  $as_echo_n 0123456789 >"conftest.in"
4479  while :
4480  do
4481    cat "conftest.in" "conftest.in" >"conftest.tmp"
4482    mv "conftest.tmp" "conftest.in"
4483    cp "conftest.in" "conftest.nl"
4484    $as_echo 'EGREP' >> "conftest.nl"
4485    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4486    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4487    as_fn_arith $ac_count + 1 && ac_count=$as_val
4488    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4489      # Best one so far, save it but keep looking for a better one
4490      ac_cv_path_EGREP="$ac_path_EGREP"
4491      ac_path_EGREP_max=$ac_count
4492    fi
4493    # 10*(2^10) chars as input seems more than enough
4494    test $ac_count -gt 10 && break
4495  done
4496  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497esac
4498
4499      $ac_path_EGREP_found && break 3
4500    done
4501  done
4502  done
4503IFS=$as_save_IFS
4504  if test -z "$ac_cv_path_EGREP"; then
4505    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506  fi
4507else
4508  ac_cv_path_EGREP=$EGREP
4509fi
4510
4511   fi
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4514$as_echo "$ac_cv_path_EGREP" >&6; }
4515 EGREP="$ac_cv_path_EGREP"
4516
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4519$as_echo_n "checking for fgrep... " >&6; }
4520if ${ac_cv_path_FGREP+:} false; then :
4521  $as_echo_n "(cached) " >&6
4522else
4523  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4524   then ac_cv_path_FGREP="$GREP -F"
4525   else
4526     if test -z "$FGREP"; then
4527  ac_path_FGREP_found=false
4528  # Loop through the user's path and test for each of PROGNAME-LIST
4529  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4531do
4532  IFS=$as_save_IFS
4533  test -z "$as_dir" && as_dir=.
4534    for ac_prog in fgrep; do
4535    for ac_exec_ext in '' $ac_executable_extensions; do
4536      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4537      as_fn_executable_p "$ac_path_FGREP" || continue
4538# Check for GNU ac_path_FGREP and select it if it is found.
4539  # Check for GNU $ac_path_FGREP
4540case `"$ac_path_FGREP" --version 2>&1` in
4541*GNU*)
4542  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4543*)
4544  ac_count=0
4545  $as_echo_n 0123456789 >"conftest.in"
4546  while :
4547  do
4548    cat "conftest.in" "conftest.in" >"conftest.tmp"
4549    mv "conftest.tmp" "conftest.in"
4550    cp "conftest.in" "conftest.nl"
4551    $as_echo 'FGREP' >> "conftest.nl"
4552    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4553    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4554    as_fn_arith $ac_count + 1 && ac_count=$as_val
4555    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4556      # Best one so far, save it but keep looking for a better one
4557      ac_cv_path_FGREP="$ac_path_FGREP"
4558      ac_path_FGREP_max=$ac_count
4559    fi
4560    # 10*(2^10) chars as input seems more than enough
4561    test $ac_count -gt 10 && break
4562  done
4563  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4564esac
4565
4566      $ac_path_FGREP_found && break 3
4567    done
4568  done
4569  done
4570IFS=$as_save_IFS
4571  if test -z "$ac_cv_path_FGREP"; then
4572    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4573  fi
4574else
4575  ac_cv_path_FGREP=$FGREP
4576fi
4577
4578   fi
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4581$as_echo "$ac_cv_path_FGREP" >&6; }
4582 FGREP="$ac_cv_path_FGREP"
4583
4584
4585test -z "$GREP" && GREP=grep
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605# Check whether --with-gnu-ld was given.
4606if test "${with_gnu_ld+set}" = set; then :
4607  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4608else
4609  with_gnu_ld=no
4610fi
4611
4612ac_prog=ld
4613if test yes = "$GCC"; then
4614  # Check if gcc -print-prog-name=ld gives a path.
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4616$as_echo_n "checking for ld used by $CC... " >&6; }
4617  case $host in
4618  *-*-mingw*)
4619    # gcc leaves a trailing carriage return, which upsets mingw
4620    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4621  *)
4622    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4623  esac
4624  case $ac_prog in
4625    # Accept absolute paths.
4626    [\\/]* | ?:[\\/]*)
4627      re_direlt='/[^/][^/]*/\.\./'
4628      # Canonicalize the pathname of ld
4629      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4630      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4631	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4632      done
4633      test -z "$LD" && LD=$ac_prog
4634      ;;
4635  "")
4636    # If it fails, then pretend we aren't using GCC.
4637    ac_prog=ld
4638    ;;
4639  *)
4640    # If it is relative, then search for the first ld in PATH.
4641    with_gnu_ld=unknown
4642    ;;
4643  esac
4644elif test yes = "$with_gnu_ld"; then
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4646$as_echo_n "checking for GNU ld... " >&6; }
4647else
4648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4649$as_echo_n "checking for non-GNU ld... " >&6; }
4650fi
4651if ${lt_cv_path_LD+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  if test -z "$LD"; then
4655  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4656  for ac_dir in $PATH; do
4657    IFS=$lt_save_ifs
4658    test -z "$ac_dir" && ac_dir=.
4659    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4660      lt_cv_path_LD=$ac_dir/$ac_prog
4661      # Check to see if the program is GNU ld.  I'd rather use --version,
4662      # but apparently some variants of GNU ld only accept -v.
4663      # Break only if it was the GNU/non-GNU ld that we prefer.
4664      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4665      *GNU* | *'with BFD'*)
4666	test no != "$with_gnu_ld" && break
4667	;;
4668      *)
4669	test yes != "$with_gnu_ld" && break
4670	;;
4671      esac
4672    fi
4673  done
4674  IFS=$lt_save_ifs
4675else
4676  lt_cv_path_LD=$LD # Let the user override the test with a path.
4677fi
4678fi
4679
4680LD=$lt_cv_path_LD
4681if test -n "$LD"; then
4682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4683$as_echo "$LD" >&6; }
4684else
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686$as_echo "no" >&6; }
4687fi
4688test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4690$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4691if ${lt_cv_prog_gnu_ld+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4695case `$LD -v 2>&1 </dev/null` in
4696*GNU* | *'with BFD'*)
4697  lt_cv_prog_gnu_ld=yes
4698  ;;
4699*)
4700  lt_cv_prog_gnu_ld=no
4701  ;;
4702esac
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4705$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4706with_gnu_ld=$lt_cv_prog_gnu_ld
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4717$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4718if ${lt_cv_path_NM+:} false; then :
4719  $as_echo_n "(cached) " >&6
4720else
4721  if test -n "$NM"; then
4722  # Let the user override the test.
4723  lt_cv_path_NM=$NM
4724else
4725  lt_nm_to_check=${ac_tool_prefix}nm
4726  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4727    lt_nm_to_check="$lt_nm_to_check nm"
4728  fi
4729  for lt_tmp_nm in $lt_nm_to_check; do
4730    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4731    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4732      IFS=$lt_save_ifs
4733      test -z "$ac_dir" && ac_dir=.
4734      tmp_nm=$ac_dir/$lt_tmp_nm
4735      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4736	# Check to see if the nm accepts a BSD-compat flag.
4737	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4738	#   nm: unknown option "B" ignored
4739	# Tru64's nm complains that /dev/null is an invalid object file
4740	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4741	case $build_os in
4742	mingw*) lt_bad_file=conftest.nm/nofile ;;
4743	*) lt_bad_file=/dev/null ;;
4744	esac
4745	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4746	*$lt_bad_file* | *'Invalid file or object type'*)
4747	  lt_cv_path_NM="$tmp_nm -B"
4748	  break 2
4749	  ;;
4750	*)
4751	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4752	  */dev/null*)
4753	    lt_cv_path_NM="$tmp_nm -p"
4754	    break 2
4755	    ;;
4756	  *)
4757	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4758	    continue # so that we can try to find one that supports BSD flags
4759	    ;;
4760	  esac
4761	  ;;
4762	esac
4763      fi
4764    done
4765    IFS=$lt_save_ifs
4766  done
4767  : ${lt_cv_path_NM=no}
4768fi
4769fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4771$as_echo "$lt_cv_path_NM" >&6; }
4772if test no != "$lt_cv_path_NM"; then
4773  NM=$lt_cv_path_NM
4774else
4775  # Didn't find any BSD compatible name lister, look for dumpbin.
4776  if test -n "$DUMPBIN"; then :
4777    # Let the user override the test.
4778  else
4779    if test -n "$ac_tool_prefix"; then
4780  for ac_prog in dumpbin "link -dump"
4781  do
4782    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785$as_echo_n "checking for $ac_word... " >&6; }
4786if ${ac_cv_prog_DUMPBIN+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  if test -n "$DUMPBIN"; then
4790  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  test -z "$as_dir" && as_dir=.
4797    for ac_exec_ext in '' $ac_executable_extensions; do
4798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804  done
4805IFS=$as_save_IFS
4806
4807fi
4808fi
4809DUMPBIN=$ac_cv_prog_DUMPBIN
4810if test -n "$DUMPBIN"; then
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4812$as_echo "$DUMPBIN" >&6; }
4813else
4814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815$as_echo "no" >&6; }
4816fi
4817
4818
4819    test -n "$DUMPBIN" && break
4820  done
4821fi
4822if test -z "$DUMPBIN"; then
4823  ac_ct_DUMPBIN=$DUMPBIN
4824  for ac_prog in dumpbin "link -dump"
4825do
4826  # Extract the first word of "$ac_prog", so it can be a program name with args.
4827set dummy $ac_prog; ac_word=$2
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829$as_echo_n "checking for $ac_word... " >&6; }
4830if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  if test -n "$ac_ct_DUMPBIN"; then
4834  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4835else
4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839  IFS=$as_save_IFS
4840  test -z "$as_dir" && as_dir=.
4841    for ac_exec_ext in '' $ac_executable_extensions; do
4842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845    break 2
4846  fi
4847done
4848  done
4849IFS=$as_save_IFS
4850
4851fi
4852fi
4853ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4854if test -n "$ac_ct_DUMPBIN"; then
4855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4856$as_echo "$ac_ct_DUMPBIN" >&6; }
4857else
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859$as_echo "no" >&6; }
4860fi
4861
4862
4863  test -n "$ac_ct_DUMPBIN" && break
4864done
4865
4866  if test "x$ac_ct_DUMPBIN" = x; then
4867    DUMPBIN=":"
4868  else
4869    case $cross_compiling:$ac_tool_warned in
4870yes:)
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873ac_tool_warned=yes ;;
4874esac
4875    DUMPBIN=$ac_ct_DUMPBIN
4876  fi
4877fi
4878
4879    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4880    *COFF*)
4881      DUMPBIN="$DUMPBIN -symbols -headers"
4882      ;;
4883    *)
4884      DUMPBIN=:
4885      ;;
4886    esac
4887  fi
4888
4889  if test : != "$DUMPBIN"; then
4890    NM=$DUMPBIN
4891  fi
4892fi
4893test -z "$NM" && NM=nm
4894
4895
4896
4897
4898
4899
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4901$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4902if ${lt_cv_nm_interface+:} false; then :
4903  $as_echo_n "(cached) " >&6
4904else
4905  lt_cv_nm_interface="BSD nm"
4906  echo "int some_variable = 0;" > conftest.$ac_ext
4907  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4908  (eval "$ac_compile" 2>conftest.err)
4909  cat conftest.err >&5
4910  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4911  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4912  cat conftest.err >&5
4913  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4914  cat conftest.out >&5
4915  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4916    lt_cv_nm_interface="MS dumpbin"
4917  fi
4918  rm -f conftest*
4919fi
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4921$as_echo "$lt_cv_nm_interface" >&6; }
4922
4923# find the maximum length of command line arguments
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4925$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4926if ${lt_cv_sys_max_cmd_len+:} false; then :
4927  $as_echo_n "(cached) " >&6
4928else
4929    i=0
4930  teststring=ABCD
4931
4932  case $build_os in
4933  msdosdjgpp*)
4934    # On DJGPP, this test can blow up pretty badly due to problems in libc
4935    # (any single argument exceeding 2000 bytes causes a buffer overrun
4936    # during glob expansion).  Even if it were fixed, the result of this
4937    # check would be larger than it should be.
4938    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4939    ;;
4940
4941  gnu*)
4942    # Under GNU Hurd, this test is not required because there is
4943    # no limit to the length of command line arguments.
4944    # Libtool will interpret -1 as no limit whatsoever
4945    lt_cv_sys_max_cmd_len=-1;
4946    ;;
4947
4948  cygwin* | mingw* | cegcc*)
4949    # On Win9x/ME, this test blows up -- it succeeds, but takes
4950    # about 5 minutes as the teststring grows exponentially.
4951    # Worse, since 9x/ME are not pre-emptively multitasking,
4952    # you end up with a "frozen" computer, even though with patience
4953    # the test eventually succeeds (with a max line length of 256k).
4954    # Instead, let's just punt: use the minimum linelength reported by
4955    # all of the supported platforms: 8192 (on NT/2K/XP).
4956    lt_cv_sys_max_cmd_len=8192;
4957    ;;
4958
4959  mint*)
4960    # On MiNT this can take a long time and run out of memory.
4961    lt_cv_sys_max_cmd_len=8192;
4962    ;;
4963
4964  amigaos*)
4965    # On AmigaOS with pdksh, this test takes hours, literally.
4966    # So we just punt and use a minimum line length of 8192.
4967    lt_cv_sys_max_cmd_len=8192;
4968    ;;
4969
4970  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4971    # This has been around since 386BSD, at least.  Likely further.
4972    if test -x /sbin/sysctl; then
4973      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4974    elif test -x /usr/sbin/sysctl; then
4975      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4976    else
4977      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4978    fi
4979    # And add a safety zone
4980    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4981    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4982    ;;
4983
4984  interix*)
4985    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4986    lt_cv_sys_max_cmd_len=196608
4987    ;;
4988
4989  os2*)
4990    # The test takes a long time on OS/2.
4991    lt_cv_sys_max_cmd_len=8192
4992    ;;
4993
4994  osf*)
4995    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4996    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4997    # nice to cause kernel panics so lets avoid the loop below.
4998    # First set a reasonable default.
4999    lt_cv_sys_max_cmd_len=16384
5000    #
5001    if test -x /sbin/sysconfig; then
5002      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5003        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5004      esac
5005    fi
5006    ;;
5007  sco3.2v5*)
5008    lt_cv_sys_max_cmd_len=102400
5009    ;;
5010  sysv5* | sco5v6* | sysv4.2uw2*)
5011    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5012    if test -n "$kargmax"; then
5013      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5014    else
5015      lt_cv_sys_max_cmd_len=32768
5016    fi
5017    ;;
5018  *)
5019    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5020    if test -n "$lt_cv_sys_max_cmd_len" && \
5021       test undefined != "$lt_cv_sys_max_cmd_len"; then
5022      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5023      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5024    else
5025      # Make teststring a little bigger before we do anything with it.
5026      # a 1K string should be a reasonable start.
5027      for i in 1 2 3 4 5 6 7 8; do
5028        teststring=$teststring$teststring
5029      done
5030      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5031      # If test is not a shell built-in, we'll probably end up computing a
5032      # maximum length that is only half of the actual maximum length, but
5033      # we can't tell.
5034      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5035	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5036	      test 17 != "$i" # 1/2 MB should be enough
5037      do
5038        i=`expr $i + 1`
5039        teststring=$teststring$teststring
5040      done
5041      # Only check the string length outside the loop.
5042      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5043      teststring=
5044      # Add a significant safety factor because C++ compilers can tack on
5045      # massive amounts of additional arguments before passing them to the
5046      # linker.  It appears as though 1/2 is a usable value.
5047      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5048    fi
5049    ;;
5050  esac
5051
5052fi
5053
5054if test -n "$lt_cv_sys_max_cmd_len"; then
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5056$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5057else
5058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5059$as_echo "none" >&6; }
5060fi
5061max_cmd_len=$lt_cv_sys_max_cmd_len
5062
5063
5064
5065
5066
5067
5068: ${CP="cp -f"}
5069: ${MV="mv -f"}
5070: ${RM="rm -f"}
5071
5072if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5073  lt_unset=unset
5074else
5075  lt_unset=false
5076fi
5077
5078
5079
5080
5081
5082# test EBCDIC or ASCII
5083case `echo X|tr X '\101'` in
5084 A) # ASCII based system
5085    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5086  lt_SP2NL='tr \040 \012'
5087  lt_NL2SP='tr \015\012 \040\040'
5088  ;;
5089 *) # EBCDIC based system
5090  lt_SP2NL='tr \100 \n'
5091  lt_NL2SP='tr \r\n \100\100'
5092  ;;
5093esac
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5104$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5105if ${lt_cv_to_host_file_cmd+:} false; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  case $host in
5109  *-*-mingw* )
5110    case $build in
5111      *-*-mingw* ) # actually msys
5112        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5113        ;;
5114      *-*-cygwin* )
5115        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5116        ;;
5117      * ) # otherwise, assume *nix
5118        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5119        ;;
5120    esac
5121    ;;
5122  *-*-cygwin* )
5123    case $build in
5124      *-*-mingw* ) # actually msys
5125        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5126        ;;
5127      *-*-cygwin* )
5128        lt_cv_to_host_file_cmd=func_convert_file_noop
5129        ;;
5130      * ) # otherwise, assume *nix
5131        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5132        ;;
5133    esac
5134    ;;
5135  * ) # unhandled hosts (and "normal" native builds)
5136    lt_cv_to_host_file_cmd=func_convert_file_noop
5137    ;;
5138esac
5139
5140fi
5141
5142to_host_file_cmd=$lt_cv_to_host_file_cmd
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5144$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5145
5146
5147
5148
5149
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5151$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5152if ${lt_cv_to_tool_file_cmd+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  #assume ordinary cross tools, or native build.
5156lt_cv_to_tool_file_cmd=func_convert_file_noop
5157case $host in
5158  *-*-mingw* )
5159    case $build in
5160      *-*-mingw* ) # actually msys
5161        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5162        ;;
5163    esac
5164    ;;
5165esac
5166
5167fi
5168
5169to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5171$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5172
5173
5174
5175
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5178$as_echo_n "checking for $LD option to reload object files... " >&6; }
5179if ${lt_cv_ld_reload_flag+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  lt_cv_ld_reload_flag='-r'
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5185$as_echo "$lt_cv_ld_reload_flag" >&6; }
5186reload_flag=$lt_cv_ld_reload_flag
5187case $reload_flag in
5188"" | " "*) ;;
5189*) reload_flag=" $reload_flag" ;;
5190esac
5191reload_cmds='$LD$reload_flag -o $output$reload_objs'
5192case $host_os in
5193  cygwin* | mingw* | pw32* | cegcc*)
5194    if test yes != "$GCC"; then
5195      reload_cmds=false
5196    fi
5197    ;;
5198  darwin*)
5199    if test yes = "$GCC"; then
5200      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5201    else
5202      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5203    fi
5204    ;;
5205esac
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215if test -n "$ac_tool_prefix"; then
5216  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5217set dummy ${ac_tool_prefix}objdump; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; }
5220if ${ac_cv_prog_OBJDUMP+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  if test -n "$OBJDUMP"; then
5224  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229  IFS=$as_save_IFS
5230  test -z "$as_dir" && as_dir=.
5231    for ac_exec_ext in '' $ac_executable_extensions; do
5232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235    break 2
5236  fi
5237done
5238  done
5239IFS=$as_save_IFS
5240
5241fi
5242fi
5243OBJDUMP=$ac_cv_prog_OBJDUMP
5244if test -n "$OBJDUMP"; then
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5246$as_echo "$OBJDUMP" >&6; }
5247else
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249$as_echo "no" >&6; }
5250fi
5251
5252
5253fi
5254if test -z "$ac_cv_prog_OBJDUMP"; then
5255  ac_ct_OBJDUMP=$OBJDUMP
5256  # Extract the first word of "objdump", so it can be a program name with args.
5257set dummy objdump; ac_word=$2
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
5260if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  if test -n "$ac_ct_OBJDUMP"; then
5264  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269  IFS=$as_save_IFS
5270  test -z "$as_dir" && as_dir=.
5271    for ac_exec_ext in '' $ac_executable_extensions; do
5272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275    break 2
5276  fi
5277done
5278  done
5279IFS=$as_save_IFS
5280
5281fi
5282fi
5283ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5284if test -n "$ac_ct_OBJDUMP"; then
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5286$as_echo "$ac_ct_OBJDUMP" >&6; }
5287else
5288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289$as_echo "no" >&6; }
5290fi
5291
5292  if test "x$ac_ct_OBJDUMP" = x; then
5293    OBJDUMP="false"
5294  else
5295    case $cross_compiling:$ac_tool_warned in
5296yes:)
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299ac_tool_warned=yes ;;
5300esac
5301    OBJDUMP=$ac_ct_OBJDUMP
5302  fi
5303else
5304  OBJDUMP="$ac_cv_prog_OBJDUMP"
5305fi
5306
5307test -z "$OBJDUMP" && OBJDUMP=objdump
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5318$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5319if ${lt_cv_deplibs_check_method+:} false; then :
5320  $as_echo_n "(cached) " >&6
5321else
5322  lt_cv_file_magic_cmd='$MAGIC_CMD'
5323lt_cv_file_magic_test_file=
5324lt_cv_deplibs_check_method='unknown'
5325# Need to set the preceding variable on all platforms that support
5326# interlibrary dependencies.
5327# 'none' -- dependencies not supported.
5328# 'unknown' -- same as none, but documents that we really don't know.
5329# 'pass_all' -- all dependencies passed with no checks.
5330# 'test_compile' -- check by making test program.
5331# 'file_magic [[regex]]' -- check by looking for files in library path
5332# that responds to the $file_magic_cmd with a given extended regex.
5333# If you have 'file' or equivalent on your system and you're not sure
5334# whether 'pass_all' will *always* work, you probably want this one.
5335
5336case $host_os in
5337aix[4-9]*)
5338  lt_cv_deplibs_check_method=pass_all
5339  ;;
5340
5341beos*)
5342  lt_cv_deplibs_check_method=pass_all
5343  ;;
5344
5345bsdi[45]*)
5346  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5347  lt_cv_file_magic_cmd='/usr/bin/file -L'
5348  lt_cv_file_magic_test_file=/shlib/libc.so
5349  ;;
5350
5351cygwin*)
5352  # func_win32_libid is a shell function defined in ltmain.sh
5353  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5354  lt_cv_file_magic_cmd='func_win32_libid'
5355  ;;
5356
5357mingw* | pw32*)
5358  # Base MSYS/MinGW do not provide the 'file' command needed by
5359  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5360  # unless we find 'file', for example because we are cross-compiling.
5361  if ( file / ) >/dev/null 2>&1; then
5362    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5363    lt_cv_file_magic_cmd='func_win32_libid'
5364  else
5365    # Keep this pattern in sync with the one in func_win32_libid.
5366    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5367    lt_cv_file_magic_cmd='$OBJDUMP -f'
5368  fi
5369  ;;
5370
5371cegcc*)
5372  # use the weaker test based on 'objdump'. See mingw*.
5373  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5374  lt_cv_file_magic_cmd='$OBJDUMP -f'
5375  ;;
5376
5377darwin* | rhapsody*)
5378  lt_cv_deplibs_check_method=pass_all
5379  ;;
5380
5381freebsd* | dragonfly*)
5382  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5383    case $host_cpu in
5384    i*86 )
5385      # Not sure whether the presence of OpenBSD here was a mistake.
5386      # Let's accept both of them until this is cleared up.
5387      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5388      lt_cv_file_magic_cmd=/usr/bin/file
5389      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5390      ;;
5391    esac
5392  else
5393    lt_cv_deplibs_check_method=pass_all
5394  fi
5395  ;;
5396
5397haiku*)
5398  lt_cv_deplibs_check_method=pass_all
5399  ;;
5400
5401hpux10.20* | hpux11*)
5402  lt_cv_file_magic_cmd=/usr/bin/file
5403  case $host_cpu in
5404  ia64*)
5405    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5406    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5407    ;;
5408  hppa*64*)
5409    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]'
5410    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5411    ;;
5412  *)
5413    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5414    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5415    ;;
5416  esac
5417  ;;
5418
5419interix[3-9]*)
5420  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5421  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5422  ;;
5423
5424irix5* | irix6* | nonstopux*)
5425  case $LD in
5426  *-32|*"-32 ") libmagic=32-bit;;
5427  *-n32|*"-n32 ") libmagic=N32;;
5428  *-64|*"-64 ") libmagic=64-bit;;
5429  *) libmagic=never-match;;
5430  esac
5431  lt_cv_deplibs_check_method=pass_all
5432  ;;
5433
5434# This must be glibc/ELF.
5435linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5436  lt_cv_deplibs_check_method=pass_all
5437  ;;
5438
5439netbsd* | netbsdelf*-gnu)
5440  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5441    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5442  else
5443    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5444  fi
5445  ;;
5446
5447newos6*)
5448  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5449  lt_cv_file_magic_cmd=/usr/bin/file
5450  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5451  ;;
5452
5453*nto* | *qnx*)
5454  lt_cv_deplibs_check_method=pass_all
5455  ;;
5456
5457openbsd* | bitrig*)
5458  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5459    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5460  else
5461    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5462  fi
5463  ;;
5464
5465osf3* | osf4* | osf5*)
5466  lt_cv_deplibs_check_method=pass_all
5467  ;;
5468
5469rdos*)
5470  lt_cv_deplibs_check_method=pass_all
5471  ;;
5472
5473solaris*)
5474  lt_cv_deplibs_check_method=pass_all
5475  ;;
5476
5477sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5478  lt_cv_deplibs_check_method=pass_all
5479  ;;
5480
5481sysv4 | sysv4.3*)
5482  case $host_vendor in
5483  motorola)
5484    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]'
5485    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5486    ;;
5487  ncr)
5488    lt_cv_deplibs_check_method=pass_all
5489    ;;
5490  sequent)
5491    lt_cv_file_magic_cmd='/bin/file'
5492    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5493    ;;
5494  sni)
5495    lt_cv_file_magic_cmd='/bin/file'
5496    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5497    lt_cv_file_magic_test_file=/lib/libc.so
5498    ;;
5499  siemens)
5500    lt_cv_deplibs_check_method=pass_all
5501    ;;
5502  pc)
5503    lt_cv_deplibs_check_method=pass_all
5504    ;;
5505  esac
5506  ;;
5507
5508tpf*)
5509  lt_cv_deplibs_check_method=pass_all
5510  ;;
5511os2*)
5512  lt_cv_deplibs_check_method=pass_all
5513  ;;
5514esac
5515
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5518$as_echo "$lt_cv_deplibs_check_method" >&6; }
5519
5520file_magic_glob=
5521want_nocaseglob=no
5522if test "$build" = "$host"; then
5523  case $host_os in
5524  mingw* | pw32*)
5525    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5526      want_nocaseglob=yes
5527    else
5528      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5529    fi
5530    ;;
5531  esac
5532fi
5533
5534file_magic_cmd=$lt_cv_file_magic_cmd
5535deplibs_check_method=$lt_cv_deplibs_check_method
5536test -z "$deplibs_check_method" && deplibs_check_method=unknown
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559if test -n "$ac_tool_prefix"; then
5560  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5561set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563$as_echo_n "checking for $ac_word... " >&6; }
5564if ${ac_cv_prog_DLLTOOL+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  if test -n "$DLLTOOL"; then
5568  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573  IFS=$as_save_IFS
5574  test -z "$as_dir" && as_dir=.
5575    for ac_exec_ext in '' $ac_executable_extensions; do
5576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579    break 2
5580  fi
5581done
5582  done
5583IFS=$as_save_IFS
5584
5585fi
5586fi
5587DLLTOOL=$ac_cv_prog_DLLTOOL
5588if test -n "$DLLTOOL"; then
5589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5590$as_echo "$DLLTOOL" >&6; }
5591else
5592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593$as_echo "no" >&6; }
5594fi
5595
5596
5597fi
5598if test -z "$ac_cv_prog_DLLTOOL"; then
5599  ac_ct_DLLTOOL=$DLLTOOL
5600  # Extract the first word of "dlltool", so it can be a program name with args.
5601set dummy dlltool; ac_word=$2
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603$as_echo_n "checking for $ac_word... " >&6; }
5604if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  if test -n "$ac_ct_DLLTOOL"; then
5608  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613  IFS=$as_save_IFS
5614  test -z "$as_dir" && as_dir=.
5615    for ac_exec_ext in '' $ac_executable_extensions; do
5616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619    break 2
5620  fi
5621done
5622  done
5623IFS=$as_save_IFS
5624
5625fi
5626fi
5627ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5628if test -n "$ac_ct_DLLTOOL"; then
5629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5630$as_echo "$ac_ct_DLLTOOL" >&6; }
5631else
5632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634fi
5635
5636  if test "x$ac_ct_DLLTOOL" = x; then
5637    DLLTOOL="false"
5638  else
5639    case $cross_compiling:$ac_tool_warned in
5640yes:)
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5643ac_tool_warned=yes ;;
5644esac
5645    DLLTOOL=$ac_ct_DLLTOOL
5646  fi
5647else
5648  DLLTOOL="$ac_cv_prog_DLLTOOL"
5649fi
5650
5651test -z "$DLLTOOL" && DLLTOOL=dlltool
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5663$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5664if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5665  $as_echo_n "(cached) " >&6
5666else
5667  lt_cv_sharedlib_from_linklib_cmd='unknown'
5668
5669case $host_os in
5670cygwin* | mingw* | pw32* | cegcc*)
5671  # two different shell functions defined in ltmain.sh;
5672  # decide which one to use based on capabilities of $DLLTOOL
5673  case `$DLLTOOL --help 2>&1` in
5674  *--identify-strict*)
5675    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5676    ;;
5677  *)
5678    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5679    ;;
5680  esac
5681  ;;
5682*)
5683  # fallback: assume linklib IS sharedlib
5684  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5685  ;;
5686esac
5687
5688fi
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5690$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5691sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5692test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5693
5694
5695
5696
5697
5698
5699
5700
5701if test -n "$ac_tool_prefix"; then
5702  for ac_prog in ar
5703  do
5704    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5705set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707$as_echo_n "checking for $ac_word... " >&6; }
5708if ${ac_cv_prog_AR+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  if test -n "$AR"; then
5712  ac_cv_prog_AR="$AR" # Let the user override the test.
5713else
5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH
5716do
5717  IFS=$as_save_IFS
5718  test -z "$as_dir" && as_dir=.
5719    for ac_exec_ext in '' $ac_executable_extensions; do
5720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723    break 2
5724  fi
5725done
5726  done
5727IFS=$as_save_IFS
5728
5729fi
5730fi
5731AR=$ac_cv_prog_AR
5732if test -n "$AR"; then
5733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5734$as_echo "$AR" >&6; }
5735else
5736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737$as_echo "no" >&6; }
5738fi
5739
5740
5741    test -n "$AR" && break
5742  done
5743fi
5744if test -z "$AR"; then
5745  ac_ct_AR=$AR
5746  for ac_prog in ar
5747do
5748  # Extract the first word of "$ac_prog", so it can be a program name with args.
5749set dummy $ac_prog; ac_word=$2
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751$as_echo_n "checking for $ac_word... " >&6; }
5752if ${ac_cv_prog_ac_ct_AR+:} false; then :
5753  $as_echo_n "(cached) " >&6
5754else
5755  if test -n "$ac_ct_AR"; then
5756  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761  IFS=$as_save_IFS
5762  test -z "$as_dir" && as_dir=.
5763    for ac_exec_ext in '' $ac_executable_extensions; do
5764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765    ac_cv_prog_ac_ct_AR="$ac_prog"
5766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767    break 2
5768  fi
5769done
5770  done
5771IFS=$as_save_IFS
5772
5773fi
5774fi
5775ac_ct_AR=$ac_cv_prog_ac_ct_AR
5776if test -n "$ac_ct_AR"; then
5777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5778$as_echo "$ac_ct_AR" >&6; }
5779else
5780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
5782fi
5783
5784
5785  test -n "$ac_ct_AR" && break
5786done
5787
5788  if test "x$ac_ct_AR" = x; then
5789    AR="false"
5790  else
5791    case $cross_compiling:$ac_tool_warned in
5792yes:)
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795ac_tool_warned=yes ;;
5796esac
5797    AR=$ac_ct_AR
5798  fi
5799fi
5800
5801: ${AR=ar}
5802: ${AR_FLAGS=cru}
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5815$as_echo_n "checking for archiver @FILE support... " >&6; }
5816if ${lt_cv_ar_at_file+:} false; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  lt_cv_ar_at_file=no
5820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h.  */
5822
5823int
5824main ()
5825{
5826
5827  ;
5828  return 0;
5829}
5830_ACEOF
5831if ac_fn_c_try_compile "$LINENO"; then :
5832  echo conftest.$ac_objext > conftest.lst
5833      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5834      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5835  (eval $lt_ar_try) 2>&5
5836  ac_status=$?
5837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5838  test $ac_status = 0; }
5839      if test 0 -eq "$ac_status"; then
5840	# Ensure the archiver fails upon bogus file names.
5841	rm -f conftest.$ac_objext libconftest.a
5842	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5843  (eval $lt_ar_try) 2>&5
5844  ac_status=$?
5845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5846  test $ac_status = 0; }
5847	if test 0 -ne "$ac_status"; then
5848          lt_cv_ar_at_file=@
5849        fi
5850      fi
5851      rm -f conftest.* libconftest.a
5852
5853fi
5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855
5856fi
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5858$as_echo "$lt_cv_ar_at_file" >&6; }
5859
5860if test no = "$lt_cv_ar_at_file"; then
5861  archiver_list_spec=
5862else
5863  archiver_list_spec=$lt_cv_ar_at_file
5864fi
5865
5866
5867
5868
5869
5870
5871
5872if test -n "$ac_tool_prefix"; then
5873  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5874set dummy ${ac_tool_prefix}strip; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
5877if ${ac_cv_prog_STRIP+:} false; then :
5878  $as_echo_n "(cached) " >&6
5879else
5880  if test -n "$STRIP"; then
5881  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886  IFS=$as_save_IFS
5887  test -z "$as_dir" && as_dir=.
5888    for ac_exec_ext in '' $ac_executable_extensions; do
5889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892    break 2
5893  fi
5894done
5895  done
5896IFS=$as_save_IFS
5897
5898fi
5899fi
5900STRIP=$ac_cv_prog_STRIP
5901if test -n "$STRIP"; then
5902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5903$as_echo "$STRIP" >&6; }
5904else
5905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909
5910fi
5911if test -z "$ac_cv_prog_STRIP"; then
5912  ac_ct_STRIP=$STRIP
5913  # Extract the first word of "strip", so it can be a program name with args.
5914set dummy strip; ac_word=$2
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916$as_echo_n "checking for $ac_word... " >&6; }
5917if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5918  $as_echo_n "(cached) " >&6
5919else
5920  if test -n "$ac_ct_STRIP"; then
5921  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926  IFS=$as_save_IFS
5927  test -z "$as_dir" && as_dir=.
5928    for ac_exec_ext in '' $ac_executable_extensions; do
5929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930    ac_cv_prog_ac_ct_STRIP="strip"
5931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932    break 2
5933  fi
5934done
5935  done
5936IFS=$as_save_IFS
5937
5938fi
5939fi
5940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5941if test -n "$ac_ct_STRIP"; then
5942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5943$as_echo "$ac_ct_STRIP" >&6; }
5944else
5945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946$as_echo "no" >&6; }
5947fi
5948
5949  if test "x$ac_ct_STRIP" = x; then
5950    STRIP=":"
5951  else
5952    case $cross_compiling:$ac_tool_warned in
5953yes:)
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956ac_tool_warned=yes ;;
5957esac
5958    STRIP=$ac_ct_STRIP
5959  fi
5960else
5961  STRIP="$ac_cv_prog_STRIP"
5962fi
5963
5964test -z "$STRIP" && STRIP=:
5965
5966
5967
5968
5969
5970
5971if test -n "$ac_tool_prefix"; then
5972  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5973set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975$as_echo_n "checking for $ac_word... " >&6; }
5976if ${ac_cv_prog_RANLIB+:} false; then :
5977  $as_echo_n "(cached) " >&6
5978else
5979  if test -n "$RANLIB"; then
5980  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5981else
5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH
5984do
5985  IFS=$as_save_IFS
5986  test -z "$as_dir" && as_dir=.
5987    for ac_exec_ext in '' $ac_executable_extensions; do
5988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991    break 2
5992  fi
5993done
5994  done
5995IFS=$as_save_IFS
5996
5997fi
5998fi
5999RANLIB=$ac_cv_prog_RANLIB
6000if test -n "$RANLIB"; then
6001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6002$as_echo "$RANLIB" >&6; }
6003else
6004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005$as_echo "no" >&6; }
6006fi
6007
6008
6009fi
6010if test -z "$ac_cv_prog_RANLIB"; then
6011  ac_ct_RANLIB=$RANLIB
6012  # Extract the first word of "ranlib", so it can be a program name with args.
6013set dummy ranlib; ac_word=$2
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015$as_echo_n "checking for $ac_word... " >&6; }
6016if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6017  $as_echo_n "(cached) " >&6
6018else
6019  if test -n "$ac_ct_RANLIB"; then
6020  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6021else
6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023for as_dir in $PATH
6024do
6025  IFS=$as_save_IFS
6026  test -z "$as_dir" && as_dir=.
6027    for ac_exec_ext in '' $ac_executable_extensions; do
6028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6029    ac_cv_prog_ac_ct_RANLIB="ranlib"
6030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031    break 2
6032  fi
6033done
6034  done
6035IFS=$as_save_IFS
6036
6037fi
6038fi
6039ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6040if test -n "$ac_ct_RANLIB"; then
6041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6042$as_echo "$ac_ct_RANLIB" >&6; }
6043else
6044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045$as_echo "no" >&6; }
6046fi
6047
6048  if test "x$ac_ct_RANLIB" = x; then
6049    RANLIB=":"
6050  else
6051    case $cross_compiling:$ac_tool_warned in
6052yes:)
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055ac_tool_warned=yes ;;
6056esac
6057    RANLIB=$ac_ct_RANLIB
6058  fi
6059else
6060  RANLIB="$ac_cv_prog_RANLIB"
6061fi
6062
6063test -z "$RANLIB" && RANLIB=:
6064
6065
6066
6067
6068
6069
6070# Determine commands to create old-style static archives.
6071old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6072old_postinstall_cmds='chmod 644 $oldlib'
6073old_postuninstall_cmds=
6074
6075if test -n "$RANLIB"; then
6076  case $host_os in
6077  bitrig* | openbsd*)
6078    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6079    ;;
6080  *)
6081    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6082    ;;
6083  esac
6084  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6085fi
6086
6087case $host_os in
6088  darwin*)
6089    lock_old_archive_extraction=yes ;;
6090  *)
6091    lock_old_archive_extraction=no ;;
6092esac
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132# If no C compiler was specified, use CC.
6133LTCC=${LTCC-"$CC"}
6134
6135# If no C compiler flags were specified, use CFLAGS.
6136LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6137
6138# Allow CC to be a program name with arguments.
6139compiler=$CC
6140
6141
6142# Check for command to grab the raw symbol name followed by C symbol from nm.
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6144$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6145if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6146  $as_echo_n "(cached) " >&6
6147else
6148
6149# These are sane defaults that work on at least a few old systems.
6150# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6151
6152# Character class describing NM global symbol codes.
6153symcode='[BCDEGRST]'
6154
6155# Regexp to match symbols that can be accessed directly from C.
6156sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6157
6158# Define system-specific variables.
6159case $host_os in
6160aix*)
6161  symcode='[BCDT]'
6162  ;;
6163cygwin* | mingw* | pw32* | cegcc*)
6164  symcode='[ABCDGISTW]'
6165  ;;
6166hpux*)
6167  if test ia64 = "$host_cpu"; then
6168    symcode='[ABCDEGRST]'
6169  fi
6170  ;;
6171irix* | nonstopux*)
6172  symcode='[BCDEGRST]'
6173  ;;
6174osf*)
6175  symcode='[BCDEGQRST]'
6176  ;;
6177solaris*)
6178  symcode='[BDRT]'
6179  ;;
6180sco3.2v5*)
6181  symcode='[DT]'
6182  ;;
6183sysv4.2uw2*)
6184  symcode='[DT]'
6185  ;;
6186sysv5* | sco5v6* | unixware* | OpenUNIX*)
6187  symcode='[ABDT]'
6188  ;;
6189sysv4)
6190  symcode='[DFNSTU]'
6191  ;;
6192esac
6193
6194# If we're using GNU nm, then use its standard symbol codes.
6195case `$NM -V 2>&1` in
6196*GNU* | *'with BFD'*)
6197  symcode='[ABCDGIRSTW]' ;;
6198esac
6199
6200if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6201  # Gets list of data symbols to import.
6202  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6203  # Adjust the below global symbol transforms to fixup imported variables.
6204  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6205  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6206  lt_c_name_lib_hook="\
6207  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6208  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6209else
6210  # Disable hooks by default.
6211  lt_cv_sys_global_symbol_to_import=
6212  lt_cdecl_hook=
6213  lt_c_name_hook=
6214  lt_c_name_lib_hook=
6215fi
6216
6217# Transform an extracted symbol line into a proper C declaration.
6218# Some systems (esp. on ia64) link data and code symbols differently,
6219# so use this general approach.
6220lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6221$lt_cdecl_hook\
6222" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6223" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6224
6225# Transform an extracted symbol line into symbol name and symbol address
6226lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6227$lt_c_name_hook\
6228" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6229" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6230
6231# Transform an extracted symbol line into symbol name with lib prefix and
6232# symbol address.
6233lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6234$lt_c_name_lib_hook\
6235" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6236" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6237" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6238
6239# Handle CRLF in mingw tool chain
6240opt_cr=
6241case $build_os in
6242mingw*)
6243  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6244  ;;
6245esac
6246
6247# Try without a prefix underscore, then with it.
6248for ac_symprfx in "" "_"; do
6249
6250  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6251  symxfrm="\\1 $ac_symprfx\\2 \\2"
6252
6253  # Write the raw and C identifiers.
6254  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6255    # Fake it for dumpbin and say T for any non-static function,
6256    # D for any global variable and I for any imported variable.
6257    # Also find C++ and __fastcall symbols from MSVC++,
6258    # which start with @ or ?.
6259    lt_cv_sys_global_symbol_pipe="$AWK '"\
6260"     {last_section=section; section=\$ 3};"\
6261"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6262"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6263"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6264"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6265"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6266"     \$ 0!~/External *\|/{next};"\
6267"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6268"     {if(hide[section]) next};"\
6269"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6270"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6271"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6272"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6273"     ' prfx=^$ac_symprfx"
6274  else
6275    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6276  fi
6277  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6278
6279  # Check to see that the pipe works correctly.
6280  pipe_works=no
6281
6282  rm -f conftest*
6283  cat > conftest.$ac_ext <<_LT_EOF
6284#ifdef __cplusplus
6285extern "C" {
6286#endif
6287char nm_test_var;
6288void nm_test_func(void);
6289void nm_test_func(void){}
6290#ifdef __cplusplus
6291}
6292#endif
6293int main(){nm_test_var='a';nm_test_func();return(0);}
6294_LT_EOF
6295
6296  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6297  (eval $ac_compile) 2>&5
6298  ac_status=$?
6299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300  test $ac_status = 0; }; then
6301    # Now try to grab the symbols.
6302    nlist=conftest.nm
6303    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6304  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6305  ac_status=$?
6306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307  test $ac_status = 0; } && test -s "$nlist"; then
6308      # Try sorting and uniquifying the output.
6309      if sort "$nlist" | uniq > "$nlist"T; then
6310	mv -f "$nlist"T "$nlist"
6311      else
6312	rm -f "$nlist"T
6313      fi
6314
6315      # Make sure that we snagged all the symbols we need.
6316      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6317	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6318	  cat <<_LT_EOF > conftest.$ac_ext
6319/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6320#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6321/* DATA imports from DLLs on WIN32 can't be const, because runtime
6322   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6323# define LT_DLSYM_CONST
6324#elif defined __osf__
6325/* This system does not cope well with relocations in const data.  */
6326# define LT_DLSYM_CONST
6327#else
6328# define LT_DLSYM_CONST const
6329#endif
6330
6331#ifdef __cplusplus
6332extern "C" {
6333#endif
6334
6335_LT_EOF
6336	  # Now generate the symbol file.
6337	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6338
6339	  cat <<_LT_EOF >> conftest.$ac_ext
6340
6341/* The mapping between symbol names and symbols.  */
6342LT_DLSYM_CONST struct {
6343  const char *name;
6344  void       *address;
6345}
6346lt__PROGRAM__LTX_preloaded_symbols[] =
6347{
6348  { "@PROGRAM@", (void *) 0 },
6349_LT_EOF
6350	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6351	  cat <<\_LT_EOF >> conftest.$ac_ext
6352  {0, (void *) 0}
6353};
6354
6355/* This works around a problem in FreeBSD linker */
6356#ifdef FREEBSD_WORKAROUND
6357static const void *lt_preloaded_setup() {
6358  return lt__PROGRAM__LTX_preloaded_symbols;
6359}
6360#endif
6361
6362#ifdef __cplusplus
6363}
6364#endif
6365_LT_EOF
6366	  # Now try linking the two files.
6367	  mv conftest.$ac_objext conftstm.$ac_objext
6368	  lt_globsym_save_LIBS=$LIBS
6369	  lt_globsym_save_CFLAGS=$CFLAGS
6370	  LIBS=conftstm.$ac_objext
6371	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6372	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6373  (eval $ac_link) 2>&5
6374  ac_status=$?
6375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6377	    pipe_works=yes
6378	  fi
6379	  LIBS=$lt_globsym_save_LIBS
6380	  CFLAGS=$lt_globsym_save_CFLAGS
6381	else
6382	  echo "cannot find nm_test_func in $nlist" >&5
6383	fi
6384      else
6385	echo "cannot find nm_test_var in $nlist" >&5
6386      fi
6387    else
6388      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6389    fi
6390  else
6391    echo "$progname: failed program was:" >&5
6392    cat conftest.$ac_ext >&5
6393  fi
6394  rm -rf conftest* conftst*
6395
6396  # Do not use the global_symbol_pipe unless it works.
6397  if test yes = "$pipe_works"; then
6398    break
6399  else
6400    lt_cv_sys_global_symbol_pipe=
6401  fi
6402done
6403
6404fi
6405
6406if test -z "$lt_cv_sys_global_symbol_pipe"; then
6407  lt_cv_sys_global_symbol_to_cdecl=
6408fi
6409if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6411$as_echo "failed" >&6; }
6412else
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6414$as_echo "ok" >&6; }
6415fi
6416
6417# Response file support.
6418if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6419  nm_file_list_spec='@'
6420elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6421  nm_file_list_spec='@'
6422fi
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6461$as_echo_n "checking for sysroot... " >&6; }
6462
6463# Check whether --with-sysroot was given.
6464if test "${with_sysroot+set}" = set; then :
6465  withval=$with_sysroot;
6466else
6467  with_sysroot=no
6468fi
6469
6470
6471lt_sysroot=
6472case $with_sysroot in #(
6473 yes)
6474   if test yes = "$GCC"; then
6475     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6476   fi
6477   ;; #(
6478 /*)
6479   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6480   ;; #(
6481 no|'')
6482   ;; #(
6483 *)
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6485$as_echo "$with_sysroot" >&6; }
6486   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6487   ;;
6488esac
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6491$as_echo "${lt_sysroot:-no}" >&6; }
6492
6493
6494
6495
6496
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6498$as_echo_n "checking for a working dd... " >&6; }
6499if ${ac_cv_path_lt_DD+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  printf 0123456789abcdef0123456789abcdef >conftest.i
6503cat conftest.i conftest.i >conftest2.i
6504: ${lt_DD:=$DD}
6505if test -z "$lt_DD"; then
6506  ac_path_lt_DD_found=false
6507  # Loop through the user's path and test for each of PROGNAME-LIST
6508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511  IFS=$as_save_IFS
6512  test -z "$as_dir" && as_dir=.
6513    for ac_prog in dd; do
6514    for ac_exec_ext in '' $ac_executable_extensions; do
6515      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6516      as_fn_executable_p "$ac_path_lt_DD" || continue
6517if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6518  cmp -s conftest.i conftest.out \
6519  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6520fi
6521      $ac_path_lt_DD_found && break 3
6522    done
6523  done
6524  done
6525IFS=$as_save_IFS
6526  if test -z "$ac_cv_path_lt_DD"; then
6527    :
6528  fi
6529else
6530  ac_cv_path_lt_DD=$lt_DD
6531fi
6532
6533rm -f conftest.i conftest2.i conftest.out
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6536$as_echo "$ac_cv_path_lt_DD" >&6; }
6537
6538
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6540$as_echo_n "checking how to truncate binary pipes... " >&6; }
6541if ${lt_cv_truncate_bin+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  printf 0123456789abcdef0123456789abcdef >conftest.i
6545cat conftest.i conftest.i >conftest2.i
6546lt_cv_truncate_bin=
6547if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6548  cmp -s conftest.i conftest.out \
6549  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6550fi
6551rm -f conftest.i conftest2.i conftest.out
6552test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6553fi
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6555$as_echo "$lt_cv_truncate_bin" >&6; }
6556
6557
6558
6559
6560
6561
6562
6563# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6564func_cc_basename ()
6565{
6566    for cc_temp in $*""; do
6567      case $cc_temp in
6568        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6569        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6570        \-*) ;;
6571        *) break;;
6572      esac
6573    done
6574    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6575}
6576
6577# Check whether --enable-libtool-lock was given.
6578if test "${enable_libtool_lock+set}" = set; then :
6579  enableval=$enable_libtool_lock;
6580fi
6581
6582test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6583
6584# Some flags need to be propagated to the compiler or linker for good
6585# libtool support.
6586case $host in
6587ia64-*-hpux*)
6588  # Find out what ABI is being produced by ac_compile, and set mode
6589  # options accordingly.
6590  echo 'int i;' > conftest.$ac_ext
6591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6592  (eval $ac_compile) 2>&5
6593  ac_status=$?
6594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595  test $ac_status = 0; }; then
6596    case `/usr/bin/file conftest.$ac_objext` in
6597      *ELF-32*)
6598	HPUX_IA64_MODE=32
6599	;;
6600      *ELF-64*)
6601	HPUX_IA64_MODE=64
6602	;;
6603    esac
6604  fi
6605  rm -rf conftest*
6606  ;;
6607*-*-irix6*)
6608  # Find out what ABI is being produced by ac_compile, and set linker
6609  # options accordingly.
6610  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6611  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6612  (eval $ac_compile) 2>&5
6613  ac_status=$?
6614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615  test $ac_status = 0; }; then
6616    if test yes = "$lt_cv_prog_gnu_ld"; then
6617      case `/usr/bin/file conftest.$ac_objext` in
6618	*32-bit*)
6619	  LD="${LD-ld} -melf32bsmip"
6620	  ;;
6621	*N32*)
6622	  LD="${LD-ld} -melf32bmipn32"
6623	  ;;
6624	*64-bit*)
6625	  LD="${LD-ld} -melf64bmip"
6626	;;
6627      esac
6628    else
6629      case `/usr/bin/file conftest.$ac_objext` in
6630	*32-bit*)
6631	  LD="${LD-ld} -32"
6632	  ;;
6633	*N32*)
6634	  LD="${LD-ld} -n32"
6635	  ;;
6636	*64-bit*)
6637	  LD="${LD-ld} -64"
6638	  ;;
6639      esac
6640    fi
6641  fi
6642  rm -rf conftest*
6643  ;;
6644
6645mips64*-*linux*)
6646  # Find out what ABI is being produced by ac_compile, and set linker
6647  # options accordingly.
6648  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6649  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6650  (eval $ac_compile) 2>&5
6651  ac_status=$?
6652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653  test $ac_status = 0; }; then
6654    emul=elf
6655    case `/usr/bin/file conftest.$ac_objext` in
6656      *32-bit*)
6657	emul="${emul}32"
6658	;;
6659      *64-bit*)
6660	emul="${emul}64"
6661	;;
6662    esac
6663    case `/usr/bin/file conftest.$ac_objext` in
6664      *MSB*)
6665	emul="${emul}btsmip"
6666	;;
6667      *LSB*)
6668	emul="${emul}ltsmip"
6669	;;
6670    esac
6671    case `/usr/bin/file conftest.$ac_objext` in
6672      *N32*)
6673	emul="${emul}n32"
6674	;;
6675    esac
6676    LD="${LD-ld} -m $emul"
6677  fi
6678  rm -rf conftest*
6679  ;;
6680
6681x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6682s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6683  # Find out what ABI is being produced by ac_compile, and set linker
6684  # options accordingly.  Note that the listed cases only cover the
6685  # situations where additional linker options are needed (such as when
6686  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6687  # vice versa); the common cases where no linker options are needed do
6688  # not appear in the list.
6689  echo 'int i;' > conftest.$ac_ext
6690  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691  (eval $ac_compile) 2>&5
6692  ac_status=$?
6693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694  test $ac_status = 0; }; then
6695    case `/usr/bin/file conftest.o` in
6696      *32-bit*)
6697	case $host in
6698	  x86_64-*kfreebsd*-gnu)
6699	    LD="${LD-ld} -m elf_i386_fbsd"
6700	    ;;
6701	  x86_64-*linux*)
6702	    case `/usr/bin/file conftest.o` in
6703	      *x86-64*)
6704		LD="${LD-ld} -m elf32_x86_64"
6705		;;
6706	      *)
6707		LD="${LD-ld} -m elf_i386"
6708		;;
6709	    esac
6710	    ;;
6711	  powerpc64le-*linux*)
6712	    LD="${LD-ld} -m elf32lppclinux"
6713	    ;;
6714	  powerpc64-*linux*)
6715	    LD="${LD-ld} -m elf32ppclinux"
6716	    ;;
6717	  s390x-*linux*)
6718	    LD="${LD-ld} -m elf_s390"
6719	    ;;
6720	  sparc64-*linux*)
6721	    LD="${LD-ld} -m elf32_sparc"
6722	    ;;
6723	esac
6724	;;
6725      *64-bit*)
6726	case $host in
6727	  x86_64-*kfreebsd*-gnu)
6728	    LD="${LD-ld} -m elf_x86_64_fbsd"
6729	    ;;
6730	  x86_64-*linux*)
6731	    LD="${LD-ld} -m elf_x86_64"
6732	    ;;
6733	  powerpcle-*linux*)
6734	    LD="${LD-ld} -m elf64lppc"
6735	    ;;
6736	  powerpc-*linux*)
6737	    LD="${LD-ld} -m elf64ppc"
6738	    ;;
6739	  s390*-*linux*|s390*-*tpf*)
6740	    LD="${LD-ld} -m elf64_s390"
6741	    ;;
6742	  sparc*-*linux*)
6743	    LD="${LD-ld} -m elf64_sparc"
6744	    ;;
6745	esac
6746	;;
6747    esac
6748  fi
6749  rm -rf conftest*
6750  ;;
6751
6752*-*-sco3.2v5*)
6753  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6754  SAVE_CFLAGS=$CFLAGS
6755  CFLAGS="$CFLAGS -belf"
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6757$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6758if ${lt_cv_cc_needs_belf+:} false; then :
6759  $as_echo_n "(cached) " >&6
6760else
6761  ac_ext=c
6762ac_cpp='$CPP $CPPFLAGS'
6763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6765ac_compiler_gnu=$ac_cv_c_compiler_gnu
6766
6767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768/* end confdefs.h.  */
6769
6770int
6771main ()
6772{
6773
6774  ;
6775  return 0;
6776}
6777_ACEOF
6778if ac_fn_c_try_link "$LINENO"; then :
6779  lt_cv_cc_needs_belf=yes
6780else
6781  lt_cv_cc_needs_belf=no
6782fi
6783rm -f core conftest.err conftest.$ac_objext \
6784    conftest$ac_exeext conftest.$ac_ext
6785     ac_ext=c
6786ac_cpp='$CPP $CPPFLAGS'
6787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6793$as_echo "$lt_cv_cc_needs_belf" >&6; }
6794  if test yes != "$lt_cv_cc_needs_belf"; then
6795    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6796    CFLAGS=$SAVE_CFLAGS
6797  fi
6798  ;;
6799*-*solaris*)
6800  # Find out what ABI is being produced by ac_compile, and set linker
6801  # options accordingly.
6802  echo 'int i;' > conftest.$ac_ext
6803  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6804  (eval $ac_compile) 2>&5
6805  ac_status=$?
6806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6807  test $ac_status = 0; }; then
6808    case `/usr/bin/file conftest.o` in
6809    *64-bit*)
6810      case $lt_cv_prog_gnu_ld in
6811      yes*)
6812        case $host in
6813        i?86-*-solaris*|x86_64-*-solaris*)
6814          LD="${LD-ld} -m elf_x86_64"
6815          ;;
6816        sparc*-*-solaris*)
6817          LD="${LD-ld} -m elf64_sparc"
6818          ;;
6819        esac
6820        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6821        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6822          LD=${LD-ld}_sol2
6823        fi
6824        ;;
6825      *)
6826	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6827	  LD="${LD-ld} -64"
6828	fi
6829	;;
6830      esac
6831      ;;
6832    esac
6833  fi
6834  rm -rf conftest*
6835  ;;
6836esac
6837
6838need_locks=$enable_libtool_lock
6839
6840if test -n "$ac_tool_prefix"; then
6841  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6842set dummy ${ac_tool_prefix}mt; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  if test -n "$MANIFEST_TOOL"; then
6849  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856    for ac_exec_ext in '' $ac_executable_extensions; do
6857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863  done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6869if test -n "$MANIFEST_TOOL"; then
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6871$as_echo "$MANIFEST_TOOL" >&6; }
6872else
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877
6878fi
6879if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6880  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6881  # Extract the first word of "mt", so it can be a program name with args.
6882set dummy mt; ac_word=$2
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884$as_echo_n "checking for $ac_word... " >&6; }
6885if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6886  $as_echo_n "(cached) " >&6
6887else
6888  if test -n "$ac_ct_MANIFEST_TOOL"; then
6889  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894  IFS=$as_save_IFS
6895  test -z "$as_dir" && as_dir=.
6896    for ac_exec_ext in '' $ac_executable_extensions; do
6897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900    break 2
6901  fi
6902done
6903  done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6909if test -n "$ac_ct_MANIFEST_TOOL"; then
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6911$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6912else
6913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914$as_echo "no" >&6; }
6915fi
6916
6917  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6918    MANIFEST_TOOL=":"
6919  else
6920    case $cross_compiling:$ac_tool_warned in
6921yes:)
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924ac_tool_warned=yes ;;
6925esac
6926    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6927  fi
6928else
6929  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6930fi
6931
6932test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6934$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6935if ${lt_cv_path_mainfest_tool+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  lt_cv_path_mainfest_tool=no
6939  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6940  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6941  cat conftest.err >&5
6942  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6943    lt_cv_path_mainfest_tool=yes
6944  fi
6945  rm -f conftest*
6946fi
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6948$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6949if test yes != "$lt_cv_path_mainfest_tool"; then
6950  MANIFEST_TOOL=:
6951fi
6952
6953
6954
6955
6956
6957
6958  case $host_os in
6959    rhapsody* | darwin*)
6960    if test -n "$ac_tool_prefix"; then
6961  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6962set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964$as_echo_n "checking for $ac_word... " >&6; }
6965if ${ac_cv_prog_DSYMUTIL+:} false; then :
6966  $as_echo_n "(cached) " >&6
6967else
6968  if test -n "$DSYMUTIL"; then
6969  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974  IFS=$as_save_IFS
6975  test -z "$as_dir" && as_dir=.
6976    for ac_exec_ext in '' $ac_executable_extensions; do
6977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980    break 2
6981  fi
6982done
6983  done
6984IFS=$as_save_IFS
6985
6986fi
6987fi
6988DSYMUTIL=$ac_cv_prog_DSYMUTIL
6989if test -n "$DSYMUTIL"; then
6990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6991$as_echo "$DSYMUTIL" >&6; }
6992else
6993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994$as_echo "no" >&6; }
6995fi
6996
6997
6998fi
6999if test -z "$ac_cv_prog_DSYMUTIL"; then
7000  ac_ct_DSYMUTIL=$DSYMUTIL
7001  # Extract the first word of "dsymutil", so it can be a program name with args.
7002set dummy dsymutil; ac_word=$2
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004$as_echo_n "checking for $ac_word... " >&6; }
7005if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7006  $as_echo_n "(cached) " >&6
7007else
7008  if test -n "$ac_ct_DSYMUTIL"; then
7009  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014  IFS=$as_save_IFS
7015  test -z "$as_dir" && as_dir=.
7016    for ac_exec_ext in '' $ac_executable_extensions; do
7017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020    break 2
7021  fi
7022done
7023  done
7024IFS=$as_save_IFS
7025
7026fi
7027fi
7028ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7029if test -n "$ac_ct_DSYMUTIL"; then
7030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7031$as_echo "$ac_ct_DSYMUTIL" >&6; }
7032else
7033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034$as_echo "no" >&6; }
7035fi
7036
7037  if test "x$ac_ct_DSYMUTIL" = x; then
7038    DSYMUTIL=":"
7039  else
7040    case $cross_compiling:$ac_tool_warned in
7041yes:)
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044ac_tool_warned=yes ;;
7045esac
7046    DSYMUTIL=$ac_ct_DSYMUTIL
7047  fi
7048else
7049  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7050fi
7051
7052    if test -n "$ac_tool_prefix"; then
7053  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7054set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056$as_echo_n "checking for $ac_word... " >&6; }
7057if ${ac_cv_prog_NMEDIT+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  if test -n "$NMEDIT"; then
7061  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066  IFS=$as_save_IFS
7067  test -z "$as_dir" && as_dir=.
7068    for ac_exec_ext in '' $ac_executable_extensions; do
7069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072    break 2
7073  fi
7074done
7075  done
7076IFS=$as_save_IFS
7077
7078fi
7079fi
7080NMEDIT=$ac_cv_prog_NMEDIT
7081if test -n "$NMEDIT"; then
7082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7083$as_echo "$NMEDIT" >&6; }
7084else
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087fi
7088
7089
7090fi
7091if test -z "$ac_cv_prog_NMEDIT"; then
7092  ac_ct_NMEDIT=$NMEDIT
7093  # Extract the first word of "nmedit", so it can be a program name with args.
7094set dummy nmedit; ac_word=$2
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096$as_echo_n "checking for $ac_word... " >&6; }
7097if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7098  $as_echo_n "(cached) " >&6
7099else
7100  if test -n "$ac_ct_NMEDIT"; then
7101  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7102else
7103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104for as_dir in $PATH
7105do
7106  IFS=$as_save_IFS
7107  test -z "$as_dir" && as_dir=.
7108    for ac_exec_ext in '' $ac_executable_extensions; do
7109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112    break 2
7113  fi
7114done
7115  done
7116IFS=$as_save_IFS
7117
7118fi
7119fi
7120ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7121if test -n "$ac_ct_NMEDIT"; then
7122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7123$as_echo "$ac_ct_NMEDIT" >&6; }
7124else
7125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126$as_echo "no" >&6; }
7127fi
7128
7129  if test "x$ac_ct_NMEDIT" = x; then
7130    NMEDIT=":"
7131  else
7132    case $cross_compiling:$ac_tool_warned in
7133yes:)
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7136ac_tool_warned=yes ;;
7137esac
7138    NMEDIT=$ac_ct_NMEDIT
7139  fi
7140else
7141  NMEDIT="$ac_cv_prog_NMEDIT"
7142fi
7143
7144    if test -n "$ac_tool_prefix"; then
7145  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7146set dummy ${ac_tool_prefix}lipo; ac_word=$2
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148$as_echo_n "checking for $ac_word... " >&6; }
7149if ${ac_cv_prog_LIPO+:} false; then :
7150  $as_echo_n "(cached) " >&6
7151else
7152  if test -n "$LIPO"; then
7153  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158  IFS=$as_save_IFS
7159  test -z "$as_dir" && as_dir=.
7160    for ac_exec_ext in '' $ac_executable_extensions; do
7161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164    break 2
7165  fi
7166done
7167  done
7168IFS=$as_save_IFS
7169
7170fi
7171fi
7172LIPO=$ac_cv_prog_LIPO
7173if test -n "$LIPO"; then
7174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7175$as_echo "$LIPO" >&6; }
7176else
7177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178$as_echo "no" >&6; }
7179fi
7180
7181
7182fi
7183if test -z "$ac_cv_prog_LIPO"; then
7184  ac_ct_LIPO=$LIPO
7185  # Extract the first word of "lipo", so it can be a program name with args.
7186set dummy lipo; ac_word=$2
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188$as_echo_n "checking for $ac_word... " >&6; }
7189if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7190  $as_echo_n "(cached) " >&6
7191else
7192  if test -n "$ac_ct_LIPO"; then
7193  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7194else
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198  IFS=$as_save_IFS
7199  test -z "$as_dir" && as_dir=.
7200    for ac_exec_ext in '' $ac_executable_extensions; do
7201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202    ac_cv_prog_ac_ct_LIPO="lipo"
7203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204    break 2
7205  fi
7206done
7207  done
7208IFS=$as_save_IFS
7209
7210fi
7211fi
7212ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7213if test -n "$ac_ct_LIPO"; then
7214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7215$as_echo "$ac_ct_LIPO" >&6; }
7216else
7217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218$as_echo "no" >&6; }
7219fi
7220
7221  if test "x$ac_ct_LIPO" = x; then
7222    LIPO=":"
7223  else
7224    case $cross_compiling:$ac_tool_warned in
7225yes:)
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7228ac_tool_warned=yes ;;
7229esac
7230    LIPO=$ac_ct_LIPO
7231  fi
7232else
7233  LIPO="$ac_cv_prog_LIPO"
7234fi
7235
7236    if test -n "$ac_tool_prefix"; then
7237  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7238set dummy ${ac_tool_prefix}otool; ac_word=$2
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240$as_echo_n "checking for $ac_word... " >&6; }
7241if ${ac_cv_prog_OTOOL+:} false; then :
7242  $as_echo_n "(cached) " >&6
7243else
7244  if test -n "$OTOOL"; then
7245  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7246else
7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250  IFS=$as_save_IFS
7251  test -z "$as_dir" && as_dir=.
7252    for ac_exec_ext in '' $ac_executable_extensions; do
7253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256    break 2
7257  fi
7258done
7259  done
7260IFS=$as_save_IFS
7261
7262fi
7263fi
7264OTOOL=$ac_cv_prog_OTOOL
7265if test -n "$OTOOL"; then
7266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7267$as_echo "$OTOOL" >&6; }
7268else
7269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270$as_echo "no" >&6; }
7271fi
7272
7273
7274fi
7275if test -z "$ac_cv_prog_OTOOL"; then
7276  ac_ct_OTOOL=$OTOOL
7277  # Extract the first word of "otool", so it can be a program name with args.
7278set dummy otool; ac_word=$2
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280$as_echo_n "checking for $ac_word... " >&6; }
7281if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7282  $as_echo_n "(cached) " >&6
7283else
7284  if test -n "$ac_ct_OTOOL"; then
7285  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7286else
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290  IFS=$as_save_IFS
7291  test -z "$as_dir" && as_dir=.
7292    for ac_exec_ext in '' $ac_executable_extensions; do
7293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294    ac_cv_prog_ac_ct_OTOOL="otool"
7295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296    break 2
7297  fi
7298done
7299  done
7300IFS=$as_save_IFS
7301
7302fi
7303fi
7304ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7305if test -n "$ac_ct_OTOOL"; then
7306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7307$as_echo "$ac_ct_OTOOL" >&6; }
7308else
7309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310$as_echo "no" >&6; }
7311fi
7312
7313  if test "x$ac_ct_OTOOL" = x; then
7314    OTOOL=":"
7315  else
7316    case $cross_compiling:$ac_tool_warned in
7317yes:)
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7320ac_tool_warned=yes ;;
7321esac
7322    OTOOL=$ac_ct_OTOOL
7323  fi
7324else
7325  OTOOL="$ac_cv_prog_OTOOL"
7326fi
7327
7328    if test -n "$ac_tool_prefix"; then
7329  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7330set dummy ${ac_tool_prefix}otool64; ac_word=$2
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332$as_echo_n "checking for $ac_word... " >&6; }
7333if ${ac_cv_prog_OTOOL64+:} false; then :
7334  $as_echo_n "(cached) " >&6
7335else
7336  if test -n "$OTOOL64"; then
7337  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7338else
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342  IFS=$as_save_IFS
7343  test -z "$as_dir" && as_dir=.
7344    for ac_exec_ext in '' $ac_executable_extensions; do
7345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348    break 2
7349  fi
7350done
7351  done
7352IFS=$as_save_IFS
7353
7354fi
7355fi
7356OTOOL64=$ac_cv_prog_OTOOL64
7357if test -n "$OTOOL64"; then
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7359$as_echo "$OTOOL64" >&6; }
7360else
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
7363fi
7364
7365
7366fi
7367if test -z "$ac_cv_prog_OTOOL64"; then
7368  ac_ct_OTOOL64=$OTOOL64
7369  # Extract the first word of "otool64", so it can be a program name with args.
7370set dummy otool64; ac_word=$2
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372$as_echo_n "checking for $ac_word... " >&6; }
7373if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7374  $as_echo_n "(cached) " >&6
7375else
7376  if test -n "$ac_ct_OTOOL64"; then
7377  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7378else
7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382  IFS=$as_save_IFS
7383  test -z "$as_dir" && as_dir=.
7384    for ac_exec_ext in '' $ac_executable_extensions; do
7385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386    ac_cv_prog_ac_ct_OTOOL64="otool64"
7387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388    break 2
7389  fi
7390done
7391  done
7392IFS=$as_save_IFS
7393
7394fi
7395fi
7396ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7397if test -n "$ac_ct_OTOOL64"; then
7398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7399$as_echo "$ac_ct_OTOOL64" >&6; }
7400else
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402$as_echo "no" >&6; }
7403fi
7404
7405  if test "x$ac_ct_OTOOL64" = x; then
7406    OTOOL64=":"
7407  else
7408    case $cross_compiling:$ac_tool_warned in
7409yes:)
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7412ac_tool_warned=yes ;;
7413esac
7414    OTOOL64=$ac_ct_OTOOL64
7415  fi
7416else
7417  OTOOL64="$ac_cv_prog_OTOOL64"
7418fi
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7447$as_echo_n "checking for -single_module linker flag... " >&6; }
7448if ${lt_cv_apple_cc_single_mod+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  lt_cv_apple_cc_single_mod=no
7452      if test -z "$LT_MULTI_MODULE"; then
7453	# By default we will add the -single_module flag. You can override
7454	# by either setting the environment variable LT_MULTI_MODULE
7455	# non-empty at configure time, or by adding -multi_module to the
7456	# link flags.
7457	rm -rf libconftest.dylib*
7458	echo "int foo(void){return 1;}" > conftest.c
7459	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7460-dynamiclib -Wl,-single_module conftest.c" >&5
7461	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7462	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7463        _lt_result=$?
7464	# If there is a non-empty error log, and "single_module"
7465	# appears in it, assume the flag caused a linker warning
7466        if test -s conftest.err && $GREP single_module conftest.err; then
7467	  cat conftest.err >&5
7468	# Otherwise, if the output was created with a 0 exit code from
7469	# the compiler, it worked.
7470	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7471	  lt_cv_apple_cc_single_mod=yes
7472	else
7473	  cat conftest.err >&5
7474	fi
7475	rm -rf libconftest.dylib*
7476	rm -f conftest.*
7477      fi
7478fi
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7480$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7481
7482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7483$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7484if ${lt_cv_ld_exported_symbols_list+:} false; then :
7485  $as_echo_n "(cached) " >&6
7486else
7487  lt_cv_ld_exported_symbols_list=no
7488      save_LDFLAGS=$LDFLAGS
7489      echo "_main" > conftest.sym
7490      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7491      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h.  */
7493
7494int
7495main ()
7496{
7497
7498  ;
7499  return 0;
7500}
7501_ACEOF
7502if ac_fn_c_try_link "$LINENO"; then :
7503  lt_cv_ld_exported_symbols_list=yes
7504else
7505  lt_cv_ld_exported_symbols_list=no
7506fi
7507rm -f core conftest.err conftest.$ac_objext \
7508    conftest$ac_exeext conftest.$ac_ext
7509	LDFLAGS=$save_LDFLAGS
7510
7511fi
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7513$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7514
7515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7516$as_echo_n "checking for -force_load linker flag... " >&6; }
7517if ${lt_cv_ld_force_load+:} false; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520  lt_cv_ld_force_load=no
7521      cat > conftest.c << _LT_EOF
7522int forced_loaded() { return 2;}
7523_LT_EOF
7524      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7525      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7526      echo "$AR cru libconftest.a conftest.o" >&5
7527      $AR cru libconftest.a conftest.o 2>&5
7528      echo "$RANLIB libconftest.a" >&5
7529      $RANLIB libconftest.a 2>&5
7530      cat > conftest.c << _LT_EOF
7531int main() { return 0;}
7532_LT_EOF
7533      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7534      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7535      _lt_result=$?
7536      if test -s conftest.err && $GREP force_load conftest.err; then
7537	cat conftest.err >&5
7538      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7539	lt_cv_ld_force_load=yes
7540      else
7541	cat conftest.err >&5
7542      fi
7543        rm -f conftest.err libconftest.a conftest conftest.c
7544        rm -rf conftest.dSYM
7545
7546fi
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7548$as_echo "$lt_cv_ld_force_load" >&6; }
7549    case $host_os in
7550    rhapsody* | darwin1.[012])
7551      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7552    darwin1.*)
7553      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7554    darwin*) # darwin 5.x on
7555      # if running on 10.5 or later, the deployment target defaults
7556      # to the OS version, if on x86, and 10.4, the deployment
7557      # target defaults to 10.4. Don't you love it?
7558      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7559	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7560	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7561	10.[012][,.]*)
7562	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7563	10.*)
7564	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7565      esac
7566    ;;
7567  esac
7568    if test yes = "$lt_cv_apple_cc_single_mod"; then
7569      _lt_dar_single_mod='$single_module'
7570    fi
7571    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7572      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7573    else
7574      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7575    fi
7576    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7577      _lt_dsymutil='~$DSYMUTIL $lib || :'
7578    else
7579      _lt_dsymutil=
7580    fi
7581    ;;
7582  esac
7583
7584# func_munge_path_list VARIABLE PATH
7585# -----------------------------------
7586# VARIABLE is name of variable containing _space_ separated list of
7587# directories to be munged by the contents of PATH, which is string
7588# having a format:
7589# "DIR[:DIR]:"
7590#       string "DIR[ DIR]" will be prepended to VARIABLE
7591# ":DIR[:DIR]"
7592#       string "DIR[ DIR]" will be appended to VARIABLE
7593# "DIRP[:DIRP]::[DIRA:]DIRA"
7594#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7595#       "DIRA[ DIRA]" will be appended to VARIABLE
7596# "DIR[:DIR]"
7597#       VARIABLE will be replaced by "DIR[ DIR]"
7598func_munge_path_list ()
7599{
7600    case x$2 in
7601    x)
7602        ;;
7603    *:)
7604        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7605        ;;
7606    x:*)
7607        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7608        ;;
7609    *::*)
7610        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7611        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7612        ;;
7613    *)
7614        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7615        ;;
7616    esac
7617}
7618
7619
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7621$as_echo_n "checking for ANSI C header files... " >&6; }
7622if ${ac_cv_header_stdc+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627#include <stdlib.h>
7628#include <stdarg.h>
7629#include <string.h>
7630#include <float.h>
7631
7632int
7633main ()
7634{
7635
7636  ;
7637  return 0;
7638}
7639_ACEOF
7640if ac_fn_c_try_compile "$LINENO"; then :
7641  ac_cv_header_stdc=yes
7642else
7643  ac_cv_header_stdc=no
7644fi
7645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646
7647if test $ac_cv_header_stdc = yes; then
7648  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651#include <string.h>
7652
7653_ACEOF
7654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7655  $EGREP "memchr" >/dev/null 2>&1; then :
7656
7657else
7658  ac_cv_header_stdc=no
7659fi
7660rm -f conftest*
7661
7662fi
7663
7664if test $ac_cv_header_stdc = yes; then
7665  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667/* end confdefs.h.  */
7668#include <stdlib.h>
7669
7670_ACEOF
7671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7672  $EGREP "free" >/dev/null 2>&1; then :
7673
7674else
7675  ac_cv_header_stdc=no
7676fi
7677rm -f conftest*
7678
7679fi
7680
7681if test $ac_cv_header_stdc = yes; then
7682  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7683  if test "$cross_compiling" = yes; then :
7684  :
7685else
7686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h.  */
7688#include <ctype.h>
7689#include <stdlib.h>
7690#if ((' ' & 0x0FF) == 0x020)
7691# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7692# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7693#else
7694# define ISLOWER(c) \
7695		   (('a' <= (c) && (c) <= 'i') \
7696		     || ('j' <= (c) && (c) <= 'r') \
7697		     || ('s' <= (c) && (c) <= 'z'))
7698# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7699#endif
7700
7701#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7702int
7703main ()
7704{
7705  int i;
7706  for (i = 0; i < 256; i++)
7707    if (XOR (islower (i), ISLOWER (i))
7708	|| toupper (i) != TOUPPER (i))
7709      return 2;
7710  return 0;
7711}
7712_ACEOF
7713if ac_fn_c_try_run "$LINENO"; then :
7714
7715else
7716  ac_cv_header_stdc=no
7717fi
7718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7719  conftest.$ac_objext conftest.beam conftest.$ac_ext
7720fi
7721
7722fi
7723fi
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7725$as_echo "$ac_cv_header_stdc" >&6; }
7726if test $ac_cv_header_stdc = yes; then
7727
7728$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7729
7730fi
7731
7732# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7733for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7734		  inttypes.h stdint.h unistd.h
7735do :
7736  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7737ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7738"
7739if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7740  cat >>confdefs.h <<_ACEOF
7741#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7742_ACEOF
7743
7744fi
7745
7746done
7747
7748
7749for ac_header in dlfcn.h
7750do :
7751  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7752"
7753if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7754  cat >>confdefs.h <<_ACEOF
7755#define HAVE_DLFCN_H 1
7756_ACEOF
7757
7758fi
7759
7760done
7761
7762
7763
7764
7765
7766# Set options
7767
7768
7769
7770        enable_dlopen=no
7771
7772
7773  enable_win32_dll=no
7774
7775
7776            # Check whether --enable-shared was given.
7777if test "${enable_shared+set}" = set; then :
7778  enableval=$enable_shared; p=${PACKAGE-default}
7779    case $enableval in
7780    yes) enable_shared=yes ;;
7781    no) enable_shared=no ;;
7782    *)
7783      enable_shared=no
7784      # Look at the argument we got.  We use all the common list separators.
7785      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7786      for pkg in $enableval; do
7787	IFS=$lt_save_ifs
7788	if test "X$pkg" = "X$p"; then
7789	  enable_shared=yes
7790	fi
7791      done
7792      IFS=$lt_save_ifs
7793      ;;
7794    esac
7795else
7796  enable_shared=yes
7797fi
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807  # Check whether --enable-static was given.
7808if test "${enable_static+set}" = set; then :
7809  enableval=$enable_static; p=${PACKAGE-default}
7810    case $enableval in
7811    yes) enable_static=yes ;;
7812    no) enable_static=no ;;
7813    *)
7814     enable_static=no
7815      # Look at the argument we got.  We use all the common list separators.
7816      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7817      for pkg in $enableval; do
7818	IFS=$lt_save_ifs
7819	if test "X$pkg" = "X$p"; then
7820	  enable_static=yes
7821	fi
7822      done
7823      IFS=$lt_save_ifs
7824      ;;
7825    esac
7826else
7827  enable_static=yes
7828fi
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839# Check whether --with-pic was given.
7840if test "${with_pic+set}" = set; then :
7841  withval=$with_pic; lt_p=${PACKAGE-default}
7842    case $withval in
7843    yes|no) pic_mode=$withval ;;
7844    *)
7845      pic_mode=default
7846      # Look at the argument we got.  We use all the common list separators.
7847      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7848      for lt_pkg in $withval; do
7849	IFS=$lt_save_ifs
7850	if test "X$lt_pkg" = "X$lt_p"; then
7851	  pic_mode=yes
7852	fi
7853      done
7854      IFS=$lt_save_ifs
7855      ;;
7856    esac
7857else
7858  pic_mode=default
7859fi
7860
7861
7862
7863
7864
7865
7866
7867
7868  # Check whether --enable-fast-install was given.
7869if test "${enable_fast_install+set}" = set; then :
7870  enableval=$enable_fast_install; p=${PACKAGE-default}
7871    case $enableval in
7872    yes) enable_fast_install=yes ;;
7873    no) enable_fast_install=no ;;
7874    *)
7875      enable_fast_install=no
7876      # Look at the argument we got.  We use all the common list separators.
7877      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7878      for pkg in $enableval; do
7879	IFS=$lt_save_ifs
7880	if test "X$pkg" = "X$p"; then
7881	  enable_fast_install=yes
7882	fi
7883      done
7884      IFS=$lt_save_ifs
7885      ;;
7886    esac
7887else
7888  enable_fast_install=yes
7889fi
7890
7891
7892
7893
7894
7895
7896
7897
7898  shared_archive_member_spec=
7899case $host,$enable_shared in
7900power*-*-aix[5-9]*,yes)
7901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7902$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7903
7904# Check whether --with-aix-soname was given.
7905if test "${with_aix_soname+set}" = set; then :
7906  withval=$with_aix_soname; case $withval in
7907    aix|svr4|both)
7908      ;;
7909    *)
7910      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7911      ;;
7912    esac
7913    lt_cv_with_aix_soname=$with_aix_soname
7914else
7915  if ${lt_cv_with_aix_soname+:} false; then :
7916  $as_echo_n "(cached) " >&6
7917else
7918  lt_cv_with_aix_soname=aix
7919fi
7920
7921    with_aix_soname=$lt_cv_with_aix_soname
7922fi
7923
7924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7925$as_echo "$with_aix_soname" >&6; }
7926  if test aix != "$with_aix_soname"; then
7927    # For the AIX way of multilib, we name the shared archive member
7928    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7929    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7930    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7931    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7932    if test 64 = "${OBJECT_MODE-32}"; then
7933      shared_archive_member_spec=shr_64
7934    else
7935      shared_archive_member_spec=shr
7936    fi
7937  fi
7938  ;;
7939*)
7940  with_aix_soname=aix
7941  ;;
7942esac
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953# This can be used to rebuild libtool when needed
7954LIBTOOL_DEPS=$ltmain
7955
7956# Always use our own libtool.
7957LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988test -z "$LN_S" && LN_S="ln -s"
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003if test -n "${ZSH_VERSION+set}"; then
8004   setopt NO_GLOB_SUBST
8005fi
8006
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8008$as_echo_n "checking for objdir... " >&6; }
8009if ${lt_cv_objdir+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  rm -f .libs 2>/dev/null
8013mkdir .libs 2>/dev/null
8014if test -d .libs; then
8015  lt_cv_objdir=.libs
8016else
8017  # MS-DOS does not allow filenames that begin with a dot.
8018  lt_cv_objdir=_libs
8019fi
8020rmdir .libs 2>/dev/null
8021fi
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8023$as_echo "$lt_cv_objdir" >&6; }
8024objdir=$lt_cv_objdir
8025
8026
8027
8028
8029
8030cat >>confdefs.h <<_ACEOF
8031#define LT_OBJDIR "$lt_cv_objdir/"
8032_ACEOF
8033
8034
8035
8036
8037case $host_os in
8038aix3*)
8039  # AIX sometimes has problems with the GCC collect2 program.  For some
8040  # reason, if we set the COLLECT_NAMES environment variable, the problems
8041  # vanish in a puff of smoke.
8042  if test set != "${COLLECT_NAMES+set}"; then
8043    COLLECT_NAMES=
8044    export COLLECT_NAMES
8045  fi
8046  ;;
8047esac
8048
8049# Global variables:
8050ofile=libtool
8051can_build_shared=yes
8052
8053# All known linkers require a '.a' archive for static linking (except MSVC,
8054# which needs '.lib').
8055libext=a
8056
8057with_gnu_ld=$lt_cv_prog_gnu_ld
8058
8059old_CC=$CC
8060old_CFLAGS=$CFLAGS
8061
8062# Set sane defaults for various variables
8063test -z "$CC" && CC=cc
8064test -z "$LTCC" && LTCC=$CC
8065test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8066test -z "$LD" && LD=ld
8067test -z "$ac_objext" && ac_objext=o
8068
8069func_cc_basename $compiler
8070cc_basename=$func_cc_basename_result
8071
8072
8073# Only perform the check for file, if the check method requires it
8074test -z "$MAGIC_CMD" && MAGIC_CMD=file
8075case $deplibs_check_method in
8076file_magic*)
8077  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8078    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8079$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8080if ${lt_cv_path_MAGIC_CMD+:} false; then :
8081  $as_echo_n "(cached) " >&6
8082else
8083  case $MAGIC_CMD in
8084[\\/*] |  ?:[\\/]*)
8085  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8086  ;;
8087*)
8088  lt_save_MAGIC_CMD=$MAGIC_CMD
8089  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8090  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8091  for ac_dir in $ac_dummy; do
8092    IFS=$lt_save_ifs
8093    test -z "$ac_dir" && ac_dir=.
8094    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8095      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8096      if test -n "$file_magic_test_file"; then
8097	case $deplibs_check_method in
8098	"file_magic "*)
8099	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8100	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8101	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8102	    $EGREP "$file_magic_regex" > /dev/null; then
8103	    :
8104	  else
8105	    cat <<_LT_EOF 1>&2
8106
8107*** Warning: the command libtool uses to detect shared libraries,
8108*** $file_magic_cmd, produces output that libtool cannot recognize.
8109*** The result is that libtool may fail to recognize shared libraries
8110*** as such.  This will affect the creation of libtool libraries that
8111*** depend on shared libraries, but programs linked with such libtool
8112*** libraries will work regardless of this problem.  Nevertheless, you
8113*** may want to report the problem to your system manager and/or to
8114*** bug-libtool@gnu.org
8115
8116_LT_EOF
8117	  fi ;;
8118	esac
8119      fi
8120      break
8121    fi
8122  done
8123  IFS=$lt_save_ifs
8124  MAGIC_CMD=$lt_save_MAGIC_CMD
8125  ;;
8126esac
8127fi
8128
8129MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8130if test -n "$MAGIC_CMD"; then
8131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8132$as_echo "$MAGIC_CMD" >&6; }
8133else
8134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135$as_echo "no" >&6; }
8136fi
8137
8138
8139
8140
8141
8142if test -z "$lt_cv_path_MAGIC_CMD"; then
8143  if test -n "$ac_tool_prefix"; then
8144    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8145$as_echo_n "checking for file... " >&6; }
8146if ${lt_cv_path_MAGIC_CMD+:} false; then :
8147  $as_echo_n "(cached) " >&6
8148else
8149  case $MAGIC_CMD in
8150[\\/*] |  ?:[\\/]*)
8151  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8152  ;;
8153*)
8154  lt_save_MAGIC_CMD=$MAGIC_CMD
8155  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8156  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8157  for ac_dir in $ac_dummy; do
8158    IFS=$lt_save_ifs
8159    test -z "$ac_dir" && ac_dir=.
8160    if test -f "$ac_dir/file"; then
8161      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8162      if test -n "$file_magic_test_file"; then
8163	case $deplibs_check_method in
8164	"file_magic "*)
8165	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8166	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8167	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8168	    $EGREP "$file_magic_regex" > /dev/null; then
8169	    :
8170	  else
8171	    cat <<_LT_EOF 1>&2
8172
8173*** Warning: the command libtool uses to detect shared libraries,
8174*** $file_magic_cmd, produces output that libtool cannot recognize.
8175*** The result is that libtool may fail to recognize shared libraries
8176*** as such.  This will affect the creation of libtool libraries that
8177*** depend on shared libraries, but programs linked with such libtool
8178*** libraries will work regardless of this problem.  Nevertheless, you
8179*** may want to report the problem to your system manager and/or to
8180*** bug-libtool@gnu.org
8181
8182_LT_EOF
8183	  fi ;;
8184	esac
8185      fi
8186      break
8187    fi
8188  done
8189  IFS=$lt_save_ifs
8190  MAGIC_CMD=$lt_save_MAGIC_CMD
8191  ;;
8192esac
8193fi
8194
8195MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8196if test -n "$MAGIC_CMD"; then
8197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8198$as_echo "$MAGIC_CMD" >&6; }
8199else
8200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }
8202fi
8203
8204
8205  else
8206    MAGIC_CMD=:
8207  fi
8208fi
8209
8210  fi
8211  ;;
8212esac
8213
8214# Use C for the default configuration in the libtool script
8215
8216lt_save_CC=$CC
8217ac_ext=c
8218ac_cpp='$CPP $CPPFLAGS'
8219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8221ac_compiler_gnu=$ac_cv_c_compiler_gnu
8222
8223
8224# Source file extension for C test sources.
8225ac_ext=c
8226
8227# Object file extension for compiled C test sources.
8228objext=o
8229objext=$objext
8230
8231# Code to be used in simple compile tests
8232lt_simple_compile_test_code="int some_variable = 0;"
8233
8234# Code to be used in simple link tests
8235lt_simple_link_test_code='int main(){return(0);}'
8236
8237
8238
8239
8240
8241
8242
8243# If no C compiler was specified, use CC.
8244LTCC=${LTCC-"$CC"}
8245
8246# If no C compiler flags were specified, use CFLAGS.
8247LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8248
8249# Allow CC to be a program name with arguments.
8250compiler=$CC
8251
8252# Save the default compiler, since it gets overwritten when the other
8253# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8254compiler_DEFAULT=$CC
8255
8256# save warnings/boilerplate of simple test code
8257ac_outfile=conftest.$ac_objext
8258echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8259eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8260_lt_compiler_boilerplate=`cat conftest.err`
8261$RM conftest*
8262
8263ac_outfile=conftest.$ac_objext
8264echo "$lt_simple_link_test_code" >conftest.$ac_ext
8265eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8266_lt_linker_boilerplate=`cat conftest.err`
8267$RM -r conftest*
8268
8269
8270if test -n "$compiler"; then
8271
8272lt_prog_compiler_no_builtin_flag=
8273
8274if test yes = "$GCC"; then
8275  case $cc_basename in
8276  nvcc*)
8277    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8278  *)
8279    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8280  esac
8281
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8283$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8284if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  lt_cv_prog_compiler_rtti_exceptions=no
8288   ac_outfile=conftest.$ac_objext
8289   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8290   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8291   # Insert the option either (1) after the last *FLAGS variable, or
8292   # (2) before a word containing "conftest.", or (3) at the end.
8293   # Note that $ac_compile itself does not contain backslashes and begins
8294   # with a dollar sign (not a hyphen), so the echo should work correctly.
8295   # The option is referenced via a variable to avoid confusing sed.
8296   lt_compile=`echo "$ac_compile" | $SED \
8297   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8298   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8299   -e 's:$: $lt_compiler_flag:'`
8300   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8301   (eval "$lt_compile" 2>conftest.err)
8302   ac_status=$?
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   if (exit $ac_status) && test -s "$ac_outfile"; then
8306     # The compiler can only warn and ignore the option if not recognized
8307     # So say no if there are warnings other than the usual output.
8308     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8309     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8310     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8311       lt_cv_prog_compiler_rtti_exceptions=yes
8312     fi
8313   fi
8314   $RM conftest*
8315
8316fi
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8318$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8319
8320if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8321    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8322else
8323    :
8324fi
8325
8326fi
8327
8328
8329
8330
8331
8332
8333  lt_prog_compiler_wl=
8334lt_prog_compiler_pic=
8335lt_prog_compiler_static=
8336
8337
8338  if test yes = "$GCC"; then
8339    lt_prog_compiler_wl='-Wl,'
8340    lt_prog_compiler_static='-static'
8341
8342    case $host_os in
8343      aix*)
8344      # All AIX code is PIC.
8345      if test ia64 = "$host_cpu"; then
8346	# AIX 5 now supports IA64 processor
8347	lt_prog_compiler_static='-Bstatic'
8348      fi
8349      lt_prog_compiler_pic='-fPIC'
8350      ;;
8351
8352    amigaos*)
8353      case $host_cpu in
8354      powerpc)
8355            # see comment about AmigaOS4 .so support
8356            lt_prog_compiler_pic='-fPIC'
8357        ;;
8358      m68k)
8359            # FIXME: we need at least 68020 code to build shared libraries, but
8360            # adding the '-m68020' flag to GCC prevents building anything better,
8361            # like '-m68040'.
8362            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8363        ;;
8364      esac
8365      ;;
8366
8367    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8368      # PIC is the default for these OSes.
8369      ;;
8370
8371    mingw* | cygwin* | pw32* | os2* | cegcc*)
8372      # This hack is so that the source file can tell whether it is being
8373      # built for inclusion in a dll (and should export symbols for example).
8374      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8375      # (--disable-auto-import) libraries
8376      lt_prog_compiler_pic='-DDLL_EXPORT'
8377      case $host_os in
8378      os2*)
8379	lt_prog_compiler_static='$wl-static'
8380	;;
8381      esac
8382      ;;
8383
8384    darwin* | rhapsody*)
8385      # PIC is the default on this platform
8386      # Common symbols not allowed in MH_DYLIB files
8387      lt_prog_compiler_pic='-fno-common'
8388      ;;
8389
8390    haiku*)
8391      # PIC is the default for Haiku.
8392      # The "-static" flag exists, but is broken.
8393      lt_prog_compiler_static=
8394      ;;
8395
8396    hpux*)
8397      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8398      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8399      # sets the default TLS model and affects inlining.
8400      case $host_cpu in
8401      hppa*64*)
8402	# +Z the default
8403	;;
8404      *)
8405	lt_prog_compiler_pic='-fPIC'
8406	;;
8407      esac
8408      ;;
8409
8410    interix[3-9]*)
8411      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8412      # Instead, we relocate shared libraries at runtime.
8413      ;;
8414
8415    msdosdjgpp*)
8416      # Just because we use GCC doesn't mean we suddenly get shared libraries
8417      # on systems that don't support them.
8418      lt_prog_compiler_can_build_shared=no
8419      enable_shared=no
8420      ;;
8421
8422    *nto* | *qnx*)
8423      # QNX uses GNU C++, but need to define -shared option too, otherwise
8424      # it will coredump.
8425      lt_prog_compiler_pic='-fPIC -shared'
8426      ;;
8427
8428    sysv4*MP*)
8429      if test -d /usr/nec; then
8430	lt_prog_compiler_pic=-Kconform_pic
8431      fi
8432      ;;
8433
8434    *)
8435      lt_prog_compiler_pic='-fPIC'
8436      ;;
8437    esac
8438
8439    case $cc_basename in
8440    nvcc*) # Cuda Compiler Driver 2.2
8441      lt_prog_compiler_wl='-Xlinker '
8442      if test -n "$lt_prog_compiler_pic"; then
8443        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8444      fi
8445      ;;
8446    esac
8447  else
8448    # PORTME Check for flag to pass linker flags through the system compiler.
8449    case $host_os in
8450    aix*)
8451      lt_prog_compiler_wl='-Wl,'
8452      if test ia64 = "$host_cpu"; then
8453	# AIX 5 now supports IA64 processor
8454	lt_prog_compiler_static='-Bstatic'
8455      else
8456	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8457      fi
8458      ;;
8459
8460    darwin* | rhapsody*)
8461      # PIC is the default on this platform
8462      # Common symbols not allowed in MH_DYLIB files
8463      lt_prog_compiler_pic='-fno-common'
8464      case $cc_basename in
8465      nagfor*)
8466        # NAG Fortran compiler
8467        lt_prog_compiler_wl='-Wl,-Wl,,'
8468        lt_prog_compiler_pic='-PIC'
8469        lt_prog_compiler_static='-Bstatic'
8470        ;;
8471      esac
8472      ;;
8473
8474    mingw* | cygwin* | pw32* | os2* | cegcc*)
8475      # This hack is so that the source file can tell whether it is being
8476      # built for inclusion in a dll (and should export symbols for example).
8477      lt_prog_compiler_pic='-DDLL_EXPORT'
8478      case $host_os in
8479      os2*)
8480	lt_prog_compiler_static='$wl-static'
8481	;;
8482      esac
8483      ;;
8484
8485    hpux9* | hpux10* | hpux11*)
8486      lt_prog_compiler_wl='-Wl,'
8487      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8488      # not for PA HP-UX.
8489      case $host_cpu in
8490      hppa*64*|ia64*)
8491	# +Z the default
8492	;;
8493      *)
8494	lt_prog_compiler_pic='+Z'
8495	;;
8496      esac
8497      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8498      lt_prog_compiler_static='$wl-a ${wl}archive'
8499      ;;
8500
8501    irix5* | irix6* | nonstopux*)
8502      lt_prog_compiler_wl='-Wl,'
8503      # PIC (with -KPIC) is the default.
8504      lt_prog_compiler_static='-non_shared'
8505      ;;
8506
8507    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8508      case $cc_basename in
8509      # old Intel for x86_64, which still supported -KPIC.
8510      ecc*)
8511	lt_prog_compiler_wl='-Wl,'
8512	lt_prog_compiler_pic='-KPIC'
8513	lt_prog_compiler_static='-static'
8514        ;;
8515      # icc used to be incompatible with GCC.
8516      # ICC 10 doesn't accept -KPIC any more.
8517      icc* | ifort*)
8518	lt_prog_compiler_wl='-Wl,'
8519	lt_prog_compiler_pic='-fPIC'
8520	lt_prog_compiler_static='-static'
8521        ;;
8522      # Lahey Fortran 8.1.
8523      lf95*)
8524	lt_prog_compiler_wl='-Wl,'
8525	lt_prog_compiler_pic='--shared'
8526	lt_prog_compiler_static='--static'
8527	;;
8528      nagfor*)
8529	# NAG Fortran compiler
8530	lt_prog_compiler_wl='-Wl,-Wl,,'
8531	lt_prog_compiler_pic='-PIC'
8532	lt_prog_compiler_static='-Bstatic'
8533	;;
8534      tcc*)
8535	# Fabrice Bellard et al's Tiny C Compiler
8536	lt_prog_compiler_wl='-Wl,'
8537	lt_prog_compiler_pic='-fPIC'
8538	lt_prog_compiler_static='-static'
8539	;;
8540      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8541        # Portland Group compilers (*not* the Pentium gcc compiler,
8542	# which looks to be a dead project)
8543	lt_prog_compiler_wl='-Wl,'
8544	lt_prog_compiler_pic='-fpic'
8545	lt_prog_compiler_static='-Bstatic'
8546        ;;
8547      ccc*)
8548        lt_prog_compiler_wl='-Wl,'
8549        # All Alpha code is PIC.
8550        lt_prog_compiler_static='-non_shared'
8551        ;;
8552      xl* | bgxl* | bgf* | mpixl*)
8553	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8554	lt_prog_compiler_wl='-Wl,'
8555	lt_prog_compiler_pic='-qpic'
8556	lt_prog_compiler_static='-qstaticlink'
8557	;;
8558      *)
8559	case `$CC -V 2>&1 | sed 5q` in
8560	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8561	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8562	  lt_prog_compiler_pic='-KPIC'
8563	  lt_prog_compiler_static='-Bstatic'
8564	  lt_prog_compiler_wl=''
8565	  ;;
8566	*Sun\ F* | *Sun*Fortran*)
8567	  lt_prog_compiler_pic='-KPIC'
8568	  lt_prog_compiler_static='-Bstatic'
8569	  lt_prog_compiler_wl='-Qoption ld '
8570	  ;;
8571	*Sun\ C*)
8572	  # Sun C 5.9
8573	  lt_prog_compiler_pic='-KPIC'
8574	  lt_prog_compiler_static='-Bstatic'
8575	  lt_prog_compiler_wl='-Wl,'
8576	  ;;
8577        *Intel*\ [CF]*Compiler*)
8578	  lt_prog_compiler_wl='-Wl,'
8579	  lt_prog_compiler_pic='-fPIC'
8580	  lt_prog_compiler_static='-static'
8581	  ;;
8582	*Portland\ Group*)
8583	  lt_prog_compiler_wl='-Wl,'
8584	  lt_prog_compiler_pic='-fpic'
8585	  lt_prog_compiler_static='-Bstatic'
8586	  ;;
8587	esac
8588	;;
8589      esac
8590      ;;
8591
8592    newsos6)
8593      lt_prog_compiler_pic='-KPIC'
8594      lt_prog_compiler_static='-Bstatic'
8595      ;;
8596
8597    *nto* | *qnx*)
8598      # QNX uses GNU C++, but need to define -shared option too, otherwise
8599      # it will coredump.
8600      lt_prog_compiler_pic='-fPIC -shared'
8601      ;;
8602
8603    osf3* | osf4* | osf5*)
8604      lt_prog_compiler_wl='-Wl,'
8605      # All OSF/1 code is PIC.
8606      lt_prog_compiler_static='-non_shared'
8607      ;;
8608
8609    rdos*)
8610      lt_prog_compiler_static='-non_shared'
8611      ;;
8612
8613    solaris*)
8614      lt_prog_compiler_pic='-KPIC'
8615      lt_prog_compiler_static='-Bstatic'
8616      case $cc_basename in
8617      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8618	lt_prog_compiler_wl='-Qoption ld ';;
8619      *)
8620	lt_prog_compiler_wl='-Wl,';;
8621      esac
8622      ;;
8623
8624    sunos4*)
8625      lt_prog_compiler_wl='-Qoption ld '
8626      lt_prog_compiler_pic='-PIC'
8627      lt_prog_compiler_static='-Bstatic'
8628      ;;
8629
8630    sysv4 | sysv4.2uw2* | sysv4.3*)
8631      lt_prog_compiler_wl='-Wl,'
8632      lt_prog_compiler_pic='-KPIC'
8633      lt_prog_compiler_static='-Bstatic'
8634      ;;
8635
8636    sysv4*MP*)
8637      if test -d /usr/nec; then
8638	lt_prog_compiler_pic='-Kconform_pic'
8639	lt_prog_compiler_static='-Bstatic'
8640      fi
8641      ;;
8642
8643    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8644      lt_prog_compiler_wl='-Wl,'
8645      lt_prog_compiler_pic='-KPIC'
8646      lt_prog_compiler_static='-Bstatic'
8647      ;;
8648
8649    unicos*)
8650      lt_prog_compiler_wl='-Wl,'
8651      lt_prog_compiler_can_build_shared=no
8652      ;;
8653
8654    uts4*)
8655      lt_prog_compiler_pic='-pic'
8656      lt_prog_compiler_static='-Bstatic'
8657      ;;
8658
8659    *)
8660      lt_prog_compiler_can_build_shared=no
8661      ;;
8662    esac
8663  fi
8664
8665case $host_os in
8666  # For platforms that do not support PIC, -DPIC is meaningless:
8667  *djgpp*)
8668    lt_prog_compiler_pic=
8669    ;;
8670  *)
8671    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8672    ;;
8673esac
8674
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8676$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8677if ${lt_cv_prog_compiler_pic+:} false; then :
8678  $as_echo_n "(cached) " >&6
8679else
8680  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8681fi
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8683$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8684lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8685
8686#
8687# Check to make sure the PIC flag actually works.
8688#
8689if test -n "$lt_prog_compiler_pic"; then
8690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8691$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8692if ${lt_cv_prog_compiler_pic_works+:} false; then :
8693  $as_echo_n "(cached) " >&6
8694else
8695  lt_cv_prog_compiler_pic_works=no
8696   ac_outfile=conftest.$ac_objext
8697   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8698   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8699   # Insert the option either (1) after the last *FLAGS variable, or
8700   # (2) before a word containing "conftest.", or (3) at the end.
8701   # Note that $ac_compile itself does not contain backslashes and begins
8702   # with a dollar sign (not a hyphen), so the echo should work correctly.
8703   # The option is referenced via a variable to avoid confusing sed.
8704   lt_compile=`echo "$ac_compile" | $SED \
8705   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8706   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8707   -e 's:$: $lt_compiler_flag:'`
8708   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8709   (eval "$lt_compile" 2>conftest.err)
8710   ac_status=$?
8711   cat conftest.err >&5
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   if (exit $ac_status) && test -s "$ac_outfile"; then
8714     # The compiler can only warn and ignore the option if not recognized
8715     # So say no if there are warnings other than the usual output.
8716     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8717     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8718     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8719       lt_cv_prog_compiler_pic_works=yes
8720     fi
8721   fi
8722   $RM conftest*
8723
8724fi
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8726$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8727
8728if test yes = "$lt_cv_prog_compiler_pic_works"; then
8729    case $lt_prog_compiler_pic in
8730     "" | " "*) ;;
8731     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8732     esac
8733else
8734    lt_prog_compiler_pic=
8735     lt_prog_compiler_can_build_shared=no
8736fi
8737
8738fi
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750#
8751# Check to make sure the static flag actually works.
8752#
8753wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8755$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8756if ${lt_cv_prog_compiler_static_works+:} false; then :
8757  $as_echo_n "(cached) " >&6
8758else
8759  lt_cv_prog_compiler_static_works=no
8760   save_LDFLAGS=$LDFLAGS
8761   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8762   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8763   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8764     # The linker can only warn and ignore the option if not recognized
8765     # So say no if there are warnings
8766     if test -s conftest.err; then
8767       # Append any errors to the config.log.
8768       cat conftest.err 1>&5
8769       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8770       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8771       if diff conftest.exp conftest.er2 >/dev/null; then
8772         lt_cv_prog_compiler_static_works=yes
8773       fi
8774     else
8775       lt_cv_prog_compiler_static_works=yes
8776     fi
8777   fi
8778   $RM -r conftest*
8779   LDFLAGS=$save_LDFLAGS
8780
8781fi
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8783$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8784
8785if test yes = "$lt_cv_prog_compiler_static_works"; then
8786    :
8787else
8788    lt_prog_compiler_static=
8789fi
8790
8791
8792
8793
8794
8795
8796
8797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8798$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8799if ${lt_cv_prog_compiler_c_o+:} false; then :
8800  $as_echo_n "(cached) " >&6
8801else
8802  lt_cv_prog_compiler_c_o=no
8803   $RM -r conftest 2>/dev/null
8804   mkdir conftest
8805   cd conftest
8806   mkdir out
8807   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8808
8809   lt_compiler_flag="-o out/conftest2.$ac_objext"
8810   # Insert the option either (1) after the last *FLAGS variable, or
8811   # (2) before a word containing "conftest.", or (3) at the end.
8812   # Note that $ac_compile itself does not contain backslashes and begins
8813   # with a dollar sign (not a hyphen), so the echo should work correctly.
8814   lt_compile=`echo "$ac_compile" | $SED \
8815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8817   -e 's:$: $lt_compiler_flag:'`
8818   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8819   (eval "$lt_compile" 2>out/conftest.err)
8820   ac_status=$?
8821   cat out/conftest.err >&5
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8824   then
8825     # The compiler can only warn and ignore the option if not recognized
8826     # So say no if there are warnings
8827     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8828     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8829     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8830       lt_cv_prog_compiler_c_o=yes
8831     fi
8832   fi
8833   chmod u+w . 2>&5
8834   $RM conftest*
8835   # SGI C++ compiler will create directory out/ii_files/ for
8836   # template instantiation
8837   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8838   $RM out/* && rmdir out
8839   cd ..
8840   $RM -r conftest
8841   $RM conftest*
8842
8843fi
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8845$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8846
8847
8848
8849
8850
8851
8852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8854if ${lt_cv_prog_compiler_c_o+:} false; then :
8855  $as_echo_n "(cached) " >&6
8856else
8857  lt_cv_prog_compiler_c_o=no
8858   $RM -r conftest 2>/dev/null
8859   mkdir conftest
8860   cd conftest
8861   mkdir out
8862   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8863
8864   lt_compiler_flag="-o out/conftest2.$ac_objext"
8865   # Insert the option either (1) after the last *FLAGS variable, or
8866   # (2) before a word containing "conftest.", or (3) at the end.
8867   # Note that $ac_compile itself does not contain backslashes and begins
8868   # with a dollar sign (not a hyphen), so the echo should work correctly.
8869   lt_compile=`echo "$ac_compile" | $SED \
8870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8872   -e 's:$: $lt_compiler_flag:'`
8873   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8874   (eval "$lt_compile" 2>out/conftest.err)
8875   ac_status=$?
8876   cat out/conftest.err >&5
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8879   then
8880     # The compiler can only warn and ignore the option if not recognized
8881     # So say no if there are warnings
8882     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8883     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8884     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8885       lt_cv_prog_compiler_c_o=yes
8886     fi
8887   fi
8888   chmod u+w . 2>&5
8889   $RM conftest*
8890   # SGI C++ compiler will create directory out/ii_files/ for
8891   # template instantiation
8892   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8893   $RM out/* && rmdir out
8894   cd ..
8895   $RM -r conftest
8896   $RM conftest*
8897
8898fi
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8900$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8901
8902
8903
8904
8905hard_links=nottested
8906if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8907  # do not overwrite the value of need_locks provided by the user
8908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8909$as_echo_n "checking if we can lock with hard links... " >&6; }
8910  hard_links=yes
8911  $RM conftest*
8912  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8913  touch conftest.a
8914  ln conftest.a conftest.b 2>&5 || hard_links=no
8915  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8917$as_echo "$hard_links" >&6; }
8918  if test no = "$hard_links"; then
8919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8920$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8921    need_locks=warn
8922  fi
8923else
8924  need_locks=no
8925fi
8926
8927
8928
8929
8930
8931
8932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8933$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8934
8935  runpath_var=
8936  allow_undefined_flag=
8937  always_export_symbols=no
8938  archive_cmds=
8939  archive_expsym_cmds=
8940  compiler_needs_object=no
8941  enable_shared_with_static_runtimes=no
8942  export_dynamic_flag_spec=
8943  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8944  hardcode_automatic=no
8945  hardcode_direct=no
8946  hardcode_direct_absolute=no
8947  hardcode_libdir_flag_spec=
8948  hardcode_libdir_separator=
8949  hardcode_minus_L=no
8950  hardcode_shlibpath_var=unsupported
8951  inherit_rpath=no
8952  link_all_deplibs=unknown
8953  module_cmds=
8954  module_expsym_cmds=
8955  old_archive_from_new_cmds=
8956  old_archive_from_expsyms_cmds=
8957  thread_safe_flag_spec=
8958  whole_archive_flag_spec=
8959  # include_expsyms should be a list of space-separated symbols to be *always*
8960  # included in the symbol list
8961  include_expsyms=
8962  # exclude_expsyms can be an extended regexp of symbols to exclude
8963  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8964  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8965  # as well as any symbol that contains 'd'.
8966  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8967  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8968  # platforms (ab)use it in PIC code, but their linkers get confused if
8969  # the symbol is explicitly referenced.  Since portable code cannot
8970  # rely on this symbol name, it's probably fine to never include it in
8971  # preloaded symbol tables.
8972  # Exclude shared library initialization/finalization symbols.
8973  extract_expsyms_cmds=
8974
8975  case $host_os in
8976  cygwin* | mingw* | pw32* | cegcc*)
8977    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8978    # When not using gcc, we currently assume that we are using
8979    # Microsoft Visual C++.
8980    if test yes != "$GCC"; then
8981      with_gnu_ld=no
8982    fi
8983    ;;
8984  interix*)
8985    # we just hope/assume this is gcc and not c89 (= MSVC++)
8986    with_gnu_ld=yes
8987    ;;
8988  openbsd* | bitrig*)
8989    with_gnu_ld=no
8990    ;;
8991  linux* | k*bsd*-gnu | gnu*)
8992    link_all_deplibs=no
8993    ;;
8994  esac
8995
8996  ld_shlibs=yes
8997
8998  # On some targets, GNU ld is compatible enough with the native linker
8999  # that we're better off using the native interface for both.
9000  lt_use_gnu_ld_interface=no
9001  if test yes = "$with_gnu_ld"; then
9002    case $host_os in
9003      aix*)
9004	# The AIX port of GNU ld has always aspired to compatibility
9005	# with the native linker.  However, as the warning in the GNU ld
9006	# block says, versions before 2.19.5* couldn't really create working
9007	# shared libraries, regardless of the interface used.
9008	case `$LD -v 2>&1` in
9009	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9010	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9011	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9012	  *)
9013	    lt_use_gnu_ld_interface=yes
9014	    ;;
9015	esac
9016	;;
9017      *)
9018	lt_use_gnu_ld_interface=yes
9019	;;
9020    esac
9021  fi
9022
9023  if test yes = "$lt_use_gnu_ld_interface"; then
9024    # If archive_cmds runs LD, not CC, wlarc should be empty
9025    wlarc='$wl'
9026
9027    # Set some defaults for GNU ld with shared library support. These
9028    # are reset later if shared libraries are not supported. Putting them
9029    # here allows them to be overridden if necessary.
9030    runpath_var=LD_RUN_PATH
9031    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9032    export_dynamic_flag_spec='$wl--export-dynamic'
9033    # ancient GNU ld didn't support --whole-archive et. al.
9034    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9035      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9036    else
9037      whole_archive_flag_spec=
9038    fi
9039    supports_anon_versioning=no
9040    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9041      *GNU\ gold*) supports_anon_versioning=yes ;;
9042      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9043      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9044      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9045      *\ 2.11.*) ;; # other 2.11 versions
9046      *) supports_anon_versioning=yes ;;
9047    esac
9048
9049    # See if GNU ld supports shared libraries.
9050    case $host_os in
9051    aix[3-9]*)
9052      # On AIX/PPC, the GNU linker is very broken
9053      if test ia64 != "$host_cpu"; then
9054	ld_shlibs=no
9055	cat <<_LT_EOF 1>&2
9056
9057*** Warning: the GNU linker, at least up to release 2.19, is reported
9058*** to be unable to reliably create shared libraries on AIX.
9059*** Therefore, libtool is disabling shared libraries support.  If you
9060*** really care for shared libraries, you may want to install binutils
9061*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9062*** You will then need to restart the configuration process.
9063
9064_LT_EOF
9065      fi
9066      ;;
9067
9068    amigaos*)
9069      case $host_cpu in
9070      powerpc)
9071            # see comment about AmigaOS4 .so support
9072            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9073            archive_expsym_cmds=''
9074        ;;
9075      m68k)
9076            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)'
9077            hardcode_libdir_flag_spec='-L$libdir'
9078            hardcode_minus_L=yes
9079        ;;
9080      esac
9081      ;;
9082
9083    beos*)
9084      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9085	allow_undefined_flag=unsupported
9086	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9087	# support --undefined.  This deserves some investigation.  FIXME
9088	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9089      else
9090	ld_shlibs=no
9091      fi
9092      ;;
9093
9094    cygwin* | mingw* | pw32* | cegcc*)
9095      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9096      # as there is no search path for DLLs.
9097      hardcode_libdir_flag_spec='-L$libdir'
9098      export_dynamic_flag_spec='$wl--export-all-symbols'
9099      allow_undefined_flag=unsupported
9100      always_export_symbols=no
9101      enable_shared_with_static_runtimes=yes
9102      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'
9103      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9104
9105      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9106        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9107	# If the export-symbols file already is a .def file, use it as
9108	# is; otherwise, prepend EXPORTS...
9109	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9110          cp $export_symbols $output_objdir/$soname.def;
9111        else
9112          echo EXPORTS > $output_objdir/$soname.def;
9113          cat $export_symbols >> $output_objdir/$soname.def;
9114        fi~
9115        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9116      else
9117	ld_shlibs=no
9118      fi
9119      ;;
9120
9121    haiku*)
9122      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9123      link_all_deplibs=yes
9124      ;;
9125
9126    os2*)
9127      hardcode_libdir_flag_spec='-L$libdir'
9128      hardcode_minus_L=yes
9129      allow_undefined_flag=unsupported
9130      shrext_cmds=.dll
9131      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9132	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9133	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9134	$ECHO EXPORTS >> $output_objdir/$libname.def~
9135	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9136	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9137	emximp -o $lib $output_objdir/$libname.def'
9138      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9139	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9140	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9141	$ECHO EXPORTS >> $output_objdir/$libname.def~
9142	prefix_cmds="$SED"~
9143	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9144	  prefix_cmds="$prefix_cmds -e 1d";
9145	fi~
9146	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9147	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9148	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9149	emximp -o $lib $output_objdir/$libname.def'
9150      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9151      enable_shared_with_static_runtimes=yes
9152      ;;
9153
9154    interix[3-9]*)
9155      hardcode_direct=no
9156      hardcode_shlibpath_var=no
9157      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9158      export_dynamic_flag_spec='$wl-E'
9159      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9160      # Instead, shared libraries are loaded at an image base (0x10000000 by
9161      # default) and relocated if they conflict, which is a slow very memory
9162      # consuming and fragmenting process.  To avoid this, we pick a random,
9163      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9164      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9165      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9166      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'
9167      ;;
9168
9169    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9170      tmp_diet=no
9171      if test linux-dietlibc = "$host_os"; then
9172	case $cc_basename in
9173	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9174	esac
9175      fi
9176      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9177	 && test no = "$tmp_diet"
9178      then
9179	tmp_addflag=' $pic_flag'
9180	tmp_sharedflag='-shared'
9181	case $cc_basename,$host_cpu in
9182        pgcc*)				# Portland Group C compiler
9183	  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'
9184	  tmp_addflag=' $pic_flag'
9185	  ;;
9186	pgf77* | pgf90* | pgf95* | pgfortran*)
9187					# Portland Group f77 and f90 compilers
9188	  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'
9189	  tmp_addflag=' $pic_flag -Mnomain' ;;
9190	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9191	  tmp_addflag=' -i_dynamic' ;;
9192	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9193	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9194	ifc* | ifort*)			# Intel Fortran compiler
9195	  tmp_addflag=' -nofor_main' ;;
9196	lf95*)				# Lahey Fortran 8.1
9197	  whole_archive_flag_spec=
9198	  tmp_sharedflag='--shared' ;;
9199        nagfor*)                        # NAGFOR 5.3
9200          tmp_sharedflag='-Wl,-shared' ;;
9201	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9202	  tmp_sharedflag='-qmkshrobj'
9203	  tmp_addflag= ;;
9204	nvcc*)	# Cuda Compiler Driver 2.2
9205	  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'
9206	  compiler_needs_object=yes
9207	  ;;
9208	esac
9209	case `$CC -V 2>&1 | sed 5q` in
9210	*Sun\ C*)			# Sun C 5.9
9211	  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'
9212	  compiler_needs_object=yes
9213	  tmp_sharedflag='-G' ;;
9214	*Sun\ F*)			# Sun Fortran 8.3
9215	  tmp_sharedflag='-G' ;;
9216	esac
9217	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9218
9219        if test yes = "$supports_anon_versioning"; then
9220          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9221            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9222            echo "local: *; };" >> $output_objdir/$libname.ver~
9223            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9224        fi
9225
9226	case $cc_basename in
9227	tcc*)
9228	  export_dynamic_flag_spec='-rdynamic'
9229	  ;;
9230	xlf* | bgf* | bgxlf* | mpixlf*)
9231	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9232	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9233	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9234	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9235	  if test yes = "$supports_anon_versioning"; then
9236	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238              echo "local: *; };" >> $output_objdir/$libname.ver~
9239              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9240	  fi
9241	  ;;
9242	esac
9243      else
9244        ld_shlibs=no
9245      fi
9246      ;;
9247
9248    netbsd* | netbsdelf*-gnu)
9249      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9250	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9251	wlarc=
9252      else
9253	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9254	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9255      fi
9256      ;;
9257
9258    solaris*)
9259      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9260	ld_shlibs=no
9261	cat <<_LT_EOF 1>&2
9262
9263*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9264*** create shared libraries on Solaris systems.  Therefore, libtool
9265*** is disabling shared libraries support.  We urge you to upgrade GNU
9266*** binutils to release 2.9.1 or newer.  Another option is to modify
9267*** your PATH or compiler configuration so that the native linker is
9268*** used, and then restart.
9269
9270_LT_EOF
9271      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9272	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9273	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9274      else
9275	ld_shlibs=no
9276      fi
9277      ;;
9278
9279    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9280      case `$LD -v 2>&1` in
9281        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9282	ld_shlibs=no
9283	cat <<_LT_EOF 1>&2
9284
9285*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9286*** reliably create shared libraries on SCO systems.  Therefore, libtool
9287*** is disabling shared libraries support.  We urge you to upgrade GNU
9288*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9289*** your PATH or compiler configuration so that the native linker is
9290*** used, and then restart.
9291
9292_LT_EOF
9293	;;
9294	*)
9295	  # For security reasons, it is highly recommended that you always
9296	  # use absolute paths for naming shared libraries, and exclude the
9297	  # DT_RUNPATH tag from executables and libraries.  But doing so
9298	  # requires that you compile everything twice, which is a pain.
9299	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9300	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9301	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9302	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9303	  else
9304	    ld_shlibs=no
9305	  fi
9306	;;
9307      esac
9308      ;;
9309
9310    sunos4*)
9311      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9312      wlarc=
9313      hardcode_direct=yes
9314      hardcode_shlibpath_var=no
9315      ;;
9316
9317    *)
9318      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9319	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9320	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9321      else
9322	ld_shlibs=no
9323      fi
9324      ;;
9325    esac
9326
9327    if test no = "$ld_shlibs"; then
9328      runpath_var=
9329      hardcode_libdir_flag_spec=
9330      export_dynamic_flag_spec=
9331      whole_archive_flag_spec=
9332    fi
9333  else
9334    # PORTME fill in a description of your system's linker (not GNU ld)
9335    case $host_os in
9336    aix3*)
9337      allow_undefined_flag=unsupported
9338      always_export_symbols=yes
9339      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'
9340      # Note: this linker hardcodes the directories in LIBPATH if there
9341      # are no directories specified by -L.
9342      hardcode_minus_L=yes
9343      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9344	# Neither direct hardcoding nor static linking is supported with a
9345	# broken collect2.
9346	hardcode_direct=unsupported
9347      fi
9348      ;;
9349
9350    aix[4-9]*)
9351      if test ia64 = "$host_cpu"; then
9352	# On IA64, the linker does run time linking by default, so we don't
9353	# have to do anything special.
9354	aix_use_runtimelinking=no
9355	exp_sym_flag='-Bexport'
9356	no_entry_flag=
9357      else
9358	# If we're using GNU nm, then we don't want the "-C" option.
9359	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9360	# Without the "-l" option, or with the "-B" option, AIX nm treats
9361	# weak defined symbols like other global defined symbols, whereas
9362	# GNU nm marks them as "W".
9363	# While the 'weak' keyword is ignored in the Export File, we need
9364	# it in the Import File for the 'aix-soname' feature, so we have
9365	# to replace the "-B" option with "-P" for AIX nm.
9366	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9367	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9368	else
9369	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9370	fi
9371	aix_use_runtimelinking=no
9372
9373	# Test if we are trying to use run time linking or normal
9374	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9375	# have runtime linking enabled, and use it for executables.
9376	# For shared libraries, we enable/disable runtime linking
9377	# depending on the kind of the shared library created -
9378	# when "with_aix_soname,aix_use_runtimelinking" is:
9379	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9380	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9381	#            lib.a           static archive
9382	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9383	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9384	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9385	#            lib.a(lib.so.V) shared, rtl:no
9386	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9387	#            lib.a           static archive
9388	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9389	  for ld_flag in $LDFLAGS; do
9390	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9391	    aix_use_runtimelinking=yes
9392	    break
9393	  fi
9394	  done
9395	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9396	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9397	    # so we don't have lib.a shared libs to link our executables.
9398	    # We have to force runtime linking in this case.
9399	    aix_use_runtimelinking=yes
9400	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9401	  fi
9402	  ;;
9403	esac
9404
9405	exp_sym_flag='-bexport'
9406	no_entry_flag='-bnoentry'
9407      fi
9408
9409      # When large executables or shared objects are built, AIX ld can
9410      # have problems creating the table of contents.  If linking a library
9411      # or program results in "error TOC overflow" add -mminimal-toc to
9412      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9413      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9414
9415      archive_cmds=''
9416      hardcode_direct=yes
9417      hardcode_direct_absolute=yes
9418      hardcode_libdir_separator=':'
9419      link_all_deplibs=yes
9420      file_list_spec='$wl-f,'
9421      case $with_aix_soname,$aix_use_runtimelinking in
9422      aix,*) ;; # traditional, no import file
9423      svr4,* | *,yes) # use import file
9424	# The Import File defines what to hardcode.
9425	hardcode_direct=no
9426	hardcode_direct_absolute=no
9427	;;
9428      esac
9429
9430      if test yes = "$GCC"; then
9431	case $host_os in aix4.[012]|aix4.[012].*)
9432	# We only want to do this on AIX 4.2 and lower, the check
9433	# below for broken collect2 doesn't work under 4.3+
9434	  collect2name=`$CC -print-prog-name=collect2`
9435	  if test -f "$collect2name" &&
9436	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9437	  then
9438	  # We have reworked collect2
9439	  :
9440	  else
9441	  # We have old collect2
9442	  hardcode_direct=unsupported
9443	  # It fails to find uninstalled libraries when the uninstalled
9444	  # path is not listed in the libpath.  Setting hardcode_minus_L
9445	  # to unsupported forces relinking
9446	  hardcode_minus_L=yes
9447	  hardcode_libdir_flag_spec='-L$libdir'
9448	  hardcode_libdir_separator=
9449	  fi
9450	  ;;
9451	esac
9452	shared_flag='-shared'
9453	if test yes = "$aix_use_runtimelinking"; then
9454	  shared_flag="$shared_flag "'$wl-G'
9455	fi
9456	# Need to ensure runtime linking is disabled for the traditional
9457	# shared library, or the linker may eventually find shared libraries
9458	# /with/ Import File - we do not want to mix them.
9459	shared_flag_aix='-shared'
9460	shared_flag_svr4='-shared $wl-G'
9461      else
9462	# not using gcc
9463	if test ia64 = "$host_cpu"; then
9464	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9465	# chokes on -Wl,-G. The following line is correct:
9466	  shared_flag='-G'
9467	else
9468	  if test yes = "$aix_use_runtimelinking"; then
9469	    shared_flag='$wl-G'
9470	  else
9471	    shared_flag='$wl-bM:SRE'
9472	  fi
9473	  shared_flag_aix='$wl-bM:SRE'
9474	  shared_flag_svr4='$wl-G'
9475	fi
9476      fi
9477
9478      export_dynamic_flag_spec='$wl-bexpall'
9479      # It seems that -bexpall does not export symbols beginning with
9480      # underscore (_), so it is better to generate a list of symbols to export.
9481      always_export_symbols=yes
9482      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9483	# Warning - without using the other runtime loading flags (-brtl),
9484	# -berok will link without error, but may produce a broken library.
9485	allow_undefined_flag='-berok'
9486        # Determine the default libpath from the value encoded in an
9487        # empty executable.
9488        if test set = "${lt_cv_aix_libpath+set}"; then
9489  aix_libpath=$lt_cv_aix_libpath
9490else
9491  if ${lt_cv_aix_libpath_+:} false; then :
9492  $as_echo_n "(cached) " >&6
9493else
9494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495/* end confdefs.h.  */
9496
9497int
9498main ()
9499{
9500
9501  ;
9502  return 0;
9503}
9504_ACEOF
9505if ac_fn_c_try_link "$LINENO"; then :
9506
9507  lt_aix_libpath_sed='
9508      /Import File Strings/,/^$/ {
9509	  /^0/ {
9510	      s/^0  *\([^ ]*\) *$/\1/
9511	      p
9512	  }
9513      }'
9514  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515  # Check for a 64-bit object if we didn't find anything.
9516  if test -z "$lt_cv_aix_libpath_"; then
9517    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518  fi
9519fi
9520rm -f core conftest.err conftest.$ac_objext \
9521    conftest$ac_exeext conftest.$ac_ext
9522  if test -z "$lt_cv_aix_libpath_"; then
9523    lt_cv_aix_libpath_=/usr/lib:/lib
9524  fi
9525
9526fi
9527
9528  aix_libpath=$lt_cv_aix_libpath_
9529fi
9530
9531        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9532        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9533      else
9534	if test ia64 = "$host_cpu"; then
9535	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9536	  allow_undefined_flag="-z nodefs"
9537	  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"
9538	else
9539	 # Determine the default libpath from the value encoded in an
9540	 # empty executable.
9541	 if test set = "${lt_cv_aix_libpath+set}"; then
9542  aix_libpath=$lt_cv_aix_libpath
9543else
9544  if ${lt_cv_aix_libpath_+:} false; then :
9545  $as_echo_n "(cached) " >&6
9546else
9547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548/* end confdefs.h.  */
9549
9550int
9551main ()
9552{
9553
9554  ;
9555  return 0;
9556}
9557_ACEOF
9558if ac_fn_c_try_link "$LINENO"; then :
9559
9560  lt_aix_libpath_sed='
9561      /Import File Strings/,/^$/ {
9562	  /^0/ {
9563	      s/^0  *\([^ ]*\) *$/\1/
9564	      p
9565	  }
9566      }'
9567  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9568  # Check for a 64-bit object if we didn't find anything.
9569  if test -z "$lt_cv_aix_libpath_"; then
9570    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571  fi
9572fi
9573rm -f core conftest.err conftest.$ac_objext \
9574    conftest$ac_exeext conftest.$ac_ext
9575  if test -z "$lt_cv_aix_libpath_"; then
9576    lt_cv_aix_libpath_=/usr/lib:/lib
9577  fi
9578
9579fi
9580
9581  aix_libpath=$lt_cv_aix_libpath_
9582fi
9583
9584	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9585	  # Warning - without using the other run time loading flags,
9586	  # -berok will link without error, but may produce a broken library.
9587	  no_undefined_flag=' $wl-bernotok'
9588	  allow_undefined_flag=' $wl-berok'
9589	  if test yes = "$with_gnu_ld"; then
9590	    # We only use this code for GNU lds that support --whole-archive.
9591	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9592	  else
9593	    # Exported symbols can be pulled into shared objects from archives
9594	    whole_archive_flag_spec='$convenience'
9595	  fi
9596	  archive_cmds_need_lc=yes
9597	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9598	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9599	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9600	  if test svr4 != "$with_aix_soname"; then
9601	    # This is similar to how AIX traditionally builds its shared libraries.
9602	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9603	  fi
9604	  if test aix != "$with_aix_soname"; then
9605	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9606	  else
9607	    # used by -dlpreopen to get the symbols
9608	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9609	  fi
9610	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9611	fi
9612      fi
9613      ;;
9614
9615    amigaos*)
9616      case $host_cpu in
9617      powerpc)
9618            # see comment about AmigaOS4 .so support
9619            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9620            archive_expsym_cmds=''
9621        ;;
9622      m68k)
9623            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)'
9624            hardcode_libdir_flag_spec='-L$libdir'
9625            hardcode_minus_L=yes
9626        ;;
9627      esac
9628      ;;
9629
9630    bsdi[45]*)
9631      export_dynamic_flag_spec=-rdynamic
9632      ;;
9633
9634    cygwin* | mingw* | pw32* | cegcc*)
9635      # When not using gcc, we currently assume that we are using
9636      # Microsoft Visual C++.
9637      # hardcode_libdir_flag_spec is actually meaningless, as there is
9638      # no search path for DLLs.
9639      case $cc_basename in
9640      cl*)
9641	# Native MSVC
9642	hardcode_libdir_flag_spec=' '
9643	allow_undefined_flag=unsupported
9644	always_export_symbols=yes
9645	file_list_spec='@'
9646	# Tell ltmain to make .lib files, not .a files.
9647	libext=lib
9648	# Tell ltmain to make .dll files, not .so files.
9649	shrext_cmds=.dll
9650	# FIXME: Setting linknames here is a bad hack.
9651	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9652	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9653            cp "$export_symbols" "$output_objdir/$soname.def";
9654            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9655          else
9656            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9657          fi~
9658          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9659          linknames='
9660	# The linker will not automatically build a static lib if we build a DLL.
9661	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9662	enable_shared_with_static_runtimes=yes
9663	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9664	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9665	# Don't use ranlib
9666	old_postinstall_cmds='chmod 644 $oldlib'
9667	postlink_cmds='lt_outputfile="@OUTPUT@"~
9668          lt_tool_outputfile="@TOOL_OUTPUT@"~
9669          case $lt_outputfile in
9670            *.exe|*.EXE) ;;
9671            *)
9672              lt_outputfile=$lt_outputfile.exe
9673              lt_tool_outputfile=$lt_tool_outputfile.exe
9674              ;;
9675          esac~
9676          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9677            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9678            $RM "$lt_outputfile.manifest";
9679          fi'
9680	;;
9681      *)
9682	# Assume MSVC wrapper
9683	hardcode_libdir_flag_spec=' '
9684	allow_undefined_flag=unsupported
9685	# Tell ltmain to make .lib files, not .a files.
9686	libext=lib
9687	# Tell ltmain to make .dll files, not .so files.
9688	shrext_cmds=.dll
9689	# FIXME: Setting linknames here is a bad hack.
9690	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9691	# The linker will automatically build a .lib file if we build a DLL.
9692	old_archive_from_new_cmds='true'
9693	# FIXME: Should let the user specify the lib program.
9694	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9695	enable_shared_with_static_runtimes=yes
9696	;;
9697      esac
9698      ;;
9699
9700    darwin* | rhapsody*)
9701
9702
9703  archive_cmds_need_lc=no
9704  hardcode_direct=no
9705  hardcode_automatic=yes
9706  hardcode_shlibpath_var=unsupported
9707  if test yes = "$lt_cv_ld_force_load"; then
9708    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\"`'
9709
9710  else
9711    whole_archive_flag_spec=''
9712  fi
9713  link_all_deplibs=yes
9714  allow_undefined_flag=$_lt_dar_allow_undefined
9715  case $cc_basename in
9716     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9717     *) _lt_dar_can_shared=$GCC ;;
9718  esac
9719  if test yes = "$_lt_dar_can_shared"; then
9720    output_verbose_link_cmd=func_echo_all
9721    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9722    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9723    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"
9724    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"
9725
9726  else
9727  ld_shlibs=no
9728  fi
9729
9730      ;;
9731
9732    dgux*)
9733      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734      hardcode_libdir_flag_spec='-L$libdir'
9735      hardcode_shlibpath_var=no
9736      ;;
9737
9738    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9739    # support.  Future versions do this automatically, but an explicit c++rt0.o
9740    # does not break anything, and helps significantly (at the cost of a little
9741    # extra space).
9742    freebsd2.2*)
9743      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9744      hardcode_libdir_flag_spec='-R$libdir'
9745      hardcode_direct=yes
9746      hardcode_shlibpath_var=no
9747      ;;
9748
9749    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9750    freebsd2.*)
9751      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9752      hardcode_direct=yes
9753      hardcode_minus_L=yes
9754      hardcode_shlibpath_var=no
9755      ;;
9756
9757    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9758    freebsd* | dragonfly*)
9759      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9760      hardcode_libdir_flag_spec='-R$libdir'
9761      hardcode_direct=yes
9762      hardcode_shlibpath_var=no
9763      ;;
9764
9765    hpux9*)
9766      if test yes = "$GCC"; then
9767	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9768      else
9769	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9770      fi
9771      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9772      hardcode_libdir_separator=:
9773      hardcode_direct=yes
9774
9775      # hardcode_minus_L: Not really in the search PATH,
9776      # but as the default location of the library.
9777      hardcode_minus_L=yes
9778      export_dynamic_flag_spec='$wl-E'
9779      ;;
9780
9781    hpux10*)
9782      if test yes,no = "$GCC,$with_gnu_ld"; then
9783	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9784      else
9785	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9786      fi
9787      if test no = "$with_gnu_ld"; then
9788	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9789	hardcode_libdir_separator=:
9790	hardcode_direct=yes
9791	hardcode_direct_absolute=yes
9792	export_dynamic_flag_spec='$wl-E'
9793	# hardcode_minus_L: Not really in the search PATH,
9794	# but as the default location of the library.
9795	hardcode_minus_L=yes
9796      fi
9797      ;;
9798
9799    hpux11*)
9800      if test yes,no = "$GCC,$with_gnu_ld"; then
9801	case $host_cpu in
9802	hppa*64*)
9803	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9804	  ;;
9805	ia64*)
9806	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9807	  ;;
9808	*)
9809	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9810	  ;;
9811	esac
9812      else
9813	case $host_cpu in
9814	hppa*64*)
9815	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9816	  ;;
9817	ia64*)
9818	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9819	  ;;
9820	*)
9821
9822	  # Older versions of the 11.00 compiler do not understand -b yet
9823	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9824	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9825$as_echo_n "checking if $CC understands -b... " >&6; }
9826if ${lt_cv_prog_compiler__b+:} false; then :
9827  $as_echo_n "(cached) " >&6
9828else
9829  lt_cv_prog_compiler__b=no
9830   save_LDFLAGS=$LDFLAGS
9831   LDFLAGS="$LDFLAGS -b"
9832   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9833   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9834     # The linker can only warn and ignore the option if not recognized
9835     # So say no if there are warnings
9836     if test -s conftest.err; then
9837       # Append any errors to the config.log.
9838       cat conftest.err 1>&5
9839       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9840       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9841       if diff conftest.exp conftest.er2 >/dev/null; then
9842         lt_cv_prog_compiler__b=yes
9843       fi
9844     else
9845       lt_cv_prog_compiler__b=yes
9846     fi
9847   fi
9848   $RM -r conftest*
9849   LDFLAGS=$save_LDFLAGS
9850
9851fi
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9853$as_echo "$lt_cv_prog_compiler__b" >&6; }
9854
9855if test yes = "$lt_cv_prog_compiler__b"; then
9856    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9857else
9858    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9859fi
9860
9861	  ;;
9862	esac
9863      fi
9864      if test no = "$with_gnu_ld"; then
9865	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9866	hardcode_libdir_separator=:
9867
9868	case $host_cpu in
9869	hppa*64*|ia64*)
9870	  hardcode_direct=no
9871	  hardcode_shlibpath_var=no
9872	  ;;
9873	*)
9874	  hardcode_direct=yes
9875	  hardcode_direct_absolute=yes
9876	  export_dynamic_flag_spec='$wl-E'
9877
9878	  # hardcode_minus_L: Not really in the search PATH,
9879	  # but as the default location of the library.
9880	  hardcode_minus_L=yes
9881	  ;;
9882	esac
9883      fi
9884      ;;
9885
9886    irix5* | irix6* | nonstopux*)
9887      if test yes = "$GCC"; then
9888	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'
9889	# Try to use the -exported_symbol ld option, if it does not
9890	# work, assume that -exports_file does not work either and
9891	# implicitly export all symbols.
9892	# This should be the same for all languages, so no per-tag cache variable.
9893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9894$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9895if ${lt_cv_irix_exported_symbol+:} false; then :
9896  $as_echo_n "(cached) " >&6
9897else
9898  save_LDFLAGS=$LDFLAGS
9899	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9900	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901/* end confdefs.h.  */
9902int foo (void) { return 0; }
9903_ACEOF
9904if ac_fn_c_try_link "$LINENO"; then :
9905  lt_cv_irix_exported_symbol=yes
9906else
9907  lt_cv_irix_exported_symbol=no
9908fi
9909rm -f core conftest.err conftest.$ac_objext \
9910    conftest$ac_exeext conftest.$ac_ext
9911           LDFLAGS=$save_LDFLAGS
9912fi
9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9914$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9915	if test yes = "$lt_cv_irix_exported_symbol"; then
9916          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'
9917	fi
9918	link_all_deplibs=no
9919      else
9920	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'
9921	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'
9922      fi
9923      archive_cmds_need_lc='no'
9924      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9925      hardcode_libdir_separator=:
9926      inherit_rpath=yes
9927      link_all_deplibs=yes
9928      ;;
9929
9930    linux*)
9931      case $cc_basename in
9932      tcc*)
9933	# Fabrice Bellard et al's Tiny C Compiler
9934	ld_shlibs=yes
9935	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9936	;;
9937      esac
9938      ;;
9939
9940    netbsd* | netbsdelf*-gnu)
9941      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9942	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9943      else
9944	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9945      fi
9946      hardcode_libdir_flag_spec='-R$libdir'
9947      hardcode_direct=yes
9948      hardcode_shlibpath_var=no
9949      ;;
9950
9951    newsos6)
9952      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953      hardcode_direct=yes
9954      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9955      hardcode_libdir_separator=:
9956      hardcode_shlibpath_var=no
9957      ;;
9958
9959    *nto* | *qnx*)
9960      ;;
9961
9962    openbsd* | bitrig*)
9963      if test -f /usr/libexec/ld.so; then
9964	hardcode_direct=yes
9965	hardcode_shlibpath_var=no
9966	hardcode_direct_absolute=yes
9967	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9968	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9969	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9970	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9971	  export_dynamic_flag_spec='$wl-E'
9972	else
9973	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9974	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9975	fi
9976      else
9977	ld_shlibs=no
9978      fi
9979      ;;
9980
9981    os2*)
9982      hardcode_libdir_flag_spec='-L$libdir'
9983      hardcode_minus_L=yes
9984      allow_undefined_flag=unsupported
9985      shrext_cmds=.dll
9986      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9987	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9988	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9989	$ECHO EXPORTS >> $output_objdir/$libname.def~
9990	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9991	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9992	emximp -o $lib $output_objdir/$libname.def'
9993      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9994	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9995	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9996	$ECHO EXPORTS >> $output_objdir/$libname.def~
9997	prefix_cmds="$SED"~
9998	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9999	  prefix_cmds="$prefix_cmds -e 1d";
10000	fi~
10001	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10002	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10003	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10004	emximp -o $lib $output_objdir/$libname.def'
10005      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10006      enable_shared_with_static_runtimes=yes
10007      ;;
10008
10009    osf3*)
10010      if test yes = "$GCC"; then
10011	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10012	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'
10013      else
10014	allow_undefined_flag=' -expect_unresolved \*'
10015	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'
10016      fi
10017      archive_cmds_need_lc='no'
10018      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10019      hardcode_libdir_separator=:
10020      ;;
10021
10022    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10023      if test yes = "$GCC"; then
10024	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10025	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'
10026	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10027      else
10028	allow_undefined_flag=' -expect_unresolved \*'
10029	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'
10030	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~
10031          $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'
10032
10033	# Both c and cxx compiler support -rpath directly
10034	hardcode_libdir_flag_spec='-rpath $libdir'
10035      fi
10036      archive_cmds_need_lc='no'
10037      hardcode_libdir_separator=:
10038      ;;
10039
10040    solaris*)
10041      no_undefined_flag=' -z defs'
10042      if test yes = "$GCC"; then
10043	wlarc='$wl'
10044	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10045	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10046          $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'
10047      else
10048	case `$CC -V 2>&1` in
10049	*"Compilers 5.0"*)
10050	  wlarc=''
10051	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10052	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10054	  ;;
10055	*)
10056	  wlarc='$wl'
10057	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10058	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10059            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10060	  ;;
10061	esac
10062      fi
10063      hardcode_libdir_flag_spec='-R$libdir'
10064      hardcode_shlibpath_var=no
10065      case $host_os in
10066      solaris2.[0-5] | solaris2.[0-5].*) ;;
10067      *)
10068	# The compiler driver will combine and reorder linker options,
10069	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10070	# but is careful enough not to reorder.
10071	# Supported since Solaris 2.6 (maybe 2.5.1?)
10072	if test yes = "$GCC"; then
10073	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10074	else
10075	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10076	fi
10077	;;
10078      esac
10079      link_all_deplibs=yes
10080      ;;
10081
10082    sunos4*)
10083      if test sequent = "$host_vendor"; then
10084	# Use $CC to link under sequent, because it throws in some extra .o
10085	# files that make .init and .fini sections work.
10086	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10087      else
10088	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10089      fi
10090      hardcode_libdir_flag_spec='-L$libdir'
10091      hardcode_direct=yes
10092      hardcode_minus_L=yes
10093      hardcode_shlibpath_var=no
10094      ;;
10095
10096    sysv4)
10097      case $host_vendor in
10098	sni)
10099	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10100	  hardcode_direct=yes # is this really true???
10101	;;
10102	siemens)
10103	  ## LD is ld it makes a PLAMLIB
10104	  ## CC just makes a GrossModule.
10105	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10106	  reload_cmds='$CC -r -o $output$reload_objs'
10107	  hardcode_direct=no
10108        ;;
10109	motorola)
10110	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10112	;;
10113      esac
10114      runpath_var='LD_RUN_PATH'
10115      hardcode_shlibpath_var=no
10116      ;;
10117
10118    sysv4.3*)
10119      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120      hardcode_shlibpath_var=no
10121      export_dynamic_flag_spec='-Bexport'
10122      ;;
10123
10124    sysv4*MP*)
10125      if test -d /usr/nec; then
10126	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127	hardcode_shlibpath_var=no
10128	runpath_var=LD_RUN_PATH
10129	hardcode_runpath_var=yes
10130	ld_shlibs=yes
10131      fi
10132      ;;
10133
10134    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10135      no_undefined_flag='$wl-z,text'
10136      archive_cmds_need_lc=no
10137      hardcode_shlibpath_var=no
10138      runpath_var='LD_RUN_PATH'
10139
10140      if test yes = "$GCC"; then
10141	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143      else
10144	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146      fi
10147      ;;
10148
10149    sysv5* | sco3.2v5* | sco5v6*)
10150      # Note: We CANNOT use -z defs as we might desire, because we do not
10151      # link with -lc, and that would cause any symbols used from libc to
10152      # always be unresolved, which means just about no library would
10153      # ever link correctly.  If we're not using GNU ld we use -z text
10154      # though, which does catch some bad symbols but isn't as heavy-handed
10155      # as -z defs.
10156      no_undefined_flag='$wl-z,text'
10157      allow_undefined_flag='$wl-z,nodefs'
10158      archive_cmds_need_lc=no
10159      hardcode_shlibpath_var=no
10160      hardcode_libdir_flag_spec='$wl-R,$libdir'
10161      hardcode_libdir_separator=':'
10162      link_all_deplibs=yes
10163      export_dynamic_flag_spec='$wl-Bexport'
10164      runpath_var='LD_RUN_PATH'
10165
10166      if test yes = "$GCC"; then
10167	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169      else
10170	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172      fi
10173      ;;
10174
10175    uts4*)
10176      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177      hardcode_libdir_flag_spec='-L$libdir'
10178      hardcode_shlibpath_var=no
10179      ;;
10180
10181    *)
10182      ld_shlibs=no
10183      ;;
10184    esac
10185
10186    if test sni = "$host_vendor"; then
10187      case $host in
10188      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10189	export_dynamic_flag_spec='$wl-Blargedynsym'
10190	;;
10191      esac
10192    fi
10193  fi
10194
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10196$as_echo "$ld_shlibs" >&6; }
10197test no = "$ld_shlibs" && can_build_shared=no
10198
10199with_gnu_ld=$with_gnu_ld
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215#
10216# Do we need to explicitly link libc?
10217#
10218case "x$archive_cmds_need_lc" in
10219x|xyes)
10220  # Assume -lc should be added
10221  archive_cmds_need_lc=yes
10222
10223  if test yes,yes = "$GCC,$enable_shared"; then
10224    case $archive_cmds in
10225    *'~'*)
10226      # FIXME: we may have to deal with multi-command sequences.
10227      ;;
10228    '$CC '*)
10229      # Test whether the compiler implicitly links with -lc since on some
10230      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10231      # to ld, don't add -lc before -lgcc.
10232      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10233$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10234if ${lt_cv_archive_cmds_need_lc+:} false; then :
10235  $as_echo_n "(cached) " >&6
10236else
10237  $RM conftest*
10238	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10239
10240	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10241  (eval $ac_compile) 2>&5
10242  ac_status=$?
10243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10244  test $ac_status = 0; } 2>conftest.err; then
10245	  soname=conftest
10246	  lib=conftest
10247	  libobjs=conftest.$ac_objext
10248	  deplibs=
10249	  wl=$lt_prog_compiler_wl
10250	  pic_flag=$lt_prog_compiler_pic
10251	  compiler_flags=-v
10252	  linker_flags=-v
10253	  verstring=
10254	  output_objdir=.
10255	  libname=conftest
10256	  lt_save_allow_undefined_flag=$allow_undefined_flag
10257	  allow_undefined_flag=
10258	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10259  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10260  ac_status=$?
10261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10262  test $ac_status = 0; }
10263	  then
10264	    lt_cv_archive_cmds_need_lc=no
10265	  else
10266	    lt_cv_archive_cmds_need_lc=yes
10267	  fi
10268	  allow_undefined_flag=$lt_save_allow_undefined_flag
10269	else
10270	  cat conftest.err 1>&5
10271	fi
10272	$RM conftest*
10273
10274fi
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10276$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10277      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10278      ;;
10279    esac
10280  fi
10281  ;;
10282esac
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10436$as_echo_n "checking dynamic linker characteristics... " >&6; }
10437
10438if test yes = "$GCC"; then
10439  case $host_os in
10440    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10441    *) lt_awk_arg='/^libraries:/' ;;
10442  esac
10443  case $host_os in
10444    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10445    *) lt_sed_strip_eq='s|=/|/|g' ;;
10446  esac
10447  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10448  case $lt_search_path_spec in
10449  *\;*)
10450    # if the path contains ";" then we assume it to be the separator
10451    # otherwise default to the standard path separator (i.e. ":") - it is
10452    # assumed that no part of a normal pathname contains ";" but that should
10453    # okay in the real world where ";" in dirpaths is itself problematic.
10454    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10455    ;;
10456  *)
10457    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10458    ;;
10459  esac
10460  # Ok, now we have the path, separated by spaces, we can step through it
10461  # and add multilib dir if necessary...
10462  lt_tmp_lt_search_path_spec=
10463  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10464  # ...but if some path component already ends with the multilib dir we assume
10465  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10466  case "$lt_multi_os_dir; $lt_search_path_spec " in
10467  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10468    lt_multi_os_dir=
10469    ;;
10470  esac
10471  for lt_sys_path in $lt_search_path_spec; do
10472    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10473      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10474    elif test -n "$lt_multi_os_dir"; then
10475      test -d "$lt_sys_path" && \
10476	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10477    fi
10478  done
10479  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10480BEGIN {RS = " "; FS = "/|\n";} {
10481  lt_foo = "";
10482  lt_count = 0;
10483  for (lt_i = NF; lt_i > 0; lt_i--) {
10484    if ($lt_i != "" && $lt_i != ".") {
10485      if ($lt_i == "..") {
10486        lt_count++;
10487      } else {
10488        if (lt_count == 0) {
10489          lt_foo = "/" $lt_i lt_foo;
10490        } else {
10491          lt_count--;
10492        }
10493      }
10494    }
10495  }
10496  if (lt_foo != "") { lt_freq[lt_foo]++; }
10497  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10498}'`
10499  # AWK program above erroneously prepends '/' to C:/dos/paths
10500  # for these hosts.
10501  case $host_os in
10502    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10503      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10504  esac
10505  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10506else
10507  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10508fi
10509library_names_spec=
10510libname_spec='lib$name'
10511soname_spec=
10512shrext_cmds=.so
10513postinstall_cmds=
10514postuninstall_cmds=
10515finish_cmds=
10516finish_eval=
10517shlibpath_var=
10518shlibpath_overrides_runpath=unknown
10519version_type=none
10520dynamic_linker="$host_os ld.so"
10521sys_lib_dlsearch_path_spec="/lib /usr/lib"
10522need_lib_prefix=unknown
10523hardcode_into_libs=no
10524
10525# when you set need_version to no, make sure it does not cause -set_version
10526# flags to be left without arguments
10527need_version=unknown
10528
10529
10530
10531case $host_os in
10532aix3*)
10533  version_type=linux # correct to gnu/linux during the next big refactor
10534  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10535  shlibpath_var=LIBPATH
10536
10537  # AIX 3 has no versioning support, so we append a major version to the name.
10538  soname_spec='$libname$release$shared_ext$major'
10539  ;;
10540
10541aix[4-9]*)
10542  version_type=linux # correct to gnu/linux during the next big refactor
10543  need_lib_prefix=no
10544  need_version=no
10545  hardcode_into_libs=yes
10546  if test ia64 = "$host_cpu"; then
10547    # AIX 5 supports IA64
10548    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10549    shlibpath_var=LD_LIBRARY_PATH
10550  else
10551    # With GCC up to 2.95.x, collect2 would create an import file
10552    # for dependence libraries.  The import file would start with
10553    # the line '#! .'.  This would cause the generated library to
10554    # depend on '.', always an invalid library.  This was fixed in
10555    # development snapshots of GCC prior to 3.0.
10556    case $host_os in
10557      aix4 | aix4.[01] | aix4.[01].*)
10558      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10559	   echo ' yes '
10560	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10561	:
10562      else
10563	can_build_shared=no
10564      fi
10565      ;;
10566    esac
10567    # Using Import Files as archive members, it is possible to support
10568    # filename-based versioning of shared library archives on AIX. While
10569    # this would work for both with and without runtime linking, it will
10570    # prevent static linking of such archives. So we do filename-based
10571    # shared library versioning with .so extension only, which is used
10572    # when both runtime linking and shared linking is enabled.
10573    # Unfortunately, runtime linking may impact performance, so we do
10574    # not want this to be the default eventually. Also, we use the
10575    # versioned .so libs for executables only if there is the -brtl
10576    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10577    # To allow for filename-based versioning support, we need to create
10578    # libNAME.so.V as an archive file, containing:
10579    # *) an Import File, referring to the versioned filename of the
10580    #    archive as well as the shared archive member, telling the
10581    #    bitwidth (32 or 64) of that shared object, and providing the
10582    #    list of exported symbols of that shared object, eventually
10583    #    decorated with the 'weak' keyword
10584    # *) the shared object with the F_LOADONLY flag set, to really avoid
10585    #    it being seen by the linker.
10586    # At run time we better use the real file rather than another symlink,
10587    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10588
10589    case $with_aix_soname,$aix_use_runtimelinking in
10590    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10591    # soname into executable. Probably we can add versioning support to
10592    # collect2, so additional links can be useful in future.
10593    aix,yes) # traditional libtool
10594      dynamic_linker='AIX unversionable lib.so'
10595      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10596      # instead of lib<name>.a to let people know that these are not
10597      # typical AIX shared libraries.
10598      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10599      ;;
10600    aix,no) # traditional AIX only
10601      dynamic_linker='AIX lib.a(lib.so.V)'
10602      # We preserve .a as extension for shared libraries through AIX4.2
10603      # and later when we are not doing run time linking.
10604      library_names_spec='$libname$release.a $libname.a'
10605      soname_spec='$libname$release$shared_ext$major'
10606      ;;
10607    svr4,*) # full svr4 only
10608      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10609      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10610      # We do not specify a path in Import Files, so LIBPATH fires.
10611      shlibpath_overrides_runpath=yes
10612      ;;
10613    *,yes) # both, prefer svr4
10614      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10615      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10616      # unpreferred sharedlib libNAME.a needs extra handling
10617      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10618      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10619      # We do not specify a path in Import Files, so LIBPATH fires.
10620      shlibpath_overrides_runpath=yes
10621      ;;
10622    *,no) # both, prefer aix
10623      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10624      library_names_spec='$libname$release.a $libname.a'
10625      soname_spec='$libname$release$shared_ext$major'
10626      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10627      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10628      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10629      ;;
10630    esac
10631    shlibpath_var=LIBPATH
10632  fi
10633  ;;
10634
10635amigaos*)
10636  case $host_cpu in
10637  powerpc)
10638    # Since July 2007 AmigaOS4 officially supports .so libraries.
10639    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10640    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10641    ;;
10642  m68k)
10643    library_names_spec='$libname.ixlibrary $libname.a'
10644    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10645    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10646    ;;
10647  esac
10648  ;;
10649
10650beos*)
10651  library_names_spec='$libname$shared_ext'
10652  dynamic_linker="$host_os ld.so"
10653  shlibpath_var=LIBRARY_PATH
10654  ;;
10655
10656bsdi[45]*)
10657  version_type=linux # correct to gnu/linux during the next big refactor
10658  need_version=no
10659  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10660  soname_spec='$libname$release$shared_ext$major'
10661  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10662  shlibpath_var=LD_LIBRARY_PATH
10663  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10664  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10665  # the default ld.so.conf also contains /usr/contrib/lib and
10666  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10667  # libtool to hard-code these into programs
10668  ;;
10669
10670cygwin* | mingw* | pw32* | cegcc*)
10671  version_type=windows
10672  shrext_cmds=.dll
10673  need_version=no
10674  need_lib_prefix=no
10675
10676  case $GCC,$cc_basename in
10677  yes,*)
10678    # gcc
10679    library_names_spec='$libname.dll.a'
10680    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10681    postinstall_cmds='base_file=`basename \$file`~
10682      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10683      dldir=$destdir/`dirname \$dlpath`~
10684      test -d \$dldir || mkdir -p \$dldir~
10685      $install_prog $dir/$dlname \$dldir/$dlname~
10686      chmod a+x \$dldir/$dlname~
10687      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10688        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10689      fi'
10690    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10691      dlpath=$dir/\$dldll~
10692       $RM \$dlpath'
10693    shlibpath_overrides_runpath=yes
10694
10695    case $host_os in
10696    cygwin*)
10697      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10698      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10699
10700      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10701      ;;
10702    mingw* | cegcc*)
10703      # MinGW DLLs use traditional 'lib' prefix
10704      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10705      ;;
10706    pw32*)
10707      # pw32 DLLs use 'pw' prefix rather than 'lib'
10708      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10709      ;;
10710    esac
10711    dynamic_linker='Win32 ld.exe'
10712    ;;
10713
10714  *,cl*)
10715    # Native MSVC
10716    libname_spec='$name'
10717    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10718    library_names_spec='$libname.dll.lib'
10719
10720    case $build_os in
10721    mingw*)
10722      sys_lib_search_path_spec=
10723      lt_save_ifs=$IFS
10724      IFS=';'
10725      for lt_path in $LIB
10726      do
10727        IFS=$lt_save_ifs
10728        # Let DOS variable expansion print the short 8.3 style file name.
10729        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10730        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10731      done
10732      IFS=$lt_save_ifs
10733      # Convert to MSYS style.
10734      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10735      ;;
10736    cygwin*)
10737      # Convert to unix form, then to dos form, then back to unix form
10738      # but this time dos style (no spaces!) so that the unix form looks
10739      # like /cygdrive/c/PROGRA~1:/cygdr...
10740      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10741      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10742      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10743      ;;
10744    *)
10745      sys_lib_search_path_spec=$LIB
10746      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10747        # It is most probably a Windows format PATH.
10748        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10749      else
10750        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10751      fi
10752      # FIXME: find the short name or the path components, as spaces are
10753      # common. (e.g. "Program Files" -> "PROGRA~1")
10754      ;;
10755    esac
10756
10757    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10758    postinstall_cmds='base_file=`basename \$file`~
10759      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10760      dldir=$destdir/`dirname \$dlpath`~
10761      test -d \$dldir || mkdir -p \$dldir~
10762      $install_prog $dir/$dlname \$dldir/$dlname'
10763    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10764      dlpath=$dir/\$dldll~
10765       $RM \$dlpath'
10766    shlibpath_overrides_runpath=yes
10767    dynamic_linker='Win32 link.exe'
10768    ;;
10769
10770  *)
10771    # Assume MSVC wrapper
10772    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10773    dynamic_linker='Win32 ld.exe'
10774    ;;
10775  esac
10776  # FIXME: first we should search . and the directory the executable is in
10777  shlibpath_var=PATH
10778  ;;
10779
10780darwin* | rhapsody*)
10781  dynamic_linker="$host_os dyld"
10782  version_type=darwin
10783  need_lib_prefix=no
10784  need_version=no
10785  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10786  soname_spec='$libname$release$major$shared_ext'
10787  shlibpath_overrides_runpath=yes
10788  shlibpath_var=DYLD_LIBRARY_PATH
10789  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10790
10791  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10792  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10793  ;;
10794
10795dgux*)
10796  version_type=linux # correct to gnu/linux during the next big refactor
10797  need_lib_prefix=no
10798  need_version=no
10799  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10800  soname_spec='$libname$release$shared_ext$major'
10801  shlibpath_var=LD_LIBRARY_PATH
10802  ;;
10803
10804freebsd* | dragonfly*)
10805  # DragonFly does not have aout.  When/if they implement a new
10806  # versioning mechanism, adjust this.
10807  if test -x /usr/bin/objformat; then
10808    objformat=`/usr/bin/objformat`
10809  else
10810    case $host_os in
10811    freebsd[23].*) objformat=aout ;;
10812    *) objformat=elf ;;
10813    esac
10814  fi
10815  version_type=freebsd-$objformat
10816  case $version_type in
10817    freebsd-elf*)
10818      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10819      soname_spec='$libname$release$shared_ext$major'
10820      need_version=no
10821      need_lib_prefix=no
10822      ;;
10823    freebsd-*)
10824      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10825      need_version=yes
10826      ;;
10827  esac
10828  shlibpath_var=LD_LIBRARY_PATH
10829  case $host_os in
10830  freebsd2.*)
10831    shlibpath_overrides_runpath=yes
10832    ;;
10833  freebsd3.[01]* | freebsdelf3.[01]*)
10834    shlibpath_overrides_runpath=yes
10835    hardcode_into_libs=yes
10836    ;;
10837  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10838  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10839    shlibpath_overrides_runpath=no
10840    hardcode_into_libs=yes
10841    ;;
10842  *) # from 4.6 on, and DragonFly
10843    shlibpath_overrides_runpath=yes
10844    hardcode_into_libs=yes
10845    ;;
10846  esac
10847  ;;
10848
10849haiku*)
10850  version_type=linux # correct to gnu/linux during the next big refactor
10851  need_lib_prefix=no
10852  need_version=no
10853  dynamic_linker="$host_os runtime_loader"
10854  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10855  soname_spec='$libname$release$shared_ext$major'
10856  shlibpath_var=LIBRARY_PATH
10857  shlibpath_overrides_runpath=no
10858  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10859  hardcode_into_libs=yes
10860  ;;
10861
10862hpux9* | hpux10* | hpux11*)
10863  # Give a soname corresponding to the major version so that dld.sl refuses to
10864  # link against other versions.
10865  version_type=sunos
10866  need_lib_prefix=no
10867  need_version=no
10868  case $host_cpu in
10869  ia64*)
10870    shrext_cmds='.so'
10871    hardcode_into_libs=yes
10872    dynamic_linker="$host_os dld.so"
10873    shlibpath_var=LD_LIBRARY_PATH
10874    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10875    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10876    soname_spec='$libname$release$shared_ext$major'
10877    if test 32 = "$HPUX_IA64_MODE"; then
10878      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10879      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10880    else
10881      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10882      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10883    fi
10884    ;;
10885  hppa*64*)
10886    shrext_cmds='.sl'
10887    hardcode_into_libs=yes
10888    dynamic_linker="$host_os dld.sl"
10889    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10890    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10892    soname_spec='$libname$release$shared_ext$major'
10893    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10894    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10895    ;;
10896  *)
10897    shrext_cmds='.sl'
10898    dynamic_linker="$host_os dld.sl"
10899    shlibpath_var=SHLIB_PATH
10900    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10901    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10902    soname_spec='$libname$release$shared_ext$major'
10903    ;;
10904  esac
10905  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10906  postinstall_cmds='chmod 555 $lib'
10907  # or fails outright, so override atomically:
10908  install_override_mode=555
10909  ;;
10910
10911interix[3-9]*)
10912  version_type=linux # correct to gnu/linux during the next big refactor
10913  need_lib_prefix=no
10914  need_version=no
10915  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10916  soname_spec='$libname$release$shared_ext$major'
10917  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10918  shlibpath_var=LD_LIBRARY_PATH
10919  shlibpath_overrides_runpath=no
10920  hardcode_into_libs=yes
10921  ;;
10922
10923irix5* | irix6* | nonstopux*)
10924  case $host_os in
10925    nonstopux*) version_type=nonstopux ;;
10926    *)
10927	if test yes = "$lt_cv_prog_gnu_ld"; then
10928		version_type=linux # correct to gnu/linux during the next big refactor
10929	else
10930		version_type=irix
10931	fi ;;
10932  esac
10933  need_lib_prefix=no
10934  need_version=no
10935  soname_spec='$libname$release$shared_ext$major'
10936  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10937  case $host_os in
10938  irix5* | nonstopux*)
10939    libsuff= shlibsuff=
10940    ;;
10941  *)
10942    case $LD in # libtool.m4 will add one of these switches to LD
10943    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10944      libsuff= shlibsuff= libmagic=32-bit;;
10945    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10946      libsuff=32 shlibsuff=N32 libmagic=N32;;
10947    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10948      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10949    *) libsuff= shlibsuff= libmagic=never-match;;
10950    esac
10951    ;;
10952  esac
10953  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10954  shlibpath_overrides_runpath=no
10955  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10956  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10957  hardcode_into_libs=yes
10958  ;;
10959
10960# No shared lib support for Linux oldld, aout, or coff.
10961linux*oldld* | linux*aout* | linux*coff*)
10962  dynamic_linker=no
10963  ;;
10964
10965linux*android*)
10966  version_type=none # Android doesn't support versioned libraries.
10967  need_lib_prefix=no
10968  need_version=no
10969  library_names_spec='$libname$release$shared_ext'
10970  soname_spec='$libname$release$shared_ext'
10971  finish_cmds=
10972  shlibpath_var=LD_LIBRARY_PATH
10973  shlibpath_overrides_runpath=yes
10974
10975  # This implies no fast_install, which is unacceptable.
10976  # Some rework will be needed to allow for fast_install
10977  # before this can be enabled.
10978  hardcode_into_libs=yes
10979
10980  dynamic_linker='Android linker'
10981  # Don't embed -rpath directories since the linker doesn't support them.
10982  hardcode_libdir_flag_spec='-L$libdir'
10983  ;;
10984
10985# This must be glibc/ELF.
10986linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10987  version_type=linux # correct to gnu/linux during the next big refactor
10988  need_lib_prefix=no
10989  need_version=no
10990  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10991  soname_spec='$libname$release$shared_ext$major'
10992  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10993  shlibpath_var=LD_LIBRARY_PATH
10994  shlibpath_overrides_runpath=no
10995
10996  # Some binutils ld are patched to set DT_RUNPATH
10997  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10998  $as_echo_n "(cached) " >&6
10999else
11000  lt_cv_shlibpath_overrides_runpath=no
11001    save_LDFLAGS=$LDFLAGS
11002    save_libdir=$libdir
11003    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11004	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h.  */
11007
11008int
11009main ()
11010{
11011
11012  ;
11013  return 0;
11014}
11015_ACEOF
11016if ac_fn_c_try_link "$LINENO"; then :
11017  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11018  lt_cv_shlibpath_overrides_runpath=yes
11019fi
11020fi
11021rm -f core conftest.err conftest.$ac_objext \
11022    conftest$ac_exeext conftest.$ac_ext
11023    LDFLAGS=$save_LDFLAGS
11024    libdir=$save_libdir
11025
11026fi
11027
11028  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11029
11030  # This implies no fast_install, which is unacceptable.
11031  # Some rework will be needed to allow for fast_install
11032  # before this can be enabled.
11033  hardcode_into_libs=yes
11034
11035  # Ideally, we could use ldconfig to report *all* directores which are
11036  # searched for libraries, however this is still not possible.  Aside from not
11037  # being certain /sbin/ldconfig is available, command
11038  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11039  # even though it is searched at run-time.  Try to do the best guess by
11040  # appending ld.so.conf contents (and includes) to the search path.
11041  if test -f /etc/ld.so.conf; then
11042    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' ' '`
11043    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11044  fi
11045
11046  # We used to test for /lib/ld.so.1 and disable shared libraries on
11047  # powerpc, because MkLinux only supported shared libraries with the
11048  # GNU dynamic linker.  Since this was broken with cross compilers,
11049  # most powerpc-linux boxes support dynamic linking these days and
11050  # people can always --disable-shared, the test was removed, and we
11051  # assume the GNU/Linux dynamic linker is in use.
11052  dynamic_linker='GNU/Linux ld.so'
11053  ;;
11054
11055netbsdelf*-gnu)
11056  version_type=linux
11057  need_lib_prefix=no
11058  need_version=no
11059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11060  soname_spec='${libname}${release}${shared_ext}$major'
11061  shlibpath_var=LD_LIBRARY_PATH
11062  shlibpath_overrides_runpath=no
11063  hardcode_into_libs=yes
11064  dynamic_linker='NetBSD ld.elf_so'
11065  ;;
11066
11067netbsd*)
11068  version_type=sunos
11069  need_lib_prefix=no
11070  need_version=no
11071  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11072    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11073    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11074    dynamic_linker='NetBSD (a.out) ld.so'
11075  else
11076    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11077    soname_spec='$libname$release$shared_ext$major'
11078    dynamic_linker='NetBSD ld.elf_so'
11079  fi
11080  shlibpath_var=LD_LIBRARY_PATH
11081  shlibpath_overrides_runpath=yes
11082  hardcode_into_libs=yes
11083  ;;
11084
11085newsos6)
11086  version_type=linux # correct to gnu/linux during the next big refactor
11087  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11088  shlibpath_var=LD_LIBRARY_PATH
11089  shlibpath_overrides_runpath=yes
11090  ;;
11091
11092*nto* | *qnx*)
11093  version_type=qnx
11094  need_lib_prefix=no
11095  need_version=no
11096  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097  soname_spec='$libname$release$shared_ext$major'
11098  shlibpath_var=LD_LIBRARY_PATH
11099  shlibpath_overrides_runpath=no
11100  hardcode_into_libs=yes
11101  dynamic_linker='ldqnx.so'
11102  ;;
11103
11104openbsd* | bitrig*)
11105  version_type=sunos
11106  sys_lib_dlsearch_path_spec=/usr/lib
11107  need_lib_prefix=no
11108  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11109    need_version=no
11110  else
11111    need_version=yes
11112  fi
11113  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11114  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115  shlibpath_var=LD_LIBRARY_PATH
11116  shlibpath_overrides_runpath=yes
11117  ;;
11118
11119os2*)
11120  libname_spec='$name'
11121  version_type=windows
11122  shrext_cmds=.dll
11123  need_version=no
11124  need_lib_prefix=no
11125  # OS/2 can only load a DLL with a base name of 8 characters or less.
11126  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11127    v=$($ECHO $release$versuffix | tr -d .-);
11128    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11129    $ECHO $n$v`$shared_ext'
11130  library_names_spec='${libname}_dll.$libext'
11131  dynamic_linker='OS/2 ld.exe'
11132  shlibpath_var=BEGINLIBPATH
11133  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11134  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11135  postinstall_cmds='base_file=`basename \$file`~
11136    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11137    dldir=$destdir/`dirname \$dlpath`~
11138    test -d \$dldir || mkdir -p \$dldir~
11139    $install_prog $dir/$dlname \$dldir/$dlname~
11140    chmod a+x \$dldir/$dlname~
11141    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11142      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11143    fi'
11144  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11145    dlpath=$dir/\$dldll~
11146    $RM \$dlpath'
11147  ;;
11148
11149osf3* | osf4* | osf5*)
11150  version_type=osf
11151  need_lib_prefix=no
11152  need_version=no
11153  soname_spec='$libname$release$shared_ext$major'
11154  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155  shlibpath_var=LD_LIBRARY_PATH
11156  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11157  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11158  ;;
11159
11160rdos*)
11161  dynamic_linker=no
11162  ;;
11163
11164solaris*)
11165  version_type=linux # correct to gnu/linux during the next big refactor
11166  need_lib_prefix=no
11167  need_version=no
11168  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11169  soname_spec='$libname$release$shared_ext$major'
11170  shlibpath_var=LD_LIBRARY_PATH
11171  shlibpath_overrides_runpath=yes
11172  hardcode_into_libs=yes
11173  # ldd complains unless libraries are executable
11174  postinstall_cmds='chmod +x $lib'
11175  ;;
11176
11177sunos4*)
11178  version_type=sunos
11179  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11180  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11181  shlibpath_var=LD_LIBRARY_PATH
11182  shlibpath_overrides_runpath=yes
11183  if test yes = "$with_gnu_ld"; then
11184    need_lib_prefix=no
11185  fi
11186  need_version=yes
11187  ;;
11188
11189sysv4 | sysv4.3*)
11190  version_type=linux # correct to gnu/linux during the next big refactor
11191  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11192  soname_spec='$libname$release$shared_ext$major'
11193  shlibpath_var=LD_LIBRARY_PATH
11194  case $host_vendor in
11195    sni)
11196      shlibpath_overrides_runpath=no
11197      need_lib_prefix=no
11198      runpath_var=LD_RUN_PATH
11199      ;;
11200    siemens)
11201      need_lib_prefix=no
11202      ;;
11203    motorola)
11204      need_lib_prefix=no
11205      need_version=no
11206      shlibpath_overrides_runpath=no
11207      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11208      ;;
11209  esac
11210  ;;
11211
11212sysv4*MP*)
11213  if test -d /usr/nec; then
11214    version_type=linux # correct to gnu/linux during the next big refactor
11215    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11216    soname_spec='$libname$shared_ext.$major'
11217    shlibpath_var=LD_LIBRARY_PATH
11218  fi
11219  ;;
11220
11221sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11222  version_type=sco
11223  need_lib_prefix=no
11224  need_version=no
11225  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11226  soname_spec='$libname$release$shared_ext$major'
11227  shlibpath_var=LD_LIBRARY_PATH
11228  shlibpath_overrides_runpath=yes
11229  hardcode_into_libs=yes
11230  if test yes = "$with_gnu_ld"; then
11231    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11232  else
11233    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11234    case $host_os in
11235      sco3.2v5*)
11236        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11237	;;
11238    esac
11239  fi
11240  sys_lib_dlsearch_path_spec='/usr/lib'
11241  ;;
11242
11243tpf*)
11244  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11245  version_type=linux # correct to gnu/linux during the next big refactor
11246  need_lib_prefix=no
11247  need_version=no
11248  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11249  shlibpath_var=LD_LIBRARY_PATH
11250  shlibpath_overrides_runpath=no
11251  hardcode_into_libs=yes
11252  ;;
11253
11254uts4*)
11255  version_type=linux # correct to gnu/linux during the next big refactor
11256  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11257  soname_spec='$libname$release$shared_ext$major'
11258  shlibpath_var=LD_LIBRARY_PATH
11259  ;;
11260
11261*)
11262  dynamic_linker=no
11263  ;;
11264esac
11265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11266$as_echo "$dynamic_linker" >&6; }
11267test no = "$dynamic_linker" && can_build_shared=no
11268
11269variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11270if test yes = "$GCC"; then
11271  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11272fi
11273
11274if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11275  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11276fi
11277
11278if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11279  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11280fi
11281
11282# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11283configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11284
11285# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11286func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11287
11288# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11289configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11388$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11389hardcode_action=
11390if test -n "$hardcode_libdir_flag_spec" ||
11391   test -n "$runpath_var" ||
11392   test yes = "$hardcode_automatic"; then
11393
11394  # We can hardcode non-existent directories.
11395  if test no != "$hardcode_direct" &&
11396     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11397     # have to relink, otherwise we might link with an installed library
11398     # when we should be linking with a yet-to-be-installed one
11399     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11400     test no != "$hardcode_minus_L"; then
11401    # Linking always hardcodes the temporary library directory.
11402    hardcode_action=relink
11403  else
11404    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11405    hardcode_action=immediate
11406  fi
11407else
11408  # We cannot hardcode anything, or else we can only hardcode existing
11409  # directories.
11410  hardcode_action=unsupported
11411fi
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11413$as_echo "$hardcode_action" >&6; }
11414
11415if test relink = "$hardcode_action" ||
11416   test yes = "$inherit_rpath"; then
11417  # Fast installation is not supported
11418  enable_fast_install=no
11419elif test yes = "$shlibpath_overrides_runpath" ||
11420     test no = "$enable_shared"; then
11421  # Fast installation is not necessary
11422  enable_fast_install=needless
11423fi
11424
11425
11426
11427
11428
11429
11430  if test yes != "$enable_dlopen"; then
11431  enable_dlopen=unknown
11432  enable_dlopen_self=unknown
11433  enable_dlopen_self_static=unknown
11434else
11435  lt_cv_dlopen=no
11436  lt_cv_dlopen_libs=
11437
11438  case $host_os in
11439  beos*)
11440    lt_cv_dlopen=load_add_on
11441    lt_cv_dlopen_libs=
11442    lt_cv_dlopen_self=yes
11443    ;;
11444
11445  mingw* | pw32* | cegcc*)
11446    lt_cv_dlopen=LoadLibrary
11447    lt_cv_dlopen_libs=
11448    ;;
11449
11450  cygwin*)
11451    lt_cv_dlopen=dlopen
11452    lt_cv_dlopen_libs=
11453    ;;
11454
11455  darwin*)
11456    # if libdl is installed we need to link against it
11457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11458$as_echo_n "checking for dlopen in -ldl... " >&6; }
11459if ${ac_cv_lib_dl_dlopen+:} false; then :
11460  $as_echo_n "(cached) " >&6
11461else
11462  ac_check_lib_save_LIBS=$LIBS
11463LIBS="-ldl  $LIBS"
11464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465/* end confdefs.h.  */
11466
11467/* Override any GCC internal prototype to avoid an error.
11468   Use char because int might match the return type of a GCC
11469   builtin and then its argument prototype would still apply.  */
11470#ifdef __cplusplus
11471extern "C"
11472#endif
11473char dlopen ();
11474int
11475main ()
11476{
11477return dlopen ();
11478  ;
11479  return 0;
11480}
11481_ACEOF
11482if ac_fn_c_try_link "$LINENO"; then :
11483  ac_cv_lib_dl_dlopen=yes
11484else
11485  ac_cv_lib_dl_dlopen=no
11486fi
11487rm -f core conftest.err conftest.$ac_objext \
11488    conftest$ac_exeext conftest.$ac_ext
11489LIBS=$ac_check_lib_save_LIBS
11490fi
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11492$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11493if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11494  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11495else
11496
11497    lt_cv_dlopen=dyld
11498    lt_cv_dlopen_libs=
11499    lt_cv_dlopen_self=yes
11500
11501fi
11502
11503    ;;
11504
11505  tpf*)
11506    # Don't try to run any link tests for TPF.  We know it's impossible
11507    # because TPF is a cross-compiler, and we know how we open DSOs.
11508    lt_cv_dlopen=dlopen
11509    lt_cv_dlopen_libs=
11510    lt_cv_dlopen_self=no
11511    ;;
11512
11513  *)
11514    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11515if test "x$ac_cv_func_shl_load" = xyes; then :
11516  lt_cv_dlopen=shl_load
11517else
11518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11519$as_echo_n "checking for shl_load in -ldld... " >&6; }
11520if ${ac_cv_lib_dld_shl_load+:} false; then :
11521  $as_echo_n "(cached) " >&6
11522else
11523  ac_check_lib_save_LIBS=$LIBS
11524LIBS="-ldld  $LIBS"
11525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526/* end confdefs.h.  */
11527
11528/* Override any GCC internal prototype to avoid an error.
11529   Use char because int might match the return type of a GCC
11530   builtin and then its argument prototype would still apply.  */
11531#ifdef __cplusplus
11532extern "C"
11533#endif
11534char shl_load ();
11535int
11536main ()
11537{
11538return shl_load ();
11539  ;
11540  return 0;
11541}
11542_ACEOF
11543if ac_fn_c_try_link "$LINENO"; then :
11544  ac_cv_lib_dld_shl_load=yes
11545else
11546  ac_cv_lib_dld_shl_load=no
11547fi
11548rm -f core conftest.err conftest.$ac_objext \
11549    conftest$ac_exeext conftest.$ac_ext
11550LIBS=$ac_check_lib_save_LIBS
11551fi
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11553$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11554if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11555  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11556else
11557  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11558if test "x$ac_cv_func_dlopen" = xyes; then :
11559  lt_cv_dlopen=dlopen
11560else
11561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11562$as_echo_n "checking for dlopen in -ldl... " >&6; }
11563if ${ac_cv_lib_dl_dlopen+:} false; then :
11564  $as_echo_n "(cached) " >&6
11565else
11566  ac_check_lib_save_LIBS=$LIBS
11567LIBS="-ldl  $LIBS"
11568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569/* end confdefs.h.  */
11570
11571/* Override any GCC internal prototype to avoid an error.
11572   Use char because int might match the return type of a GCC
11573   builtin and then its argument prototype would still apply.  */
11574#ifdef __cplusplus
11575extern "C"
11576#endif
11577char dlopen ();
11578int
11579main ()
11580{
11581return dlopen ();
11582  ;
11583  return 0;
11584}
11585_ACEOF
11586if ac_fn_c_try_link "$LINENO"; then :
11587  ac_cv_lib_dl_dlopen=yes
11588else
11589  ac_cv_lib_dl_dlopen=no
11590fi
11591rm -f core conftest.err conftest.$ac_objext \
11592    conftest$ac_exeext conftest.$ac_ext
11593LIBS=$ac_check_lib_save_LIBS
11594fi
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11596$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11597if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11598  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11599else
11600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11601$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11602if ${ac_cv_lib_svld_dlopen+:} false; then :
11603  $as_echo_n "(cached) " >&6
11604else
11605  ac_check_lib_save_LIBS=$LIBS
11606LIBS="-lsvld  $LIBS"
11607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608/* end confdefs.h.  */
11609
11610/* Override any GCC internal prototype to avoid an error.
11611   Use char because int might match the return type of a GCC
11612   builtin and then its argument prototype would still apply.  */
11613#ifdef __cplusplus
11614extern "C"
11615#endif
11616char dlopen ();
11617int
11618main ()
11619{
11620return dlopen ();
11621  ;
11622  return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_link "$LINENO"; then :
11626  ac_cv_lib_svld_dlopen=yes
11627else
11628  ac_cv_lib_svld_dlopen=no
11629fi
11630rm -f core conftest.err conftest.$ac_objext \
11631    conftest$ac_exeext conftest.$ac_ext
11632LIBS=$ac_check_lib_save_LIBS
11633fi
11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11635$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11636if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11637  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11638else
11639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11640$as_echo_n "checking for dld_link in -ldld... " >&6; }
11641if ${ac_cv_lib_dld_dld_link+:} false; then :
11642  $as_echo_n "(cached) " >&6
11643else
11644  ac_check_lib_save_LIBS=$LIBS
11645LIBS="-ldld  $LIBS"
11646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647/* end confdefs.h.  */
11648
11649/* Override any GCC internal prototype to avoid an error.
11650   Use char because int might match the return type of a GCC
11651   builtin and then its argument prototype would still apply.  */
11652#ifdef __cplusplus
11653extern "C"
11654#endif
11655char dld_link ();
11656int
11657main ()
11658{
11659return dld_link ();
11660  ;
11661  return 0;
11662}
11663_ACEOF
11664if ac_fn_c_try_link "$LINENO"; then :
11665  ac_cv_lib_dld_dld_link=yes
11666else
11667  ac_cv_lib_dld_dld_link=no
11668fi
11669rm -f core conftest.err conftest.$ac_objext \
11670    conftest$ac_exeext conftest.$ac_ext
11671LIBS=$ac_check_lib_save_LIBS
11672fi
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11674$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11675if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11676  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11677fi
11678
11679
11680fi
11681
11682
11683fi
11684
11685
11686fi
11687
11688
11689fi
11690
11691
11692fi
11693
11694    ;;
11695  esac
11696
11697  if test no = "$lt_cv_dlopen"; then
11698    enable_dlopen=no
11699  else
11700    enable_dlopen=yes
11701  fi
11702
11703  case $lt_cv_dlopen in
11704  dlopen)
11705    save_CPPFLAGS=$CPPFLAGS
11706    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11707
11708    save_LDFLAGS=$LDFLAGS
11709    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11710
11711    save_LIBS=$LIBS
11712    LIBS="$lt_cv_dlopen_libs $LIBS"
11713
11714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11715$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11716if ${lt_cv_dlopen_self+:} false; then :
11717  $as_echo_n "(cached) " >&6
11718else
11719  	  if test yes = "$cross_compiling"; then :
11720  lt_cv_dlopen_self=cross
11721else
11722  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11723  lt_status=$lt_dlunknown
11724  cat > conftest.$ac_ext <<_LT_EOF
11725#line $LINENO "configure"
11726#include "confdefs.h"
11727
11728#if HAVE_DLFCN_H
11729#include <dlfcn.h>
11730#endif
11731
11732#include <stdio.h>
11733
11734#ifdef RTLD_GLOBAL
11735#  define LT_DLGLOBAL		RTLD_GLOBAL
11736#else
11737#  ifdef DL_GLOBAL
11738#    define LT_DLGLOBAL		DL_GLOBAL
11739#  else
11740#    define LT_DLGLOBAL		0
11741#  endif
11742#endif
11743
11744/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11745   find out it does not work in some platform. */
11746#ifndef LT_DLLAZY_OR_NOW
11747#  ifdef RTLD_LAZY
11748#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11749#  else
11750#    ifdef DL_LAZY
11751#      define LT_DLLAZY_OR_NOW		DL_LAZY
11752#    else
11753#      ifdef RTLD_NOW
11754#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11755#      else
11756#        ifdef DL_NOW
11757#          define LT_DLLAZY_OR_NOW	DL_NOW
11758#        else
11759#          define LT_DLLAZY_OR_NOW	0
11760#        endif
11761#      endif
11762#    endif
11763#  endif
11764#endif
11765
11766/* When -fvisibility=hidden is used, assume the code has been annotated
11767   correspondingly for the symbols needed.  */
11768#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11769int fnord () __attribute__((visibility("default")));
11770#endif
11771
11772int fnord () { return 42; }
11773int main ()
11774{
11775  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11776  int status = $lt_dlunknown;
11777
11778  if (self)
11779    {
11780      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11781      else
11782        {
11783	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11784          else puts (dlerror ());
11785	}
11786      /* dlclose (self); */
11787    }
11788  else
11789    puts (dlerror ());
11790
11791  return status;
11792}
11793_LT_EOF
11794  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11795  (eval $ac_link) 2>&5
11796  ac_status=$?
11797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11798  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11799    (./conftest; exit; ) >&5 2>/dev/null
11800    lt_status=$?
11801    case x$lt_status in
11802      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11803      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11804      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11805    esac
11806  else :
11807    # compilation failed
11808    lt_cv_dlopen_self=no
11809  fi
11810fi
11811rm -fr conftest*
11812
11813
11814fi
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11816$as_echo "$lt_cv_dlopen_self" >&6; }
11817
11818    if test yes = "$lt_cv_dlopen_self"; then
11819      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11820      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11821$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11822if ${lt_cv_dlopen_self_static+:} false; then :
11823  $as_echo_n "(cached) " >&6
11824else
11825  	  if test yes = "$cross_compiling"; then :
11826  lt_cv_dlopen_self_static=cross
11827else
11828  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11829  lt_status=$lt_dlunknown
11830  cat > conftest.$ac_ext <<_LT_EOF
11831#line $LINENO "configure"
11832#include "confdefs.h"
11833
11834#if HAVE_DLFCN_H
11835#include <dlfcn.h>
11836#endif
11837
11838#include <stdio.h>
11839
11840#ifdef RTLD_GLOBAL
11841#  define LT_DLGLOBAL		RTLD_GLOBAL
11842#else
11843#  ifdef DL_GLOBAL
11844#    define LT_DLGLOBAL		DL_GLOBAL
11845#  else
11846#    define LT_DLGLOBAL		0
11847#  endif
11848#endif
11849
11850/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11851   find out it does not work in some platform. */
11852#ifndef LT_DLLAZY_OR_NOW
11853#  ifdef RTLD_LAZY
11854#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11855#  else
11856#    ifdef DL_LAZY
11857#      define LT_DLLAZY_OR_NOW		DL_LAZY
11858#    else
11859#      ifdef RTLD_NOW
11860#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11861#      else
11862#        ifdef DL_NOW
11863#          define LT_DLLAZY_OR_NOW	DL_NOW
11864#        else
11865#          define LT_DLLAZY_OR_NOW	0
11866#        endif
11867#      endif
11868#    endif
11869#  endif
11870#endif
11871
11872/* When -fvisibility=hidden is used, assume the code has been annotated
11873   correspondingly for the symbols needed.  */
11874#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11875int fnord () __attribute__((visibility("default")));
11876#endif
11877
11878int fnord () { return 42; }
11879int main ()
11880{
11881  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11882  int status = $lt_dlunknown;
11883
11884  if (self)
11885    {
11886      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11887      else
11888        {
11889	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11890          else puts (dlerror ());
11891	}
11892      /* dlclose (self); */
11893    }
11894  else
11895    puts (dlerror ());
11896
11897  return status;
11898}
11899_LT_EOF
11900  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11901  (eval $ac_link) 2>&5
11902  ac_status=$?
11903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11904  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11905    (./conftest; exit; ) >&5 2>/dev/null
11906    lt_status=$?
11907    case x$lt_status in
11908      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11909      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11910      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11911    esac
11912  else :
11913    # compilation failed
11914    lt_cv_dlopen_self_static=no
11915  fi
11916fi
11917rm -fr conftest*
11918
11919
11920fi
11921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11922$as_echo "$lt_cv_dlopen_self_static" >&6; }
11923    fi
11924
11925    CPPFLAGS=$save_CPPFLAGS
11926    LDFLAGS=$save_LDFLAGS
11927    LIBS=$save_LIBS
11928    ;;
11929  esac
11930
11931  case $lt_cv_dlopen_self in
11932  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11933  *) enable_dlopen_self=unknown ;;
11934  esac
11935
11936  case $lt_cv_dlopen_self_static in
11937  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11938  *) enable_dlopen_self_static=unknown ;;
11939  esac
11940fi
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958striplib=
11959old_striplib=
11960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11961$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11962if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11963  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11964  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966$as_echo "yes" >&6; }
11967else
11968# FIXME - insert some real tests, host_os isn't really good enough
11969  case $host_os in
11970  darwin*)
11971    if test -n "$STRIP"; then
11972      striplib="$STRIP -x"
11973      old_striplib="$STRIP -S"
11974      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11975$as_echo "yes" >&6; }
11976    else
11977      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978$as_echo "no" >&6; }
11979    fi
11980    ;;
11981  *)
11982    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
11984    ;;
11985  esac
11986fi
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999  # Report what library types will actually be built
12000  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12001$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12003$as_echo "$can_build_shared" >&6; }
12004
12005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12006$as_echo_n "checking whether to build shared libraries... " >&6; }
12007  test no = "$can_build_shared" && enable_shared=no
12008
12009  # On AIX, shared libraries and static libraries use the same namespace, and
12010  # are all built from PIC.
12011  case $host_os in
12012  aix3*)
12013    test yes = "$enable_shared" && enable_static=no
12014    if test -n "$RANLIB"; then
12015      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12016      postinstall_cmds='$RANLIB $lib'
12017    fi
12018    ;;
12019
12020  aix[4-9]*)
12021    if test ia64 != "$host_cpu"; then
12022      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12023      yes,aix,yes) ;;			# shared object as lib.so file only
12024      yes,svr4,*) ;;			# shared object as lib.so archive member only
12025      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12026      esac
12027    fi
12028    ;;
12029  esac
12030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12031$as_echo "$enable_shared" >&6; }
12032
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12034$as_echo_n "checking whether to build static libraries... " >&6; }
12035  # Make sure either enable_shared or enable_static is yes.
12036  test yes = "$enable_shared" || enable_static=yes
12037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12038$as_echo "$enable_static" >&6; }
12039
12040
12041
12042
12043fi
12044ac_ext=c
12045ac_cpp='$CPP $CPPFLAGS'
12046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12048ac_compiler_gnu=$ac_cv_c_compiler_gnu
12049
12050CC=$lt_save_CC
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066        ac_config_commands="$ac_config_commands libtool"
12067
12068
12069
12070
12071# Only expand once:
12072
12073
12074
12075# Extract the first word of "doxygen", so it can be a program name with args.
12076set dummy doxygen; ac_word=$2
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078$as_echo_n "checking for $ac_word... " >&6; }
12079if ${ac_cv_prog_DOXYGEN+:} false; then :
12080  $as_echo_n "(cached) " >&6
12081else
12082  if test -n "$DOXYGEN"; then
12083  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
12084else
12085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086for as_dir in $PATH
12087do
12088  IFS=$as_save_IFS
12089  test -z "$as_dir" && as_dir=.
12090    for ac_exec_ext in '' $ac_executable_extensions; do
12091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12092    ac_cv_prog_DOXYGEN="true"
12093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12094    break 2
12095  fi
12096done
12097  done
12098IFS=$as_save_IFS
12099
12100  test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
12101fi
12102fi
12103DOXYGEN=$ac_cv_prog_DOXYGEN
12104if test -n "$DOXYGEN"; then
12105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12106$as_echo "$DOXYGEN" >&6; }
12107else
12108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
12110fi
12111
12112
12113 if test "$DOXYGEN" = true; then
12114  DOXYGEN_TRUE=
12115  DOXYGEN_FALSE='#'
12116else
12117  DOXYGEN_TRUE='#'
12118  DOXYGEN_FALSE=
12119fi
12120
12121
12122# Checks for header files.
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12124$as_echo_n "checking for ANSI C header files... " >&6; }
12125if ${ac_cv_header_stdc+:} false; then :
12126  $as_echo_n "(cached) " >&6
12127else
12128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h.  */
12130#include <stdlib.h>
12131#include <stdarg.h>
12132#include <string.h>
12133#include <float.h>
12134
12135int
12136main ()
12137{
12138
12139  ;
12140  return 0;
12141}
12142_ACEOF
12143if ac_fn_c_try_compile "$LINENO"; then :
12144  ac_cv_header_stdc=yes
12145else
12146  ac_cv_header_stdc=no
12147fi
12148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149
12150if test $ac_cv_header_stdc = yes; then
12151  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153/* end confdefs.h.  */
12154#include <string.h>
12155
12156_ACEOF
12157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12158  $EGREP "memchr" >/dev/null 2>&1; then :
12159
12160else
12161  ac_cv_header_stdc=no
12162fi
12163rm -f conftest*
12164
12165fi
12166
12167if test $ac_cv_header_stdc = yes; then
12168  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170/* end confdefs.h.  */
12171#include <stdlib.h>
12172
12173_ACEOF
12174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12175  $EGREP "free" >/dev/null 2>&1; then :
12176
12177else
12178  ac_cv_header_stdc=no
12179fi
12180rm -f conftest*
12181
12182fi
12183
12184if test $ac_cv_header_stdc = yes; then
12185  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12186  if test "$cross_compiling" = yes; then :
12187  :
12188else
12189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190/* end confdefs.h.  */
12191#include <ctype.h>
12192#include <stdlib.h>
12193#if ((' ' & 0x0FF) == 0x020)
12194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12196#else
12197# define ISLOWER(c) \
12198		   (('a' <= (c) && (c) <= 'i') \
12199		     || ('j' <= (c) && (c) <= 'r') \
12200		     || ('s' <= (c) && (c) <= 'z'))
12201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12202#endif
12203
12204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12205int
12206main ()
12207{
12208  int i;
12209  for (i = 0; i < 256; i++)
12210    if (XOR (islower (i), ISLOWER (i))
12211	|| toupper (i) != TOUPPER (i))
12212      return 2;
12213  return 0;
12214}
12215_ACEOF
12216if ac_fn_c_try_run "$LINENO"; then :
12217
12218else
12219  ac_cv_header_stdc=no
12220fi
12221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12222  conftest.$ac_objext conftest.beam conftest.$ac_ext
12223fi
12224
12225fi
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12228$as_echo "$ac_cv_header_stdc" >&6; }
12229if test $ac_cv_header_stdc = yes; then
12230
12231$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12232
12233fi
12234
12235for ac_header in stdlib.h
12236do :
12237  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12238if test "x$ac_cv_header_stdlib_h" = xyes; then :
12239  cat >>confdefs.h <<_ACEOF
12240#define HAVE_STDLIB_H 1
12241_ACEOF
12242
12243fi
12244
12245done
12246
12247
12248# Checks for typedefs, structures, and compiler characteristics.
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12250$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12251if ${ac_cv_c_const+:} false; then :
12252  $as_echo_n "(cached) " >&6
12253else
12254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255/* end confdefs.h.  */
12256
12257int
12258main ()
12259{
12260
12261#ifndef __cplusplus
12262  /* Ultrix mips cc rejects this sort of thing.  */
12263  typedef int charset[2];
12264  const charset cs = { 0, 0 };
12265  /* SunOS 4.1.1 cc rejects this.  */
12266  char const *const *pcpcc;
12267  char **ppc;
12268  /* NEC SVR4.0.2 mips cc rejects this.  */
12269  struct point {int x, y;};
12270  static struct point const zero = {0,0};
12271  /* AIX XL C 1.02.0.0 rejects this.
12272     It does not let you subtract one const X* pointer from another in
12273     an arm of an if-expression whose if-part is not a constant
12274     expression */
12275  const char *g = "string";
12276  pcpcc = &g + (g ? g-g : 0);
12277  /* HPUX 7.0 cc rejects these. */
12278  ++pcpcc;
12279  ppc = (char**) pcpcc;
12280  pcpcc = (char const *const *) ppc;
12281  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12282    char tx;
12283    char *t = &tx;
12284    char const *s = 0 ? (char *) 0 : (char const *) 0;
12285
12286    *t++ = 0;
12287    if (s) return 0;
12288  }
12289  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12290    int x[] = {25, 17};
12291    const int *foo = &x[0];
12292    ++foo;
12293  }
12294  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12295    typedef const int *iptr;
12296    iptr p = 0;
12297    ++p;
12298  }
12299  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12300       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12301    struct s { int j; const int *ap[3]; } bx;
12302    struct s *b = &bx; b->j = 5;
12303  }
12304  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12305    const int foo = 10;
12306    if (!foo) return 0;
12307  }
12308  return !cs[0] && !zero.x;
12309#endif
12310
12311  ;
12312  return 0;
12313}
12314_ACEOF
12315if ac_fn_c_try_compile "$LINENO"; then :
12316  ac_cv_c_const=yes
12317else
12318  ac_cv_c_const=no
12319fi
12320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321fi
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12323$as_echo "$ac_cv_c_const" >&6; }
12324if test $ac_cv_c_const = no; then
12325
12326$as_echo "#define const /**/" >>confdefs.h
12327
12328fi
12329
12330ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12331if test "x$ac_cv_type_size_t" = xyes; then :
12332
12333else
12334
12335cat >>confdefs.h <<_ACEOF
12336#define size_t unsigned int
12337_ACEOF
12338
12339fi
12340
12341
12342# Define Makefiles.
12343ac_config_files="$ac_config_files yaml-0.1.pc include/Makefile src/Makefile Makefile tests/Makefile"
12344
12345
12346# Generate the "configure" script.
12347cat >confcache <<\_ACEOF
12348# This file is a shell script that caches the results of configure
12349# tests run on this system so they can be shared between configure
12350# scripts and configure runs, see configure's option --config-cache.
12351# It is not useful on other systems.  If it contains results you don't
12352# want to keep, you may remove or edit it.
12353#
12354# config.status only pays attention to the cache file if you give it
12355# the --recheck option to rerun configure.
12356#
12357# `ac_cv_env_foo' variables (set or unset) will be overridden when
12358# loading this file, other *unset* `ac_cv_foo' will be assigned the
12359# following values.
12360
12361_ACEOF
12362
12363# The following way of writing the cache mishandles newlines in values,
12364# but we know of no workaround that is simple, portable, and efficient.
12365# So, we kill variables containing newlines.
12366# Ultrix sh set writes to stderr and can't be redirected directly,
12367# and sets the high bit in the cache file unless we assign to the vars.
12368(
12369  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12370    eval ac_val=\$$ac_var
12371    case $ac_val in #(
12372    *${as_nl}*)
12373      case $ac_var in #(
12374      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12375$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12376      esac
12377      case $ac_var in #(
12378      _ | IFS | as_nl) ;; #(
12379      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12380      *) { eval $ac_var=; unset $ac_var;} ;;
12381      esac ;;
12382    esac
12383  done
12384
12385  (set) 2>&1 |
12386    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12387    *${as_nl}ac_space=\ *)
12388      # `set' does not quote correctly, so add quotes: double-quote
12389      # substitution turns \\\\ into \\, and sed turns \\ into \.
12390      sed -n \
12391	"s/'/'\\\\''/g;
12392	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12393      ;; #(
12394    *)
12395      # `set' quotes correctly as required by POSIX, so do not add quotes.
12396      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12397      ;;
12398    esac |
12399    sort
12400) |
12401  sed '
12402     /^ac_cv_env_/b end
12403     t clear
12404     :clear
12405     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12406     t end
12407     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12408     :end' >>confcache
12409if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12410  if test -w "$cache_file"; then
12411    if test "x$cache_file" != "x/dev/null"; then
12412      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12413$as_echo "$as_me: updating cache $cache_file" >&6;}
12414      if test ! -f "$cache_file" || test -h "$cache_file"; then
12415	cat confcache >"$cache_file"
12416      else
12417        case $cache_file in #(
12418        */* | ?:*)
12419	  mv -f confcache "$cache_file"$$ &&
12420	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12421        *)
12422	  mv -f confcache "$cache_file" ;;
12423	esac
12424      fi
12425    fi
12426  else
12427    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12428$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12429  fi
12430fi
12431rm -f confcache
12432
12433test "x$prefix" = xNONE && prefix=$ac_default_prefix
12434# Let make expand exec_prefix.
12435test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12436
12437DEFS=-DHAVE_CONFIG_H
12438
12439ac_libobjs=
12440ac_ltlibobjs=
12441U=
12442for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12443  # 1. Remove the extension, and $U if already installed.
12444  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12445  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12446  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12447  #    will be set to the directory where LIBOBJS objects are built.
12448  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12449  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12450done
12451LIBOBJS=$ac_libobjs
12452
12453LTLIBOBJS=$ac_ltlibobjs
12454
12455
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12457$as_echo_n "checking that generated files are newer than configure... " >&6; }
12458   if test -n "$am_sleep_pid"; then
12459     # Hide warnings about reused PIDs.
12460     wait $am_sleep_pid 2>/dev/null
12461   fi
12462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12463$as_echo "done" >&6; }
12464 if test -n "$EXEEXT"; then
12465  am__EXEEXT_TRUE=
12466  am__EXEEXT_FALSE='#'
12467else
12468  am__EXEEXT_TRUE='#'
12469  am__EXEEXT_FALSE=
12470fi
12471
12472if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12473  as_fn_error $? "conditional \"AMDEP\" was never defined.
12474Usually this means the macro was only invoked conditionally." "$LINENO" 5
12475fi
12476if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12477  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12478Usually this means the macro was only invoked conditionally." "$LINENO" 5
12479fi
12480if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
12481  as_fn_error $? "conditional \"DOXYGEN\" was never defined.
12482Usually this means the macro was only invoked conditionally." "$LINENO" 5
12483fi
12484
12485: "${CONFIG_STATUS=./config.status}"
12486ac_write_fail=0
12487ac_clean_files_save=$ac_clean_files
12488ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12490$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12491as_write_fail=0
12492cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12493#! $SHELL
12494# Generated by $as_me.
12495# Run this file to recreate the current configuration.
12496# Compiler output produced by configure, useful for debugging
12497# configure, is in config.log if it exists.
12498
12499debug=false
12500ac_cs_recheck=false
12501ac_cs_silent=false
12502
12503SHELL=\${CONFIG_SHELL-$SHELL}
12504export SHELL
12505_ASEOF
12506cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12507## -------------------- ##
12508## M4sh Initialization. ##
12509## -------------------- ##
12510
12511# Be more Bourne compatible
12512DUALCASE=1; export DUALCASE # for MKS sh
12513if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12514  emulate sh
12515  NULLCMD=:
12516  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12517  # is contrary to our usage.  Disable this feature.
12518  alias -g '${1+"$@"}'='"$@"'
12519  setopt NO_GLOB_SUBST
12520else
12521  case `(set -o) 2>/dev/null` in #(
12522  *posix*) :
12523    set -o posix ;; #(
12524  *) :
12525     ;;
12526esac
12527fi
12528
12529
12530as_nl='
12531'
12532export as_nl
12533# Printing a long string crashes Solaris 7 /usr/bin/printf.
12534as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12535as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12536as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12537# Prefer a ksh shell builtin over an external printf program on Solaris,
12538# but without wasting forks for bash or zsh.
12539if test -z "$BASH_VERSION$ZSH_VERSION" \
12540    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12541  as_echo='print -r --'
12542  as_echo_n='print -rn --'
12543elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12544  as_echo='printf %s\n'
12545  as_echo_n='printf %s'
12546else
12547  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12548    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12549    as_echo_n='/usr/ucb/echo -n'
12550  else
12551    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12552    as_echo_n_body='eval
12553      arg=$1;
12554      case $arg in #(
12555      *"$as_nl"*)
12556	expr "X$arg" : "X\\(.*\\)$as_nl";
12557	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12558      esac;
12559      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12560    '
12561    export as_echo_n_body
12562    as_echo_n='sh -c $as_echo_n_body as_echo'
12563  fi
12564  export as_echo_body
12565  as_echo='sh -c $as_echo_body as_echo'
12566fi
12567
12568# The user is always right.
12569if test "${PATH_SEPARATOR+set}" != set; then
12570  PATH_SEPARATOR=:
12571  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12572    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12573      PATH_SEPARATOR=';'
12574  }
12575fi
12576
12577
12578# IFS
12579# We need space, tab and new line, in precisely that order.  Quoting is
12580# there to prevent editors from complaining about space-tab.
12581# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12582# splitting by setting IFS to empty value.)
12583IFS=" ""	$as_nl"
12584
12585# Find who we are.  Look in the path if we contain no directory separator.
12586as_myself=
12587case $0 in #((
12588  *[\\/]* ) as_myself=$0 ;;
12589  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590for as_dir in $PATH
12591do
12592  IFS=$as_save_IFS
12593  test -z "$as_dir" && as_dir=.
12594    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12595  done
12596IFS=$as_save_IFS
12597
12598     ;;
12599esac
12600# We did not find ourselves, most probably we were run as `sh COMMAND'
12601# in which case we are not to be found in the path.
12602if test "x$as_myself" = x; then
12603  as_myself=$0
12604fi
12605if test ! -f "$as_myself"; then
12606  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12607  exit 1
12608fi
12609
12610# Unset variables that we do not need and which cause bugs (e.g. in
12611# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12612# suppresses any "Segmentation fault" message there.  '((' could
12613# trigger a bug in pdksh 5.2.14.
12614for as_var in BASH_ENV ENV MAIL MAILPATH
12615do eval test x\${$as_var+set} = xset \
12616  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12617done
12618PS1='$ '
12619PS2='> '
12620PS4='+ '
12621
12622# NLS nuisances.
12623LC_ALL=C
12624export LC_ALL
12625LANGUAGE=C
12626export LANGUAGE
12627
12628# CDPATH.
12629(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12630
12631
12632# as_fn_error STATUS ERROR [LINENO LOG_FD]
12633# ----------------------------------------
12634# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12635# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12636# script with STATUS, using 1 if that was 0.
12637as_fn_error ()
12638{
12639  as_status=$1; test $as_status -eq 0 && as_status=1
12640  if test "$4"; then
12641    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12642    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12643  fi
12644  $as_echo "$as_me: error: $2" >&2
12645  as_fn_exit $as_status
12646} # as_fn_error
12647
12648
12649# as_fn_set_status STATUS
12650# -----------------------
12651# Set $? to STATUS, without forking.
12652as_fn_set_status ()
12653{
12654  return $1
12655} # as_fn_set_status
12656
12657# as_fn_exit STATUS
12658# -----------------
12659# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12660as_fn_exit ()
12661{
12662  set +e
12663  as_fn_set_status $1
12664  exit $1
12665} # as_fn_exit
12666
12667# as_fn_unset VAR
12668# ---------------
12669# Portably unset VAR.
12670as_fn_unset ()
12671{
12672  { eval $1=; unset $1;}
12673}
12674as_unset=as_fn_unset
12675# as_fn_append VAR VALUE
12676# ----------------------
12677# Append the text in VALUE to the end of the definition contained in VAR. Take
12678# advantage of any shell optimizations that allow amortized linear growth over
12679# repeated appends, instead of the typical quadratic growth present in naive
12680# implementations.
12681if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12682  eval 'as_fn_append ()
12683  {
12684    eval $1+=\$2
12685  }'
12686else
12687  as_fn_append ()
12688  {
12689    eval $1=\$$1\$2
12690  }
12691fi # as_fn_append
12692
12693# as_fn_arith ARG...
12694# ------------------
12695# Perform arithmetic evaluation on the ARGs, and store the result in the
12696# global $as_val. Take advantage of shells that can avoid forks. The arguments
12697# must be portable across $(()) and expr.
12698if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12699  eval 'as_fn_arith ()
12700  {
12701    as_val=$(( $* ))
12702  }'
12703else
12704  as_fn_arith ()
12705  {
12706    as_val=`expr "$@" || test $? -eq 1`
12707  }
12708fi # as_fn_arith
12709
12710
12711if expr a : '\(a\)' >/dev/null 2>&1 &&
12712   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12713  as_expr=expr
12714else
12715  as_expr=false
12716fi
12717
12718if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12719  as_basename=basename
12720else
12721  as_basename=false
12722fi
12723
12724if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12725  as_dirname=dirname
12726else
12727  as_dirname=false
12728fi
12729
12730as_me=`$as_basename -- "$0" ||
12731$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12732	 X"$0" : 'X\(//\)$' \| \
12733	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12734$as_echo X/"$0" |
12735    sed '/^.*\/\([^/][^/]*\)\/*$/{
12736	    s//\1/
12737	    q
12738	  }
12739	  /^X\/\(\/\/\)$/{
12740	    s//\1/
12741	    q
12742	  }
12743	  /^X\/\(\/\).*/{
12744	    s//\1/
12745	    q
12746	  }
12747	  s/.*/./; q'`
12748
12749# Avoid depending upon Character Ranges.
12750as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12751as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12752as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12753as_cr_digits='0123456789'
12754as_cr_alnum=$as_cr_Letters$as_cr_digits
12755
12756ECHO_C= ECHO_N= ECHO_T=
12757case `echo -n x` in #(((((
12758-n*)
12759  case `echo 'xy\c'` in
12760  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12761  xy)  ECHO_C='\c';;
12762  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12763       ECHO_T='	';;
12764  esac;;
12765*)
12766  ECHO_N='-n';;
12767esac
12768
12769rm -f conf$$ conf$$.exe conf$$.file
12770if test -d conf$$.dir; then
12771  rm -f conf$$.dir/conf$$.file
12772else
12773  rm -f conf$$.dir
12774  mkdir conf$$.dir 2>/dev/null
12775fi
12776if (echo >conf$$.file) 2>/dev/null; then
12777  if ln -s conf$$.file conf$$ 2>/dev/null; then
12778    as_ln_s='ln -s'
12779    # ... but there are two gotchas:
12780    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12781    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12782    # In both cases, we have to default to `cp -pR'.
12783    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12784      as_ln_s='cp -pR'
12785  elif ln conf$$.file conf$$ 2>/dev/null; then
12786    as_ln_s=ln
12787  else
12788    as_ln_s='cp -pR'
12789  fi
12790else
12791  as_ln_s='cp -pR'
12792fi
12793rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12794rmdir conf$$.dir 2>/dev/null
12795
12796
12797# as_fn_mkdir_p
12798# -------------
12799# Create "$as_dir" as a directory, including parents if necessary.
12800as_fn_mkdir_p ()
12801{
12802
12803  case $as_dir in #(
12804  -*) as_dir=./$as_dir;;
12805  esac
12806  test -d "$as_dir" || eval $as_mkdir_p || {
12807    as_dirs=
12808    while :; do
12809      case $as_dir in #(
12810      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12811      *) as_qdir=$as_dir;;
12812      esac
12813      as_dirs="'$as_qdir' $as_dirs"
12814      as_dir=`$as_dirname -- "$as_dir" ||
12815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12816	 X"$as_dir" : 'X\(//\)[^/]' \| \
12817	 X"$as_dir" : 'X\(//\)$' \| \
12818	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12819$as_echo X"$as_dir" |
12820    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12821	    s//\1/
12822	    q
12823	  }
12824	  /^X\(\/\/\)[^/].*/{
12825	    s//\1/
12826	    q
12827	  }
12828	  /^X\(\/\/\)$/{
12829	    s//\1/
12830	    q
12831	  }
12832	  /^X\(\/\).*/{
12833	    s//\1/
12834	    q
12835	  }
12836	  s/.*/./; q'`
12837      test -d "$as_dir" && break
12838    done
12839    test -z "$as_dirs" || eval "mkdir $as_dirs"
12840  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12841
12842
12843} # as_fn_mkdir_p
12844if mkdir -p . 2>/dev/null; then
12845  as_mkdir_p='mkdir -p "$as_dir"'
12846else
12847  test -d ./-p && rmdir ./-p
12848  as_mkdir_p=false
12849fi
12850
12851
12852# as_fn_executable_p FILE
12853# -----------------------
12854# Test if FILE is an executable regular file.
12855as_fn_executable_p ()
12856{
12857  test -f "$1" && test -x "$1"
12858} # as_fn_executable_p
12859as_test_x='test -x'
12860as_executable_p=as_fn_executable_p
12861
12862# Sed expression to map a string onto a valid CPP name.
12863as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12864
12865# Sed expression to map a string onto a valid variable name.
12866as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12867
12868
12869exec 6>&1
12870## ----------------------------------- ##
12871## Main body of $CONFIG_STATUS script. ##
12872## ----------------------------------- ##
12873_ASEOF
12874test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12875
12876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12877# Save the log message, to keep $0 and so on meaningful, and to
12878# report actual input values of CONFIG_FILES etc. instead of their
12879# values after options handling.
12880ac_log="
12881This file was extended by yaml $as_me 0.2.5, which was
12882generated by GNU Autoconf 2.69.  Invocation command line was
12883
12884  CONFIG_FILES    = $CONFIG_FILES
12885  CONFIG_HEADERS  = $CONFIG_HEADERS
12886  CONFIG_LINKS    = $CONFIG_LINKS
12887  CONFIG_COMMANDS = $CONFIG_COMMANDS
12888  $ $0 $@
12889
12890on `(hostname || uname -n) 2>/dev/null | sed 1q`
12891"
12892
12893_ACEOF
12894
12895case $ac_config_files in *"
12896"*) set x $ac_config_files; shift; ac_config_files=$*;;
12897esac
12898
12899case $ac_config_headers in *"
12900"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12901esac
12902
12903
12904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12905# Files that config.status was made for.
12906config_files="$ac_config_files"
12907config_headers="$ac_config_headers"
12908config_commands="$ac_config_commands"
12909
12910_ACEOF
12911
12912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12913ac_cs_usage="\
12914\`$as_me' instantiates files and other configuration actions
12915from templates according to the current configuration.  Unless the files
12916and actions are specified as TAGs, all are instantiated by default.
12917
12918Usage: $0 [OPTION]... [TAG]...
12919
12920  -h, --help       print this help, then exit
12921  -V, --version    print version number and configuration settings, then exit
12922      --config     print configuration, then exit
12923  -q, --quiet, --silent
12924                   do not print progress messages
12925  -d, --debug      don't remove temporary files
12926      --recheck    update $as_me by reconfiguring in the same conditions
12927      --file=FILE[:TEMPLATE]
12928                   instantiate the configuration file FILE
12929      --header=FILE[:TEMPLATE]
12930                   instantiate the configuration header FILE
12931
12932Configuration files:
12933$config_files
12934
12935Configuration headers:
12936$config_headers
12937
12938Configuration commands:
12939$config_commands
12940
12941Report bugs to <https://github.com/yaml/libyaml/issues/new>."
12942
12943_ACEOF
12944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12945ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12946ac_cs_version="\\
12947yaml config.status 0.2.5
12948configured by $0, generated by GNU Autoconf 2.69,
12949  with options \\"\$ac_cs_config\\"
12950
12951Copyright (C) 2012 Free Software Foundation, Inc.
12952This config.status script is free software; the Free Software Foundation
12953gives unlimited permission to copy, distribute and modify it."
12954
12955ac_pwd='$ac_pwd'
12956srcdir='$srcdir'
12957INSTALL='$INSTALL'
12958MKDIR_P='$MKDIR_P'
12959AWK='$AWK'
12960test -n "\$AWK" || AWK=awk
12961_ACEOF
12962
12963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12964# The default lists apply if the user does not specify any file.
12965ac_need_defaults=:
12966while test $# != 0
12967do
12968  case $1 in
12969  --*=?*)
12970    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12971    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12972    ac_shift=:
12973    ;;
12974  --*=)
12975    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12976    ac_optarg=
12977    ac_shift=:
12978    ;;
12979  *)
12980    ac_option=$1
12981    ac_optarg=$2
12982    ac_shift=shift
12983    ;;
12984  esac
12985
12986  case $ac_option in
12987  # Handling of the options.
12988  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12989    ac_cs_recheck=: ;;
12990  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12991    $as_echo "$ac_cs_version"; exit ;;
12992  --config | --confi | --conf | --con | --co | --c )
12993    $as_echo "$ac_cs_config"; exit ;;
12994  --debug | --debu | --deb | --de | --d | -d )
12995    debug=: ;;
12996  --file | --fil | --fi | --f )
12997    $ac_shift
12998    case $ac_optarg in
12999    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13000    '') as_fn_error $? "missing file argument" ;;
13001    esac
13002    as_fn_append CONFIG_FILES " '$ac_optarg'"
13003    ac_need_defaults=false;;
13004  --header | --heade | --head | --hea )
13005    $ac_shift
13006    case $ac_optarg in
13007    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13008    esac
13009    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13010    ac_need_defaults=false;;
13011  --he | --h)
13012    # Conflict between --help and --header
13013    as_fn_error $? "ambiguous option: \`$1'
13014Try \`$0 --help' for more information.";;
13015  --help | --hel | -h )
13016    $as_echo "$ac_cs_usage"; exit ;;
13017  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13018  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13019    ac_cs_silent=: ;;
13020
13021  # This is an error.
13022  -*) as_fn_error $? "unrecognized option: \`$1'
13023Try \`$0 --help' for more information." ;;
13024
13025  *) as_fn_append ac_config_targets " $1"
13026     ac_need_defaults=false ;;
13027
13028  esac
13029  shift
13030done
13031
13032ac_configure_extra_args=
13033
13034if $ac_cs_silent; then
13035  exec 6>/dev/null
13036  ac_configure_extra_args="$ac_configure_extra_args --silent"
13037fi
13038
13039_ACEOF
13040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13041if \$ac_cs_recheck; then
13042  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13043  shift
13044  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13045  CONFIG_SHELL='$SHELL'
13046  export CONFIG_SHELL
13047  exec "\$@"
13048fi
13049
13050_ACEOF
13051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13052exec 5>>config.log
13053{
13054  echo
13055  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13056## Running $as_me. ##
13057_ASBOX
13058  $as_echo "$ac_log"
13059} >&5
13060
13061_ACEOF
13062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13063#
13064# INIT-COMMANDS
13065#
13066AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13067
13068
13069# The HP-UX ksh and POSIX shell print the target directory to stdout
13070# if CDPATH is set.
13071(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13072
13073sed_quote_subst='$sed_quote_subst'
13074double_quote_subst='$double_quote_subst'
13075delay_variable_subst='$delay_variable_subst'
13076macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13077macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13078enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13079enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13080pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13081enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13082shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13083SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13084ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13085PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13086host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13087host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13088host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13089build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13090build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13091build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13092SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13093Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13094GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13095EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13096FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13097LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13098NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13099LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13100max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13101ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13102exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13103lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13104lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13105lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13106lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13107lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13108reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13109reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13110OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13111deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13112file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13113file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13114want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13115DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13116sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13117AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13118AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13119archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13120STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13121RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13122old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13123old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13124old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13125lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13126CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13127CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13128compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13129GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13130lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13131lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13132lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13133lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13134lt_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"`'
13135lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13136nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13137lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13138lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13139objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13140MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13141lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13142lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13143lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13144lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13145lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13146need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13147MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13148DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13149NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13150LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13151OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13152OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13153libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13154shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13155extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13156archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13157enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13158export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13159whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13160compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13161old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13162old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13163archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13164archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13165module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13166module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13167with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13168allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13169no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13170hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13171hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13172hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13173hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13174hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13175hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13176hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13177inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13178link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13179always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13180export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13181exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13182include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13183prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13184postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13185file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13186variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13187need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13188need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13189version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13190runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13191shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13192shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13193libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13194library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13195soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13196install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13197postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13198postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13199finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13200finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13201hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13202sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13203configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13204configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13205hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13206enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13207enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13208enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13209old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13210striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13211
13212LTCC='$LTCC'
13213LTCFLAGS='$LTCFLAGS'
13214compiler='$compiler_DEFAULT'
13215
13216# A function that is used when there is no print builtin or printf.
13217func_fallback_echo ()
13218{
13219  eval 'cat <<_LTECHO_EOF
13220\$1
13221_LTECHO_EOF'
13222}
13223
13224# Quote evaled strings.
13225for var in SHELL \
13226ECHO \
13227PATH_SEPARATOR \
13228SED \
13229GREP \
13230EGREP \
13231FGREP \
13232LD \
13233NM \
13234LN_S \
13235lt_SP2NL \
13236lt_NL2SP \
13237reload_flag \
13238OBJDUMP \
13239deplibs_check_method \
13240file_magic_cmd \
13241file_magic_glob \
13242want_nocaseglob \
13243DLLTOOL \
13244sharedlib_from_linklib_cmd \
13245AR \
13246AR_FLAGS \
13247archiver_list_spec \
13248STRIP \
13249RANLIB \
13250CC \
13251CFLAGS \
13252compiler \
13253lt_cv_sys_global_symbol_pipe \
13254lt_cv_sys_global_symbol_to_cdecl \
13255lt_cv_sys_global_symbol_to_import \
13256lt_cv_sys_global_symbol_to_c_name_address \
13257lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13258lt_cv_nm_interface \
13259nm_file_list_spec \
13260lt_cv_truncate_bin \
13261lt_prog_compiler_no_builtin_flag \
13262lt_prog_compiler_pic \
13263lt_prog_compiler_wl \
13264lt_prog_compiler_static \
13265lt_cv_prog_compiler_c_o \
13266need_locks \
13267MANIFEST_TOOL \
13268DSYMUTIL \
13269NMEDIT \
13270LIPO \
13271OTOOL \
13272OTOOL64 \
13273shrext_cmds \
13274export_dynamic_flag_spec \
13275whole_archive_flag_spec \
13276compiler_needs_object \
13277with_gnu_ld \
13278allow_undefined_flag \
13279no_undefined_flag \
13280hardcode_libdir_flag_spec \
13281hardcode_libdir_separator \
13282exclude_expsyms \
13283include_expsyms \
13284file_list_spec \
13285variables_saved_for_relink \
13286libname_spec \
13287library_names_spec \
13288soname_spec \
13289install_override_mode \
13290finish_eval \
13291old_striplib \
13292striplib; do
13293    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13294    *[\\\\\\\`\\"\\\$]*)
13295      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13296      ;;
13297    *)
13298      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13299      ;;
13300    esac
13301done
13302
13303# Double-quote double-evaled strings.
13304for var in reload_cmds \
13305old_postinstall_cmds \
13306old_postuninstall_cmds \
13307old_archive_cmds \
13308extract_expsyms_cmds \
13309old_archive_from_new_cmds \
13310old_archive_from_expsyms_cmds \
13311archive_cmds \
13312archive_expsym_cmds \
13313module_cmds \
13314module_expsym_cmds \
13315export_symbols_cmds \
13316prelink_cmds \
13317postlink_cmds \
13318postinstall_cmds \
13319postuninstall_cmds \
13320finish_cmds \
13321sys_lib_search_path_spec \
13322configure_time_dlsearch_path \
13323configure_time_lt_sys_library_path; do
13324    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13325    *[\\\\\\\`\\"\\\$]*)
13326      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13327      ;;
13328    *)
13329      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13330      ;;
13331    esac
13332done
13333
13334ac_aux_dir='$ac_aux_dir'
13335
13336# See if we are running on zsh, and set the options that allow our
13337# commands through without removal of \ escapes INIT.
13338if test -n "\${ZSH_VERSION+set}"; then
13339   setopt NO_GLOB_SUBST
13340fi
13341
13342
13343    PACKAGE='$PACKAGE'
13344    VERSION='$VERSION'
13345    RM='$RM'
13346    ofile='$ofile'
13347
13348
13349
13350
13351_ACEOF
13352
13353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13354
13355# Handling of arguments.
13356for ac_config_target in $ac_config_targets
13357do
13358  case $ac_config_target in
13359    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13360    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13361    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13362    "yaml-0.1.pc") CONFIG_FILES="$CONFIG_FILES yaml-0.1.pc" ;;
13363    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13364    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13365    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13366    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13367
13368  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13369  esac
13370done
13371
13372
13373# If the user did not use the arguments to specify the items to instantiate,
13374# then the envvar interface is used.  Set only those that are not.
13375# We use the long form for the default assignment because of an extremely
13376# bizarre bug on SunOS 4.1.3.
13377if $ac_need_defaults; then
13378  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13379  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13380  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13381fi
13382
13383# Have a temporary directory for convenience.  Make it in the build tree
13384# simply because there is no reason against having it here, and in addition,
13385# creating and moving files from /tmp can sometimes cause problems.
13386# Hook for its removal unless debugging.
13387# Note that there is a small window in which the directory will not be cleaned:
13388# after its creation but before its name has been assigned to `$tmp'.
13389$debug ||
13390{
13391  tmp= ac_tmp=
13392  trap 'exit_status=$?
13393  : "${ac_tmp:=$tmp}"
13394  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13395' 0
13396  trap 'as_fn_exit 1' 1 2 13 15
13397}
13398# Create a (secure) tmp directory for tmp files.
13399
13400{
13401  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13402  test -d "$tmp"
13403}  ||
13404{
13405  tmp=./conf$$-$RANDOM
13406  (umask 077 && mkdir "$tmp")
13407} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13408ac_tmp=$tmp
13409
13410# Set up the scripts for CONFIG_FILES section.
13411# No need to generate them if there are no CONFIG_FILES.
13412# This happens for instance with `./config.status config.h'.
13413if test -n "$CONFIG_FILES"; then
13414
13415
13416ac_cr=`echo X | tr X '\015'`
13417# On cygwin, bash can eat \r inside `` if the user requested igncr.
13418# But we know of no other shell where ac_cr would be empty at this
13419# point, so we can use a bashism as a fallback.
13420if test "x$ac_cr" = x; then
13421  eval ac_cr=\$\'\\r\'
13422fi
13423ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13424if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13425  ac_cs_awk_cr='\\r'
13426else
13427  ac_cs_awk_cr=$ac_cr
13428fi
13429
13430echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13431_ACEOF
13432
13433
13434{
13435  echo "cat >conf$$subs.awk <<_ACEOF" &&
13436  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13437  echo "_ACEOF"
13438} >conf$$subs.sh ||
13439  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13440ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13441ac_delim='%!_!# '
13442for ac_last_try in false false false false false :; do
13443  . ./conf$$subs.sh ||
13444    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13445
13446  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13447  if test $ac_delim_n = $ac_delim_num; then
13448    break
13449  elif $ac_last_try; then
13450    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13451  else
13452    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13453  fi
13454done
13455rm -f conf$$subs.sh
13456
13457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13458cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13459_ACEOF
13460sed -n '
13461h
13462s/^/S["/; s/!.*/"]=/
13463p
13464g
13465s/^[^!]*!//
13466:repl
13467t repl
13468s/'"$ac_delim"'$//
13469t delim
13470:nl
13471h
13472s/\(.\{148\}\)..*/\1/
13473t more1
13474s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13475p
13476n
13477b repl
13478:more1
13479s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13480p
13481g
13482s/.\{148\}//
13483t nl
13484:delim
13485h
13486s/\(.\{148\}\)..*/\1/
13487t more2
13488s/["\\]/\\&/g; s/^/"/; s/$/"/
13489p
13490b
13491:more2
13492s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13493p
13494g
13495s/.\{148\}//
13496t delim
13497' <conf$$subs.awk | sed '
13498/^[^""]/{
13499  N
13500  s/\n//
13501}
13502' >>$CONFIG_STATUS || ac_write_fail=1
13503rm -f conf$$subs.awk
13504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13505_ACAWK
13506cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13507  for (key in S) S_is_set[key] = 1
13508  FS = ""
13509
13510}
13511{
13512  line = $ 0
13513  nfields = split(line, field, "@")
13514  substed = 0
13515  len = length(field[1])
13516  for (i = 2; i < nfields; i++) {
13517    key = field[i]
13518    keylen = length(key)
13519    if (S_is_set[key]) {
13520      value = S[key]
13521      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13522      len += length(value) + length(field[++i])
13523      substed = 1
13524    } else
13525      len += 1 + keylen
13526  }
13527
13528  print line
13529}
13530
13531_ACAWK
13532_ACEOF
13533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13534if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13535  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13536else
13537  cat
13538fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13539  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13540_ACEOF
13541
13542# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13543# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13544# trailing colons and then remove the whole line if VPATH becomes empty
13545# (actually we leave an empty line to preserve line numbers).
13546if test "x$srcdir" = x.; then
13547  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13548h
13549s///
13550s/^/:/
13551s/[	 ]*$/:/
13552s/:\$(srcdir):/:/g
13553s/:\${srcdir}:/:/g
13554s/:@srcdir@:/:/g
13555s/^:*//
13556s/:*$//
13557x
13558s/\(=[	 ]*\).*/\1/
13559G
13560s/\n//
13561s/^[^=]*=[	 ]*$//
13562}'
13563fi
13564
13565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13566fi # test -n "$CONFIG_FILES"
13567
13568# Set up the scripts for CONFIG_HEADERS section.
13569# No need to generate them if there are no CONFIG_HEADERS.
13570# This happens for instance with `./config.status Makefile'.
13571if test -n "$CONFIG_HEADERS"; then
13572cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13573BEGIN {
13574_ACEOF
13575
13576# Transform confdefs.h into an awk script `defines.awk', embedded as
13577# here-document in config.status, that substitutes the proper values into
13578# config.h.in to produce config.h.
13579
13580# Create a delimiter string that does not exist in confdefs.h, to ease
13581# handling of long lines.
13582ac_delim='%!_!# '
13583for ac_last_try in false false :; do
13584  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13585  if test -z "$ac_tt"; then
13586    break
13587  elif $ac_last_try; then
13588    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13589  else
13590    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13591  fi
13592done
13593
13594# For the awk script, D is an array of macro values keyed by name,
13595# likewise P contains macro parameters if any.  Preserve backslash
13596# newline sequences.
13597
13598ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13599sed -n '
13600s/.\{148\}/&'"$ac_delim"'/g
13601t rset
13602:rset
13603s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13604t def
13605d
13606:def
13607s/\\$//
13608t bsnl
13609s/["\\]/\\&/g
13610s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13611D["\1"]=" \3"/p
13612s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13613d
13614:bsnl
13615s/["\\]/\\&/g
13616s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13617D["\1"]=" \3\\\\\\n"\\/p
13618t cont
13619s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13620t cont
13621d
13622:cont
13623n
13624s/.\{148\}/&'"$ac_delim"'/g
13625t clear
13626:clear
13627s/\\$//
13628t bsnlc
13629s/["\\]/\\&/g; s/^/"/; s/$/"/p
13630d
13631:bsnlc
13632s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13633b cont
13634' <confdefs.h | sed '
13635s/'"$ac_delim"'/"\\\
13636"/g' >>$CONFIG_STATUS || ac_write_fail=1
13637
13638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13639  for (key in D) D_is_set[key] = 1
13640  FS = ""
13641}
13642/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13643  line = \$ 0
13644  split(line, arg, " ")
13645  if (arg[1] == "#") {
13646    defundef = arg[2]
13647    mac1 = arg[3]
13648  } else {
13649    defundef = substr(arg[1], 2)
13650    mac1 = arg[2]
13651  }
13652  split(mac1, mac2, "(") #)
13653  macro = mac2[1]
13654  prefix = substr(line, 1, index(line, defundef) - 1)
13655  if (D_is_set[macro]) {
13656    # Preserve the white space surrounding the "#".
13657    print prefix "define", macro P[macro] D[macro]
13658    next
13659  } else {
13660    # Replace #undef with comments.  This is necessary, for example,
13661    # in the case of _POSIX_SOURCE, which is predefined and required
13662    # on some systems where configure will not decide to define it.
13663    if (defundef == "undef") {
13664      print "/*", prefix defundef, macro, "*/"
13665      next
13666    }
13667  }
13668}
13669{ print }
13670_ACAWK
13671_ACEOF
13672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13673  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13674fi # test -n "$CONFIG_HEADERS"
13675
13676
13677eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13678shift
13679for ac_tag
13680do
13681  case $ac_tag in
13682  :[FHLC]) ac_mode=$ac_tag; continue;;
13683  esac
13684  case $ac_mode$ac_tag in
13685  :[FHL]*:*);;
13686  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13687  :[FH]-) ac_tag=-:-;;
13688  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13689  esac
13690  ac_save_IFS=$IFS
13691  IFS=:
13692  set x $ac_tag
13693  IFS=$ac_save_IFS
13694  shift
13695  ac_file=$1
13696  shift
13697
13698  case $ac_mode in
13699  :L) ac_source=$1;;
13700  :[FH])
13701    ac_file_inputs=
13702    for ac_f
13703    do
13704      case $ac_f in
13705      -) ac_f="$ac_tmp/stdin";;
13706      *) # Look for the file first in the build tree, then in the source tree
13707	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13708	 # because $ac_f cannot contain `:'.
13709	 test -f "$ac_f" ||
13710	   case $ac_f in
13711	   [\\/$]*) false;;
13712	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13713	   esac ||
13714	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13715      esac
13716      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13717      as_fn_append ac_file_inputs " '$ac_f'"
13718    done
13719
13720    # Let's still pretend it is `configure' which instantiates (i.e., don't
13721    # use $as_me), people would be surprised to read:
13722    #    /* config.h.  Generated by config.status.  */
13723    configure_input='Generated from '`
13724	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13725	`' by configure.'
13726    if test x"$ac_file" != x-; then
13727      configure_input="$ac_file.  $configure_input"
13728      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13729$as_echo "$as_me: creating $ac_file" >&6;}
13730    fi
13731    # Neutralize special characters interpreted by sed in replacement strings.
13732    case $configure_input in #(
13733    *\&* | *\|* | *\\* )
13734       ac_sed_conf_input=`$as_echo "$configure_input" |
13735       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13736    *) ac_sed_conf_input=$configure_input;;
13737    esac
13738
13739    case $ac_tag in
13740    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13741      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13742    esac
13743    ;;
13744  esac
13745
13746  ac_dir=`$as_dirname -- "$ac_file" ||
13747$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13748	 X"$ac_file" : 'X\(//\)[^/]' \| \
13749	 X"$ac_file" : 'X\(//\)$' \| \
13750	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13751$as_echo X"$ac_file" |
13752    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13753	    s//\1/
13754	    q
13755	  }
13756	  /^X\(\/\/\)[^/].*/{
13757	    s//\1/
13758	    q
13759	  }
13760	  /^X\(\/\/\)$/{
13761	    s//\1/
13762	    q
13763	  }
13764	  /^X\(\/\).*/{
13765	    s//\1/
13766	    q
13767	  }
13768	  s/.*/./; q'`
13769  as_dir="$ac_dir"; as_fn_mkdir_p
13770  ac_builddir=.
13771
13772case "$ac_dir" in
13773.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13774*)
13775  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13776  # A ".." for each directory in $ac_dir_suffix.
13777  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13778  case $ac_top_builddir_sub in
13779  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13780  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13781  esac ;;
13782esac
13783ac_abs_top_builddir=$ac_pwd
13784ac_abs_builddir=$ac_pwd$ac_dir_suffix
13785# for backward compatibility:
13786ac_top_builddir=$ac_top_build_prefix
13787
13788case $srcdir in
13789  .)  # We are building in place.
13790    ac_srcdir=.
13791    ac_top_srcdir=$ac_top_builddir_sub
13792    ac_abs_top_srcdir=$ac_pwd ;;
13793  [\\/]* | ?:[\\/]* )  # Absolute name.
13794    ac_srcdir=$srcdir$ac_dir_suffix;
13795    ac_top_srcdir=$srcdir
13796    ac_abs_top_srcdir=$srcdir ;;
13797  *) # Relative name.
13798    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13799    ac_top_srcdir=$ac_top_build_prefix$srcdir
13800    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13801esac
13802ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13803
13804
13805  case $ac_mode in
13806  :F)
13807  #
13808  # CONFIG_FILE
13809  #
13810
13811  case $INSTALL in
13812  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13813  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13814  esac
13815  ac_MKDIR_P=$MKDIR_P
13816  case $MKDIR_P in
13817  [\\/$]* | ?:[\\/]* ) ;;
13818  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13819  esac
13820_ACEOF
13821
13822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13823# If the template does not know about datarootdir, expand it.
13824# FIXME: This hack should be removed a few years after 2.60.
13825ac_datarootdir_hack=; ac_datarootdir_seen=
13826ac_sed_dataroot='
13827/datarootdir/ {
13828  p
13829  q
13830}
13831/@datadir@/p
13832/@docdir@/p
13833/@infodir@/p
13834/@localedir@/p
13835/@mandir@/p'
13836case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13837*datarootdir*) ac_datarootdir_seen=yes;;
13838*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13839  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13840$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13841_ACEOF
13842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13843  ac_datarootdir_hack='
13844  s&@datadir@&$datadir&g
13845  s&@docdir@&$docdir&g
13846  s&@infodir@&$infodir&g
13847  s&@localedir@&$localedir&g
13848  s&@mandir@&$mandir&g
13849  s&\\\${datarootdir}&$datarootdir&g' ;;
13850esac
13851_ACEOF
13852
13853# Neutralize VPATH when `$srcdir' = `.'.
13854# Shell code in configure.ac might set extrasub.
13855# FIXME: do we really want to maintain this feature?
13856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13857ac_sed_extra="$ac_vpsub
13858$extrasub
13859_ACEOF
13860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13861:t
13862/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13863s|@configure_input@|$ac_sed_conf_input|;t t
13864s&@top_builddir@&$ac_top_builddir_sub&;t t
13865s&@top_build_prefix@&$ac_top_build_prefix&;t t
13866s&@srcdir@&$ac_srcdir&;t t
13867s&@abs_srcdir@&$ac_abs_srcdir&;t t
13868s&@top_srcdir@&$ac_top_srcdir&;t t
13869s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13870s&@builddir@&$ac_builddir&;t t
13871s&@abs_builddir@&$ac_abs_builddir&;t t
13872s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13873s&@INSTALL@&$ac_INSTALL&;t t
13874s&@MKDIR_P@&$ac_MKDIR_P&;t t
13875$ac_datarootdir_hack
13876"
13877eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13878  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13879
13880test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13881  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13882  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13883      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13884  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13885which seems to be undefined.  Please make sure it is defined" >&5
13886$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13887which seems to be undefined.  Please make sure it is defined" >&2;}
13888
13889  rm -f "$ac_tmp/stdin"
13890  case $ac_file in
13891  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13892  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13893  esac \
13894  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13895 ;;
13896  :H)
13897  #
13898  # CONFIG_HEADER
13899  #
13900  if test x"$ac_file" != x-; then
13901    {
13902      $as_echo "/* $configure_input  */" \
13903      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13904    } >"$ac_tmp/config.h" \
13905      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13906    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13907      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13908$as_echo "$as_me: $ac_file is unchanged" >&6;}
13909    else
13910      rm -f "$ac_file"
13911      mv "$ac_tmp/config.h" "$ac_file" \
13912	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13913    fi
13914  else
13915    $as_echo "/* $configure_input  */" \
13916      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13917      || as_fn_error $? "could not create -" "$LINENO" 5
13918  fi
13919# Compute "$ac_file"'s index in $config_headers.
13920_am_arg="$ac_file"
13921_am_stamp_count=1
13922for _am_header in $config_headers :; do
13923  case $_am_header in
13924    $_am_arg | $_am_arg:* )
13925      break ;;
13926    * )
13927      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13928  esac
13929done
13930echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13931$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13932	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13933	 X"$_am_arg" : 'X\(//\)$' \| \
13934	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13935$as_echo X"$_am_arg" |
13936    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13937	    s//\1/
13938	    q
13939	  }
13940	  /^X\(\/\/\)[^/].*/{
13941	    s//\1/
13942	    q
13943	  }
13944	  /^X\(\/\/\)$/{
13945	    s//\1/
13946	    q
13947	  }
13948	  /^X\(\/\).*/{
13949	    s//\1/
13950	    q
13951	  }
13952	  s/.*/./; q'`/stamp-h$_am_stamp_count
13953 ;;
13954
13955  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13956$as_echo "$as_me: executing $ac_file commands" >&6;}
13957 ;;
13958  esac
13959
13960
13961  case $ac_file$ac_mode in
13962    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13963  # Older Autoconf quotes --file arguments for eval, but not when files
13964  # are listed without --file.  Let's play safe and only enable the eval
13965  # if we detect the quoting.
13966  case $CONFIG_FILES in
13967  *\'*) eval set x "$CONFIG_FILES" ;;
13968  *)   set x $CONFIG_FILES ;;
13969  esac
13970  shift
13971  for mf
13972  do
13973    # Strip MF so we end up with the name of the file.
13974    mf=`echo "$mf" | sed -e 's/:.*$//'`
13975    # Check whether this is an Automake generated Makefile or not.
13976    # We used to match only the files named 'Makefile.in', but
13977    # some people rename them; so instead we look at the file content.
13978    # Grep'ing the first line is not enough: some people post-process
13979    # each Makefile.in and add a new line on top of each file to say so.
13980    # Grep'ing the whole file is not good either: AIX grep has a line
13981    # limit of 2048, but all sed's we know have understand at least 4000.
13982    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13983      dirpart=`$as_dirname -- "$mf" ||
13984$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13985	 X"$mf" : 'X\(//\)[^/]' \| \
13986	 X"$mf" : 'X\(//\)$' \| \
13987	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13988$as_echo X"$mf" |
13989    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13990	    s//\1/
13991	    q
13992	  }
13993	  /^X\(\/\/\)[^/].*/{
13994	    s//\1/
13995	    q
13996	  }
13997	  /^X\(\/\/\)$/{
13998	    s//\1/
13999	    q
14000	  }
14001	  /^X\(\/\).*/{
14002	    s//\1/
14003	    q
14004	  }
14005	  s/.*/./; q'`
14006    else
14007      continue
14008    fi
14009    # Extract the definition of DEPDIR, am__include, and am__quote
14010    # from the Makefile without running 'make'.
14011    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14012    test -z "$DEPDIR" && continue
14013    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14014    test -z "$am__include" && continue
14015    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14016    # Find all dependency output files, they are included files with
14017    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14018    # simplest approach to changing $(DEPDIR) to its actual value in the
14019    # expansion.
14020    for file in `sed -n "
14021      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14022	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14023      # Make sure the directory exists.
14024      test -f "$dirpart/$file" && continue
14025      fdir=`$as_dirname -- "$file" ||
14026$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14027	 X"$file" : 'X\(//\)[^/]' \| \
14028	 X"$file" : 'X\(//\)$' \| \
14029	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14030$as_echo X"$file" |
14031    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14032	    s//\1/
14033	    q
14034	  }
14035	  /^X\(\/\/\)[^/].*/{
14036	    s//\1/
14037	    q
14038	  }
14039	  /^X\(\/\/\)$/{
14040	    s//\1/
14041	    q
14042	  }
14043	  /^X\(\/\).*/{
14044	    s//\1/
14045	    q
14046	  }
14047	  s/.*/./; q'`
14048      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14049      # echo "creating $dirpart/$file"
14050      echo '# dummy' > "$dirpart/$file"
14051    done
14052  done
14053}
14054 ;;
14055    "libtool":C)
14056
14057    # See if we are running on zsh, and set the options that allow our
14058    # commands through without removal of \ escapes.
14059    if test -n "${ZSH_VERSION+set}"; then
14060      setopt NO_GLOB_SUBST
14061    fi
14062
14063    cfgfile=${ofile}T
14064    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14065    $RM "$cfgfile"
14066
14067    cat <<_LT_EOF >> "$cfgfile"
14068#! $SHELL
14069# Generated automatically by $as_me ($PACKAGE) $VERSION
14070# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14071
14072# Provide generalized library-building support services.
14073# Written by Gordon Matzigkeit, 1996
14074
14075# Copyright (C) 2014 Free Software Foundation, Inc.
14076# This is free software; see the source for copying conditions.  There is NO
14077# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14078
14079# GNU Libtool is free software; you can redistribute it and/or modify
14080# it under the terms of the GNU General Public License as published by
14081# the Free Software Foundation; either version 2 of of the License, or
14082# (at your option) any later version.
14083#
14084# As a special exception to the GNU General Public License, if you
14085# distribute this file as part of a program or library that is built
14086# using GNU Libtool, you may include this file under the  same
14087# distribution terms that you use for the rest of that program.
14088#
14089# GNU Libtool is distributed in the hope that it will be useful, but
14090# WITHOUT ANY WARRANTY; without even the implied warranty of
14091# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14092# GNU General Public License for more details.
14093#
14094# You should have received a copy of the GNU General Public License
14095# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14096
14097
14098# The names of the tagged configurations supported by this script.
14099available_tags=''
14100
14101# Configured defaults for sys_lib_dlsearch_path munging.
14102: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14103
14104# ### BEGIN LIBTOOL CONFIG
14105
14106# Which release of libtool.m4 was used?
14107macro_version=$macro_version
14108macro_revision=$macro_revision
14109
14110# Whether or not to build shared libraries.
14111build_libtool_libs=$enable_shared
14112
14113# Whether or not to build static libraries.
14114build_old_libs=$enable_static
14115
14116# What type of objects to build.
14117pic_mode=$pic_mode
14118
14119# Whether or not to optimize for fast installation.
14120fast_install=$enable_fast_install
14121
14122# Shared archive member basename,for filename based shared library versioning on AIX.
14123shared_archive_member_spec=$shared_archive_member_spec
14124
14125# Shell to use when invoking shell scripts.
14126SHELL=$lt_SHELL
14127
14128# An echo program that protects backslashes.
14129ECHO=$lt_ECHO
14130
14131# The PATH separator for the build system.
14132PATH_SEPARATOR=$lt_PATH_SEPARATOR
14133
14134# The host system.
14135host_alias=$host_alias
14136host=$host
14137host_os=$host_os
14138
14139# The build system.
14140build_alias=$build_alias
14141build=$build
14142build_os=$build_os
14143
14144# A sed program that does not truncate output.
14145SED=$lt_SED
14146
14147# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14148Xsed="\$SED -e 1s/^X//"
14149
14150# A grep program that handles long lines.
14151GREP=$lt_GREP
14152
14153# An ERE matcher.
14154EGREP=$lt_EGREP
14155
14156# A literal string matcher.
14157FGREP=$lt_FGREP
14158
14159# A BSD- or MS-compatible name lister.
14160NM=$lt_NM
14161
14162# Whether we need soft or hard links.
14163LN_S=$lt_LN_S
14164
14165# What is the maximum length of a command?
14166max_cmd_len=$max_cmd_len
14167
14168# Object file suffix (normally "o").
14169objext=$ac_objext
14170
14171# Executable file suffix (normally "").
14172exeext=$exeext
14173
14174# whether the shell understands "unset".
14175lt_unset=$lt_unset
14176
14177# turn spaces into newlines.
14178SP2NL=$lt_lt_SP2NL
14179
14180# turn newlines into spaces.
14181NL2SP=$lt_lt_NL2SP
14182
14183# convert \$build file names to \$host format.
14184to_host_file_cmd=$lt_cv_to_host_file_cmd
14185
14186# convert \$build files to toolchain format.
14187to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14188
14189# An object symbol dumper.
14190OBJDUMP=$lt_OBJDUMP
14191
14192# Method to check whether dependent libraries are shared objects.
14193deplibs_check_method=$lt_deplibs_check_method
14194
14195# Command to use when deplibs_check_method = "file_magic".
14196file_magic_cmd=$lt_file_magic_cmd
14197
14198# How to find potential files when deplibs_check_method = "file_magic".
14199file_magic_glob=$lt_file_magic_glob
14200
14201# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14202want_nocaseglob=$lt_want_nocaseglob
14203
14204# DLL creation program.
14205DLLTOOL=$lt_DLLTOOL
14206
14207# Command to associate shared and link libraries.
14208sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14209
14210# The archiver.
14211AR=$lt_AR
14212
14213# Flags to create an archive.
14214AR_FLAGS=$lt_AR_FLAGS
14215
14216# How to feed a file listing to the archiver.
14217archiver_list_spec=$lt_archiver_list_spec
14218
14219# A symbol stripping program.
14220STRIP=$lt_STRIP
14221
14222# Commands used to install an old-style archive.
14223RANLIB=$lt_RANLIB
14224old_postinstall_cmds=$lt_old_postinstall_cmds
14225old_postuninstall_cmds=$lt_old_postuninstall_cmds
14226
14227# Whether to use a lock for old archive extraction.
14228lock_old_archive_extraction=$lock_old_archive_extraction
14229
14230# A C compiler.
14231LTCC=$lt_CC
14232
14233# LTCC compiler flags.
14234LTCFLAGS=$lt_CFLAGS
14235
14236# Take the output of nm and produce a listing of raw symbols and C names.
14237global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14238
14239# Transform the output of nm in a proper C declaration.
14240global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14241
14242# Transform the output of nm into a list of symbols to manually relocate.
14243global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14244
14245# Transform the output of nm in a C name address pair.
14246global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14247
14248# Transform the output of nm in a C name address pair when lib prefix is needed.
14249global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14250
14251# The name lister interface.
14252nm_interface=$lt_lt_cv_nm_interface
14253
14254# Specify filename containing input files for \$NM.
14255nm_file_list_spec=$lt_nm_file_list_spec
14256
14257# The root where to search for dependent libraries,and where our libraries should be installed.
14258lt_sysroot=$lt_sysroot
14259
14260# Command to truncate a binary pipe.
14261lt_truncate_bin=$lt_lt_cv_truncate_bin
14262
14263# The name of the directory that contains temporary libtool files.
14264objdir=$objdir
14265
14266# Used to examine libraries when file_magic_cmd begins with "file".
14267MAGIC_CMD=$MAGIC_CMD
14268
14269# Must we lock files when doing compilation?
14270need_locks=$lt_need_locks
14271
14272# Manifest tool.
14273MANIFEST_TOOL=$lt_MANIFEST_TOOL
14274
14275# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14276DSYMUTIL=$lt_DSYMUTIL
14277
14278# Tool to change global to local symbols on Mac OS X.
14279NMEDIT=$lt_NMEDIT
14280
14281# Tool to manipulate fat objects and archives on Mac OS X.
14282LIPO=$lt_LIPO
14283
14284# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14285OTOOL=$lt_OTOOL
14286
14287# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14288OTOOL64=$lt_OTOOL64
14289
14290# Old archive suffix (normally "a").
14291libext=$libext
14292
14293# Shared library suffix (normally ".so").
14294shrext_cmds=$lt_shrext_cmds
14295
14296# The commands to extract the exported symbol list from a shared archive.
14297extract_expsyms_cmds=$lt_extract_expsyms_cmds
14298
14299# Variables whose values should be saved in libtool wrapper scripts and
14300# restored at link time.
14301variables_saved_for_relink=$lt_variables_saved_for_relink
14302
14303# Do we need the "lib" prefix for modules?
14304need_lib_prefix=$need_lib_prefix
14305
14306# Do we need a version for libraries?
14307need_version=$need_version
14308
14309# Library versioning type.
14310version_type=$version_type
14311
14312# Shared library runtime path variable.
14313runpath_var=$runpath_var
14314
14315# Shared library path variable.
14316shlibpath_var=$shlibpath_var
14317
14318# Is shlibpath searched before the hard-coded library search path?
14319shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14320
14321# Format of library name prefix.
14322libname_spec=$lt_libname_spec
14323
14324# List of archive names.  First name is the real one, the rest are links.
14325# The last name is the one that the linker finds with -lNAME
14326library_names_spec=$lt_library_names_spec
14327
14328# The coded name of the library, if different from the real name.
14329soname_spec=$lt_soname_spec
14330
14331# Permission mode override for installation of shared libraries.
14332install_override_mode=$lt_install_override_mode
14333
14334# Command to use after installation of a shared archive.
14335postinstall_cmds=$lt_postinstall_cmds
14336
14337# Command to use after uninstallation of a shared archive.
14338postuninstall_cmds=$lt_postuninstall_cmds
14339
14340# Commands used to finish a libtool library installation in a directory.
14341finish_cmds=$lt_finish_cmds
14342
14343# As "finish_cmds", except a single script fragment to be evaled but
14344# not shown.
14345finish_eval=$lt_finish_eval
14346
14347# Whether we should hardcode library paths into libraries.
14348hardcode_into_libs=$hardcode_into_libs
14349
14350# Compile-time system search path for libraries.
14351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14352
14353# Detected run-time system search path for libraries.
14354sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14355
14356# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14357configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14358
14359# Whether dlopen is supported.
14360dlopen_support=$enable_dlopen
14361
14362# Whether dlopen of programs is supported.
14363dlopen_self=$enable_dlopen_self
14364
14365# Whether dlopen of statically linked programs is supported.
14366dlopen_self_static=$enable_dlopen_self_static
14367
14368# Commands to strip libraries.
14369old_striplib=$lt_old_striplib
14370striplib=$lt_striplib
14371
14372
14373# The linker used to build libraries.
14374LD=$lt_LD
14375
14376# How to create reloadable object files.
14377reload_flag=$lt_reload_flag
14378reload_cmds=$lt_reload_cmds
14379
14380# Commands used to build an old-style archive.
14381old_archive_cmds=$lt_old_archive_cmds
14382
14383# A language specific compiler.
14384CC=$lt_compiler
14385
14386# Is the compiler the GNU compiler?
14387with_gcc=$GCC
14388
14389# Compiler flag to turn off builtin functions.
14390no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14391
14392# Additional compiler flags for building library objects.
14393pic_flag=$lt_lt_prog_compiler_pic
14394
14395# How to pass a linker flag through the compiler.
14396wl=$lt_lt_prog_compiler_wl
14397
14398# Compiler flag to prevent dynamic linking.
14399link_static_flag=$lt_lt_prog_compiler_static
14400
14401# Does compiler simultaneously support -c and -o options?
14402compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14403
14404# Whether or not to add -lc for building shared libraries.
14405build_libtool_need_lc=$archive_cmds_need_lc
14406
14407# Whether or not to disallow shared libs when runtime libs are static.
14408allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14409
14410# Compiler flag to allow reflexive dlopens.
14411export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14412
14413# Compiler flag to generate shared objects directly from archives.
14414whole_archive_flag_spec=$lt_whole_archive_flag_spec
14415
14416# Whether the compiler copes with passing no objects directly.
14417compiler_needs_object=$lt_compiler_needs_object
14418
14419# Create an old-style archive from a shared archive.
14420old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14421
14422# Create a temporary old-style archive to link instead of a shared archive.
14423old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14424
14425# Commands used to build a shared archive.
14426archive_cmds=$lt_archive_cmds
14427archive_expsym_cmds=$lt_archive_expsym_cmds
14428
14429# Commands used to build a loadable module if different from building
14430# a shared archive.
14431module_cmds=$lt_module_cmds
14432module_expsym_cmds=$lt_module_expsym_cmds
14433
14434# Whether we are building with GNU ld or not.
14435with_gnu_ld=$lt_with_gnu_ld
14436
14437# Flag that allows shared libraries with undefined symbols to be built.
14438allow_undefined_flag=$lt_allow_undefined_flag
14439
14440# Flag that enforces no undefined symbols.
14441no_undefined_flag=$lt_no_undefined_flag
14442
14443# Flag to hardcode \$libdir into a binary during linking.
14444# This must work even if \$libdir does not exist
14445hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14446
14447# Whether we need a single "-rpath" flag with a separated argument.
14448hardcode_libdir_separator=$lt_hardcode_libdir_separator
14449
14450# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14451# DIR into the resulting binary.
14452hardcode_direct=$hardcode_direct
14453
14454# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14455# DIR into the resulting binary and the resulting library dependency is
14456# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14457# library is relocated.
14458hardcode_direct_absolute=$hardcode_direct_absolute
14459
14460# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14461# into the resulting binary.
14462hardcode_minus_L=$hardcode_minus_L
14463
14464# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14465# into the resulting binary.
14466hardcode_shlibpath_var=$hardcode_shlibpath_var
14467
14468# Set to "yes" if building a shared library automatically hardcodes DIR
14469# into the library and all subsequent libraries and executables linked
14470# against it.
14471hardcode_automatic=$hardcode_automatic
14472
14473# Set to yes if linker adds runtime paths of dependent libraries
14474# to runtime path list.
14475inherit_rpath=$inherit_rpath
14476
14477# Whether libtool must link a program against all its dependency libraries.
14478link_all_deplibs=$link_all_deplibs
14479
14480# Set to "yes" if exported symbols are required.
14481always_export_symbols=$always_export_symbols
14482
14483# The commands to list exported symbols.
14484export_symbols_cmds=$lt_export_symbols_cmds
14485
14486# Symbols that should not be listed in the preloaded symbols.
14487exclude_expsyms=$lt_exclude_expsyms
14488
14489# Symbols that must always be exported.
14490include_expsyms=$lt_include_expsyms
14491
14492# Commands necessary for linking programs (against libraries) with templates.
14493prelink_cmds=$lt_prelink_cmds
14494
14495# Commands necessary for finishing linking programs.
14496postlink_cmds=$lt_postlink_cmds
14497
14498# Specify filename containing input files.
14499file_list_spec=$lt_file_list_spec
14500
14501# How to hardcode a shared library path into an executable.
14502hardcode_action=$hardcode_action
14503
14504# ### END LIBTOOL CONFIG
14505
14506_LT_EOF
14507
14508    cat <<'_LT_EOF' >> "$cfgfile"
14509
14510# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14511
14512# func_munge_path_list VARIABLE PATH
14513# -----------------------------------
14514# VARIABLE is name of variable containing _space_ separated list of
14515# directories to be munged by the contents of PATH, which is string
14516# having a format:
14517# "DIR[:DIR]:"
14518#       string "DIR[ DIR]" will be prepended to VARIABLE
14519# ":DIR[:DIR]"
14520#       string "DIR[ DIR]" will be appended to VARIABLE
14521# "DIRP[:DIRP]::[DIRA:]DIRA"
14522#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14523#       "DIRA[ DIRA]" will be appended to VARIABLE
14524# "DIR[:DIR]"
14525#       VARIABLE will be replaced by "DIR[ DIR]"
14526func_munge_path_list ()
14527{
14528    case x$2 in
14529    x)
14530        ;;
14531    *:)
14532        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14533        ;;
14534    x:*)
14535        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14536        ;;
14537    *::*)
14538        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14539        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14540        ;;
14541    *)
14542        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14543        ;;
14544    esac
14545}
14546
14547
14548# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14549func_cc_basename ()
14550{
14551    for cc_temp in $*""; do
14552      case $cc_temp in
14553        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14554        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14555        \-*) ;;
14556        *) break;;
14557      esac
14558    done
14559    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14560}
14561
14562
14563# ### END FUNCTIONS SHARED WITH CONFIGURE
14564
14565_LT_EOF
14566
14567  case $host_os in
14568  aix3*)
14569    cat <<\_LT_EOF >> "$cfgfile"
14570# AIX sometimes has problems with the GCC collect2 program.  For some
14571# reason, if we set the COLLECT_NAMES environment variable, the problems
14572# vanish in a puff of smoke.
14573if test set != "${COLLECT_NAMES+set}"; then
14574  COLLECT_NAMES=
14575  export COLLECT_NAMES
14576fi
14577_LT_EOF
14578    ;;
14579  esac
14580
14581
14582ltmain=$ac_aux_dir/ltmain.sh
14583
14584
14585  # We use sed instead of cat because bash on DJGPP gets confused if
14586  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14587  # text mode, it properly converts lines to CR/LF.  This bash problem
14588  # is reportedly fixed, but why not run on old versions too?
14589  sed '$q' "$ltmain" >> "$cfgfile" \
14590     || (rm -f "$cfgfile"; exit 1)
14591
14592   mv -f "$cfgfile" "$ofile" ||
14593    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14594  chmod +x "$ofile"
14595
14596 ;;
14597
14598  esac
14599done # for ac_tag
14600
14601
14602as_fn_exit 0
14603_ACEOF
14604ac_clean_files=$ac_clean_files_save
14605
14606test $ac_write_fail = 0 ||
14607  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14608
14609
14610# configure is writing to config.log, and then calls config.status.
14611# config.status does its own redirection, appending to config.log.
14612# Unfortunately, on DOS this fails, as config.log is still kept open
14613# by configure, so config.status won't be able to write to it; its
14614# output is simply discarded.  So we exec the FD to /dev/null,
14615# effectively closing config.log, so it can be properly (re)opened and
14616# appended to by config.status.  When coming back to configure, we
14617# need to make the FD available again.
14618if test "$no_create" != yes; then
14619  ac_cs_success=:
14620  ac_config_status_args=
14621  test "$silent" = yes &&
14622    ac_config_status_args="$ac_config_status_args --quiet"
14623  exec 5>/dev/null
14624  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14625  exec 5>>config.log
14626  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14627  # would make configure fail if this is the last instruction.
14628  $ac_cs_success || as_fn_exit 1
14629fi
14630if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14631  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14632$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14633fi
14634
14635