1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for json-c 0.12.
4#
5# Report bugs to <json-c@googlegroups.com>.
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
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
278$0: json-c@googlegroups.com about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='json-c'
592PACKAGE_TARNAME='json-c'
593PACKAGE_VERSION='0.12'
594PACKAGE_STRING='json-c 0.12'
595PACKAGE_BUGREPORT='json-c@googlegroups.com'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637JSON_BSYMBOLIC_LDFLAGS
638OTOOL64
639OTOOL
640LIPO
641NMEDIT
642DSYMUTIL
643MANIFEST_TOOL
644RANLIB
645ac_ct_AR
646AR
647DLLTOOL
648OBJDUMP
649LN_S
650NM
651ac_ct_DUMPBIN
652DUMPBIN
653LD
654FGREP
655SED
656host_os
657host_vendor
658host_cpu
659host
660build_os
661build_vendor
662build_cpu
663build
664LIBTOOL
665LIBOBJS
666EGREP
667GREP
668CPP
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__quote
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686MAINT
687MAINTAINER_MODE_FALSE
688MAINTAINER_MODE_TRUE
689AM_BACKSLASH
690AM_DEFAULT_VERBOSITY
691AM_DEFAULT_V
692AM_V
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
754ac_subst_files=''
755ac_user_opts='
756enable_option_checking
757enable_silent_rules
758enable_maintainer_mode
759enable_rdrand
760enable_dependency_tracking
761enable_shared
762enable_static
763with_pic
764enable_fast_install
765with_gnu_ld
766with_sysroot
767enable_libtool_lock
768enable_Bsymbolic
769'
770      ac_precious_vars='build_alias
771host_alias
772target_alias
773CC
774CFLAGS
775LDFLAGS
776LIBS
777CPPFLAGS
778CPP'
779
780
781# Initialize some variables set by options.
782ac_init_help=
783ac_init_version=false
784ac_unrecognized_opts=
785ac_unrecognized_sep=
786# The variables have the same names as the options, with
787# dashes changed to underlines.
788cache_file=/dev/null
789exec_prefix=NONE
790no_create=
791no_recursion=
792prefix=NONE
793program_prefix=NONE
794program_suffix=NONE
795program_transform_name=s,x,x,
796silent=
797site=
798srcdir=
799verbose=
800x_includes=NONE
801x_libraries=NONE
802
803# Installation directory options.
804# These are left unexpanded so users can "make install exec_prefix=/foo"
805# and all the variables that are supposed to be based on exec_prefix
806# by default will actually change.
807# Use braces instead of parens because sh, perl, etc. also accept them.
808# (The list follows the same order as the GNU Coding Standards.)
809bindir='${exec_prefix}/bin'
810sbindir='${exec_prefix}/sbin'
811libexecdir='${exec_prefix}/libexec'
812datarootdir='${prefix}/share'
813datadir='${datarootdir}'
814sysconfdir='${prefix}/etc'
815sharedstatedir='${prefix}/com'
816localstatedir='${prefix}/var'
817includedir='${prefix}/include'
818oldincludedir='/usr/include'
819docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820infodir='${datarootdir}/info'
821htmldir='${docdir}'
822dvidir='${docdir}'
823pdfdir='${docdir}'
824psdir='${docdir}'
825libdir='${exec_prefix}/lib'
826localedir='${datarootdir}/locale'
827mandir='${datarootdir}/man'
828
829ac_prev=
830ac_dashdash=
831for ac_option
832do
833  # If the previous option needs an argument, assign it.
834  if test -n "$ac_prev"; then
835    eval $ac_prev=\$ac_option
836    ac_prev=
837    continue
838  fi
839
840  case $ac_option in
841  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842  *=)   ac_optarg= ;;
843  *)    ac_optarg=yes ;;
844  esac
845
846  # Accept the important Cygnus configure options, so we can diagnose typos.
847
848  case $ac_dashdash$ac_option in
849  --)
850    ac_dashdash=yes ;;
851
852  -bindir | --bindir | --bindi | --bind | --bin | --bi)
853    ac_prev=bindir ;;
854  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855    bindir=$ac_optarg ;;
856
857  -build | --build | --buil | --bui | --bu)
858    ac_prev=build_alias ;;
859  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860    build_alias=$ac_optarg ;;
861
862  -cache-file | --cache-file | --cache-fil | --cache-fi \
863  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864    ac_prev=cache_file ;;
865  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867    cache_file=$ac_optarg ;;
868
869  --config-cache | -C)
870    cache_file=config.cache ;;
871
872  -datadir | --datadir | --datadi | --datad)
873    ac_prev=datadir ;;
874  -datadir=* | --datadir=* | --datadi=* | --datad=*)
875    datadir=$ac_optarg ;;
876
877  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878  | --dataroo | --dataro | --datar)
879    ac_prev=datarootdir ;;
880  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882    datarootdir=$ac_optarg ;;
883
884  -disable-* | --disable-*)
885    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886    # Reject names that are not valid shell variable names.
887    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888      as_fn_error $? "invalid feature name: $ac_useropt"
889    ac_useropt_orig=$ac_useropt
890    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891    case $ac_user_opts in
892      *"
893"enable_$ac_useropt"
894"*) ;;
895      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896	 ac_unrecognized_sep=', ';;
897    esac
898    eval enable_$ac_useropt=no ;;
899
900  -docdir | --docdir | --docdi | --doc | --do)
901    ac_prev=docdir ;;
902  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903    docdir=$ac_optarg ;;
904
905  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906    ac_prev=dvidir ;;
907  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908    dvidir=$ac_optarg ;;
909
910  -enable-* | --enable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: $ac_useropt"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=\$ac_optarg ;;
925
926  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928  | --exec | --exe | --ex)
929    ac_prev=exec_prefix ;;
930  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932  | --exec=* | --exe=* | --ex=*)
933    exec_prefix=$ac_optarg ;;
934
935  -gas | --gas | --ga | --g)
936    # Obsolete; use --with-gas.
937    with_gas=yes ;;
938
939  -help | --help | --hel | --he | -h)
940    ac_init_help=long ;;
941  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942    ac_init_help=recursive ;;
943  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944    ac_init_help=short ;;
945
946  -host | --host | --hos | --ho)
947    ac_prev=host_alias ;;
948  -host=* | --host=* | --hos=* | --ho=*)
949    host_alias=$ac_optarg ;;
950
951  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952    ac_prev=htmldir ;;
953  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954  | --ht=*)
955    htmldir=$ac_optarg ;;
956
957  -includedir | --includedir | --includedi | --included | --include \
958  | --includ | --inclu | --incl | --inc)
959    ac_prev=includedir ;;
960  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961  | --includ=* | --inclu=* | --incl=* | --inc=*)
962    includedir=$ac_optarg ;;
963
964  -infodir | --infodir | --infodi | --infod | --info | --inf)
965    ac_prev=infodir ;;
966  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967    infodir=$ac_optarg ;;
968
969  -libdir | --libdir | --libdi | --libd)
970    ac_prev=libdir ;;
971  -libdir=* | --libdir=* | --libdi=* | --libd=*)
972    libdir=$ac_optarg ;;
973
974  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975  | --libexe | --libex | --libe)
976    ac_prev=libexecdir ;;
977  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978  | --libexe=* | --libex=* | --libe=*)
979    libexecdir=$ac_optarg ;;
980
981  -localedir | --localedir | --localedi | --localed | --locale)
982    ac_prev=localedir ;;
983  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984    localedir=$ac_optarg ;;
985
986  -localstatedir | --localstatedir | --localstatedi | --localstated \
987  | --localstate | --localstat | --localsta | --localst | --locals)
988    ac_prev=localstatedir ;;
989  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991    localstatedir=$ac_optarg ;;
992
993  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994    ac_prev=mandir ;;
995  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996    mandir=$ac_optarg ;;
997
998  -nfp | --nfp | --nf)
999    # Obsolete; use --without-fp.
1000    with_fp=no ;;
1001
1002  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003  | --no-cr | --no-c | -n)
1004    no_create=yes ;;
1005
1006  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008    no_recursion=yes ;;
1009
1010  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012  | --oldin | --oldi | --old | --ol | --o)
1013    ac_prev=oldincludedir ;;
1014  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017    oldincludedir=$ac_optarg ;;
1018
1019  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020    ac_prev=prefix ;;
1021  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022    prefix=$ac_optarg ;;
1023
1024  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025  | --program-pre | --program-pr | --program-p)
1026    ac_prev=program_prefix ;;
1027  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029    program_prefix=$ac_optarg ;;
1030
1031  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032  | --program-suf | --program-su | --program-s)
1033    ac_prev=program_suffix ;;
1034  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036    program_suffix=$ac_optarg ;;
1037
1038  -program-transform-name | --program-transform-name \
1039  | --program-transform-nam | --program-transform-na \
1040  | --program-transform-n | --program-transform- \
1041  | --program-transform | --program-transfor \
1042  | --program-transfo | --program-transf \
1043  | --program-trans | --program-tran \
1044  | --progr-tra | --program-tr | --program-t)
1045    ac_prev=program_transform_name ;;
1046  -program-transform-name=* | --program-transform-name=* \
1047  | --program-transform-nam=* | --program-transform-na=* \
1048  | --program-transform-n=* | --program-transform-=* \
1049  | --program-transform=* | --program-transfor=* \
1050  | --program-transfo=* | --program-transf=* \
1051  | --program-trans=* | --program-tran=* \
1052  | --progr-tra=* | --program-tr=* | --program-t=*)
1053    program_transform_name=$ac_optarg ;;
1054
1055  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056    ac_prev=pdfdir ;;
1057  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058    pdfdir=$ac_optarg ;;
1059
1060  -psdir | --psdir | --psdi | --psd | --ps)
1061    ac_prev=psdir ;;
1062  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063    psdir=$ac_optarg ;;
1064
1065  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066  | -silent | --silent | --silen | --sile | --sil)
1067    silent=yes ;;
1068
1069  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070    ac_prev=sbindir ;;
1071  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072  | --sbi=* | --sb=*)
1073    sbindir=$ac_optarg ;;
1074
1075  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077  | --sharedst | --shareds | --shared | --share | --shar \
1078  | --sha | --sh)
1079    ac_prev=sharedstatedir ;;
1080  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083  | --sha=* | --sh=*)
1084    sharedstatedir=$ac_optarg ;;
1085
1086  -site | --site | --sit)
1087    ac_prev=site ;;
1088  -site=* | --site=* | --sit=*)
1089    site=$ac_optarg ;;
1090
1091  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092    ac_prev=srcdir ;;
1093  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094    srcdir=$ac_optarg ;;
1095
1096  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097  | --syscon | --sysco | --sysc | --sys | --sy)
1098    ac_prev=sysconfdir ;;
1099  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101    sysconfdir=$ac_optarg ;;
1102
1103  -target | --target | --targe | --targ | --tar | --ta | --t)
1104    ac_prev=target_alias ;;
1105  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106    target_alias=$ac_optarg ;;
1107
1108  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109    verbose=yes ;;
1110
1111  -version | --version | --versio | --versi | --vers | -V)
1112    ac_init_version=: ;;
1113
1114  -with-* | --with-*)
1115    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116    # Reject names that are not valid shell variable names.
1117    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118      as_fn_error $? "invalid package name: $ac_useropt"
1119    ac_useropt_orig=$ac_useropt
1120    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121    case $ac_user_opts in
1122      *"
1123"with_$ac_useropt"
1124"*) ;;
1125      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126	 ac_unrecognized_sep=', ';;
1127    esac
1128    eval with_$ac_useropt=\$ac_optarg ;;
1129
1130  -without-* | --without-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=no ;;
1145
1146  --x)
1147    # Obsolete; use --with-x.
1148    with_x=yes ;;
1149
1150  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151  | --x-incl | --x-inc | --x-in | --x-i)
1152    ac_prev=x_includes ;;
1153  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155    x_includes=$ac_optarg ;;
1156
1157  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159    ac_prev=x_libraries ;;
1160  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162    x_libraries=$ac_optarg ;;
1163
1164  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165Try \`$0 --help' for more information"
1166    ;;
1167
1168  *=*)
1169    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170    # Reject names that are not valid shell variable names.
1171    case $ac_envvar in #(
1172      '' | [0-9]* | *[!_$as_cr_alnum]* )
1173      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174    esac
1175    eval $ac_envvar=\$ac_optarg
1176    export $ac_envvar ;;
1177
1178  *)
1179    # FIXME: should be removed in autoconf 3.0.
1180    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184    ;;
1185
1186  esac
1187done
1188
1189if test -n "$ac_prev"; then
1190  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191  as_fn_error $? "missing argument to $ac_option"
1192fi
1193
1194if test -n "$ac_unrecognized_opts"; then
1195  case $enable_option_checking in
1196    no) ;;
1197    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199  esac
1200fi
1201
1202# Check all directory arguments for consistency.
1203for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204		datadir sysconfdir sharedstatedir localstatedir includedir \
1205		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206		libdir localedir mandir
1207do
1208  eval ac_val=\$$ac_var
1209  # Remove trailing slashes.
1210  case $ac_val in
1211    */ )
1212      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213      eval $ac_var=\$ac_val;;
1214  esac
1215  # Be sure to have absolute directory names.
1216  case $ac_val in
1217    [\\/$]* | ?:[\\/]* )  continue;;
1218    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219  esac
1220  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232  if test "x$build_alias" = x; then
1233    cross_compiling=maybe
1234  elif test "x$build_alias" != "x$host_alias"; then
1235    cross_compiling=yes
1236  fi
1237fi
1238
1239ac_tool_prefix=
1240test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242test "$silent" = yes && exec 6>/dev/null
1243
1244
1245ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246ac_ls_di=`ls -di .` &&
1247ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248  as_fn_error $? "working directory cannot be determined"
1249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250  as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255  ac_srcdir_defaulted=yes
1256  # Try the directory containing this script, then the parent directory.
1257  ac_confdir=`$as_dirname -- "$as_myself" ||
1258$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259	 X"$as_myself" : 'X\(//\)[^/]' \| \
1260	 X"$as_myself" : 'X\(//\)$' \| \
1261	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262$as_echo X"$as_myself" |
1263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\/\)[^/].*/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\/\)$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\).*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  s/.*/./; q'`
1280  srcdir=$ac_confdir
1281  if test ! -r "$srcdir/$ac_unique_file"; then
1282    srcdir=..
1283  fi
1284else
1285  ac_srcdir_defaulted=no
1286fi
1287if test ! -r "$srcdir/$ac_unique_file"; then
1288  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290fi
1291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
1293	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294	pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297  srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307  eval ac_env_${ac_var}_value=\$${ac_var}
1308  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
1311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316  # Omit some internal or obsolete options to make the list less imposing.
1317  # This message is too long to be a string in the A/UX 3.1 sh.
1318  cat <<_ACEOF
1319\`configure' configures json-c 0.12 to adapt to many kinds of systems.
1320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329  -h, --help              display this help and exit
1330      --help=short        display options specific to this package
1331      --help=recursive    display the short help of all the included packages
1332  -V, --version           display version information and exit
1333  -q, --quiet, --silent   do not print \`checking ...' messages
1334      --cache-file=FILE   cache test results in FILE [disabled]
1335  -C, --config-cache      alias for \`--cache-file=config.cache'
1336  -n, --no-create         do not create output files
1337      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339Installation directories:
1340  --prefix=PREFIX         install architecture-independent files in PREFIX
1341                          [$ac_default_prefix]
1342  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                          [PREFIX]
1344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
1353  --bindir=DIR            user executables [EPREFIX/bin]
1354  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355  --libexecdir=DIR        program executables [EPREFIX/libexec]
1356  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359  --libdir=DIR            object code libraries [EPREFIX/lib]
1360  --includedir=DIR        C header files [PREFIX/include]
1361  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364  --infodir=DIR           info documentation [DATAROOTDIR/info]
1365  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366  --mandir=DIR            man documentation [DATAROOTDIR/man]
1367  --docdir=DIR            documentation root [DATAROOTDIR/doc/json-c]
1368  --htmldir=DIR           html documentation [DOCDIR]
1369  --dvidir=DIR            dvi documentation [DOCDIR]
1370  --pdfdir=DIR            pdf documentation [DOCDIR]
1371  --psdir=DIR             ps documentation [DOCDIR]
1372_ACEOF
1373
1374  cat <<\_ACEOF
1375
1376Program names:
1377  --program-prefix=PREFIX            prepend PREFIX to installed program names
1378  --program-suffix=SUFFIX            append SUFFIX to installed program names
1379  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1380
1381System types:
1382  --build=BUILD     configure for building on BUILD [guessed]
1383  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384_ACEOF
1385fi
1386
1387if test -n "$ac_init_help"; then
1388  case $ac_init_help in
1389     short | recursive ) echo "Configuration of json-c 0.12:";;
1390   esac
1391  cat <<\_ACEOF
1392
1393Optional Features:
1394  --disable-option-checking  ignore unrecognized --enable/--with options
1395  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1396  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1397  --enable-silent-rules   less verbose build output (undo: "make V=1")
1398  --disable-silent-rules  verbose build output (undo: "make V=0")
1399  --enable-maintainer-mode
1400                          enable make rules and dependencies not useful (and
1401                          sometimes confusing) to the casual installer
1402  --enable-rdrand         Enable RDRAND Hardware RNG Hash Seed generation on
1403                          supported x86/x64 platforms.
1404  --enable-dependency-tracking
1405                          do not reject slow dependency extractors
1406  --disable-dependency-tracking
1407                          speeds up one-time build
1408  --enable-shared[=PKGS]  build shared libraries [default=yes]
1409  --enable-static[=PKGS]  build static libraries [default=yes]
1410  --enable-fast-install[=PKGS]
1411                          optimize for fast installation [default=yes]
1412  --disable-libtool-lock  avoid locking (might break parallel builds)
1413  --disable-Bsymbolic     Avoid linking with -Bsymbolic-function
1414
1415Optional Packages:
1416  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1417  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1418  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1419                          both]
1420  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1421  --with-sysroot=DIR Search for dependent libraries within DIR
1422                        (or the compiler's sysroot if not specified).
1423
1424Some influential environment variables:
1425  CC          C compiler command
1426  CFLAGS      C compiler flags
1427  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1428              nonstandard directory <lib dir>
1429  LIBS        libraries to pass to the linker, e.g. -l<library>
1430  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431              you have headers in a nonstandard directory <include dir>
1432  CPP         C preprocessor
1433
1434Use these variables to override the choices made by `configure' or to help
1435it to find libraries and programs with nonstandard names/locations.
1436
1437Report bugs to <json-c@googlegroups.com>.
1438_ACEOF
1439ac_status=$?
1440fi
1441
1442if test "$ac_init_help" = "recursive"; then
1443  # If there are subdirs, report their specific --help.
1444  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445    test -d "$ac_dir" ||
1446      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447      continue
1448    ac_builddir=.
1449
1450case "$ac_dir" in
1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452*)
1453  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454  # A ".." for each directory in $ac_dir_suffix.
1455  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456  case $ac_top_builddir_sub in
1457  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459  esac ;;
1460esac
1461ac_abs_top_builddir=$ac_pwd
1462ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463# for backward compatibility:
1464ac_top_builddir=$ac_top_build_prefix
1465
1466case $srcdir in
1467  .)  # We are building in place.
1468    ac_srcdir=.
1469    ac_top_srcdir=$ac_top_builddir_sub
1470    ac_abs_top_srcdir=$ac_pwd ;;
1471  [\\/]* | ?:[\\/]* )  # Absolute name.
1472    ac_srcdir=$srcdir$ac_dir_suffix;
1473    ac_top_srcdir=$srcdir
1474    ac_abs_top_srcdir=$srcdir ;;
1475  *) # Relative name.
1476    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477    ac_top_srcdir=$ac_top_build_prefix$srcdir
1478    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479esac
1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482    cd "$ac_dir" || { ac_status=$?; continue; }
1483    # Check for guested configure.
1484    if test -f "$ac_srcdir/configure.gnu"; then
1485      echo &&
1486      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487    elif test -f "$ac_srcdir/configure"; then
1488      echo &&
1489      $SHELL "$ac_srcdir/configure" --help=recursive
1490    else
1491      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492    fi || ac_status=$?
1493    cd "$ac_pwd" || { ac_status=$?; break; }
1494  done
1495fi
1496
1497test -n "$ac_init_help" && exit $ac_status
1498if $ac_init_version; then
1499  cat <<\_ACEOF
1500json-c configure 0.12
1501generated by GNU Autoconf 2.69
1502
1503Copyright (C) 2012 Free Software Foundation, Inc.
1504This configure script is free software; the Free Software Foundation
1505gives unlimited permission to copy, distribute and modify it.
1506_ACEOF
1507  exit
1508fi
1509
1510## ------------------------ ##
1511## Autoconf initialization. ##
1512## ------------------------ ##
1513
1514# ac_fn_c_try_compile LINENO
1515# --------------------------
1516# Try to compile conftest.$ac_ext, and return whether this succeeded.
1517ac_fn_c_try_compile ()
1518{
1519  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520  rm -f conftest.$ac_objext
1521  if { { ac_try="$ac_compile"
1522case "(($ac_try" in
1523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524  *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528  (eval "$ac_compile") 2>conftest.err
1529  ac_status=$?
1530  if test -s conftest.err; then
1531    grep -v '^ *+' conftest.err >conftest.er1
1532    cat conftest.er1 >&5
1533    mv -f conftest.er1 conftest.err
1534  fi
1535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536  test $ac_status = 0; } && {
1537	 test -z "$ac_c_werror_flag" ||
1538	 test ! -s conftest.err
1539       } && test -s conftest.$ac_objext; then :
1540  ac_retval=0
1541else
1542  $as_echo "$as_me: failed program was:" >&5
1543sed 's/^/| /' conftest.$ac_ext >&5
1544
1545	ac_retval=1
1546fi
1547  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548  as_fn_set_status $ac_retval
1549
1550} # ac_fn_c_try_compile
1551
1552# ac_fn_c_try_cpp LINENO
1553# ----------------------
1554# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_cpp ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  if { { ac_try="$ac_cpp conftest.$ac_ext"
1559case "(($ac_try" in
1560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561  *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566  ac_status=$?
1567  if test -s conftest.err; then
1568    grep -v '^ *+' conftest.err >conftest.er1
1569    cat conftest.er1 >&5
1570    mv -f conftest.er1 conftest.err
1571  fi
1572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573  test $ac_status = 0; } > conftest.i && {
1574	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575	 test ! -s conftest.err
1576       }; then :
1577  ac_retval=0
1578else
1579  $as_echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1581
1582    ac_retval=1
1583fi
1584  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585  as_fn_set_status $ac_retval
1586
1587} # ac_fn_c_try_cpp
1588
1589# ac_fn_c_try_run LINENO
1590# ----------------------
1591# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1592# that executables *can* be run.
1593ac_fn_c_try_run ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  if { { ac_try="$ac_link"
1597case "(($ac_try" in
1598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599  *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603  (eval "$ac_link") 2>&5
1604  ac_status=$?
1605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1607  { { case "(($ac_try" in
1608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609  *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613  (eval "$ac_try") 2>&5
1614  ac_status=$?
1615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; }; }; then :
1617  ac_retval=0
1618else
1619  $as_echo "$as_me: program exited with status $ac_status" >&5
1620       $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623       ac_retval=$ac_status
1624fi
1625  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1626  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627  as_fn_set_status $ac_retval
1628
1629} # ac_fn_c_try_run
1630
1631# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1632# -------------------------------------------------------
1633# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1634# the include files in INCLUDES and setting the cache variable VAR
1635# accordingly.
1636ac_fn_c_check_header_mongrel ()
1637{
1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639  if eval \${$3+:} false; then :
1640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641$as_echo_n "checking for $2... " >&6; }
1642if eval \${$3+:} false; then :
1643  $as_echo_n "(cached) " >&6
1644fi
1645eval ac_res=\$$3
1646	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647$as_echo "$ac_res" >&6; }
1648else
1649  # Is the header compilable?
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1651$as_echo_n "checking $2 usability... " >&6; }
1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h.  */
1654$4
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_compile "$LINENO"; then :
1658  ac_header_compiler=yes
1659else
1660  ac_header_compiler=no
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1664$as_echo "$ac_header_compiler" >&6; }
1665
1666# Is the header present?
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1668$as_echo_n "checking $2 presence... " >&6; }
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h.  */
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_cpp "$LINENO"; then :
1674  ac_header_preproc=yes
1675else
1676  ac_header_preproc=no
1677fi
1678rm -f conftest.err conftest.i conftest.$ac_ext
1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1680$as_echo "$ac_header_preproc" >&6; }
1681
1682# So?  What about this header?
1683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1684  yes:no: )
1685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1686$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1687    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689    ;;
1690  no:yes:* )
1691    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1692$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1693    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1694$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1695    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1696$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1697    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1698$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1700$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701( $as_echo "## -------------------------------------- ##
1702## Report this to json-c@googlegroups.com ##
1703## -------------------------------------- ##"
1704     ) | sed "s/^/$as_me: WARNING:     /" >&2
1705    ;;
1706esac
1707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708$as_echo_n "checking for $2... " >&6; }
1709if eval \${$3+:} false; then :
1710  $as_echo_n "(cached) " >&6
1711else
1712  eval "$3=\$ac_header_compiler"
1713fi
1714eval ac_res=\$$3
1715	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716$as_echo "$ac_res" >&6; }
1717fi
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719
1720} # ac_fn_c_check_header_mongrel
1721
1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists and can be compiled using the include files in
1725# INCLUDES, setting the cache variable VAR accordingly.
1726ac_fn_c_check_header_compile ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if eval \${$3+:} false; then :
1732  $as_echo_n "(cached) " >&6
1733else
1734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h.  */
1736$4
1737#include <$2>
1738_ACEOF
1739if ac_fn_c_try_compile "$LINENO"; then :
1740  eval "$3=yes"
1741else
1742  eval "$3=no"
1743fi
1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745fi
1746eval ac_res=\$$3
1747	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751} # ac_fn_c_check_header_compile
1752
1753# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1754# -------------------------------------------
1755# Tests whether TYPE exists after having included INCLUDES, setting cache
1756# variable VAR accordingly.
1757ac_fn_c_check_type ()
1758{
1759  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761$as_echo_n "checking for $2... " >&6; }
1762if eval \${$3+:} false; then :
1763  $as_echo_n "(cached) " >&6
1764else
1765  eval "$3=no"
1766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h.  */
1768$4
1769int
1770main ()
1771{
1772if (sizeof ($2))
1773	 return 0;
1774  ;
1775  return 0;
1776}
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h.  */
1781$4
1782int
1783main ()
1784{
1785if (sizeof (($2)))
1786	    return 0;
1787  ;
1788  return 0;
1789}
1790_ACEOF
1791if ac_fn_c_try_compile "$LINENO"; then :
1792
1793else
1794  eval "$3=yes"
1795fi
1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799fi
1800eval ac_res=\$$3
1801	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805} # ac_fn_c_check_type
1806
1807# ac_fn_c_try_link LINENO
1808# -----------------------
1809# Try to link conftest.$ac_ext, and return whether this succeeded.
1810ac_fn_c_try_link ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  rm -f conftest.$ac_objext conftest$ac_exeext
1814  if { { ac_try="$ac_link"
1815case "(($ac_try" in
1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817  *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821  (eval "$ac_link") 2>conftest.err
1822  ac_status=$?
1823  if test -s conftest.err; then
1824    grep -v '^ *+' conftest.err >conftest.er1
1825    cat conftest.er1 >&5
1826    mv -f conftest.er1 conftest.err
1827  fi
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && {
1830	 test -z "$ac_c_werror_flag" ||
1831	 test ! -s conftest.err
1832       } && test -s conftest$ac_exeext && {
1833	 test "$cross_compiling" = yes ||
1834	 test -x conftest$ac_exeext
1835       }; then :
1836  ac_retval=0
1837else
1838  $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841	ac_retval=1
1842fi
1843  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845  # interfere with the next link command; also delete a directory that is
1846  # left behind by Apple's compiler.  We do this before executing the actions.
1847  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849  as_fn_set_status $ac_retval
1850
1851} # ac_fn_c_try_link
1852
1853# ac_fn_c_check_func LINENO FUNC VAR
1854# ----------------------------------
1855# Tests whether FUNC exists, setting the cache variable VAR accordingly
1856ac_fn_c_check_func ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860$as_echo_n "checking for $2... " >&6; }
1861if eval \${$3+:} false; then :
1862  $as_echo_n "(cached) " >&6
1863else
1864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1868#define $2 innocuous_$2
1869
1870/* System header to define __stub macros and hopefully few prototypes,
1871    which can conflict with char $2 (); below.
1872    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873    <limits.h> exists even on freestanding compilers.  */
1874
1875#ifdef __STDC__
1876# include <limits.h>
1877#else
1878# include <assert.h>
1879#endif
1880
1881#undef $2
1882
1883/* Override any GCC internal prototype to avoid an error.
1884   Use char because int might match the return type of a GCC
1885   builtin and then its argument prototype would still apply.  */
1886#ifdef __cplusplus
1887extern "C"
1888#endif
1889char $2 ();
1890/* The GNU C library defines this for functions which it implements
1891    to always fail with ENOSYS.  Some functions are actually named
1892    something starting with __ and the normal name is an alias.  */
1893#if defined __stub_$2 || defined __stub___$2
1894choke me
1895#endif
1896
1897int
1898main ()
1899{
1900return $2 ();
1901  ;
1902  return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_link "$LINENO"; then :
1906  eval "$3=yes"
1907else
1908  eval "$3=no"
1909fi
1910rm -f core conftest.err conftest.$ac_objext \
1911    conftest$ac_exeext conftest.$ac_ext
1912fi
1913eval ac_res=\$$3
1914	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_func
1919
1920# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1921# ---------------------------------------------
1922# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1923# accordingly.
1924ac_fn_c_check_decl ()
1925{
1926  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927  as_decl_name=`echo $2|sed 's/ *(.*//'`
1928  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1930$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1931if eval \${$3+:} false; then :
1932  $as_echo_n "(cached) " >&6
1933else
1934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936$4
1937int
1938main ()
1939{
1940#ifndef $as_decl_name
1941#ifdef __cplusplus
1942  (void) $as_decl_use;
1943#else
1944  (void) $as_decl_name;
1945#endif
1946#endif
1947
1948  ;
1949  return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953  eval "$3=yes"
1954else
1955  eval "$3=no"
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958fi
1959eval ac_res=\$$3
1960	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964} # ac_fn_c_check_decl
1965cat >config.log <<_ACEOF
1966This file contains any messages produced by compilers while
1967running configure, to aid debugging if configure makes a mistake.
1968
1969It was created by json-c $as_me 0.12, which was
1970generated by GNU Autoconf 2.69.  Invocation command line was
1971
1972  $ $0 $@
1973
1974_ACEOF
1975exec 5>>config.log
1976{
1977cat <<_ASUNAME
1978## --------- ##
1979## Platform. ##
1980## --------- ##
1981
1982hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1983uname -m = `(uname -m) 2>/dev/null || echo unknown`
1984uname -r = `(uname -r) 2>/dev/null || echo unknown`
1985uname -s = `(uname -s) 2>/dev/null || echo unknown`
1986uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987
1988/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1989/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1990
1991/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1992/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1993/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1994/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1995/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1996/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1997/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1998
1999_ASUNAME
2000
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004  IFS=$as_save_IFS
2005  test -z "$as_dir" && as_dir=.
2006    $as_echo "PATH: $as_dir"
2007  done
2008IFS=$as_save_IFS
2009
2010} >&5
2011
2012cat >&5 <<_ACEOF
2013
2014
2015## ----------- ##
2016## Core tests. ##
2017## ----------- ##
2018
2019_ACEOF
2020
2021
2022# Keep a trace of the command line.
2023# Strip out --no-create and --no-recursion so they do not pile up.
2024# Strip out --silent because we don't want to record it for future runs.
2025# Also quote any args containing shell meta-characters.
2026# Make two passes to allow for proper duplicate-argument suppression.
2027ac_configure_args=
2028ac_configure_args0=
2029ac_configure_args1=
2030ac_must_keep_next=false
2031for ac_pass in 1 2
2032do
2033  for ac_arg
2034  do
2035    case $ac_arg in
2036    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038    | -silent | --silent | --silen | --sile | --sil)
2039      continue ;;
2040    *\'*)
2041      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042    esac
2043    case $ac_pass in
2044    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045    2)
2046      as_fn_append ac_configure_args1 " '$ac_arg'"
2047      if test $ac_must_keep_next = true; then
2048	ac_must_keep_next=false # Got value, back to normal.
2049      else
2050	case $ac_arg in
2051	  *=* | --config-cache | -C | -disable-* | --disable-* \
2052	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054	  | -with-* | --with-* | -without-* | --without-* | --x)
2055	    case "$ac_configure_args0 " in
2056	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057	    esac
2058	    ;;
2059	  -* ) ac_must_keep_next=true ;;
2060	esac
2061      fi
2062      as_fn_append ac_configure_args " '$ac_arg'"
2063      ;;
2064    esac
2065  done
2066done
2067{ ac_configure_args0=; unset ac_configure_args0;}
2068{ ac_configure_args1=; unset ac_configure_args1;}
2069
2070# When interrupted or exit'd, cleanup temporary files, and complete
2071# config.log.  We remove comments because anyway the quotes in there
2072# would cause problems or look ugly.
2073# WARNING: Use '\'' to represent an apostrophe within the trap.
2074# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075trap 'exit_status=$?
2076  # Save into config.log some information that might help in debugging.
2077  {
2078    echo
2079
2080    $as_echo "## ---------------- ##
2081## Cache variables. ##
2082## ---------------- ##"
2083    echo
2084    # The following way of writing the cache mishandles newlines in values,
2085(
2086  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087    eval ac_val=\$$ac_var
2088    case $ac_val in #(
2089    *${as_nl}*)
2090      case $ac_var in #(
2091      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093      esac
2094      case $ac_var in #(
2095      _ | IFS | as_nl) ;; #(
2096      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097      *) { eval $ac_var=; unset $ac_var;} ;;
2098      esac ;;
2099    esac
2100  done
2101  (set) 2>&1 |
2102    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103    *${as_nl}ac_space=\ *)
2104      sed -n \
2105	"s/'\''/'\''\\\\'\'''\''/g;
2106	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107      ;; #(
2108    *)
2109      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2110      ;;
2111    esac |
2112    sort
2113)
2114    echo
2115
2116    $as_echo "## ----------------- ##
2117## Output variables. ##
2118## ----------------- ##"
2119    echo
2120    for ac_var in $ac_subst_vars
2121    do
2122      eval ac_val=\$$ac_var
2123      case $ac_val in
2124      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125      esac
2126      $as_echo "$ac_var='\''$ac_val'\''"
2127    done | sort
2128    echo
2129
2130    if test -n "$ac_subst_files"; then
2131      $as_echo "## ------------------- ##
2132## File substitutions. ##
2133## ------------------- ##"
2134      echo
2135      for ac_var in $ac_subst_files
2136      do
2137	eval ac_val=\$$ac_var
2138	case $ac_val in
2139	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140	esac
2141	$as_echo "$ac_var='\''$ac_val'\''"
2142      done | sort
2143      echo
2144    fi
2145
2146    if test -s confdefs.h; then
2147      $as_echo "## ----------- ##
2148## confdefs.h. ##
2149## ----------- ##"
2150      echo
2151      cat confdefs.h
2152      echo
2153    fi
2154    test "$ac_signal" != 0 &&
2155      $as_echo "$as_me: caught signal $ac_signal"
2156    $as_echo "$as_me: exit $exit_status"
2157  } >&5
2158  rm -f core *.core core.conftest.* &&
2159    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160    exit $exit_status
2161' 0
2162for ac_signal in 1 2 13 15; do
2163  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2164done
2165ac_signal=0
2166
2167# confdefs.h avoids OS command line length limits that DEFS can exceed.
2168rm -f -r conftest* confdefs.h
2169
2170$as_echo "/* confdefs.h */" > confdefs.h
2171
2172# Predefined preprocessor variables.
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_NAME "$PACKAGE_NAME"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_VERSION "$PACKAGE_VERSION"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_STRING "$PACKAGE_STRING"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_URL "$PACKAGE_URL"
2196_ACEOF
2197
2198
2199# Let the site file select an alternate cache file if it wants to.
2200# Prefer an explicitly selected file to automatically selected ones.
2201ac_site_file1=NONE
2202ac_site_file2=NONE
2203if test -n "$CONFIG_SITE"; then
2204  # We do not want a PATH search for config.site.
2205  case $CONFIG_SITE in #((
2206    -*)  ac_site_file1=./$CONFIG_SITE;;
2207    */*) ac_site_file1=$CONFIG_SITE;;
2208    *)   ac_site_file1=./$CONFIG_SITE;;
2209  esac
2210elif test "x$prefix" != xNONE; then
2211  ac_site_file1=$prefix/share/config.site
2212  ac_site_file2=$prefix/etc/config.site
2213else
2214  ac_site_file1=$ac_default_prefix/share/config.site
2215  ac_site_file2=$ac_default_prefix/etc/config.site
2216fi
2217for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2218do
2219  test "x$ac_site_file" = xNONE && continue
2220  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223    sed 's/^/| /' "$ac_site_file" >&5
2224    . "$ac_site_file" \
2225      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227as_fn_error $? "failed to load site script $ac_site_file
2228See \`config.log' for more details" "$LINENO" 5; }
2229  fi
2230done
2231
2232if test -r "$cache_file"; then
2233  # Some versions of bash will fail to source /dev/null (special files
2234  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2235  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2236    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237$as_echo "$as_me: loading cache $cache_file" >&6;}
2238    case $cache_file in
2239      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240      *)                      . "./$cache_file";;
2241    esac
2242  fi
2243else
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245$as_echo "$as_me: creating cache $cache_file" >&6;}
2246  >$cache_file
2247fi
2248
2249# Check that the precious variables saved in the cache have kept the same
2250# value.
2251ac_cache_corrupted=false
2252for ac_var in $ac_precious_vars; do
2253  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2254  eval ac_new_set=\$ac_env_${ac_var}_set
2255  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2256  eval ac_new_val=\$ac_env_${ac_var}_value
2257  case $ac_old_set,$ac_new_set in
2258    set,)
2259      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2261      ac_cache_corrupted=: ;;
2262    ,set)
2263      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2265      ac_cache_corrupted=: ;;
2266    ,);;
2267    *)
2268      if test "x$ac_old_val" != "x$ac_new_val"; then
2269	# differences in whitespace do not lead to failure.
2270	ac_old_val_w=`echo x $ac_old_val`
2271	ac_new_val_w=`echo x $ac_new_val`
2272	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275	  ac_cache_corrupted=:
2276	else
2277	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279	  eval $ac_var=\$ac_old_val
2280	fi
2281	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2282$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2283	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2284$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2285      fi;;
2286  esac
2287  # Pass precious variables to config.status.
2288  if test "$ac_new_set" = set; then
2289    case $ac_new_val in
2290    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2291    *) ac_arg=$ac_var=$ac_new_val ;;
2292    esac
2293    case " $ac_configure_args " in
2294      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2295      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2296    esac
2297  fi
2298done
2299if $ac_cache_corrupted; then
2300  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2304  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2305fi
2306## -------------------- ##
2307## Main body of script. ##
2308## -------------------- ##
2309
2310ac_ext=c
2311ac_cpp='$CPP $CPPFLAGS'
2312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
2316
2317
2318am__api_version='1.14'
2319
2320ac_aux_dir=
2321for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2322  if test -f "$ac_dir/install-sh"; then
2323    ac_aux_dir=$ac_dir
2324    ac_install_sh="$ac_aux_dir/install-sh -c"
2325    break
2326  elif test -f "$ac_dir/install.sh"; then
2327    ac_aux_dir=$ac_dir
2328    ac_install_sh="$ac_aux_dir/install.sh -c"
2329    break
2330  elif test -f "$ac_dir/shtool"; then
2331    ac_aux_dir=$ac_dir
2332    ac_install_sh="$ac_aux_dir/shtool install -c"
2333    break
2334  fi
2335done
2336if test -z "$ac_aux_dir"; then
2337  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2338fi
2339
2340# These three variables are undocumented and unsupported,
2341# and are intended to be withdrawn in a future Autoconf release.
2342# They can cause serious problems if a builder's source tree is in a directory
2343# whose full name contains unusual characters.
2344ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2345ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2346ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2347
2348
2349# Find a good install program.  We prefer a C program (faster),
2350# so one script is as good as another.  But avoid the broken or
2351# incompatible versions:
2352# SysV /etc/install, /usr/sbin/install
2353# SunOS /usr/etc/install
2354# IRIX /sbin/install
2355# AIX /bin/install
2356# AmigaOS /C/install, which installs bootblocks on floppy discs
2357# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2358# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2359# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2360# OS/2's system install, which has a completely different semantic
2361# ./install, which can be erroneously created by make from ./install.sh.
2362# Reject install programs that cannot install multiple files.
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2364$as_echo_n "checking for a BSD-compatible install... " >&6; }
2365if test -z "$INSTALL"; then
2366if ${ac_cv_path_install+:} false; then :
2367  $as_echo_n "(cached) " >&6
2368else
2369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH
2371do
2372  IFS=$as_save_IFS
2373  test -z "$as_dir" && as_dir=.
2374    # Account for people who put trailing slashes in PATH elements.
2375case $as_dir/ in #((
2376  ./ | .// | /[cC]/* | \
2377  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2378  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2379  /usr/ucb/* ) ;;
2380  *)
2381    # OSF1 and SCO ODT 3.0 have their own names for install.
2382    # Don't use installbsd from OSF since it installs stuff as root
2383    # by default.
2384    for ac_prog in ginstall scoinst install; do
2385      for ac_exec_ext in '' $ac_executable_extensions; do
2386	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2387	  if test $ac_prog = install &&
2388	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389	    # AIX install.  It has an incompatible calling convention.
2390	    :
2391	  elif test $ac_prog = install &&
2392	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393	    # program-specific install script used by HP pwplus--don't use.
2394	    :
2395	  else
2396	    rm -rf conftest.one conftest.two conftest.dir
2397	    echo one > conftest.one
2398	    echo two > conftest.two
2399	    mkdir conftest.dir
2400	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2401	      test -s conftest.one && test -s conftest.two &&
2402	      test -s conftest.dir/conftest.one &&
2403	      test -s conftest.dir/conftest.two
2404	    then
2405	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2406	      break 3
2407	    fi
2408	  fi
2409	fi
2410      done
2411    done
2412    ;;
2413esac
2414
2415  done
2416IFS=$as_save_IFS
2417
2418rm -rf conftest.one conftest.two conftest.dir
2419
2420fi
2421  if test "${ac_cv_path_install+set}" = set; then
2422    INSTALL=$ac_cv_path_install
2423  else
2424    # As a last resort, use the slow shell script.  Don't cache a
2425    # value for INSTALL within a source directory, because that will
2426    # break other packages using the cache if that directory is
2427    # removed, or if the value is a relative name.
2428    INSTALL=$ac_install_sh
2429  fi
2430fi
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2432$as_echo "$INSTALL" >&6; }
2433
2434# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2435# It thinks the first close brace ends the variable substitution.
2436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2437
2438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2439
2440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2441
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2443$as_echo_n "checking whether build environment is sane... " >&6; }
2444# Reject unsafe characters in $srcdir or the absolute working directory
2445# name.  Accept space and tab only in the latter.
2446am_lf='
2447'
2448case `pwd` in
2449  *[\\\"\#\$\&\'\`$am_lf]*)
2450    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2451esac
2452case $srcdir in
2453  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2454    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2455esac
2456
2457# Do 'set' in a subshell so we don't clobber the current shell's
2458# arguments.  Must try -L first in case configure is actually a
2459# symlink; some systems play weird games with the mod time of symlinks
2460# (eg FreeBSD returns the mod time of the symlink's containing
2461# directory).
2462if (
2463   am_has_slept=no
2464   for am_try in 1 2; do
2465     echo "timestamp, slept: $am_has_slept" > conftest.file
2466     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2467     if test "$*" = "X"; then
2468	# -L didn't work.
2469	set X `ls -t "$srcdir/configure" conftest.file`
2470     fi
2471     if test "$*" != "X $srcdir/configure conftest.file" \
2472	&& test "$*" != "X conftest.file $srcdir/configure"; then
2473
2474	# If neither matched, then we have a broken ls.  This can happen
2475	# if, for instance, CONFIG_SHELL is bash and it inherits a
2476	# broken ls alias from the environment.  This has actually
2477	# happened.  Such a system could not be considered "sane".
2478	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2479  alias in your environment" "$LINENO" 5
2480     fi
2481     if test "$2" = conftest.file || test $am_try -eq 2; then
2482       break
2483     fi
2484     # Just in case.
2485     sleep 1
2486     am_has_slept=yes
2487   done
2488   test "$2" = conftest.file
2489   )
2490then
2491   # Ok.
2492   :
2493else
2494   as_fn_error $? "newly created file is older than distributed files!
2495Check your system clock" "$LINENO" 5
2496fi
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2498$as_echo "yes" >&6; }
2499# If we didn't sleep, we still need to ensure time stamps of config.status and
2500# generated files are strictly newer.
2501am_sleep_pid=
2502if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2503  ( sleep 1 ) &
2504  am_sleep_pid=$!
2505fi
2506
2507rm -f conftest.file
2508
2509test "$program_prefix" != NONE &&
2510  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511# Use a double $ so make ignores it.
2512test "$program_suffix" != NONE &&
2513  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514# Double any \ or $.
2515# By default was `s,x,x', remove it if useless.
2516ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518
2519# expand $ac_aux_dir to an absolute path
2520am_aux_dir=`cd $ac_aux_dir && pwd`
2521
2522if test x"${MISSING+set}" != xset; then
2523  case $am_aux_dir in
2524  *\ * | *\	*)
2525    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2526  *)
2527    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2528  esac
2529fi
2530# Use eval to expand $SHELL
2531if eval "$MISSING --is-lightweight"; then
2532  am_missing_run="$MISSING "
2533else
2534  am_missing_run=
2535  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2536$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2537fi
2538
2539if test x"${install_sh}" != xset; then
2540  case $am_aux_dir in
2541  *\ * | *\	*)
2542    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2543  *)
2544    install_sh="\${SHELL} $am_aux_dir/install-sh"
2545  esac
2546fi
2547
2548# Installed binaries are usually stripped using 'strip' when the user
2549# run "make install-strip".  However 'strip' might not be the right
2550# tool to use in cross-compilation environments, therefore Automake
2551# will honor the 'STRIP' environment variable to overrule this program.
2552if test "$cross_compiling" != no; then
2553  if test -n "$ac_tool_prefix"; then
2554  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555set dummy ${ac_tool_prefix}strip; ac_word=$2
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if ${ac_cv_prog_STRIP+:} false; then :
2559  $as_echo_n "(cached) " >&6
2560else
2561  if test -n "$STRIP"; then
2562  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_exec_ext in '' $ac_executable_extensions; do
2570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573    break 2
2574  fi
2575done
2576  done
2577IFS=$as_save_IFS
2578
2579fi
2580fi
2581STRIP=$ac_cv_prog_STRIP
2582if test -n "$STRIP"; then
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2584$as_echo "$STRIP" >&6; }
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588fi
2589
2590
2591fi
2592if test -z "$ac_cv_prog_STRIP"; then
2593  ac_ct_STRIP=$STRIP
2594  # Extract the first word of "strip", so it can be a program name with args.
2595set dummy strip; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  if test -n "$ac_ct_STRIP"; then
2602  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609    for ac_exec_ext in '' $ac_executable_extensions; do
2610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_ac_ct_STRIP="strip"
2612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616  done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622if test -n "$ac_ct_STRIP"; then
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2624$as_echo "$ac_ct_STRIP" >&6; }
2625else
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
2628fi
2629
2630  if test "x$ac_ct_STRIP" = x; then
2631    STRIP=":"
2632  else
2633    case $cross_compiling:$ac_tool_warned in
2634yes:)
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637ac_tool_warned=yes ;;
2638esac
2639    STRIP=$ac_ct_STRIP
2640  fi
2641else
2642  STRIP="$ac_cv_prog_STRIP"
2643fi
2644
2645fi
2646INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2647
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650if test -z "$MKDIR_P"; then
2651  if ${ac_cv_path_mkdir+:} false; then :
2652  $as_echo_n "(cached) " >&6
2653else
2654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656do
2657  IFS=$as_save_IFS
2658  test -z "$as_dir" && as_dir=.
2659    for ac_prog in mkdir gmkdir; do
2660	 for ac_exec_ext in '' $ac_executable_extensions; do
2661	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2662	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663	     'mkdir (GNU coreutils) '* | \
2664	     'mkdir (coreutils) '* | \
2665	     'mkdir (fileutils) '4.1*)
2666	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2667	       break 3;;
2668	   esac
2669	 done
2670       done
2671  done
2672IFS=$as_save_IFS
2673
2674fi
2675
2676  test -d ./--version && rmdir ./--version
2677  if test "${ac_cv_path_mkdir+set}" = set; then
2678    MKDIR_P="$ac_cv_path_mkdir -p"
2679  else
2680    # As a last resort, use the slow shell script.  Don't cache a
2681    # value for MKDIR_P within a source directory, because that will
2682    # break other packages using the cache if that directory is
2683    # removed, or if the value is a relative name.
2684    MKDIR_P="$ac_install_sh -d"
2685  fi
2686fi
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688$as_echo "$MKDIR_P" >&6; }
2689
2690for ac_prog in gawk mawk nawk awk
2691do
2692  # Extract the first word of "$ac_prog", so it can be a program name with args.
2693set dummy $ac_prog; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if ${ac_cv_prog_AWK+:} false; then :
2697  $as_echo_n "(cached) " >&6
2698else
2699  if test -n "$AWK"; then
2700  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707    for ac_exec_ext in '' $ac_executable_extensions; do
2708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709    ac_cv_prog_AWK="$ac_prog"
2710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714  done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719AWK=$ac_cv_prog_AWK
2720if test -n "$AWK"; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722$as_echo "$AWK" >&6; }
2723else
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2727
2728
2729  test -n "$AWK" && break
2730done
2731
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2733$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2734set x ${MAKE-make}
2735ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2736if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  cat >conftest.make <<\_ACEOF
2740SHELL = /bin/sh
2741all:
2742	@echo '@@@%%%=$(MAKE)=@@@%%%'
2743_ACEOF
2744# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2745case `${MAKE-make} -f conftest.make 2>/dev/null` in
2746  *@@@%%%=?*=@@@%%%*)
2747    eval ac_cv_prog_make_${ac_make}_set=yes;;
2748  *)
2749    eval ac_cv_prog_make_${ac_make}_set=no;;
2750esac
2751rm -f conftest.make
2752fi
2753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755$as_echo "yes" >&6; }
2756  SET_MAKE=
2757else
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760  SET_MAKE="MAKE=${MAKE-make}"
2761fi
2762
2763rm -rf .tst 2>/dev/null
2764mkdir .tst 2>/dev/null
2765if test -d .tst; then
2766  am__leading_dot=.
2767else
2768  am__leading_dot=_
2769fi
2770rmdir .tst 2>/dev/null
2771
2772# Check whether --enable-silent-rules was given.
2773if test "${enable_silent_rules+set}" = set; then :
2774  enableval=$enable_silent_rules;
2775fi
2776
2777case $enable_silent_rules in # (((
2778  yes) AM_DEFAULT_VERBOSITY=0;;
2779   no) AM_DEFAULT_VERBOSITY=1;;
2780    *) AM_DEFAULT_VERBOSITY=1;;
2781esac
2782am_make=${MAKE-make}
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2784$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2785if ${am_cv_make_support_nested_variables+:} false; then :
2786  $as_echo_n "(cached) " >&6
2787else
2788  if $as_echo 'TRUE=$(BAR$(V))
2789BAR0=false
2790BAR1=true
2791V=1
2792am__doit:
2793	@$(TRUE)
2794.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2795  am_cv_make_support_nested_variables=yes
2796else
2797  am_cv_make_support_nested_variables=no
2798fi
2799fi
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2801$as_echo "$am_cv_make_support_nested_variables" >&6; }
2802if test $am_cv_make_support_nested_variables = yes; then
2803    AM_V='$(V)'
2804  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2805else
2806  AM_V=$AM_DEFAULT_VERBOSITY
2807  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2808fi
2809AM_BACKSLASH='\'
2810
2811if test "`cd $srcdir && pwd`" != "`pwd`"; then
2812  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2813  # is not polluted with repeated "-I."
2814  am__isrc=' -I$(srcdir)'
2815  # test to see if srcdir already configured
2816  if test -f $srcdir/config.status; then
2817    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2818  fi
2819fi
2820
2821# test whether we have cygpath
2822if test -z "$CYGPATH_W"; then
2823  if (cygpath --version) >/dev/null 2>/dev/null; then
2824    CYGPATH_W='cygpath -w'
2825  else
2826    CYGPATH_W=echo
2827  fi
2828fi
2829
2830
2831# Define the identity of the package.
2832 PACKAGE='json-c'
2833 VERSION='0.12'
2834
2835
2836cat >>confdefs.h <<_ACEOF
2837#define PACKAGE "$PACKAGE"
2838_ACEOF
2839
2840
2841cat >>confdefs.h <<_ACEOF
2842#define VERSION "$VERSION"
2843_ACEOF
2844
2845# Some tools Automake needs.
2846
2847ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2848
2849
2850AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2851
2852
2853AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2854
2855
2856AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2857
2858
2859MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2860
2861# For better backward compatibility.  To be removed once Automake 1.9.x
2862# dies out for good.  For more background, see:
2863# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2864# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2865mkdir_p='$(MKDIR_P)'
2866
2867# We need awk for the "check" target.  The system "awk" is bad on
2868# some platforms.
2869# Always define AMTAR for backward compatibility.  Yes, it's still used
2870# in the wild :-(  We should find a proper way to deprecate it ...
2871AMTAR='$${TAR-tar}'
2872
2873
2874# We'll loop over all known methods to create a tar archive until one works.
2875_am_tools='gnutar  pax cpio none'
2876
2877am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2878
2879
2880
2881
2882
2883
2884# POSIX will say in a future version that running "rm -f" with no argument
2885# is OK; and we want to be able to make that assumption in our Makefile
2886# recipes.  So use an aggressive probe to check that the usage we want is
2887# actually supported "in the wild" to an acceptable degree.
2888# See automake bug#10828.
2889# To make any issue more visible, cause the running configure to be aborted
2890# by default if the 'rm' program in use doesn't match our expectations; the
2891# user can still override this though.
2892if rm -f && rm -fr && rm -rf; then : OK; else
2893  cat >&2 <<'END'
2894Oops!
2895
2896Your 'rm' program seems unable to run without file operands specified
2897on the command line, even when the '-f' option is present.  This is contrary
2898to the behaviour of most rm programs out there, and not conforming with
2899the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2900
2901Please tell bug-automake@gnu.org about your system, including the value
2902of your $PATH and any error possibly output before this message.  This
2903can help us improve future automake versions.
2904
2905END
2906  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2907    echo 'Configuration will proceed anyway, since you have set the' >&2
2908    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2909    echo >&2
2910  else
2911    cat >&2 <<'END'
2912Aborting the configuration process, to ensure you take notice of the issue.
2913
2914You can download and install GNU coreutils to get an 'rm' implementation
2915that behaves properly: <http://www.gnu.org/software/coreutils/>.
2916
2917If you want to complete the configuration process using your problematic
2918'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2919to "yes", and re-run configure.
2920
2921END
2922    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2923  fi
2924fi
2925
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2927$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2928    # Check whether --enable-maintainer-mode was given.
2929if test "${enable_maintainer_mode+set}" = set; then :
2930  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2931else
2932  USE_MAINTAINER_MODE=no
2933fi
2934
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2936$as_echo "$USE_MAINTAINER_MODE" >&6; }
2937   if test $USE_MAINTAINER_MODE = yes; then
2938  MAINTAINER_MODE_TRUE=
2939  MAINTAINER_MODE_FALSE='#'
2940else
2941  MAINTAINER_MODE_TRUE='#'
2942  MAINTAINER_MODE_FALSE=
2943fi
2944
2945  MAINT=$MAINTAINER_MODE_TRUE
2946
2947
2948
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951set x ${MAKE-make}
2952ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2953if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2954  $as_echo_n "(cached) " >&6
2955else
2956  cat >conftest.make <<\_ACEOF
2957SHELL = /bin/sh
2958all:
2959	@echo '@@@%%%=$(MAKE)=@@@%%%'
2960_ACEOF
2961# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2962case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963  *@@@%%%=?*=@@@%%%*)
2964    eval ac_cv_prog_make_${ac_make}_set=yes;;
2965  *)
2966    eval ac_cv_prog_make_${ac_make}_set=no;;
2967esac
2968rm -f conftest.make
2969fi
2970if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972$as_echo "yes" >&6; }
2973  SET_MAKE=
2974else
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977  SET_MAKE="MAKE=${MAKE-make}"
2978fi
2979
2980
2981# Check whether --enable-rdrand was given.
2982if test "${enable_rdrand+set}" = set; then :
2983  enableval=$enable_rdrand; if test x$enableval = xyes; then
2984  enable_rdrand=yes
2985
2986$as_echo "#define ENABLE_RDRAND 1" >>confdefs.h
2987
2988fi
2989fi
2990
2991
2992if test "x$enable_rdrand" = "xyes"; then
2993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&5
2994$as_echo "RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms" >&6; }
2995else
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&5
2997$as_echo "RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable" >&6; }
2998fi
2999
3000# Checks for programs.
3001
3002# Checks for libraries.
3003
3004# Checks for header files.
3005DEPDIR="${am__leading_dot}deps"
3006
3007ac_config_commands="$ac_config_commands depfiles"
3008
3009
3010am_make=${MAKE-make}
3011cat > confinc << 'END'
3012am__doit:
3013	@echo this is the am__doit target
3014.PHONY: am__doit
3015END
3016# If we don't find an include directive, just comment out the code.
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3018$as_echo_n "checking for style of include used by $am_make... " >&6; }
3019am__include="#"
3020am__quote=
3021_am_result=none
3022# First try GNU make style include.
3023echo "include confinc" > confmf
3024# Ignore all kinds of additional output from 'make'.
3025case `$am_make -s -f confmf 2> /dev/null` in #(
3026*the\ am__doit\ target*)
3027  am__include=include
3028  am__quote=
3029  _am_result=GNU
3030  ;;
3031esac
3032# Now try BSD make style include.
3033if test "$am__include" = "#"; then
3034   echo '.include "confinc"' > confmf
3035   case `$am_make -s -f confmf 2> /dev/null` in #(
3036   *the\ am__doit\ target*)
3037     am__include=.include
3038     am__quote="\""
3039     _am_result=BSD
3040     ;;
3041   esac
3042fi
3043
3044
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3046$as_echo "$_am_result" >&6; }
3047rm -f confinc confmf
3048
3049# Check whether --enable-dependency-tracking was given.
3050if test "${enable_dependency_tracking+set}" = set; then :
3051  enableval=$enable_dependency_tracking;
3052fi
3053
3054if test "x$enable_dependency_tracking" != xno; then
3055  am_depcomp="$ac_aux_dir/depcomp"
3056  AMDEPBACKSLASH='\'
3057  am__nodep='_no'
3058fi
3059 if test "x$enable_dependency_tracking" != xno; then
3060  AMDEP_TRUE=
3061  AMDEP_FALSE='#'
3062else
3063  AMDEP_TRUE='#'
3064  AMDEP_FALSE=
3065fi
3066
3067
3068ac_ext=c
3069ac_cpp='$CPP $CPPFLAGS'
3070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073if test -n "$ac_tool_prefix"; then
3074  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075set dummy ${ac_tool_prefix}gcc; ac_word=$2
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if ${ac_cv_prog_CC+:} false; then :
3079  $as_echo_n "(cached) " >&6
3080else
3081  if test -n "$CC"; then
3082  ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  test -z "$as_dir" && as_dir=.
3089    for ac_exec_ext in '' $ac_executable_extensions; do
3090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093    break 2
3094  fi
3095done
3096  done
3097IFS=$as_save_IFS
3098
3099fi
3100fi
3101CC=$ac_cv_prog_CC
3102if test -n "$CC"; then
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104$as_echo "$CC" >&6; }
3105else
3106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107$as_echo "no" >&6; }
3108fi
3109
3110
3111fi
3112if test -z "$ac_cv_prog_CC"; then
3113  ac_ct_CC=$CC
3114  # Extract the first word of "gcc", so it can be a program name with args.
3115set dummy gcc; ac_word=$2
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117$as_echo_n "checking for $ac_word... " >&6; }
3118if ${ac_cv_prog_ac_ct_CC+:} false; then :
3119  $as_echo_n "(cached) " >&6
3120else
3121  if test -n "$ac_ct_CC"; then
3122  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123else
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127  IFS=$as_save_IFS
3128  test -z "$as_dir" && as_dir=.
3129    for ac_exec_ext in '' $ac_executable_extensions; do
3130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131    ac_cv_prog_ac_ct_CC="gcc"
3132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133    break 2
3134  fi
3135done
3136  done
3137IFS=$as_save_IFS
3138
3139fi
3140fi
3141ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142if test -n "$ac_ct_CC"; then
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144$as_echo "$ac_ct_CC" >&6; }
3145else
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
3148fi
3149
3150  if test "x$ac_ct_CC" = x; then
3151    CC=""
3152  else
3153    case $cross_compiling:$ac_tool_warned in
3154yes:)
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157ac_tool_warned=yes ;;
3158esac
3159    CC=$ac_ct_CC
3160  fi
3161else
3162  CC="$ac_cv_prog_CC"
3163fi
3164
3165if test -z "$CC"; then
3166          if test -n "$ac_tool_prefix"; then
3167    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3168set dummy ${ac_tool_prefix}cc; ac_word=$2
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170$as_echo_n "checking for $ac_word... " >&6; }
3171if ${ac_cv_prog_CC+:} false; then :
3172  $as_echo_n "(cached) " >&6
3173else
3174  if test -n "$CC"; then
3175  ac_cv_prog_CC="$CC" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180  IFS=$as_save_IFS
3181  test -z "$as_dir" && as_dir=.
3182    for ac_exec_ext in '' $ac_executable_extensions; do
3183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184    ac_cv_prog_CC="${ac_tool_prefix}cc"
3185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186    break 2
3187  fi
3188done
3189  done
3190IFS=$as_save_IFS
3191
3192fi
3193fi
3194CC=$ac_cv_prog_CC
3195if test -n "$CC"; then
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197$as_echo "$CC" >&6; }
3198else
3199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200$as_echo "no" >&6; }
3201fi
3202
3203
3204  fi
3205fi
3206if test -z "$CC"; then
3207  # Extract the first word of "cc", so it can be a program name with args.
3208set dummy cc; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if ${ac_cv_prog_CC+:} false; then :
3212  $as_echo_n "(cached) " >&6
3213else
3214  if test -n "$CC"; then
3215  ac_cv_prog_CC="$CC" # Let the user override the test.
3216else
3217  ac_prog_rejected=no
3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221  IFS=$as_save_IFS
3222  test -z "$as_dir" && as_dir=.
3223    for ac_exec_ext in '' $ac_executable_extensions; do
3224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226       ac_prog_rejected=yes
3227       continue
3228     fi
3229    ac_cv_prog_CC="cc"
3230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231    break 2
3232  fi
3233done
3234  done
3235IFS=$as_save_IFS
3236
3237if test $ac_prog_rejected = yes; then
3238  # We found a bogon in the path, so make sure we never use it.
3239  set dummy $ac_cv_prog_CC
3240  shift
3241  if test $# != 0; then
3242    # We chose a different compiler from the bogus one.
3243    # However, it has the same basename, so the bogon will be chosen
3244    # first if we set CC to just the basename; use the full file name.
3245    shift
3246    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3247  fi
3248fi
3249fi
3250fi
3251CC=$ac_cv_prog_CC
3252if test -n "$CC"; then
3253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254$as_echo "$CC" >&6; }
3255else
3256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257$as_echo "no" >&6; }
3258fi
3259
3260
3261fi
3262if test -z "$CC"; then
3263  if test -n "$ac_tool_prefix"; then
3264  for ac_prog in cl.exe
3265  do
3266    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269$as_echo_n "checking for $ac_word... " >&6; }
3270if ${ac_cv_prog_CC+:} false; then :
3271  $as_echo_n "(cached) " >&6
3272else
3273  if test -n "$CC"; then
3274  ac_cv_prog_CC="$CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279  IFS=$as_save_IFS
3280  test -z "$as_dir" && as_dir=.
3281    for ac_exec_ext in '' $ac_executable_extensions; do
3282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285    break 2
3286  fi
3287done
3288  done
3289IFS=$as_save_IFS
3290
3291fi
3292fi
3293CC=$ac_cv_prog_CC
3294if test -n "$CC"; then
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296$as_echo "$CC" >&6; }
3297else
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300fi
3301
3302
3303    test -n "$CC" && break
3304  done
3305fi
3306if test -z "$CC"; then
3307  ac_ct_CC=$CC
3308  for ac_prog in cl.exe
3309do
3310  # Extract the first word of "$ac_prog", so it can be a program name with args.
3311set dummy $ac_prog; ac_word=$2
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313$as_echo_n "checking for $ac_word... " >&6; }
3314if ${ac_cv_prog_ac_ct_CC+:} false; then :
3315  $as_echo_n "(cached) " >&6
3316else
3317  if test -n "$ac_ct_CC"; then
3318  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319else
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323  IFS=$as_save_IFS
3324  test -z "$as_dir" && as_dir=.
3325    for ac_exec_ext in '' $ac_executable_extensions; do
3326  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327    ac_cv_prog_ac_ct_CC="$ac_prog"
3328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329    break 2
3330  fi
3331done
3332  done
3333IFS=$as_save_IFS
3334
3335fi
3336fi
3337ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338if test -n "$ac_ct_CC"; then
3339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340$as_echo "$ac_ct_CC" >&6; }
3341else
3342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
3344fi
3345
3346
3347  test -n "$ac_ct_CC" && break
3348done
3349
3350  if test "x$ac_ct_CC" = x; then
3351    CC=""
3352  else
3353    case $cross_compiling:$ac_tool_warned in
3354yes:)
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357ac_tool_warned=yes ;;
3358esac
3359    CC=$ac_ct_CC
3360  fi
3361fi
3362
3363fi
3364
3365
3366test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368as_fn_error $? "no acceptable C compiler found in \$PATH
3369See \`config.log' for more details" "$LINENO" 5; }
3370
3371# Provide some information about the compiler.
3372$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3373set X $ac_compile
3374ac_compiler=$2
3375for ac_option in --version -v -V -qversion; do
3376  { { ac_try="$ac_compiler $ac_option >&5"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3384  ac_status=$?
3385  if test -s conftest.err; then
3386    sed '10a\
3387... rest of stderr output deleted ...
3388         10q' conftest.err >conftest.er1
3389    cat conftest.er1 >&5
3390  fi
3391  rm -f conftest.er1 conftest.err
3392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393  test $ac_status = 0; }
3394done
3395
3396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397/* end confdefs.h.  */
3398
3399int
3400main ()
3401{
3402
3403  ;
3404  return 0;
3405}
3406_ACEOF
3407ac_clean_files_save=$ac_clean_files
3408ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409# Try to create an executable without -o first, disregard a.out.
3410# It will help us diagnose broken compilers, and finding out an intuition
3411# of exeext.
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413$as_echo_n "checking whether the C compiler works... " >&6; }
3414ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3415
3416# The possible output files:
3417ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3418
3419ac_rmfiles=
3420for ac_file in $ac_files
3421do
3422  case $ac_file in
3423    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3425  esac
3426done
3427rm -f $ac_rmfiles
3428
3429if { { ac_try="$ac_link_default"
3430case "(($ac_try" in
3431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432  *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436  (eval "$ac_link_default") 2>&5
3437  ac_status=$?
3438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439  test $ac_status = 0; }; then :
3440  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3443# so that the user can short-circuit this test for compilers unknown to
3444# Autoconf.
3445for ac_file in $ac_files ''
3446do
3447  test -f "$ac_file" || continue
3448  case $ac_file in
3449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3450	;;
3451    [ab].out )
3452	# We found the default executable, but exeext='' is most
3453	# certainly right.
3454	break;;
3455    *.* )
3456	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3457	then :; else
3458	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459	fi
3460	# We set ac_cv_exeext here because the later test for it is not
3461	# safe: cross compilers may not add the suffix if given an `-o'
3462	# argument, so we may need to know it at that point already.
3463	# Even if this section looks crufty: it has the advantage of
3464	# actually working.
3465	break;;
3466    * )
3467	break;;
3468  esac
3469done
3470test "$ac_cv_exeext" = no && ac_cv_exeext=
3471
3472else
3473  ac_file=''
3474fi
3475if test -z "$ac_file"; then :
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477$as_echo "no" >&6; }
3478$as_echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483as_fn_error 77 "C compiler cannot create executables
3484See \`config.log' for more details" "$LINENO" 5; }
3485else
3486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487$as_echo "yes" >&6; }
3488fi
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490$as_echo_n "checking for C compiler default output file name... " >&6; }
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3492$as_echo "$ac_file" >&6; }
3493ac_exeext=$ac_cv_exeext
3494
3495rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3496ac_clean_files=$ac_clean_files_save
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3498$as_echo_n "checking for suffix of executables... " >&6; }
3499if { { ac_try="$ac_link"
3500case "(($ac_try" in
3501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502  *) ac_try_echo=$ac_try;;
3503esac
3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505$as_echo "$ac_try_echo"; } >&5
3506  (eval "$ac_link") 2>&5
3507  ac_status=$?
3508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509  test $ac_status = 0; }; then :
3510  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3511# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3512# work properly (i.e., refer to `conftest.exe'), while it won't with
3513# `rm'.
3514for ac_file in conftest.exe conftest conftest.*; do
3515  test -f "$ac_file" || continue
3516  case $ac_file in
3517    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3519	  break;;
3520    * ) break;;
3521  esac
3522done
3523else
3524  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3527See \`config.log' for more details" "$LINENO" 5; }
3528fi
3529rm -f conftest conftest$ac_cv_exeext
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3531$as_echo "$ac_cv_exeext" >&6; }
3532
3533rm -f conftest.$ac_ext
3534EXEEXT=$ac_cv_exeext
3535ac_exeext=$EXEEXT
3536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h.  */
3538#include <stdio.h>
3539int
3540main ()
3541{
3542FILE *f = fopen ("conftest.out", "w");
3543 return ferror (f) || fclose (f) != 0;
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549ac_clean_files="$ac_clean_files conftest.out"
3550# Check that the compiler produces executables we can run.  If not, either
3551# the compiler is broken, or we cross compile.
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553$as_echo_n "checking whether we are cross compiling... " >&6; }
3554if test "$cross_compiling" != yes; then
3555  { { ac_try="$ac_link"
3556case "(($ac_try" in
3557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558  *) ac_try_echo=$ac_try;;
3559esac
3560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561$as_echo "$ac_try_echo"; } >&5
3562  (eval "$ac_link") 2>&5
3563  ac_status=$?
3564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565  test $ac_status = 0; }
3566  if { ac_try='./conftest$ac_cv_exeext'
3567  { { case "(($ac_try" in
3568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569  *) ac_try_echo=$ac_try;;
3570esac
3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572$as_echo "$ac_try_echo"; } >&5
3573  (eval "$ac_try") 2>&5
3574  ac_status=$?
3575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576  test $ac_status = 0; }; }; then
3577    cross_compiling=no
3578  else
3579    if test "$cross_compiling" = maybe; then
3580	cross_compiling=yes
3581    else
3582	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584as_fn_error $? "cannot run C compiled programs.
3585If you meant to cross compile, use \`--host'.
3586See \`config.log' for more details" "$LINENO" 5; }
3587    fi
3588  fi
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3591$as_echo "$cross_compiling" >&6; }
3592
3593rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3594ac_clean_files=$ac_clean_files_save
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596$as_echo_n "checking for suffix of object files... " >&6; }
3597if ${ac_cv_objext+:} false; then :
3598  $as_echo_n "(cached) " >&6
3599else
3600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h.  */
3602
3603int
3604main ()
3605{
3606
3607  ;
3608  return 0;
3609}
3610_ACEOF
3611rm -f conftest.o conftest.obj
3612if { { ac_try="$ac_compile"
3613case "(($ac_try" in
3614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615  *) ac_try_echo=$ac_try;;
3616esac
3617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618$as_echo "$ac_try_echo"; } >&5
3619  (eval "$ac_compile") 2>&5
3620  ac_status=$?
3621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622  test $ac_status = 0; }; then :
3623  for ac_file in conftest.o conftest.obj conftest.*; do
3624  test -f "$ac_file" || continue;
3625  case $ac_file in
3626    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3628       break;;
3629  esac
3630done
3631else
3632  $as_echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637as_fn_error $? "cannot compute suffix of object files: cannot compile
3638See \`config.log' for more details" "$LINENO" 5; }
3639fi
3640rm -f conftest.$ac_cv_objext conftest.$ac_ext
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643$as_echo "$ac_cv_objext" >&6; }
3644OBJEXT=$ac_cv_objext
3645ac_objext=$OBJEXT
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648if ${ac_cv_c_compiler_gnu+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h.  */
3653
3654int
3655main ()
3656{
3657#ifndef __GNUC__
3658       choke me
3659#endif
3660
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665if ac_fn_c_try_compile "$LINENO"; then :
3666  ac_compiler_gnu=yes
3667else
3668  ac_compiler_gnu=no
3669fi
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671ac_cv_c_compiler_gnu=$ac_compiler_gnu
3672
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676if test $ac_compiler_gnu = yes; then
3677  GCC=yes
3678else
3679  GCC=
3680fi
3681ac_test_CFLAGS=${CFLAGS+set}
3682ac_save_CFLAGS=$CFLAGS
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684$as_echo_n "checking whether $CC accepts -g... " >&6; }
3685if ${ac_cv_prog_cc_g+:} false; then :
3686  $as_echo_n "(cached) " >&6
3687else
3688  ac_save_c_werror_flag=$ac_c_werror_flag
3689   ac_c_werror_flag=yes
3690   ac_cv_prog_cc_g=no
3691   CFLAGS="-g"
3692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693/* end confdefs.h.  */
3694
3695int
3696main ()
3697{
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_compile "$LINENO"; then :
3704  ac_cv_prog_cc_g=yes
3705else
3706  CFLAGS=""
3707      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h.  */
3709
3710int
3711main ()
3712{
3713
3714  ;
3715  return 0;
3716}
3717_ACEOF
3718if ac_fn_c_try_compile "$LINENO"; then :
3719
3720else
3721  ac_c_werror_flag=$ac_save_c_werror_flag
3722	 CFLAGS="-g"
3723	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725
3726int
3727main ()
3728{
3729
3730  ;
3731  return 0;
3732}
3733_ACEOF
3734if ac_fn_c_try_compile "$LINENO"; then :
3735  ac_cv_prog_cc_g=yes
3736fi
3737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738fi
3739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740fi
3741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742   ac_c_werror_flag=$ac_save_c_werror_flag
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745$as_echo "$ac_cv_prog_cc_g" >&6; }
3746if test "$ac_test_CFLAGS" = set; then
3747  CFLAGS=$ac_save_CFLAGS
3748elif test $ac_cv_prog_cc_g = yes; then
3749  if test "$GCC" = yes; then
3750    CFLAGS="-g -O2"
3751  else
3752    CFLAGS="-g"
3753  fi
3754else
3755  if test "$GCC" = yes; then
3756    CFLAGS="-O2"
3757  else
3758    CFLAGS=
3759  fi
3760fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763if ${ac_cv_prog_cc_c89+:} false; then :
3764  $as_echo_n "(cached) " >&6
3765else
3766  ac_cv_prog_cc_c89=no
3767ac_save_CC=$CC
3768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h.  */
3770#include <stdarg.h>
3771#include <stdio.h>
3772struct stat;
3773/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3774struct buf { int x; };
3775FILE * (*rcsopen) (struct buf *, struct stat *, int);
3776static char *e (p, i)
3777     char **p;
3778     int i;
3779{
3780  return p[i];
3781}
3782static char *f (char * (*g) (char **, int), char **p, ...)
3783{
3784  char *s;
3785  va_list v;
3786  va_start (v,p);
3787  s = g (p, va_arg (v,int));
3788  va_end (v);
3789  return s;
3790}
3791
3792/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3793   function prototypes and stuff, but not '\xHH' hex character constants.
3794   These don't provoke an error unfortunately, instead are silently treated
3795   as 'x'.  The following induces an error, until -std is added to get
3796   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3797   array size at least.  It's necessary to write '\x00'==0 to get something
3798   that's true only with -std.  */
3799int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3800
3801/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3802   inside strings and character constants.  */
3803#define FOO(x) 'x'
3804int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3805
3806int test (int i, double x);
3807struct s1 {int (*f) (int a);};
3808struct s2 {int (*f) (double a);};
3809int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3810int argc;
3811char **argv;
3812int
3813main ()
3814{
3815return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3821	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3822do
3823  CC="$ac_save_CC $ac_arg"
3824  if ac_fn_c_try_compile "$LINENO"; then :
3825  ac_cv_prog_cc_c89=$ac_arg
3826fi
3827rm -f core conftest.err conftest.$ac_objext
3828  test "x$ac_cv_prog_cc_c89" != "xno" && break
3829done
3830rm -f conftest.$ac_ext
3831CC=$ac_save_CC
3832
3833fi
3834# AC_CACHE_VAL
3835case "x$ac_cv_prog_cc_c89" in
3836  x)
3837    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3838$as_echo "none needed" >&6; } ;;
3839  xno)
3840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3841$as_echo "unsupported" >&6; } ;;
3842  *)
3843    CC="$CC $ac_cv_prog_cc_c89"
3844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3845$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3846esac
3847if test "x$ac_cv_prog_cc_c89" != xno; then :
3848
3849fi
3850
3851ac_ext=c
3852ac_cpp='$CPP $CPPFLAGS'
3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856
3857ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3863$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3864if ${am_cv_prog_cc_c_o+:} false; then :
3865  $as_echo_n "(cached) " >&6
3866else
3867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h.  */
3869
3870int
3871main ()
3872{
3873
3874  ;
3875  return 0;
3876}
3877_ACEOF
3878  # Make sure it works both with $CC and with simple cc.
3879  # Following AC_PROG_CC_C_O, we do the test twice because some
3880  # compilers refuse to overwrite an existing .o file with -o,
3881  # though they will create one.
3882  am_cv_prog_cc_c_o=yes
3883  for am_i in 1 2; do
3884    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3885   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3886   ac_status=$?
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); } \
3889         && test -f conftest2.$ac_objext; then
3890      : OK
3891    else
3892      am_cv_prog_cc_c_o=no
3893      break
3894    fi
3895  done
3896  rm -f core conftest*
3897  unset am_i
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3900$as_echo "$am_cv_prog_cc_c_o" >&6; }
3901if test "$am_cv_prog_cc_c_o" != yes; then
3902   # Losing compiler, so override with the script.
3903   # FIXME: It is wrong to rewrite CC.
3904   # But if we don't then we get into trouble of one sort or another.
3905   # A longer-term fix would be to have automake use am__CC in this case,
3906   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3907   CC="$am_aux_dir/compile $CC"
3908fi
3909ac_ext=c
3910ac_cpp='$CPP $CPPFLAGS'
3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915
3916depcc="$CC"   am_compiler_list=
3917
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3919$as_echo_n "checking dependency style of $depcc... " >&6; }
3920if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3921  $as_echo_n "(cached) " >&6
3922else
3923  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3924  # We make a subdir and do the tests there.  Otherwise we can end up
3925  # making bogus files that we don't know about and never remove.  For
3926  # instance it was reported that on HP-UX the gcc test will end up
3927  # making a dummy file named 'D' -- because '-MD' means "put the output
3928  # in D".
3929  rm -rf conftest.dir
3930  mkdir conftest.dir
3931  # Copy depcomp to subdir because otherwise we won't find it if we're
3932  # using a relative directory.
3933  cp "$am_depcomp" conftest.dir
3934  cd conftest.dir
3935  # We will build objects and dependencies in a subdirectory because
3936  # it helps to detect inapplicable dependency modes.  For instance
3937  # both Tru64's cc and ICC support -MD to output dependencies as a
3938  # side effect of compilation, but ICC will put the dependencies in
3939  # the current directory while Tru64 will put them in the object
3940  # directory.
3941  mkdir sub
3942
3943  am_cv_CC_dependencies_compiler_type=none
3944  if test "$am_compiler_list" = ""; then
3945     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3946  fi
3947  am__universal=false
3948  case " $depcc " in #(
3949     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3950     esac
3951
3952  for depmode in $am_compiler_list; do
3953    # Setup a source with many dependencies, because some compilers
3954    # like to wrap large dependency lists on column 80 (with \), and
3955    # we should not choose a depcomp mode which is confused by this.
3956    #
3957    # We need to recreate these files for each test, as the compiler may
3958    # overwrite some of them when testing with obscure command lines.
3959    # This happens at least with the AIX C compiler.
3960    : > sub/conftest.c
3961    for i in 1 2 3 4 5 6; do
3962      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3963      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3964      # Solaris 10 /bin/sh.
3965      echo '/* dummy */' > sub/conftst$i.h
3966    done
3967    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3968
3969    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3970    # mode.  It turns out that the SunPro C++ compiler does not properly
3971    # handle '-M -o', and we need to detect this.  Also, some Intel
3972    # versions had trouble with output in subdirs.
3973    am__obj=sub/conftest.${OBJEXT-o}
3974    am__minus_obj="-o $am__obj"
3975    case $depmode in
3976    gcc)
3977      # This depmode causes a compiler race in universal mode.
3978      test "$am__universal" = false || continue
3979      ;;
3980    nosideeffect)
3981      # After this tag, mechanisms are not by side-effect, so they'll
3982      # only be used when explicitly requested.
3983      if test "x$enable_dependency_tracking" = xyes; then
3984	continue
3985      else
3986	break
3987      fi
3988      ;;
3989    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3990      # This compiler won't grok '-c -o', but also, the minuso test has
3991      # not run yet.  These depmodes are late enough in the game, and
3992      # so weak that their functioning should not be impacted.
3993      am__obj=conftest.${OBJEXT-o}
3994      am__minus_obj=
3995      ;;
3996    none) break ;;
3997    esac
3998    if depmode=$depmode \
3999       source=sub/conftest.c object=$am__obj \
4000       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4001       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4002         >/dev/null 2>conftest.err &&
4003       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4004       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4005       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4006       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4007      # icc doesn't choke on unknown options, it will just issue warnings
4008      # or remarks (even with -Werror).  So we grep stderr for any message
4009      # that says an option was ignored or not supported.
4010      # When given -MP, icc 7.0 and 7.1 complain thusly:
4011      #   icc: Command line warning: ignoring option '-M'; no argument required
4012      # The diagnosis changed in icc 8.0:
4013      #   icc: Command line remark: option '-MP' not supported
4014      if (grep 'ignoring option' conftest.err ||
4015          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4016        am_cv_CC_dependencies_compiler_type=$depmode
4017        break
4018      fi
4019    fi
4020  done
4021
4022  cd ..
4023  rm -rf conftest.dir
4024else
4025  am_cv_CC_dependencies_compiler_type=none
4026fi
4027
4028fi
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4030$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4031CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4032
4033 if
4034  test "x$enable_dependency_tracking" != xno \
4035  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4036  am__fastdepCC_TRUE=
4037  am__fastdepCC_FALSE='#'
4038else
4039  am__fastdepCC_TRUE='#'
4040  am__fastdepCC_FALSE=
4041fi
4042
4043
4044
4045ac_config_headers="$ac_config_headers config.h"
4046
4047ac_config_headers="$ac_config_headers json_config.h"
4048
4049
4050ac_ext=c
4051ac_cpp='$CPP $CPPFLAGS'
4052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4056$as_echo_n "checking how to run the C preprocessor... " >&6; }
4057# On Suns, sometimes $CPP names a directory.
4058if test -n "$CPP" && test -d "$CPP"; then
4059  CPP=
4060fi
4061if test -z "$CPP"; then
4062  if ${ac_cv_prog_CPP+:} false; then :
4063  $as_echo_n "(cached) " >&6
4064else
4065      # Double quotes because CPP needs to be expanded
4066    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4067    do
4068      ac_preproc_ok=false
4069for ac_c_preproc_warn_flag in '' yes
4070do
4071  # Use a header file that comes with gcc, so configuring glibc
4072  # with a fresh cross-compiler works.
4073  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074  # <limits.h> exists even on freestanding compilers.
4075  # On the NeXT, cc -E runs the code through the compiler's parser,
4076  # not just through cpp. "Syntax error" is here to catch this case.
4077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h.  */
4079#ifdef __STDC__
4080# include <limits.h>
4081#else
4082# include <assert.h>
4083#endif
4084		     Syntax error
4085_ACEOF
4086if ac_fn_c_try_cpp "$LINENO"; then :
4087
4088else
4089  # Broken: fails on valid input.
4090continue
4091fi
4092rm -f conftest.err conftest.i conftest.$ac_ext
4093
4094  # OK, works on sane cases.  Now check whether nonexistent headers
4095  # can be detected and how.
4096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h.  */
4098#include <ac_nonexistent.h>
4099_ACEOF
4100if ac_fn_c_try_cpp "$LINENO"; then :
4101  # Broken: success on invalid input.
4102continue
4103else
4104  # Passes both tests.
4105ac_preproc_ok=:
4106break
4107fi
4108rm -f conftest.err conftest.i conftest.$ac_ext
4109
4110done
4111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112rm -f conftest.i conftest.err conftest.$ac_ext
4113if $ac_preproc_ok; then :
4114  break
4115fi
4116
4117    done
4118    ac_cv_prog_CPP=$CPP
4119
4120fi
4121  CPP=$ac_cv_prog_CPP
4122else
4123  ac_cv_prog_CPP=$CPP
4124fi
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4126$as_echo "$CPP" >&6; }
4127ac_preproc_ok=false
4128for ac_c_preproc_warn_flag in '' yes
4129do
4130  # Use a header file that comes with gcc, so configuring glibc
4131  # with a fresh cross-compiler works.
4132  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133  # <limits.h> exists even on freestanding compilers.
4134  # On the NeXT, cc -E runs the code through the compiler's parser,
4135  # not just through cpp. "Syntax error" is here to catch this case.
4136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137/* end confdefs.h.  */
4138#ifdef __STDC__
4139# include <limits.h>
4140#else
4141# include <assert.h>
4142#endif
4143		     Syntax error
4144_ACEOF
4145if ac_fn_c_try_cpp "$LINENO"; then :
4146
4147else
4148  # Broken: fails on valid input.
4149continue
4150fi
4151rm -f conftest.err conftest.i conftest.$ac_ext
4152
4153  # OK, works on sane cases.  Now check whether nonexistent headers
4154  # can be detected and how.
4155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h.  */
4157#include <ac_nonexistent.h>
4158_ACEOF
4159if ac_fn_c_try_cpp "$LINENO"; then :
4160  # Broken: success on invalid input.
4161continue
4162else
4163  # Passes both tests.
4164ac_preproc_ok=:
4165break
4166fi
4167rm -f conftest.err conftest.i conftest.$ac_ext
4168
4169done
4170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171rm -f conftest.i conftest.err conftest.$ac_ext
4172if $ac_preproc_ok; then :
4173
4174else
4175  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4177as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4178See \`config.log' for more details" "$LINENO" 5; }
4179fi
4180
4181ac_ext=c
4182ac_cpp='$CPP $CPPFLAGS'
4183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186
4187
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4189$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4190if ${ac_cv_path_GREP+:} false; then :
4191  $as_echo_n "(cached) " >&6
4192else
4193  if test -z "$GREP"; then
4194  ac_path_GREP_found=false
4195  # Loop through the user's path and test for each of PROGNAME-LIST
4196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198do
4199  IFS=$as_save_IFS
4200  test -z "$as_dir" && as_dir=.
4201    for ac_prog in grep ggrep; do
4202    for ac_exec_ext in '' $ac_executable_extensions; do
4203      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4204      as_fn_executable_p "$ac_path_GREP" || continue
4205# Check for GNU ac_path_GREP and select it if it is found.
4206  # Check for GNU $ac_path_GREP
4207case `"$ac_path_GREP" --version 2>&1` in
4208*GNU*)
4209  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4210*)
4211  ac_count=0
4212  $as_echo_n 0123456789 >"conftest.in"
4213  while :
4214  do
4215    cat "conftest.in" "conftest.in" >"conftest.tmp"
4216    mv "conftest.tmp" "conftest.in"
4217    cp "conftest.in" "conftest.nl"
4218    $as_echo 'GREP' >> "conftest.nl"
4219    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221    as_fn_arith $ac_count + 1 && ac_count=$as_val
4222    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4223      # Best one so far, save it but keep looking for a better one
4224      ac_cv_path_GREP="$ac_path_GREP"
4225      ac_path_GREP_max=$ac_count
4226    fi
4227    # 10*(2^10) chars as input seems more than enough
4228    test $ac_count -gt 10 && break
4229  done
4230  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231esac
4232
4233      $ac_path_GREP_found && break 3
4234    done
4235  done
4236  done
4237IFS=$as_save_IFS
4238  if test -z "$ac_cv_path_GREP"; then
4239    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240  fi
4241else
4242  ac_cv_path_GREP=$GREP
4243fi
4244
4245fi
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4247$as_echo "$ac_cv_path_GREP" >&6; }
4248 GREP="$ac_cv_path_GREP"
4249
4250
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4252$as_echo_n "checking for egrep... " >&6; }
4253if ${ac_cv_path_EGREP+:} false; then :
4254  $as_echo_n "(cached) " >&6
4255else
4256  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4257   then ac_cv_path_EGREP="$GREP -E"
4258   else
4259     if test -z "$EGREP"; then
4260  ac_path_EGREP_found=false
4261  # Loop through the user's path and test for each of PROGNAME-LIST
4262  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4264do
4265  IFS=$as_save_IFS
4266  test -z "$as_dir" && as_dir=.
4267    for ac_prog in egrep; do
4268    for ac_exec_ext in '' $ac_executable_extensions; do
4269      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4270      as_fn_executable_p "$ac_path_EGREP" || continue
4271# Check for GNU ac_path_EGREP and select it if it is found.
4272  # Check for GNU $ac_path_EGREP
4273case `"$ac_path_EGREP" --version 2>&1` in
4274*GNU*)
4275  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4276*)
4277  ac_count=0
4278  $as_echo_n 0123456789 >"conftest.in"
4279  while :
4280  do
4281    cat "conftest.in" "conftest.in" >"conftest.tmp"
4282    mv "conftest.tmp" "conftest.in"
4283    cp "conftest.in" "conftest.nl"
4284    $as_echo 'EGREP' >> "conftest.nl"
4285    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4286    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4287    as_fn_arith $ac_count + 1 && ac_count=$as_val
4288    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4289      # Best one so far, save it but keep looking for a better one
4290      ac_cv_path_EGREP="$ac_path_EGREP"
4291      ac_path_EGREP_max=$ac_count
4292    fi
4293    # 10*(2^10) chars as input seems more than enough
4294    test $ac_count -gt 10 && break
4295  done
4296  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297esac
4298
4299      $ac_path_EGREP_found && break 3
4300    done
4301  done
4302  done
4303IFS=$as_save_IFS
4304  if test -z "$ac_cv_path_EGREP"; then
4305    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4306  fi
4307else
4308  ac_cv_path_EGREP=$EGREP
4309fi
4310
4311   fi
4312fi
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4314$as_echo "$ac_cv_path_EGREP" >&6; }
4315 EGREP="$ac_cv_path_EGREP"
4316
4317
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4319$as_echo_n "checking for ANSI C header files... " >&6; }
4320if ${ac_cv_header_stdc+:} false; then :
4321  $as_echo_n "(cached) " >&6
4322else
4323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324/* end confdefs.h.  */
4325#include <stdlib.h>
4326#include <stdarg.h>
4327#include <string.h>
4328#include <float.h>
4329
4330int
4331main ()
4332{
4333
4334  ;
4335  return 0;
4336}
4337_ACEOF
4338if ac_fn_c_try_compile "$LINENO"; then :
4339  ac_cv_header_stdc=yes
4340else
4341  ac_cv_header_stdc=no
4342fi
4343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344
4345if test $ac_cv_header_stdc = yes; then
4346  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349#include <string.h>
4350
4351_ACEOF
4352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4353  $EGREP "memchr" >/dev/null 2>&1; then :
4354
4355else
4356  ac_cv_header_stdc=no
4357fi
4358rm -f conftest*
4359
4360fi
4361
4362if test $ac_cv_header_stdc = yes; then
4363  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365/* end confdefs.h.  */
4366#include <stdlib.h>
4367
4368_ACEOF
4369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370  $EGREP "free" >/dev/null 2>&1; then :
4371
4372else
4373  ac_cv_header_stdc=no
4374fi
4375rm -f conftest*
4376
4377fi
4378
4379if test $ac_cv_header_stdc = yes; then
4380  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4381  if test "$cross_compiling" = yes; then :
4382  :
4383else
4384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h.  */
4386#include <ctype.h>
4387#include <stdlib.h>
4388#if ((' ' & 0x0FF) == 0x020)
4389# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4390# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4391#else
4392# define ISLOWER(c) \
4393		   (('a' <= (c) && (c) <= 'i') \
4394		     || ('j' <= (c) && (c) <= 'r') \
4395		     || ('s' <= (c) && (c) <= 'z'))
4396# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4397#endif
4398
4399#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4400int
4401main ()
4402{
4403  int i;
4404  for (i = 0; i < 256; i++)
4405    if (XOR (islower (i), ISLOWER (i))
4406	|| toupper (i) != TOUPPER (i))
4407      return 2;
4408  return 0;
4409}
4410_ACEOF
4411if ac_fn_c_try_run "$LINENO"; then :
4412
4413else
4414  ac_cv_header_stdc=no
4415fi
4416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4417  conftest.$ac_objext conftest.beam conftest.$ac_ext
4418fi
4419
4420fi
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4423$as_echo "$ac_cv_header_stdc" >&6; }
4424if test $ac_cv_header_stdc = yes; then
4425
4426$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4427
4428fi
4429
4430# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432		  inttypes.h stdint.h unistd.h
4433do :
4434  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4436"
4437if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4438  cat >>confdefs.h <<_ACEOF
4439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4440_ACEOF
4441
4442fi
4443
4444done
4445
4446
4447for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/cdefs.h sys/param.h stdarg.h locale.h endian.h
4448do :
4449  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4450ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4451if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4452  cat >>confdefs.h <<_ACEOF
4453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454_ACEOF
4455
4456fi
4457
4458done
4459
4460ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4461if test "x$ac_cv_header_inttypes_h" = xyes; then :
4462
4463$as_echo "#define JSON_C_HAVE_INTTYPES_H 1" >>confdefs.h
4464
4465fi
4466
4467
4468
4469# Checks for typedefs, structures, and compiler characteristics.
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4471$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4472if ${ac_cv_c_const+:} false; then :
4473  $as_echo_n "(cached) " >&6
4474else
4475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477
4478int
4479main ()
4480{
4481
4482#ifndef __cplusplus
4483  /* Ultrix mips cc rejects this sort of thing.  */
4484  typedef int charset[2];
4485  const charset cs = { 0, 0 };
4486  /* SunOS 4.1.1 cc rejects this.  */
4487  char const *const *pcpcc;
4488  char **ppc;
4489  /* NEC SVR4.0.2 mips cc rejects this.  */
4490  struct point {int x, y;};
4491  static struct point const zero = {0,0};
4492  /* AIX XL C 1.02.0.0 rejects this.
4493     It does not let you subtract one const X* pointer from another in
4494     an arm of an if-expression whose if-part is not a constant
4495     expression */
4496  const char *g = "string";
4497  pcpcc = &g + (g ? g-g : 0);
4498  /* HPUX 7.0 cc rejects these. */
4499  ++pcpcc;
4500  ppc = (char**) pcpcc;
4501  pcpcc = (char const *const *) ppc;
4502  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4503    char tx;
4504    char *t = &tx;
4505    char const *s = 0 ? (char *) 0 : (char const *) 0;
4506
4507    *t++ = 0;
4508    if (s) return 0;
4509  }
4510  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4511    int x[] = {25, 17};
4512    const int *foo = &x[0];
4513    ++foo;
4514  }
4515  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4516    typedef const int *iptr;
4517    iptr p = 0;
4518    ++p;
4519  }
4520  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4521       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4522    struct s { int j; const int *ap[3]; } bx;
4523    struct s *b = &bx; b->j = 5;
4524  }
4525  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4526    const int foo = 10;
4527    if (!foo) return 0;
4528  }
4529  return !cs[0] && !zero.x;
4530#endif
4531
4532  ;
4533  return 0;
4534}
4535_ACEOF
4536if ac_fn_c_try_compile "$LINENO"; then :
4537  ac_cv_c_const=yes
4538else
4539  ac_cv_c_const=no
4540fi
4541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542fi
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4544$as_echo "$ac_cv_c_const" >&6; }
4545if test $ac_cv_c_const = no; then
4546
4547$as_echo "#define const /**/" >>confdefs.h
4548
4549fi
4550
4551ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4552if test "x$ac_cv_type_size_t" = xyes; then :
4553
4554else
4555
4556cat >>confdefs.h <<_ACEOF
4557#define size_t unsigned int
4558_ACEOF
4559
4560fi
4561
4562
4563# Checks for library functions.
4564for ac_func in vprintf
4565do :
4566  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4567if test "x$ac_cv_func_vprintf" = xyes; then :
4568  cat >>confdefs.h <<_ACEOF
4569#define HAVE_VPRINTF 1
4570_ACEOF
4571
4572ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4573if test "x$ac_cv_func__doprnt" = xyes; then :
4574
4575$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4576
4577fi
4578
4579fi
4580done
4581
4582
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
4584$as_echo_n "checking for working memcmp... " >&6; }
4585if ${ac_cv_func_memcmp_working+:} false; then :
4586  $as_echo_n "(cached) " >&6
4587else
4588  if test "$cross_compiling" = yes; then :
4589  ac_cv_func_memcmp_working=no
4590else
4591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593$ac_includes_default
4594int
4595main ()
4596{
4597
4598  /* Some versions of memcmp are not 8-bit clean.  */
4599  char c0 = '\100', c1 = '\200', c2 = '\201';
4600  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4601    return 1;
4602
4603  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4604     or more and with at least one buffer not starting on a 4-byte boundary.
4605     William Lewis provided this test program.   */
4606  {
4607    char foo[21];
4608    char bar[21];
4609    int i;
4610    for (i = 0; i < 4; i++)
4611      {
4612	char *a = foo + i;
4613	char *b = bar + i;
4614	strcpy (a, "--------01111111");
4615	strcpy (b, "--------10000000");
4616	if (memcmp (a, b, 16) >= 0)
4617	  return 1;
4618      }
4619    return 0;
4620  }
4621
4622  ;
4623  return 0;
4624}
4625_ACEOF
4626if ac_fn_c_try_run "$LINENO"; then :
4627  ac_cv_func_memcmp_working=yes
4628else
4629  ac_cv_func_memcmp_working=no
4630fi
4631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4632  conftest.$ac_objext conftest.beam conftest.$ac_ext
4633fi
4634
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
4637$as_echo "$ac_cv_func_memcmp_working" >&6; }
4638test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
4639  *" memcmp.$ac_objext "* ) ;;
4640  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4641 ;;
4642esac
4643
4644
4645for ac_header in stdlib.h
4646do :
4647  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4648if test "x$ac_cv_header_stdlib_h" = xyes; then :
4649  cat >>confdefs.h <<_ACEOF
4650#define HAVE_STDLIB_H 1
4651_ACEOF
4652
4653fi
4654
4655done
4656
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4658$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4659if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4660  $as_echo_n "(cached) " >&6
4661else
4662  if test "$cross_compiling" = yes; then :
4663  ac_cv_func_malloc_0_nonnull=no
4664else
4665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h.  */
4667#if defined STDC_HEADERS || defined HAVE_STDLIB_H
4668# include <stdlib.h>
4669#else
4670char *malloc ();
4671#endif
4672
4673int
4674main ()
4675{
4676return ! malloc (0);
4677  ;
4678  return 0;
4679}
4680_ACEOF
4681if ac_fn_c_try_run "$LINENO"; then :
4682  ac_cv_func_malloc_0_nonnull=yes
4683else
4684  ac_cv_func_malloc_0_nonnull=no
4685fi
4686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4687  conftest.$ac_objext conftest.beam conftest.$ac_ext
4688fi
4689
4690fi
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4692$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4693if test $ac_cv_func_malloc_0_nonnull = yes; then :
4694
4695$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4696
4697else
4698  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4699
4700   case " $LIBOBJS " in
4701  *" malloc.$ac_objext "* ) ;;
4702  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4703 ;;
4704esac
4705
4706
4707$as_echo "#define malloc rpl_malloc" >>confdefs.h
4708
4709fi
4710
4711
4712for ac_header in stdlib.h
4713do :
4714  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4715if test "x$ac_cv_header_stdlib_h" = xyes; then :
4716  cat >>confdefs.h <<_ACEOF
4717#define HAVE_STDLIB_H 1
4718_ACEOF
4719
4720fi
4721
4722done
4723
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4725$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4726if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4727  $as_echo_n "(cached) " >&6
4728else
4729  if test "$cross_compiling" = yes; then :
4730  ac_cv_func_realloc_0_nonnull=no
4731else
4732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733/* end confdefs.h.  */
4734#if defined STDC_HEADERS || defined HAVE_STDLIB_H
4735# include <stdlib.h>
4736#else
4737char *realloc ();
4738#endif
4739
4740int
4741main ()
4742{
4743return ! realloc (0, 0);
4744  ;
4745  return 0;
4746}
4747_ACEOF
4748if ac_fn_c_try_run "$LINENO"; then :
4749  ac_cv_func_realloc_0_nonnull=yes
4750else
4751  ac_cv_func_realloc_0_nonnull=no
4752fi
4753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4754  conftest.$ac_objext conftest.beam conftest.$ac_ext
4755fi
4756
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4759$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4760if test $ac_cv_func_realloc_0_nonnull = yes; then :
4761
4762$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4763
4764else
4765  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4766
4767   case " $LIBOBJS " in
4768  *" realloc.$ac_objext "* ) ;;
4769  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4770 ;;
4771esac
4772
4773
4774$as_echo "#define realloc rpl_realloc" >>confdefs.h
4775
4776fi
4777
4778
4779for ac_func in strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale
4780do :
4781  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4782ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4783if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4784  cat >>confdefs.h <<_ACEOF
4785#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4786_ACEOF
4787
4788fi
4789done
4790
4791ac_fn_c_check_decl "$LINENO" "INFINITY" "ac_cv_have_decl_INFINITY" "#include <math.h>
4792"
4793if test "x$ac_cv_have_decl_INFINITY" = xyes; then :
4794  ac_have_decl=1
4795else
4796  ac_have_decl=0
4797fi
4798
4799cat >>confdefs.h <<_ACEOF
4800#define HAVE_DECL_INFINITY $ac_have_decl
4801_ACEOF
4802
4803ac_fn_c_check_decl "$LINENO" "nan" "ac_cv_have_decl_nan" "#include <math.h>
4804"
4805if test "x$ac_cv_have_decl_nan" = xyes; then :
4806  ac_have_decl=1
4807else
4808  ac_have_decl=0
4809fi
4810
4811cat >>confdefs.h <<_ACEOF
4812#define HAVE_DECL_NAN $ac_have_decl
4813_ACEOF
4814
4815ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
4816"
4817if test "x$ac_cv_have_decl_isnan" = xyes; then :
4818  ac_have_decl=1
4819else
4820  ac_have_decl=0
4821fi
4822
4823cat >>confdefs.h <<_ACEOF
4824#define HAVE_DECL_ISNAN $ac_have_decl
4825_ACEOF
4826
4827ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
4828"
4829if test "x$ac_cv_have_decl_isinf" = xyes; then :
4830  ac_have_decl=1
4831else
4832  ac_have_decl=0
4833fi
4834
4835cat >>confdefs.h <<_ACEOF
4836#define HAVE_DECL_ISINF $ac_have_decl
4837_ACEOF
4838
4839ac_fn_c_check_decl "$LINENO" "_isnan" "ac_cv_have_decl__isnan" "#include <float.h>
4840"
4841if test "x$ac_cv_have_decl__isnan" = xyes; then :
4842  ac_have_decl=1
4843else
4844  ac_have_decl=0
4845fi
4846
4847cat >>confdefs.h <<_ACEOF
4848#define HAVE_DECL__ISNAN $ac_have_decl
4849_ACEOF
4850
4851ac_fn_c_check_decl "$LINENO" "_finite" "ac_cv_have_decl__finite" "#include <float.h>
4852"
4853if test "x$ac_cv_have_decl__finite" = xyes; then :
4854  ac_have_decl=1
4855else
4856  ac_have_decl=0
4857fi
4858
4859cat >>confdefs.h <<_ACEOF
4860#define HAVE_DECL__FINITE $ac_have_decl
4861_ACEOF
4862
4863
4864#check if .section.gnu.warning accepts long strings (for __warn_references)
4865ac_ext=c
4866ac_cpp='$CPP $CPPFLAGS'
4867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870
4871
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5
4873$as_echo_n "checking if .gnu.warning accepts long strings... " >&6; }
4874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h.  */
4876
4877extern void json_object_get();
4878__asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
4879
4880int main(int c,char* v) {return 0;}
4881
4882_ACEOF
4883if ac_fn_c_try_link "$LINENO"; then :
4884
4885
4886$as_echo "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h
4887
4888    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4889$as_echo "yes" >&6; }
4890
4891else
4892
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895
4896fi
4897rm -f core conftest.err conftest.$ac_objext \
4898    conftest$ac_exeext conftest.$ac_ext
4899
4900ac_ext=c
4901ac_cpp='$CPP $CPPFLAGS'
4902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905
4906
4907case `pwd` in
4908  *\ * | *\	*)
4909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4910$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4911esac
4912
4913
4914
4915macro_version='2.4.2'
4916macro_revision='1.3337'
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930ltmain="$ac_aux_dir/ltmain.sh"
4931
4932# Make sure we can run config.sub.
4933$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4934  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4935
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4937$as_echo_n "checking build system type... " >&6; }
4938if ${ac_cv_build+:} false; then :
4939  $as_echo_n "(cached) " >&6
4940else
4941  ac_build_alias=$build_alias
4942test "x$ac_build_alias" = x &&
4943  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4944test "x$ac_build_alias" = x &&
4945  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4946ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4947  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4948
4949fi
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4951$as_echo "$ac_cv_build" >&6; }
4952case $ac_cv_build in
4953*-*-*) ;;
4954*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4955esac
4956build=$ac_cv_build
4957ac_save_IFS=$IFS; IFS='-'
4958set x $ac_cv_build
4959shift
4960build_cpu=$1
4961build_vendor=$2
4962shift; shift
4963# Remember, the first character of IFS is used to create $*,
4964# except with old shells:
4965build_os=$*
4966IFS=$ac_save_IFS
4967case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4968
4969
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4971$as_echo_n "checking host system type... " >&6; }
4972if ${ac_cv_host+:} false; then :
4973  $as_echo_n "(cached) " >&6
4974else
4975  if test "x$host_alias" = x; then
4976  ac_cv_host=$ac_cv_build
4977else
4978  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4979    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4980fi
4981
4982fi
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4984$as_echo "$ac_cv_host" >&6; }
4985case $ac_cv_host in
4986*-*-*) ;;
4987*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4988esac
4989host=$ac_cv_host
4990ac_save_IFS=$IFS; IFS='-'
4991set x $ac_cv_host
4992shift
4993host_cpu=$1
4994host_vendor=$2
4995shift; shift
4996# Remember, the first character of IFS is used to create $*,
4997# except with old shells:
4998host_os=$*
4999IFS=$ac_save_IFS
5000case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5001
5002
5003# Backslashify metacharacters that are still active within
5004# double-quoted strings.
5005sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5006
5007# Same as above, but do not quote variable references.
5008double_quote_subst='s/\(["`\\]\)/\\\1/g'
5009
5010# Sed substitution to delay expansion of an escaped shell variable in a
5011# double_quote_subst'ed string.
5012delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5013
5014# Sed substitution to delay expansion of an escaped single quote.
5015delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5016
5017# Sed substitution to avoid accidental globbing in evaled expressions
5018no_glob_subst='s/\*/\\\*/g'
5019
5020ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5021ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5022ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5023
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5025$as_echo_n "checking how to print strings... " >&6; }
5026# Test print first, because it will be a builtin if present.
5027if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5028   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5029  ECHO='print -r --'
5030elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5031  ECHO='printf %s\n'
5032else
5033  # Use this function as a fallback that always works.
5034  func_fallback_echo ()
5035  {
5036    eval 'cat <<_LTECHO_EOF
5037$1
5038_LTECHO_EOF'
5039  }
5040  ECHO='func_fallback_echo'
5041fi
5042
5043# func_echo_all arg...
5044# Invoke $ECHO with all args, space-separated.
5045func_echo_all ()
5046{
5047    $ECHO ""
5048}
5049
5050case "$ECHO" in
5051  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5052$as_echo "printf" >&6; } ;;
5053  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5054$as_echo "print -r" >&6; } ;;
5055  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5056$as_echo "cat" >&6; } ;;
5057esac
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5073$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5074if ${ac_cv_path_SED+:} false; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5078     for ac_i in 1 2 3 4 5 6 7; do
5079       ac_script="$ac_script$as_nl$ac_script"
5080     done
5081     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5082     { ac_script=; unset ac_script;}
5083     if test -z "$SED"; then
5084  ac_path_SED_found=false
5085  # Loop through the user's path and test for each of PROGNAME-LIST
5086  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089  IFS=$as_save_IFS
5090  test -z "$as_dir" && as_dir=.
5091    for ac_prog in sed gsed; do
5092    for ac_exec_ext in '' $ac_executable_extensions; do
5093      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5094      as_fn_executable_p "$ac_path_SED" || continue
5095# Check for GNU ac_path_SED and select it if it is found.
5096  # Check for GNU $ac_path_SED
5097case `"$ac_path_SED" --version 2>&1` in
5098*GNU*)
5099  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5100*)
5101  ac_count=0
5102  $as_echo_n 0123456789 >"conftest.in"
5103  while :
5104  do
5105    cat "conftest.in" "conftest.in" >"conftest.tmp"
5106    mv "conftest.tmp" "conftest.in"
5107    cp "conftest.in" "conftest.nl"
5108    $as_echo '' >> "conftest.nl"
5109    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5110    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5111    as_fn_arith $ac_count + 1 && ac_count=$as_val
5112    if test $ac_count -gt ${ac_path_SED_max-0}; then
5113      # Best one so far, save it but keep looking for a better one
5114      ac_cv_path_SED="$ac_path_SED"
5115      ac_path_SED_max=$ac_count
5116    fi
5117    # 10*(2^10) chars as input seems more than enough
5118    test $ac_count -gt 10 && break
5119  done
5120  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5121esac
5122
5123      $ac_path_SED_found && break 3
5124    done
5125  done
5126  done
5127IFS=$as_save_IFS
5128  if test -z "$ac_cv_path_SED"; then
5129    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5130  fi
5131else
5132  ac_cv_path_SED=$SED
5133fi
5134
5135fi
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5137$as_echo "$ac_cv_path_SED" >&6; }
5138 SED="$ac_cv_path_SED"
5139  rm -f conftest.sed
5140
5141test -z "$SED" && SED=sed
5142Xsed="$SED -e 1s/^X//"
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5155$as_echo_n "checking for fgrep... " >&6; }
5156if ${ac_cv_path_FGREP+:} false; then :
5157  $as_echo_n "(cached) " >&6
5158else
5159  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5160   then ac_cv_path_FGREP="$GREP -F"
5161   else
5162     if test -z "$FGREP"; then
5163  ac_path_FGREP_found=false
5164  # Loop through the user's path and test for each of PROGNAME-LIST
5165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5167do
5168  IFS=$as_save_IFS
5169  test -z "$as_dir" && as_dir=.
5170    for ac_prog in fgrep; do
5171    for ac_exec_ext in '' $ac_executable_extensions; do
5172      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5173      as_fn_executable_p "$ac_path_FGREP" || continue
5174# Check for GNU ac_path_FGREP and select it if it is found.
5175  # Check for GNU $ac_path_FGREP
5176case `"$ac_path_FGREP" --version 2>&1` in
5177*GNU*)
5178  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5179*)
5180  ac_count=0
5181  $as_echo_n 0123456789 >"conftest.in"
5182  while :
5183  do
5184    cat "conftest.in" "conftest.in" >"conftest.tmp"
5185    mv "conftest.tmp" "conftest.in"
5186    cp "conftest.in" "conftest.nl"
5187    $as_echo 'FGREP' >> "conftest.nl"
5188    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5189    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5190    as_fn_arith $ac_count + 1 && ac_count=$as_val
5191    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5192      # Best one so far, save it but keep looking for a better one
5193      ac_cv_path_FGREP="$ac_path_FGREP"
5194      ac_path_FGREP_max=$ac_count
5195    fi
5196    # 10*(2^10) chars as input seems more than enough
5197    test $ac_count -gt 10 && break
5198  done
5199  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5200esac
5201
5202      $ac_path_FGREP_found && break 3
5203    done
5204  done
5205  done
5206IFS=$as_save_IFS
5207  if test -z "$ac_cv_path_FGREP"; then
5208    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5209  fi
5210else
5211  ac_cv_path_FGREP=$FGREP
5212fi
5213
5214   fi
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5217$as_echo "$ac_cv_path_FGREP" >&6; }
5218 FGREP="$ac_cv_path_FGREP"
5219
5220
5221test -z "$GREP" && GREP=grep
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241# Check whether --with-gnu-ld was given.
5242if test "${with_gnu_ld+set}" = set; then :
5243  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5244else
5245  with_gnu_ld=no
5246fi
5247
5248ac_prog=ld
5249if test "$GCC" = yes; then
5250  # Check if gcc -print-prog-name=ld gives a path.
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5252$as_echo_n "checking for ld used by $CC... " >&6; }
5253  case $host in
5254  *-*-mingw*)
5255    # gcc leaves a trailing carriage return which upsets mingw
5256    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5257  *)
5258    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5259  esac
5260  case $ac_prog in
5261    # Accept absolute paths.
5262    [\\/]* | ?:[\\/]*)
5263      re_direlt='/[^/][^/]*/\.\./'
5264      # Canonicalize the pathname of ld
5265      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5266      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5267	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5268      done
5269      test -z "$LD" && LD="$ac_prog"
5270      ;;
5271  "")
5272    # If it fails, then pretend we aren't using GCC.
5273    ac_prog=ld
5274    ;;
5275  *)
5276    # If it is relative, then search for the first ld in PATH.
5277    with_gnu_ld=unknown
5278    ;;
5279  esac
5280elif test "$with_gnu_ld" = yes; then
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5282$as_echo_n "checking for GNU ld... " >&6; }
5283else
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5285$as_echo_n "checking for non-GNU ld... " >&6; }
5286fi
5287if ${lt_cv_path_LD+:} false; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290  if test -z "$LD"; then
5291  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5292  for ac_dir in $PATH; do
5293    IFS="$lt_save_ifs"
5294    test -z "$ac_dir" && ac_dir=.
5295    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5296      lt_cv_path_LD="$ac_dir/$ac_prog"
5297      # Check to see if the program is GNU ld.  I'd rather use --version,
5298      # but apparently some variants of GNU ld only accept -v.
5299      # Break only if it was the GNU/non-GNU ld that we prefer.
5300      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5301      *GNU* | *'with BFD'*)
5302	test "$with_gnu_ld" != no && break
5303	;;
5304      *)
5305	test "$with_gnu_ld" != yes && break
5306	;;
5307      esac
5308    fi
5309  done
5310  IFS="$lt_save_ifs"
5311else
5312  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5313fi
5314fi
5315
5316LD="$lt_cv_path_LD"
5317if test -n "$LD"; then
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5319$as_echo "$LD" >&6; }
5320else
5321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322$as_echo "no" >&6; }
5323fi
5324test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5326$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5327if ${lt_cv_prog_gnu_ld+:} false; then :
5328  $as_echo_n "(cached) " >&6
5329else
5330  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5331case `$LD -v 2>&1 </dev/null` in
5332*GNU* | *'with BFD'*)
5333  lt_cv_prog_gnu_ld=yes
5334  ;;
5335*)
5336  lt_cv_prog_gnu_ld=no
5337  ;;
5338esac
5339fi
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5341$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5342with_gnu_ld=$lt_cv_prog_gnu_ld
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5353$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5354if ${lt_cv_path_NM+:} false; then :
5355  $as_echo_n "(cached) " >&6
5356else
5357  if test -n "$NM"; then
5358  # Let the user override the test.
5359  lt_cv_path_NM="$NM"
5360else
5361  lt_nm_to_check="${ac_tool_prefix}nm"
5362  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5363    lt_nm_to_check="$lt_nm_to_check nm"
5364  fi
5365  for lt_tmp_nm in $lt_nm_to_check; do
5366    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5367    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5368      IFS="$lt_save_ifs"
5369      test -z "$ac_dir" && ac_dir=.
5370      tmp_nm="$ac_dir/$lt_tmp_nm"
5371      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5372	# Check to see if the nm accepts a BSD-compat flag.
5373	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5374	#   nm: unknown option "B" ignored
5375	# Tru64's nm complains that /dev/null is an invalid object file
5376	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5377	*/dev/null* | *'Invalid file or object type'*)
5378	  lt_cv_path_NM="$tmp_nm -B"
5379	  break
5380	  ;;
5381	*)
5382	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5383	  */dev/null*)
5384	    lt_cv_path_NM="$tmp_nm -p"
5385	    break
5386	    ;;
5387	  *)
5388	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5389	    continue # so that we can try to find one that supports BSD flags
5390	    ;;
5391	  esac
5392	  ;;
5393	esac
5394      fi
5395    done
5396    IFS="$lt_save_ifs"
5397  done
5398  : ${lt_cv_path_NM=no}
5399fi
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5402$as_echo "$lt_cv_path_NM" >&6; }
5403if test "$lt_cv_path_NM" != "no"; then
5404  NM="$lt_cv_path_NM"
5405else
5406  # Didn't find any BSD compatible name lister, look for dumpbin.
5407  if test -n "$DUMPBIN"; then :
5408    # Let the user override the test.
5409  else
5410    if test -n "$ac_tool_prefix"; then
5411  for ac_prog in dumpbin "link -dump"
5412  do
5413    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416$as_echo_n "checking for $ac_word... " >&6; }
5417if ${ac_cv_prog_DUMPBIN+:} false; then :
5418  $as_echo_n "(cached) " >&6
5419else
5420  if test -n "$DUMPBIN"; then
5421  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5422else
5423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426  IFS=$as_save_IFS
5427  test -z "$as_dir" && as_dir=.
5428    for ac_exec_ext in '' $ac_executable_extensions; do
5429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432    break 2
5433  fi
5434done
5435  done
5436IFS=$as_save_IFS
5437
5438fi
5439fi
5440DUMPBIN=$ac_cv_prog_DUMPBIN
5441if test -n "$DUMPBIN"; then
5442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5443$as_echo "$DUMPBIN" >&6; }
5444else
5445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446$as_echo "no" >&6; }
5447fi
5448
5449
5450    test -n "$DUMPBIN" && break
5451  done
5452fi
5453if test -z "$DUMPBIN"; then
5454  ac_ct_DUMPBIN=$DUMPBIN
5455  for ac_prog in dumpbin "link -dump"
5456do
5457  # Extract the first word of "$ac_prog", so it can be a program name with args.
5458set dummy $ac_prog; ac_word=$2
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460$as_echo_n "checking for $ac_word... " >&6; }
5461if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5462  $as_echo_n "(cached) " >&6
5463else
5464  if test -n "$ac_ct_DUMPBIN"; then
5465  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479  done
5480IFS=$as_save_IFS
5481
5482fi
5483fi
5484ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5485if test -n "$ac_ct_DUMPBIN"; then
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5487$as_echo "$ac_ct_DUMPBIN" >&6; }
5488else
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491fi
5492
5493
5494  test -n "$ac_ct_DUMPBIN" && break
5495done
5496
5497  if test "x$ac_ct_DUMPBIN" = x; then
5498    DUMPBIN=":"
5499  else
5500    case $cross_compiling:$ac_tool_warned in
5501yes:)
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504ac_tool_warned=yes ;;
5505esac
5506    DUMPBIN=$ac_ct_DUMPBIN
5507  fi
5508fi
5509
5510    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5511    *COFF*)
5512      DUMPBIN="$DUMPBIN -symbols"
5513      ;;
5514    *)
5515      DUMPBIN=:
5516      ;;
5517    esac
5518  fi
5519
5520  if test "$DUMPBIN" != ":"; then
5521    NM="$DUMPBIN"
5522  fi
5523fi
5524test -z "$NM" && NM=nm
5525
5526
5527
5528
5529
5530
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5532$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5533if ${lt_cv_nm_interface+:} false; then :
5534  $as_echo_n "(cached) " >&6
5535else
5536  lt_cv_nm_interface="BSD nm"
5537  echo "int some_variable = 0;" > conftest.$ac_ext
5538  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5539  (eval "$ac_compile" 2>conftest.err)
5540  cat conftest.err >&5
5541  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5542  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5543  cat conftest.err >&5
5544  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5545  cat conftest.out >&5
5546  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5547    lt_cv_nm_interface="MS dumpbin"
5548  fi
5549  rm -f conftest*
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5552$as_echo "$lt_cv_nm_interface" >&6; }
5553
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5555$as_echo_n "checking whether ln -s works... " >&6; }
5556LN_S=$as_ln_s
5557if test "$LN_S" = "ln -s"; then
5558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5559$as_echo "yes" >&6; }
5560else
5561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5562$as_echo "no, using $LN_S" >&6; }
5563fi
5564
5565# find the maximum length of command line arguments
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5567$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5568if ${lt_cv_sys_max_cmd_len+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571    i=0
5572  teststring="ABCD"
5573
5574  case $build_os in
5575  msdosdjgpp*)
5576    # On DJGPP, this test can blow up pretty badly due to problems in libc
5577    # (any single argument exceeding 2000 bytes causes a buffer overrun
5578    # during glob expansion).  Even if it were fixed, the result of this
5579    # check would be larger than it should be.
5580    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5581    ;;
5582
5583  gnu*)
5584    # Under GNU Hurd, this test is not required because there is
5585    # no limit to the length of command line arguments.
5586    # Libtool will interpret -1 as no limit whatsoever
5587    lt_cv_sys_max_cmd_len=-1;
5588    ;;
5589
5590  cygwin* | mingw* | cegcc*)
5591    # On Win9x/ME, this test blows up -- it succeeds, but takes
5592    # about 5 minutes as the teststring grows exponentially.
5593    # Worse, since 9x/ME are not pre-emptively multitasking,
5594    # you end up with a "frozen" computer, even though with patience
5595    # the test eventually succeeds (with a max line length of 256k).
5596    # Instead, let's just punt: use the minimum linelength reported by
5597    # all of the supported platforms: 8192 (on NT/2K/XP).
5598    lt_cv_sys_max_cmd_len=8192;
5599    ;;
5600
5601  mint*)
5602    # On MiNT this can take a long time and run out of memory.
5603    lt_cv_sys_max_cmd_len=8192;
5604    ;;
5605
5606  amigaos*)
5607    # On AmigaOS with pdksh, this test takes hours, literally.
5608    # So we just punt and use a minimum line length of 8192.
5609    lt_cv_sys_max_cmd_len=8192;
5610    ;;
5611
5612  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5613    # This has been around since 386BSD, at least.  Likely further.
5614    if test -x /sbin/sysctl; then
5615      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5616    elif test -x /usr/sbin/sysctl; then
5617      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5618    else
5619      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5620    fi
5621    # And add a safety zone
5622    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5623    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5624    ;;
5625
5626  interix*)
5627    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5628    lt_cv_sys_max_cmd_len=196608
5629    ;;
5630
5631  os2*)
5632    # The test takes a long time on OS/2.
5633    lt_cv_sys_max_cmd_len=8192
5634    ;;
5635
5636  osf*)
5637    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5638    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5639    # nice to cause kernel panics so lets avoid the loop below.
5640    # First set a reasonable default.
5641    lt_cv_sys_max_cmd_len=16384
5642    #
5643    if test -x /sbin/sysconfig; then
5644      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5645        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5646      esac
5647    fi
5648    ;;
5649  sco3.2v5*)
5650    lt_cv_sys_max_cmd_len=102400
5651    ;;
5652  sysv5* | sco5v6* | sysv4.2uw2*)
5653    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5654    if test -n "$kargmax"; then
5655      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5656    else
5657      lt_cv_sys_max_cmd_len=32768
5658    fi
5659    ;;
5660  *)
5661    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5662    if test -n "$lt_cv_sys_max_cmd_len"; then
5663      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5664      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5665    else
5666      # Make teststring a little bigger before we do anything with it.
5667      # a 1K string should be a reasonable start.
5668      for i in 1 2 3 4 5 6 7 8 ; do
5669        teststring=$teststring$teststring
5670      done
5671      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5672      # If test is not a shell built-in, we'll probably end up computing a
5673      # maximum length that is only half of the actual maximum length, but
5674      # we can't tell.
5675      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5676	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5677	      test $i != 17 # 1/2 MB should be enough
5678      do
5679        i=`expr $i + 1`
5680        teststring=$teststring$teststring
5681      done
5682      # Only check the string length outside the loop.
5683      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5684      teststring=
5685      # Add a significant safety factor because C++ compilers can tack on
5686      # massive amounts of additional arguments before passing them to the
5687      # linker.  It appears as though 1/2 is a usable value.
5688      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5689    fi
5690    ;;
5691  esac
5692
5693fi
5694
5695if test -n $lt_cv_sys_max_cmd_len ; then
5696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5697$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5698else
5699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5700$as_echo "none" >&6; }
5701fi
5702max_cmd_len=$lt_cv_sys_max_cmd_len
5703
5704
5705
5706
5707
5708
5709: ${CP="cp -f"}
5710: ${MV="mv -f"}
5711: ${RM="rm -f"}
5712
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5714$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5715# Try some XSI features
5716xsi_shell=no
5717( _lt_dummy="a/b/c"
5718  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5719      = c,a/b,b/c, \
5720    && eval 'test $(( 1 + 1 )) -eq 2 \
5721    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5722  && xsi_shell=yes
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5724$as_echo "$xsi_shell" >&6; }
5725
5726
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5728$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5729lt_shell_append=no
5730( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5731    >/dev/null 2>&1 \
5732  && lt_shell_append=yes
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5734$as_echo "$lt_shell_append" >&6; }
5735
5736
5737if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5738  lt_unset=unset
5739else
5740  lt_unset=false
5741fi
5742
5743
5744
5745
5746
5747# test EBCDIC or ASCII
5748case `echo X|tr X '\101'` in
5749 A) # ASCII based system
5750    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5751  lt_SP2NL='tr \040 \012'
5752  lt_NL2SP='tr \015\012 \040\040'
5753  ;;
5754 *) # EBCDIC based system
5755  lt_SP2NL='tr \100 \n'
5756  lt_NL2SP='tr \r\n \100\100'
5757  ;;
5758esac
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5769$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5770if ${lt_cv_to_host_file_cmd+:} false; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773  case $host in
5774  *-*-mingw* )
5775    case $build in
5776      *-*-mingw* ) # actually msys
5777        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5778        ;;
5779      *-*-cygwin* )
5780        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5781        ;;
5782      * ) # otherwise, assume *nix
5783        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5784        ;;
5785    esac
5786    ;;
5787  *-*-cygwin* )
5788    case $build in
5789      *-*-mingw* ) # actually msys
5790        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5791        ;;
5792      *-*-cygwin* )
5793        lt_cv_to_host_file_cmd=func_convert_file_noop
5794        ;;
5795      * ) # otherwise, assume *nix
5796        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5797        ;;
5798    esac
5799    ;;
5800  * ) # unhandled hosts (and "normal" native builds)
5801    lt_cv_to_host_file_cmd=func_convert_file_noop
5802    ;;
5803esac
5804
5805fi
5806
5807to_host_file_cmd=$lt_cv_to_host_file_cmd
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5809$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5810
5811
5812
5813
5814
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5816$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5817if ${lt_cv_to_tool_file_cmd+:} false; then :
5818  $as_echo_n "(cached) " >&6
5819else
5820  #assume ordinary cross tools, or native build.
5821lt_cv_to_tool_file_cmd=func_convert_file_noop
5822case $host in
5823  *-*-mingw* )
5824    case $build in
5825      *-*-mingw* ) # actually msys
5826        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5827        ;;
5828    esac
5829    ;;
5830esac
5831
5832fi
5833
5834to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5836$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5837
5838
5839
5840
5841
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5843$as_echo_n "checking for $LD option to reload object files... " >&6; }
5844if ${lt_cv_ld_reload_flag+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  lt_cv_ld_reload_flag='-r'
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5850$as_echo "$lt_cv_ld_reload_flag" >&6; }
5851reload_flag=$lt_cv_ld_reload_flag
5852case $reload_flag in
5853"" | " "*) ;;
5854*) reload_flag=" $reload_flag" ;;
5855esac
5856reload_cmds='$LD$reload_flag -o $output$reload_objs'
5857case $host_os in
5858  cygwin* | mingw* | pw32* | cegcc*)
5859    if test "$GCC" != yes; then
5860      reload_cmds=false
5861    fi
5862    ;;
5863  darwin*)
5864    if test "$GCC" = yes; then
5865      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5866    else
5867      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5868    fi
5869    ;;
5870esac
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880if test -n "$ac_tool_prefix"; then
5881  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5882set dummy ${ac_tool_prefix}objdump; ac_word=$2
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884$as_echo_n "checking for $ac_word... " >&6; }
5885if ${ac_cv_prog_OBJDUMP+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  if test -n "$OBJDUMP"; then
5889  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5890else
5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894  IFS=$as_save_IFS
5895  test -z "$as_dir" && as_dir=.
5896    for ac_exec_ext in '' $ac_executable_extensions; do
5897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900    break 2
5901  fi
5902done
5903  done
5904IFS=$as_save_IFS
5905
5906fi
5907fi
5908OBJDUMP=$ac_cv_prog_OBJDUMP
5909if test -n "$OBJDUMP"; then
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5911$as_echo "$OBJDUMP" >&6; }
5912else
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914$as_echo "no" >&6; }
5915fi
5916
5917
5918fi
5919if test -z "$ac_cv_prog_OBJDUMP"; then
5920  ac_ct_OBJDUMP=$OBJDUMP
5921  # Extract the first word of "objdump", so it can be a program name with args.
5922set dummy objdump; ac_word=$2
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924$as_echo_n "checking for $ac_word... " >&6; }
5925if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5926  $as_echo_n "(cached) " >&6
5927else
5928  if test -n "$ac_ct_OBJDUMP"; then
5929  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5930else
5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934  IFS=$as_save_IFS
5935  test -z "$as_dir" && as_dir=.
5936    for ac_exec_ext in '' $ac_executable_extensions; do
5937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940    break 2
5941  fi
5942done
5943  done
5944IFS=$as_save_IFS
5945
5946fi
5947fi
5948ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5949if test -n "$ac_ct_OBJDUMP"; then
5950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5951$as_echo "$ac_ct_OBJDUMP" >&6; }
5952else
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954$as_echo "no" >&6; }
5955fi
5956
5957  if test "x$ac_ct_OBJDUMP" = x; then
5958    OBJDUMP="false"
5959  else
5960    case $cross_compiling:$ac_tool_warned in
5961yes:)
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964ac_tool_warned=yes ;;
5965esac
5966    OBJDUMP=$ac_ct_OBJDUMP
5967  fi
5968else
5969  OBJDUMP="$ac_cv_prog_OBJDUMP"
5970fi
5971
5972test -z "$OBJDUMP" && OBJDUMP=objdump
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5983$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5984if ${lt_cv_deplibs_check_method+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  lt_cv_file_magic_cmd='$MAGIC_CMD'
5988lt_cv_file_magic_test_file=
5989lt_cv_deplibs_check_method='unknown'
5990# Need to set the preceding variable on all platforms that support
5991# interlibrary dependencies.
5992# 'none' -- dependencies not supported.
5993# `unknown' -- same as none, but documents that we really don't know.
5994# 'pass_all' -- all dependencies passed with no checks.
5995# 'test_compile' -- check by making test program.
5996# 'file_magic [[regex]]' -- check by looking for files in library path
5997# which responds to the $file_magic_cmd with a given extended regex.
5998# If you have `file' or equivalent on your system and you're not sure
5999# whether `pass_all' will *always* work, you probably want this one.
6000
6001case $host_os in
6002aix[4-9]*)
6003  lt_cv_deplibs_check_method=pass_all
6004  ;;
6005
6006beos*)
6007  lt_cv_deplibs_check_method=pass_all
6008  ;;
6009
6010bsdi[45]*)
6011  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6012  lt_cv_file_magic_cmd='/usr/bin/file -L'
6013  lt_cv_file_magic_test_file=/shlib/libc.so
6014  ;;
6015
6016cygwin*)
6017  # func_win32_libid is a shell function defined in ltmain.sh
6018  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6019  lt_cv_file_magic_cmd='func_win32_libid'
6020  ;;
6021
6022mingw* | pw32*)
6023  # Base MSYS/MinGW do not provide the 'file' command needed by
6024  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6025  # unless we find 'file', for example because we are cross-compiling.
6026  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6027  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6028    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6029    lt_cv_file_magic_cmd='func_win32_libid'
6030  else
6031    # Keep this pattern in sync with the one in func_win32_libid.
6032    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6033    lt_cv_file_magic_cmd='$OBJDUMP -f'
6034  fi
6035  ;;
6036
6037cegcc*)
6038  # use the weaker test based on 'objdump'. See mingw*.
6039  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6040  lt_cv_file_magic_cmd='$OBJDUMP -f'
6041  ;;
6042
6043darwin* | rhapsody*)
6044  lt_cv_deplibs_check_method=pass_all
6045  ;;
6046
6047freebsd* | dragonfly*)
6048  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6049    case $host_cpu in
6050    i*86 )
6051      # Not sure whether the presence of OpenBSD here was a mistake.
6052      # Let's accept both of them until this is cleared up.
6053      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6054      lt_cv_file_magic_cmd=/usr/bin/file
6055      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6056      ;;
6057    esac
6058  else
6059    lt_cv_deplibs_check_method=pass_all
6060  fi
6061  ;;
6062
6063gnu*)
6064  lt_cv_deplibs_check_method=pass_all
6065  ;;
6066
6067haiku*)
6068  lt_cv_deplibs_check_method=pass_all
6069  ;;
6070
6071hpux10.20* | hpux11*)
6072  lt_cv_file_magic_cmd=/usr/bin/file
6073  case $host_cpu in
6074  ia64*)
6075    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6076    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6077    ;;
6078  hppa*64*)
6079    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]'
6080    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6081    ;;
6082  *)
6083    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6084    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6085    ;;
6086  esac
6087  ;;
6088
6089interix[3-9]*)
6090  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6091  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6092  ;;
6093
6094irix5* | irix6* | nonstopux*)
6095  case $LD in
6096  *-32|*"-32 ") libmagic=32-bit;;
6097  *-n32|*"-n32 ") libmagic=N32;;
6098  *-64|*"-64 ") libmagic=64-bit;;
6099  *) libmagic=never-match;;
6100  esac
6101  lt_cv_deplibs_check_method=pass_all
6102  ;;
6103
6104# This must be glibc/ELF.
6105linux* | k*bsd*-gnu | kopensolaris*-gnu)
6106  lt_cv_deplibs_check_method=pass_all
6107  ;;
6108
6109netbsd*)
6110  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6111    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6112  else
6113    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6114  fi
6115  ;;
6116
6117newos6*)
6118  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6119  lt_cv_file_magic_cmd=/usr/bin/file
6120  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6121  ;;
6122
6123*nto* | *qnx*)
6124  lt_cv_deplibs_check_method=pass_all
6125  ;;
6126
6127openbsd*)
6128  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6129    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6130  else
6131    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6132  fi
6133  ;;
6134
6135osf3* | osf4* | osf5*)
6136  lt_cv_deplibs_check_method=pass_all
6137  ;;
6138
6139rdos*)
6140  lt_cv_deplibs_check_method=pass_all
6141  ;;
6142
6143solaris*)
6144  lt_cv_deplibs_check_method=pass_all
6145  ;;
6146
6147sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6148  lt_cv_deplibs_check_method=pass_all
6149  ;;
6150
6151sysv4 | sysv4.3*)
6152  case $host_vendor in
6153  motorola)
6154    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]'
6155    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6156    ;;
6157  ncr)
6158    lt_cv_deplibs_check_method=pass_all
6159    ;;
6160  sequent)
6161    lt_cv_file_magic_cmd='/bin/file'
6162    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6163    ;;
6164  sni)
6165    lt_cv_file_magic_cmd='/bin/file'
6166    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6167    lt_cv_file_magic_test_file=/lib/libc.so
6168    ;;
6169  siemens)
6170    lt_cv_deplibs_check_method=pass_all
6171    ;;
6172  pc)
6173    lt_cv_deplibs_check_method=pass_all
6174    ;;
6175  esac
6176  ;;
6177
6178tpf*)
6179  lt_cv_deplibs_check_method=pass_all
6180  ;;
6181esac
6182
6183fi
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6185$as_echo "$lt_cv_deplibs_check_method" >&6; }
6186
6187file_magic_glob=
6188want_nocaseglob=no
6189if test "$build" = "$host"; then
6190  case $host_os in
6191  mingw* | pw32*)
6192    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6193      want_nocaseglob=yes
6194    else
6195      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6196    fi
6197    ;;
6198  esac
6199fi
6200
6201file_magic_cmd=$lt_cv_file_magic_cmd
6202deplibs_check_method=$lt_cv_deplibs_check_method
6203test -z "$deplibs_check_method" && deplibs_check_method=unknown
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226if test -n "$ac_tool_prefix"; then
6227  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6228set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
6231if ${ac_cv_prog_DLLTOOL+:} false; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  if test -n "$DLLTOOL"; then
6235  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240  IFS=$as_save_IFS
6241  test -z "$as_dir" && as_dir=.
6242    for ac_exec_ext in '' $ac_executable_extensions; do
6243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246    break 2
6247  fi
6248done
6249  done
6250IFS=$as_save_IFS
6251
6252fi
6253fi
6254DLLTOOL=$ac_cv_prog_DLLTOOL
6255if test -n "$DLLTOOL"; then
6256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6257$as_echo "$DLLTOOL" >&6; }
6258else
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
6261fi
6262
6263
6264fi
6265if test -z "$ac_cv_prog_DLLTOOL"; then
6266  ac_ct_DLLTOOL=$DLLTOOL
6267  # Extract the first word of "dlltool", so it can be a program name with args.
6268set dummy dlltool; ac_word=$2
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270$as_echo_n "checking for $ac_word... " >&6; }
6271if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  if test -n "$ac_ct_DLLTOOL"; then
6275  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  test -z "$as_dir" && as_dir=.
6282    for ac_exec_ext in '' $ac_executable_extensions; do
6283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286    break 2
6287  fi
6288done
6289  done
6290IFS=$as_save_IFS
6291
6292fi
6293fi
6294ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6295if test -n "$ac_ct_DLLTOOL"; then
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6297$as_echo "$ac_ct_DLLTOOL" >&6; }
6298else
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300$as_echo "no" >&6; }
6301fi
6302
6303  if test "x$ac_ct_DLLTOOL" = x; then
6304    DLLTOOL="false"
6305  else
6306    case $cross_compiling:$ac_tool_warned in
6307yes:)
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310ac_tool_warned=yes ;;
6311esac
6312    DLLTOOL=$ac_ct_DLLTOOL
6313  fi
6314else
6315  DLLTOOL="$ac_cv_prog_DLLTOOL"
6316fi
6317
6318test -z "$DLLTOOL" && DLLTOOL=dlltool
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6330$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6331if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6332  $as_echo_n "(cached) " >&6
6333else
6334  lt_cv_sharedlib_from_linklib_cmd='unknown'
6335
6336case $host_os in
6337cygwin* | mingw* | pw32* | cegcc*)
6338  # two different shell functions defined in ltmain.sh
6339  # decide which to use based on capabilities of $DLLTOOL
6340  case `$DLLTOOL --help 2>&1` in
6341  *--identify-strict*)
6342    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6343    ;;
6344  *)
6345    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6346    ;;
6347  esac
6348  ;;
6349*)
6350  # fallback: assume linklib IS sharedlib
6351  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6352  ;;
6353esac
6354
6355fi
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6357$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6358sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6359test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6360
6361
6362
6363
6364
6365
6366
6367if test -n "$ac_tool_prefix"; then
6368  for ac_prog in ar
6369  do
6370    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6371set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373$as_echo_n "checking for $ac_word... " >&6; }
6374if ${ac_cv_prog_AR+:} false; then :
6375  $as_echo_n "(cached) " >&6
6376else
6377  if test -n "$AR"; then
6378  ac_cv_prog_AR="$AR" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383  IFS=$as_save_IFS
6384  test -z "$as_dir" && as_dir=.
6385    for ac_exec_ext in '' $ac_executable_extensions; do
6386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389    break 2
6390  fi
6391done
6392  done
6393IFS=$as_save_IFS
6394
6395fi
6396fi
6397AR=$ac_cv_prog_AR
6398if test -n "$AR"; then
6399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6400$as_echo "$AR" >&6; }
6401else
6402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
6406
6407    test -n "$AR" && break
6408  done
6409fi
6410if test -z "$AR"; then
6411  ac_ct_AR=$AR
6412  for ac_prog in ar
6413do
6414  # Extract the first word of "$ac_prog", so it can be a program name with args.
6415set dummy $ac_prog; ac_word=$2
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417$as_echo_n "checking for $ac_word... " >&6; }
6418if ${ac_cv_prog_ac_ct_AR+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  if test -n "$ac_ct_AR"; then
6422  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429    for ac_exec_ext in '' $ac_executable_extensions; do
6430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431    ac_cv_prog_ac_ct_AR="$ac_prog"
6432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436  done
6437IFS=$as_save_IFS
6438
6439fi
6440fi
6441ac_ct_AR=$ac_cv_prog_ac_ct_AR
6442if test -n "$ac_ct_AR"; then
6443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6444$as_echo "$ac_ct_AR" >&6; }
6445else
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
6448fi
6449
6450
6451  test -n "$ac_ct_AR" && break
6452done
6453
6454  if test "x$ac_ct_AR" = x; then
6455    AR="false"
6456  else
6457    case $cross_compiling:$ac_tool_warned in
6458yes:)
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461ac_tool_warned=yes ;;
6462esac
6463    AR=$ac_ct_AR
6464  fi
6465fi
6466
6467: ${AR=ar}
6468: ${AR_FLAGS=cru}
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6481$as_echo_n "checking for archiver @FILE support... " >&6; }
6482if ${lt_cv_ar_at_file+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  lt_cv_ar_at_file=no
6486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487/* end confdefs.h.  */
6488
6489int
6490main ()
6491{
6492
6493  ;
6494  return 0;
6495}
6496_ACEOF
6497if ac_fn_c_try_compile "$LINENO"; then :
6498  echo conftest.$ac_objext > conftest.lst
6499      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6500      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6501  (eval $lt_ar_try) 2>&5
6502  ac_status=$?
6503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504  test $ac_status = 0; }
6505      if test "$ac_status" -eq 0; then
6506	# Ensure the archiver fails upon bogus file names.
6507	rm -f conftest.$ac_objext libconftest.a
6508	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6509  (eval $lt_ar_try) 2>&5
6510  ac_status=$?
6511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512  test $ac_status = 0; }
6513	if test "$ac_status" -ne 0; then
6514          lt_cv_ar_at_file=@
6515        fi
6516      fi
6517      rm -f conftest.* libconftest.a
6518
6519fi
6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521
6522fi
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6524$as_echo "$lt_cv_ar_at_file" >&6; }
6525
6526if test "x$lt_cv_ar_at_file" = xno; then
6527  archiver_list_spec=
6528else
6529  archiver_list_spec=$lt_cv_ar_at_file
6530fi
6531
6532
6533
6534
6535
6536
6537
6538if test -n "$ac_tool_prefix"; then
6539  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6540set dummy ${ac_tool_prefix}strip; ac_word=$2
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542$as_echo_n "checking for $ac_word... " >&6; }
6543if ${ac_cv_prog_STRIP+:} false; then :
6544  $as_echo_n "(cached) " >&6
6545else
6546  if test -n "$STRIP"; then
6547  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552  IFS=$as_save_IFS
6553  test -z "$as_dir" && as_dir=.
6554    for ac_exec_ext in '' $ac_executable_extensions; do
6555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558    break 2
6559  fi
6560done
6561  done
6562IFS=$as_save_IFS
6563
6564fi
6565fi
6566STRIP=$ac_cv_prog_STRIP
6567if test -n "$STRIP"; then
6568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6569$as_echo "$STRIP" >&6; }
6570else
6571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572$as_echo "no" >&6; }
6573fi
6574
6575
6576fi
6577if test -z "$ac_cv_prog_STRIP"; then
6578  ac_ct_STRIP=$STRIP
6579  # Extract the first word of "strip", so it can be a program name with args.
6580set dummy strip; ac_word=$2
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582$as_echo_n "checking for $ac_word... " >&6; }
6583if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586  if test -n "$ac_ct_STRIP"; then
6587  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592  IFS=$as_save_IFS
6593  test -z "$as_dir" && as_dir=.
6594    for ac_exec_ext in '' $ac_executable_extensions; do
6595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596    ac_cv_prog_ac_ct_STRIP="strip"
6597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598    break 2
6599  fi
6600done
6601  done
6602IFS=$as_save_IFS
6603
6604fi
6605fi
6606ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6607if test -n "$ac_ct_STRIP"; then
6608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6609$as_echo "$ac_ct_STRIP" >&6; }
6610else
6611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612$as_echo "no" >&6; }
6613fi
6614
6615  if test "x$ac_ct_STRIP" = x; then
6616    STRIP=":"
6617  else
6618    case $cross_compiling:$ac_tool_warned in
6619yes:)
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622ac_tool_warned=yes ;;
6623esac
6624    STRIP=$ac_ct_STRIP
6625  fi
6626else
6627  STRIP="$ac_cv_prog_STRIP"
6628fi
6629
6630test -z "$STRIP" && STRIP=:
6631
6632
6633
6634
6635
6636
6637if test -n "$ac_tool_prefix"; then
6638  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6639set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641$as_echo_n "checking for $ac_word... " >&6; }
6642if ${ac_cv_prog_RANLIB+:} false; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  if test -n "$RANLIB"; then
6646  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651  IFS=$as_save_IFS
6652  test -z "$as_dir" && as_dir=.
6653    for ac_exec_ext in '' $ac_executable_extensions; do
6654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657    break 2
6658  fi
6659done
6660  done
6661IFS=$as_save_IFS
6662
6663fi
6664fi
6665RANLIB=$ac_cv_prog_RANLIB
6666if test -n "$RANLIB"; then
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6668$as_echo "$RANLIB" >&6; }
6669else
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671$as_echo "no" >&6; }
6672fi
6673
6674
6675fi
6676if test -z "$ac_cv_prog_RANLIB"; then
6677  ac_ct_RANLIB=$RANLIB
6678  # Extract the first word of "ranlib", so it can be a program name with args.
6679set dummy ranlib; ac_word=$2
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681$as_echo_n "checking for $ac_word... " >&6; }
6682if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6683  $as_echo_n "(cached) " >&6
6684else
6685  if test -n "$ac_ct_RANLIB"; then
6686  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6687else
6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691  IFS=$as_save_IFS
6692  test -z "$as_dir" && as_dir=.
6693    for ac_exec_ext in '' $ac_executable_extensions; do
6694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695    ac_cv_prog_ac_ct_RANLIB="ranlib"
6696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697    break 2
6698  fi
6699done
6700  done
6701IFS=$as_save_IFS
6702
6703fi
6704fi
6705ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6706if test -n "$ac_ct_RANLIB"; then
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6708$as_echo "$ac_ct_RANLIB" >&6; }
6709else
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711$as_echo "no" >&6; }
6712fi
6713
6714  if test "x$ac_ct_RANLIB" = x; then
6715    RANLIB=":"
6716  else
6717    case $cross_compiling:$ac_tool_warned in
6718yes:)
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721ac_tool_warned=yes ;;
6722esac
6723    RANLIB=$ac_ct_RANLIB
6724  fi
6725else
6726  RANLIB="$ac_cv_prog_RANLIB"
6727fi
6728
6729test -z "$RANLIB" && RANLIB=:
6730
6731
6732
6733
6734
6735
6736# Determine commands to create old-style static archives.
6737old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6738old_postinstall_cmds='chmod 644 $oldlib'
6739old_postuninstall_cmds=
6740
6741if test -n "$RANLIB"; then
6742  case $host_os in
6743  openbsd*)
6744    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6745    ;;
6746  *)
6747    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6748    ;;
6749  esac
6750  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6751fi
6752
6753case $host_os in
6754  darwin*)
6755    lock_old_archive_extraction=yes ;;
6756  *)
6757    lock_old_archive_extraction=no ;;
6758esac
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798# If no C compiler was specified, use CC.
6799LTCC=${LTCC-"$CC"}
6800
6801# If no C compiler flags were specified, use CFLAGS.
6802LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6803
6804# Allow CC to be a program name with arguments.
6805compiler=$CC
6806
6807
6808# Check for command to grab the raw symbol name followed by C symbol from nm.
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6810$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6811if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814
6815# These are sane defaults that work on at least a few old systems.
6816# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6817
6818# Character class describing NM global symbol codes.
6819symcode='[BCDEGRST]'
6820
6821# Regexp to match symbols that can be accessed directly from C.
6822sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6823
6824# Define system-specific variables.
6825case $host_os in
6826aix*)
6827  symcode='[BCDT]'
6828  ;;
6829cygwin* | mingw* | pw32* | cegcc*)
6830  symcode='[ABCDGISTW]'
6831  ;;
6832hpux*)
6833  if test "$host_cpu" = ia64; then
6834    symcode='[ABCDEGRST]'
6835  fi
6836  ;;
6837irix* | nonstopux*)
6838  symcode='[BCDEGRST]'
6839  ;;
6840osf*)
6841  symcode='[BCDEGQRST]'
6842  ;;
6843solaris*)
6844  symcode='[BDRT]'
6845  ;;
6846sco3.2v5*)
6847  symcode='[DT]'
6848  ;;
6849sysv4.2uw2*)
6850  symcode='[DT]'
6851  ;;
6852sysv5* | sco5v6* | unixware* | OpenUNIX*)
6853  symcode='[ABDT]'
6854  ;;
6855sysv4)
6856  symcode='[DFNSTU]'
6857  ;;
6858esac
6859
6860# If we're using GNU nm, then use its standard symbol codes.
6861case `$NM -V 2>&1` in
6862*GNU* | *'with BFD'*)
6863  symcode='[ABCDGIRSTW]' ;;
6864esac
6865
6866# Transform an extracted symbol line into a proper C declaration.
6867# Some systems (esp. on ia64) link data and code symbols differently,
6868# so use this general approach.
6869lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6870
6871# Transform an extracted symbol line into symbol name and symbol address
6872lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6873lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6874
6875# Handle CRLF in mingw tool chain
6876opt_cr=
6877case $build_os in
6878mingw*)
6879  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6880  ;;
6881esac
6882
6883# Try without a prefix underscore, then with it.
6884for ac_symprfx in "" "_"; do
6885
6886  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6887  symxfrm="\\1 $ac_symprfx\\2 \\2"
6888
6889  # Write the raw and C identifiers.
6890  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6891    # Fake it for dumpbin and say T for any non-static function
6892    # and D for any global variable.
6893    # Also find C++ and __fastcall symbols from MSVC++,
6894    # which start with @ or ?.
6895    lt_cv_sys_global_symbol_pipe="$AWK '"\
6896"     {last_section=section; section=\$ 3};"\
6897"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6898"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6899"     \$ 0!~/External *\|/{next};"\
6900"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6901"     {if(hide[section]) next};"\
6902"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6903"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6904"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6905"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6906"     ' prfx=^$ac_symprfx"
6907  else
6908    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6909  fi
6910  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6911
6912  # Check to see that the pipe works correctly.
6913  pipe_works=no
6914
6915  rm -f conftest*
6916  cat > conftest.$ac_ext <<_LT_EOF
6917#ifdef __cplusplus
6918extern "C" {
6919#endif
6920char nm_test_var;
6921void nm_test_func(void);
6922void nm_test_func(void){}
6923#ifdef __cplusplus
6924}
6925#endif
6926int main(){nm_test_var='a';nm_test_func();return(0);}
6927_LT_EOF
6928
6929  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930  (eval $ac_compile) 2>&5
6931  ac_status=$?
6932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933  test $ac_status = 0; }; then
6934    # Now try to grab the symbols.
6935    nlist=conftest.nm
6936    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6937  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6938  ac_status=$?
6939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940  test $ac_status = 0; } && test -s "$nlist"; then
6941      # Try sorting and uniquifying the output.
6942      if sort "$nlist" | uniq > "$nlist"T; then
6943	mv -f "$nlist"T "$nlist"
6944      else
6945	rm -f "$nlist"T
6946      fi
6947
6948      # Make sure that we snagged all the symbols we need.
6949      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6950	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6951	  cat <<_LT_EOF > conftest.$ac_ext
6952/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6953#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6954/* DATA imports from DLLs on WIN32 con't be const, because runtime
6955   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6956# define LT_DLSYM_CONST
6957#elif defined(__osf__)
6958/* This system does not cope well with relocations in const data.  */
6959# define LT_DLSYM_CONST
6960#else
6961# define LT_DLSYM_CONST const
6962#endif
6963
6964#ifdef __cplusplus
6965extern "C" {
6966#endif
6967
6968_LT_EOF
6969	  # Now generate the symbol file.
6970	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6971
6972	  cat <<_LT_EOF >> conftest.$ac_ext
6973
6974/* The mapping between symbol names and symbols.  */
6975LT_DLSYM_CONST struct {
6976  const char *name;
6977  void       *address;
6978}
6979lt__PROGRAM__LTX_preloaded_symbols[] =
6980{
6981  { "@PROGRAM@", (void *) 0 },
6982_LT_EOF
6983	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6984	  cat <<\_LT_EOF >> conftest.$ac_ext
6985  {0, (void *) 0}
6986};
6987
6988/* This works around a problem in FreeBSD linker */
6989#ifdef FREEBSD_WORKAROUND
6990static const void *lt_preloaded_setup() {
6991  return lt__PROGRAM__LTX_preloaded_symbols;
6992}
6993#endif
6994
6995#ifdef __cplusplus
6996}
6997#endif
6998_LT_EOF
6999	  # Now try linking the two files.
7000	  mv conftest.$ac_objext conftstm.$ac_objext
7001	  lt_globsym_save_LIBS=$LIBS
7002	  lt_globsym_save_CFLAGS=$CFLAGS
7003	  LIBS="conftstm.$ac_objext"
7004	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7005	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7006  (eval $ac_link) 2>&5
7007  ac_status=$?
7008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7010	    pipe_works=yes
7011	  fi
7012	  LIBS=$lt_globsym_save_LIBS
7013	  CFLAGS=$lt_globsym_save_CFLAGS
7014	else
7015	  echo "cannot find nm_test_func in $nlist" >&5
7016	fi
7017      else
7018	echo "cannot find nm_test_var in $nlist" >&5
7019      fi
7020    else
7021      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7022    fi
7023  else
7024    echo "$progname: failed program was:" >&5
7025    cat conftest.$ac_ext >&5
7026  fi
7027  rm -rf conftest* conftst*
7028
7029  # Do not use the global_symbol_pipe unless it works.
7030  if test "$pipe_works" = yes; then
7031    break
7032  else
7033    lt_cv_sys_global_symbol_pipe=
7034  fi
7035done
7036
7037fi
7038
7039if test -z "$lt_cv_sys_global_symbol_pipe"; then
7040  lt_cv_sys_global_symbol_to_cdecl=
7041fi
7042if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7044$as_echo "failed" >&6; }
7045else
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7047$as_echo "ok" >&6; }
7048fi
7049
7050# Response file support.
7051if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7052  nm_file_list_spec='@'
7053elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7054  nm_file_list_spec='@'
7055fi
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7084$as_echo_n "checking for sysroot... " >&6; }
7085
7086# Check whether --with-sysroot was given.
7087if test "${with_sysroot+set}" = set; then :
7088  withval=$with_sysroot;
7089else
7090  with_sysroot=no
7091fi
7092
7093
7094lt_sysroot=
7095case ${with_sysroot} in #(
7096 yes)
7097   if test "$GCC" = yes; then
7098     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7099   fi
7100   ;; #(
7101 /*)
7102   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7103   ;; #(
7104 no|'')
7105   ;; #(
7106 *)
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7108$as_echo "${with_sysroot}" >&6; }
7109   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7110   ;;
7111esac
7112
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7114$as_echo "${lt_sysroot:-no}" >&6; }
7115
7116
7117
7118
7119
7120# Check whether --enable-libtool-lock was given.
7121if test "${enable_libtool_lock+set}" = set; then :
7122  enableval=$enable_libtool_lock;
7123fi
7124
7125test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7126
7127# Some flags need to be propagated to the compiler or linker for good
7128# libtool support.
7129case $host in
7130ia64-*-hpux*)
7131  # Find out which ABI we are using.
7132  echo 'int i;' > conftest.$ac_ext
7133  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7134  (eval $ac_compile) 2>&5
7135  ac_status=$?
7136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137  test $ac_status = 0; }; then
7138    case `/usr/bin/file conftest.$ac_objext` in
7139      *ELF-32*)
7140	HPUX_IA64_MODE="32"
7141	;;
7142      *ELF-64*)
7143	HPUX_IA64_MODE="64"
7144	;;
7145    esac
7146  fi
7147  rm -rf conftest*
7148  ;;
7149*-*-irix6*)
7150  # Find out which ABI we are using.
7151  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7152  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7153  (eval $ac_compile) 2>&5
7154  ac_status=$?
7155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156  test $ac_status = 0; }; then
7157    if test "$lt_cv_prog_gnu_ld" = yes; then
7158      case `/usr/bin/file conftest.$ac_objext` in
7159	*32-bit*)
7160	  LD="${LD-ld} -melf32bsmip"
7161	  ;;
7162	*N32*)
7163	  LD="${LD-ld} -melf32bmipn32"
7164	  ;;
7165	*64-bit*)
7166	  LD="${LD-ld} -melf64bmip"
7167	;;
7168      esac
7169    else
7170      case `/usr/bin/file conftest.$ac_objext` in
7171	*32-bit*)
7172	  LD="${LD-ld} -32"
7173	  ;;
7174	*N32*)
7175	  LD="${LD-ld} -n32"
7176	  ;;
7177	*64-bit*)
7178	  LD="${LD-ld} -64"
7179	  ;;
7180      esac
7181    fi
7182  fi
7183  rm -rf conftest*
7184  ;;
7185
7186x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7187s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7188  # Find out which ABI we are using.
7189  echo 'int i;' > conftest.$ac_ext
7190  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7191  (eval $ac_compile) 2>&5
7192  ac_status=$?
7193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194  test $ac_status = 0; }; then
7195    case `/usr/bin/file conftest.o` in
7196      *32-bit*)
7197	case $host in
7198	  x86_64-*kfreebsd*-gnu)
7199	    LD="${LD-ld} -m elf_i386_fbsd"
7200	    ;;
7201	  x86_64-*linux*)
7202	    LD="${LD-ld} -m elf_i386"
7203	    ;;
7204	  ppc64-*linux*|powerpc64-*linux*)
7205	    LD="${LD-ld} -m elf32ppclinux"
7206	    ;;
7207	  s390x-*linux*)
7208	    LD="${LD-ld} -m elf_s390"
7209	    ;;
7210	  sparc64-*linux*)
7211	    LD="${LD-ld} -m elf32_sparc"
7212	    ;;
7213	esac
7214	;;
7215      *64-bit*)
7216	case $host in
7217	  x86_64-*kfreebsd*-gnu)
7218	    LD="${LD-ld} -m elf_x86_64_fbsd"
7219	    ;;
7220	  x86_64-*linux*)
7221	    LD="${LD-ld} -m elf_x86_64"
7222	    ;;
7223	  ppc*-*linux*|powerpc*-*linux*)
7224	    LD="${LD-ld} -m elf64ppc"
7225	    ;;
7226	  s390*-*linux*|s390*-*tpf*)
7227	    LD="${LD-ld} -m elf64_s390"
7228	    ;;
7229	  sparc*-*linux*)
7230	    LD="${LD-ld} -m elf64_sparc"
7231	    ;;
7232	esac
7233	;;
7234    esac
7235  fi
7236  rm -rf conftest*
7237  ;;
7238
7239*-*-sco3.2v5*)
7240  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7241  SAVE_CFLAGS="$CFLAGS"
7242  CFLAGS="$CFLAGS -belf"
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7244$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7245if ${lt_cv_cc_needs_belf+:} false; then :
7246  $as_echo_n "(cached) " >&6
7247else
7248  ac_ext=c
7249ac_cpp='$CPP $CPPFLAGS'
7250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253
7254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256
7257int
7258main ()
7259{
7260
7261  ;
7262  return 0;
7263}
7264_ACEOF
7265if ac_fn_c_try_link "$LINENO"; then :
7266  lt_cv_cc_needs_belf=yes
7267else
7268  lt_cv_cc_needs_belf=no
7269fi
7270rm -f core conftest.err conftest.$ac_objext \
7271    conftest$ac_exeext conftest.$ac_ext
7272     ac_ext=c
7273ac_cpp='$CPP $CPPFLAGS'
7274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277
7278fi
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7280$as_echo "$lt_cv_cc_needs_belf" >&6; }
7281  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7282    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7283    CFLAGS="$SAVE_CFLAGS"
7284  fi
7285  ;;
7286*-*solaris*)
7287  # Find out which ABI we are using.
7288  echo 'int i;' > conftest.$ac_ext
7289  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290  (eval $ac_compile) 2>&5
7291  ac_status=$?
7292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293  test $ac_status = 0; }; then
7294    case `/usr/bin/file conftest.o` in
7295    *64-bit*)
7296      case $lt_cv_prog_gnu_ld in
7297      yes*)
7298        case $host in
7299        i?86-*-solaris*)
7300          LD="${LD-ld} -m elf_x86_64"
7301          ;;
7302        sparc*-*-solaris*)
7303          LD="${LD-ld} -m elf64_sparc"
7304          ;;
7305        esac
7306        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7307        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7308          LD="${LD-ld}_sol2"
7309        fi
7310        ;;
7311      *)
7312	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7313	  LD="${LD-ld} -64"
7314	fi
7315	;;
7316      esac
7317      ;;
7318    esac
7319  fi
7320  rm -rf conftest*
7321  ;;
7322esac
7323
7324need_locks="$enable_libtool_lock"
7325
7326if test -n "$ac_tool_prefix"; then
7327  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7328set dummy ${ac_tool_prefix}mt; ac_word=$2
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  if test -n "$MANIFEST_TOOL"; then
7335  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340  IFS=$as_save_IFS
7341  test -z "$as_dir" && as_dir=.
7342    for ac_exec_ext in '' $ac_executable_extensions; do
7343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346    break 2
7347  fi
7348done
7349  done
7350IFS=$as_save_IFS
7351
7352fi
7353fi
7354MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7355if test -n "$MANIFEST_TOOL"; then
7356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7357$as_echo "$MANIFEST_TOOL" >&6; }
7358else
7359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360$as_echo "no" >&6; }
7361fi
7362
7363
7364fi
7365if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7366  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7367  # Extract the first word of "mt", so it can be a program name with args.
7368set dummy mt; ac_word=$2
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370$as_echo_n "checking for $ac_word... " >&6; }
7371if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374  if test -n "$ac_ct_MANIFEST_TOOL"; then
7375  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380  IFS=$as_save_IFS
7381  test -z "$as_dir" && as_dir=.
7382    for ac_exec_ext in '' $ac_executable_extensions; do
7383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386    break 2
7387  fi
7388done
7389  done
7390IFS=$as_save_IFS
7391
7392fi
7393fi
7394ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7395if test -n "$ac_ct_MANIFEST_TOOL"; then
7396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7397$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7398else
7399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
7401fi
7402
7403  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7404    MANIFEST_TOOL=":"
7405  else
7406    case $cross_compiling:$ac_tool_warned in
7407yes:)
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410ac_tool_warned=yes ;;
7411esac
7412    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7413  fi
7414else
7415  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7416fi
7417
7418test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7420$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7421if ${lt_cv_path_mainfest_tool+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  lt_cv_path_mainfest_tool=no
7425  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7426  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7427  cat conftest.err >&5
7428  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7429    lt_cv_path_mainfest_tool=yes
7430  fi
7431  rm -f conftest*
7432fi
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7434$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7435if test "x$lt_cv_path_mainfest_tool" != xyes; then
7436  MANIFEST_TOOL=:
7437fi
7438
7439
7440
7441
7442
7443
7444  case $host_os in
7445    rhapsody* | darwin*)
7446    if test -n "$ac_tool_prefix"; then
7447  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7448set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450$as_echo_n "checking for $ac_word... " >&6; }
7451if ${ac_cv_prog_DSYMUTIL+:} false; then :
7452  $as_echo_n "(cached) " >&6
7453else
7454  if test -n "$DSYMUTIL"; then
7455  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7456else
7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460  IFS=$as_save_IFS
7461  test -z "$as_dir" && as_dir=.
7462    for ac_exec_ext in '' $ac_executable_extensions; do
7463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466    break 2
7467  fi
7468done
7469  done
7470IFS=$as_save_IFS
7471
7472fi
7473fi
7474DSYMUTIL=$ac_cv_prog_DSYMUTIL
7475if test -n "$DSYMUTIL"; then
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7477$as_echo "$DSYMUTIL" >&6; }
7478else
7479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480$as_echo "no" >&6; }
7481fi
7482
7483
7484fi
7485if test -z "$ac_cv_prog_DSYMUTIL"; then
7486  ac_ct_DSYMUTIL=$DSYMUTIL
7487  # Extract the first word of "dsymutil", so it can be a program name with args.
7488set dummy dsymutil; ac_word=$2
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490$as_echo_n "checking for $ac_word... " >&6; }
7491if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7492  $as_echo_n "(cached) " >&6
7493else
7494  if test -n "$ac_ct_DSYMUTIL"; then
7495  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500  IFS=$as_save_IFS
7501  test -z "$as_dir" && as_dir=.
7502    for ac_exec_ext in '' $ac_executable_extensions; do
7503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506    break 2
7507  fi
7508done
7509  done
7510IFS=$as_save_IFS
7511
7512fi
7513fi
7514ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7515if test -n "$ac_ct_DSYMUTIL"; then
7516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7517$as_echo "$ac_ct_DSYMUTIL" >&6; }
7518else
7519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520$as_echo "no" >&6; }
7521fi
7522
7523  if test "x$ac_ct_DSYMUTIL" = x; then
7524    DSYMUTIL=":"
7525  else
7526    case $cross_compiling:$ac_tool_warned in
7527yes:)
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530ac_tool_warned=yes ;;
7531esac
7532    DSYMUTIL=$ac_ct_DSYMUTIL
7533  fi
7534else
7535  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7536fi
7537
7538    if test -n "$ac_tool_prefix"; then
7539  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7540set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542$as_echo_n "checking for $ac_word... " >&6; }
7543if ${ac_cv_prog_NMEDIT+:} false; then :
7544  $as_echo_n "(cached) " >&6
7545else
7546  if test -n "$NMEDIT"; then
7547  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7548else
7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552  IFS=$as_save_IFS
7553  test -z "$as_dir" && as_dir=.
7554    for ac_exec_ext in '' $ac_executable_extensions; do
7555  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7557    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558    break 2
7559  fi
7560done
7561  done
7562IFS=$as_save_IFS
7563
7564fi
7565fi
7566NMEDIT=$ac_cv_prog_NMEDIT
7567if test -n "$NMEDIT"; then
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7569$as_echo "$NMEDIT" >&6; }
7570else
7571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
7573fi
7574
7575
7576fi
7577if test -z "$ac_cv_prog_NMEDIT"; then
7578  ac_ct_NMEDIT=$NMEDIT
7579  # Extract the first word of "nmedit", so it can be a program name with args.
7580set dummy nmedit; ac_word=$2
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582$as_echo_n "checking for $ac_word... " >&6; }
7583if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7584  $as_echo_n "(cached) " >&6
7585else
7586  if test -n "$ac_ct_NMEDIT"; then
7587  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594    for ac_exec_ext in '' $ac_executable_extensions; do
7595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601  done
7602IFS=$as_save_IFS
7603
7604fi
7605fi
7606ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7607if test -n "$ac_ct_NMEDIT"; then
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7609$as_echo "$ac_ct_NMEDIT" >&6; }
7610else
7611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }
7613fi
7614
7615  if test "x$ac_ct_NMEDIT" = x; then
7616    NMEDIT=":"
7617  else
7618    case $cross_compiling:$ac_tool_warned in
7619yes:)
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622ac_tool_warned=yes ;;
7623esac
7624    NMEDIT=$ac_ct_NMEDIT
7625  fi
7626else
7627  NMEDIT="$ac_cv_prog_NMEDIT"
7628fi
7629
7630    if test -n "$ac_tool_prefix"; then
7631  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7632set dummy ${ac_tool_prefix}lipo; ac_word=$2
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634$as_echo_n "checking for $ac_word... " >&6; }
7635if ${ac_cv_prog_LIPO+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  if test -n "$LIPO"; then
7639  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7640else
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644  IFS=$as_save_IFS
7645  test -z "$as_dir" && as_dir=.
7646    for ac_exec_ext in '' $ac_executable_extensions; do
7647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650    break 2
7651  fi
7652done
7653  done
7654IFS=$as_save_IFS
7655
7656fi
7657fi
7658LIPO=$ac_cv_prog_LIPO
7659if test -n "$LIPO"; then
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7661$as_echo "$LIPO" >&6; }
7662else
7663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664$as_echo "no" >&6; }
7665fi
7666
7667
7668fi
7669if test -z "$ac_cv_prog_LIPO"; then
7670  ac_ct_LIPO=$LIPO
7671  # Extract the first word of "lipo", so it can be a program name with args.
7672set dummy lipo; ac_word=$2
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674$as_echo_n "checking for $ac_word... " >&6; }
7675if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  if test -n "$ac_ct_LIPO"; then
7679  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7680else
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684  IFS=$as_save_IFS
7685  test -z "$as_dir" && as_dir=.
7686    for ac_exec_ext in '' $ac_executable_extensions; do
7687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688    ac_cv_prog_ac_ct_LIPO="lipo"
7689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690    break 2
7691  fi
7692done
7693  done
7694IFS=$as_save_IFS
7695
7696fi
7697fi
7698ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7699if test -n "$ac_ct_LIPO"; then
7700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7701$as_echo "$ac_ct_LIPO" >&6; }
7702else
7703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705fi
7706
7707  if test "x$ac_ct_LIPO" = x; then
7708    LIPO=":"
7709  else
7710    case $cross_compiling:$ac_tool_warned in
7711yes:)
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7714ac_tool_warned=yes ;;
7715esac
7716    LIPO=$ac_ct_LIPO
7717  fi
7718else
7719  LIPO="$ac_cv_prog_LIPO"
7720fi
7721
7722    if test -n "$ac_tool_prefix"; then
7723  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7724set dummy ${ac_tool_prefix}otool; ac_word=$2
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726$as_echo_n "checking for $ac_word... " >&6; }
7727if ${ac_cv_prog_OTOOL+:} false; then :
7728  $as_echo_n "(cached) " >&6
7729else
7730  if test -n "$OTOOL"; then
7731  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7732else
7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736  IFS=$as_save_IFS
7737  test -z "$as_dir" && as_dir=.
7738    for ac_exec_ext in '' $ac_executable_extensions; do
7739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742    break 2
7743  fi
7744done
7745  done
7746IFS=$as_save_IFS
7747
7748fi
7749fi
7750OTOOL=$ac_cv_prog_OTOOL
7751if test -n "$OTOOL"; then
7752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7753$as_echo "$OTOOL" >&6; }
7754else
7755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
7757fi
7758
7759
7760fi
7761if test -z "$ac_cv_prog_OTOOL"; then
7762  ac_ct_OTOOL=$OTOOL
7763  # Extract the first word of "otool", so it can be a program name with args.
7764set dummy otool; ac_word=$2
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
7767if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7768  $as_echo_n "(cached) " >&6
7769else
7770  if test -n "$ac_ct_OTOOL"; then
7771  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7772else
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776  IFS=$as_save_IFS
7777  test -z "$as_dir" && as_dir=.
7778    for ac_exec_ext in '' $ac_executable_extensions; do
7779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780    ac_cv_prog_ac_ct_OTOOL="otool"
7781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782    break 2
7783  fi
7784done
7785  done
7786IFS=$as_save_IFS
7787
7788fi
7789fi
7790ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7791if test -n "$ac_ct_OTOOL"; then
7792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7793$as_echo "$ac_ct_OTOOL" >&6; }
7794else
7795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
7797fi
7798
7799  if test "x$ac_ct_OTOOL" = x; then
7800    OTOOL=":"
7801  else
7802    case $cross_compiling:$ac_tool_warned in
7803yes:)
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7806ac_tool_warned=yes ;;
7807esac
7808    OTOOL=$ac_ct_OTOOL
7809  fi
7810else
7811  OTOOL="$ac_cv_prog_OTOOL"
7812fi
7813
7814    if test -n "$ac_tool_prefix"; then
7815  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7816set dummy ${ac_tool_prefix}otool64; ac_word=$2
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818$as_echo_n "checking for $ac_word... " >&6; }
7819if ${ac_cv_prog_OTOOL64+:} false; then :
7820  $as_echo_n "(cached) " >&6
7821else
7822  if test -n "$OTOOL64"; then
7823  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7824else
7825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828  IFS=$as_save_IFS
7829  test -z "$as_dir" && as_dir=.
7830    for ac_exec_ext in '' $ac_executable_extensions; do
7831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834    break 2
7835  fi
7836done
7837  done
7838IFS=$as_save_IFS
7839
7840fi
7841fi
7842OTOOL64=$ac_cv_prog_OTOOL64
7843if test -n "$OTOOL64"; then
7844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7845$as_echo "$OTOOL64" >&6; }
7846else
7847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848$as_echo "no" >&6; }
7849fi
7850
7851
7852fi
7853if test -z "$ac_cv_prog_OTOOL64"; then
7854  ac_ct_OTOOL64=$OTOOL64
7855  # Extract the first word of "otool64", so it can be a program name with args.
7856set dummy otool64; ac_word=$2
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858$as_echo_n "checking for $ac_word... " >&6; }
7859if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  if test -n "$ac_ct_OTOOL64"; then
7863  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7864else
7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868  IFS=$as_save_IFS
7869  test -z "$as_dir" && as_dir=.
7870    for ac_exec_ext in '' $ac_executable_extensions; do
7871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872    ac_cv_prog_ac_ct_OTOOL64="otool64"
7873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874    break 2
7875  fi
7876done
7877  done
7878IFS=$as_save_IFS
7879
7880fi
7881fi
7882ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7883if test -n "$ac_ct_OTOOL64"; then
7884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7885$as_echo "$ac_ct_OTOOL64" >&6; }
7886else
7887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888$as_echo "no" >&6; }
7889fi
7890
7891  if test "x$ac_ct_OTOOL64" = x; then
7892    OTOOL64=":"
7893  else
7894    case $cross_compiling:$ac_tool_warned in
7895yes:)
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7898ac_tool_warned=yes ;;
7899esac
7900    OTOOL64=$ac_ct_OTOOL64
7901  fi
7902else
7903  OTOOL64="$ac_cv_prog_OTOOL64"
7904fi
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7933$as_echo_n "checking for -single_module linker flag... " >&6; }
7934if ${lt_cv_apple_cc_single_mod+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  lt_cv_apple_cc_single_mod=no
7938      if test -z "${LT_MULTI_MODULE}"; then
7939	# By default we will add the -single_module flag. You can override
7940	# by either setting the environment variable LT_MULTI_MODULE
7941	# non-empty at configure time, or by adding -multi_module to the
7942	# link flags.
7943	rm -rf libconftest.dylib*
7944	echo "int foo(void){return 1;}" > conftest.c
7945	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7946-dynamiclib -Wl,-single_module conftest.c" >&5
7947	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7948	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7949        _lt_result=$?
7950	# If there is a non-empty error log, and "single_module"
7951	# appears in it, assume the flag caused a linker warning
7952        if test -s conftest.err && $GREP single_module conftest.err; then
7953	  cat conftest.err >&5
7954	# Otherwise, if the output was created with a 0 exit code from
7955	# the compiler, it worked.
7956	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7957	  lt_cv_apple_cc_single_mod=yes
7958	else
7959	  cat conftest.err >&5
7960	fi
7961	rm -rf libconftest.dylib*
7962	rm -f conftest.*
7963      fi
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7966$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7967
7968    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7969$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7970if ${lt_cv_ld_exported_symbols_list+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  lt_cv_ld_exported_symbols_list=no
7974      save_LDFLAGS=$LDFLAGS
7975      echo "_main" > conftest.sym
7976      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7977      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979
7980int
7981main ()
7982{
7983
7984  ;
7985  return 0;
7986}
7987_ACEOF
7988if ac_fn_c_try_link "$LINENO"; then :
7989  lt_cv_ld_exported_symbols_list=yes
7990else
7991  lt_cv_ld_exported_symbols_list=no
7992fi
7993rm -f core conftest.err conftest.$ac_objext \
7994    conftest$ac_exeext conftest.$ac_ext
7995	LDFLAGS="$save_LDFLAGS"
7996
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7999$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8000
8001    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8002$as_echo_n "checking for -force_load linker flag... " >&6; }
8003if ${lt_cv_ld_force_load+:} false; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  lt_cv_ld_force_load=no
8007      cat > conftest.c << _LT_EOF
8008int forced_loaded() { return 2;}
8009_LT_EOF
8010      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8011      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8012      echo "$AR cru libconftest.a conftest.o" >&5
8013      $AR cru libconftest.a conftest.o 2>&5
8014      echo "$RANLIB libconftest.a" >&5
8015      $RANLIB libconftest.a 2>&5
8016      cat > conftest.c << _LT_EOF
8017int main() { return 0;}
8018_LT_EOF
8019      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8020      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8021      _lt_result=$?
8022      if test -s conftest.err && $GREP force_load conftest.err; then
8023	cat conftest.err >&5
8024      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8025	lt_cv_ld_force_load=yes
8026      else
8027	cat conftest.err >&5
8028      fi
8029        rm -f conftest.err libconftest.a conftest conftest.c
8030        rm -rf conftest.dSYM
8031
8032fi
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8034$as_echo "$lt_cv_ld_force_load" >&6; }
8035    case $host_os in
8036    rhapsody* | darwin1.[012])
8037      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8038    darwin1.*)
8039      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8040    darwin*) # darwin 5.x on
8041      # if running on 10.5 or later, the deployment target defaults
8042      # to the OS version, if on x86, and 10.4, the deployment
8043      # target defaults to 10.4. Don't you love it?
8044      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8045	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8046	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8047	10.[012]*)
8048	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8049	10.*)
8050	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8051      esac
8052    ;;
8053  esac
8054    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8055      _lt_dar_single_mod='$single_module'
8056    fi
8057    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8058      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8059    else
8060      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8061    fi
8062    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8063      _lt_dsymutil='~$DSYMUTIL $lib || :'
8064    else
8065      _lt_dsymutil=
8066    fi
8067    ;;
8068  esac
8069
8070for ac_header in dlfcn.h
8071do :
8072  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8073"
8074if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8075  cat >>confdefs.h <<_ACEOF
8076#define HAVE_DLFCN_H 1
8077_ACEOF
8078
8079fi
8080
8081done
8082
8083
8084
8085
8086
8087# Set options
8088
8089
8090
8091        enable_dlopen=no
8092
8093
8094  enable_win32_dll=no
8095
8096
8097            # Check whether --enable-shared was given.
8098if test "${enable_shared+set}" = set; then :
8099  enableval=$enable_shared; p=${PACKAGE-default}
8100    case $enableval in
8101    yes) enable_shared=yes ;;
8102    no) enable_shared=no ;;
8103    *)
8104      enable_shared=no
8105      # Look at the argument we got.  We use all the common list separators.
8106      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8107      for pkg in $enableval; do
8108	IFS="$lt_save_ifs"
8109	if test "X$pkg" = "X$p"; then
8110	  enable_shared=yes
8111	fi
8112      done
8113      IFS="$lt_save_ifs"
8114      ;;
8115    esac
8116else
8117  enable_shared=yes
8118fi
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128  # Check whether --enable-static was given.
8129if test "${enable_static+set}" = set; then :
8130  enableval=$enable_static; p=${PACKAGE-default}
8131    case $enableval in
8132    yes) enable_static=yes ;;
8133    no) enable_static=no ;;
8134    *)
8135     enable_static=no
8136      # Look at the argument we got.  We use all the common list separators.
8137      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8138      for pkg in $enableval; do
8139	IFS="$lt_save_ifs"
8140	if test "X$pkg" = "X$p"; then
8141	  enable_static=yes
8142	fi
8143      done
8144      IFS="$lt_save_ifs"
8145      ;;
8146    esac
8147else
8148  enable_static=yes
8149fi
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160# Check whether --with-pic was given.
8161if test "${with_pic+set}" = set; then :
8162  withval=$with_pic; lt_p=${PACKAGE-default}
8163    case $withval in
8164    yes|no) pic_mode=$withval ;;
8165    *)
8166      pic_mode=default
8167      # Look at the argument we got.  We use all the common list separators.
8168      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8169      for lt_pkg in $withval; do
8170	IFS="$lt_save_ifs"
8171	if test "X$lt_pkg" = "X$lt_p"; then
8172	  pic_mode=yes
8173	fi
8174      done
8175      IFS="$lt_save_ifs"
8176      ;;
8177    esac
8178else
8179  pic_mode=default
8180fi
8181
8182
8183test -z "$pic_mode" && pic_mode=default
8184
8185
8186
8187
8188
8189
8190
8191  # Check whether --enable-fast-install was given.
8192if test "${enable_fast_install+set}" = set; then :
8193  enableval=$enable_fast_install; p=${PACKAGE-default}
8194    case $enableval in
8195    yes) enable_fast_install=yes ;;
8196    no) enable_fast_install=no ;;
8197    *)
8198      enable_fast_install=no
8199      # Look at the argument we got.  We use all the common list separators.
8200      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8201      for pkg in $enableval; do
8202	IFS="$lt_save_ifs"
8203	if test "X$pkg" = "X$p"; then
8204	  enable_fast_install=yes
8205	fi
8206      done
8207      IFS="$lt_save_ifs"
8208      ;;
8209    esac
8210else
8211  enable_fast_install=yes
8212fi
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224# This can be used to rebuild libtool when needed
8225LIBTOOL_DEPS="$ltmain"
8226
8227# Always use our own libtool.
8228LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259test -z "$LN_S" && LN_S="ln -s"
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274if test -n "${ZSH_VERSION+set}" ; then
8275   setopt NO_GLOB_SUBST
8276fi
8277
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8279$as_echo_n "checking for objdir... " >&6; }
8280if ${lt_cv_objdir+:} false; then :
8281  $as_echo_n "(cached) " >&6
8282else
8283  rm -f .libs 2>/dev/null
8284mkdir .libs 2>/dev/null
8285if test -d .libs; then
8286  lt_cv_objdir=.libs
8287else
8288  # MS-DOS does not allow filenames that begin with a dot.
8289  lt_cv_objdir=_libs
8290fi
8291rmdir .libs 2>/dev/null
8292fi
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8294$as_echo "$lt_cv_objdir" >&6; }
8295objdir=$lt_cv_objdir
8296
8297
8298
8299
8300
8301cat >>confdefs.h <<_ACEOF
8302#define LT_OBJDIR "$lt_cv_objdir/"
8303_ACEOF
8304
8305
8306
8307
8308case $host_os in
8309aix3*)
8310  # AIX sometimes has problems with the GCC collect2 program.  For some
8311  # reason, if we set the COLLECT_NAMES environment variable, the problems
8312  # vanish in a puff of smoke.
8313  if test "X${COLLECT_NAMES+set}" != Xset; then
8314    COLLECT_NAMES=
8315    export COLLECT_NAMES
8316  fi
8317  ;;
8318esac
8319
8320# Global variables:
8321ofile=libtool
8322can_build_shared=yes
8323
8324# All known linkers require a `.a' archive for static linking (except MSVC,
8325# which needs '.lib').
8326libext=a
8327
8328with_gnu_ld="$lt_cv_prog_gnu_ld"
8329
8330old_CC="$CC"
8331old_CFLAGS="$CFLAGS"
8332
8333# Set sane defaults for various variables
8334test -z "$CC" && CC=cc
8335test -z "$LTCC" && LTCC=$CC
8336test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8337test -z "$LD" && LD=ld
8338test -z "$ac_objext" && ac_objext=o
8339
8340for cc_temp in $compiler""; do
8341  case $cc_temp in
8342    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8343    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8344    \-*) ;;
8345    *) break;;
8346  esac
8347done
8348cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8349
8350
8351# Only perform the check for file, if the check method requires it
8352test -z "$MAGIC_CMD" && MAGIC_CMD=file
8353case $deplibs_check_method in
8354file_magic*)
8355  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8356    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8357$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8358if ${lt_cv_path_MAGIC_CMD+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  case $MAGIC_CMD in
8362[\\/*] |  ?:[\\/]*)
8363  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8364  ;;
8365*)
8366  lt_save_MAGIC_CMD="$MAGIC_CMD"
8367  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8368  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8369  for ac_dir in $ac_dummy; do
8370    IFS="$lt_save_ifs"
8371    test -z "$ac_dir" && ac_dir=.
8372    if test -f $ac_dir/${ac_tool_prefix}file; then
8373      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8374      if test -n "$file_magic_test_file"; then
8375	case $deplibs_check_method in
8376	"file_magic "*)
8377	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8378	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8379	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8380	    $EGREP "$file_magic_regex" > /dev/null; then
8381	    :
8382	  else
8383	    cat <<_LT_EOF 1>&2
8384
8385*** Warning: the command libtool uses to detect shared libraries,
8386*** $file_magic_cmd, produces output that libtool cannot recognize.
8387*** The result is that libtool may fail to recognize shared libraries
8388*** as such.  This will affect the creation of libtool libraries that
8389*** depend on shared libraries, but programs linked with such libtool
8390*** libraries will work regardless of this problem.  Nevertheless, you
8391*** may want to report the problem to your system manager and/or to
8392*** bug-libtool@gnu.org
8393
8394_LT_EOF
8395	  fi ;;
8396	esac
8397      fi
8398      break
8399    fi
8400  done
8401  IFS="$lt_save_ifs"
8402  MAGIC_CMD="$lt_save_MAGIC_CMD"
8403  ;;
8404esac
8405fi
8406
8407MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8408if test -n "$MAGIC_CMD"; then
8409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8410$as_echo "$MAGIC_CMD" >&6; }
8411else
8412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
8414fi
8415
8416
8417
8418
8419
8420if test -z "$lt_cv_path_MAGIC_CMD"; then
8421  if test -n "$ac_tool_prefix"; then
8422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8423$as_echo_n "checking for file... " >&6; }
8424if ${lt_cv_path_MAGIC_CMD+:} false; then :
8425  $as_echo_n "(cached) " >&6
8426else
8427  case $MAGIC_CMD in
8428[\\/*] |  ?:[\\/]*)
8429  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8430  ;;
8431*)
8432  lt_save_MAGIC_CMD="$MAGIC_CMD"
8433  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8434  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8435  for ac_dir in $ac_dummy; do
8436    IFS="$lt_save_ifs"
8437    test -z "$ac_dir" && ac_dir=.
8438    if test -f $ac_dir/file; then
8439      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8440      if test -n "$file_magic_test_file"; then
8441	case $deplibs_check_method in
8442	"file_magic "*)
8443	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8444	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8445	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8446	    $EGREP "$file_magic_regex" > /dev/null; then
8447	    :
8448	  else
8449	    cat <<_LT_EOF 1>&2
8450
8451*** Warning: the command libtool uses to detect shared libraries,
8452*** $file_magic_cmd, produces output that libtool cannot recognize.
8453*** The result is that libtool may fail to recognize shared libraries
8454*** as such.  This will affect the creation of libtool libraries that
8455*** depend on shared libraries, but programs linked with such libtool
8456*** libraries will work regardless of this problem.  Nevertheless, you
8457*** may want to report the problem to your system manager and/or to
8458*** bug-libtool@gnu.org
8459
8460_LT_EOF
8461	  fi ;;
8462	esac
8463      fi
8464      break
8465    fi
8466  done
8467  IFS="$lt_save_ifs"
8468  MAGIC_CMD="$lt_save_MAGIC_CMD"
8469  ;;
8470esac
8471fi
8472
8473MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8474if test -n "$MAGIC_CMD"; then
8475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8476$as_echo "$MAGIC_CMD" >&6; }
8477else
8478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479$as_echo "no" >&6; }
8480fi
8481
8482
8483  else
8484    MAGIC_CMD=:
8485  fi
8486fi
8487
8488  fi
8489  ;;
8490esac
8491
8492# Use C for the default configuration in the libtool script
8493
8494lt_save_CC="$CC"
8495ac_ext=c
8496ac_cpp='$CPP $CPPFLAGS'
8497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500
8501
8502# Source file extension for C test sources.
8503ac_ext=c
8504
8505# Object file extension for compiled C test sources.
8506objext=o
8507objext=$objext
8508
8509# Code to be used in simple compile tests
8510lt_simple_compile_test_code="int some_variable = 0;"
8511
8512# Code to be used in simple link tests
8513lt_simple_link_test_code='int main(){return(0);}'
8514
8515
8516
8517
8518
8519
8520
8521# If no C compiler was specified, use CC.
8522LTCC=${LTCC-"$CC"}
8523
8524# If no C compiler flags were specified, use CFLAGS.
8525LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8526
8527# Allow CC to be a program name with arguments.
8528compiler=$CC
8529
8530# Save the default compiler, since it gets overwritten when the other
8531# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8532compiler_DEFAULT=$CC
8533
8534# save warnings/boilerplate of simple test code
8535ac_outfile=conftest.$ac_objext
8536echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8537eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8538_lt_compiler_boilerplate=`cat conftest.err`
8539$RM conftest*
8540
8541ac_outfile=conftest.$ac_objext
8542echo "$lt_simple_link_test_code" >conftest.$ac_ext
8543eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8544_lt_linker_boilerplate=`cat conftest.err`
8545$RM -r conftest*
8546
8547
8548if test -n "$compiler"; then
8549
8550lt_prog_compiler_no_builtin_flag=
8551
8552if test "$GCC" = yes; then
8553  case $cc_basename in
8554  nvcc*)
8555    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8556  *)
8557    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8558  esac
8559
8560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8561$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8562if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8563  $as_echo_n "(cached) " >&6
8564else
8565  lt_cv_prog_compiler_rtti_exceptions=no
8566   ac_outfile=conftest.$ac_objext
8567   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8568   lt_compiler_flag="-fno-rtti -fno-exceptions"
8569   # Insert the option either (1) after the last *FLAGS variable, or
8570   # (2) before a word containing "conftest.", or (3) at the end.
8571   # Note that $ac_compile itself does not contain backslashes and begins
8572   # with a dollar sign (not a hyphen), so the echo should work correctly.
8573   # The option is referenced via a variable to avoid confusing sed.
8574   lt_compile=`echo "$ac_compile" | $SED \
8575   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8577   -e 's:$: $lt_compiler_flag:'`
8578   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8579   (eval "$lt_compile" 2>conftest.err)
8580   ac_status=$?
8581   cat conftest.err >&5
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   if (exit $ac_status) && test -s "$ac_outfile"; then
8584     # The compiler can only warn and ignore the option if not recognized
8585     # So say no if there are warnings other than the usual output.
8586     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8587     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8588     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8589       lt_cv_prog_compiler_rtti_exceptions=yes
8590     fi
8591   fi
8592   $RM conftest*
8593
8594fi
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8596$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8597
8598if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8599    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8600else
8601    :
8602fi
8603
8604fi
8605
8606
8607
8608
8609
8610
8611  lt_prog_compiler_wl=
8612lt_prog_compiler_pic=
8613lt_prog_compiler_static=
8614
8615
8616  if test "$GCC" = yes; then
8617    lt_prog_compiler_wl='-Wl,'
8618    lt_prog_compiler_static='-static'
8619
8620    case $host_os in
8621      aix*)
8622      # All AIX code is PIC.
8623      if test "$host_cpu" = ia64; then
8624	# AIX 5 now supports IA64 processor
8625	lt_prog_compiler_static='-Bstatic'
8626      fi
8627      ;;
8628
8629    amigaos*)
8630      case $host_cpu in
8631      powerpc)
8632            # see comment about AmigaOS4 .so support
8633            lt_prog_compiler_pic='-fPIC'
8634        ;;
8635      m68k)
8636            # FIXME: we need at least 68020 code to build shared libraries, but
8637            # adding the `-m68020' flag to GCC prevents building anything better,
8638            # like `-m68040'.
8639            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8640        ;;
8641      esac
8642      ;;
8643
8644    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8645      # PIC is the default for these OSes.
8646      ;;
8647
8648    mingw* | cygwin* | pw32* | os2* | cegcc*)
8649      # This hack is so that the source file can tell whether it is being
8650      # built for inclusion in a dll (and should export symbols for example).
8651      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8652      # (--disable-auto-import) libraries
8653      lt_prog_compiler_pic='-DDLL_EXPORT'
8654      ;;
8655
8656    darwin* | rhapsody*)
8657      # PIC is the default on this platform
8658      # Common symbols not allowed in MH_DYLIB files
8659      lt_prog_compiler_pic='-fno-common'
8660      ;;
8661
8662    haiku*)
8663      # PIC is the default for Haiku.
8664      # The "-static" flag exists, but is broken.
8665      lt_prog_compiler_static=
8666      ;;
8667
8668    hpux*)
8669      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8670      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8671      # sets the default TLS model and affects inlining.
8672      case $host_cpu in
8673      hppa*64*)
8674	# +Z the default
8675	;;
8676      *)
8677	lt_prog_compiler_pic='-fPIC'
8678	;;
8679      esac
8680      ;;
8681
8682    interix[3-9]*)
8683      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8684      # Instead, we relocate shared libraries at runtime.
8685      ;;
8686
8687    msdosdjgpp*)
8688      # Just because we use GCC doesn't mean we suddenly get shared libraries
8689      # on systems that don't support them.
8690      lt_prog_compiler_can_build_shared=no
8691      enable_shared=no
8692      ;;
8693
8694    *nto* | *qnx*)
8695      # QNX uses GNU C++, but need to define -shared option too, otherwise
8696      # it will coredump.
8697      lt_prog_compiler_pic='-fPIC -shared'
8698      ;;
8699
8700    sysv4*MP*)
8701      if test -d /usr/nec; then
8702	lt_prog_compiler_pic=-Kconform_pic
8703      fi
8704      ;;
8705
8706    *)
8707      lt_prog_compiler_pic='-fPIC'
8708      ;;
8709    esac
8710
8711    case $cc_basename in
8712    nvcc*) # Cuda Compiler Driver 2.2
8713      lt_prog_compiler_wl='-Xlinker '
8714      if test -n "$lt_prog_compiler_pic"; then
8715        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8716      fi
8717      ;;
8718    esac
8719  else
8720    # PORTME Check for flag to pass linker flags through the system compiler.
8721    case $host_os in
8722    aix*)
8723      lt_prog_compiler_wl='-Wl,'
8724      if test "$host_cpu" = ia64; then
8725	# AIX 5 now supports IA64 processor
8726	lt_prog_compiler_static='-Bstatic'
8727      else
8728	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8729      fi
8730      ;;
8731
8732    mingw* | cygwin* | pw32* | os2* | cegcc*)
8733      # This hack is so that the source file can tell whether it is being
8734      # built for inclusion in a dll (and should export symbols for example).
8735      lt_prog_compiler_pic='-DDLL_EXPORT'
8736      ;;
8737
8738    hpux9* | hpux10* | hpux11*)
8739      lt_prog_compiler_wl='-Wl,'
8740      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8741      # not for PA HP-UX.
8742      case $host_cpu in
8743      hppa*64*|ia64*)
8744	# +Z the default
8745	;;
8746      *)
8747	lt_prog_compiler_pic='+Z'
8748	;;
8749      esac
8750      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8751      lt_prog_compiler_static='${wl}-a ${wl}archive'
8752      ;;
8753
8754    irix5* | irix6* | nonstopux*)
8755      lt_prog_compiler_wl='-Wl,'
8756      # PIC (with -KPIC) is the default.
8757      lt_prog_compiler_static='-non_shared'
8758      ;;
8759
8760    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8761      case $cc_basename in
8762      # old Intel for x86_64 which still supported -KPIC.
8763      ecc*)
8764	lt_prog_compiler_wl='-Wl,'
8765	lt_prog_compiler_pic='-KPIC'
8766	lt_prog_compiler_static='-static'
8767        ;;
8768      # icc used to be incompatible with GCC.
8769      # ICC 10 doesn't accept -KPIC any more.
8770      icc* | ifort*)
8771	lt_prog_compiler_wl='-Wl,'
8772	lt_prog_compiler_pic='-fPIC'
8773	lt_prog_compiler_static='-static'
8774        ;;
8775      # Lahey Fortran 8.1.
8776      lf95*)
8777	lt_prog_compiler_wl='-Wl,'
8778	lt_prog_compiler_pic='--shared'
8779	lt_prog_compiler_static='--static'
8780	;;
8781      nagfor*)
8782	# NAG Fortran compiler
8783	lt_prog_compiler_wl='-Wl,-Wl,,'
8784	lt_prog_compiler_pic='-PIC'
8785	lt_prog_compiler_static='-Bstatic'
8786	;;
8787      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8788        # Portland Group compilers (*not* the Pentium gcc compiler,
8789	# which looks to be a dead project)
8790	lt_prog_compiler_wl='-Wl,'
8791	lt_prog_compiler_pic='-fpic'
8792	lt_prog_compiler_static='-Bstatic'
8793        ;;
8794      ccc*)
8795        lt_prog_compiler_wl='-Wl,'
8796        # All Alpha code is PIC.
8797        lt_prog_compiler_static='-non_shared'
8798        ;;
8799      xl* | bgxl* | bgf* | mpixl*)
8800	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8801	lt_prog_compiler_wl='-Wl,'
8802	lt_prog_compiler_pic='-qpic'
8803	lt_prog_compiler_static='-qstaticlink'
8804	;;
8805      *)
8806	case `$CC -V 2>&1 | sed 5q` in
8807	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8808	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8809	  lt_prog_compiler_pic='-KPIC'
8810	  lt_prog_compiler_static='-Bstatic'
8811	  lt_prog_compiler_wl=''
8812	  ;;
8813	*Sun\ F* | *Sun*Fortran*)
8814	  lt_prog_compiler_pic='-KPIC'
8815	  lt_prog_compiler_static='-Bstatic'
8816	  lt_prog_compiler_wl='-Qoption ld '
8817	  ;;
8818	*Sun\ C*)
8819	  # Sun C 5.9
8820	  lt_prog_compiler_pic='-KPIC'
8821	  lt_prog_compiler_static='-Bstatic'
8822	  lt_prog_compiler_wl='-Wl,'
8823	  ;;
8824        *Intel*\ [CF]*Compiler*)
8825	  lt_prog_compiler_wl='-Wl,'
8826	  lt_prog_compiler_pic='-fPIC'
8827	  lt_prog_compiler_static='-static'
8828	  ;;
8829	*Portland\ Group*)
8830	  lt_prog_compiler_wl='-Wl,'
8831	  lt_prog_compiler_pic='-fpic'
8832	  lt_prog_compiler_static='-Bstatic'
8833	  ;;
8834	esac
8835	;;
8836      esac
8837      ;;
8838
8839    newsos6)
8840      lt_prog_compiler_pic='-KPIC'
8841      lt_prog_compiler_static='-Bstatic'
8842      ;;
8843
8844    *nto* | *qnx*)
8845      # QNX uses GNU C++, but need to define -shared option too, otherwise
8846      # it will coredump.
8847      lt_prog_compiler_pic='-fPIC -shared'
8848      ;;
8849
8850    osf3* | osf4* | osf5*)
8851      lt_prog_compiler_wl='-Wl,'
8852      # All OSF/1 code is PIC.
8853      lt_prog_compiler_static='-non_shared'
8854      ;;
8855
8856    rdos*)
8857      lt_prog_compiler_static='-non_shared'
8858      ;;
8859
8860    solaris*)
8861      lt_prog_compiler_pic='-KPIC'
8862      lt_prog_compiler_static='-Bstatic'
8863      case $cc_basename in
8864      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8865	lt_prog_compiler_wl='-Qoption ld ';;
8866      *)
8867	lt_prog_compiler_wl='-Wl,';;
8868      esac
8869      ;;
8870
8871    sunos4*)
8872      lt_prog_compiler_wl='-Qoption ld '
8873      lt_prog_compiler_pic='-PIC'
8874      lt_prog_compiler_static='-Bstatic'
8875      ;;
8876
8877    sysv4 | sysv4.2uw2* | sysv4.3*)
8878      lt_prog_compiler_wl='-Wl,'
8879      lt_prog_compiler_pic='-KPIC'
8880      lt_prog_compiler_static='-Bstatic'
8881      ;;
8882
8883    sysv4*MP*)
8884      if test -d /usr/nec ;then
8885	lt_prog_compiler_pic='-Kconform_pic'
8886	lt_prog_compiler_static='-Bstatic'
8887      fi
8888      ;;
8889
8890    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8891      lt_prog_compiler_wl='-Wl,'
8892      lt_prog_compiler_pic='-KPIC'
8893      lt_prog_compiler_static='-Bstatic'
8894      ;;
8895
8896    unicos*)
8897      lt_prog_compiler_wl='-Wl,'
8898      lt_prog_compiler_can_build_shared=no
8899      ;;
8900
8901    uts4*)
8902      lt_prog_compiler_pic='-pic'
8903      lt_prog_compiler_static='-Bstatic'
8904      ;;
8905
8906    *)
8907      lt_prog_compiler_can_build_shared=no
8908      ;;
8909    esac
8910  fi
8911
8912case $host_os in
8913  # For platforms which do not support PIC, -DPIC is meaningless:
8914  *djgpp*)
8915    lt_prog_compiler_pic=
8916    ;;
8917  *)
8918    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8919    ;;
8920esac
8921
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8923$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8924if ${lt_cv_prog_compiler_pic+:} false; then :
8925  $as_echo_n "(cached) " >&6
8926else
8927  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8928fi
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8930$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8931lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8932
8933#
8934# Check to make sure the PIC flag actually works.
8935#
8936if test -n "$lt_prog_compiler_pic"; then
8937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8938$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8939if ${lt_cv_prog_compiler_pic_works+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  lt_cv_prog_compiler_pic_works=no
8943   ac_outfile=conftest.$ac_objext
8944   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8945   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8946   # Insert the option either (1) after the last *FLAGS variable, or
8947   # (2) before a word containing "conftest.", or (3) at the end.
8948   # Note that $ac_compile itself does not contain backslashes and begins
8949   # with a dollar sign (not a hyphen), so the echo should work correctly.
8950   # The option is referenced via a variable to avoid confusing sed.
8951   lt_compile=`echo "$ac_compile" | $SED \
8952   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954   -e 's:$: $lt_compiler_flag:'`
8955   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8956   (eval "$lt_compile" 2>conftest.err)
8957   ac_status=$?
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   if (exit $ac_status) && test -s "$ac_outfile"; then
8961     # The compiler can only warn and ignore the option if not recognized
8962     # So say no if there are warnings other than the usual output.
8963     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8964     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8965     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8966       lt_cv_prog_compiler_pic_works=yes
8967     fi
8968   fi
8969   $RM conftest*
8970
8971fi
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8973$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8974
8975if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8976    case $lt_prog_compiler_pic in
8977     "" | " "*) ;;
8978     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8979     esac
8980else
8981    lt_prog_compiler_pic=
8982     lt_prog_compiler_can_build_shared=no
8983fi
8984
8985fi
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997#
8998# Check to make sure the static flag actually works.
8999#
9000wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9002$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9003if ${lt_cv_prog_compiler_static_works+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  lt_cv_prog_compiler_static_works=no
9007   save_LDFLAGS="$LDFLAGS"
9008   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9009   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9010   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9011     # The linker can only warn and ignore the option if not recognized
9012     # So say no if there are warnings
9013     if test -s conftest.err; then
9014       # Append any errors to the config.log.
9015       cat conftest.err 1>&5
9016       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9017       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9018       if diff conftest.exp conftest.er2 >/dev/null; then
9019         lt_cv_prog_compiler_static_works=yes
9020       fi
9021     else
9022       lt_cv_prog_compiler_static_works=yes
9023     fi
9024   fi
9025   $RM -r conftest*
9026   LDFLAGS="$save_LDFLAGS"
9027
9028fi
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9030$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9031
9032if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9033    :
9034else
9035    lt_prog_compiler_static=
9036fi
9037
9038
9039
9040
9041
9042
9043
9044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9045$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9046if ${lt_cv_prog_compiler_c_o+:} false; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  lt_cv_prog_compiler_c_o=no
9050   $RM -r conftest 2>/dev/null
9051   mkdir conftest
9052   cd conftest
9053   mkdir out
9054   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055
9056   lt_compiler_flag="-o out/conftest2.$ac_objext"
9057   # Insert the option either (1) after the last *FLAGS variable, or
9058   # (2) before a word containing "conftest.", or (3) at the end.
9059   # Note that $ac_compile itself does not contain backslashes and begins
9060   # with a dollar sign (not a hyphen), so the echo should work correctly.
9061   lt_compile=`echo "$ac_compile" | $SED \
9062   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064   -e 's:$: $lt_compiler_flag:'`
9065   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066   (eval "$lt_compile" 2>out/conftest.err)
9067   ac_status=$?
9068   cat out/conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9071   then
9072     # The compiler can only warn and ignore the option if not recognized
9073     # So say no if there are warnings
9074     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9075     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9076     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9077       lt_cv_prog_compiler_c_o=yes
9078     fi
9079   fi
9080   chmod u+w . 2>&5
9081   $RM conftest*
9082   # SGI C++ compiler will create directory out/ii_files/ for
9083   # template instantiation
9084   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9085   $RM out/* && rmdir out
9086   cd ..
9087   $RM -r conftest
9088   $RM conftest*
9089
9090fi
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9092$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9093
9094
9095
9096
9097
9098
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9100$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9101if ${lt_cv_prog_compiler_c_o+:} false; then :
9102  $as_echo_n "(cached) " >&6
9103else
9104  lt_cv_prog_compiler_c_o=no
9105   $RM -r conftest 2>/dev/null
9106   mkdir conftest
9107   cd conftest
9108   mkdir out
9109   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9110
9111   lt_compiler_flag="-o out/conftest2.$ac_objext"
9112   # Insert the option either (1) after the last *FLAGS variable, or
9113   # (2) before a word containing "conftest.", or (3) at the end.
9114   # Note that $ac_compile itself does not contain backslashes and begins
9115   # with a dollar sign (not a hyphen), so the echo should work correctly.
9116   lt_compile=`echo "$ac_compile" | $SED \
9117   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9118   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9119   -e 's:$: $lt_compiler_flag:'`
9120   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9121   (eval "$lt_compile" 2>out/conftest.err)
9122   ac_status=$?
9123   cat out/conftest.err >&5
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9126   then
9127     # The compiler can only warn and ignore the option if not recognized
9128     # So say no if there are warnings
9129     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9130     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9131     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9132       lt_cv_prog_compiler_c_o=yes
9133     fi
9134   fi
9135   chmod u+w . 2>&5
9136   $RM conftest*
9137   # SGI C++ compiler will create directory out/ii_files/ for
9138   # template instantiation
9139   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9140   $RM out/* && rmdir out
9141   cd ..
9142   $RM -r conftest
9143   $RM conftest*
9144
9145fi
9146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9147$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9148
9149
9150
9151
9152hard_links="nottested"
9153if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9154  # do not overwrite the value of need_locks provided by the user
9155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9156$as_echo_n "checking if we can lock with hard links... " >&6; }
9157  hard_links=yes
9158  $RM conftest*
9159  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9160  touch conftest.a
9161  ln conftest.a conftest.b 2>&5 || hard_links=no
9162  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9164$as_echo "$hard_links" >&6; }
9165  if test "$hard_links" = no; then
9166    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9167$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9168    need_locks=warn
9169  fi
9170else
9171  need_locks=no
9172fi
9173
9174
9175
9176
9177
9178
9179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9180$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9181
9182  runpath_var=
9183  allow_undefined_flag=
9184  always_export_symbols=no
9185  archive_cmds=
9186  archive_expsym_cmds=
9187  compiler_needs_object=no
9188  enable_shared_with_static_runtimes=no
9189  export_dynamic_flag_spec=
9190  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9191  hardcode_automatic=no
9192  hardcode_direct=no
9193  hardcode_direct_absolute=no
9194  hardcode_libdir_flag_spec=
9195  hardcode_libdir_separator=
9196  hardcode_minus_L=no
9197  hardcode_shlibpath_var=unsupported
9198  inherit_rpath=no
9199  link_all_deplibs=unknown
9200  module_cmds=
9201  module_expsym_cmds=
9202  old_archive_from_new_cmds=
9203  old_archive_from_expsyms_cmds=
9204  thread_safe_flag_spec=
9205  whole_archive_flag_spec=
9206  # include_expsyms should be a list of space-separated symbols to be *always*
9207  # included in the symbol list
9208  include_expsyms=
9209  # exclude_expsyms can be an extended regexp of symbols to exclude
9210  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9211  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9212  # as well as any symbol that contains `d'.
9213  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9214  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9215  # platforms (ab)use it in PIC code, but their linkers get confused if
9216  # the symbol is explicitly referenced.  Since portable code cannot
9217  # rely on this symbol name, it's probably fine to never include it in
9218  # preloaded symbol tables.
9219  # Exclude shared library initialization/finalization symbols.
9220  extract_expsyms_cmds=
9221
9222  case $host_os in
9223  cygwin* | mingw* | pw32* | cegcc*)
9224    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9225    # When not using gcc, we currently assume that we are using
9226    # Microsoft Visual C++.
9227    if test "$GCC" != yes; then
9228      with_gnu_ld=no
9229    fi
9230    ;;
9231  interix*)
9232    # we just hope/assume this is gcc and not c89 (= MSVC++)
9233    with_gnu_ld=yes
9234    ;;
9235  openbsd*)
9236    with_gnu_ld=no
9237    ;;
9238  esac
9239
9240  ld_shlibs=yes
9241
9242  # On some targets, GNU ld is compatible enough with the native linker
9243  # that we're better off using the native interface for both.
9244  lt_use_gnu_ld_interface=no
9245  if test "$with_gnu_ld" = yes; then
9246    case $host_os in
9247      aix*)
9248	# The AIX port of GNU ld has always aspired to compatibility
9249	# with the native linker.  However, as the warning in the GNU ld
9250	# block says, versions before 2.19.5* couldn't really create working
9251	# shared libraries, regardless of the interface used.
9252	case `$LD -v 2>&1` in
9253	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9254	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9255	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9256	  *)
9257	    lt_use_gnu_ld_interface=yes
9258	    ;;
9259	esac
9260	;;
9261      *)
9262	lt_use_gnu_ld_interface=yes
9263	;;
9264    esac
9265  fi
9266
9267  if test "$lt_use_gnu_ld_interface" = yes; then
9268    # If archive_cmds runs LD, not CC, wlarc should be empty
9269    wlarc='${wl}'
9270
9271    # Set some defaults for GNU ld with shared library support. These
9272    # are reset later if shared libraries are not supported. Putting them
9273    # here allows them to be overridden if necessary.
9274    runpath_var=LD_RUN_PATH
9275    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276    export_dynamic_flag_spec='${wl}--export-dynamic'
9277    # ancient GNU ld didn't support --whole-archive et. al.
9278    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9279      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9280    else
9281      whole_archive_flag_spec=
9282    fi
9283    supports_anon_versioning=no
9284    case `$LD -v 2>&1` in
9285      *GNU\ gold*) supports_anon_versioning=yes ;;
9286      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9287      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9288      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9289      *\ 2.11.*) ;; # other 2.11 versions
9290      *) supports_anon_versioning=yes ;;
9291    esac
9292
9293    # See if GNU ld supports shared libraries.
9294    case $host_os in
9295    aix[3-9]*)
9296      # On AIX/PPC, the GNU linker is very broken
9297      if test "$host_cpu" != ia64; then
9298	ld_shlibs=no
9299	cat <<_LT_EOF 1>&2
9300
9301*** Warning: the GNU linker, at least up to release 2.19, is reported
9302*** to be unable to reliably create shared libraries on AIX.
9303*** Therefore, libtool is disabling shared libraries support.  If you
9304*** really care for shared libraries, you may want to install binutils
9305*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9306*** You will then need to restart the configuration process.
9307
9308_LT_EOF
9309      fi
9310      ;;
9311
9312    amigaos*)
9313      case $host_cpu in
9314      powerpc)
9315            # see comment about AmigaOS4 .so support
9316            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317            archive_expsym_cmds=''
9318        ;;
9319      m68k)
9320            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)'
9321            hardcode_libdir_flag_spec='-L$libdir'
9322            hardcode_minus_L=yes
9323        ;;
9324      esac
9325      ;;
9326
9327    beos*)
9328      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9329	allow_undefined_flag=unsupported
9330	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9331	# support --undefined.  This deserves some investigation.  FIXME
9332	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333      else
9334	ld_shlibs=no
9335      fi
9336      ;;
9337
9338    cygwin* | mingw* | pw32* | cegcc*)
9339      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9340      # as there is no search path for DLLs.
9341      hardcode_libdir_flag_spec='-L$libdir'
9342      export_dynamic_flag_spec='${wl}--export-all-symbols'
9343      allow_undefined_flag=unsupported
9344      always_export_symbols=no
9345      enable_shared_with_static_runtimes=yes
9346      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'
9347      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9348
9349      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9350        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9351	# If the export-symbols file already is a .def file (1st line
9352	# is EXPORTS), use it as is; otherwise, prepend...
9353	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9354	  cp $export_symbols $output_objdir/$soname.def;
9355	else
9356	  echo EXPORTS > $output_objdir/$soname.def;
9357	  cat $export_symbols >> $output_objdir/$soname.def;
9358	fi~
9359	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9360      else
9361	ld_shlibs=no
9362      fi
9363      ;;
9364
9365    haiku*)
9366      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367      link_all_deplibs=yes
9368      ;;
9369
9370    interix[3-9]*)
9371      hardcode_direct=no
9372      hardcode_shlibpath_var=no
9373      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9374      export_dynamic_flag_spec='${wl}-E'
9375      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9376      # Instead, shared libraries are loaded at an image base (0x10000000 by
9377      # default) and relocated if they conflict, which is a slow very memory
9378      # consuming and fragmenting process.  To avoid this, we pick a random,
9379      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9380      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9381      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9382      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'
9383      ;;
9384
9385    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9386      tmp_diet=no
9387      if test "$host_os" = linux-dietlibc; then
9388	case $cc_basename in
9389	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9390	esac
9391      fi
9392      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9393	 && test "$tmp_diet" = no
9394      then
9395	tmp_addflag=' $pic_flag'
9396	tmp_sharedflag='-shared'
9397	case $cc_basename,$host_cpu in
9398        pgcc*)				# Portland Group C compiler
9399	  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'
9400	  tmp_addflag=' $pic_flag'
9401	  ;;
9402	pgf77* | pgf90* | pgf95* | pgfortran*)
9403					# Portland Group f77 and f90 compilers
9404	  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'
9405	  tmp_addflag=' $pic_flag -Mnomain' ;;
9406	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9407	  tmp_addflag=' -i_dynamic' ;;
9408	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9409	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9410	ifc* | ifort*)			# Intel Fortran compiler
9411	  tmp_addflag=' -nofor_main' ;;
9412	lf95*)				# Lahey Fortran 8.1
9413	  whole_archive_flag_spec=
9414	  tmp_sharedflag='--shared' ;;
9415	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9416	  tmp_sharedflag='-qmkshrobj'
9417	  tmp_addflag= ;;
9418	nvcc*)	# Cuda Compiler Driver 2.2
9419	  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'
9420	  compiler_needs_object=yes
9421	  ;;
9422	esac
9423	case `$CC -V 2>&1 | sed 5q` in
9424	*Sun\ C*)			# Sun C 5.9
9425	  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'
9426	  compiler_needs_object=yes
9427	  tmp_sharedflag='-G' ;;
9428	*Sun\ F*)			# Sun Fortran 8.3
9429	  tmp_sharedflag='-G' ;;
9430	esac
9431	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432
9433        if test "x$supports_anon_versioning" = xyes; then
9434          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9435	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9436	    echo "local: *; };" >> $output_objdir/$libname.ver~
9437	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9438        fi
9439
9440	case $cc_basename in
9441	xlf* | bgf* | bgxlf* | mpixlf*)
9442	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9443	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9444	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9446	  if test "x$supports_anon_versioning" = xyes; then
9447	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9448	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9449	      echo "local: *; };" >> $output_objdir/$libname.ver~
9450	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9451	  fi
9452	  ;;
9453	esac
9454      else
9455        ld_shlibs=no
9456      fi
9457      ;;
9458
9459    netbsd*)
9460      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9461	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9462	wlarc=
9463      else
9464	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466      fi
9467      ;;
9468
9469    solaris*)
9470      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9471	ld_shlibs=no
9472	cat <<_LT_EOF 1>&2
9473
9474*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9475*** create shared libraries on Solaris systems.  Therefore, libtool
9476*** is disabling shared libraries support.  We urge you to upgrade GNU
9477*** binutils to release 2.9.1 or newer.  Another option is to modify
9478*** your PATH or compiler configuration so that the native linker is
9479*** used, and then restart.
9480
9481_LT_EOF
9482      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485      else
9486	ld_shlibs=no
9487      fi
9488      ;;
9489
9490    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9491      case `$LD -v 2>&1` in
9492        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9493	ld_shlibs=no
9494	cat <<_LT_EOF 1>&2
9495
9496*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9497*** reliably create shared libraries on SCO systems.  Therefore, libtool
9498*** is disabling shared libraries support.  We urge you to upgrade GNU
9499*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9500*** your PATH or compiler configuration so that the native linker is
9501*** used, and then restart.
9502
9503_LT_EOF
9504	;;
9505	*)
9506	  # For security reasons, it is highly recommended that you always
9507	  # use absolute paths for naming shared libraries, and exclude the
9508	  # DT_RUNPATH tag from executables and libraries.  But doing so
9509	  # requires that you compile everything twice, which is a pain.
9510	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9511	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9512	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9513	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9514	  else
9515	    ld_shlibs=no
9516	  fi
9517	;;
9518      esac
9519      ;;
9520
9521    sunos4*)
9522      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9523      wlarc=
9524      hardcode_direct=yes
9525      hardcode_shlibpath_var=no
9526      ;;
9527
9528    *)
9529      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9530	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532      else
9533	ld_shlibs=no
9534      fi
9535      ;;
9536    esac
9537
9538    if test "$ld_shlibs" = no; then
9539      runpath_var=
9540      hardcode_libdir_flag_spec=
9541      export_dynamic_flag_spec=
9542      whole_archive_flag_spec=
9543    fi
9544  else
9545    # PORTME fill in a description of your system's linker (not GNU ld)
9546    case $host_os in
9547    aix3*)
9548      allow_undefined_flag=unsupported
9549      always_export_symbols=yes
9550      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'
9551      # Note: this linker hardcodes the directories in LIBPATH if there
9552      # are no directories specified by -L.
9553      hardcode_minus_L=yes
9554      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9555	# Neither direct hardcoding nor static linking is supported with a
9556	# broken collect2.
9557	hardcode_direct=unsupported
9558      fi
9559      ;;
9560
9561    aix[4-9]*)
9562      if test "$host_cpu" = ia64; then
9563	# On IA64, the linker does run time linking by default, so we don't
9564	# have to do anything special.
9565	aix_use_runtimelinking=no
9566	exp_sym_flag='-Bexport'
9567	no_entry_flag=""
9568      else
9569	# If we're using GNU nm, then we don't want the "-C" option.
9570	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9571	# Also, AIX nm treats weak defined symbols like other global
9572	# defined symbols, whereas GNU nm marks them as "W".
9573	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9574	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9575	else
9576	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9577	fi
9578	aix_use_runtimelinking=no
9579
9580	# Test if we are trying to use run time linking or normal
9581	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9582	# need to do runtime linking.
9583	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9584	  for ld_flag in $LDFLAGS; do
9585	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9586	    aix_use_runtimelinking=yes
9587	    break
9588	  fi
9589	  done
9590	  ;;
9591	esac
9592
9593	exp_sym_flag='-bexport'
9594	no_entry_flag='-bnoentry'
9595      fi
9596
9597      # When large executables or shared objects are built, AIX ld can
9598      # have problems creating the table of contents.  If linking a library
9599      # or program results in "error TOC overflow" add -mminimal-toc to
9600      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9601      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9602
9603      archive_cmds=''
9604      hardcode_direct=yes
9605      hardcode_direct_absolute=yes
9606      hardcode_libdir_separator=':'
9607      link_all_deplibs=yes
9608      file_list_spec='${wl}-f,'
9609
9610      if test "$GCC" = yes; then
9611	case $host_os in aix4.[012]|aix4.[012].*)
9612	# We only want to do this on AIX 4.2 and lower, the check
9613	# below for broken collect2 doesn't work under 4.3+
9614	  collect2name=`${CC} -print-prog-name=collect2`
9615	  if test -f "$collect2name" &&
9616	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9617	  then
9618	  # We have reworked collect2
9619	  :
9620	  else
9621	  # We have old collect2
9622	  hardcode_direct=unsupported
9623	  # It fails to find uninstalled libraries when the uninstalled
9624	  # path is not listed in the libpath.  Setting hardcode_minus_L
9625	  # to unsupported forces relinking
9626	  hardcode_minus_L=yes
9627	  hardcode_libdir_flag_spec='-L$libdir'
9628	  hardcode_libdir_separator=
9629	  fi
9630	  ;;
9631	esac
9632	shared_flag='-shared'
9633	if test "$aix_use_runtimelinking" = yes; then
9634	  shared_flag="$shared_flag "'${wl}-G'
9635	fi
9636      else
9637	# not using gcc
9638	if test "$host_cpu" = ia64; then
9639	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9640	# chokes on -Wl,-G. The following line is correct:
9641	  shared_flag='-G'
9642	else
9643	  if test "$aix_use_runtimelinking" = yes; then
9644	    shared_flag='${wl}-G'
9645	  else
9646	    shared_flag='${wl}-bM:SRE'
9647	  fi
9648	fi
9649      fi
9650
9651      export_dynamic_flag_spec='${wl}-bexpall'
9652      # It seems that -bexpall does not export symbols beginning with
9653      # underscore (_), so it is better to generate a list of symbols to export.
9654      always_export_symbols=yes
9655      if test "$aix_use_runtimelinking" = yes; then
9656	# Warning - without using the other runtime loading flags (-brtl),
9657	# -berok will link without error, but may produce a broken library.
9658	allow_undefined_flag='-berok'
9659        # Determine the default libpath from the value encoded in an
9660        # empty executable.
9661        if test "${lt_cv_aix_libpath+set}" = set; then
9662  aix_libpath=$lt_cv_aix_libpath
9663else
9664  if ${lt_cv_aix_libpath_+:} false; then :
9665  $as_echo_n "(cached) " >&6
9666else
9667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668/* end confdefs.h.  */
9669
9670int
9671main ()
9672{
9673
9674  ;
9675  return 0;
9676}
9677_ACEOF
9678if ac_fn_c_try_link "$LINENO"; then :
9679
9680  lt_aix_libpath_sed='
9681      /Import File Strings/,/^$/ {
9682	  /^0/ {
9683	      s/^0  *\([^ ]*\) *$/\1/
9684	      p
9685	  }
9686      }'
9687  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9688  # Check for a 64-bit object if we didn't find anything.
9689  if test -z "$lt_cv_aix_libpath_"; then
9690    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9691  fi
9692fi
9693rm -f core conftest.err conftest.$ac_objext \
9694    conftest$ac_exeext conftest.$ac_ext
9695  if test -z "$lt_cv_aix_libpath_"; then
9696    lt_cv_aix_libpath_="/usr/lib:/lib"
9697  fi
9698
9699fi
9700
9701  aix_libpath=$lt_cv_aix_libpath_
9702fi
9703
9704        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9705        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9706      else
9707	if test "$host_cpu" = ia64; then
9708	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9709	  allow_undefined_flag="-z nodefs"
9710	  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"
9711	else
9712	 # Determine the default libpath from the value encoded in an
9713	 # empty executable.
9714	 if test "${lt_cv_aix_libpath+set}" = set; then
9715  aix_libpath=$lt_cv_aix_libpath
9716else
9717  if ${lt_cv_aix_libpath_+:} false; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h.  */
9722
9723int
9724main ()
9725{
9726
9727  ;
9728  return 0;
9729}
9730_ACEOF
9731if ac_fn_c_try_link "$LINENO"; then :
9732
9733  lt_aix_libpath_sed='
9734      /Import File Strings/,/^$/ {
9735	  /^0/ {
9736	      s/^0  *\([^ ]*\) *$/\1/
9737	      p
9738	  }
9739      }'
9740  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9741  # Check for a 64-bit object if we didn't find anything.
9742  if test -z "$lt_cv_aix_libpath_"; then
9743    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744  fi
9745fi
9746rm -f core conftest.err conftest.$ac_objext \
9747    conftest$ac_exeext conftest.$ac_ext
9748  if test -z "$lt_cv_aix_libpath_"; then
9749    lt_cv_aix_libpath_="/usr/lib:/lib"
9750  fi
9751
9752fi
9753
9754  aix_libpath=$lt_cv_aix_libpath_
9755fi
9756
9757	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9758	  # Warning - without using the other run time loading flags,
9759	  # -berok will link without error, but may produce a broken library.
9760	  no_undefined_flag=' ${wl}-bernotok'
9761	  allow_undefined_flag=' ${wl}-berok'
9762	  if test "$with_gnu_ld" = yes; then
9763	    # We only use this code for GNU lds that support --whole-archive.
9764	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9765	  else
9766	    # Exported symbols can be pulled into shared objects from archives
9767	    whole_archive_flag_spec='$convenience'
9768	  fi
9769	  archive_cmds_need_lc=yes
9770	  # This is similar to how AIX traditionally builds its shared libraries.
9771	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9772	fi
9773      fi
9774      ;;
9775
9776    amigaos*)
9777      case $host_cpu in
9778      powerpc)
9779            # see comment about AmigaOS4 .so support
9780            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781            archive_expsym_cmds=''
9782        ;;
9783      m68k)
9784            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)'
9785            hardcode_libdir_flag_spec='-L$libdir'
9786            hardcode_minus_L=yes
9787        ;;
9788      esac
9789      ;;
9790
9791    bsdi[45]*)
9792      export_dynamic_flag_spec=-rdynamic
9793      ;;
9794
9795    cygwin* | mingw* | pw32* | cegcc*)
9796      # When not using gcc, we currently assume that we are using
9797      # Microsoft Visual C++.
9798      # hardcode_libdir_flag_spec is actually meaningless, as there is
9799      # no search path for DLLs.
9800      case $cc_basename in
9801      cl*)
9802	# Native MSVC
9803	hardcode_libdir_flag_spec=' '
9804	allow_undefined_flag=unsupported
9805	always_export_symbols=yes
9806	file_list_spec='@'
9807	# Tell ltmain to make .lib files, not .a files.
9808	libext=lib
9809	# Tell ltmain to make .dll files, not .so files.
9810	shrext_cmds=".dll"
9811	# FIXME: Setting linknames here is a bad hack.
9812	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9813	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9814	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9815	  else
9816	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9817	  fi~
9818	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9819	  linknames='
9820	# The linker will not automatically build a static lib if we build a DLL.
9821	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9822	enable_shared_with_static_runtimes=yes
9823	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9824	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9825	# Don't use ranlib
9826	old_postinstall_cmds='chmod 644 $oldlib'
9827	postlink_cmds='lt_outputfile="@OUTPUT@"~
9828	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9829	  case $lt_outputfile in
9830	    *.exe|*.EXE) ;;
9831	    *)
9832	      lt_outputfile="$lt_outputfile.exe"
9833	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9834	      ;;
9835	  esac~
9836	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9837	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9838	    $RM "$lt_outputfile.manifest";
9839	  fi'
9840	;;
9841      *)
9842	# Assume MSVC wrapper
9843	hardcode_libdir_flag_spec=' '
9844	allow_undefined_flag=unsupported
9845	# Tell ltmain to make .lib files, not .a files.
9846	libext=lib
9847	# Tell ltmain to make .dll files, not .so files.
9848	shrext_cmds=".dll"
9849	# FIXME: Setting linknames here is a bad hack.
9850	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9851	# The linker will automatically build a .lib file if we build a DLL.
9852	old_archive_from_new_cmds='true'
9853	# FIXME: Should let the user specify the lib program.
9854	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9855	enable_shared_with_static_runtimes=yes
9856	;;
9857      esac
9858      ;;
9859
9860    darwin* | rhapsody*)
9861
9862
9863  archive_cmds_need_lc=no
9864  hardcode_direct=no
9865  hardcode_automatic=yes
9866  hardcode_shlibpath_var=unsupported
9867  if test "$lt_cv_ld_force_load" = "yes"; then
9868    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\"`'
9869
9870  else
9871    whole_archive_flag_spec=''
9872  fi
9873  link_all_deplibs=yes
9874  allow_undefined_flag="$_lt_dar_allow_undefined"
9875  case $cc_basename in
9876     ifort*) _lt_dar_can_shared=yes ;;
9877     *) _lt_dar_can_shared=$GCC ;;
9878  esac
9879  if test "$_lt_dar_can_shared" = "yes"; then
9880    output_verbose_link_cmd=func_echo_all
9881    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9882    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9883    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}"
9884    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}"
9885
9886  else
9887  ld_shlibs=no
9888  fi
9889
9890      ;;
9891
9892    dgux*)
9893      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894      hardcode_libdir_flag_spec='-L$libdir'
9895      hardcode_shlibpath_var=no
9896      ;;
9897
9898    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9899    # support.  Future versions do this automatically, but an explicit c++rt0.o
9900    # does not break anything, and helps significantly (at the cost of a little
9901    # extra space).
9902    freebsd2.2*)
9903      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9904      hardcode_libdir_flag_spec='-R$libdir'
9905      hardcode_direct=yes
9906      hardcode_shlibpath_var=no
9907      ;;
9908
9909    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9910    freebsd2.*)
9911      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9912      hardcode_direct=yes
9913      hardcode_minus_L=yes
9914      hardcode_shlibpath_var=no
9915      ;;
9916
9917    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9918    freebsd* | dragonfly*)
9919      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920      hardcode_libdir_flag_spec='-R$libdir'
9921      hardcode_direct=yes
9922      hardcode_shlibpath_var=no
9923      ;;
9924
9925    hpux9*)
9926      if test "$GCC" = yes; then
9927	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9928      else
9929	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9930      fi
9931      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9932      hardcode_libdir_separator=:
9933      hardcode_direct=yes
9934
9935      # hardcode_minus_L: Not really in the search PATH,
9936      # but as the default location of the library.
9937      hardcode_minus_L=yes
9938      export_dynamic_flag_spec='${wl}-E'
9939      ;;
9940
9941    hpux10*)
9942      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9943	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9944      else
9945	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9946      fi
9947      if test "$with_gnu_ld" = no; then
9948	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9949	hardcode_libdir_separator=:
9950	hardcode_direct=yes
9951	hardcode_direct_absolute=yes
9952	export_dynamic_flag_spec='${wl}-E'
9953	# hardcode_minus_L: Not really in the search PATH,
9954	# but as the default location of the library.
9955	hardcode_minus_L=yes
9956      fi
9957      ;;
9958
9959    hpux11*)
9960      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9961	case $host_cpu in
9962	hppa*64*)
9963	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9964	  ;;
9965	ia64*)
9966	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9967	  ;;
9968	*)
9969	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9970	  ;;
9971	esac
9972      else
9973	case $host_cpu in
9974	hppa*64*)
9975	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9976	  ;;
9977	ia64*)
9978	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9979	  ;;
9980	*)
9981
9982	  # Older versions of the 11.00 compiler do not understand -b yet
9983	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9984	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9985$as_echo_n "checking if $CC understands -b... " >&6; }
9986if ${lt_cv_prog_compiler__b+:} false; then :
9987  $as_echo_n "(cached) " >&6
9988else
9989  lt_cv_prog_compiler__b=no
9990   save_LDFLAGS="$LDFLAGS"
9991   LDFLAGS="$LDFLAGS -b"
9992   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9993   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9994     # The linker can only warn and ignore the option if not recognized
9995     # So say no if there are warnings
9996     if test -s conftest.err; then
9997       # Append any errors to the config.log.
9998       cat conftest.err 1>&5
9999       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10000       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10001       if diff conftest.exp conftest.er2 >/dev/null; then
10002         lt_cv_prog_compiler__b=yes
10003       fi
10004     else
10005       lt_cv_prog_compiler__b=yes
10006     fi
10007   fi
10008   $RM -r conftest*
10009   LDFLAGS="$save_LDFLAGS"
10010
10011fi
10012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10013$as_echo "$lt_cv_prog_compiler__b" >&6; }
10014
10015if test x"$lt_cv_prog_compiler__b" = xyes; then
10016    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10017else
10018    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10019fi
10020
10021	  ;;
10022	esac
10023      fi
10024      if test "$with_gnu_ld" = no; then
10025	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10026	hardcode_libdir_separator=:
10027
10028	case $host_cpu in
10029	hppa*64*|ia64*)
10030	  hardcode_direct=no
10031	  hardcode_shlibpath_var=no
10032	  ;;
10033	*)
10034	  hardcode_direct=yes
10035	  hardcode_direct_absolute=yes
10036	  export_dynamic_flag_spec='${wl}-E'
10037
10038	  # hardcode_minus_L: Not really in the search PATH,
10039	  # but as the default location of the library.
10040	  hardcode_minus_L=yes
10041	  ;;
10042	esac
10043      fi
10044      ;;
10045
10046    irix5* | irix6* | nonstopux*)
10047      if test "$GCC" = yes; then
10048	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'
10049	# Try to use the -exported_symbol ld option, if it does not
10050	# work, assume that -exports_file does not work either and
10051	# implicitly export all symbols.
10052	# This should be the same for all languages, so no per-tag cache variable.
10053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10054$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10055if ${lt_cv_irix_exported_symbol+:} false; then :
10056  $as_echo_n "(cached) " >&6
10057else
10058  save_LDFLAGS="$LDFLAGS"
10059	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10060	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h.  */
10062int foo (void) { return 0; }
10063_ACEOF
10064if ac_fn_c_try_link "$LINENO"; then :
10065  lt_cv_irix_exported_symbol=yes
10066else
10067  lt_cv_irix_exported_symbol=no
10068fi
10069rm -f core conftest.err conftest.$ac_objext \
10070    conftest$ac_exeext conftest.$ac_ext
10071           LDFLAGS="$save_LDFLAGS"
10072fi
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10074$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10075	if test "$lt_cv_irix_exported_symbol" = yes; then
10076          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'
10077	fi
10078      else
10079	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'
10080	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'
10081      fi
10082      archive_cmds_need_lc='no'
10083      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10084      hardcode_libdir_separator=:
10085      inherit_rpath=yes
10086      link_all_deplibs=yes
10087      ;;
10088
10089    netbsd*)
10090      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10091	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10092      else
10093	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10094      fi
10095      hardcode_libdir_flag_spec='-R$libdir'
10096      hardcode_direct=yes
10097      hardcode_shlibpath_var=no
10098      ;;
10099
10100    newsos6)
10101      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102      hardcode_direct=yes
10103      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10104      hardcode_libdir_separator=:
10105      hardcode_shlibpath_var=no
10106      ;;
10107
10108    *nto* | *qnx*)
10109      ;;
10110
10111    openbsd*)
10112      if test -f /usr/libexec/ld.so; then
10113	hardcode_direct=yes
10114	hardcode_shlibpath_var=no
10115	hardcode_direct_absolute=yes
10116	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10117	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10118	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10119	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10120	  export_dynamic_flag_spec='${wl}-E'
10121	else
10122	  case $host_os in
10123	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10124	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10125	     hardcode_libdir_flag_spec='-R$libdir'
10126	     ;;
10127	   *)
10128	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10129	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10130	     ;;
10131	  esac
10132	fi
10133      else
10134	ld_shlibs=no
10135      fi
10136      ;;
10137
10138    os2*)
10139      hardcode_libdir_flag_spec='-L$libdir'
10140      hardcode_minus_L=yes
10141      allow_undefined_flag=unsupported
10142      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10143      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10144      ;;
10145
10146    osf3*)
10147      if test "$GCC" = yes; then
10148	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10149	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'
10150      else
10151	allow_undefined_flag=' -expect_unresolved \*'
10152	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'
10153      fi
10154      archive_cmds_need_lc='no'
10155      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10156      hardcode_libdir_separator=:
10157      ;;
10158
10159    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10160      if test "$GCC" = yes; then
10161	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10162	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'
10163	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10164      else
10165	allow_undefined_flag=' -expect_unresolved \*'
10166	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'
10167	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~
10168	$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'
10169
10170	# Both c and cxx compiler support -rpath directly
10171	hardcode_libdir_flag_spec='-rpath $libdir'
10172      fi
10173      archive_cmds_need_lc='no'
10174      hardcode_libdir_separator=:
10175      ;;
10176
10177    solaris*)
10178      no_undefined_flag=' -z defs'
10179      if test "$GCC" = yes; then
10180	wlarc='${wl}'
10181	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10182	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10183	  $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'
10184      else
10185	case `$CC -V 2>&1` in
10186	*"Compilers 5.0"*)
10187	  wlarc=''
10188	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10190	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10191	  ;;
10192	*)
10193	  wlarc='${wl}'
10194	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10195	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10196	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10197	  ;;
10198	esac
10199      fi
10200      hardcode_libdir_flag_spec='-R$libdir'
10201      hardcode_shlibpath_var=no
10202      case $host_os in
10203      solaris2.[0-5] | solaris2.[0-5].*) ;;
10204      *)
10205	# The compiler driver will combine and reorder linker options,
10206	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10207	# but is careful enough not to reorder.
10208	# Supported since Solaris 2.6 (maybe 2.5.1?)
10209	if test "$GCC" = yes; then
10210	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10211	else
10212	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10213	fi
10214	;;
10215      esac
10216      link_all_deplibs=yes
10217      ;;
10218
10219    sunos4*)
10220      if test "x$host_vendor" = xsequent; then
10221	# Use $CC to link under sequent, because it throws in some extra .o
10222	# files that make .init and .fini sections work.
10223	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10224      else
10225	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10226      fi
10227      hardcode_libdir_flag_spec='-L$libdir'
10228      hardcode_direct=yes
10229      hardcode_minus_L=yes
10230      hardcode_shlibpath_var=no
10231      ;;
10232
10233    sysv4)
10234      case $host_vendor in
10235	sni)
10236	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237	  hardcode_direct=yes # is this really true???
10238	;;
10239	siemens)
10240	  ## LD is ld it makes a PLAMLIB
10241	  ## CC just makes a GrossModule.
10242	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10243	  reload_cmds='$CC -r -o $output$reload_objs'
10244	  hardcode_direct=no
10245        ;;
10246	motorola)
10247	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10249	;;
10250      esac
10251      runpath_var='LD_RUN_PATH'
10252      hardcode_shlibpath_var=no
10253      ;;
10254
10255    sysv4.3*)
10256      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257      hardcode_shlibpath_var=no
10258      export_dynamic_flag_spec='-Bexport'
10259      ;;
10260
10261    sysv4*MP*)
10262      if test -d /usr/nec; then
10263	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264	hardcode_shlibpath_var=no
10265	runpath_var=LD_RUN_PATH
10266	hardcode_runpath_var=yes
10267	ld_shlibs=yes
10268      fi
10269      ;;
10270
10271    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10272      no_undefined_flag='${wl}-z,text'
10273      archive_cmds_need_lc=no
10274      hardcode_shlibpath_var=no
10275      runpath_var='LD_RUN_PATH'
10276
10277      if test "$GCC" = yes; then
10278	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10279	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280      else
10281	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283      fi
10284      ;;
10285
10286    sysv5* | sco3.2v5* | sco5v6*)
10287      # Note: We can NOT use -z defs as we might desire, because we do not
10288      # link with -lc, and that would cause any symbols used from libc to
10289      # always be unresolved, which means just about no library would
10290      # ever link correctly.  If we're not using GNU ld we use -z text
10291      # though, which does catch some bad symbols but isn't as heavy-handed
10292      # as -z defs.
10293      no_undefined_flag='${wl}-z,text'
10294      allow_undefined_flag='${wl}-z,nodefs'
10295      archive_cmds_need_lc=no
10296      hardcode_shlibpath_var=no
10297      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10298      hardcode_libdir_separator=':'
10299      link_all_deplibs=yes
10300      export_dynamic_flag_spec='${wl}-Bexport'
10301      runpath_var='LD_RUN_PATH'
10302
10303      if test "$GCC" = yes; then
10304	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10305	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10306      else
10307	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10308	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309      fi
10310      ;;
10311
10312    uts4*)
10313      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10314      hardcode_libdir_flag_spec='-L$libdir'
10315      hardcode_shlibpath_var=no
10316      ;;
10317
10318    *)
10319      ld_shlibs=no
10320      ;;
10321    esac
10322
10323    if test x$host_vendor = xsni; then
10324      case $host in
10325      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10326	export_dynamic_flag_spec='${wl}-Blargedynsym'
10327	;;
10328      esac
10329    fi
10330  fi
10331
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10333$as_echo "$ld_shlibs" >&6; }
10334test "$ld_shlibs" = no && can_build_shared=no
10335
10336with_gnu_ld=$with_gnu_ld
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352#
10353# Do we need to explicitly link libc?
10354#
10355case "x$archive_cmds_need_lc" in
10356x|xyes)
10357  # Assume -lc should be added
10358  archive_cmds_need_lc=yes
10359
10360  if test "$enable_shared" = yes && test "$GCC" = yes; then
10361    case $archive_cmds in
10362    *'~'*)
10363      # FIXME: we may have to deal with multi-command sequences.
10364      ;;
10365    '$CC '*)
10366      # Test whether the compiler implicitly links with -lc since on some
10367      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10368      # to ld, don't add -lc before -lgcc.
10369      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10370$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10371if ${lt_cv_archive_cmds_need_lc+:} false; then :
10372  $as_echo_n "(cached) " >&6
10373else
10374  $RM conftest*
10375	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10376
10377	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10378  (eval $ac_compile) 2>&5
10379  ac_status=$?
10380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10381  test $ac_status = 0; } 2>conftest.err; then
10382	  soname=conftest
10383	  lib=conftest
10384	  libobjs=conftest.$ac_objext
10385	  deplibs=
10386	  wl=$lt_prog_compiler_wl
10387	  pic_flag=$lt_prog_compiler_pic
10388	  compiler_flags=-v
10389	  linker_flags=-v
10390	  verstring=
10391	  output_objdir=.
10392	  libname=conftest
10393	  lt_save_allow_undefined_flag=$allow_undefined_flag
10394	  allow_undefined_flag=
10395	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10396  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10397  ac_status=$?
10398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10399  test $ac_status = 0; }
10400	  then
10401	    lt_cv_archive_cmds_need_lc=no
10402	  else
10403	    lt_cv_archive_cmds_need_lc=yes
10404	  fi
10405	  allow_undefined_flag=$lt_save_allow_undefined_flag
10406	else
10407	  cat conftest.err 1>&5
10408	fi
10409	$RM conftest*
10410
10411fi
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10413$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10414      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10415      ;;
10416    esac
10417  fi
10418  ;;
10419esac
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10573$as_echo_n "checking dynamic linker characteristics... " >&6; }
10574
10575if test "$GCC" = yes; then
10576  case $host_os in
10577    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10578    *) lt_awk_arg="/^libraries:/" ;;
10579  esac
10580  case $host_os in
10581    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10582    *) lt_sed_strip_eq="s,=/,/,g" ;;
10583  esac
10584  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10585  case $lt_search_path_spec in
10586  *\;*)
10587    # if the path contains ";" then we assume it to be the separator
10588    # otherwise default to the standard path separator (i.e. ":") - it is
10589    # assumed that no part of a normal pathname contains ";" but that should
10590    # okay in the real world where ";" in dirpaths is itself problematic.
10591    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10592    ;;
10593  *)
10594    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10595    ;;
10596  esac
10597  # Ok, now we have the path, separated by spaces, we can step through it
10598  # and add multilib dir if necessary.
10599  lt_tmp_lt_search_path_spec=
10600  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10601  for lt_sys_path in $lt_search_path_spec; do
10602    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10603      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10604    else
10605      test -d "$lt_sys_path" && \
10606	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10607    fi
10608  done
10609  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10610BEGIN {RS=" "; FS="/|\n";} {
10611  lt_foo="";
10612  lt_count=0;
10613  for (lt_i = NF; lt_i > 0; lt_i--) {
10614    if ($lt_i != "" && $lt_i != ".") {
10615      if ($lt_i == "..") {
10616        lt_count++;
10617      } else {
10618        if (lt_count == 0) {
10619          lt_foo="/" $lt_i lt_foo;
10620        } else {
10621          lt_count--;
10622        }
10623      }
10624    }
10625  }
10626  if (lt_foo != "") { lt_freq[lt_foo]++; }
10627  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10628}'`
10629  # AWK program above erroneously prepends '/' to C:/dos/paths
10630  # for these hosts.
10631  case $host_os in
10632    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10633      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10634  esac
10635  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10636else
10637  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10638fi
10639library_names_spec=
10640libname_spec='lib$name'
10641soname_spec=
10642shrext_cmds=".so"
10643postinstall_cmds=
10644postuninstall_cmds=
10645finish_cmds=
10646finish_eval=
10647shlibpath_var=
10648shlibpath_overrides_runpath=unknown
10649version_type=none
10650dynamic_linker="$host_os ld.so"
10651sys_lib_dlsearch_path_spec="/lib /usr/lib"
10652need_lib_prefix=unknown
10653hardcode_into_libs=no
10654
10655# when you set need_version to no, make sure it does not cause -set_version
10656# flags to be left without arguments
10657need_version=unknown
10658
10659case $host_os in
10660aix3*)
10661  version_type=linux # correct to gnu/linux during the next big refactor
10662  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10663  shlibpath_var=LIBPATH
10664
10665  # AIX 3 has no versioning support, so we append a major version to the name.
10666  soname_spec='${libname}${release}${shared_ext}$major'
10667  ;;
10668
10669aix[4-9]*)
10670  version_type=linux # correct to gnu/linux during the next big refactor
10671  need_lib_prefix=no
10672  need_version=no
10673  hardcode_into_libs=yes
10674  if test "$host_cpu" = ia64; then
10675    # AIX 5 supports IA64
10676    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10677    shlibpath_var=LD_LIBRARY_PATH
10678  else
10679    # With GCC up to 2.95.x, collect2 would create an import file
10680    # for dependence libraries.  The import file would start with
10681    # the line `#! .'.  This would cause the generated library to
10682    # depend on `.', always an invalid library.  This was fixed in
10683    # development snapshots of GCC prior to 3.0.
10684    case $host_os in
10685      aix4 | aix4.[01] | aix4.[01].*)
10686      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10687	   echo ' yes '
10688	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10689	:
10690      else
10691	can_build_shared=no
10692      fi
10693      ;;
10694    esac
10695    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10696    # soname into executable. Probably we can add versioning support to
10697    # collect2, so additional links can be useful in future.
10698    if test "$aix_use_runtimelinking" = yes; then
10699      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10700      # instead of lib<name>.a to let people know that these are not
10701      # typical AIX shared libraries.
10702      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703    else
10704      # We preserve .a as extension for shared libraries through AIX4.2
10705      # and later when we are not doing run time linking.
10706      library_names_spec='${libname}${release}.a $libname.a'
10707      soname_spec='${libname}${release}${shared_ext}$major'
10708    fi
10709    shlibpath_var=LIBPATH
10710  fi
10711  ;;
10712
10713amigaos*)
10714  case $host_cpu in
10715  powerpc)
10716    # Since July 2007 AmigaOS4 officially supports .so libraries.
10717    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10718    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719    ;;
10720  m68k)
10721    library_names_spec='$libname.ixlibrary $libname.a'
10722    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10723    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10724    ;;
10725  esac
10726  ;;
10727
10728beos*)
10729  library_names_spec='${libname}${shared_ext}'
10730  dynamic_linker="$host_os ld.so"
10731  shlibpath_var=LIBRARY_PATH
10732  ;;
10733
10734bsdi[45]*)
10735  version_type=linux # correct to gnu/linux during the next big refactor
10736  need_version=no
10737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738  soname_spec='${libname}${release}${shared_ext}$major'
10739  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10740  shlibpath_var=LD_LIBRARY_PATH
10741  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10742  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10743  # the default ld.so.conf also contains /usr/contrib/lib and
10744  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10745  # libtool to hard-code these into programs
10746  ;;
10747
10748cygwin* | mingw* | pw32* | cegcc*)
10749  version_type=windows
10750  shrext_cmds=".dll"
10751  need_version=no
10752  need_lib_prefix=no
10753
10754  case $GCC,$cc_basename in
10755  yes,*)
10756    # gcc
10757    library_names_spec='$libname.dll.a'
10758    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10759    postinstall_cmds='base_file=`basename \${file}`~
10760      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10761      dldir=$destdir/`dirname \$dlpath`~
10762      test -d \$dldir || mkdir -p \$dldir~
10763      $install_prog $dir/$dlname \$dldir/$dlname~
10764      chmod a+x \$dldir/$dlname~
10765      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10766        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10767      fi'
10768    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10769      dlpath=$dir/\$dldll~
10770       $RM \$dlpath'
10771    shlibpath_overrides_runpath=yes
10772
10773    case $host_os in
10774    cygwin*)
10775      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10776      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10777
10778      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10779      ;;
10780    mingw* | cegcc*)
10781      # MinGW DLLs use traditional 'lib' prefix
10782      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10783      ;;
10784    pw32*)
10785      # pw32 DLLs use 'pw' prefix rather than 'lib'
10786      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10787      ;;
10788    esac
10789    dynamic_linker='Win32 ld.exe'
10790    ;;
10791
10792  *,cl*)
10793    # Native MSVC
10794    libname_spec='$name'
10795    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10796    library_names_spec='${libname}.dll.lib'
10797
10798    case $build_os in
10799    mingw*)
10800      sys_lib_search_path_spec=
10801      lt_save_ifs=$IFS
10802      IFS=';'
10803      for lt_path in $LIB
10804      do
10805        IFS=$lt_save_ifs
10806        # Let DOS variable expansion print the short 8.3 style file name.
10807        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10808        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10809      done
10810      IFS=$lt_save_ifs
10811      # Convert to MSYS style.
10812      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10813      ;;
10814    cygwin*)
10815      # Convert to unix form, then to dos form, then back to unix form
10816      # but this time dos style (no spaces!) so that the unix form looks
10817      # like /cygdrive/c/PROGRA~1:/cygdr...
10818      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10819      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10820      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10821      ;;
10822    *)
10823      sys_lib_search_path_spec="$LIB"
10824      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10825        # It is most probably a Windows format PATH.
10826        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10827      else
10828        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10829      fi
10830      # FIXME: find the short name or the path components, as spaces are
10831      # common. (e.g. "Program Files" -> "PROGRA~1")
10832      ;;
10833    esac
10834
10835    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10836    postinstall_cmds='base_file=`basename \${file}`~
10837      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10838      dldir=$destdir/`dirname \$dlpath`~
10839      test -d \$dldir || mkdir -p \$dldir~
10840      $install_prog $dir/$dlname \$dldir/$dlname'
10841    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10842      dlpath=$dir/\$dldll~
10843       $RM \$dlpath'
10844    shlibpath_overrides_runpath=yes
10845    dynamic_linker='Win32 link.exe'
10846    ;;
10847
10848  *)
10849    # Assume MSVC wrapper
10850    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10851    dynamic_linker='Win32 ld.exe'
10852    ;;
10853  esac
10854  # FIXME: first we should search . and the directory the executable is in
10855  shlibpath_var=PATH
10856  ;;
10857
10858darwin* | rhapsody*)
10859  dynamic_linker="$host_os dyld"
10860  version_type=darwin
10861  need_lib_prefix=no
10862  need_version=no
10863  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10864  soname_spec='${libname}${release}${major}$shared_ext'
10865  shlibpath_overrides_runpath=yes
10866  shlibpath_var=DYLD_LIBRARY_PATH
10867  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10868
10869  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10870  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10871  ;;
10872
10873dgux*)
10874  version_type=linux # correct to gnu/linux during the next big refactor
10875  need_lib_prefix=no
10876  need_version=no
10877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10878  soname_spec='${libname}${release}${shared_ext}$major'
10879  shlibpath_var=LD_LIBRARY_PATH
10880  ;;
10881
10882freebsd* | dragonfly*)
10883  # DragonFly does not have aout.  When/if they implement a new
10884  # versioning mechanism, adjust this.
10885  if test -x /usr/bin/objformat; then
10886    objformat=`/usr/bin/objformat`
10887  else
10888    case $host_os in
10889    freebsd[23].*) objformat=aout ;;
10890    *) objformat=elf ;;
10891    esac
10892  fi
10893  version_type=freebsd-$objformat
10894  case $version_type in
10895    freebsd-elf*)
10896      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10897      need_version=no
10898      need_lib_prefix=no
10899      ;;
10900    freebsd-*)
10901      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10902      need_version=yes
10903      ;;
10904  esac
10905  shlibpath_var=LD_LIBRARY_PATH
10906  case $host_os in
10907  freebsd2.*)
10908    shlibpath_overrides_runpath=yes
10909    ;;
10910  freebsd3.[01]* | freebsdelf3.[01]*)
10911    shlibpath_overrides_runpath=yes
10912    hardcode_into_libs=yes
10913    ;;
10914  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10915  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10916    shlibpath_overrides_runpath=no
10917    hardcode_into_libs=yes
10918    ;;
10919  *) # from 4.6 on, and DragonFly
10920    shlibpath_overrides_runpath=yes
10921    hardcode_into_libs=yes
10922    ;;
10923  esac
10924  ;;
10925
10926gnu*)
10927  version_type=linux # correct to gnu/linux during the next big refactor
10928  need_lib_prefix=no
10929  need_version=no
10930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10931  soname_spec='${libname}${release}${shared_ext}$major'
10932  shlibpath_var=LD_LIBRARY_PATH
10933  shlibpath_overrides_runpath=no
10934  hardcode_into_libs=yes
10935  ;;
10936
10937haiku*)
10938  version_type=linux # correct to gnu/linux during the next big refactor
10939  need_lib_prefix=no
10940  need_version=no
10941  dynamic_linker="$host_os runtime_loader"
10942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10943  soname_spec='${libname}${release}${shared_ext}$major'
10944  shlibpath_var=LIBRARY_PATH
10945  shlibpath_overrides_runpath=yes
10946  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10947  hardcode_into_libs=yes
10948  ;;
10949
10950hpux9* | hpux10* | hpux11*)
10951  # Give a soname corresponding to the major version so that dld.sl refuses to
10952  # link against other versions.
10953  version_type=sunos
10954  need_lib_prefix=no
10955  need_version=no
10956  case $host_cpu in
10957  ia64*)
10958    shrext_cmds='.so'
10959    hardcode_into_libs=yes
10960    dynamic_linker="$host_os dld.so"
10961    shlibpath_var=LD_LIBRARY_PATH
10962    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10963    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964    soname_spec='${libname}${release}${shared_ext}$major'
10965    if test "X$HPUX_IA64_MODE" = X32; then
10966      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10967    else
10968      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10969    fi
10970    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10971    ;;
10972  hppa*64*)
10973    shrext_cmds='.sl'
10974    hardcode_into_libs=yes
10975    dynamic_linker="$host_os dld.sl"
10976    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10977    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10978    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979    soname_spec='${libname}${release}${shared_ext}$major'
10980    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10981    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10982    ;;
10983  *)
10984    shrext_cmds='.sl'
10985    dynamic_linker="$host_os dld.sl"
10986    shlibpath_var=SHLIB_PATH
10987    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10988    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989    soname_spec='${libname}${release}${shared_ext}$major'
10990    ;;
10991  esac
10992  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10993  postinstall_cmds='chmod 555 $lib'
10994  # or fails outright, so override atomically:
10995  install_override_mode=555
10996  ;;
10997
10998interix[3-9]*)
10999  version_type=linux # correct to gnu/linux during the next big refactor
11000  need_lib_prefix=no
11001  need_version=no
11002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11003  soname_spec='${libname}${release}${shared_ext}$major'
11004  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11005  shlibpath_var=LD_LIBRARY_PATH
11006  shlibpath_overrides_runpath=no
11007  hardcode_into_libs=yes
11008  ;;
11009
11010irix5* | irix6* | nonstopux*)
11011  case $host_os in
11012    nonstopux*) version_type=nonstopux ;;
11013    *)
11014	if test "$lt_cv_prog_gnu_ld" = yes; then
11015		version_type=linux # correct to gnu/linux during the next big refactor
11016	else
11017		version_type=irix
11018	fi ;;
11019  esac
11020  need_lib_prefix=no
11021  need_version=no
11022  soname_spec='${libname}${release}${shared_ext}$major'
11023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11024  case $host_os in
11025  irix5* | nonstopux*)
11026    libsuff= shlibsuff=
11027    ;;
11028  *)
11029    case $LD in # libtool.m4 will add one of these switches to LD
11030    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11031      libsuff= shlibsuff= libmagic=32-bit;;
11032    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11033      libsuff=32 shlibsuff=N32 libmagic=N32;;
11034    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11035      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11036    *) libsuff= shlibsuff= libmagic=never-match;;
11037    esac
11038    ;;
11039  esac
11040  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11041  shlibpath_overrides_runpath=no
11042  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11043  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11044  hardcode_into_libs=yes
11045  ;;
11046
11047# No shared lib support for Linux oldld, aout, or coff.
11048linux*oldld* | linux*aout* | linux*coff*)
11049  dynamic_linker=no
11050  ;;
11051
11052# This must be glibc/ELF.
11053linux* | k*bsd*-gnu | kopensolaris*-gnu)
11054  version_type=linux # correct to gnu/linux during the next big refactor
11055  need_lib_prefix=no
11056  need_version=no
11057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058  soname_spec='${libname}${release}${shared_ext}$major'
11059  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11060  shlibpath_var=LD_LIBRARY_PATH
11061  shlibpath_overrides_runpath=no
11062
11063  # Some binutils ld are patched to set DT_RUNPATH
11064  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11065  $as_echo_n "(cached) " >&6
11066else
11067  lt_cv_shlibpath_overrides_runpath=no
11068    save_LDFLAGS=$LDFLAGS
11069    save_libdir=$libdir
11070    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11071	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11072    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073/* end confdefs.h.  */
11074
11075int
11076main ()
11077{
11078
11079  ;
11080  return 0;
11081}
11082_ACEOF
11083if ac_fn_c_try_link "$LINENO"; then :
11084  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11085  lt_cv_shlibpath_overrides_runpath=yes
11086fi
11087fi
11088rm -f core conftest.err conftest.$ac_objext \
11089    conftest$ac_exeext conftest.$ac_ext
11090    LDFLAGS=$save_LDFLAGS
11091    libdir=$save_libdir
11092
11093fi
11094
11095  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11096
11097  # This implies no fast_install, which is unacceptable.
11098  # Some rework will be needed to allow for fast_install
11099  # before this can be enabled.
11100  hardcode_into_libs=yes
11101
11102  # Append ld.so.conf contents to the search path
11103  if test -f /etc/ld.so.conf; then
11104    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' ' '`
11105    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11106  fi
11107
11108  # We used to test for /lib/ld.so.1 and disable shared libraries on
11109  # powerpc, because MkLinux only supported shared libraries with the
11110  # GNU dynamic linker.  Since this was broken with cross compilers,
11111  # most powerpc-linux boxes support dynamic linking these days and
11112  # people can always --disable-shared, the test was removed, and we
11113  # assume the GNU/Linux dynamic linker is in use.
11114  dynamic_linker='GNU/Linux ld.so'
11115  ;;
11116
11117netbsd*)
11118  version_type=sunos
11119  need_lib_prefix=no
11120  need_version=no
11121  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11123    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11124    dynamic_linker='NetBSD (a.out) ld.so'
11125  else
11126    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11127    soname_spec='${libname}${release}${shared_ext}$major'
11128    dynamic_linker='NetBSD ld.elf_so'
11129  fi
11130  shlibpath_var=LD_LIBRARY_PATH
11131  shlibpath_overrides_runpath=yes
11132  hardcode_into_libs=yes
11133  ;;
11134
11135newsos6)
11136  version_type=linux # correct to gnu/linux during the next big refactor
11137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138  shlibpath_var=LD_LIBRARY_PATH
11139  shlibpath_overrides_runpath=yes
11140  ;;
11141
11142*nto* | *qnx*)
11143  version_type=qnx
11144  need_lib_prefix=no
11145  need_version=no
11146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147  soname_spec='${libname}${release}${shared_ext}$major'
11148  shlibpath_var=LD_LIBRARY_PATH
11149  shlibpath_overrides_runpath=no
11150  hardcode_into_libs=yes
11151  dynamic_linker='ldqnx.so'
11152  ;;
11153
11154openbsd*)
11155  version_type=sunos
11156  sys_lib_dlsearch_path_spec="/usr/lib"
11157  need_lib_prefix=no
11158  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11159  case $host_os in
11160    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11161    *)				need_version=no  ;;
11162  esac
11163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11165  shlibpath_var=LD_LIBRARY_PATH
11166  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11167    case $host_os in
11168      openbsd2.[89] | openbsd2.[89].*)
11169	shlibpath_overrides_runpath=no
11170	;;
11171      *)
11172	shlibpath_overrides_runpath=yes
11173	;;
11174      esac
11175  else
11176    shlibpath_overrides_runpath=yes
11177  fi
11178  ;;
11179
11180os2*)
11181  libname_spec='$name'
11182  shrext_cmds=".dll"
11183  need_lib_prefix=no
11184  library_names_spec='$libname${shared_ext} $libname.a'
11185  dynamic_linker='OS/2 ld.exe'
11186  shlibpath_var=LIBPATH
11187  ;;
11188
11189osf3* | osf4* | osf5*)
11190  version_type=osf
11191  need_lib_prefix=no
11192  need_version=no
11193  soname_spec='${libname}${release}${shared_ext}$major'
11194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195  shlibpath_var=LD_LIBRARY_PATH
11196  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11197  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11198  ;;
11199
11200rdos*)
11201  dynamic_linker=no
11202  ;;
11203
11204solaris*)
11205  version_type=linux # correct to gnu/linux during the next big refactor
11206  need_lib_prefix=no
11207  need_version=no
11208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209  soname_spec='${libname}${release}${shared_ext}$major'
11210  shlibpath_var=LD_LIBRARY_PATH
11211  shlibpath_overrides_runpath=yes
11212  hardcode_into_libs=yes
11213  # ldd complains unless libraries are executable
11214  postinstall_cmds='chmod +x $lib'
11215  ;;
11216
11217sunos4*)
11218  version_type=sunos
11219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11220  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11221  shlibpath_var=LD_LIBRARY_PATH
11222  shlibpath_overrides_runpath=yes
11223  if test "$with_gnu_ld" = yes; then
11224    need_lib_prefix=no
11225  fi
11226  need_version=yes
11227  ;;
11228
11229sysv4 | sysv4.3*)
11230  version_type=linux # correct to gnu/linux during the next big refactor
11231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232  soname_spec='${libname}${release}${shared_ext}$major'
11233  shlibpath_var=LD_LIBRARY_PATH
11234  case $host_vendor in
11235    sni)
11236      shlibpath_overrides_runpath=no
11237      need_lib_prefix=no
11238      runpath_var=LD_RUN_PATH
11239      ;;
11240    siemens)
11241      need_lib_prefix=no
11242      ;;
11243    motorola)
11244      need_lib_prefix=no
11245      need_version=no
11246      shlibpath_overrides_runpath=no
11247      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11248      ;;
11249  esac
11250  ;;
11251
11252sysv4*MP*)
11253  if test -d /usr/nec ;then
11254    version_type=linux # correct to gnu/linux during the next big refactor
11255    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11256    soname_spec='$libname${shared_ext}.$major'
11257    shlibpath_var=LD_LIBRARY_PATH
11258  fi
11259  ;;
11260
11261sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11262  version_type=freebsd-elf
11263  need_lib_prefix=no
11264  need_version=no
11265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11266  soname_spec='${libname}${release}${shared_ext}$major'
11267  shlibpath_var=LD_LIBRARY_PATH
11268  shlibpath_overrides_runpath=yes
11269  hardcode_into_libs=yes
11270  if test "$with_gnu_ld" = yes; then
11271    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11272  else
11273    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11274    case $host_os in
11275      sco3.2v5*)
11276        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11277	;;
11278    esac
11279  fi
11280  sys_lib_dlsearch_path_spec='/usr/lib'
11281  ;;
11282
11283tpf*)
11284  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11285  version_type=linux # correct to gnu/linux during the next big refactor
11286  need_lib_prefix=no
11287  need_version=no
11288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289  shlibpath_var=LD_LIBRARY_PATH
11290  shlibpath_overrides_runpath=no
11291  hardcode_into_libs=yes
11292  ;;
11293
11294uts4*)
11295  version_type=linux # correct to gnu/linux during the next big refactor
11296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297  soname_spec='${libname}${release}${shared_ext}$major'
11298  shlibpath_var=LD_LIBRARY_PATH
11299  ;;
11300
11301*)
11302  dynamic_linker=no
11303  ;;
11304esac
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11306$as_echo "$dynamic_linker" >&6; }
11307test "$dynamic_linker" = no && can_build_shared=no
11308
11309variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11310if test "$GCC" = yes; then
11311  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11312fi
11313
11314if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11315  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11316fi
11317if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11318  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11319fi
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
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11413$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11414hardcode_action=
11415if test -n "$hardcode_libdir_flag_spec" ||
11416   test -n "$runpath_var" ||
11417   test "X$hardcode_automatic" = "Xyes" ; then
11418
11419  # We can hardcode non-existent directories.
11420  if test "$hardcode_direct" != no &&
11421     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11422     # have to relink, otherwise we might link with an installed library
11423     # when we should be linking with a yet-to-be-installed one
11424     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11425     test "$hardcode_minus_L" != no; then
11426    # Linking always hardcodes the temporary library directory.
11427    hardcode_action=relink
11428  else
11429    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11430    hardcode_action=immediate
11431  fi
11432else
11433  # We cannot hardcode anything, or else we can only hardcode existing
11434  # directories.
11435  hardcode_action=unsupported
11436fi
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11438$as_echo "$hardcode_action" >&6; }
11439
11440if test "$hardcode_action" = relink ||
11441   test "$inherit_rpath" = yes; then
11442  # Fast installation is not supported
11443  enable_fast_install=no
11444elif test "$shlibpath_overrides_runpath" = yes ||
11445     test "$enable_shared" = no; then
11446  # Fast installation is not necessary
11447  enable_fast_install=needless
11448fi
11449
11450
11451
11452
11453
11454
11455  if test "x$enable_dlopen" != xyes; then
11456  enable_dlopen=unknown
11457  enable_dlopen_self=unknown
11458  enable_dlopen_self_static=unknown
11459else
11460  lt_cv_dlopen=no
11461  lt_cv_dlopen_libs=
11462
11463  case $host_os in
11464  beos*)
11465    lt_cv_dlopen="load_add_on"
11466    lt_cv_dlopen_libs=
11467    lt_cv_dlopen_self=yes
11468    ;;
11469
11470  mingw* | pw32* | cegcc*)
11471    lt_cv_dlopen="LoadLibrary"
11472    lt_cv_dlopen_libs=
11473    ;;
11474
11475  cygwin*)
11476    lt_cv_dlopen="dlopen"
11477    lt_cv_dlopen_libs=
11478    ;;
11479
11480  darwin*)
11481  # if libdl is installed we need to link against it
11482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11483$as_echo_n "checking for dlopen in -ldl... " >&6; }
11484if ${ac_cv_lib_dl_dlopen+:} false; then :
11485  $as_echo_n "(cached) " >&6
11486else
11487  ac_check_lib_save_LIBS=$LIBS
11488LIBS="-ldl  $LIBS"
11489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490/* end confdefs.h.  */
11491
11492/* Override any GCC internal prototype to avoid an error.
11493   Use char because int might match the return type of a GCC
11494   builtin and then its argument prototype would still apply.  */
11495#ifdef __cplusplus
11496extern "C"
11497#endif
11498char dlopen ();
11499int
11500main ()
11501{
11502return dlopen ();
11503  ;
11504  return 0;
11505}
11506_ACEOF
11507if ac_fn_c_try_link "$LINENO"; then :
11508  ac_cv_lib_dl_dlopen=yes
11509else
11510  ac_cv_lib_dl_dlopen=no
11511fi
11512rm -f core conftest.err conftest.$ac_objext \
11513    conftest$ac_exeext conftest.$ac_ext
11514LIBS=$ac_check_lib_save_LIBS
11515fi
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11517$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11518if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11519  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11520else
11521
11522    lt_cv_dlopen="dyld"
11523    lt_cv_dlopen_libs=
11524    lt_cv_dlopen_self=yes
11525
11526fi
11527
11528    ;;
11529
11530  *)
11531    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11532if test "x$ac_cv_func_shl_load" = xyes; then :
11533  lt_cv_dlopen="shl_load"
11534else
11535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11536$as_echo_n "checking for shl_load in -ldld... " >&6; }
11537if ${ac_cv_lib_dld_shl_load+:} false; then :
11538  $as_echo_n "(cached) " >&6
11539else
11540  ac_check_lib_save_LIBS=$LIBS
11541LIBS="-ldld  $LIBS"
11542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543/* end confdefs.h.  */
11544
11545/* Override any GCC internal prototype to avoid an error.
11546   Use char because int might match the return type of a GCC
11547   builtin and then its argument prototype would still apply.  */
11548#ifdef __cplusplus
11549extern "C"
11550#endif
11551char shl_load ();
11552int
11553main ()
11554{
11555return shl_load ();
11556  ;
11557  return 0;
11558}
11559_ACEOF
11560if ac_fn_c_try_link "$LINENO"; then :
11561  ac_cv_lib_dld_shl_load=yes
11562else
11563  ac_cv_lib_dld_shl_load=no
11564fi
11565rm -f core conftest.err conftest.$ac_objext \
11566    conftest$ac_exeext conftest.$ac_ext
11567LIBS=$ac_check_lib_save_LIBS
11568fi
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11570$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11571if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11572  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11573else
11574  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11575if test "x$ac_cv_func_dlopen" = xyes; then :
11576  lt_cv_dlopen="dlopen"
11577else
11578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11579$as_echo_n "checking for dlopen in -ldl... " >&6; }
11580if ${ac_cv_lib_dl_dlopen+:} false; then :
11581  $as_echo_n "(cached) " >&6
11582else
11583  ac_check_lib_save_LIBS=$LIBS
11584LIBS="-ldl  $LIBS"
11585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586/* end confdefs.h.  */
11587
11588/* Override any GCC internal prototype to avoid an error.
11589   Use char because int might match the return type of a GCC
11590   builtin and then its argument prototype would still apply.  */
11591#ifdef __cplusplus
11592extern "C"
11593#endif
11594char dlopen ();
11595int
11596main ()
11597{
11598return dlopen ();
11599  ;
11600  return 0;
11601}
11602_ACEOF
11603if ac_fn_c_try_link "$LINENO"; then :
11604  ac_cv_lib_dl_dlopen=yes
11605else
11606  ac_cv_lib_dl_dlopen=no
11607fi
11608rm -f core conftest.err conftest.$ac_objext \
11609    conftest$ac_exeext conftest.$ac_ext
11610LIBS=$ac_check_lib_save_LIBS
11611fi
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11613$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11614if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11615  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11616else
11617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11618$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11619if ${ac_cv_lib_svld_dlopen+:} false; then :
11620  $as_echo_n "(cached) " >&6
11621else
11622  ac_check_lib_save_LIBS=$LIBS
11623LIBS="-lsvld  $LIBS"
11624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625/* end confdefs.h.  */
11626
11627/* Override any GCC internal prototype to avoid an error.
11628   Use char because int might match the return type of a GCC
11629   builtin and then its argument prototype would still apply.  */
11630#ifdef __cplusplus
11631extern "C"
11632#endif
11633char dlopen ();
11634int
11635main ()
11636{
11637return dlopen ();
11638  ;
11639  return 0;
11640}
11641_ACEOF
11642if ac_fn_c_try_link "$LINENO"; then :
11643  ac_cv_lib_svld_dlopen=yes
11644else
11645  ac_cv_lib_svld_dlopen=no
11646fi
11647rm -f core conftest.err conftest.$ac_objext \
11648    conftest$ac_exeext conftest.$ac_ext
11649LIBS=$ac_check_lib_save_LIBS
11650fi
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11652$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11653if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11654  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11655else
11656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11657$as_echo_n "checking for dld_link in -ldld... " >&6; }
11658if ${ac_cv_lib_dld_dld_link+:} false; then :
11659  $as_echo_n "(cached) " >&6
11660else
11661  ac_check_lib_save_LIBS=$LIBS
11662LIBS="-ldld  $LIBS"
11663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664/* end confdefs.h.  */
11665
11666/* Override any GCC internal prototype to avoid an error.
11667   Use char because int might match the return type of a GCC
11668   builtin and then its argument prototype would still apply.  */
11669#ifdef __cplusplus
11670extern "C"
11671#endif
11672char dld_link ();
11673int
11674main ()
11675{
11676return dld_link ();
11677  ;
11678  return 0;
11679}
11680_ACEOF
11681if ac_fn_c_try_link "$LINENO"; then :
11682  ac_cv_lib_dld_dld_link=yes
11683else
11684  ac_cv_lib_dld_dld_link=no
11685fi
11686rm -f core conftest.err conftest.$ac_objext \
11687    conftest$ac_exeext conftest.$ac_ext
11688LIBS=$ac_check_lib_save_LIBS
11689fi
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11691$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11692if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11693  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11694fi
11695
11696
11697fi
11698
11699
11700fi
11701
11702
11703fi
11704
11705
11706fi
11707
11708
11709fi
11710
11711    ;;
11712  esac
11713
11714  if test "x$lt_cv_dlopen" != xno; then
11715    enable_dlopen=yes
11716  else
11717    enable_dlopen=no
11718  fi
11719
11720  case $lt_cv_dlopen in
11721  dlopen)
11722    save_CPPFLAGS="$CPPFLAGS"
11723    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11724
11725    save_LDFLAGS="$LDFLAGS"
11726    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11727
11728    save_LIBS="$LIBS"
11729    LIBS="$lt_cv_dlopen_libs $LIBS"
11730
11731    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11732$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11733if ${lt_cv_dlopen_self+:} false; then :
11734  $as_echo_n "(cached) " >&6
11735else
11736  	  if test "$cross_compiling" = yes; then :
11737  lt_cv_dlopen_self=cross
11738else
11739  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11740  lt_status=$lt_dlunknown
11741  cat > conftest.$ac_ext <<_LT_EOF
11742#line $LINENO "configure"
11743#include "confdefs.h"
11744
11745#if HAVE_DLFCN_H
11746#include <dlfcn.h>
11747#endif
11748
11749#include <stdio.h>
11750
11751#ifdef RTLD_GLOBAL
11752#  define LT_DLGLOBAL		RTLD_GLOBAL
11753#else
11754#  ifdef DL_GLOBAL
11755#    define LT_DLGLOBAL		DL_GLOBAL
11756#  else
11757#    define LT_DLGLOBAL		0
11758#  endif
11759#endif
11760
11761/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11762   find out it does not work in some platform. */
11763#ifndef LT_DLLAZY_OR_NOW
11764#  ifdef RTLD_LAZY
11765#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11766#  else
11767#    ifdef DL_LAZY
11768#      define LT_DLLAZY_OR_NOW		DL_LAZY
11769#    else
11770#      ifdef RTLD_NOW
11771#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11772#      else
11773#        ifdef DL_NOW
11774#          define LT_DLLAZY_OR_NOW	DL_NOW
11775#        else
11776#          define LT_DLLAZY_OR_NOW	0
11777#        endif
11778#      endif
11779#    endif
11780#  endif
11781#endif
11782
11783/* When -fvisbility=hidden is used, assume the code has been annotated
11784   correspondingly for the symbols needed.  */
11785#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11786int fnord () __attribute__((visibility("default")));
11787#endif
11788
11789int fnord () { return 42; }
11790int main ()
11791{
11792  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11793  int status = $lt_dlunknown;
11794
11795  if (self)
11796    {
11797      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11798      else
11799        {
11800	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11801          else puts (dlerror ());
11802	}
11803      /* dlclose (self); */
11804    }
11805  else
11806    puts (dlerror ());
11807
11808  return status;
11809}
11810_LT_EOF
11811  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11812  (eval $ac_link) 2>&5
11813  ac_status=$?
11814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11815  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11816    (./conftest; exit; ) >&5 2>/dev/null
11817    lt_status=$?
11818    case x$lt_status in
11819      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11820      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11821      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11822    esac
11823  else :
11824    # compilation failed
11825    lt_cv_dlopen_self=no
11826  fi
11827fi
11828rm -fr conftest*
11829
11830
11831fi
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11833$as_echo "$lt_cv_dlopen_self" >&6; }
11834
11835    if test "x$lt_cv_dlopen_self" = xyes; then
11836      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11837      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11838$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11839if ${lt_cv_dlopen_self_static+:} false; then :
11840  $as_echo_n "(cached) " >&6
11841else
11842  	  if test "$cross_compiling" = yes; then :
11843  lt_cv_dlopen_self_static=cross
11844else
11845  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11846  lt_status=$lt_dlunknown
11847  cat > conftest.$ac_ext <<_LT_EOF
11848#line $LINENO "configure"
11849#include "confdefs.h"
11850
11851#if HAVE_DLFCN_H
11852#include <dlfcn.h>
11853#endif
11854
11855#include <stdio.h>
11856
11857#ifdef RTLD_GLOBAL
11858#  define LT_DLGLOBAL		RTLD_GLOBAL
11859#else
11860#  ifdef DL_GLOBAL
11861#    define LT_DLGLOBAL		DL_GLOBAL
11862#  else
11863#    define LT_DLGLOBAL		0
11864#  endif
11865#endif
11866
11867/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11868   find out it does not work in some platform. */
11869#ifndef LT_DLLAZY_OR_NOW
11870#  ifdef RTLD_LAZY
11871#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11872#  else
11873#    ifdef DL_LAZY
11874#      define LT_DLLAZY_OR_NOW		DL_LAZY
11875#    else
11876#      ifdef RTLD_NOW
11877#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11878#      else
11879#        ifdef DL_NOW
11880#          define LT_DLLAZY_OR_NOW	DL_NOW
11881#        else
11882#          define LT_DLLAZY_OR_NOW	0
11883#        endif
11884#      endif
11885#    endif
11886#  endif
11887#endif
11888
11889/* When -fvisbility=hidden is used, assume the code has been annotated
11890   correspondingly for the symbols needed.  */
11891#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11892int fnord () __attribute__((visibility("default")));
11893#endif
11894
11895int fnord () { return 42; }
11896int main ()
11897{
11898  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11899  int status = $lt_dlunknown;
11900
11901  if (self)
11902    {
11903      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11904      else
11905        {
11906	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11907          else puts (dlerror ());
11908	}
11909      /* dlclose (self); */
11910    }
11911  else
11912    puts (dlerror ());
11913
11914  return status;
11915}
11916_LT_EOF
11917  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11918  (eval $ac_link) 2>&5
11919  ac_status=$?
11920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11921  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11922    (./conftest; exit; ) >&5 2>/dev/null
11923    lt_status=$?
11924    case x$lt_status in
11925      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11926      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11927      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11928    esac
11929  else :
11930    # compilation failed
11931    lt_cv_dlopen_self_static=no
11932  fi
11933fi
11934rm -fr conftest*
11935
11936
11937fi
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11939$as_echo "$lt_cv_dlopen_self_static" >&6; }
11940    fi
11941
11942    CPPFLAGS="$save_CPPFLAGS"
11943    LDFLAGS="$save_LDFLAGS"
11944    LIBS="$save_LIBS"
11945    ;;
11946  esac
11947
11948  case $lt_cv_dlopen_self in
11949  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11950  *) enable_dlopen_self=unknown ;;
11951  esac
11952
11953  case $lt_cv_dlopen_self_static in
11954  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11955  *) enable_dlopen_self_static=unknown ;;
11956  esac
11957fi
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975striplib=
11976old_striplib=
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11978$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11979if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11980  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11981  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983$as_echo "yes" >&6; }
11984else
11985# FIXME - insert some real tests, host_os isn't really good enough
11986  case $host_os in
11987  darwin*)
11988    if test -n "$STRIP" ; then
11989      striplib="$STRIP -x"
11990      old_striplib="$STRIP -S"
11991      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992$as_echo "yes" >&6; }
11993    else
11994      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995$as_echo "no" >&6; }
11996    fi
11997    ;;
11998  *)
11999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001    ;;
12002  esac
12003fi
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016  # Report which library types will actually be built
12017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12018$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12020$as_echo "$can_build_shared" >&6; }
12021
12022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12023$as_echo_n "checking whether to build shared libraries... " >&6; }
12024  test "$can_build_shared" = "no" && enable_shared=no
12025
12026  # On AIX, shared libraries and static libraries use the same namespace, and
12027  # are all built from PIC.
12028  case $host_os in
12029  aix3*)
12030    test "$enable_shared" = yes && enable_static=no
12031    if test -n "$RANLIB"; then
12032      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12033      postinstall_cmds='$RANLIB $lib'
12034    fi
12035    ;;
12036
12037  aix[4-9]*)
12038    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12039      test "$enable_shared" = yes && enable_static=no
12040    fi
12041    ;;
12042  esac
12043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12044$as_echo "$enable_shared" >&6; }
12045
12046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12047$as_echo_n "checking whether to build static libraries... " >&6; }
12048  # Make sure either enable_shared or enable_static is yes.
12049  test "$enable_shared" = yes || enable_static=yes
12050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12051$as_echo "$enable_static" >&6; }
12052
12053
12054
12055
12056fi
12057ac_ext=c
12058ac_cpp='$CPP $CPPFLAGS'
12059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12061ac_compiler_gnu=$ac_cv_c_compiler_gnu
12062
12063CC="$lt_save_CC"
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079        ac_config_commands="$ac_config_commands libtool"
12080
12081
12082
12083
12084# Only expand once:
12085
12086
12087
12088# Check for the -Bsymbolic-functions linker flag
12089# Check whether --enable-Bsymbolic was given.
12090if test "${enable_Bsymbolic+set}" = set; then :
12091  enableval=$enable_Bsymbolic;
12092else
12093  enable_Bsymbolic=check
12094fi
12095
12096
12097if test "x$enable_Bsymbolic" = "xcheck"; then :
12098
12099        saved_LDFLAGS="${LDFLAGS}"
12100        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
12101$as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
12102        LDFLAGS=-Wl,-Bsymbolic-functions
12103        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104/* end confdefs.h.  */
12105
12106int
12107main ()
12108{
12109int main (void) { return 0; }
12110  ;
12111  return 0;
12112}
12113_ACEOF
12114if ac_fn_c_try_link "$LINENO"; then :
12115
12116                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12117$as_echo "yes" >&6; }
12118                      enable_Bsymbolic=yes
12119
12120else
12121
12122                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123$as_echo "no" >&6; }
12124                      enable_Bsymbolic=no
12125
12126fi
12127rm -f core conftest.err conftest.$ac_objext \
12128    conftest$ac_exeext conftest.$ac_ext
12129        LDFLAGS="${saved_LDFLAGS}"
12130
12131fi
12132
12133if test "x$enable_Bsymbolic" = "xyes"; then :
12134  JSON_BSYMBOLIC_LDFLAGS=-Wl,-Bsymbolic-functions
12135fi
12136
12137
12138ac_config_files="$ac_config_files Makefile json-c.pc tests/Makefile json-c-uninstalled.pc"
12139
12140
12141cat >confcache <<\_ACEOF
12142# This file is a shell script that caches the results of configure
12143# tests run on this system so they can be shared between configure
12144# scripts and configure runs, see configure's option --config-cache.
12145# It is not useful on other systems.  If it contains results you don't
12146# want to keep, you may remove or edit it.
12147#
12148# config.status only pays attention to the cache file if you give it
12149# the --recheck option to rerun configure.
12150#
12151# `ac_cv_env_foo' variables (set or unset) will be overridden when
12152# loading this file, other *unset* `ac_cv_foo' will be assigned the
12153# following values.
12154
12155_ACEOF
12156
12157# The following way of writing the cache mishandles newlines in values,
12158# but we know of no workaround that is simple, portable, and efficient.
12159# So, we kill variables containing newlines.
12160# Ultrix sh set writes to stderr and can't be redirected directly,
12161# and sets the high bit in the cache file unless we assign to the vars.
12162(
12163  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12164    eval ac_val=\$$ac_var
12165    case $ac_val in #(
12166    *${as_nl}*)
12167      case $ac_var in #(
12168      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12169$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12170      esac
12171      case $ac_var in #(
12172      _ | IFS | as_nl) ;; #(
12173      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12174      *) { eval $ac_var=; unset $ac_var;} ;;
12175      esac ;;
12176    esac
12177  done
12178
12179  (set) 2>&1 |
12180    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12181    *${as_nl}ac_space=\ *)
12182      # `set' does not quote correctly, so add quotes: double-quote
12183      # substitution turns \\\\ into \\, and sed turns \\ into \.
12184      sed -n \
12185	"s/'/'\\\\''/g;
12186	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12187      ;; #(
12188    *)
12189      # `set' quotes correctly as required by POSIX, so do not add quotes.
12190      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12191      ;;
12192    esac |
12193    sort
12194) |
12195  sed '
12196     /^ac_cv_env_/b end
12197     t clear
12198     :clear
12199     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12200     t end
12201     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12202     :end' >>confcache
12203if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12204  if test -w "$cache_file"; then
12205    if test "x$cache_file" != "x/dev/null"; then
12206      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12207$as_echo "$as_me: updating cache $cache_file" >&6;}
12208      if test ! -f "$cache_file" || test -h "$cache_file"; then
12209	cat confcache >"$cache_file"
12210      else
12211        case $cache_file in #(
12212        */* | ?:*)
12213	  mv -f confcache "$cache_file"$$ &&
12214	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12215        *)
12216	  mv -f confcache "$cache_file" ;;
12217	esac
12218      fi
12219    fi
12220  else
12221    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12222$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12223  fi
12224fi
12225rm -f confcache
12226
12227test "x$prefix" = xNONE && prefix=$ac_default_prefix
12228# Let make expand exec_prefix.
12229test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12230
12231DEFS=-DHAVE_CONFIG_H
12232
12233ac_libobjs=
12234ac_ltlibobjs=
12235U=
12236for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12237  # 1. Remove the extension, and $U if already installed.
12238  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12239  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12240  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12241  #    will be set to the directory where LIBOBJS objects are built.
12242  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12243  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12244done
12245LIBOBJS=$ac_libobjs
12246
12247LTLIBOBJS=$ac_ltlibobjs
12248
12249
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12251$as_echo_n "checking that generated files are newer than configure... " >&6; }
12252   if test -n "$am_sleep_pid"; then
12253     # Hide warnings about reused PIDs.
12254     wait $am_sleep_pid 2>/dev/null
12255   fi
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12257$as_echo "done" >&6; }
12258 if test -n "$EXEEXT"; then
12259  am__EXEEXT_TRUE=
12260  am__EXEEXT_FALSE='#'
12261else
12262  am__EXEEXT_TRUE='#'
12263  am__EXEEXT_FALSE=
12264fi
12265
12266if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12267  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12268Usually this means the macro was only invoked conditionally." "$LINENO" 5
12269fi
12270if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12271  as_fn_error $? "conditional \"AMDEP\" was never defined.
12272Usually this means the macro was only invoked conditionally." "$LINENO" 5
12273fi
12274if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12275  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12276Usually this means the macro was only invoked conditionally." "$LINENO" 5
12277fi
12278
12279: "${CONFIG_STATUS=./config.status}"
12280ac_write_fail=0
12281ac_clean_files_save=$ac_clean_files
12282ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12284$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12285as_write_fail=0
12286cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12287#! $SHELL
12288# Generated by $as_me.
12289# Run this file to recreate the current configuration.
12290# Compiler output produced by configure, useful for debugging
12291# configure, is in config.log if it exists.
12292
12293debug=false
12294ac_cs_recheck=false
12295ac_cs_silent=false
12296
12297SHELL=\${CONFIG_SHELL-$SHELL}
12298export SHELL
12299_ASEOF
12300cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12301## -------------------- ##
12302## M4sh Initialization. ##
12303## -------------------- ##
12304
12305# Be more Bourne compatible
12306DUALCASE=1; export DUALCASE # for MKS sh
12307if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12308  emulate sh
12309  NULLCMD=:
12310  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12311  # is contrary to our usage.  Disable this feature.
12312  alias -g '${1+"$@"}'='"$@"'
12313  setopt NO_GLOB_SUBST
12314else
12315  case `(set -o) 2>/dev/null` in #(
12316  *posix*) :
12317    set -o posix ;; #(
12318  *) :
12319     ;;
12320esac
12321fi
12322
12323
12324as_nl='
12325'
12326export as_nl
12327# Printing a long string crashes Solaris 7 /usr/bin/printf.
12328as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12329as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12330as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12331# Prefer a ksh shell builtin over an external printf program on Solaris,
12332# but without wasting forks for bash or zsh.
12333if test -z "$BASH_VERSION$ZSH_VERSION" \
12334    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12335  as_echo='print -r --'
12336  as_echo_n='print -rn --'
12337elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12338  as_echo='printf %s\n'
12339  as_echo_n='printf %s'
12340else
12341  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12342    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12343    as_echo_n='/usr/ucb/echo -n'
12344  else
12345    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12346    as_echo_n_body='eval
12347      arg=$1;
12348      case $arg in #(
12349      *"$as_nl"*)
12350	expr "X$arg" : "X\\(.*\\)$as_nl";
12351	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12352      esac;
12353      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12354    '
12355    export as_echo_n_body
12356    as_echo_n='sh -c $as_echo_n_body as_echo'
12357  fi
12358  export as_echo_body
12359  as_echo='sh -c $as_echo_body as_echo'
12360fi
12361
12362# The user is always right.
12363if test "${PATH_SEPARATOR+set}" != set; then
12364  PATH_SEPARATOR=:
12365  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12366    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12367      PATH_SEPARATOR=';'
12368  }
12369fi
12370
12371
12372# IFS
12373# We need space, tab and new line, in precisely that order.  Quoting is
12374# there to prevent editors from complaining about space-tab.
12375# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12376# splitting by setting IFS to empty value.)
12377IFS=" ""	$as_nl"
12378
12379# Find who we are.  Look in the path if we contain no directory separator.
12380as_myself=
12381case $0 in #((
12382  *[\\/]* ) as_myself=$0 ;;
12383  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384for as_dir in $PATH
12385do
12386  IFS=$as_save_IFS
12387  test -z "$as_dir" && as_dir=.
12388    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12389  done
12390IFS=$as_save_IFS
12391
12392     ;;
12393esac
12394# We did not find ourselves, most probably we were run as `sh COMMAND'
12395# in which case we are not to be found in the path.
12396if test "x$as_myself" = x; then
12397  as_myself=$0
12398fi
12399if test ! -f "$as_myself"; then
12400  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12401  exit 1
12402fi
12403
12404# Unset variables that we do not need and which cause bugs (e.g. in
12405# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12406# suppresses any "Segmentation fault" message there.  '((' could
12407# trigger a bug in pdksh 5.2.14.
12408for as_var in BASH_ENV ENV MAIL MAILPATH
12409do eval test x\${$as_var+set} = xset \
12410  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12411done
12412PS1='$ '
12413PS2='> '
12414PS4='+ '
12415
12416# NLS nuisances.
12417LC_ALL=C
12418export LC_ALL
12419LANGUAGE=C
12420export LANGUAGE
12421
12422# CDPATH.
12423(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12424
12425
12426# as_fn_error STATUS ERROR [LINENO LOG_FD]
12427# ----------------------------------------
12428# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12429# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12430# script with STATUS, using 1 if that was 0.
12431as_fn_error ()
12432{
12433  as_status=$1; test $as_status -eq 0 && as_status=1
12434  if test "$4"; then
12435    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12436    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12437  fi
12438  $as_echo "$as_me: error: $2" >&2
12439  as_fn_exit $as_status
12440} # as_fn_error
12441
12442
12443# as_fn_set_status STATUS
12444# -----------------------
12445# Set $? to STATUS, without forking.
12446as_fn_set_status ()
12447{
12448  return $1
12449} # as_fn_set_status
12450
12451# as_fn_exit STATUS
12452# -----------------
12453# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12454as_fn_exit ()
12455{
12456  set +e
12457  as_fn_set_status $1
12458  exit $1
12459} # as_fn_exit
12460
12461# as_fn_unset VAR
12462# ---------------
12463# Portably unset VAR.
12464as_fn_unset ()
12465{
12466  { eval $1=; unset $1;}
12467}
12468as_unset=as_fn_unset
12469# as_fn_append VAR VALUE
12470# ----------------------
12471# Append the text in VALUE to the end of the definition contained in VAR. Take
12472# advantage of any shell optimizations that allow amortized linear growth over
12473# repeated appends, instead of the typical quadratic growth present in naive
12474# implementations.
12475if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12476  eval 'as_fn_append ()
12477  {
12478    eval $1+=\$2
12479  }'
12480else
12481  as_fn_append ()
12482  {
12483    eval $1=\$$1\$2
12484  }
12485fi # as_fn_append
12486
12487# as_fn_arith ARG...
12488# ------------------
12489# Perform arithmetic evaluation on the ARGs, and store the result in the
12490# global $as_val. Take advantage of shells that can avoid forks. The arguments
12491# must be portable across $(()) and expr.
12492if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12493  eval 'as_fn_arith ()
12494  {
12495    as_val=$(( $* ))
12496  }'
12497else
12498  as_fn_arith ()
12499  {
12500    as_val=`expr "$@" || test $? -eq 1`
12501  }
12502fi # as_fn_arith
12503
12504
12505if expr a : '\(a\)' >/dev/null 2>&1 &&
12506   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12507  as_expr=expr
12508else
12509  as_expr=false
12510fi
12511
12512if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12513  as_basename=basename
12514else
12515  as_basename=false
12516fi
12517
12518if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12519  as_dirname=dirname
12520else
12521  as_dirname=false
12522fi
12523
12524as_me=`$as_basename -- "$0" ||
12525$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12526	 X"$0" : 'X\(//\)$' \| \
12527	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12528$as_echo X/"$0" |
12529    sed '/^.*\/\([^/][^/]*\)\/*$/{
12530	    s//\1/
12531	    q
12532	  }
12533	  /^X\/\(\/\/\)$/{
12534	    s//\1/
12535	    q
12536	  }
12537	  /^X\/\(\/\).*/{
12538	    s//\1/
12539	    q
12540	  }
12541	  s/.*/./; q'`
12542
12543# Avoid depending upon Character Ranges.
12544as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12545as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12546as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12547as_cr_digits='0123456789'
12548as_cr_alnum=$as_cr_Letters$as_cr_digits
12549
12550ECHO_C= ECHO_N= ECHO_T=
12551case `echo -n x` in #(((((
12552-n*)
12553  case `echo 'xy\c'` in
12554  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12555  xy)  ECHO_C='\c';;
12556  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12557       ECHO_T='	';;
12558  esac;;
12559*)
12560  ECHO_N='-n';;
12561esac
12562
12563rm -f conf$$ conf$$.exe conf$$.file
12564if test -d conf$$.dir; then
12565  rm -f conf$$.dir/conf$$.file
12566else
12567  rm -f conf$$.dir
12568  mkdir conf$$.dir 2>/dev/null
12569fi
12570if (echo >conf$$.file) 2>/dev/null; then
12571  if ln -s conf$$.file conf$$ 2>/dev/null; then
12572    as_ln_s='ln -s'
12573    # ... but there are two gotchas:
12574    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12575    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12576    # In both cases, we have to default to `cp -pR'.
12577    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12578      as_ln_s='cp -pR'
12579  elif ln conf$$.file conf$$ 2>/dev/null; then
12580    as_ln_s=ln
12581  else
12582    as_ln_s='cp -pR'
12583  fi
12584else
12585  as_ln_s='cp -pR'
12586fi
12587rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12588rmdir conf$$.dir 2>/dev/null
12589
12590
12591# as_fn_mkdir_p
12592# -------------
12593# Create "$as_dir" as a directory, including parents if necessary.
12594as_fn_mkdir_p ()
12595{
12596
12597  case $as_dir in #(
12598  -*) as_dir=./$as_dir;;
12599  esac
12600  test -d "$as_dir" || eval $as_mkdir_p || {
12601    as_dirs=
12602    while :; do
12603      case $as_dir in #(
12604      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12605      *) as_qdir=$as_dir;;
12606      esac
12607      as_dirs="'$as_qdir' $as_dirs"
12608      as_dir=`$as_dirname -- "$as_dir" ||
12609$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12610	 X"$as_dir" : 'X\(//\)[^/]' \| \
12611	 X"$as_dir" : 'X\(//\)$' \| \
12612	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12613$as_echo X"$as_dir" |
12614    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12615	    s//\1/
12616	    q
12617	  }
12618	  /^X\(\/\/\)[^/].*/{
12619	    s//\1/
12620	    q
12621	  }
12622	  /^X\(\/\/\)$/{
12623	    s//\1/
12624	    q
12625	  }
12626	  /^X\(\/\).*/{
12627	    s//\1/
12628	    q
12629	  }
12630	  s/.*/./; q'`
12631      test -d "$as_dir" && break
12632    done
12633    test -z "$as_dirs" || eval "mkdir $as_dirs"
12634  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12635
12636
12637} # as_fn_mkdir_p
12638if mkdir -p . 2>/dev/null; then
12639  as_mkdir_p='mkdir -p "$as_dir"'
12640else
12641  test -d ./-p && rmdir ./-p
12642  as_mkdir_p=false
12643fi
12644
12645
12646# as_fn_executable_p FILE
12647# -----------------------
12648# Test if FILE is an executable regular file.
12649as_fn_executable_p ()
12650{
12651  test -f "$1" && test -x "$1"
12652} # as_fn_executable_p
12653as_test_x='test -x'
12654as_executable_p=as_fn_executable_p
12655
12656# Sed expression to map a string onto a valid CPP name.
12657as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12658
12659# Sed expression to map a string onto a valid variable name.
12660as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12661
12662
12663exec 6>&1
12664## ----------------------------------- ##
12665## Main body of $CONFIG_STATUS script. ##
12666## ----------------------------------- ##
12667_ASEOF
12668test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12669
12670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12671# Save the log message, to keep $0 and so on meaningful, and to
12672# report actual input values of CONFIG_FILES etc. instead of their
12673# values after options handling.
12674ac_log="
12675This file was extended by json-c $as_me 0.12, which was
12676generated by GNU Autoconf 2.69.  Invocation command line was
12677
12678  CONFIG_FILES    = $CONFIG_FILES
12679  CONFIG_HEADERS  = $CONFIG_HEADERS
12680  CONFIG_LINKS    = $CONFIG_LINKS
12681  CONFIG_COMMANDS = $CONFIG_COMMANDS
12682  $ $0 $@
12683
12684on `(hostname || uname -n) 2>/dev/null | sed 1q`
12685"
12686
12687_ACEOF
12688
12689case $ac_config_files in *"
12690"*) set x $ac_config_files; shift; ac_config_files=$*;;
12691esac
12692
12693case $ac_config_headers in *"
12694"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12695esac
12696
12697
12698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12699# Files that config.status was made for.
12700config_files="$ac_config_files"
12701config_headers="$ac_config_headers"
12702config_commands="$ac_config_commands"
12703
12704_ACEOF
12705
12706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12707ac_cs_usage="\
12708\`$as_me' instantiates files and other configuration actions
12709from templates according to the current configuration.  Unless the files
12710and actions are specified as TAGs, all are instantiated by default.
12711
12712Usage: $0 [OPTION]... [TAG]...
12713
12714  -h, --help       print this help, then exit
12715  -V, --version    print version number and configuration settings, then exit
12716      --config     print configuration, then exit
12717  -q, --quiet, --silent
12718                   do not print progress messages
12719  -d, --debug      don't remove temporary files
12720      --recheck    update $as_me by reconfiguring in the same conditions
12721      --file=FILE[:TEMPLATE]
12722                   instantiate the configuration file FILE
12723      --header=FILE[:TEMPLATE]
12724                   instantiate the configuration header FILE
12725
12726Configuration files:
12727$config_files
12728
12729Configuration headers:
12730$config_headers
12731
12732Configuration commands:
12733$config_commands
12734
12735Report bugs to <json-c@googlegroups.com>."
12736
12737_ACEOF
12738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12739ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12740ac_cs_version="\\
12741json-c config.status 0.12
12742configured by $0, generated by GNU Autoconf 2.69,
12743  with options \\"\$ac_cs_config\\"
12744
12745Copyright (C) 2012 Free Software Foundation, Inc.
12746This config.status script is free software; the Free Software Foundation
12747gives unlimited permission to copy, distribute and modify it."
12748
12749ac_pwd='$ac_pwd'
12750srcdir='$srcdir'
12751INSTALL='$INSTALL'
12752MKDIR_P='$MKDIR_P'
12753AWK='$AWK'
12754test -n "\$AWK" || AWK=awk
12755_ACEOF
12756
12757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12758# The default lists apply if the user does not specify any file.
12759ac_need_defaults=:
12760while test $# != 0
12761do
12762  case $1 in
12763  --*=?*)
12764    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12765    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12766    ac_shift=:
12767    ;;
12768  --*=)
12769    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12770    ac_optarg=
12771    ac_shift=:
12772    ;;
12773  *)
12774    ac_option=$1
12775    ac_optarg=$2
12776    ac_shift=shift
12777    ;;
12778  esac
12779
12780  case $ac_option in
12781  # Handling of the options.
12782  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12783    ac_cs_recheck=: ;;
12784  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12785    $as_echo "$ac_cs_version"; exit ;;
12786  --config | --confi | --conf | --con | --co | --c )
12787    $as_echo "$ac_cs_config"; exit ;;
12788  --debug | --debu | --deb | --de | --d | -d )
12789    debug=: ;;
12790  --file | --fil | --fi | --f )
12791    $ac_shift
12792    case $ac_optarg in
12793    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12794    '') as_fn_error $? "missing file argument" ;;
12795    esac
12796    as_fn_append CONFIG_FILES " '$ac_optarg'"
12797    ac_need_defaults=false;;
12798  --header | --heade | --head | --hea )
12799    $ac_shift
12800    case $ac_optarg in
12801    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12802    esac
12803    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12804    ac_need_defaults=false;;
12805  --he | --h)
12806    # Conflict between --help and --header
12807    as_fn_error $? "ambiguous option: \`$1'
12808Try \`$0 --help' for more information.";;
12809  --help | --hel | -h )
12810    $as_echo "$ac_cs_usage"; exit ;;
12811  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12812  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12813    ac_cs_silent=: ;;
12814
12815  # This is an error.
12816  -*) as_fn_error $? "unrecognized option: \`$1'
12817Try \`$0 --help' for more information." ;;
12818
12819  *) as_fn_append ac_config_targets " $1"
12820     ac_need_defaults=false ;;
12821
12822  esac
12823  shift
12824done
12825
12826ac_configure_extra_args=
12827
12828if $ac_cs_silent; then
12829  exec 6>/dev/null
12830  ac_configure_extra_args="$ac_configure_extra_args --silent"
12831fi
12832
12833_ACEOF
12834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12835if \$ac_cs_recheck; then
12836  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12837  shift
12838  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12839  CONFIG_SHELL='$SHELL'
12840  export CONFIG_SHELL
12841  exec "\$@"
12842fi
12843
12844_ACEOF
12845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12846exec 5>>config.log
12847{
12848  echo
12849  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12850## Running $as_me. ##
12851_ASBOX
12852  $as_echo "$ac_log"
12853} >&5
12854
12855_ACEOF
12856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12857#
12858# INIT-COMMANDS
12859#
12860AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12861
12862
12863# The HP-UX ksh and POSIX shell print the target directory to stdout
12864# if CDPATH is set.
12865(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12866
12867sed_quote_subst='$sed_quote_subst'
12868double_quote_subst='$double_quote_subst'
12869delay_variable_subst='$delay_variable_subst'
12870macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12871macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12872enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12873enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12874pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12875enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12876SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12877ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12878PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12879host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12880host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12881host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12882build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12883build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12884build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12885SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12886Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12887GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12888EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12889FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12890LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12891NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12892LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12893max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12894ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12895exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12896lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12897lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12898lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12899lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12900lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12901reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12902reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12903OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12904deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12905file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12906file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12907want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12908DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12909sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12910AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12911AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12912archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12913STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12914RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12915old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12916old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12917old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12918lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12919CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12920CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12921compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12922GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12923lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12924lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12925lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12926lt_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"`'
12927nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12928lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12929objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12930MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12931lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12932lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12933lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12934lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12935lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12936need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12937MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12938DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12939NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12940LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12941OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12942OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12943libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12944shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12945extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12946archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12947enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12948export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12949whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12950compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12951old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12952old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12953archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12954archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12955module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12956module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12957with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12958allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12959no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12960hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12961hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12962hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12963hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12964hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12965hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12966hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12967inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12968link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12969always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12970export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12971exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12972include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12973prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12974postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12975file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12976variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12977need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12978need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12979version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12980runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12981shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12982shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12983libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12984library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12985soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12986install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12987postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12988postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12989finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12990finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12991hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12992sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12993sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12994hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12995enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12996enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12997enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12998old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12999striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13000
13001LTCC='$LTCC'
13002LTCFLAGS='$LTCFLAGS'
13003compiler='$compiler_DEFAULT'
13004
13005# A function that is used when there is no print builtin or printf.
13006func_fallback_echo ()
13007{
13008  eval 'cat <<_LTECHO_EOF
13009\$1
13010_LTECHO_EOF'
13011}
13012
13013# Quote evaled strings.
13014for var in SHELL \
13015ECHO \
13016PATH_SEPARATOR \
13017SED \
13018GREP \
13019EGREP \
13020FGREP \
13021LD \
13022NM \
13023LN_S \
13024lt_SP2NL \
13025lt_NL2SP \
13026reload_flag \
13027OBJDUMP \
13028deplibs_check_method \
13029file_magic_cmd \
13030file_magic_glob \
13031want_nocaseglob \
13032DLLTOOL \
13033sharedlib_from_linklib_cmd \
13034AR \
13035AR_FLAGS \
13036archiver_list_spec \
13037STRIP \
13038RANLIB \
13039CC \
13040CFLAGS \
13041compiler \
13042lt_cv_sys_global_symbol_pipe \
13043lt_cv_sys_global_symbol_to_cdecl \
13044lt_cv_sys_global_symbol_to_c_name_address \
13045lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13046nm_file_list_spec \
13047lt_prog_compiler_no_builtin_flag \
13048lt_prog_compiler_pic \
13049lt_prog_compiler_wl \
13050lt_prog_compiler_static \
13051lt_cv_prog_compiler_c_o \
13052need_locks \
13053MANIFEST_TOOL \
13054DSYMUTIL \
13055NMEDIT \
13056LIPO \
13057OTOOL \
13058OTOOL64 \
13059shrext_cmds \
13060export_dynamic_flag_spec \
13061whole_archive_flag_spec \
13062compiler_needs_object \
13063with_gnu_ld \
13064allow_undefined_flag \
13065no_undefined_flag \
13066hardcode_libdir_flag_spec \
13067hardcode_libdir_separator \
13068exclude_expsyms \
13069include_expsyms \
13070file_list_spec \
13071variables_saved_for_relink \
13072libname_spec \
13073library_names_spec \
13074soname_spec \
13075install_override_mode \
13076finish_eval \
13077old_striplib \
13078striplib; do
13079    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13080    *[\\\\\\\`\\"\\\$]*)
13081      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13082      ;;
13083    *)
13084      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13085      ;;
13086    esac
13087done
13088
13089# Double-quote double-evaled strings.
13090for var in reload_cmds \
13091old_postinstall_cmds \
13092old_postuninstall_cmds \
13093old_archive_cmds \
13094extract_expsyms_cmds \
13095old_archive_from_new_cmds \
13096old_archive_from_expsyms_cmds \
13097archive_cmds \
13098archive_expsym_cmds \
13099module_cmds \
13100module_expsym_cmds \
13101export_symbols_cmds \
13102prelink_cmds \
13103postlink_cmds \
13104postinstall_cmds \
13105postuninstall_cmds \
13106finish_cmds \
13107sys_lib_search_path_spec \
13108sys_lib_dlsearch_path_spec; do
13109    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13110    *[\\\\\\\`\\"\\\$]*)
13111      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13112      ;;
13113    *)
13114      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13115      ;;
13116    esac
13117done
13118
13119ac_aux_dir='$ac_aux_dir'
13120xsi_shell='$xsi_shell'
13121lt_shell_append='$lt_shell_append'
13122
13123# See if we are running on zsh, and set the options which allow our
13124# commands through without removal of \ escapes INIT.
13125if test -n "\${ZSH_VERSION+set}" ; then
13126   setopt NO_GLOB_SUBST
13127fi
13128
13129
13130    PACKAGE='$PACKAGE'
13131    VERSION='$VERSION'
13132    TIMESTAMP='$TIMESTAMP'
13133    RM='$RM'
13134    ofile='$ofile'
13135
13136
13137
13138
13139_ACEOF
13140
13141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13142
13143# Handling of arguments.
13144for ac_config_target in $ac_config_targets
13145do
13146  case $ac_config_target in
13147    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13148    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13149    "json_config.h") CONFIG_HEADERS="$CONFIG_HEADERS json_config.h" ;;
13150    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13151    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13152    "json-c.pc") CONFIG_FILES="$CONFIG_FILES json-c.pc" ;;
13153    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13154    "json-c-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES json-c-uninstalled.pc" ;;
13155
13156  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13157  esac
13158done
13159
13160
13161# If the user did not use the arguments to specify the items to instantiate,
13162# then the envvar interface is used.  Set only those that are not.
13163# We use the long form for the default assignment because of an extremely
13164# bizarre bug on SunOS 4.1.3.
13165if $ac_need_defaults; then
13166  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13167  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13168  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13169fi
13170
13171# Have a temporary directory for convenience.  Make it in the build tree
13172# simply because there is no reason against having it here, and in addition,
13173# creating and moving files from /tmp can sometimes cause problems.
13174# Hook for its removal unless debugging.
13175# Note that there is a small window in which the directory will not be cleaned:
13176# after its creation but before its name has been assigned to `$tmp'.
13177$debug ||
13178{
13179  tmp= ac_tmp=
13180  trap 'exit_status=$?
13181  : "${ac_tmp:=$tmp}"
13182  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13183' 0
13184  trap 'as_fn_exit 1' 1 2 13 15
13185}
13186# Create a (secure) tmp directory for tmp files.
13187
13188{
13189  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13190  test -d "$tmp"
13191}  ||
13192{
13193  tmp=./conf$$-$RANDOM
13194  (umask 077 && mkdir "$tmp")
13195} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13196ac_tmp=$tmp
13197
13198# Set up the scripts for CONFIG_FILES section.
13199# No need to generate them if there are no CONFIG_FILES.
13200# This happens for instance with `./config.status config.h'.
13201if test -n "$CONFIG_FILES"; then
13202
13203
13204ac_cr=`echo X | tr X '\015'`
13205# On cygwin, bash can eat \r inside `` if the user requested igncr.
13206# But we know of no other shell where ac_cr would be empty at this
13207# point, so we can use a bashism as a fallback.
13208if test "x$ac_cr" = x; then
13209  eval ac_cr=\$\'\\r\'
13210fi
13211ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13212if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13213  ac_cs_awk_cr='\\r'
13214else
13215  ac_cs_awk_cr=$ac_cr
13216fi
13217
13218echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13219_ACEOF
13220
13221
13222{
13223  echo "cat >conf$$subs.awk <<_ACEOF" &&
13224  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13225  echo "_ACEOF"
13226} >conf$$subs.sh ||
13227  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13228ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13229ac_delim='%!_!# '
13230for ac_last_try in false false false false false :; do
13231  . ./conf$$subs.sh ||
13232    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13233
13234  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13235  if test $ac_delim_n = $ac_delim_num; then
13236    break
13237  elif $ac_last_try; then
13238    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13239  else
13240    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13241  fi
13242done
13243rm -f conf$$subs.sh
13244
13245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13246cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13247_ACEOF
13248sed -n '
13249h
13250s/^/S["/; s/!.*/"]=/
13251p
13252g
13253s/^[^!]*!//
13254:repl
13255t repl
13256s/'"$ac_delim"'$//
13257t delim
13258:nl
13259h
13260s/\(.\{148\}\)..*/\1/
13261t more1
13262s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13263p
13264n
13265b repl
13266:more1
13267s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13268p
13269g
13270s/.\{148\}//
13271t nl
13272:delim
13273h
13274s/\(.\{148\}\)..*/\1/
13275t more2
13276s/["\\]/\\&/g; s/^/"/; s/$/"/
13277p
13278b
13279:more2
13280s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13281p
13282g
13283s/.\{148\}//
13284t delim
13285' <conf$$subs.awk | sed '
13286/^[^""]/{
13287  N
13288  s/\n//
13289}
13290' >>$CONFIG_STATUS || ac_write_fail=1
13291rm -f conf$$subs.awk
13292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13293_ACAWK
13294cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13295  for (key in S) S_is_set[key] = 1
13296  FS = ""
13297
13298}
13299{
13300  line = $ 0
13301  nfields = split(line, field, "@")
13302  substed = 0
13303  len = length(field[1])
13304  for (i = 2; i < nfields; i++) {
13305    key = field[i]
13306    keylen = length(key)
13307    if (S_is_set[key]) {
13308      value = S[key]
13309      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13310      len += length(value) + length(field[++i])
13311      substed = 1
13312    } else
13313      len += 1 + keylen
13314  }
13315
13316  print line
13317}
13318
13319_ACAWK
13320_ACEOF
13321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13322if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13323  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13324else
13325  cat
13326fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13327  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13328_ACEOF
13329
13330# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13331# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13332# trailing colons and then remove the whole line if VPATH becomes empty
13333# (actually we leave an empty line to preserve line numbers).
13334if test "x$srcdir" = x.; then
13335  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13336h
13337s///
13338s/^/:/
13339s/[	 ]*$/:/
13340s/:\$(srcdir):/:/g
13341s/:\${srcdir}:/:/g
13342s/:@srcdir@:/:/g
13343s/^:*//
13344s/:*$//
13345x
13346s/\(=[	 ]*\).*/\1/
13347G
13348s/\n//
13349s/^[^=]*=[	 ]*$//
13350}'
13351fi
13352
13353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13354fi # test -n "$CONFIG_FILES"
13355
13356# Set up the scripts for CONFIG_HEADERS section.
13357# No need to generate them if there are no CONFIG_HEADERS.
13358# This happens for instance with `./config.status Makefile'.
13359if test -n "$CONFIG_HEADERS"; then
13360cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13361BEGIN {
13362_ACEOF
13363
13364# Transform confdefs.h into an awk script `defines.awk', embedded as
13365# here-document in config.status, that substitutes the proper values into
13366# config.h.in to produce config.h.
13367
13368# Create a delimiter string that does not exist in confdefs.h, to ease
13369# handling of long lines.
13370ac_delim='%!_!# '
13371for ac_last_try in false false :; do
13372  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13373  if test -z "$ac_tt"; then
13374    break
13375  elif $ac_last_try; then
13376    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13377  else
13378    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13379  fi
13380done
13381
13382# For the awk script, D is an array of macro values keyed by name,
13383# likewise P contains macro parameters if any.  Preserve backslash
13384# newline sequences.
13385
13386ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13387sed -n '
13388s/.\{148\}/&'"$ac_delim"'/g
13389t rset
13390:rset
13391s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13392t def
13393d
13394:def
13395s/\\$//
13396t bsnl
13397s/["\\]/\\&/g
13398s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13399D["\1"]=" \3"/p
13400s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13401d
13402:bsnl
13403s/["\\]/\\&/g
13404s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13405D["\1"]=" \3\\\\\\n"\\/p
13406t cont
13407s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13408t cont
13409d
13410:cont
13411n
13412s/.\{148\}/&'"$ac_delim"'/g
13413t clear
13414:clear
13415s/\\$//
13416t bsnlc
13417s/["\\]/\\&/g; s/^/"/; s/$/"/p
13418d
13419:bsnlc
13420s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13421b cont
13422' <confdefs.h | sed '
13423s/'"$ac_delim"'/"\\\
13424"/g' >>$CONFIG_STATUS || ac_write_fail=1
13425
13426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13427  for (key in D) D_is_set[key] = 1
13428  FS = ""
13429}
13430/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13431  line = \$ 0
13432  split(line, arg, " ")
13433  if (arg[1] == "#") {
13434    defundef = arg[2]
13435    mac1 = arg[3]
13436  } else {
13437    defundef = substr(arg[1], 2)
13438    mac1 = arg[2]
13439  }
13440  split(mac1, mac2, "(") #)
13441  macro = mac2[1]
13442  prefix = substr(line, 1, index(line, defundef) - 1)
13443  if (D_is_set[macro]) {
13444    # Preserve the white space surrounding the "#".
13445    print prefix "define", macro P[macro] D[macro]
13446    next
13447  } else {
13448    # Replace #undef with comments.  This is necessary, for example,
13449    # in the case of _POSIX_SOURCE, which is predefined and required
13450    # on some systems where configure will not decide to define it.
13451    if (defundef == "undef") {
13452      print "/*", prefix defundef, macro, "*/"
13453      next
13454    }
13455  }
13456}
13457{ print }
13458_ACAWK
13459_ACEOF
13460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13461  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13462fi # test -n "$CONFIG_HEADERS"
13463
13464
13465eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13466shift
13467for ac_tag
13468do
13469  case $ac_tag in
13470  :[FHLC]) ac_mode=$ac_tag; continue;;
13471  esac
13472  case $ac_mode$ac_tag in
13473  :[FHL]*:*);;
13474  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13475  :[FH]-) ac_tag=-:-;;
13476  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13477  esac
13478  ac_save_IFS=$IFS
13479  IFS=:
13480  set x $ac_tag
13481  IFS=$ac_save_IFS
13482  shift
13483  ac_file=$1
13484  shift
13485
13486  case $ac_mode in
13487  :L) ac_source=$1;;
13488  :[FH])
13489    ac_file_inputs=
13490    for ac_f
13491    do
13492      case $ac_f in
13493      -) ac_f="$ac_tmp/stdin";;
13494      *) # Look for the file first in the build tree, then in the source tree
13495	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13496	 # because $ac_f cannot contain `:'.
13497	 test -f "$ac_f" ||
13498	   case $ac_f in
13499	   [\\/$]*) false;;
13500	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13501	   esac ||
13502	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13503      esac
13504      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13505      as_fn_append ac_file_inputs " '$ac_f'"
13506    done
13507
13508    # Let's still pretend it is `configure' which instantiates (i.e., don't
13509    # use $as_me), people would be surprised to read:
13510    #    /* config.h.  Generated by config.status.  */
13511    configure_input='Generated from '`
13512	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13513	`' by configure.'
13514    if test x"$ac_file" != x-; then
13515      configure_input="$ac_file.  $configure_input"
13516      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13517$as_echo "$as_me: creating $ac_file" >&6;}
13518    fi
13519    # Neutralize special characters interpreted by sed in replacement strings.
13520    case $configure_input in #(
13521    *\&* | *\|* | *\\* )
13522       ac_sed_conf_input=`$as_echo "$configure_input" |
13523       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13524    *) ac_sed_conf_input=$configure_input;;
13525    esac
13526
13527    case $ac_tag in
13528    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13529      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13530    esac
13531    ;;
13532  esac
13533
13534  ac_dir=`$as_dirname -- "$ac_file" ||
13535$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13536	 X"$ac_file" : 'X\(//\)[^/]' \| \
13537	 X"$ac_file" : 'X\(//\)$' \| \
13538	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13539$as_echo X"$ac_file" |
13540    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13541	    s//\1/
13542	    q
13543	  }
13544	  /^X\(\/\/\)[^/].*/{
13545	    s//\1/
13546	    q
13547	  }
13548	  /^X\(\/\/\)$/{
13549	    s//\1/
13550	    q
13551	  }
13552	  /^X\(\/\).*/{
13553	    s//\1/
13554	    q
13555	  }
13556	  s/.*/./; q'`
13557  as_dir="$ac_dir"; as_fn_mkdir_p
13558  ac_builddir=.
13559
13560case "$ac_dir" in
13561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13562*)
13563  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13564  # A ".." for each directory in $ac_dir_suffix.
13565  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13566  case $ac_top_builddir_sub in
13567  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13568  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13569  esac ;;
13570esac
13571ac_abs_top_builddir=$ac_pwd
13572ac_abs_builddir=$ac_pwd$ac_dir_suffix
13573# for backward compatibility:
13574ac_top_builddir=$ac_top_build_prefix
13575
13576case $srcdir in
13577  .)  # We are building in place.
13578    ac_srcdir=.
13579    ac_top_srcdir=$ac_top_builddir_sub
13580    ac_abs_top_srcdir=$ac_pwd ;;
13581  [\\/]* | ?:[\\/]* )  # Absolute name.
13582    ac_srcdir=$srcdir$ac_dir_suffix;
13583    ac_top_srcdir=$srcdir
13584    ac_abs_top_srcdir=$srcdir ;;
13585  *) # Relative name.
13586    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13587    ac_top_srcdir=$ac_top_build_prefix$srcdir
13588    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13589esac
13590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13591
13592
13593  case $ac_mode in
13594  :F)
13595  #
13596  # CONFIG_FILE
13597  #
13598
13599  case $INSTALL in
13600  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13601  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13602  esac
13603  ac_MKDIR_P=$MKDIR_P
13604  case $MKDIR_P in
13605  [\\/$]* | ?:[\\/]* ) ;;
13606  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13607  esac
13608_ACEOF
13609
13610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13611# If the template does not know about datarootdir, expand it.
13612# FIXME: This hack should be removed a few years after 2.60.
13613ac_datarootdir_hack=; ac_datarootdir_seen=
13614ac_sed_dataroot='
13615/datarootdir/ {
13616  p
13617  q
13618}
13619/@datadir@/p
13620/@docdir@/p
13621/@infodir@/p
13622/@localedir@/p
13623/@mandir@/p'
13624case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13625*datarootdir*) ac_datarootdir_seen=yes;;
13626*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13627  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13628$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13629_ACEOF
13630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13631  ac_datarootdir_hack='
13632  s&@datadir@&$datadir&g
13633  s&@docdir@&$docdir&g
13634  s&@infodir@&$infodir&g
13635  s&@localedir@&$localedir&g
13636  s&@mandir@&$mandir&g
13637  s&\\\${datarootdir}&$datarootdir&g' ;;
13638esac
13639_ACEOF
13640
13641# Neutralize VPATH when `$srcdir' = `.'.
13642# Shell code in configure.ac might set extrasub.
13643# FIXME: do we really want to maintain this feature?
13644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13645ac_sed_extra="$ac_vpsub
13646$extrasub
13647_ACEOF
13648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13649:t
13650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13651s|@configure_input@|$ac_sed_conf_input|;t t
13652s&@top_builddir@&$ac_top_builddir_sub&;t t
13653s&@top_build_prefix@&$ac_top_build_prefix&;t t
13654s&@srcdir@&$ac_srcdir&;t t
13655s&@abs_srcdir@&$ac_abs_srcdir&;t t
13656s&@top_srcdir@&$ac_top_srcdir&;t t
13657s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13658s&@builddir@&$ac_builddir&;t t
13659s&@abs_builddir@&$ac_abs_builddir&;t t
13660s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13661s&@INSTALL@&$ac_INSTALL&;t t
13662s&@MKDIR_P@&$ac_MKDIR_P&;t t
13663$ac_datarootdir_hack
13664"
13665eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13666  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13667
13668test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13669  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13670  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13671      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13672  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13673which seems to be undefined.  Please make sure it is defined" >&5
13674$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13675which seems to be undefined.  Please make sure it is defined" >&2;}
13676
13677  rm -f "$ac_tmp/stdin"
13678  case $ac_file in
13679  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13680  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13681  esac \
13682  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13683 ;;
13684  :H)
13685  #
13686  # CONFIG_HEADER
13687  #
13688  if test x"$ac_file" != x-; then
13689    {
13690      $as_echo "/* $configure_input  */" \
13691      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13692    } >"$ac_tmp/config.h" \
13693      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13694    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13695      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13696$as_echo "$as_me: $ac_file is unchanged" >&6;}
13697    else
13698      rm -f "$ac_file"
13699      mv "$ac_tmp/config.h" "$ac_file" \
13700	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13701    fi
13702  else
13703    $as_echo "/* $configure_input  */" \
13704      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13705      || as_fn_error $? "could not create -" "$LINENO" 5
13706  fi
13707# Compute "$ac_file"'s index in $config_headers.
13708_am_arg="$ac_file"
13709_am_stamp_count=1
13710for _am_header in $config_headers :; do
13711  case $_am_header in
13712    $_am_arg | $_am_arg:* )
13713      break ;;
13714    * )
13715      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13716  esac
13717done
13718echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13719$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13720	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13721	 X"$_am_arg" : 'X\(//\)$' \| \
13722	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13723$as_echo X"$_am_arg" |
13724    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13725	    s//\1/
13726	    q
13727	  }
13728	  /^X\(\/\/\)[^/].*/{
13729	    s//\1/
13730	    q
13731	  }
13732	  /^X\(\/\/\)$/{
13733	    s//\1/
13734	    q
13735	  }
13736	  /^X\(\/\).*/{
13737	    s//\1/
13738	    q
13739	  }
13740	  s/.*/./; q'`/stamp-h$_am_stamp_count
13741 ;;
13742
13743  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13744$as_echo "$as_me: executing $ac_file commands" >&6;}
13745 ;;
13746  esac
13747
13748
13749  case $ac_file$ac_mode in
13750    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13751  # Older Autoconf quotes --file arguments for eval, but not when files
13752  # are listed without --file.  Let's play safe and only enable the eval
13753  # if we detect the quoting.
13754  case $CONFIG_FILES in
13755  *\'*) eval set x "$CONFIG_FILES" ;;
13756  *)   set x $CONFIG_FILES ;;
13757  esac
13758  shift
13759  for mf
13760  do
13761    # Strip MF so we end up with the name of the file.
13762    mf=`echo "$mf" | sed -e 's/:.*$//'`
13763    # Check whether this is an Automake generated Makefile or not.
13764    # We used to match only the files named 'Makefile.in', but
13765    # some people rename them; so instead we look at the file content.
13766    # Grep'ing the first line is not enough: some people post-process
13767    # each Makefile.in and add a new line on top of each file to say so.
13768    # Grep'ing the whole file is not good either: AIX grep has a line
13769    # limit of 2048, but all sed's we know have understand at least 4000.
13770    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13771      dirpart=`$as_dirname -- "$mf" ||
13772$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13773	 X"$mf" : 'X\(//\)[^/]' \| \
13774	 X"$mf" : 'X\(//\)$' \| \
13775	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13776$as_echo X"$mf" |
13777    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13778	    s//\1/
13779	    q
13780	  }
13781	  /^X\(\/\/\)[^/].*/{
13782	    s//\1/
13783	    q
13784	  }
13785	  /^X\(\/\/\)$/{
13786	    s//\1/
13787	    q
13788	  }
13789	  /^X\(\/\).*/{
13790	    s//\1/
13791	    q
13792	  }
13793	  s/.*/./; q'`
13794    else
13795      continue
13796    fi
13797    # Extract the definition of DEPDIR, am__include, and am__quote
13798    # from the Makefile without running 'make'.
13799    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13800    test -z "$DEPDIR" && continue
13801    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13802    test -z "$am__include" && continue
13803    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13804    # Find all dependency output files, they are included files with
13805    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13806    # simplest approach to changing $(DEPDIR) to its actual value in the
13807    # expansion.
13808    for file in `sed -n "
13809      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13810	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13811      # Make sure the directory exists.
13812      test -f "$dirpart/$file" && continue
13813      fdir=`$as_dirname -- "$file" ||
13814$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815	 X"$file" : 'X\(//\)[^/]' \| \
13816	 X"$file" : 'X\(//\)$' \| \
13817	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13818$as_echo X"$file" |
13819    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13820	    s//\1/
13821	    q
13822	  }
13823	  /^X\(\/\/\)[^/].*/{
13824	    s//\1/
13825	    q
13826	  }
13827	  /^X\(\/\/\)$/{
13828	    s//\1/
13829	    q
13830	  }
13831	  /^X\(\/\).*/{
13832	    s//\1/
13833	    q
13834	  }
13835	  s/.*/./; q'`
13836      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13837      # echo "creating $dirpart/$file"
13838      echo '# dummy' > "$dirpart/$file"
13839    done
13840  done
13841}
13842 ;;
13843    "libtool":C)
13844
13845    # See if we are running on zsh, and set the options which allow our
13846    # commands through without removal of \ escapes.
13847    if test -n "${ZSH_VERSION+set}" ; then
13848      setopt NO_GLOB_SUBST
13849    fi
13850
13851    cfgfile="${ofile}T"
13852    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13853    $RM "$cfgfile"
13854
13855    cat <<_LT_EOF >> "$cfgfile"
13856#! $SHELL
13857
13858# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13859# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13860# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13861# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13862#
13863#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13864#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13865#                 Foundation, Inc.
13866#   Written by Gordon Matzigkeit, 1996
13867#
13868#   This file is part of GNU Libtool.
13869#
13870# GNU Libtool is free software; you can redistribute it and/or
13871# modify it under the terms of the GNU General Public License as
13872# published by the Free Software Foundation; either version 2 of
13873# the License, or (at your option) any later version.
13874#
13875# As a special exception to the GNU General Public License,
13876# if you distribute this file as part of a program or library that
13877# is built using GNU Libtool, you may include this file under the
13878# same distribution terms that you use for the rest of that program.
13879#
13880# GNU Libtool is distributed in the hope that it will be useful,
13881# but WITHOUT ANY WARRANTY; without even the implied warranty of
13882# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13883# GNU General Public License for more details.
13884#
13885# You should have received a copy of the GNU General Public License
13886# along with GNU Libtool; see the file COPYING.  If not, a copy
13887# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13888# obtained by writing to the Free Software Foundation, Inc.,
13889# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13890
13891
13892# The names of the tagged configurations supported by this script.
13893available_tags=""
13894
13895# ### BEGIN LIBTOOL CONFIG
13896
13897# Which release of libtool.m4 was used?
13898macro_version=$macro_version
13899macro_revision=$macro_revision
13900
13901# Whether or not to build shared libraries.
13902build_libtool_libs=$enable_shared
13903
13904# Whether or not to build static libraries.
13905build_old_libs=$enable_static
13906
13907# What type of objects to build.
13908pic_mode=$pic_mode
13909
13910# Whether or not to optimize for fast installation.
13911fast_install=$enable_fast_install
13912
13913# Shell to use when invoking shell scripts.
13914SHELL=$lt_SHELL
13915
13916# An echo program that protects backslashes.
13917ECHO=$lt_ECHO
13918
13919# The PATH separator for the build system.
13920PATH_SEPARATOR=$lt_PATH_SEPARATOR
13921
13922# The host system.
13923host_alias=$host_alias
13924host=$host
13925host_os=$host_os
13926
13927# The build system.
13928build_alias=$build_alias
13929build=$build
13930build_os=$build_os
13931
13932# A sed program that does not truncate output.
13933SED=$lt_SED
13934
13935# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13936Xsed="\$SED -e 1s/^X//"
13937
13938# A grep program that handles long lines.
13939GREP=$lt_GREP
13940
13941# An ERE matcher.
13942EGREP=$lt_EGREP
13943
13944# A literal string matcher.
13945FGREP=$lt_FGREP
13946
13947# A BSD- or MS-compatible name lister.
13948NM=$lt_NM
13949
13950# Whether we need soft or hard links.
13951LN_S=$lt_LN_S
13952
13953# What is the maximum length of a command?
13954max_cmd_len=$max_cmd_len
13955
13956# Object file suffix (normally "o").
13957objext=$ac_objext
13958
13959# Executable file suffix (normally "").
13960exeext=$exeext
13961
13962# whether the shell understands "unset".
13963lt_unset=$lt_unset
13964
13965# turn spaces into newlines.
13966SP2NL=$lt_lt_SP2NL
13967
13968# turn newlines into spaces.
13969NL2SP=$lt_lt_NL2SP
13970
13971# convert \$build file names to \$host format.
13972to_host_file_cmd=$lt_cv_to_host_file_cmd
13973
13974# convert \$build files to toolchain format.
13975to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13976
13977# An object symbol dumper.
13978OBJDUMP=$lt_OBJDUMP
13979
13980# Method to check whether dependent libraries are shared objects.
13981deplibs_check_method=$lt_deplibs_check_method
13982
13983# Command to use when deplibs_check_method = "file_magic".
13984file_magic_cmd=$lt_file_magic_cmd
13985
13986# How to find potential files when deplibs_check_method = "file_magic".
13987file_magic_glob=$lt_file_magic_glob
13988
13989# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13990want_nocaseglob=$lt_want_nocaseglob
13991
13992# DLL creation program.
13993DLLTOOL=$lt_DLLTOOL
13994
13995# Command to associate shared and link libraries.
13996sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13997
13998# The archiver.
13999AR=$lt_AR
14000
14001# Flags to create an archive.
14002AR_FLAGS=$lt_AR_FLAGS
14003
14004# How to feed a file listing to the archiver.
14005archiver_list_spec=$lt_archiver_list_spec
14006
14007# A symbol stripping program.
14008STRIP=$lt_STRIP
14009
14010# Commands used to install an old-style archive.
14011RANLIB=$lt_RANLIB
14012old_postinstall_cmds=$lt_old_postinstall_cmds
14013old_postuninstall_cmds=$lt_old_postuninstall_cmds
14014
14015# Whether to use a lock for old archive extraction.
14016lock_old_archive_extraction=$lock_old_archive_extraction
14017
14018# A C compiler.
14019LTCC=$lt_CC
14020
14021# LTCC compiler flags.
14022LTCFLAGS=$lt_CFLAGS
14023
14024# Take the output of nm and produce a listing of raw symbols and C names.
14025global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14026
14027# Transform the output of nm in a proper C declaration.
14028global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14029
14030# Transform the output of nm in a C name address pair.
14031global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14032
14033# Transform the output of nm in a C name address pair when lib prefix is needed.
14034global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14035
14036# Specify filename containing input files for \$NM.
14037nm_file_list_spec=$lt_nm_file_list_spec
14038
14039# The root where to search for dependent libraries,and in which our libraries should be installed.
14040lt_sysroot=$lt_sysroot
14041
14042# The name of the directory that contains temporary libtool files.
14043objdir=$objdir
14044
14045# Used to examine libraries when file_magic_cmd begins with "file".
14046MAGIC_CMD=$MAGIC_CMD
14047
14048# Must we lock files when doing compilation?
14049need_locks=$lt_need_locks
14050
14051# Manifest tool.
14052MANIFEST_TOOL=$lt_MANIFEST_TOOL
14053
14054# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14055DSYMUTIL=$lt_DSYMUTIL
14056
14057# Tool to change global to local symbols on Mac OS X.
14058NMEDIT=$lt_NMEDIT
14059
14060# Tool to manipulate fat objects and archives on Mac OS X.
14061LIPO=$lt_LIPO
14062
14063# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14064OTOOL=$lt_OTOOL
14065
14066# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14067OTOOL64=$lt_OTOOL64
14068
14069# Old archive suffix (normally "a").
14070libext=$libext
14071
14072# Shared library suffix (normally ".so").
14073shrext_cmds=$lt_shrext_cmds
14074
14075# The commands to extract the exported symbol list from a shared archive.
14076extract_expsyms_cmds=$lt_extract_expsyms_cmds
14077
14078# Variables whose values should be saved in libtool wrapper scripts and
14079# restored at link time.
14080variables_saved_for_relink=$lt_variables_saved_for_relink
14081
14082# Do we need the "lib" prefix for modules?
14083need_lib_prefix=$need_lib_prefix
14084
14085# Do we need a version for libraries?
14086need_version=$need_version
14087
14088# Library versioning type.
14089version_type=$version_type
14090
14091# Shared library runtime path variable.
14092runpath_var=$runpath_var
14093
14094# Shared library path variable.
14095shlibpath_var=$shlibpath_var
14096
14097# Is shlibpath searched before the hard-coded library search path?
14098shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14099
14100# Format of library name prefix.
14101libname_spec=$lt_libname_spec
14102
14103# List of archive names.  First name is the real one, the rest are links.
14104# The last name is the one that the linker finds with -lNAME
14105library_names_spec=$lt_library_names_spec
14106
14107# The coded name of the library, if different from the real name.
14108soname_spec=$lt_soname_spec
14109
14110# Permission mode override for installation of shared libraries.
14111install_override_mode=$lt_install_override_mode
14112
14113# Command to use after installation of a shared archive.
14114postinstall_cmds=$lt_postinstall_cmds
14115
14116# Command to use after uninstallation of a shared archive.
14117postuninstall_cmds=$lt_postuninstall_cmds
14118
14119# Commands used to finish a libtool library installation in a directory.
14120finish_cmds=$lt_finish_cmds
14121
14122# As "finish_cmds", except a single script fragment to be evaled but
14123# not shown.
14124finish_eval=$lt_finish_eval
14125
14126# Whether we should hardcode library paths into libraries.
14127hardcode_into_libs=$hardcode_into_libs
14128
14129# Compile-time system search path for libraries.
14130sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14131
14132# Run-time system search path for libraries.
14133sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14134
14135# Whether dlopen is supported.
14136dlopen_support=$enable_dlopen
14137
14138# Whether dlopen of programs is supported.
14139dlopen_self=$enable_dlopen_self
14140
14141# Whether dlopen of statically linked programs is supported.
14142dlopen_self_static=$enable_dlopen_self_static
14143
14144# Commands to strip libraries.
14145old_striplib=$lt_old_striplib
14146striplib=$lt_striplib
14147
14148
14149# The linker used to build libraries.
14150LD=$lt_LD
14151
14152# How to create reloadable object files.
14153reload_flag=$lt_reload_flag
14154reload_cmds=$lt_reload_cmds
14155
14156# Commands used to build an old-style archive.
14157old_archive_cmds=$lt_old_archive_cmds
14158
14159# A language specific compiler.
14160CC=$lt_compiler
14161
14162# Is the compiler the GNU compiler?
14163with_gcc=$GCC
14164
14165# Compiler flag to turn off builtin functions.
14166no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14167
14168# Additional compiler flags for building library objects.
14169pic_flag=$lt_lt_prog_compiler_pic
14170
14171# How to pass a linker flag through the compiler.
14172wl=$lt_lt_prog_compiler_wl
14173
14174# Compiler flag to prevent dynamic linking.
14175link_static_flag=$lt_lt_prog_compiler_static
14176
14177# Does compiler simultaneously support -c and -o options?
14178compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14179
14180# Whether or not to add -lc for building shared libraries.
14181build_libtool_need_lc=$archive_cmds_need_lc
14182
14183# Whether or not to disallow shared libs when runtime libs are static.
14184allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14185
14186# Compiler flag to allow reflexive dlopens.
14187export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14188
14189# Compiler flag to generate shared objects directly from archives.
14190whole_archive_flag_spec=$lt_whole_archive_flag_spec
14191
14192# Whether the compiler copes with passing no objects directly.
14193compiler_needs_object=$lt_compiler_needs_object
14194
14195# Create an old-style archive from a shared archive.
14196old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14197
14198# Create a temporary old-style archive to link instead of a shared archive.
14199old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14200
14201# Commands used to build a shared archive.
14202archive_cmds=$lt_archive_cmds
14203archive_expsym_cmds=$lt_archive_expsym_cmds
14204
14205# Commands used to build a loadable module if different from building
14206# a shared archive.
14207module_cmds=$lt_module_cmds
14208module_expsym_cmds=$lt_module_expsym_cmds
14209
14210# Whether we are building with GNU ld or not.
14211with_gnu_ld=$lt_with_gnu_ld
14212
14213# Flag that allows shared libraries with undefined symbols to be built.
14214allow_undefined_flag=$lt_allow_undefined_flag
14215
14216# Flag that enforces no undefined symbols.
14217no_undefined_flag=$lt_no_undefined_flag
14218
14219# Flag to hardcode \$libdir into a binary during linking.
14220# This must work even if \$libdir does not exist
14221hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14222
14223# Whether we need a single "-rpath" flag with a separated argument.
14224hardcode_libdir_separator=$lt_hardcode_libdir_separator
14225
14226# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14227# DIR into the resulting binary.
14228hardcode_direct=$hardcode_direct
14229
14230# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14231# DIR into the resulting binary and the resulting library dependency is
14232# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14233# library is relocated.
14234hardcode_direct_absolute=$hardcode_direct_absolute
14235
14236# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14237# into the resulting binary.
14238hardcode_minus_L=$hardcode_minus_L
14239
14240# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14241# into the resulting binary.
14242hardcode_shlibpath_var=$hardcode_shlibpath_var
14243
14244# Set to "yes" if building a shared library automatically hardcodes DIR
14245# into the library and all subsequent libraries and executables linked
14246# against it.
14247hardcode_automatic=$hardcode_automatic
14248
14249# Set to yes if linker adds runtime paths of dependent libraries
14250# to runtime path list.
14251inherit_rpath=$inherit_rpath
14252
14253# Whether libtool must link a program against all its dependency libraries.
14254link_all_deplibs=$link_all_deplibs
14255
14256# Set to "yes" if exported symbols are required.
14257always_export_symbols=$always_export_symbols
14258
14259# The commands to list exported symbols.
14260export_symbols_cmds=$lt_export_symbols_cmds
14261
14262# Symbols that should not be listed in the preloaded symbols.
14263exclude_expsyms=$lt_exclude_expsyms
14264
14265# Symbols that must always be exported.
14266include_expsyms=$lt_include_expsyms
14267
14268# Commands necessary for linking programs (against libraries) with templates.
14269prelink_cmds=$lt_prelink_cmds
14270
14271# Commands necessary for finishing linking programs.
14272postlink_cmds=$lt_postlink_cmds
14273
14274# Specify filename containing input files.
14275file_list_spec=$lt_file_list_spec
14276
14277# How to hardcode a shared library path into an executable.
14278hardcode_action=$hardcode_action
14279
14280# ### END LIBTOOL CONFIG
14281
14282_LT_EOF
14283
14284  case $host_os in
14285  aix3*)
14286    cat <<\_LT_EOF >> "$cfgfile"
14287# AIX sometimes has problems with the GCC collect2 program.  For some
14288# reason, if we set the COLLECT_NAMES environment variable, the problems
14289# vanish in a puff of smoke.
14290if test "X${COLLECT_NAMES+set}" != Xset; then
14291  COLLECT_NAMES=
14292  export COLLECT_NAMES
14293fi
14294_LT_EOF
14295    ;;
14296  esac
14297
14298
14299ltmain="$ac_aux_dir/ltmain.sh"
14300
14301
14302  # We use sed instead of cat because bash on DJGPP gets confused if
14303  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14304  # text mode, it properly converts lines to CR/LF.  This bash problem
14305  # is reportedly fixed, but why not run on old versions too?
14306  sed '$q' "$ltmain" >> "$cfgfile" \
14307     || (rm -f "$cfgfile"; exit 1)
14308
14309  if test x"$xsi_shell" = xyes; then
14310  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14311func_dirname ()\
14312{\
14313\    case ${1} in\
14314\      */*) func_dirname_result="${1%/*}${2}" ;;\
14315\      *  ) func_dirname_result="${3}" ;;\
14316\    esac\
14317} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14318  && mv -f "$cfgfile.tmp" "$cfgfile" \
14319    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14320test 0 -eq $? || _lt_function_replace_fail=:
14321
14322
14323  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14324func_basename ()\
14325{\
14326\    func_basename_result="${1##*/}"\
14327} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14328  && mv -f "$cfgfile.tmp" "$cfgfile" \
14329    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14330test 0 -eq $? || _lt_function_replace_fail=:
14331
14332
14333  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14334func_dirname_and_basename ()\
14335{\
14336\    case ${1} in\
14337\      */*) func_dirname_result="${1%/*}${2}" ;;\
14338\      *  ) func_dirname_result="${3}" ;;\
14339\    esac\
14340\    func_basename_result="${1##*/}"\
14341} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14342  && mv -f "$cfgfile.tmp" "$cfgfile" \
14343    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14344test 0 -eq $? || _lt_function_replace_fail=:
14345
14346
14347  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14348func_stripname ()\
14349{\
14350\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14351\    # positional parameters, so assign one to ordinary parameter first.\
14352\    func_stripname_result=${3}\
14353\    func_stripname_result=${func_stripname_result#"${1}"}\
14354\    func_stripname_result=${func_stripname_result%"${2}"}\
14355} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14356  && mv -f "$cfgfile.tmp" "$cfgfile" \
14357    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14358test 0 -eq $? || _lt_function_replace_fail=:
14359
14360
14361  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14362func_split_long_opt ()\
14363{\
14364\    func_split_long_opt_name=${1%%=*}\
14365\    func_split_long_opt_arg=${1#*=}\
14366} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14367  && mv -f "$cfgfile.tmp" "$cfgfile" \
14368    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14369test 0 -eq $? || _lt_function_replace_fail=:
14370
14371
14372  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14373func_split_short_opt ()\
14374{\
14375\    func_split_short_opt_arg=${1#??}\
14376\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14377} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14378  && mv -f "$cfgfile.tmp" "$cfgfile" \
14379    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14380test 0 -eq $? || _lt_function_replace_fail=:
14381
14382
14383  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14384func_lo2o ()\
14385{\
14386\    case ${1} in\
14387\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14388\      *)    func_lo2o_result=${1} ;;\
14389\    esac\
14390} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14391  && mv -f "$cfgfile.tmp" "$cfgfile" \
14392    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14393test 0 -eq $? || _lt_function_replace_fail=:
14394
14395
14396  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14397func_xform ()\
14398{\
14399    func_xform_result=${1%.*}.lo\
14400} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14401  && mv -f "$cfgfile.tmp" "$cfgfile" \
14402    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14403test 0 -eq $? || _lt_function_replace_fail=:
14404
14405
14406  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14407func_arith ()\
14408{\
14409    func_arith_result=$(( $* ))\
14410} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14411  && mv -f "$cfgfile.tmp" "$cfgfile" \
14412    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14413test 0 -eq $? || _lt_function_replace_fail=:
14414
14415
14416  sed -e '/^func_len ()$/,/^} # func_len /c\
14417func_len ()\
14418{\
14419    func_len_result=${#1}\
14420} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14421  && mv -f "$cfgfile.tmp" "$cfgfile" \
14422    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14423test 0 -eq $? || _lt_function_replace_fail=:
14424
14425fi
14426
14427if test x"$lt_shell_append" = xyes; then
14428  sed -e '/^func_append ()$/,/^} # func_append /c\
14429func_append ()\
14430{\
14431    eval "${1}+=\\${2}"\
14432} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14433  && mv -f "$cfgfile.tmp" "$cfgfile" \
14434    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14435test 0 -eq $? || _lt_function_replace_fail=:
14436
14437
14438  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14439func_append_quoted ()\
14440{\
14441\    func_quote_for_eval "${2}"\
14442\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14443} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14444  && mv -f "$cfgfile.tmp" "$cfgfile" \
14445    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14446test 0 -eq $? || _lt_function_replace_fail=:
14447
14448
14449  # Save a `func_append' function call where possible by direct use of '+='
14450  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14451    && mv -f "$cfgfile.tmp" "$cfgfile" \
14452      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14453  test 0 -eq $? || _lt_function_replace_fail=:
14454else
14455  # Save a `func_append' function call even when '+=' is not available
14456  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14457    && mv -f "$cfgfile.tmp" "$cfgfile" \
14458      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14459  test 0 -eq $? || _lt_function_replace_fail=:
14460fi
14461
14462if test x"$_lt_function_replace_fail" = x":"; then
14463  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14464$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14465fi
14466
14467
14468   mv -f "$cfgfile" "$ofile" ||
14469    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14470  chmod +x "$ofile"
14471
14472 ;;
14473
14474  esac
14475done # for ac_tag
14476
14477
14478as_fn_exit 0
14479_ACEOF
14480ac_clean_files=$ac_clean_files_save
14481
14482test $ac_write_fail = 0 ||
14483  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14484
14485
14486# configure is writing to config.log, and then calls config.status.
14487# config.status does its own redirection, appending to config.log.
14488# Unfortunately, on DOS this fails, as config.log is still kept open
14489# by configure, so config.status won't be able to write to it; its
14490# output is simply discarded.  So we exec the FD to /dev/null,
14491# effectively closing config.log, so it can be properly (re)opened and
14492# appended to by config.status.  When coming back to configure, we
14493# need to make the FD available again.
14494if test "$no_create" != yes; then
14495  ac_cs_success=:
14496  ac_config_status_args=
14497  test "$silent" = yes &&
14498    ac_config_status_args="$ac_config_status_args --quiet"
14499  exec 5>/dev/null
14500  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14501  exec 5>>config.log
14502  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14503  # would make configure fail if this is the last instruction.
14504  $ac_cs_success || as_fn_exit 1
14505fi
14506if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14507  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14508$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14509fi
14510
14511
14512