1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for liblock 0.60.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-users@lists.sourceforge.net about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script 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='liblock'
592PACKAGE_TARNAME='liblock'
593PACKAGE_VERSION='0.60'
594PACKAGE_STRING='liblock 0.60'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="liblock.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_SGML_FALSE
640HAVE_SGML_TRUE
641USE_LOCKF_FALSE
642USE_LOCKF_TRUE
643USE_FLOCK_FALSE
644USE_FLOCK_TRUE
645USE_FCNTL_FALSE
646USE_FCNTL_TRUE
647CPP
648LT_SYS_LIBRARY_PATH
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665EGREP
666GREP
667SED
668host_os
669host_vendor
670host_cpu
671host
672build_os
673build_vendor
674build_cpu
675build
676LIBTOOL
677LN_S
678am__fastdepCC_FALSE
679am__fastdepCC_TRUE
680CCDEPMODE
681am__nodep
682AMDEPBACKSLASH
683AMDEP_FALSE
684AMDEP_TRUE
685am__include
686DEPDIR
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740runstatedir
741localstatedir
742sharedstatedir
743sysconfdir
744datadir
745datarootdir
746libexecdir
747sbindir
748bindir
749program_transform_name
750prefix
751exec_prefix
752PACKAGE_URL
753PACKAGE_BUGREPORT
754PACKAGE_STRING
755PACKAGE_VERSION
756PACKAGE_TARNAME
757PACKAGE_NAME
758PATH_SEPARATOR
759SHELL
760am__quote'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_silent_rules
765enable_dependency_tracking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_aix_soname
771with_gnu_ld
772with_sysroot
773enable_libtool_lock
774enable_largefile
775with_locking_method
776'
777      ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785LT_SYS_LIBRARY_PATH
786CPP'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825runstatedir='${localstatedir}/run'
826includedir='${prefix}/include'
827oldincludedir='/usr/include'
828docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829infodir='${datarootdir}/info'
830htmldir='${docdir}'
831dvidir='${docdir}'
832pdfdir='${docdir}'
833psdir='${docdir}'
834libdir='${exec_prefix}/lib'
835localedir='${datarootdir}/locale'
836mandir='${datarootdir}/man'
837
838ac_prev=
839ac_dashdash=
840for ac_option
841do
842  # If the previous option needs an argument, assign it.
843  if test -n "$ac_prev"; then
844    eval $ac_prev=\$ac_option
845    ac_prev=
846    continue
847  fi
848
849  case $ac_option in
850  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851  *=)   ac_optarg= ;;
852  *)    ac_optarg=yes ;;
853  esac
854
855  # Accept the important Cygnus configure options, so we can diagnose typos.
856
857  case $ac_dashdash$ac_option in
858  --)
859    ac_dashdash=yes ;;
860
861  -bindir | --bindir | --bindi | --bind | --bin | --bi)
862    ac_prev=bindir ;;
863  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864    bindir=$ac_optarg ;;
865
866  -build | --build | --buil | --bui | --bu)
867    ac_prev=build_alias ;;
868  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869    build_alias=$ac_optarg ;;
870
871  -cache-file | --cache-file | --cache-fil | --cache-fi \
872  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873    ac_prev=cache_file ;;
874  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876    cache_file=$ac_optarg ;;
877
878  --config-cache | -C)
879    cache_file=config.cache ;;
880
881  -datadir | --datadir | --datadi | --datad)
882    ac_prev=datadir ;;
883  -datadir=* | --datadir=* | --datadi=* | --datad=*)
884    datadir=$ac_optarg ;;
885
886  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887  | --dataroo | --dataro | --datar)
888    ac_prev=datarootdir ;;
889  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891    datarootdir=$ac_optarg ;;
892
893  -disable-* | --disable-*)
894    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895    # Reject names that are not valid shell variable names.
896    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897      as_fn_error $? "invalid feature name: $ac_useropt"
898    ac_useropt_orig=$ac_useropt
899    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900    case $ac_user_opts in
901      *"
902"enable_$ac_useropt"
903"*) ;;
904      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905	 ac_unrecognized_sep=', ';;
906    esac
907    eval enable_$ac_useropt=no ;;
908
909  -docdir | --docdir | --docdi | --doc | --do)
910    ac_prev=docdir ;;
911  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912    docdir=$ac_optarg ;;
913
914  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915    ac_prev=dvidir ;;
916  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917    dvidir=$ac_optarg ;;
918
919  -enable-* | --enable-*)
920    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921    # Reject names that are not valid shell variable names.
922    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923      as_fn_error $? "invalid feature name: $ac_useropt"
924    ac_useropt_orig=$ac_useropt
925    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926    case $ac_user_opts in
927      *"
928"enable_$ac_useropt"
929"*) ;;
930      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931	 ac_unrecognized_sep=', ';;
932    esac
933    eval enable_$ac_useropt=\$ac_optarg ;;
934
935  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937  | --exec | --exe | --ex)
938    ac_prev=exec_prefix ;;
939  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941  | --exec=* | --exe=* | --ex=*)
942    exec_prefix=$ac_optarg ;;
943
944  -gas | --gas | --ga | --g)
945    # Obsolete; use --with-gas.
946    with_gas=yes ;;
947
948  -help | --help | --hel | --he | -h)
949    ac_init_help=long ;;
950  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951    ac_init_help=recursive ;;
952  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953    ac_init_help=short ;;
954
955  -host | --host | --hos | --ho)
956    ac_prev=host_alias ;;
957  -host=* | --host=* | --hos=* | --ho=*)
958    host_alias=$ac_optarg ;;
959
960  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961    ac_prev=htmldir ;;
962  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963  | --ht=*)
964    htmldir=$ac_optarg ;;
965
966  -includedir | --includedir | --includedi | --included | --include \
967  | --includ | --inclu | --incl | --inc)
968    ac_prev=includedir ;;
969  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970  | --includ=* | --inclu=* | --incl=* | --inc=*)
971    includedir=$ac_optarg ;;
972
973  -infodir | --infodir | --infodi | --infod | --info | --inf)
974    ac_prev=infodir ;;
975  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976    infodir=$ac_optarg ;;
977
978  -libdir | --libdir | --libdi | --libd)
979    ac_prev=libdir ;;
980  -libdir=* | --libdir=* | --libdi=* | --libd=*)
981    libdir=$ac_optarg ;;
982
983  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984  | --libexe | --libex | --libe)
985    ac_prev=libexecdir ;;
986  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987  | --libexe=* | --libex=* | --libe=*)
988    libexecdir=$ac_optarg ;;
989
990  -localedir | --localedir | --localedi | --localed | --locale)
991    ac_prev=localedir ;;
992  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993    localedir=$ac_optarg ;;
994
995  -localstatedir | --localstatedir | --localstatedi | --localstated \
996  | --localstate | --localstat | --localsta | --localst | --locals)
997    ac_prev=localstatedir ;;
998  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000    localstatedir=$ac_optarg ;;
1001
1002  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003    ac_prev=mandir ;;
1004  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005    mandir=$ac_optarg ;;
1006
1007  -nfp | --nfp | --nf)
1008    # Obsolete; use --without-fp.
1009    with_fp=no ;;
1010
1011  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012  | --no-cr | --no-c | -n)
1013    no_create=yes ;;
1014
1015  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017    no_recursion=yes ;;
1018
1019  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021  | --oldin | --oldi | --old | --ol | --o)
1022    ac_prev=oldincludedir ;;
1023  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026    oldincludedir=$ac_optarg ;;
1027
1028  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029    ac_prev=prefix ;;
1030  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031    prefix=$ac_optarg ;;
1032
1033  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034  | --program-pre | --program-pr | --program-p)
1035    ac_prev=program_prefix ;;
1036  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038    program_prefix=$ac_optarg ;;
1039
1040  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041  | --program-suf | --program-su | --program-s)
1042    ac_prev=program_suffix ;;
1043  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045    program_suffix=$ac_optarg ;;
1046
1047  -program-transform-name | --program-transform-name \
1048  | --program-transform-nam | --program-transform-na \
1049  | --program-transform-n | --program-transform- \
1050  | --program-transform | --program-transfor \
1051  | --program-transfo | --program-transf \
1052  | --program-trans | --program-tran \
1053  | --progr-tra | --program-tr | --program-t)
1054    ac_prev=program_transform_name ;;
1055  -program-transform-name=* | --program-transform-name=* \
1056  | --program-transform-nam=* | --program-transform-na=* \
1057  | --program-transform-n=* | --program-transform-=* \
1058  | --program-transform=* | --program-transfor=* \
1059  | --program-transfo=* | --program-transf=* \
1060  | --program-trans=* | --program-tran=* \
1061  | --progr-tra=* | --program-tr=* | --program-t=*)
1062    program_transform_name=$ac_optarg ;;
1063
1064  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065    ac_prev=pdfdir ;;
1066  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067    pdfdir=$ac_optarg ;;
1068
1069  -psdir | --psdir | --psdi | --psd | --ps)
1070    ac_prev=psdir ;;
1071  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072    psdir=$ac_optarg ;;
1073
1074  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075  | -silent | --silent | --silen | --sile | --sil)
1076    silent=yes ;;
1077
1078  -runstatedir | --runstatedir | --runstatedi | --runstated \
1079  | --runstate | --runstat | --runsta | --runst | --runs \
1080  | --run | --ru | --r)
1081    ac_prev=runstatedir ;;
1082  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1083  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1084  | --run=* | --ru=* | --r=*)
1085    runstatedir=$ac_optarg ;;
1086
1087  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088    ac_prev=sbindir ;;
1089  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090  | --sbi=* | --sb=*)
1091    sbindir=$ac_optarg ;;
1092
1093  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095  | --sharedst | --shareds | --shared | --share | --shar \
1096  | --sha | --sh)
1097    ac_prev=sharedstatedir ;;
1098  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101  | --sha=* | --sh=*)
1102    sharedstatedir=$ac_optarg ;;
1103
1104  -site | --site | --sit)
1105    ac_prev=site ;;
1106  -site=* | --site=* | --sit=*)
1107    site=$ac_optarg ;;
1108
1109  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110    ac_prev=srcdir ;;
1111  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112    srcdir=$ac_optarg ;;
1113
1114  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115  | --syscon | --sysco | --sysc | --sys | --sy)
1116    ac_prev=sysconfdir ;;
1117  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119    sysconfdir=$ac_optarg ;;
1120
1121  -target | --target | --targe | --targ | --tar | --ta | --t)
1122    ac_prev=target_alias ;;
1123  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124    target_alias=$ac_optarg ;;
1125
1126  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127    verbose=yes ;;
1128
1129  -version | --version | --versio | --versi | --vers | -V)
1130    ac_init_version=: ;;
1131
1132  -with-* | --with-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=\$ac_optarg ;;
1147
1148  -without-* | --without-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error $? "invalid package name: $ac_useropt"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=no ;;
1163
1164  --x)
1165    # Obsolete; use --with-x.
1166    with_x=yes ;;
1167
1168  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169  | --x-incl | --x-inc | --x-in | --x-i)
1170    ac_prev=x_includes ;;
1171  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173    x_includes=$ac_optarg ;;
1174
1175  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177    ac_prev=x_libraries ;;
1178  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180    x_libraries=$ac_optarg ;;
1181
1182  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183Try \`$0 --help' for more information"
1184    ;;
1185
1186  *=*)
1187    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188    # Reject names that are not valid shell variable names.
1189    case $ac_envvar in #(
1190      '' | [0-9]* | *[!_$as_cr_alnum]* )
1191      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192    esac
1193    eval $ac_envvar=\$ac_optarg
1194    export $ac_envvar ;;
1195
1196  *)
1197    # FIXME: should be removed in autoconf 3.0.
1198    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202    ;;
1203
1204  esac
1205done
1206
1207if test -n "$ac_prev"; then
1208  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209  as_fn_error $? "missing argument to $ac_option"
1210fi
1211
1212if test -n "$ac_unrecognized_opts"; then
1213  case $enable_option_checking in
1214    no) ;;
1215    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217  esac
1218fi
1219
1220# Check all directory arguments for consistency.
1221for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222		datadir sysconfdir sharedstatedir localstatedir includedir \
1223		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224		libdir localedir mandir runstatedir
1225do
1226  eval ac_val=\$$ac_var
1227  # Remove trailing slashes.
1228  case $ac_val in
1229    */ )
1230      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231      eval $ac_var=\$ac_val;;
1232  esac
1233  # Be sure to have absolute directory names.
1234  case $ac_val in
1235    [\\/$]* | ?:[\\/]* )  continue;;
1236    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237  esac
1238  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250  if test "x$build_alias" = x; then
1251    cross_compiling=maybe
1252  elif test "x$build_alias" != "x$host_alias"; then
1253    cross_compiling=yes
1254  fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266  as_fn_error $? "working directory cannot be determined"
1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268  as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273  ac_srcdir_defaulted=yes
1274  # Try the directory containing this script, then the parent directory.
1275  ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277	 X"$as_myself" : 'X\(//\)[^/]' \| \
1278	 X"$as_myself" : 'X\(//\)$' \| \
1279	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\/\)[^/].*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  /^X\(\/\/\)$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\).*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  s/.*/./; q'`
1298  srcdir=$ac_confdir
1299  if test ! -r "$srcdir/$ac_unique_file"; then
1300    srcdir=..
1301  fi
1302else
1303  ac_srcdir_defaulted=no
1304fi
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
1311	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312	pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315  srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_env_${ac_var}_value=\$${ac_var}
1326  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334  # Omit some internal or obsolete options to make the list less imposing.
1335  # This message is too long to be a string in the A/UX 3.1 sh.
1336  cat <<_ACEOF
1337\`configure' configures liblock 0.60 to adapt to many kinds of systems.
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE.  See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347  -h, --help              display this help and exit
1348      --help=short        display options specific to this package
1349      --help=recursive    display the short help of all the included packages
1350  -V, --version           display version information and exit
1351  -q, --quiet, --silent   do not print \`checking ...' messages
1352      --cache-file=FILE   cache test results in FILE [disabled]
1353  -C, --config-cache      alias for \`--cache-file=config.cache'
1354  -n, --no-create         do not create output files
1355      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1356
1357Installation directories:
1358  --prefix=PREFIX         install architecture-independent files in PREFIX
1359                          [$ac_default_prefix]
1360  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1361                          [PREFIX]
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
1371  --bindir=DIR            user executables [EPREFIX/bin]
1372  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1373  --libexecdir=DIR        program executables [EPREFIX/libexec]
1374  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1375  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1376  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1377  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1378  --libdir=DIR            object code libraries [EPREFIX/lib]
1379  --includedir=DIR        C header files [PREFIX/include]
1380  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1381  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1382  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1383  --infodir=DIR           info documentation [DATAROOTDIR/info]
1384  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1385  --mandir=DIR            man documentation [DATAROOTDIR/man]
1386  --docdir=DIR            documentation root [DATAROOTDIR/doc/liblock]
1387  --htmldir=DIR           html documentation [DOCDIR]
1388  --dvidir=DIR            dvi documentation [DOCDIR]
1389  --pdfdir=DIR            pdf documentation [DOCDIR]
1390  --psdir=DIR             ps documentation [DOCDIR]
1391_ACEOF
1392
1393  cat <<\_ACEOF
1394
1395Program names:
1396  --program-prefix=PREFIX            prepend PREFIX to installed program names
1397  --program-suffix=SUFFIX            append SUFFIX to installed program names
1398  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1399
1400System types:
1401  --build=BUILD     configure for building on BUILD [guessed]
1402  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407  case $ac_init_help in
1408     short | recursive ) echo "Configuration of liblock 0.60:";;
1409   esac
1410  cat <<\_ACEOF
1411
1412Optional Features:
1413  --disable-option-checking  ignore unrecognized --enable/--with options
1414  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1415  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1416  --enable-silent-rules   less verbose build output (undo: "make V=1")
1417  --disable-silent-rules  verbose build output (undo: "make V=0")
1418  --enable-dependency-tracking
1419                          do not reject slow dependency extractors
1420  --disable-dependency-tracking
1421                          speeds up one-time build
1422  --enable-shared[=PKGS]  build shared libraries [default=yes]
1423  --enable-static[=PKGS]  build static libraries [default=yes]
1424  --enable-fast-install[=PKGS]
1425                          optimize for fast installation [default=yes]
1426  --disable-libtool-lock  avoid locking (might break parallel builds)
1427  --disable-largefile     omit support for large files
1428
1429Optional Packages:
1430  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1433                          both]
1434  --with-aix-soname=aix|svr4|both
1435                          shared library versioning (aka "SONAME") variant to
1436                          provide on AIX, [default=aix].
1437  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1438  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1439                          compiler's sysroot if not specified).
1440
1441
1442Some influential environment variables:
1443  CC          C compiler command
1444  CFLAGS      C compiler flags
1445  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1446              nonstandard directory <lib dir>
1447  LIBS        libraries to pass to the linker, e.g. -l<library>
1448  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449              you have headers in a nonstandard directory <include dir>
1450  LT_SYS_LIBRARY_PATH
1451              User-defined run-time library search path.
1452  CPP         C preprocessor
1453
1454Use these variables to override the choices made by `configure' or to help
1455it to find libraries and programs with nonstandard names/locations.
1456
1457Report bugs to <courier-users@lists.sourceforge.net>.
1458_ACEOF
1459ac_status=$?
1460fi
1461
1462if test "$ac_init_help" = "recursive"; then
1463  # If there are subdirs, report their specific --help.
1464  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465    test -d "$ac_dir" ||
1466      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467      continue
1468    ac_builddir=.
1469
1470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
1473  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474  # A ".." for each directory in $ac_dir_suffix.
1475  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476  case $ac_top_builddir_sub in
1477  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479  esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
1485
1486case $srcdir in
1487  .)  # We are building in place.
1488    ac_srcdir=.
1489    ac_top_srcdir=$ac_top_builddir_sub
1490    ac_abs_top_srcdir=$ac_pwd ;;
1491  [\\/]* | ?:[\\/]* )  # Absolute name.
1492    ac_srcdir=$srcdir$ac_dir_suffix;
1493    ac_top_srcdir=$srcdir
1494    ac_abs_top_srcdir=$srcdir ;;
1495  *) # Relative name.
1496    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497    ac_top_srcdir=$ac_top_build_prefix$srcdir
1498    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499esac
1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502    cd "$ac_dir" || { ac_status=$?; continue; }
1503    # Check for guested configure.
1504    if test -f "$ac_srcdir/configure.gnu"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507    elif test -f "$ac_srcdir/configure"; then
1508      echo &&
1509      $SHELL "$ac_srcdir/configure" --help=recursive
1510    else
1511      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512    fi || ac_status=$?
1513    cd "$ac_pwd" || { ac_status=$?; break; }
1514  done
1515fi
1516
1517test -n "$ac_init_help" && exit $ac_status
1518if $ac_init_version; then
1519  cat <<\_ACEOF
1520liblock configure 0.60
1521generated by GNU Autoconf 2.69
1522
1523Copyright (C) 2012 Free Software Foundation, Inc.
1524This configure script is free software; the Free Software Foundation
1525gives unlimited permission to copy, distribute and modify it.
1526_ACEOF
1527  exit
1528fi
1529
1530## ------------------------ ##
1531## Autoconf initialization. ##
1532## ------------------------ ##
1533
1534# ac_fn_c_try_compile LINENO
1535# --------------------------
1536# Try to compile conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_c_try_compile ()
1538{
1539  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540  rm -f conftest.$ac_objext
1541  if { { ac_try="$ac_compile"
1542case "(($ac_try" in
1543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544  *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547$as_echo "$ac_try_echo"; } >&5
1548  (eval "$ac_compile") 2>conftest.err
1549  ac_status=$?
1550  if test -s conftest.err; then
1551    grep -v '^ *+' conftest.err >conftest.er1
1552    cat conftest.er1 >&5
1553    mv -f conftest.er1 conftest.err
1554  fi
1555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556  test $ac_status = 0; } && {
1557	 test -z "$ac_c_werror_flag" ||
1558	 test ! -s conftest.err
1559       } && test -s conftest.$ac_objext; then :
1560  ac_retval=0
1561else
1562  $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565	ac_retval=1
1566fi
1567  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568  as_fn_set_status $ac_retval
1569
1570} # ac_fn_c_try_compile
1571
1572# ac_fn_c_try_link LINENO
1573# -----------------------
1574# Try to link conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_c_try_link ()
1576{
1577  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578  rm -f conftest.$ac_objext conftest$ac_exeext
1579  if { { ac_try="$ac_link"
1580case "(($ac_try" in
1581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582  *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586  (eval "$ac_link") 2>conftest.err
1587  ac_status=$?
1588  if test -s conftest.err; then
1589    grep -v '^ *+' conftest.err >conftest.er1
1590    cat conftest.er1 >&5
1591    mv -f conftest.er1 conftest.err
1592  fi
1593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594  test $ac_status = 0; } && {
1595	 test -z "$ac_c_werror_flag" ||
1596	 test ! -s conftest.err
1597       } && test -s conftest$ac_exeext && {
1598	 test "$cross_compiling" = yes ||
1599	 test -x conftest$ac_exeext
1600       }; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606	ac_retval=1
1607fi
1608  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610  # interfere with the next link command; also delete a directory that is
1611  # left behind by Apple's compiler.  We do this before executing the actions.
1612  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614  as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_link
1617
1618# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619# -------------------------------------------------------
1620# Tests whether HEADER exists and can be compiled using the include files in
1621# INCLUDES, setting the cache variable VAR accordingly.
1622ac_fn_c_check_header_compile ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if eval \${$3+:} false; then :
1628  $as_echo_n "(cached) " >&6
1629else
1630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h.  */
1632$4
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636  eval "$3=yes"
1637else
1638  eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647} # ac_fn_c_check_header_compile
1648
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663  ac_status=$?
1664  if test -s conftest.err; then
1665    grep -v '^ *+' conftest.err >conftest.er1
1666    cat conftest.er1 >&5
1667    mv -f conftest.er1 conftest.err
1668  fi
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } > conftest.i && {
1671	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672	 test ! -s conftest.err
1673       }; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679    ac_retval=1
1680fi
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_cpp
1685
1686# ac_fn_c_try_run LINENO
1687# ----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689# that executables *can* be run.
1690ac_fn_c_try_run ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>&5
1701  ac_status=$?
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704  { { case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_try") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; }; }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: program exited with status $ac_status" >&5
1717       $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720       ac_retval=$ac_status
1721fi
1722  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724  as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_run
1727
1728# ac_fn_c_check_func LINENO FUNC VAR
1729# ----------------------------------
1730# Tests whether FUNC exists, setting the cache variable VAR accordingly
1731ac_fn_c_check_func ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if eval \${$3+:} false; then :
1737  $as_echo_n "(cached) " >&6
1738else
1739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h.  */
1741/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1743#define $2 innocuous_$2
1744
1745/* System header to define __stub macros and hopefully few prototypes,
1746    which can conflict with char $2 (); below.
1747    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748    <limits.h> exists even on freestanding compilers.  */
1749
1750#ifdef __STDC__
1751# include <limits.h>
1752#else
1753# include <assert.h>
1754#endif
1755
1756#undef $2
1757
1758/* Override any GCC internal prototype to avoid an error.
1759   Use char because int might match the return type of a GCC
1760   builtin and then its argument prototype would still apply.  */
1761#ifdef __cplusplus
1762extern "C"
1763#endif
1764char $2 ();
1765/* The GNU C library defines this for functions which it implements
1766    to always fail with ENOSYS.  Some functions are actually named
1767    something starting with __ and the normal name is an alias.  */
1768#if defined __stub_$2 || defined __stub___$2
1769choke me
1770#endif
1771
1772int
1773main ()
1774{
1775return $2 ();
1776  ;
1777  return 0;
1778}
1779_ACEOF
1780if ac_fn_c_try_link "$LINENO"; then :
1781  eval "$3=yes"
1782else
1783  eval "$3=no"
1784fi
1785rm -f core conftest.err conftest.$ac_objext \
1786    conftest$ac_exeext conftest.$ac_ext
1787fi
1788eval ac_res=\$$3
1789	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793} # ac_fn_c_check_func
1794
1795# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796# -------------------------------------------------------
1797# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798# the include files in INCLUDES and setting the cache variable VAR
1799# accordingly.
1800ac_fn_c_check_header_mongrel ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  if eval \${$3+:} false; then :
1804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
1806if eval \${$3+:} false; then :
1807  $as_echo_n "(cached) " >&6
1808fi
1809eval ac_res=\$$3
1810	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
1812else
1813  # Is the header compilable?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815$as_echo_n "checking $2 usability... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822  ac_header_compiler=yes
1823else
1824  ac_header_compiler=no
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828$as_echo "$ac_header_compiler" >&6; }
1829
1830# Is the header present?
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832$as_echo_n "checking $2 presence... " >&6; }
1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h.  */
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_cpp "$LINENO"; then :
1838  ac_header_preproc=yes
1839else
1840  ac_header_preproc=no
1841fi
1842rm -f conftest.err conftest.i conftest.$ac_ext
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844$as_echo "$ac_header_preproc" >&6; }
1845
1846# So?  What about this header?
1847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848  yes:no: )
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853    ;;
1854  no:yes:* )
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1858$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1862$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865( $as_echo "## -------------------------------------------------- ##
1866## Report this to courier-users@lists.sourceforge.net ##
1867## -------------------------------------------------- ##"
1868     ) | sed "s/^/$as_me: WARNING:     /" >&2
1869    ;;
1870esac
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  eval "$3=\$ac_header_compiler"
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881fi
1882  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884} # ac_fn_c_check_header_mongrel
1885
1886# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1887# -------------------------------------------
1888# Tests whether TYPE exists after having included INCLUDES, setting cache
1889# variable VAR accordingly.
1890ac_fn_c_check_type ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896  $as_echo_n "(cached) " >&6
1897else
1898  eval "$3=no"
1899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h.  */
1901$4
1902int
1903main ()
1904{
1905if (sizeof ($2))
1906	 return 0;
1907  ;
1908  return 0;
1909}
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h.  */
1914$4
1915int
1916main ()
1917{
1918if (sizeof (($2)))
1919	    return 0;
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925
1926else
1927  eval "$3=yes"
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932fi
1933eval ac_res=\$$3
1934	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938} # ac_fn_c_check_type
1939cat >config.log <<_ACEOF
1940This file contains any messages produced by compilers while
1941running configure, to aid debugging if configure makes a mistake.
1942
1943It was created by liblock $as_me 0.60, which was
1944generated by GNU Autoconf 2.69.  Invocation command line was
1945
1946  $ $0 $@
1947
1948_ACEOF
1949exec 5>>config.log
1950{
1951cat <<_ASUNAME
1952## --------- ##
1953## Platform. ##
1954## --------- ##
1955
1956hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1957uname -m = `(uname -m) 2>/dev/null || echo unknown`
1958uname -r = `(uname -r) 2>/dev/null || echo unknown`
1959uname -s = `(uname -s) 2>/dev/null || echo unknown`
1960uname -v = `(uname -v) 2>/dev/null || echo unknown`
1961
1962/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1963/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1964
1965/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1966/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1967/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1968/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1969/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1970/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1971/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1972
1973_ASUNAME
1974
1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978  IFS=$as_save_IFS
1979  test -z "$as_dir" && as_dir=.
1980    $as_echo "PATH: $as_dir"
1981  done
1982IFS=$as_save_IFS
1983
1984} >&5
1985
1986cat >&5 <<_ACEOF
1987
1988
1989## ----------- ##
1990## Core tests. ##
1991## ----------- ##
1992
1993_ACEOF
1994
1995
1996# Keep a trace of the command line.
1997# Strip out --no-create and --no-recursion so they do not pile up.
1998# Strip out --silent because we don't want to record it for future runs.
1999# Also quote any args containing shell meta-characters.
2000# Make two passes to allow for proper duplicate-argument suppression.
2001ac_configure_args=
2002ac_configure_args0=
2003ac_configure_args1=
2004ac_must_keep_next=false
2005for ac_pass in 1 2
2006do
2007  for ac_arg
2008  do
2009    case $ac_arg in
2010    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2011    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2012    | -silent | --silent | --silen | --sile | --sil)
2013      continue ;;
2014    *\'*)
2015      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2016    esac
2017    case $ac_pass in
2018    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2019    2)
2020      as_fn_append ac_configure_args1 " '$ac_arg'"
2021      if test $ac_must_keep_next = true; then
2022	ac_must_keep_next=false # Got value, back to normal.
2023      else
2024	case $ac_arg in
2025	  *=* | --config-cache | -C | -disable-* | --disable-* \
2026	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2027	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2028	  | -with-* | --with-* | -without-* | --without-* | --x)
2029	    case "$ac_configure_args0 " in
2030	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2031	    esac
2032	    ;;
2033	  -* ) ac_must_keep_next=true ;;
2034	esac
2035      fi
2036      as_fn_append ac_configure_args " '$ac_arg'"
2037      ;;
2038    esac
2039  done
2040done
2041{ ac_configure_args0=; unset ac_configure_args0;}
2042{ ac_configure_args1=; unset ac_configure_args1;}
2043
2044# When interrupted or exit'd, cleanup temporary files, and complete
2045# config.log.  We remove comments because anyway the quotes in there
2046# would cause problems or look ugly.
2047# WARNING: Use '\'' to represent an apostrophe within the trap.
2048# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2049trap 'exit_status=$?
2050  # Save into config.log some information that might help in debugging.
2051  {
2052    echo
2053
2054    $as_echo "## ---------------- ##
2055## Cache variables. ##
2056## ---------------- ##"
2057    echo
2058    # The following way of writing the cache mishandles newlines in values,
2059(
2060  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2061    eval ac_val=\$$ac_var
2062    case $ac_val in #(
2063    *${as_nl}*)
2064      case $ac_var in #(
2065      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2066$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2067      esac
2068      case $ac_var in #(
2069      _ | IFS | as_nl) ;; #(
2070      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2071      *) { eval $ac_var=; unset $ac_var;} ;;
2072      esac ;;
2073    esac
2074  done
2075  (set) 2>&1 |
2076    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2077    *${as_nl}ac_space=\ *)
2078      sed -n \
2079	"s/'\''/'\''\\\\'\'''\''/g;
2080	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2081      ;; #(
2082    *)
2083      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2084      ;;
2085    esac |
2086    sort
2087)
2088    echo
2089
2090    $as_echo "## ----------------- ##
2091## Output variables. ##
2092## ----------------- ##"
2093    echo
2094    for ac_var in $ac_subst_vars
2095    do
2096      eval ac_val=\$$ac_var
2097      case $ac_val in
2098      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099      esac
2100      $as_echo "$ac_var='\''$ac_val'\''"
2101    done | sort
2102    echo
2103
2104    if test -n "$ac_subst_files"; then
2105      $as_echo "## ------------------- ##
2106## File substitutions. ##
2107## ------------------- ##"
2108      echo
2109      for ac_var in $ac_subst_files
2110      do
2111	eval ac_val=\$$ac_var
2112	case $ac_val in
2113	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114	esac
2115	$as_echo "$ac_var='\''$ac_val'\''"
2116      done | sort
2117      echo
2118    fi
2119
2120    if test -s confdefs.h; then
2121      $as_echo "## ----------- ##
2122## confdefs.h. ##
2123## ----------- ##"
2124      echo
2125      cat confdefs.h
2126      echo
2127    fi
2128    test "$ac_signal" != 0 &&
2129      $as_echo "$as_me: caught signal $ac_signal"
2130    $as_echo "$as_me: exit $exit_status"
2131  } >&5
2132  rm -f core *.core core.conftest.* &&
2133    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2134    exit $exit_status
2135' 0
2136for ac_signal in 1 2 13 15; do
2137  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2138done
2139ac_signal=0
2140
2141# confdefs.h avoids OS command line length limits that DEFS can exceed.
2142rm -f -r conftest* confdefs.h
2143
2144$as_echo "/* confdefs.h */" > confdefs.h
2145
2146# Predefined preprocessor variables.
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_NAME "$PACKAGE_NAME"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2154_ACEOF
2155
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_VERSION "$PACKAGE_VERSION"
2158_ACEOF
2159
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_STRING "$PACKAGE_STRING"
2162_ACEOF
2163
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2166_ACEOF
2167
2168cat >>confdefs.h <<_ACEOF
2169#define PACKAGE_URL "$PACKAGE_URL"
2170_ACEOF
2171
2172
2173# Let the site file select an alternate cache file if it wants to.
2174# Prefer an explicitly selected file to automatically selected ones.
2175ac_site_file1=NONE
2176ac_site_file2=NONE
2177if test -n "$CONFIG_SITE"; then
2178  # We do not want a PATH search for config.site.
2179  case $CONFIG_SITE in #((
2180    -*)  ac_site_file1=./$CONFIG_SITE;;
2181    */*) ac_site_file1=$CONFIG_SITE;;
2182    *)   ac_site_file1=./$CONFIG_SITE;;
2183  esac
2184elif test "x$prefix" != xNONE; then
2185  ac_site_file1=$prefix/share/config.site
2186  ac_site_file2=$prefix/etc/config.site
2187else
2188  ac_site_file1=$ac_default_prefix/share/config.site
2189  ac_site_file2=$ac_default_prefix/etc/config.site
2190fi
2191for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2192do
2193  test "x$ac_site_file" = xNONE && continue
2194  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2195    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2196$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2197    sed 's/^/| /' "$ac_site_file" >&5
2198    . "$ac_site_file" \
2199      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201as_fn_error $? "failed to load site script $ac_site_file
2202See \`config.log' for more details" "$LINENO" 5; }
2203  fi
2204done
2205
2206if test -r "$cache_file"; then
2207  # Some versions of bash will fail to source /dev/null (special files
2208  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2209  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2210    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2211$as_echo "$as_me: loading cache $cache_file" >&6;}
2212    case $cache_file in
2213      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2214      *)                      . "./$cache_file";;
2215    esac
2216  fi
2217else
2218  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2219$as_echo "$as_me: creating cache $cache_file" >&6;}
2220  >$cache_file
2221fi
2222
2223# Check that the precious variables saved in the cache have kept the same
2224# value.
2225ac_cache_corrupted=false
2226for ac_var in $ac_precious_vars; do
2227  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2228  eval ac_new_set=\$ac_env_${ac_var}_set
2229  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2230  eval ac_new_val=\$ac_env_${ac_var}_value
2231  case $ac_old_set,$ac_new_set in
2232    set,)
2233      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2234$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2235      ac_cache_corrupted=: ;;
2236    ,set)
2237      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2238$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2239      ac_cache_corrupted=: ;;
2240    ,);;
2241    *)
2242      if test "x$ac_old_val" != "x$ac_new_val"; then
2243	# differences in whitespace do not lead to failure.
2244	ac_old_val_w=`echo x $ac_old_val`
2245	ac_new_val_w=`echo x $ac_new_val`
2246	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2247	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2248$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2249	  ac_cache_corrupted=:
2250	else
2251	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2252$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2253	  eval $ac_var=\$ac_old_val
2254	fi
2255	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2256$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2257	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2258$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2259      fi;;
2260  esac
2261  # Pass precious variables to config.status.
2262  if test "$ac_new_set" = set; then
2263    case $ac_new_val in
2264    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2265    *) ac_arg=$ac_var=$ac_new_val ;;
2266    esac
2267    case " $ac_configure_args " in
2268      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2269      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2270    esac
2271  fi
2272done
2273if $ac_cache_corrupted; then
2274  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2277$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2278  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2279fi
2280## -------------------- ##
2281## Main body of script. ##
2282## -------------------- ##
2283
2284ac_ext=c
2285ac_cpp='$CPP $CPPFLAGS'
2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
2290
2291
2292>confdefs.h  # Kill PACKAGE_ macros
2293
2294
2295ac_aux_dir=
2296for ac_dir in ../.. "$srcdir"/../..; do
2297  if test -f "$ac_dir/install-sh"; then
2298    ac_aux_dir=$ac_dir
2299    ac_install_sh="$ac_aux_dir/install-sh -c"
2300    break
2301  elif test -f "$ac_dir/install.sh"; then
2302    ac_aux_dir=$ac_dir
2303    ac_install_sh="$ac_aux_dir/install.sh -c"
2304    break
2305  elif test -f "$ac_dir/shtool"; then
2306    ac_aux_dir=$ac_dir
2307    ac_install_sh="$ac_aux_dir/shtool install -c"
2308    break
2309  fi
2310done
2311if test -z "$ac_aux_dir"; then
2312  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2313fi
2314
2315# These three variables are undocumented and unsupported,
2316# and are intended to be withdrawn in a future Autoconf release.
2317# They can cause serious problems if a builder's source tree is in a directory
2318# whose full name contains unusual characters.
2319ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2320ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2321ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2322
2323
2324ac_config_headers="$ac_config_headers config.h"
2325
2326am__api_version='1.16'
2327
2328# Find a good install program.  We prefer a C program (faster),
2329# so one script is as good as another.  But avoid the broken or
2330# incompatible versions:
2331# SysV /etc/install, /usr/sbin/install
2332# SunOS /usr/etc/install
2333# IRIX /sbin/install
2334# AIX /bin/install
2335# AmigaOS /C/install, which installs bootblocks on floppy discs
2336# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339# OS/2's system install, which has a completely different semantic
2340# ./install, which can be erroneously created by make from ./install.sh.
2341# Reject install programs that cannot install multiple files.
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2343$as_echo_n "checking for a BSD-compatible install... " >&6; }
2344if test -z "$INSTALL"; then
2345if ${ac_cv_path_install+:} false; then :
2346  $as_echo_n "(cached) " >&6
2347else
2348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349for as_dir in $PATH
2350do
2351  IFS=$as_save_IFS
2352  test -z "$as_dir" && as_dir=.
2353    # Account for people who put trailing slashes in PATH elements.
2354case $as_dir/ in #((
2355  ./ | .// | /[cC]/* | \
2356  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2357  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2358  /usr/ucb/* ) ;;
2359  *)
2360    # OSF1 and SCO ODT 3.0 have their own names for install.
2361    # Don't use installbsd from OSF since it installs stuff as root
2362    # by default.
2363    for ac_prog in ginstall scoinst install; do
2364      for ac_exec_ext in '' $ac_executable_extensions; do
2365	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2366	  if test $ac_prog = install &&
2367	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368	    # AIX install.  It has an incompatible calling convention.
2369	    :
2370	  elif test $ac_prog = install &&
2371	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372	    # program-specific install script used by HP pwplus--don't use.
2373	    :
2374	  else
2375	    rm -rf conftest.one conftest.two conftest.dir
2376	    echo one > conftest.one
2377	    echo two > conftest.two
2378	    mkdir conftest.dir
2379	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2380	      test -s conftest.one && test -s conftest.two &&
2381	      test -s conftest.dir/conftest.one &&
2382	      test -s conftest.dir/conftest.two
2383	    then
2384	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2385	      break 3
2386	    fi
2387	  fi
2388	fi
2389      done
2390    done
2391    ;;
2392esac
2393
2394  done
2395IFS=$as_save_IFS
2396
2397rm -rf conftest.one conftest.two conftest.dir
2398
2399fi
2400  if test "${ac_cv_path_install+set}" = set; then
2401    INSTALL=$ac_cv_path_install
2402  else
2403    # As a last resort, use the slow shell script.  Don't cache a
2404    # value for INSTALL within a source directory, because that will
2405    # break other packages using the cache if that directory is
2406    # removed, or if the value is a relative name.
2407    INSTALL=$ac_install_sh
2408  fi
2409fi
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2411$as_echo "$INSTALL" >&6; }
2412
2413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414# It thinks the first close brace ends the variable substitution.
2415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2416
2417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2418
2419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2420
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2422$as_echo_n "checking whether build environment is sane... " >&6; }
2423# Reject unsafe characters in $srcdir or the absolute working directory
2424# name.  Accept space and tab only in the latter.
2425am_lf='
2426'
2427case `pwd` in
2428  *[\\\"\#\$\&\'\`$am_lf]*)
2429    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2430esac
2431case $srcdir in
2432  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2433    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2434esac
2435
2436# Do 'set' in a subshell so we don't clobber the current shell's
2437# arguments.  Must try -L first in case configure is actually a
2438# symlink; some systems play weird games with the mod time of symlinks
2439# (eg FreeBSD returns the mod time of the symlink's containing
2440# directory).
2441if (
2442   am_has_slept=no
2443   for am_try in 1 2; do
2444     echo "timestamp, slept: $am_has_slept" > conftest.file
2445     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446     if test "$*" = "X"; then
2447	# -L didn't work.
2448	set X `ls -t "$srcdir/configure" conftest.file`
2449     fi
2450     if test "$*" != "X $srcdir/configure conftest.file" \
2451	&& test "$*" != "X conftest.file $srcdir/configure"; then
2452
2453	# If neither matched, then we have a broken ls.  This can happen
2454	# if, for instance, CONFIG_SHELL is bash and it inherits a
2455	# broken ls alias from the environment.  This has actually
2456	# happened.  Such a system could not be considered "sane".
2457	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2458  alias in your environment" "$LINENO" 5
2459     fi
2460     if test "$2" = conftest.file || test $am_try -eq 2; then
2461       break
2462     fi
2463     # Just in case.
2464     sleep 1
2465     am_has_slept=yes
2466   done
2467   test "$2" = conftest.file
2468   )
2469then
2470   # Ok.
2471   :
2472else
2473   as_fn_error $? "newly created file is older than distributed files!
2474Check your system clock" "$LINENO" 5
2475fi
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2477$as_echo "yes" >&6; }
2478# If we didn't sleep, we still need to ensure time stamps of config.status and
2479# generated files are strictly newer.
2480am_sleep_pid=
2481if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2482  ( sleep 1 ) &
2483  am_sleep_pid=$!
2484fi
2485
2486rm -f conftest.file
2487
2488test "$program_prefix" != NONE &&
2489  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2490# Use a double $ so make ignores it.
2491test "$program_suffix" != NONE &&
2492  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2493# Double any \ or $.
2494# By default was `s,x,x', remove it if useless.
2495ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2496program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2497
2498# Expand $ac_aux_dir to an absolute path.
2499am_aux_dir=`cd "$ac_aux_dir" && pwd`
2500
2501if test x"${MISSING+set}" != xset; then
2502  case $am_aux_dir in
2503  *\ * | *\	*)
2504    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2505  *)
2506    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2507  esac
2508fi
2509# Use eval to expand $SHELL
2510if eval "$MISSING --is-lightweight"; then
2511  am_missing_run="$MISSING "
2512else
2513  am_missing_run=
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2515$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2516fi
2517
2518if test x"${install_sh+set}" != xset; then
2519  case $am_aux_dir in
2520  *\ * | *\	*)
2521    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2522  *)
2523    install_sh="\${SHELL} $am_aux_dir/install-sh"
2524  esac
2525fi
2526
2527# Installed binaries are usually stripped using 'strip' when the user
2528# run "make install-strip".  However 'strip' might not be the right
2529# tool to use in cross-compilation environments, therefore Automake
2530# will honor the 'STRIP' environment variable to overrule this program.
2531if test "$cross_compiling" != no; then
2532  if test -n "$ac_tool_prefix"; then
2533  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2534set dummy ${ac_tool_prefix}strip; ac_word=$2
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
2537if ${ac_cv_prog_STRIP+:} false; then :
2538  $as_echo_n "(cached) " >&6
2539else
2540  if test -n "$STRIP"; then
2541  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546  IFS=$as_save_IFS
2547  test -z "$as_dir" && as_dir=.
2548    for ac_exec_ext in '' $ac_executable_extensions; do
2549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552    break 2
2553  fi
2554done
2555  done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560STRIP=$ac_cv_prog_STRIP
2561if test -n "$STRIP"; then
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2563$as_echo "$STRIP" >&6; }
2564else
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566$as_echo "no" >&6; }
2567fi
2568
2569
2570fi
2571if test -z "$ac_cv_prog_STRIP"; then
2572  ac_ct_STRIP=$STRIP
2573  # Extract the first word of "strip", so it can be a program name with args.
2574set dummy strip; ac_word=$2
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2578  $as_echo_n "(cached) " >&6
2579else
2580  if test -n "$ac_ct_STRIP"; then
2581  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  test -z "$as_dir" && as_dir=.
2588    for ac_exec_ext in '' $ac_executable_extensions; do
2589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590    ac_cv_prog_ac_ct_STRIP="strip"
2591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592    break 2
2593  fi
2594done
2595  done
2596IFS=$as_save_IFS
2597
2598fi
2599fi
2600ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2601if test -n "$ac_ct_STRIP"; then
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2603$as_echo "$ac_ct_STRIP" >&6; }
2604else
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
2607fi
2608
2609  if test "x$ac_ct_STRIP" = x; then
2610    STRIP=":"
2611  else
2612    case $cross_compiling:$ac_tool_warned in
2613yes:)
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616ac_tool_warned=yes ;;
2617esac
2618    STRIP=$ac_ct_STRIP
2619  fi
2620else
2621  STRIP="$ac_cv_prog_STRIP"
2622fi
2623
2624fi
2625INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2626
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2628$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2629if test -z "$MKDIR_P"; then
2630  if ${ac_cv_path_mkdir+:} false; then :
2631  $as_echo_n "(cached) " >&6
2632else
2633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638    for ac_prog in mkdir gmkdir; do
2639	 for ac_exec_ext in '' $ac_executable_extensions; do
2640	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2641	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2642	     'mkdir (GNU coreutils) '* | \
2643	     'mkdir (coreutils) '* | \
2644	     'mkdir (fileutils) '4.1*)
2645	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2646	       break 3;;
2647	   esac
2648	 done
2649       done
2650  done
2651IFS=$as_save_IFS
2652
2653fi
2654
2655  test -d ./--version && rmdir ./--version
2656  if test "${ac_cv_path_mkdir+set}" = set; then
2657    MKDIR_P="$ac_cv_path_mkdir -p"
2658  else
2659    # As a last resort, use the slow shell script.  Don't cache a
2660    # value for MKDIR_P within a source directory, because that will
2661    # break other packages using the cache if that directory is
2662    # removed, or if the value is a relative name.
2663    MKDIR_P="$ac_install_sh -d"
2664  fi
2665fi
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2667$as_echo "$MKDIR_P" >&6; }
2668
2669for ac_prog in gawk mawk nawk awk
2670do
2671  # Extract the first word of "$ac_prog", so it can be a program name with args.
2672set dummy $ac_prog; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_AWK+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  if test -n "$AWK"; then
2679  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686    for ac_exec_ext in '' $ac_executable_extensions; do
2687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688    ac_cv_prog_AWK="$ac_prog"
2689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690    break 2
2691  fi
2692done
2693  done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698AWK=$ac_cv_prog_AWK
2699if test -n "$AWK"; then
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701$as_echo "$AWK" >&6; }
2702else
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708  test -n "$AWK" && break
2709done
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2713set x ${MAKE-make}
2714ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  cat >conftest.make <<\_ACEOF
2719SHELL = /bin/sh
2720all:
2721	@echo '@@@%%%=$(MAKE)=@@@%%%'
2722_ACEOF
2723# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2724case `${MAKE-make} -f conftest.make 2>/dev/null` in
2725  *@@@%%%=?*=@@@%%%*)
2726    eval ac_cv_prog_make_${ac_make}_set=yes;;
2727  *)
2728    eval ac_cv_prog_make_${ac_make}_set=no;;
2729esac
2730rm -f conftest.make
2731fi
2732if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734$as_echo "yes" >&6; }
2735  SET_MAKE=
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739  SET_MAKE="MAKE=${MAKE-make}"
2740fi
2741
2742rm -rf .tst 2>/dev/null
2743mkdir .tst 2>/dev/null
2744if test -d .tst; then
2745  am__leading_dot=.
2746else
2747  am__leading_dot=_
2748fi
2749rmdir .tst 2>/dev/null
2750
2751# Check whether --enable-silent-rules was given.
2752if test "${enable_silent_rules+set}" = set; then :
2753  enableval=$enable_silent_rules;
2754fi
2755
2756case $enable_silent_rules in # (((
2757  yes) AM_DEFAULT_VERBOSITY=0;;
2758   no) AM_DEFAULT_VERBOSITY=1;;
2759    *) AM_DEFAULT_VERBOSITY=1;;
2760esac
2761am_make=${MAKE-make}
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2763$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2764if ${am_cv_make_support_nested_variables+:} false; then :
2765  $as_echo_n "(cached) " >&6
2766else
2767  if $as_echo 'TRUE=$(BAR$(V))
2768BAR0=false
2769BAR1=true
2770V=1
2771am__doit:
2772	@$(TRUE)
2773.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2774  am_cv_make_support_nested_variables=yes
2775else
2776  am_cv_make_support_nested_variables=no
2777fi
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2780$as_echo "$am_cv_make_support_nested_variables" >&6; }
2781if test $am_cv_make_support_nested_variables = yes; then
2782    AM_V='$(V)'
2783  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2784else
2785  AM_V=$AM_DEFAULT_VERBOSITY
2786  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2787fi
2788AM_BACKSLASH='\'
2789
2790if test "`cd $srcdir && pwd`" != "`pwd`"; then
2791  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2792  # is not polluted with repeated "-I."
2793  am__isrc=' -I$(srcdir)'
2794  # test to see if srcdir already configured
2795  if test -f $srcdir/config.status; then
2796    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2797  fi
2798fi
2799
2800# test whether we have cygpath
2801if test -z "$CYGPATH_W"; then
2802  if (cygpath --version) >/dev/null 2>/dev/null; then
2803    CYGPATH_W='cygpath -w'
2804  else
2805    CYGPATH_W=echo
2806  fi
2807fi
2808
2809
2810# Define the identity of the package.
2811 PACKAGE='liblock'
2812 VERSION='0.60'
2813
2814
2815# Some tools Automake needs.
2816
2817ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2818
2819
2820AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2821
2822
2823AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2824
2825
2826AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2827
2828
2829MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2830
2831# For better backward compatibility.  To be removed once Automake 1.9.x
2832# dies out for good.  For more background, see:
2833# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2834# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2835mkdir_p='$(MKDIR_P)'
2836
2837# We need awk for the "check" target (and possibly the TAP driver).  The
2838# system "awk" is bad on some platforms.
2839# Always define AMTAR for backward compatibility.  Yes, it's still used
2840# in the wild :-(  We should find a proper way to deprecate it ...
2841AMTAR='$${TAR-tar}'
2842
2843
2844# We'll loop over all known methods to create a tar archive until one works.
2845_am_tools='gnutar  pax cpio none'
2846
2847am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2848
2849
2850
2851
2852
2853
2854# POSIX will say in a future version that running "rm -f" with no argument
2855# is OK; and we want to be able to make that assumption in our Makefile
2856# recipes.  So use an aggressive probe to check that the usage we want is
2857# actually supported "in the wild" to an acceptable degree.
2858# See automake bug#10828.
2859# To make any issue more visible, cause the running configure to be aborted
2860# by default if the 'rm' program in use doesn't match our expectations; the
2861# user can still override this though.
2862if rm -f && rm -fr && rm -rf; then : OK; else
2863  cat >&2 <<'END'
2864Oops!
2865
2866Your 'rm' program seems unable to run without file operands specified
2867on the command line, even when the '-f' option is present.  This is contrary
2868to the behaviour of most rm programs out there, and not conforming with
2869the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2870
2871Please tell bug-automake@gnu.org about your system, including the value
2872of your $PATH and any error possibly output before this message.  This
2873can help us improve future automake versions.
2874
2875END
2876  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2877    echo 'Configuration will proceed anyway, since you have set the' >&2
2878    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2879    echo >&2
2880  else
2881    cat >&2 <<'END'
2882Aborting the configuration process, to ensure you take notice of the issue.
2883
2884You can download and install GNU coreutils to get an 'rm' implementation
2885that behaves properly: <https://www.gnu.org/software/coreutils/>.
2886
2887If you want to complete the configuration process using your problematic
2888'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2889to "yes", and re-run configure.
2890
2891END
2892    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2893  fi
2894fi
2895
2896
2897CFLAGS="-I.. -I${srcdir}/.. $CFLAGS"
2898
2899for ac_prog in gawk mawk nawk awk
2900do
2901  # Extract the first word of "$ac_prog", so it can be a program name with args.
2902set dummy $ac_prog; ac_word=$2
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
2905if ${ac_cv_prog_AWK+:} false; then :
2906  $as_echo_n "(cached) " >&6
2907else
2908  if test -n "$AWK"; then
2909  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914  IFS=$as_save_IFS
2915  test -z "$as_dir" && as_dir=.
2916    for ac_exec_ext in '' $ac_executable_extensions; do
2917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918    ac_cv_prog_AWK="$ac_prog"
2919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920    break 2
2921  fi
2922done
2923  done
2924IFS=$as_save_IFS
2925
2926fi
2927fi
2928AWK=$ac_cv_prog_AWK
2929if test -n "$AWK"; then
2930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2931$as_echo "$AWK" >&6; }
2932else
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
2935fi
2936
2937
2938  test -n "$AWK" && break
2939done
2940
2941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946if test -n "$ac_tool_prefix"; then
2947  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948set dummy ${ac_tool_prefix}gcc; ac_word=$2
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950$as_echo_n "checking for $ac_word... " >&6; }
2951if ${ac_cv_prog_CC+:} false; then :
2952  $as_echo_n "(cached) " >&6
2953else
2954  if test -n "$CC"; then
2955  ac_cv_prog_CC="$CC" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962    for ac_exec_ext in '' $ac_executable_extensions; do
2963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969  done
2970IFS=$as_save_IFS
2971
2972fi
2973fi
2974CC=$ac_cv_prog_CC
2975if test -n "$CC"; then
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977$as_echo "$CC" >&6; }
2978else
2979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980$as_echo "no" >&6; }
2981fi
2982
2983
2984fi
2985if test -z "$ac_cv_prog_CC"; then
2986  ac_ct_CC=$CC
2987  # Extract the first word of "gcc", so it can be a program name with args.
2988set dummy gcc; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if ${ac_cv_prog_ac_ct_CC+:} false; then :
2992  $as_echo_n "(cached) " >&6
2993else
2994  if test -n "$ac_ct_CC"; then
2995  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000  IFS=$as_save_IFS
3001  test -z "$as_dir" && as_dir=.
3002    for ac_exec_ext in '' $ac_executable_extensions; do
3003  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004    ac_cv_prog_ac_ct_CC="gcc"
3005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006    break 2
3007  fi
3008done
3009  done
3010IFS=$as_save_IFS
3011
3012fi
3013fi
3014ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015if test -n "$ac_ct_CC"; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017$as_echo "$ac_ct_CC" >&6; }
3018else
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023  if test "x$ac_ct_CC" = x; then
3024    CC=""
3025  else
3026    case $cross_compiling:$ac_tool_warned in
3027yes:)
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030ac_tool_warned=yes ;;
3031esac
3032    CC=$ac_ct_CC
3033  fi
3034else
3035  CC="$ac_cv_prog_CC"
3036fi
3037
3038if test -z "$CC"; then
3039          if test -n "$ac_tool_prefix"; then
3040    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3041set dummy ${ac_tool_prefix}cc; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if ${ac_cv_prog_CC+:} false; then :
3045  $as_echo_n "(cached) " >&6
3046else
3047  if test -n "$CC"; then
3048  ac_cv_prog_CC="$CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053  IFS=$as_save_IFS
3054  test -z "$as_dir" && as_dir=.
3055    for ac_exec_ext in '' $ac_executable_extensions; do
3056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057    ac_cv_prog_CC="${ac_tool_prefix}cc"
3058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059    break 2
3060  fi
3061done
3062  done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067CC=$ac_cv_prog_CC
3068if test -n "$CC"; then
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070$as_echo "$CC" >&6; }
3071else
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076
3077  fi
3078fi
3079if test -z "$CC"; then
3080  # Extract the first word of "cc", so it can be a program name with args.
3081set dummy cc; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if ${ac_cv_prog_CC+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  if test -n "$CC"; then
3088  ac_cv_prog_CC="$CC" # Let the user override the test.
3089else
3090  ac_prog_rejected=no
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3099       ac_prog_rejected=yes
3100       continue
3101     fi
3102    ac_cv_prog_CC="cc"
3103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104    break 2
3105  fi
3106done
3107  done
3108IFS=$as_save_IFS
3109
3110if test $ac_prog_rejected = yes; then
3111  # We found a bogon in the path, so make sure we never use it.
3112  set dummy $ac_cv_prog_CC
3113  shift
3114  if test $# != 0; then
3115    # We chose a different compiler from the bogus one.
3116    # However, it has the same basename, so the bogon will be chosen
3117    # first if we set CC to just the basename; use the full file name.
3118    shift
3119    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3120  fi
3121fi
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3128else
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131fi
3132
3133
3134fi
3135if test -z "$CC"; then
3136  if test -n "$ac_tool_prefix"; then
3137  for ac_prog in cl.exe
3138  do
3139    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if ${ac_cv_prog_CC+:} false; then :
3144  $as_echo_n "(cached) " >&6
3145else
3146  if test -n "$CC"; then
3147  ac_cv_prog_CC="$CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152  IFS=$as_save_IFS
3153  test -z "$as_dir" && as_dir=.
3154    for ac_exec_ext in '' $ac_executable_extensions; do
3155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158    break 2
3159  fi
3160done
3161  done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166CC=$ac_cv_prog_CC
3167if test -n "$CC"; then
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169$as_echo "$CC" >&6; }
3170else
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176    test -n "$CC" && break
3177  done
3178fi
3179if test -z "$CC"; then
3180  ac_ct_CC=$CC
3181  for ac_prog in cl.exe
3182do
3183  # Extract the first word of "$ac_prog", so it can be a program name with args.
3184set dummy $ac_prog; ac_word=$2
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186$as_echo_n "checking for $ac_word... " >&6; }
3187if ${ac_cv_prog_ac_ct_CC+:} false; then :
3188  $as_echo_n "(cached) " >&6
3189else
3190  if test -n "$ac_ct_CC"; then
3191  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196  IFS=$as_save_IFS
3197  test -z "$as_dir" && as_dir=.
3198    for ac_exec_ext in '' $ac_executable_extensions; do
3199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200    ac_cv_prog_ac_ct_CC="$ac_prog"
3201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202    break 2
3203  fi
3204done
3205  done
3206IFS=$as_save_IFS
3207
3208fi
3209fi
3210ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211if test -n "$ac_ct_CC"; then
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213$as_echo "$ac_ct_CC" >&6; }
3214else
3215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217fi
3218
3219
3220  test -n "$ac_ct_CC" && break
3221done
3222
3223  if test "x$ac_ct_CC" = x; then
3224    CC=""
3225  else
3226    case $cross_compiling:$ac_tool_warned in
3227yes:)
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230ac_tool_warned=yes ;;
3231esac
3232    CC=$ac_ct_CC
3233  fi
3234fi
3235
3236fi
3237
3238
3239test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241as_fn_error $? "no acceptable C compiler found in \$PATH
3242See \`config.log' for more details" "$LINENO" 5; }
3243
3244# Provide some information about the compiler.
3245$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3246set X $ac_compile
3247ac_compiler=$2
3248for ac_option in --version -v -V -qversion; do
3249  { { ac_try="$ac_compiler $ac_option >&5"
3250case "(($ac_try" in
3251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252  *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
3256  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3257  ac_status=$?
3258  if test -s conftest.err; then
3259    sed '10a\
3260... rest of stderr output deleted ...
3261         10q' conftest.err >conftest.er1
3262    cat conftest.er1 >&5
3263  fi
3264  rm -f conftest.er1 conftest.err
3265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266  test $ac_status = 0; }
3267done
3268
3269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270/* end confdefs.h.  */
3271
3272int
3273main ()
3274{
3275
3276  ;
3277  return 0;
3278}
3279_ACEOF
3280ac_clean_files_save=$ac_clean_files
3281ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3282# Try to create an executable without -o first, disregard a.out.
3283# It will help us diagnose broken compilers, and finding out an intuition
3284# of exeext.
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3286$as_echo_n "checking whether the C compiler works... " >&6; }
3287ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3288
3289# The possible output files:
3290ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291
3292ac_rmfiles=
3293for ac_file in $ac_files
3294do
3295  case $ac_file in
3296    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298  esac
3299done
3300rm -f $ac_rmfiles
3301
3302if { { ac_try="$ac_link_default"
3303case "(($ac_try" in
3304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305  *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309  (eval "$ac_link_default") 2>&5
3310  ac_status=$?
3311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312  test $ac_status = 0; }; then :
3313  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3316# so that the user can short-circuit this test for compilers unknown to
3317# Autoconf.
3318for ac_file in $ac_files ''
3319do
3320  test -f "$ac_file" || continue
3321  case $ac_file in
3322    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3323	;;
3324    [ab].out )
3325	# We found the default executable, but exeext='' is most
3326	# certainly right.
3327	break;;
3328    *.* )
3329	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3330	then :; else
3331	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332	fi
3333	# We set ac_cv_exeext here because the later test for it is not
3334	# safe: cross compilers may not add the suffix if given an `-o'
3335	# argument, so we may need to know it at that point already.
3336	# Even if this section looks crufty: it has the advantage of
3337	# actually working.
3338	break;;
3339    * )
3340	break;;
3341  esac
3342done
3343test "$ac_cv_exeext" = no && ac_cv_exeext=
3344
3345else
3346  ac_file=''
3347fi
3348if test -z "$ac_file"; then :
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351$as_echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356as_fn_error 77 "C compiler cannot create executables
3357See \`config.log' for more details" "$LINENO" 5; }
3358else
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360$as_echo "yes" >&6; }
3361fi
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3363$as_echo_n "checking for C compiler default output file name... " >&6; }
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365$as_echo "$ac_file" >&6; }
3366ac_exeext=$ac_cv_exeext
3367
3368rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3369ac_clean_files=$ac_clean_files_save
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3371$as_echo_n "checking for suffix of executables... " >&6; }
3372if { { ac_try="$ac_link"
3373case "(($ac_try" in
3374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375  *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379  (eval "$ac_link") 2>&5
3380  ac_status=$?
3381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382  test $ac_status = 0; }; then :
3383  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3385# work properly (i.e., refer to `conftest.exe'), while it won't with
3386# `rm'.
3387for ac_file in conftest.exe conftest conftest.*; do
3388  test -f "$ac_file" || continue
3389  case $ac_file in
3390    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392	  break;;
3393    * ) break;;
3394  esac
3395done
3396else
3397  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3400See \`config.log' for more details" "$LINENO" 5; }
3401fi
3402rm -f conftest conftest$ac_cv_exeext
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3404$as_echo "$ac_cv_exeext" >&6; }
3405
3406rm -f conftest.$ac_ext
3407EXEEXT=$ac_cv_exeext
3408ac_exeext=$EXEEXT
3409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411#include <stdio.h>
3412int
3413main ()
3414{
3415FILE *f = fopen ("conftest.out", "w");
3416 return ferror (f) || fclose (f) != 0;
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422ac_clean_files="$ac_clean_files conftest.out"
3423# Check that the compiler produces executables we can run.  If not, either
3424# the compiler is broken, or we cross compile.
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3426$as_echo_n "checking whether we are cross compiling... " >&6; }
3427if test "$cross_compiling" != yes; then
3428  { { ac_try="$ac_link"
3429case "(($ac_try" in
3430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431  *) ac_try_echo=$ac_try;;
3432esac
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
3435  (eval "$ac_link") 2>&5
3436  ac_status=$?
3437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438  test $ac_status = 0; }
3439  if { ac_try='./conftest$ac_cv_exeext'
3440  { { case "(($ac_try" in
3441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442  *) ac_try_echo=$ac_try;;
3443esac
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
3446  (eval "$ac_try") 2>&5
3447  ac_status=$?
3448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449  test $ac_status = 0; }; }; then
3450    cross_compiling=no
3451  else
3452    if test "$cross_compiling" = maybe; then
3453	cross_compiling=yes
3454    else
3455	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error $? "cannot run C compiled programs.
3458If you meant to cross compile, use \`--host'.
3459See \`config.log' for more details" "$LINENO" 5; }
3460    fi
3461  fi
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464$as_echo "$cross_compiling" >&6; }
3465
3466rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3467ac_clean_files=$ac_clean_files_save
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3469$as_echo_n "checking for suffix of object files... " >&6; }
3470if ${ac_cv_objext+:} false; then :
3471  $as_echo_n "(cached) " >&6
3472else
3473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h.  */
3475
3476int
3477main ()
3478{
3479
3480  ;
3481  return 0;
3482}
3483_ACEOF
3484rm -f conftest.o conftest.obj
3485if { { ac_try="$ac_compile"
3486case "(($ac_try" in
3487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488  *) ac_try_echo=$ac_try;;
3489esac
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
3492  (eval "$ac_compile") 2>&5
3493  ac_status=$?
3494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495  test $ac_status = 0; }; then :
3496  for ac_file in conftest.o conftest.obj conftest.*; do
3497  test -f "$ac_file" || continue;
3498  case $ac_file in
3499    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3500    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501       break;;
3502  esac
3503done
3504else
3505  $as_echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error $? "cannot compute suffix of object files: cannot compile
3511See \`config.log' for more details" "$LINENO" 5; }
3512fi
3513rm -f conftest.$ac_cv_objext conftest.$ac_ext
3514fi
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3516$as_echo "$ac_cv_objext" >&6; }
3517OBJEXT=$ac_cv_objext
3518ac_objext=$OBJEXT
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3520$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3521if ${ac_cv_c_compiler_gnu+:} false; then :
3522  $as_echo_n "(cached) " >&6
3523else
3524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526
3527int
3528main ()
3529{
3530#ifndef __GNUC__
3531       choke me
3532#endif
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538if ac_fn_c_try_compile "$LINENO"; then :
3539  ac_compiler_gnu=yes
3540else
3541  ac_compiler_gnu=no
3542fi
3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544ac_cv_c_compiler_gnu=$ac_compiler_gnu
3545
3546fi
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3548$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3549if test $ac_compiler_gnu = yes; then
3550  GCC=yes
3551else
3552  GCC=
3553fi
3554ac_test_CFLAGS=${CFLAGS+set}
3555ac_save_CFLAGS=$CFLAGS
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3557$as_echo_n "checking whether $CC accepts -g... " >&6; }
3558if ${ac_cv_prog_cc_g+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  ac_save_c_werror_flag=$ac_c_werror_flag
3562   ac_c_werror_flag=yes
3563   ac_cv_prog_cc_g=no
3564   CFLAGS="-g"
3565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567
3568int
3569main ()
3570{
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577  ac_cv_prog_cc_g=yes
3578else
3579  CFLAGS=""
3580      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582
3583int
3584main ()
3585{
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591if ac_fn_c_try_compile "$LINENO"; then :
3592
3593else
3594  ac_c_werror_flag=$ac_save_c_werror_flag
3595	 CFLAGS="-g"
3596	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* end confdefs.h.  */
3598
3599int
3600main ()
3601{
3602
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"; then :
3608  ac_cv_prog_cc_g=yes
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615   ac_c_werror_flag=$ac_save_c_werror_flag
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3618$as_echo "$ac_cv_prog_cc_g" >&6; }
3619if test "$ac_test_CFLAGS" = set; then
3620  CFLAGS=$ac_save_CFLAGS
3621elif test $ac_cv_prog_cc_g = yes; then
3622  if test "$GCC" = yes; then
3623    CFLAGS="-g -O2"
3624  else
3625    CFLAGS="-g"
3626  fi
3627else
3628  if test "$GCC" = yes; then
3629    CFLAGS="-O2"
3630  else
3631    CFLAGS=
3632  fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636if ${ac_cv_prog_cc_c89+:} false; then :
3637  $as_echo_n "(cached) " >&6
3638else
3639  ac_cv_prog_cc_c89=no
3640ac_save_CC=$CC
3641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643#include <stdarg.h>
3644#include <stdio.h>
3645struct stat;
3646/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3647struct buf { int x; };
3648FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649static char *e (p, i)
3650     char **p;
3651     int i;
3652{
3653  return p[i];
3654}
3655static char *f (char * (*g) (char **, int), char **p, ...)
3656{
3657  char *s;
3658  va_list v;
3659  va_start (v,p);
3660  s = g (p, va_arg (v,int));
3661  va_end (v);
3662  return s;
3663}
3664
3665/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3666   function prototypes and stuff, but not '\xHH' hex character constants.
3667   These don't provoke an error unfortunately, instead are silently treated
3668   as 'x'.  The following induces an error, until -std is added to get
3669   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3670   array size at least.  It's necessary to write '\x00'==0 to get something
3671   that's true only with -std.  */
3672int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3673
3674/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675   inside strings and character constants.  */
3676#define FOO(x) 'x'
3677int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3678
3679int test (int i, double x);
3680struct s1 {int (*f) (int a);};
3681struct s2 {int (*f) (double a);};
3682int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3683int argc;
3684char **argv;
3685int
3686main ()
3687{
3688return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3695do
3696  CC="$ac_save_CC $ac_arg"
3697  if ac_fn_c_try_compile "$LINENO"; then :
3698  ac_cv_prog_cc_c89=$ac_arg
3699fi
3700rm -f core conftest.err conftest.$ac_objext
3701  test "x$ac_cv_prog_cc_c89" != "xno" && break
3702done
3703rm -f conftest.$ac_ext
3704CC=$ac_save_CC
3705
3706fi
3707# AC_CACHE_VAL
3708case "x$ac_cv_prog_cc_c89" in
3709  x)
3710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3711$as_echo "none needed" >&6; } ;;
3712  xno)
3713    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3714$as_echo "unsupported" >&6; } ;;
3715  *)
3716    CC="$CC $ac_cv_prog_cc_c89"
3717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3718$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3719esac
3720if test "x$ac_cv_prog_cc_c89" != xno; then :
3721
3722fi
3723
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
3730ac_ext=c
3731ac_cpp='$CPP $CPPFLAGS'
3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3736$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3737if ${am_cv_prog_cc_c_o+:} false; then :
3738  $as_echo_n "(cached) " >&6
3739else
3740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741/* end confdefs.h.  */
3742
3743int
3744main ()
3745{
3746
3747  ;
3748  return 0;
3749}
3750_ACEOF
3751  # Make sure it works both with $CC and with simple cc.
3752  # Following AC_PROG_CC_C_O, we do the test twice because some
3753  # compilers refuse to overwrite an existing .o file with -o,
3754  # though they will create one.
3755  am_cv_prog_cc_c_o=yes
3756  for am_i in 1 2; do
3757    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3758   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3759   ac_status=$?
3760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761   (exit $ac_status); } \
3762         && test -f conftest2.$ac_objext; then
3763      : OK
3764    else
3765      am_cv_prog_cc_c_o=no
3766      break
3767    fi
3768  done
3769  rm -f core conftest*
3770  unset am_i
3771fi
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3773$as_echo "$am_cv_prog_cc_c_o" >&6; }
3774if test "$am_cv_prog_cc_c_o" != yes; then
3775   # Losing compiler, so override with the script.
3776   # FIXME: It is wrong to rewrite CC.
3777   # But if we don't then we get into trouble of one sort or another.
3778   # A longer-term fix would be to have automake use am__CC in this case,
3779   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3780   CC="$am_aux_dir/compile $CC"
3781fi
3782ac_ext=c
3783ac_cpp='$CPP $CPPFLAGS'
3784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788DEPDIR="${am__leading_dot}deps"
3789
3790ac_config_commands="$ac_config_commands depfiles"
3791
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3793$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3794cat > confinc.mk << 'END'
3795am__doit:
3796	@echo this is the am__doit target >confinc.out
3797.PHONY: am__doit
3798END
3799am__include="#"
3800am__quote=
3801# BSD make does it like this.
3802echo '.include "confinc.mk" # ignored' > confmf.BSD
3803# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3804echo 'include confinc.mk # ignored' > confmf.GNU
3805_am_result=no
3806for s in GNU BSD; do
3807  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3808   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }
3812  case $?:`cat confinc.out 2>/dev/null` in #(
3813  '0:this is the am__doit target') :
3814    case $s in #(
3815  BSD) :
3816    am__include='.include' am__quote='"' ;; #(
3817  *) :
3818    am__include='include' am__quote='' ;;
3819esac ;; #(
3820  *) :
3821     ;;
3822esac
3823  if test "$am__include" != "#"; then
3824    _am_result="yes ($s style)"
3825    break
3826  fi
3827done
3828rm -f confinc.* confmf.*
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3830$as_echo "${_am_result}" >&6; }
3831
3832# Check whether --enable-dependency-tracking was given.
3833if test "${enable_dependency_tracking+set}" = set; then :
3834  enableval=$enable_dependency_tracking;
3835fi
3836
3837if test "x$enable_dependency_tracking" != xno; then
3838  am_depcomp="$ac_aux_dir/depcomp"
3839  AMDEPBACKSLASH='\'
3840  am__nodep='_no'
3841fi
3842 if test "x$enable_dependency_tracking" != xno; then
3843  AMDEP_TRUE=
3844  AMDEP_FALSE='#'
3845else
3846  AMDEP_TRUE='#'
3847  AMDEP_FALSE=
3848fi
3849
3850
3851
3852depcc="$CC"   am_compiler_list=
3853
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3855$as_echo_n "checking dependency style of $depcc... " >&6; }
3856if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3860  # We make a subdir and do the tests there.  Otherwise we can end up
3861  # making bogus files that we don't know about and never remove.  For
3862  # instance it was reported that on HP-UX the gcc test will end up
3863  # making a dummy file named 'D' -- because '-MD' means "put the output
3864  # in D".
3865  rm -rf conftest.dir
3866  mkdir conftest.dir
3867  # Copy depcomp to subdir because otherwise we won't find it if we're
3868  # using a relative directory.
3869  cp "$am_depcomp" conftest.dir
3870  cd conftest.dir
3871  # We will build objects and dependencies in a subdirectory because
3872  # it helps to detect inapplicable dependency modes.  For instance
3873  # both Tru64's cc and ICC support -MD to output dependencies as a
3874  # side effect of compilation, but ICC will put the dependencies in
3875  # the current directory while Tru64 will put them in the object
3876  # directory.
3877  mkdir sub
3878
3879  am_cv_CC_dependencies_compiler_type=none
3880  if test "$am_compiler_list" = ""; then
3881     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3882  fi
3883  am__universal=false
3884  case " $depcc " in #(
3885     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3886     esac
3887
3888  for depmode in $am_compiler_list; do
3889    # Setup a source with many dependencies, because some compilers
3890    # like to wrap large dependency lists on column 80 (with \), and
3891    # we should not choose a depcomp mode which is confused by this.
3892    #
3893    # We need to recreate these files for each test, as the compiler may
3894    # overwrite some of them when testing with obscure command lines.
3895    # This happens at least with the AIX C compiler.
3896    : > sub/conftest.c
3897    for i in 1 2 3 4 5 6; do
3898      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3899      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3900      # Solaris 10 /bin/sh.
3901      echo '/* dummy */' > sub/conftst$i.h
3902    done
3903    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3904
3905    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3906    # mode.  It turns out that the SunPro C++ compiler does not properly
3907    # handle '-M -o', and we need to detect this.  Also, some Intel
3908    # versions had trouble with output in subdirs.
3909    am__obj=sub/conftest.${OBJEXT-o}
3910    am__minus_obj="-o $am__obj"
3911    case $depmode in
3912    gcc)
3913      # This depmode causes a compiler race in universal mode.
3914      test "$am__universal" = false || continue
3915      ;;
3916    nosideeffect)
3917      # After this tag, mechanisms are not by side-effect, so they'll
3918      # only be used when explicitly requested.
3919      if test "x$enable_dependency_tracking" = xyes; then
3920	continue
3921      else
3922	break
3923      fi
3924      ;;
3925    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3926      # This compiler won't grok '-c -o', but also, the minuso test has
3927      # not run yet.  These depmodes are late enough in the game, and
3928      # so weak that their functioning should not be impacted.
3929      am__obj=conftest.${OBJEXT-o}
3930      am__minus_obj=
3931      ;;
3932    none) break ;;
3933    esac
3934    if depmode=$depmode \
3935       source=sub/conftest.c object=$am__obj \
3936       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3937       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3938         >/dev/null 2>conftest.err &&
3939       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3940       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3941       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3942       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3943      # icc doesn't choke on unknown options, it will just issue warnings
3944      # or remarks (even with -Werror).  So we grep stderr for any message
3945      # that says an option was ignored or not supported.
3946      # When given -MP, icc 7.0 and 7.1 complain thusly:
3947      #   icc: Command line warning: ignoring option '-M'; no argument required
3948      # The diagnosis changed in icc 8.0:
3949      #   icc: Command line remark: option '-MP' not supported
3950      if (grep 'ignoring option' conftest.err ||
3951          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3952        am_cv_CC_dependencies_compiler_type=$depmode
3953        break
3954      fi
3955    fi
3956  done
3957
3958  cd ..
3959  rm -rf conftest.dir
3960else
3961  am_cv_CC_dependencies_compiler_type=none
3962fi
3963
3964fi
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3966$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3967CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3968
3969 if
3970  test "x$enable_dependency_tracking" != xno \
3971  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3972  am__fastdepCC_TRUE=
3973  am__fastdepCC_FALSE='#'
3974else
3975  am__fastdepCC_TRUE='#'
3976  am__fastdepCC_FALSE=
3977fi
3978
3979
3980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3981$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3982if ${ac_cv_prog_cc_c99+:} false; then :
3983  $as_echo_n "(cached) " >&6
3984else
3985  ac_cv_prog_cc_c99=no
3986ac_save_CC=$CC
3987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h.  */
3989#include <stdarg.h>
3990#include <stdbool.h>
3991#include <stdlib.h>
3992#include <wchar.h>
3993#include <stdio.h>
3994
3995// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3996#define debug(...) fprintf (stderr, __VA_ARGS__)
3997#define showlist(...) puts (#__VA_ARGS__)
3998#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3999static void
4000test_varargs_macros (void)
4001{
4002  int x = 1234;
4003  int y = 5678;
4004  debug ("Flag");
4005  debug ("X = %d\n", x);
4006  showlist (The first, second, and third items.);
4007  report (x>y, "x is %d but y is %d", x, y);
4008}
4009
4010// Check long long types.
4011#define BIG64 18446744073709551615ull
4012#define BIG32 4294967295ul
4013#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4014#if !BIG_OK
4015  your preprocessor is broken;
4016#endif
4017#if BIG_OK
4018#else
4019  your preprocessor is broken;
4020#endif
4021static long long int bignum = -9223372036854775807LL;
4022static unsigned long long int ubignum = BIG64;
4023
4024struct incomplete_array
4025{
4026  int datasize;
4027  double data[];
4028};
4029
4030struct named_init {
4031  int number;
4032  const wchar_t *name;
4033  double average;
4034};
4035
4036typedef const char *ccp;
4037
4038static inline int
4039test_restrict (ccp restrict text)
4040{
4041  // See if C++-style comments work.
4042  // Iterate through items via the restricted pointer.
4043  // Also check for declarations in for loops.
4044  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4045    continue;
4046  return 0;
4047}
4048
4049// Check varargs and va_copy.
4050static void
4051test_varargs (const char *format, ...)
4052{
4053  va_list args;
4054  va_start (args, format);
4055  va_list args_copy;
4056  va_copy (args_copy, args);
4057
4058  const char *str;
4059  int number;
4060  float fnumber;
4061
4062  while (*format)
4063    {
4064      switch (*format++)
4065	{
4066	case 's': // string
4067	  str = va_arg (args_copy, const char *);
4068	  break;
4069	case 'd': // int
4070	  number = va_arg (args_copy, int);
4071	  break;
4072	case 'f': // float
4073	  fnumber = va_arg (args_copy, double);
4074	  break;
4075	default:
4076	  break;
4077	}
4078    }
4079  va_end (args_copy);
4080  va_end (args);
4081}
4082
4083int
4084main ()
4085{
4086
4087  // Check bool.
4088  _Bool success = false;
4089
4090  // Check restrict.
4091  if (test_restrict ("String literal") == 0)
4092    success = true;
4093  char *restrict newvar = "Another string";
4094
4095  // Check varargs.
4096  test_varargs ("s, d' f .", "string", 65, 34.234);
4097  test_varargs_macros ();
4098
4099  // Check flexible array members.
4100  struct incomplete_array *ia =
4101    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4102  ia->datasize = 10;
4103  for (int i = 0; i < ia->datasize; ++i)
4104    ia->data[i] = i * 1.234;
4105
4106  // Check named initializers.
4107  struct named_init ni = {
4108    .number = 34,
4109    .name = L"Test wide string",
4110    .average = 543.34343,
4111  };
4112
4113  ni.number = 58;
4114
4115  int dynamic_array[ni.number];
4116  dynamic_array[ni.number - 1] = 543;
4117
4118  // work around unused variable warnings
4119  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4120	  || dynamic_array[ni.number - 1] != 543);
4121
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4127do
4128  CC="$ac_save_CC $ac_arg"
4129  if ac_fn_c_try_compile "$LINENO"; then :
4130  ac_cv_prog_cc_c99=$ac_arg
4131fi
4132rm -f core conftest.err conftest.$ac_objext
4133  test "x$ac_cv_prog_cc_c99" != "xno" && break
4134done
4135rm -f conftest.$ac_ext
4136CC=$ac_save_CC
4137
4138fi
4139# AC_CACHE_VAL
4140case "x$ac_cv_prog_cc_c99" in
4141  x)
4142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4143$as_echo "none needed" >&6; } ;;
4144  xno)
4145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146$as_echo "unsupported" >&6; } ;;
4147  *)
4148    CC="$CC $ac_cv_prog_cc_c99"
4149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4150$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4151esac
4152if test "x$ac_cv_prog_cc_c99" != xno; then :
4153
4154fi
4155
4156
4157
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4159$as_echo_n "checking whether ln -s works... " >&6; }
4160LN_S=$as_ln_s
4161if test "$LN_S" = "ln -s"; then
4162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4163$as_echo "yes" >&6; }
4164else
4165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4166$as_echo "no, using $LN_S" >&6; }
4167fi
4168
4169case `pwd` in
4170  *\ * | *\	*)
4171    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4172$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4173esac
4174
4175
4176
4177macro_version='2.4.6'
4178macro_revision='2.4.6'
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192ltmain=$ac_aux_dir/ltmain.sh
4193
4194# Make sure we can run config.sub.
4195$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4196  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4197
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4199$as_echo_n "checking build system type... " >&6; }
4200if ${ac_cv_build+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  ac_build_alias=$build_alias
4204test "x$ac_build_alias" = x &&
4205  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4206test "x$ac_build_alias" = x &&
4207  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4208ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4209  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4210
4211fi
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4213$as_echo "$ac_cv_build" >&6; }
4214case $ac_cv_build in
4215*-*-*) ;;
4216*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4217esac
4218build=$ac_cv_build
4219ac_save_IFS=$IFS; IFS='-'
4220set x $ac_cv_build
4221shift
4222build_cpu=$1
4223build_vendor=$2
4224shift; shift
4225# Remember, the first character of IFS is used to create $*,
4226# except with old shells:
4227build_os=$*
4228IFS=$ac_save_IFS
4229case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4230
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4233$as_echo_n "checking host system type... " >&6; }
4234if ${ac_cv_host+:} false; then :
4235  $as_echo_n "(cached) " >&6
4236else
4237  if test "x$host_alias" = x; then
4238  ac_cv_host=$ac_cv_build
4239else
4240  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4241    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4242fi
4243
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4246$as_echo "$ac_cv_host" >&6; }
4247case $ac_cv_host in
4248*-*-*) ;;
4249*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4250esac
4251host=$ac_cv_host
4252ac_save_IFS=$IFS; IFS='-'
4253set x $ac_cv_host
4254shift
4255host_cpu=$1
4256host_vendor=$2
4257shift; shift
4258# Remember, the first character of IFS is used to create $*,
4259# except with old shells:
4260host_os=$*
4261IFS=$ac_save_IFS
4262case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4263
4264
4265# Backslashify metacharacters that are still active within
4266# double-quoted strings.
4267sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4268
4269# Same as above, but do not quote variable references.
4270double_quote_subst='s/\(["`\\]\)/\\\1/g'
4271
4272# Sed substitution to delay expansion of an escaped shell variable in a
4273# double_quote_subst'ed string.
4274delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4275
4276# Sed substitution to delay expansion of an escaped single quote.
4277delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4278
4279# Sed substitution to avoid accidental globbing in evaled expressions
4280no_glob_subst='s/\*/\\\*/g'
4281
4282ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4283ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4284ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4285
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4287$as_echo_n "checking how to print strings... " >&6; }
4288# Test print first, because it will be a builtin if present.
4289if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4290   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4291  ECHO='print -r --'
4292elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4293  ECHO='printf %s\n'
4294else
4295  # Use this function as a fallback that always works.
4296  func_fallback_echo ()
4297  {
4298    eval 'cat <<_LTECHO_EOF
4299$1
4300_LTECHO_EOF'
4301  }
4302  ECHO='func_fallback_echo'
4303fi
4304
4305# func_echo_all arg...
4306# Invoke $ECHO with all args, space-separated.
4307func_echo_all ()
4308{
4309    $ECHO ""
4310}
4311
4312case $ECHO in
4313  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4314$as_echo "printf" >&6; } ;;
4315  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4316$as_echo "print -r" >&6; } ;;
4317  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4318$as_echo "cat" >&6; } ;;
4319esac
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4335$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4336if ${ac_cv_path_SED+:} false; then :
4337  $as_echo_n "(cached) " >&6
4338else
4339            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4340     for ac_i in 1 2 3 4 5 6 7; do
4341       ac_script="$ac_script$as_nl$ac_script"
4342     done
4343     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4344     { ac_script=; unset ac_script;}
4345     if test -z "$SED"; then
4346  ac_path_SED_found=false
4347  # Loop through the user's path and test for each of PROGNAME-LIST
4348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351  IFS=$as_save_IFS
4352  test -z "$as_dir" && as_dir=.
4353    for ac_prog in sed gsed; do
4354    for ac_exec_ext in '' $ac_executable_extensions; do
4355      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4356      as_fn_executable_p "$ac_path_SED" || continue
4357# Check for GNU ac_path_SED and select it if it is found.
4358  # Check for GNU $ac_path_SED
4359case `"$ac_path_SED" --version 2>&1` in
4360*GNU*)
4361  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4362*)
4363  ac_count=0
4364  $as_echo_n 0123456789 >"conftest.in"
4365  while :
4366  do
4367    cat "conftest.in" "conftest.in" >"conftest.tmp"
4368    mv "conftest.tmp" "conftest.in"
4369    cp "conftest.in" "conftest.nl"
4370    $as_echo '' >> "conftest.nl"
4371    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373    as_fn_arith $ac_count + 1 && ac_count=$as_val
4374    if test $ac_count -gt ${ac_path_SED_max-0}; then
4375      # Best one so far, save it but keep looking for a better one
4376      ac_cv_path_SED="$ac_path_SED"
4377      ac_path_SED_max=$ac_count
4378    fi
4379    # 10*(2^10) chars as input seems more than enough
4380    test $ac_count -gt 10 && break
4381  done
4382  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383esac
4384
4385      $ac_path_SED_found && break 3
4386    done
4387  done
4388  done
4389IFS=$as_save_IFS
4390  if test -z "$ac_cv_path_SED"; then
4391    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4392  fi
4393else
4394  ac_cv_path_SED=$SED
4395fi
4396
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4399$as_echo "$ac_cv_path_SED" >&6; }
4400 SED="$ac_cv_path_SED"
4401  rm -f conftest.sed
4402
4403test -z "$SED" && SED=sed
4404Xsed="$SED -e 1s/^X//"
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4417$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4418if ${ac_cv_path_GREP+:} false; then :
4419  $as_echo_n "(cached) " >&6
4420else
4421  if test -z "$GREP"; then
4422  ac_path_GREP_found=false
4423  # Loop through the user's path and test for each of PROGNAME-LIST
4424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4426do
4427  IFS=$as_save_IFS
4428  test -z "$as_dir" && as_dir=.
4429    for ac_prog in grep ggrep; do
4430    for ac_exec_ext in '' $ac_executable_extensions; do
4431      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4432      as_fn_executable_p "$ac_path_GREP" || continue
4433# Check for GNU ac_path_GREP and select it if it is found.
4434  # Check for GNU $ac_path_GREP
4435case `"$ac_path_GREP" --version 2>&1` in
4436*GNU*)
4437  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4438*)
4439  ac_count=0
4440  $as_echo_n 0123456789 >"conftest.in"
4441  while :
4442  do
4443    cat "conftest.in" "conftest.in" >"conftest.tmp"
4444    mv "conftest.tmp" "conftest.in"
4445    cp "conftest.in" "conftest.nl"
4446    $as_echo 'GREP' >> "conftest.nl"
4447    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449    as_fn_arith $ac_count + 1 && ac_count=$as_val
4450    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4451      # Best one so far, save it but keep looking for a better one
4452      ac_cv_path_GREP="$ac_path_GREP"
4453      ac_path_GREP_max=$ac_count
4454    fi
4455    # 10*(2^10) chars as input seems more than enough
4456    test $ac_count -gt 10 && break
4457  done
4458  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4459esac
4460
4461      $ac_path_GREP_found && break 3
4462    done
4463  done
4464  done
4465IFS=$as_save_IFS
4466  if test -z "$ac_cv_path_GREP"; then
4467    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4468  fi
4469else
4470  ac_cv_path_GREP=$GREP
4471fi
4472
4473fi
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4475$as_echo "$ac_cv_path_GREP" >&6; }
4476 GREP="$ac_cv_path_GREP"
4477
4478
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4480$as_echo_n "checking for egrep... " >&6; }
4481if ${ac_cv_path_EGREP+:} false; then :
4482  $as_echo_n "(cached) " >&6
4483else
4484  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4485   then ac_cv_path_EGREP="$GREP -E"
4486   else
4487     if test -z "$EGREP"; then
4488  ac_path_EGREP_found=false
4489  # Loop through the user's path and test for each of PROGNAME-LIST
4490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4492do
4493  IFS=$as_save_IFS
4494  test -z "$as_dir" && as_dir=.
4495    for ac_prog in egrep; do
4496    for ac_exec_ext in '' $ac_executable_extensions; do
4497      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4498      as_fn_executable_p "$ac_path_EGREP" || continue
4499# Check for GNU ac_path_EGREP and select it if it is found.
4500  # Check for GNU $ac_path_EGREP
4501case `"$ac_path_EGREP" --version 2>&1` in
4502*GNU*)
4503  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4504*)
4505  ac_count=0
4506  $as_echo_n 0123456789 >"conftest.in"
4507  while :
4508  do
4509    cat "conftest.in" "conftest.in" >"conftest.tmp"
4510    mv "conftest.tmp" "conftest.in"
4511    cp "conftest.in" "conftest.nl"
4512    $as_echo 'EGREP' >> "conftest.nl"
4513    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4514    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4515    as_fn_arith $ac_count + 1 && ac_count=$as_val
4516    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4517      # Best one so far, save it but keep looking for a better one
4518      ac_cv_path_EGREP="$ac_path_EGREP"
4519      ac_path_EGREP_max=$ac_count
4520    fi
4521    # 10*(2^10) chars as input seems more than enough
4522    test $ac_count -gt 10 && break
4523  done
4524  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4525esac
4526
4527      $ac_path_EGREP_found && break 3
4528    done
4529  done
4530  done
4531IFS=$as_save_IFS
4532  if test -z "$ac_cv_path_EGREP"; then
4533    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4534  fi
4535else
4536  ac_cv_path_EGREP=$EGREP
4537fi
4538
4539   fi
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4542$as_echo "$ac_cv_path_EGREP" >&6; }
4543 EGREP="$ac_cv_path_EGREP"
4544
4545
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4547$as_echo_n "checking for fgrep... " >&6; }
4548if ${ac_cv_path_FGREP+:} false; then :
4549  $as_echo_n "(cached) " >&6
4550else
4551  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4552   then ac_cv_path_FGREP="$GREP -F"
4553   else
4554     if test -z "$FGREP"; then
4555  ac_path_FGREP_found=false
4556  # Loop through the user's path and test for each of PROGNAME-LIST
4557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4559do
4560  IFS=$as_save_IFS
4561  test -z "$as_dir" && as_dir=.
4562    for ac_prog in fgrep; do
4563    for ac_exec_ext in '' $ac_executable_extensions; do
4564      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4565      as_fn_executable_p "$ac_path_FGREP" || continue
4566# Check for GNU ac_path_FGREP and select it if it is found.
4567  # Check for GNU $ac_path_FGREP
4568case `"$ac_path_FGREP" --version 2>&1` in
4569*GNU*)
4570  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4571*)
4572  ac_count=0
4573  $as_echo_n 0123456789 >"conftest.in"
4574  while :
4575  do
4576    cat "conftest.in" "conftest.in" >"conftest.tmp"
4577    mv "conftest.tmp" "conftest.in"
4578    cp "conftest.in" "conftest.nl"
4579    $as_echo 'FGREP' >> "conftest.nl"
4580    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582    as_fn_arith $ac_count + 1 && ac_count=$as_val
4583    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4584      # Best one so far, save it but keep looking for a better one
4585      ac_cv_path_FGREP="$ac_path_FGREP"
4586      ac_path_FGREP_max=$ac_count
4587    fi
4588    # 10*(2^10) chars as input seems more than enough
4589    test $ac_count -gt 10 && break
4590  done
4591  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592esac
4593
4594      $ac_path_FGREP_found && break 3
4595    done
4596  done
4597  done
4598IFS=$as_save_IFS
4599  if test -z "$ac_cv_path_FGREP"; then
4600    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4601  fi
4602else
4603  ac_cv_path_FGREP=$FGREP
4604fi
4605
4606   fi
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4609$as_echo "$ac_cv_path_FGREP" >&6; }
4610 FGREP="$ac_cv_path_FGREP"
4611
4612
4613test -z "$GREP" && GREP=grep
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633# Check whether --with-gnu-ld was given.
4634if test "${with_gnu_ld+set}" = set; then :
4635  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4636else
4637  with_gnu_ld=no
4638fi
4639
4640ac_prog=ld
4641if test yes = "$GCC"; then
4642  # Check if gcc -print-prog-name=ld gives a path.
4643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4644$as_echo_n "checking for ld used by $CC... " >&6; }
4645  case $host in
4646  *-*-mingw*)
4647    # gcc leaves a trailing carriage return, which upsets mingw
4648    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4649  *)
4650    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4651  esac
4652  case $ac_prog in
4653    # Accept absolute paths.
4654    [\\/]* | ?:[\\/]*)
4655      re_direlt='/[^/][^/]*/\.\./'
4656      # Canonicalize the pathname of ld
4657      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4658      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4659	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4660      done
4661      test -z "$LD" && LD=$ac_prog
4662      ;;
4663  "")
4664    # If it fails, then pretend we aren't using GCC.
4665    ac_prog=ld
4666    ;;
4667  *)
4668    # If it is relative, then search for the first ld in PATH.
4669    with_gnu_ld=unknown
4670    ;;
4671  esac
4672elif test yes = "$with_gnu_ld"; then
4673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4674$as_echo_n "checking for GNU ld... " >&6; }
4675else
4676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4677$as_echo_n "checking for non-GNU ld... " >&6; }
4678fi
4679if ${lt_cv_path_LD+:} false; then :
4680  $as_echo_n "(cached) " >&6
4681else
4682  if test -z "$LD"; then
4683  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4684  for ac_dir in $PATH; do
4685    IFS=$lt_save_ifs
4686    test -z "$ac_dir" && ac_dir=.
4687    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4688      lt_cv_path_LD=$ac_dir/$ac_prog
4689      # Check to see if the program is GNU ld.  I'd rather use --version,
4690      # but apparently some variants of GNU ld only accept -v.
4691      # Break only if it was the GNU/non-GNU ld that we prefer.
4692      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4693      *GNU* | *'with BFD'*)
4694	test no != "$with_gnu_ld" && break
4695	;;
4696      *)
4697	test yes != "$with_gnu_ld" && break
4698	;;
4699      esac
4700    fi
4701  done
4702  IFS=$lt_save_ifs
4703else
4704  lt_cv_path_LD=$LD # Let the user override the test with a path.
4705fi
4706fi
4707
4708LD=$lt_cv_path_LD
4709if test -n "$LD"; then
4710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4711$as_echo "$LD" >&6; }
4712else
4713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714$as_echo "no" >&6; }
4715fi
4716test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4718$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4719if ${lt_cv_prog_gnu_ld+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4723case `$LD -v 2>&1 </dev/null` in
4724*GNU* | *'with BFD'*)
4725  lt_cv_prog_gnu_ld=yes
4726  ;;
4727*)
4728  lt_cv_prog_gnu_ld=no
4729  ;;
4730esac
4731fi
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4733$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4734with_gnu_ld=$lt_cv_prog_gnu_ld
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4745$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4746if ${lt_cv_path_NM+:} false; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  if test -n "$NM"; then
4750  # Let the user override the test.
4751  lt_cv_path_NM=$NM
4752else
4753  lt_nm_to_check=${ac_tool_prefix}nm
4754  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4755    lt_nm_to_check="$lt_nm_to_check nm"
4756  fi
4757  for lt_tmp_nm in $lt_nm_to_check; do
4758    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4759    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4760      IFS=$lt_save_ifs
4761      test -z "$ac_dir" && ac_dir=.
4762      tmp_nm=$ac_dir/$lt_tmp_nm
4763      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4764	# Check to see if the nm accepts a BSD-compat flag.
4765	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4766	#   nm: unknown option "B" ignored
4767	# Tru64's nm complains that /dev/null is an invalid object file
4768	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4769	case $build_os in
4770	mingw*) lt_bad_file=conftest.nm/nofile ;;
4771	*) lt_bad_file=/dev/null ;;
4772	esac
4773	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4774	*$lt_bad_file* | *'Invalid file or object type'*)
4775	  lt_cv_path_NM="$tmp_nm -B"
4776	  break 2
4777	  ;;
4778	*)
4779	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4780	  */dev/null*)
4781	    lt_cv_path_NM="$tmp_nm -p"
4782	    break 2
4783	    ;;
4784	  *)
4785	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4786	    continue # so that we can try to find one that supports BSD flags
4787	    ;;
4788	  esac
4789	  ;;
4790	esac
4791      fi
4792    done
4793    IFS=$lt_save_ifs
4794  done
4795  : ${lt_cv_path_NM=no}
4796fi
4797fi
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4799$as_echo "$lt_cv_path_NM" >&6; }
4800if test no != "$lt_cv_path_NM"; then
4801  NM=$lt_cv_path_NM
4802else
4803  # Didn't find any BSD compatible name lister, look for dumpbin.
4804  if test -n "$DUMPBIN"; then :
4805    # Let the user override the test.
4806  else
4807    if test -n "$ac_tool_prefix"; then
4808  for ac_prog in dumpbin "link -dump"
4809  do
4810    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813$as_echo_n "checking for $ac_word... " >&6; }
4814if ${ac_cv_prog_DUMPBIN+:} false; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  if test -n "$DUMPBIN"; then
4818  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4819else
4820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823  IFS=$as_save_IFS
4824  test -z "$as_dir" && as_dir=.
4825    for ac_exec_ext in '' $ac_executable_extensions; do
4826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829    break 2
4830  fi
4831done
4832  done
4833IFS=$as_save_IFS
4834
4835fi
4836fi
4837DUMPBIN=$ac_cv_prog_DUMPBIN
4838if test -n "$DUMPBIN"; then
4839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4840$as_echo "$DUMPBIN" >&6; }
4841else
4842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843$as_echo "no" >&6; }
4844fi
4845
4846
4847    test -n "$DUMPBIN" && break
4848  done
4849fi
4850if test -z "$DUMPBIN"; then
4851  ac_ct_DUMPBIN=$DUMPBIN
4852  for ac_prog in dumpbin "link -dump"
4853do
4854  # Extract the first word of "$ac_prog", so it can be a program name with args.
4855set dummy $ac_prog; ac_word=$2
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857$as_echo_n "checking for $ac_word... " >&6; }
4858if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4859  $as_echo_n "(cached) " >&6
4860else
4861  if test -n "$ac_ct_DUMPBIN"; then
4862  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4863else
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867  IFS=$as_save_IFS
4868  test -z "$as_dir" && as_dir=.
4869    for ac_exec_ext in '' $ac_executable_extensions; do
4870  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873    break 2
4874  fi
4875done
4876  done
4877IFS=$as_save_IFS
4878
4879fi
4880fi
4881ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4882if test -n "$ac_ct_DUMPBIN"; then
4883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4884$as_echo "$ac_ct_DUMPBIN" >&6; }
4885else
4886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
4888fi
4889
4890
4891  test -n "$ac_ct_DUMPBIN" && break
4892done
4893
4894  if test "x$ac_ct_DUMPBIN" = x; then
4895    DUMPBIN=":"
4896  else
4897    case $cross_compiling:$ac_tool_warned in
4898yes:)
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901ac_tool_warned=yes ;;
4902esac
4903    DUMPBIN=$ac_ct_DUMPBIN
4904  fi
4905fi
4906
4907    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4908    *COFF*)
4909      DUMPBIN="$DUMPBIN -symbols -headers"
4910      ;;
4911    *)
4912      DUMPBIN=:
4913      ;;
4914    esac
4915  fi
4916
4917  if test : != "$DUMPBIN"; then
4918    NM=$DUMPBIN
4919  fi
4920fi
4921test -z "$NM" && NM=nm
4922
4923
4924
4925
4926
4927
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4929$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4930if ${lt_cv_nm_interface+:} false; then :
4931  $as_echo_n "(cached) " >&6
4932else
4933  lt_cv_nm_interface="BSD nm"
4934  echo "int some_variable = 0;" > conftest.$ac_ext
4935  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4936  (eval "$ac_compile" 2>conftest.err)
4937  cat conftest.err >&5
4938  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4939  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4940  cat conftest.err >&5
4941  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4942  cat conftest.out >&5
4943  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4944    lt_cv_nm_interface="MS dumpbin"
4945  fi
4946  rm -f conftest*
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4949$as_echo "$lt_cv_nm_interface" >&6; }
4950
4951# find the maximum length of command line arguments
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4953$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4954if ${lt_cv_sys_max_cmd_len+:} false; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957    i=0
4958  teststring=ABCD
4959
4960  case $build_os in
4961  msdosdjgpp*)
4962    # On DJGPP, this test can blow up pretty badly due to problems in libc
4963    # (any single argument exceeding 2000 bytes causes a buffer overrun
4964    # during glob expansion).  Even if it were fixed, the result of this
4965    # check would be larger than it should be.
4966    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4967    ;;
4968
4969  gnu*)
4970    # Under GNU Hurd, this test is not required because there is
4971    # no limit to the length of command line arguments.
4972    # Libtool will interpret -1 as no limit whatsoever
4973    lt_cv_sys_max_cmd_len=-1;
4974    ;;
4975
4976  cygwin* | mingw* | cegcc*)
4977    # On Win9x/ME, this test blows up -- it succeeds, but takes
4978    # about 5 minutes as the teststring grows exponentially.
4979    # Worse, since 9x/ME are not pre-emptively multitasking,
4980    # you end up with a "frozen" computer, even though with patience
4981    # the test eventually succeeds (with a max line length of 256k).
4982    # Instead, let's just punt: use the minimum linelength reported by
4983    # all of the supported platforms: 8192 (on NT/2K/XP).
4984    lt_cv_sys_max_cmd_len=8192;
4985    ;;
4986
4987  mint*)
4988    # On MiNT this can take a long time and run out of memory.
4989    lt_cv_sys_max_cmd_len=8192;
4990    ;;
4991
4992  amigaos*)
4993    # On AmigaOS with pdksh, this test takes hours, literally.
4994    # So we just punt and use a minimum line length of 8192.
4995    lt_cv_sys_max_cmd_len=8192;
4996    ;;
4997
4998  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4999    # This has been around since 386BSD, at least.  Likely further.
5000    if test -x /sbin/sysctl; then
5001      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5002    elif test -x /usr/sbin/sysctl; then
5003      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5004    else
5005      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5006    fi
5007    # And add a safety zone
5008    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5009    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5010    ;;
5011
5012  interix*)
5013    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5014    lt_cv_sys_max_cmd_len=196608
5015    ;;
5016
5017  os2*)
5018    # The test takes a long time on OS/2.
5019    lt_cv_sys_max_cmd_len=8192
5020    ;;
5021
5022  osf*)
5023    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5024    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5025    # nice to cause kernel panics so lets avoid the loop below.
5026    # First set a reasonable default.
5027    lt_cv_sys_max_cmd_len=16384
5028    #
5029    if test -x /sbin/sysconfig; then
5030      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5031        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5032      esac
5033    fi
5034    ;;
5035  sco3.2v5*)
5036    lt_cv_sys_max_cmd_len=102400
5037    ;;
5038  sysv5* | sco5v6* | sysv4.2uw2*)
5039    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5040    if test -n "$kargmax"; then
5041      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5042    else
5043      lt_cv_sys_max_cmd_len=32768
5044    fi
5045    ;;
5046  *)
5047    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5048    if test -n "$lt_cv_sys_max_cmd_len" && \
5049       test undefined != "$lt_cv_sys_max_cmd_len"; then
5050      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5051      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5052    else
5053      # Make teststring a little bigger before we do anything with it.
5054      # a 1K string should be a reasonable start.
5055      for i in 1 2 3 4 5 6 7 8; do
5056        teststring=$teststring$teststring
5057      done
5058      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5059      # If test is not a shell built-in, we'll probably end up computing a
5060      # maximum length that is only half of the actual maximum length, but
5061      # we can't tell.
5062      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5063	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5064	      test 17 != "$i" # 1/2 MB should be enough
5065      do
5066        i=`expr $i + 1`
5067        teststring=$teststring$teststring
5068      done
5069      # Only check the string length outside the loop.
5070      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5071      teststring=
5072      # Add a significant safety factor because C++ compilers can tack on
5073      # massive amounts of additional arguments before passing them to the
5074      # linker.  It appears as though 1/2 is a usable value.
5075      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5076    fi
5077    ;;
5078  esac
5079
5080fi
5081
5082if test -n "$lt_cv_sys_max_cmd_len"; then
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5084$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5085else
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5087$as_echo "none" >&6; }
5088fi
5089max_cmd_len=$lt_cv_sys_max_cmd_len
5090
5091
5092
5093
5094
5095
5096: ${CP="cp -f"}
5097: ${MV="mv -f"}
5098: ${RM="rm -f"}
5099
5100if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5101  lt_unset=unset
5102else
5103  lt_unset=false
5104fi
5105
5106
5107
5108
5109
5110# test EBCDIC or ASCII
5111case `echo X|tr X '\101'` in
5112 A) # ASCII based system
5113    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5114  lt_SP2NL='tr \040 \012'
5115  lt_NL2SP='tr \015\012 \040\040'
5116  ;;
5117 *) # EBCDIC based system
5118  lt_SP2NL='tr \100 \n'
5119  lt_NL2SP='tr \r\n \100\100'
5120  ;;
5121esac
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5132$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5133if ${lt_cv_to_host_file_cmd+:} false; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136  case $host in
5137  *-*-mingw* )
5138    case $build in
5139      *-*-mingw* ) # actually msys
5140        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5141        ;;
5142      *-*-cygwin* )
5143        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5144        ;;
5145      * ) # otherwise, assume *nix
5146        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5147        ;;
5148    esac
5149    ;;
5150  *-*-cygwin* )
5151    case $build in
5152      *-*-mingw* ) # actually msys
5153        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5154        ;;
5155      *-*-cygwin* )
5156        lt_cv_to_host_file_cmd=func_convert_file_noop
5157        ;;
5158      * ) # otherwise, assume *nix
5159        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5160        ;;
5161    esac
5162    ;;
5163  * ) # unhandled hosts (and "normal" native builds)
5164    lt_cv_to_host_file_cmd=func_convert_file_noop
5165    ;;
5166esac
5167
5168fi
5169
5170to_host_file_cmd=$lt_cv_to_host_file_cmd
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5172$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5173
5174
5175
5176
5177
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5179$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5180if ${lt_cv_to_tool_file_cmd+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183  #assume ordinary cross tools, or native build.
5184lt_cv_to_tool_file_cmd=func_convert_file_noop
5185case $host in
5186  *-*-mingw* )
5187    case $build in
5188      *-*-mingw* ) # actually msys
5189        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5190        ;;
5191    esac
5192    ;;
5193esac
5194
5195fi
5196
5197to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5199$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5200
5201
5202
5203
5204
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5206$as_echo_n "checking for $LD option to reload object files... " >&6; }
5207if ${lt_cv_ld_reload_flag+:} false; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  lt_cv_ld_reload_flag='-r'
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5213$as_echo "$lt_cv_ld_reload_flag" >&6; }
5214reload_flag=$lt_cv_ld_reload_flag
5215case $reload_flag in
5216"" | " "*) ;;
5217*) reload_flag=" $reload_flag" ;;
5218esac
5219reload_cmds='$LD$reload_flag -o $output$reload_objs'
5220case $host_os in
5221  cygwin* | mingw* | pw32* | cegcc*)
5222    if test yes != "$GCC"; then
5223      reload_cmds=false
5224    fi
5225    ;;
5226  darwin*)
5227    if test yes = "$GCC"; then
5228      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5229    else
5230      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5231    fi
5232    ;;
5233esac
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243if test -n "$ac_tool_prefix"; then
5244  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5245set dummy ${ac_tool_prefix}objdump; ac_word=$2
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247$as_echo_n "checking for $ac_word... " >&6; }
5248if ${ac_cv_prog_OBJDUMP+:} false; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  if test -n "$OBJDUMP"; then
5252  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257  IFS=$as_save_IFS
5258  test -z "$as_dir" && as_dir=.
5259    for ac_exec_ext in '' $ac_executable_extensions; do
5260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263    break 2
5264  fi
5265done
5266  done
5267IFS=$as_save_IFS
5268
5269fi
5270fi
5271OBJDUMP=$ac_cv_prog_OBJDUMP
5272if test -n "$OBJDUMP"; then
5273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5274$as_echo "$OBJDUMP" >&6; }
5275else
5276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277$as_echo "no" >&6; }
5278fi
5279
5280
5281fi
5282if test -z "$ac_cv_prog_OBJDUMP"; then
5283  ac_ct_OBJDUMP=$OBJDUMP
5284  # Extract the first word of "objdump", so it can be a program name with args.
5285set dummy objdump; ac_word=$2
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287$as_echo_n "checking for $ac_word... " >&6; }
5288if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  if test -n "$ac_ct_OBJDUMP"; then
5292  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297  IFS=$as_save_IFS
5298  test -z "$as_dir" && as_dir=.
5299    for ac_exec_ext in '' $ac_executable_extensions; do
5300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303    break 2
5304  fi
5305done
5306  done
5307IFS=$as_save_IFS
5308
5309fi
5310fi
5311ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5312if test -n "$ac_ct_OBJDUMP"; then
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5314$as_echo "$ac_ct_OBJDUMP" >&6; }
5315else
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
5318fi
5319
5320  if test "x$ac_ct_OBJDUMP" = x; then
5321    OBJDUMP="false"
5322  else
5323    case $cross_compiling:$ac_tool_warned in
5324yes:)
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327ac_tool_warned=yes ;;
5328esac
5329    OBJDUMP=$ac_ct_OBJDUMP
5330  fi
5331else
5332  OBJDUMP="$ac_cv_prog_OBJDUMP"
5333fi
5334
5335test -z "$OBJDUMP" && OBJDUMP=objdump
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5346$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5347if ${lt_cv_deplibs_check_method+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  lt_cv_file_magic_cmd='$MAGIC_CMD'
5351lt_cv_file_magic_test_file=
5352lt_cv_deplibs_check_method='unknown'
5353# Need to set the preceding variable on all platforms that support
5354# interlibrary dependencies.
5355# 'none' -- dependencies not supported.
5356# 'unknown' -- same as none, but documents that we really don't know.
5357# 'pass_all' -- all dependencies passed with no checks.
5358# 'test_compile' -- check by making test program.
5359# 'file_magic [[regex]]' -- check by looking for files in library path
5360# that responds to the $file_magic_cmd with a given extended regex.
5361# If you have 'file' or equivalent on your system and you're not sure
5362# whether 'pass_all' will *always* work, you probably want this one.
5363
5364case $host_os in
5365aix[4-9]*)
5366  lt_cv_deplibs_check_method=pass_all
5367  ;;
5368
5369beos*)
5370  lt_cv_deplibs_check_method=pass_all
5371  ;;
5372
5373bsdi[45]*)
5374  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5375  lt_cv_file_magic_cmd='/usr/bin/file -L'
5376  lt_cv_file_magic_test_file=/shlib/libc.so
5377  ;;
5378
5379cygwin*)
5380  # func_win32_libid is a shell function defined in ltmain.sh
5381  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5382  lt_cv_file_magic_cmd='func_win32_libid'
5383  ;;
5384
5385mingw* | pw32*)
5386  # Base MSYS/MinGW do not provide the 'file' command needed by
5387  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5388  # unless we find 'file', for example because we are cross-compiling.
5389  if ( file / ) >/dev/null 2>&1; then
5390    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5391    lt_cv_file_magic_cmd='func_win32_libid'
5392  else
5393    # Keep this pattern in sync with the one in func_win32_libid.
5394    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5395    lt_cv_file_magic_cmd='$OBJDUMP -f'
5396  fi
5397  ;;
5398
5399cegcc*)
5400  # use the weaker test based on 'objdump'. See mingw*.
5401  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5402  lt_cv_file_magic_cmd='$OBJDUMP -f'
5403  ;;
5404
5405darwin* | rhapsody*)
5406  lt_cv_deplibs_check_method=pass_all
5407  ;;
5408
5409freebsd* | dragonfly*)
5410  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5411    case $host_cpu in
5412    i*86 )
5413      # Not sure whether the presence of OpenBSD here was a mistake.
5414      # Let's accept both of them until this is cleared up.
5415      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5416      lt_cv_file_magic_cmd=/usr/bin/file
5417      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5418      ;;
5419    esac
5420  else
5421    lt_cv_deplibs_check_method=pass_all
5422  fi
5423  ;;
5424
5425haiku*)
5426  lt_cv_deplibs_check_method=pass_all
5427  ;;
5428
5429hpux10.20* | hpux11*)
5430  lt_cv_file_magic_cmd=/usr/bin/file
5431  case $host_cpu in
5432  ia64*)
5433    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5434    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5435    ;;
5436  hppa*64*)
5437    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]'
5438    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5439    ;;
5440  *)
5441    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5442    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5443    ;;
5444  esac
5445  ;;
5446
5447interix[3-9]*)
5448  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5449  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5450  ;;
5451
5452irix5* | irix6* | nonstopux*)
5453  case $LD in
5454  *-32|*"-32 ") libmagic=32-bit;;
5455  *-n32|*"-n32 ") libmagic=N32;;
5456  *-64|*"-64 ") libmagic=64-bit;;
5457  *) libmagic=never-match;;
5458  esac
5459  lt_cv_deplibs_check_method=pass_all
5460  ;;
5461
5462# This must be glibc/ELF.
5463linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5464  lt_cv_deplibs_check_method=pass_all
5465  ;;
5466
5467netbsd*)
5468  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5469    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5470  else
5471    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5472  fi
5473  ;;
5474
5475newos6*)
5476  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5477  lt_cv_file_magic_cmd=/usr/bin/file
5478  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5479  ;;
5480
5481*nto* | *qnx*)
5482  lt_cv_deplibs_check_method=pass_all
5483  ;;
5484
5485openbsd* | bitrig*)
5486  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5487    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5488  else
5489    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5490  fi
5491  ;;
5492
5493osf3* | osf4* | osf5*)
5494  lt_cv_deplibs_check_method=pass_all
5495  ;;
5496
5497rdos*)
5498  lt_cv_deplibs_check_method=pass_all
5499  ;;
5500
5501solaris*)
5502  lt_cv_deplibs_check_method=pass_all
5503  ;;
5504
5505sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5506  lt_cv_deplibs_check_method=pass_all
5507  ;;
5508
5509sysv4 | sysv4.3*)
5510  case $host_vendor in
5511  motorola)
5512    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]'
5513    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5514    ;;
5515  ncr)
5516    lt_cv_deplibs_check_method=pass_all
5517    ;;
5518  sequent)
5519    lt_cv_file_magic_cmd='/bin/file'
5520    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5521    ;;
5522  sni)
5523    lt_cv_file_magic_cmd='/bin/file'
5524    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5525    lt_cv_file_magic_test_file=/lib/libc.so
5526    ;;
5527  siemens)
5528    lt_cv_deplibs_check_method=pass_all
5529    ;;
5530  pc)
5531    lt_cv_deplibs_check_method=pass_all
5532    ;;
5533  esac
5534  ;;
5535
5536tpf*)
5537  lt_cv_deplibs_check_method=pass_all
5538  ;;
5539os2*)
5540  lt_cv_deplibs_check_method=pass_all
5541  ;;
5542esac
5543
5544fi
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5546$as_echo "$lt_cv_deplibs_check_method" >&6; }
5547
5548file_magic_glob=
5549want_nocaseglob=no
5550if test "$build" = "$host"; then
5551  case $host_os in
5552  mingw* | pw32*)
5553    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5554      want_nocaseglob=yes
5555    else
5556      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5557    fi
5558    ;;
5559  esac
5560fi
5561
5562file_magic_cmd=$lt_cv_file_magic_cmd
5563deplibs_check_method=$lt_cv_deplibs_check_method
5564test -z "$deplibs_check_method" && deplibs_check_method=unknown
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587if test -n "$ac_tool_prefix"; then
5588  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5589set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591$as_echo_n "checking for $ac_word... " >&6; }
5592if ${ac_cv_prog_DLLTOOL+:} false; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  if test -n "$DLLTOOL"; then
5596  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601  IFS=$as_save_IFS
5602  test -z "$as_dir" && as_dir=.
5603    for ac_exec_ext in '' $ac_executable_extensions; do
5604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607    break 2
5608  fi
5609done
5610  done
5611IFS=$as_save_IFS
5612
5613fi
5614fi
5615DLLTOOL=$ac_cv_prog_DLLTOOL
5616if test -n "$DLLTOOL"; then
5617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5618$as_echo "$DLLTOOL" >&6; }
5619else
5620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622fi
5623
5624
5625fi
5626if test -z "$ac_cv_prog_DLLTOOL"; then
5627  ac_ct_DLLTOOL=$DLLTOOL
5628  # Extract the first word of "dlltool", so it can be a program name with args.
5629set dummy dlltool; ac_word=$2
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631$as_echo_n "checking for $ac_word... " >&6; }
5632if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  if test -n "$ac_ct_DLLTOOL"; then
5636  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5637else
5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH
5640do
5641  IFS=$as_save_IFS
5642  test -z "$as_dir" && as_dir=.
5643    for ac_exec_ext in '' $ac_executable_extensions; do
5644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647    break 2
5648  fi
5649done
5650  done
5651IFS=$as_save_IFS
5652
5653fi
5654fi
5655ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5656if test -n "$ac_ct_DLLTOOL"; then
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5658$as_echo "$ac_ct_DLLTOOL" >&6; }
5659else
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }
5662fi
5663
5664  if test "x$ac_ct_DLLTOOL" = x; then
5665    DLLTOOL="false"
5666  else
5667    case $cross_compiling:$ac_tool_warned in
5668yes:)
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5671ac_tool_warned=yes ;;
5672esac
5673    DLLTOOL=$ac_ct_DLLTOOL
5674  fi
5675else
5676  DLLTOOL="$ac_cv_prog_DLLTOOL"
5677fi
5678
5679test -z "$DLLTOOL" && DLLTOOL=dlltool
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5691$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5692if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  lt_cv_sharedlib_from_linklib_cmd='unknown'
5696
5697case $host_os in
5698cygwin* | mingw* | pw32* | cegcc*)
5699  # two different shell functions defined in ltmain.sh;
5700  # decide which one to use based on capabilities of $DLLTOOL
5701  case `$DLLTOOL --help 2>&1` in
5702  *--identify-strict*)
5703    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5704    ;;
5705  *)
5706    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5707    ;;
5708  esac
5709  ;;
5710*)
5711  # fallback: assume linklib IS sharedlib
5712  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5713  ;;
5714esac
5715
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5718$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5719sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5720test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5721
5722
5723
5724
5725
5726
5727
5728
5729if test -n "$ac_tool_prefix"; then
5730  for ac_prog in ar
5731  do
5732    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735$as_echo_n "checking for $ac_word... " >&6; }
5736if ${ac_cv_prog_AR+:} false; then :
5737  $as_echo_n "(cached) " >&6
5738else
5739  if test -n "$AR"; then
5740  ac_cv_prog_AR="$AR" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745  IFS=$as_save_IFS
5746  test -z "$as_dir" && as_dir=.
5747    for ac_exec_ext in '' $ac_executable_extensions; do
5748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751    break 2
5752  fi
5753done
5754  done
5755IFS=$as_save_IFS
5756
5757fi
5758fi
5759AR=$ac_cv_prog_AR
5760if test -n "$AR"; then
5761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5762$as_echo "$AR" >&6; }
5763else
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765$as_echo "no" >&6; }
5766fi
5767
5768
5769    test -n "$AR" && break
5770  done
5771fi
5772if test -z "$AR"; then
5773  ac_ct_AR=$AR
5774  for ac_prog in ar
5775do
5776  # Extract the first word of "$ac_prog", so it can be a program name with args.
5777set dummy $ac_prog; ac_word=$2
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779$as_echo_n "checking for $ac_word... " >&6; }
5780if ${ac_cv_prog_ac_ct_AR+:} false; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783  if test -n "$ac_ct_AR"; then
5784  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789  IFS=$as_save_IFS
5790  test -z "$as_dir" && as_dir=.
5791    for ac_exec_ext in '' $ac_executable_extensions; do
5792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793    ac_cv_prog_ac_ct_AR="$ac_prog"
5794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795    break 2
5796  fi
5797done
5798  done
5799IFS=$as_save_IFS
5800
5801fi
5802fi
5803ac_ct_AR=$ac_cv_prog_ac_ct_AR
5804if test -n "$ac_ct_AR"; then
5805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5806$as_echo "$ac_ct_AR" >&6; }
5807else
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809$as_echo "no" >&6; }
5810fi
5811
5812
5813  test -n "$ac_ct_AR" && break
5814done
5815
5816  if test "x$ac_ct_AR" = x; then
5817    AR="false"
5818  else
5819    case $cross_compiling:$ac_tool_warned in
5820yes:)
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5823ac_tool_warned=yes ;;
5824esac
5825    AR=$ac_ct_AR
5826  fi
5827fi
5828
5829: ${AR=ar}
5830: ${AR_FLAGS=cru}
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5843$as_echo_n "checking for archiver @FILE support... " >&6; }
5844if ${lt_cv_ar_at_file+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  lt_cv_ar_at_file=no
5848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h.  */
5850
5851int
5852main ()
5853{
5854
5855  ;
5856  return 0;
5857}
5858_ACEOF
5859if ac_fn_c_try_compile "$LINENO"; then :
5860  echo conftest.$ac_objext > conftest.lst
5861      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5862      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5863  (eval $lt_ar_try) 2>&5
5864  ac_status=$?
5865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866  test $ac_status = 0; }
5867      if test 0 -eq "$ac_status"; then
5868	# Ensure the archiver fails upon bogus file names.
5869	rm -f conftest.$ac_objext libconftest.a
5870	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5871  (eval $lt_ar_try) 2>&5
5872  ac_status=$?
5873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874  test $ac_status = 0; }
5875	if test 0 -ne "$ac_status"; then
5876          lt_cv_ar_at_file=@
5877        fi
5878      fi
5879      rm -f conftest.* libconftest.a
5880
5881fi
5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883
5884fi
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5886$as_echo "$lt_cv_ar_at_file" >&6; }
5887
5888if test no = "$lt_cv_ar_at_file"; then
5889  archiver_list_spec=
5890else
5891  archiver_list_spec=$lt_cv_ar_at_file
5892fi
5893
5894
5895
5896
5897
5898
5899
5900if test -n "$ac_tool_prefix"; then
5901  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5902set dummy ${ac_tool_prefix}strip; ac_word=$2
5903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904$as_echo_n "checking for $ac_word... " >&6; }
5905if ${ac_cv_prog_STRIP+:} false; then :
5906  $as_echo_n "(cached) " >&6
5907else
5908  if test -n "$STRIP"; then
5909  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914  IFS=$as_save_IFS
5915  test -z "$as_dir" && as_dir=.
5916    for ac_exec_ext in '' $ac_executable_extensions; do
5917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920    break 2
5921  fi
5922done
5923  done
5924IFS=$as_save_IFS
5925
5926fi
5927fi
5928STRIP=$ac_cv_prog_STRIP
5929if test -n "$STRIP"; then
5930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5931$as_echo "$STRIP" >&6; }
5932else
5933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934$as_echo "no" >&6; }
5935fi
5936
5937
5938fi
5939if test -z "$ac_cv_prog_STRIP"; then
5940  ac_ct_STRIP=$STRIP
5941  # Extract the first word of "strip", so it can be a program name with args.
5942set dummy strip; ac_word=$2
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944$as_echo_n "checking for $ac_word... " >&6; }
5945if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5946  $as_echo_n "(cached) " >&6
5947else
5948  if test -n "$ac_ct_STRIP"; then
5949  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5950else
5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954  IFS=$as_save_IFS
5955  test -z "$as_dir" && as_dir=.
5956    for ac_exec_ext in '' $ac_executable_extensions; do
5957  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958    ac_cv_prog_ac_ct_STRIP="strip"
5959    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960    break 2
5961  fi
5962done
5963  done
5964IFS=$as_save_IFS
5965
5966fi
5967fi
5968ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5969if test -n "$ac_ct_STRIP"; then
5970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5971$as_echo "$ac_ct_STRIP" >&6; }
5972else
5973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974$as_echo "no" >&6; }
5975fi
5976
5977  if test "x$ac_ct_STRIP" = x; then
5978    STRIP=":"
5979  else
5980    case $cross_compiling:$ac_tool_warned in
5981yes:)
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984ac_tool_warned=yes ;;
5985esac
5986    STRIP=$ac_ct_STRIP
5987  fi
5988else
5989  STRIP="$ac_cv_prog_STRIP"
5990fi
5991
5992test -z "$STRIP" && STRIP=:
5993
5994
5995
5996
5997
5998
5999if test -n "$ac_tool_prefix"; then
6000  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6001set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003$as_echo_n "checking for $ac_word... " >&6; }
6004if ${ac_cv_prog_RANLIB+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  if test -n "$RANLIB"; then
6008  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013  IFS=$as_save_IFS
6014  test -z "$as_dir" && as_dir=.
6015    for ac_exec_ext in '' $ac_executable_extensions; do
6016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019    break 2
6020  fi
6021done
6022  done
6023IFS=$as_save_IFS
6024
6025fi
6026fi
6027RANLIB=$ac_cv_prog_RANLIB
6028if test -n "$RANLIB"; then
6029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6030$as_echo "$RANLIB" >&6; }
6031else
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033$as_echo "no" >&6; }
6034fi
6035
6036
6037fi
6038if test -z "$ac_cv_prog_RANLIB"; then
6039  ac_ct_RANLIB=$RANLIB
6040  # Extract the first word of "ranlib", so it can be a program name with args.
6041set dummy ranlib; ac_word=$2
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043$as_echo_n "checking for $ac_word... " >&6; }
6044if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6045  $as_echo_n "(cached) " >&6
6046else
6047  if test -n "$ac_ct_RANLIB"; then
6048  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053  IFS=$as_save_IFS
6054  test -z "$as_dir" && as_dir=.
6055    for ac_exec_ext in '' $ac_executable_extensions; do
6056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057    ac_cv_prog_ac_ct_RANLIB="ranlib"
6058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059    break 2
6060  fi
6061done
6062  done
6063IFS=$as_save_IFS
6064
6065fi
6066fi
6067ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6068if test -n "$ac_ct_RANLIB"; then
6069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6070$as_echo "$ac_ct_RANLIB" >&6; }
6071else
6072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073$as_echo "no" >&6; }
6074fi
6075
6076  if test "x$ac_ct_RANLIB" = x; then
6077    RANLIB=":"
6078  else
6079    case $cross_compiling:$ac_tool_warned in
6080yes:)
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083ac_tool_warned=yes ;;
6084esac
6085    RANLIB=$ac_ct_RANLIB
6086  fi
6087else
6088  RANLIB="$ac_cv_prog_RANLIB"
6089fi
6090
6091test -z "$RANLIB" && RANLIB=:
6092
6093
6094
6095
6096
6097
6098# Determine commands to create old-style static archives.
6099old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6100old_postinstall_cmds='chmod 644 $oldlib'
6101old_postuninstall_cmds=
6102
6103if test -n "$RANLIB"; then
6104  case $host_os in
6105  bitrig* | openbsd*)
6106    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6107    ;;
6108  *)
6109    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6110    ;;
6111  esac
6112  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6113fi
6114
6115case $host_os in
6116  darwin*)
6117    lock_old_archive_extraction=yes ;;
6118  *)
6119    lock_old_archive_extraction=no ;;
6120esac
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160# If no C compiler was specified, use CC.
6161LTCC=${LTCC-"$CC"}
6162
6163# If no C compiler flags were specified, use CFLAGS.
6164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6165
6166# Allow CC to be a program name with arguments.
6167compiler=$CC
6168
6169
6170# Check for command to grab the raw symbol name followed by C symbol from nm.
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6172$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6173if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6174  $as_echo_n "(cached) " >&6
6175else
6176
6177# These are sane defaults that work on at least a few old systems.
6178# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6179
6180# Character class describing NM global symbol codes.
6181symcode='[BCDEGRST]'
6182
6183# Regexp to match symbols that can be accessed directly from C.
6184sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6185
6186# Define system-specific variables.
6187case $host_os in
6188aix*)
6189  symcode='[BCDT]'
6190  ;;
6191cygwin* | mingw* | pw32* | cegcc*)
6192  symcode='[ABCDGISTW]'
6193  ;;
6194hpux*)
6195  if test ia64 = "$host_cpu"; then
6196    symcode='[ABCDEGRST]'
6197  fi
6198  ;;
6199irix* | nonstopux*)
6200  symcode='[BCDEGRST]'
6201  ;;
6202osf*)
6203  symcode='[BCDEGQRST]'
6204  ;;
6205solaris*)
6206  symcode='[BDRT]'
6207  ;;
6208sco3.2v5*)
6209  symcode='[DT]'
6210  ;;
6211sysv4.2uw2*)
6212  symcode='[DT]'
6213  ;;
6214sysv5* | sco5v6* | unixware* | OpenUNIX*)
6215  symcode='[ABDT]'
6216  ;;
6217sysv4)
6218  symcode='[DFNSTU]'
6219  ;;
6220esac
6221
6222# If we're using GNU nm, then use its standard symbol codes.
6223case `$NM -V 2>&1` in
6224*GNU* | *'with BFD'*)
6225  symcode='[ABCDGIRSTW]' ;;
6226esac
6227
6228if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6229  # Gets list of data symbols to import.
6230  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6231  # Adjust the below global symbol transforms to fixup imported variables.
6232  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6233  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6234  lt_c_name_lib_hook="\
6235  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6236  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6237else
6238  # Disable hooks by default.
6239  lt_cv_sys_global_symbol_to_import=
6240  lt_cdecl_hook=
6241  lt_c_name_hook=
6242  lt_c_name_lib_hook=
6243fi
6244
6245# Transform an extracted symbol line into a proper C declaration.
6246# Some systems (esp. on ia64) link data and code symbols differently,
6247# so use this general approach.
6248lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6249$lt_cdecl_hook\
6250" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6251" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6252
6253# Transform an extracted symbol line into symbol name and symbol address
6254lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6255$lt_c_name_hook\
6256" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6257" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6258
6259# Transform an extracted symbol line into symbol name with lib prefix and
6260# symbol address.
6261lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6262$lt_c_name_lib_hook\
6263" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6264" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6265" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6266
6267# Handle CRLF in mingw tool chain
6268opt_cr=
6269case $build_os in
6270mingw*)
6271  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6272  ;;
6273esac
6274
6275# Try without a prefix underscore, then with it.
6276for ac_symprfx in "" "_"; do
6277
6278  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6279  symxfrm="\\1 $ac_symprfx\\2 \\2"
6280
6281  # Write the raw and C identifiers.
6282  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6283    # Fake it for dumpbin and say T for any non-static function,
6284    # D for any global variable and I for any imported variable.
6285    # Also find C++ and __fastcall symbols from MSVC++,
6286    # which start with @ or ?.
6287    lt_cv_sys_global_symbol_pipe="$AWK '"\
6288"     {last_section=section; section=\$ 3};"\
6289"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6290"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6291"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6292"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6293"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6294"     \$ 0!~/External *\|/{next};"\
6295"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6296"     {if(hide[section]) next};"\
6297"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6298"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6299"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6300"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6301"     ' prfx=^$ac_symprfx"
6302  else
6303    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6304  fi
6305  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6306
6307  # Check to see that the pipe works correctly.
6308  pipe_works=no
6309
6310  rm -f conftest*
6311  cat > conftest.$ac_ext <<_LT_EOF
6312#ifdef __cplusplus
6313extern "C" {
6314#endif
6315char nm_test_var;
6316void nm_test_func(void);
6317void nm_test_func(void){}
6318#ifdef __cplusplus
6319}
6320#endif
6321int main(){nm_test_var='a';nm_test_func();return(0);}
6322_LT_EOF
6323
6324  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6325  (eval $ac_compile) 2>&5
6326  ac_status=$?
6327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328  test $ac_status = 0; }; then
6329    # Now try to grab the symbols.
6330    nlist=conftest.nm
6331    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6332  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6333  ac_status=$?
6334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335  test $ac_status = 0; } && test -s "$nlist"; then
6336      # Try sorting and uniquifying the output.
6337      if sort "$nlist" | uniq > "$nlist"T; then
6338	mv -f "$nlist"T "$nlist"
6339      else
6340	rm -f "$nlist"T
6341      fi
6342
6343      # Make sure that we snagged all the symbols we need.
6344      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6345	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6346	  cat <<_LT_EOF > conftest.$ac_ext
6347/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6348#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6349/* DATA imports from DLLs on WIN32 can't be const, because runtime
6350   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6351# define LT_DLSYM_CONST
6352#elif defined __osf__
6353/* This system does not cope well with relocations in const data.  */
6354# define LT_DLSYM_CONST
6355#else
6356# define LT_DLSYM_CONST const
6357#endif
6358
6359#ifdef __cplusplus
6360extern "C" {
6361#endif
6362
6363_LT_EOF
6364	  # Now generate the symbol file.
6365	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6366
6367	  cat <<_LT_EOF >> conftest.$ac_ext
6368
6369/* The mapping between symbol names and symbols.  */
6370LT_DLSYM_CONST struct {
6371  const char *name;
6372  void       *address;
6373}
6374lt__PROGRAM__LTX_preloaded_symbols[] =
6375{
6376  { "@PROGRAM@", (void *) 0 },
6377_LT_EOF
6378	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6379	  cat <<\_LT_EOF >> conftest.$ac_ext
6380  {0, (void *) 0}
6381};
6382
6383/* This works around a problem in FreeBSD linker */
6384#ifdef FREEBSD_WORKAROUND
6385static const void *lt_preloaded_setup() {
6386  return lt__PROGRAM__LTX_preloaded_symbols;
6387}
6388#endif
6389
6390#ifdef __cplusplus
6391}
6392#endif
6393_LT_EOF
6394	  # Now try linking the two files.
6395	  mv conftest.$ac_objext conftstm.$ac_objext
6396	  lt_globsym_save_LIBS=$LIBS
6397	  lt_globsym_save_CFLAGS=$CFLAGS
6398	  LIBS=conftstm.$ac_objext
6399	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6400	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6401  (eval $ac_link) 2>&5
6402  ac_status=$?
6403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6405	    pipe_works=yes
6406	  fi
6407	  LIBS=$lt_globsym_save_LIBS
6408	  CFLAGS=$lt_globsym_save_CFLAGS
6409	else
6410	  echo "cannot find nm_test_func in $nlist" >&5
6411	fi
6412      else
6413	echo "cannot find nm_test_var in $nlist" >&5
6414      fi
6415    else
6416      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6417    fi
6418  else
6419    echo "$progname: failed program was:" >&5
6420    cat conftest.$ac_ext >&5
6421  fi
6422  rm -rf conftest* conftst*
6423
6424  # Do not use the global_symbol_pipe unless it works.
6425  if test yes = "$pipe_works"; then
6426    break
6427  else
6428    lt_cv_sys_global_symbol_pipe=
6429  fi
6430done
6431
6432fi
6433
6434if test -z "$lt_cv_sys_global_symbol_pipe"; then
6435  lt_cv_sys_global_symbol_to_cdecl=
6436fi
6437if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6439$as_echo "failed" >&6; }
6440else
6441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6442$as_echo "ok" >&6; }
6443fi
6444
6445# Response file support.
6446if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6447  nm_file_list_spec='@'
6448elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6449  nm_file_list_spec='@'
6450fi
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6489$as_echo_n "checking for sysroot... " >&6; }
6490
6491# Check whether --with-sysroot was given.
6492if test "${with_sysroot+set}" = set; then :
6493  withval=$with_sysroot;
6494else
6495  with_sysroot=no
6496fi
6497
6498
6499lt_sysroot=
6500case $with_sysroot in #(
6501 yes)
6502   if test yes = "$GCC"; then
6503     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6504   fi
6505   ;; #(
6506 /*)
6507   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6508   ;; #(
6509 no|'')
6510   ;; #(
6511 *)
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6513$as_echo "$with_sysroot" >&6; }
6514   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6515   ;;
6516esac
6517
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6519$as_echo "${lt_sysroot:-no}" >&6; }
6520
6521
6522
6523
6524
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6526$as_echo_n "checking for a working dd... " >&6; }
6527if ${ac_cv_path_lt_DD+:} false; then :
6528  $as_echo_n "(cached) " >&6
6529else
6530  printf 0123456789abcdef0123456789abcdef >conftest.i
6531cat conftest.i conftest.i >conftest2.i
6532: ${lt_DD:=$DD}
6533if test -z "$lt_DD"; then
6534  ac_path_lt_DD_found=false
6535  # Loop through the user's path and test for each of PROGNAME-LIST
6536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539  IFS=$as_save_IFS
6540  test -z "$as_dir" && as_dir=.
6541    for ac_prog in dd; do
6542    for ac_exec_ext in '' $ac_executable_extensions; do
6543      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6544      as_fn_executable_p "$ac_path_lt_DD" || continue
6545if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6546  cmp -s conftest.i conftest.out \
6547  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6548fi
6549      $ac_path_lt_DD_found && break 3
6550    done
6551  done
6552  done
6553IFS=$as_save_IFS
6554  if test -z "$ac_cv_path_lt_DD"; then
6555    :
6556  fi
6557else
6558  ac_cv_path_lt_DD=$lt_DD
6559fi
6560
6561rm -f conftest.i conftest2.i conftest.out
6562fi
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6564$as_echo "$ac_cv_path_lt_DD" >&6; }
6565
6566
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6568$as_echo_n "checking how to truncate binary pipes... " >&6; }
6569if ${lt_cv_truncate_bin+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  printf 0123456789abcdef0123456789abcdef >conftest.i
6573cat conftest.i conftest.i >conftest2.i
6574lt_cv_truncate_bin=
6575if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6576  cmp -s conftest.i conftest.out \
6577  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6578fi
6579rm -f conftest.i conftest2.i conftest.out
6580test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6581fi
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6583$as_echo "$lt_cv_truncate_bin" >&6; }
6584
6585
6586
6587
6588
6589
6590
6591# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6592func_cc_basename ()
6593{
6594    for cc_temp in $*""; do
6595      case $cc_temp in
6596        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6597        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6598        \-*) ;;
6599        *) break;;
6600      esac
6601    done
6602    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6603}
6604
6605# Check whether --enable-libtool-lock was given.
6606if test "${enable_libtool_lock+set}" = set; then :
6607  enableval=$enable_libtool_lock;
6608fi
6609
6610test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6611
6612# Some flags need to be propagated to the compiler or linker for good
6613# libtool support.
6614case $host in
6615ia64-*-hpux*)
6616  # Find out what ABI is being produced by ac_compile, and set mode
6617  # options accordingly.
6618  echo 'int i;' > conftest.$ac_ext
6619  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6620  (eval $ac_compile) 2>&5
6621  ac_status=$?
6622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6623  test $ac_status = 0; }; then
6624    case `/usr/bin/file conftest.$ac_objext` in
6625      *ELF-32*)
6626	HPUX_IA64_MODE=32
6627	;;
6628      *ELF-64*)
6629	HPUX_IA64_MODE=64
6630	;;
6631    esac
6632  fi
6633  rm -rf conftest*
6634  ;;
6635*-*-irix6*)
6636  # Find out what ABI is being produced by ac_compile, and set linker
6637  # options accordingly.
6638  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6639  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6640  (eval $ac_compile) 2>&5
6641  ac_status=$?
6642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643  test $ac_status = 0; }; then
6644    if test yes = "$lt_cv_prog_gnu_ld"; then
6645      case `/usr/bin/file conftest.$ac_objext` in
6646	*32-bit*)
6647	  LD="${LD-ld} -melf32bsmip"
6648	  ;;
6649	*N32*)
6650	  LD="${LD-ld} -melf32bmipn32"
6651	  ;;
6652	*64-bit*)
6653	  LD="${LD-ld} -melf64bmip"
6654	;;
6655      esac
6656    else
6657      case `/usr/bin/file conftest.$ac_objext` in
6658	*32-bit*)
6659	  LD="${LD-ld} -32"
6660	  ;;
6661	*N32*)
6662	  LD="${LD-ld} -n32"
6663	  ;;
6664	*64-bit*)
6665	  LD="${LD-ld} -64"
6666	  ;;
6667      esac
6668    fi
6669  fi
6670  rm -rf conftest*
6671  ;;
6672
6673mips64*-*linux*)
6674  # Find out what ABI is being produced by ac_compile, and set linker
6675  # options accordingly.
6676  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6677  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678  (eval $ac_compile) 2>&5
6679  ac_status=$?
6680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681  test $ac_status = 0; }; then
6682    emul=elf
6683    case `/usr/bin/file conftest.$ac_objext` in
6684      *32-bit*)
6685	emul="${emul}32"
6686	;;
6687      *64-bit*)
6688	emul="${emul}64"
6689	;;
6690    esac
6691    case `/usr/bin/file conftest.$ac_objext` in
6692      *MSB*)
6693	emul="${emul}btsmip"
6694	;;
6695      *LSB*)
6696	emul="${emul}ltsmip"
6697	;;
6698    esac
6699    case `/usr/bin/file conftest.$ac_objext` in
6700      *N32*)
6701	emul="${emul}n32"
6702	;;
6703    esac
6704    LD="${LD-ld} -m $emul"
6705  fi
6706  rm -rf conftest*
6707  ;;
6708
6709x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6710s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6711  # Find out what ABI is being produced by ac_compile, and set linker
6712  # options accordingly.  Note that the listed cases only cover the
6713  # situations where additional linker options are needed (such as when
6714  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6715  # vice versa); the common cases where no linker options are needed do
6716  # not appear in the list.
6717  echo 'int i;' > conftest.$ac_ext
6718  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719  (eval $ac_compile) 2>&5
6720  ac_status=$?
6721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722  test $ac_status = 0; }; then
6723    case `/usr/bin/file conftest.o` in
6724      *32-bit*)
6725	case $host in
6726	  x86_64-*kfreebsd*-gnu)
6727	    LD="${LD-ld} -m elf_i386_fbsd"
6728	    ;;
6729	  x86_64-*linux*)
6730	    case `/usr/bin/file conftest.o` in
6731	      *x86-64*)
6732		LD="${LD-ld} -m elf32_x86_64"
6733		;;
6734	      *)
6735		LD="${LD-ld} -m elf_i386"
6736		;;
6737	    esac
6738	    ;;
6739	  powerpc64le-*linux*)
6740	    LD="${LD-ld} -m elf32lppclinux"
6741	    ;;
6742	  powerpc64-*linux*)
6743	    LD="${LD-ld} -m elf32ppclinux"
6744	    ;;
6745	  s390x-*linux*)
6746	    LD="${LD-ld} -m elf_s390"
6747	    ;;
6748	  sparc64-*linux*)
6749	    LD="${LD-ld} -m elf32_sparc"
6750	    ;;
6751	esac
6752	;;
6753      *64-bit*)
6754	case $host in
6755	  x86_64-*kfreebsd*-gnu)
6756	    LD="${LD-ld} -m elf_x86_64_fbsd"
6757	    ;;
6758	  x86_64-*linux*)
6759	    LD="${LD-ld} -m elf_x86_64"
6760	    ;;
6761	  powerpcle-*linux*)
6762	    LD="${LD-ld} -m elf64lppc"
6763	    ;;
6764	  powerpc-*linux*)
6765	    LD="${LD-ld} -m elf64ppc"
6766	    ;;
6767	  s390*-*linux*|s390*-*tpf*)
6768	    LD="${LD-ld} -m elf64_s390"
6769	    ;;
6770	  sparc*-*linux*)
6771	    LD="${LD-ld} -m elf64_sparc"
6772	    ;;
6773	esac
6774	;;
6775    esac
6776  fi
6777  rm -rf conftest*
6778  ;;
6779
6780*-*-sco3.2v5*)
6781  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6782  SAVE_CFLAGS=$CFLAGS
6783  CFLAGS="$CFLAGS -belf"
6784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6785$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6786if ${lt_cv_cc_needs_belf+:} false; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789  ac_ext=c
6790ac_cpp='$CPP $CPPFLAGS'
6791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793ac_compiler_gnu=$ac_cv_c_compiler_gnu
6794
6795     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796/* end confdefs.h.  */
6797
6798int
6799main ()
6800{
6801
6802  ;
6803  return 0;
6804}
6805_ACEOF
6806if ac_fn_c_try_link "$LINENO"; then :
6807  lt_cv_cc_needs_belf=yes
6808else
6809  lt_cv_cc_needs_belf=no
6810fi
6811rm -f core conftest.err conftest.$ac_objext \
6812    conftest$ac_exeext conftest.$ac_ext
6813     ac_ext=c
6814ac_cpp='$CPP $CPPFLAGS'
6815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817ac_compiler_gnu=$ac_cv_c_compiler_gnu
6818
6819fi
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6821$as_echo "$lt_cv_cc_needs_belf" >&6; }
6822  if test yes != "$lt_cv_cc_needs_belf"; then
6823    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6824    CFLAGS=$SAVE_CFLAGS
6825  fi
6826  ;;
6827*-*solaris*)
6828  # Find out what ABI is being produced by ac_compile, and set linker
6829  # options accordingly.
6830  echo 'int i;' > conftest.$ac_ext
6831  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832  (eval $ac_compile) 2>&5
6833  ac_status=$?
6834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835  test $ac_status = 0; }; then
6836    case `/usr/bin/file conftest.o` in
6837    *64-bit*)
6838      case $lt_cv_prog_gnu_ld in
6839      yes*)
6840        case $host in
6841        i?86-*-solaris*|x86_64-*-solaris*)
6842          LD="${LD-ld} -m elf_x86_64"
6843          ;;
6844        sparc*-*-solaris*)
6845          LD="${LD-ld} -m elf64_sparc"
6846          ;;
6847        esac
6848        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6849        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6850          LD=${LD-ld}_sol2
6851        fi
6852        ;;
6853      *)
6854	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6855	  LD="${LD-ld} -64"
6856	fi
6857	;;
6858      esac
6859      ;;
6860    esac
6861  fi
6862  rm -rf conftest*
6863  ;;
6864esac
6865
6866need_locks=$enable_libtool_lock
6867
6868if test -n "$ac_tool_prefix"; then
6869  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6870set dummy ${ac_tool_prefix}mt; ac_word=$2
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872$as_echo_n "checking for $ac_word... " >&6; }
6873if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6874  $as_echo_n "(cached) " >&6
6875else
6876  if test -n "$MANIFEST_TOOL"; then
6877  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6878else
6879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880for as_dir in $PATH
6881do
6882  IFS=$as_save_IFS
6883  test -z "$as_dir" && as_dir=.
6884    for ac_exec_ext in '' $ac_executable_extensions; do
6885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888    break 2
6889  fi
6890done
6891  done
6892IFS=$as_save_IFS
6893
6894fi
6895fi
6896MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6897if test -n "$MANIFEST_TOOL"; then
6898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6899$as_echo "$MANIFEST_TOOL" >&6; }
6900else
6901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902$as_echo "no" >&6; }
6903fi
6904
6905
6906fi
6907if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6908  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6909  # Extract the first word of "mt", so it can be a program name with args.
6910set dummy mt; ac_word=$2
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912$as_echo_n "checking for $ac_word... " >&6; }
6913if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6914  $as_echo_n "(cached) " >&6
6915else
6916  if test -n "$ac_ct_MANIFEST_TOOL"; then
6917  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6918else
6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922  IFS=$as_save_IFS
6923  test -z "$as_dir" && as_dir=.
6924    for ac_exec_ext in '' $ac_executable_extensions; do
6925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928    break 2
6929  fi
6930done
6931  done
6932IFS=$as_save_IFS
6933
6934fi
6935fi
6936ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6937if test -n "$ac_ct_MANIFEST_TOOL"; then
6938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6939$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6940else
6941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942$as_echo "no" >&6; }
6943fi
6944
6945  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6946    MANIFEST_TOOL=":"
6947  else
6948    case $cross_compiling:$ac_tool_warned in
6949yes:)
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952ac_tool_warned=yes ;;
6953esac
6954    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6955  fi
6956else
6957  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6958fi
6959
6960test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6962$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6963if ${lt_cv_path_mainfest_tool+:} false; then :
6964  $as_echo_n "(cached) " >&6
6965else
6966  lt_cv_path_mainfest_tool=no
6967  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6968  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6969  cat conftest.err >&5
6970  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6971    lt_cv_path_mainfest_tool=yes
6972  fi
6973  rm -f conftest*
6974fi
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6976$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6977if test yes != "$lt_cv_path_mainfest_tool"; then
6978  MANIFEST_TOOL=:
6979fi
6980
6981
6982
6983
6984
6985
6986  case $host_os in
6987    rhapsody* | darwin*)
6988    if test -n "$ac_tool_prefix"; then
6989  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6990set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992$as_echo_n "checking for $ac_word... " >&6; }
6993if ${ac_cv_prog_DSYMUTIL+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  if test -n "$DSYMUTIL"; then
6997  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002  IFS=$as_save_IFS
7003  test -z "$as_dir" && as_dir=.
7004    for ac_exec_ext in '' $ac_executable_extensions; do
7005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008    break 2
7009  fi
7010done
7011  done
7012IFS=$as_save_IFS
7013
7014fi
7015fi
7016DSYMUTIL=$ac_cv_prog_DSYMUTIL
7017if test -n "$DSYMUTIL"; then
7018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7019$as_echo "$DSYMUTIL" >&6; }
7020else
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022$as_echo "no" >&6; }
7023fi
7024
7025
7026fi
7027if test -z "$ac_cv_prog_DSYMUTIL"; then
7028  ac_ct_DSYMUTIL=$DSYMUTIL
7029  # Extract the first word of "dsymutil", so it can be a program name with args.
7030set dummy dsymutil; ac_word=$2
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032$as_echo_n "checking for $ac_word... " >&6; }
7033if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7034  $as_echo_n "(cached) " >&6
7035else
7036  if test -n "$ac_ct_DSYMUTIL"; then
7037  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042  IFS=$as_save_IFS
7043  test -z "$as_dir" && as_dir=.
7044    for ac_exec_ext in '' $ac_executable_extensions; do
7045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048    break 2
7049  fi
7050done
7051  done
7052IFS=$as_save_IFS
7053
7054fi
7055fi
7056ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7057if test -n "$ac_ct_DSYMUTIL"; then
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7059$as_echo "$ac_ct_DSYMUTIL" >&6; }
7060else
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062$as_echo "no" >&6; }
7063fi
7064
7065  if test "x$ac_ct_DSYMUTIL" = x; then
7066    DSYMUTIL=":"
7067  else
7068    case $cross_compiling:$ac_tool_warned in
7069yes:)
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072ac_tool_warned=yes ;;
7073esac
7074    DSYMUTIL=$ac_ct_DSYMUTIL
7075  fi
7076else
7077  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7078fi
7079
7080    if test -n "$ac_tool_prefix"; then
7081  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7082set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084$as_echo_n "checking for $ac_word... " >&6; }
7085if ${ac_cv_prog_NMEDIT+:} false; then :
7086  $as_echo_n "(cached) " >&6
7087else
7088  if test -n "$NMEDIT"; then
7089  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7090else
7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094  IFS=$as_save_IFS
7095  test -z "$as_dir" && as_dir=.
7096    for ac_exec_ext in '' $ac_executable_extensions; do
7097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100    break 2
7101  fi
7102done
7103  done
7104IFS=$as_save_IFS
7105
7106fi
7107fi
7108NMEDIT=$ac_cv_prog_NMEDIT
7109if test -n "$NMEDIT"; then
7110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7111$as_echo "$NMEDIT" >&6; }
7112else
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114$as_echo "no" >&6; }
7115fi
7116
7117
7118fi
7119if test -z "$ac_cv_prog_NMEDIT"; then
7120  ac_ct_NMEDIT=$NMEDIT
7121  # Extract the first word of "nmedit", so it can be a program name with args.
7122set dummy nmedit; ac_word=$2
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124$as_echo_n "checking for $ac_word... " >&6; }
7125if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7126  $as_echo_n "(cached) " >&6
7127else
7128  if test -n "$ac_ct_NMEDIT"; then
7129  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7130else
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134  IFS=$as_save_IFS
7135  test -z "$as_dir" && as_dir=.
7136    for ac_exec_ext in '' $ac_executable_extensions; do
7137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140    break 2
7141  fi
7142done
7143  done
7144IFS=$as_save_IFS
7145
7146fi
7147fi
7148ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7149if test -n "$ac_ct_NMEDIT"; then
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7151$as_echo "$ac_ct_NMEDIT" >&6; }
7152else
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154$as_echo "no" >&6; }
7155fi
7156
7157  if test "x$ac_ct_NMEDIT" = x; then
7158    NMEDIT=":"
7159  else
7160    case $cross_compiling:$ac_tool_warned in
7161yes:)
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164ac_tool_warned=yes ;;
7165esac
7166    NMEDIT=$ac_ct_NMEDIT
7167  fi
7168else
7169  NMEDIT="$ac_cv_prog_NMEDIT"
7170fi
7171
7172    if test -n "$ac_tool_prefix"; then
7173  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7174set dummy ${ac_tool_prefix}lipo; ac_word=$2
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176$as_echo_n "checking for $ac_word... " >&6; }
7177if ${ac_cv_prog_LIPO+:} false; then :
7178  $as_echo_n "(cached) " >&6
7179else
7180  if test -n "$LIPO"; then
7181  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186  IFS=$as_save_IFS
7187  test -z "$as_dir" && as_dir=.
7188    for ac_exec_ext in '' $ac_executable_extensions; do
7189  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192    break 2
7193  fi
7194done
7195  done
7196IFS=$as_save_IFS
7197
7198fi
7199fi
7200LIPO=$ac_cv_prog_LIPO
7201if test -n "$LIPO"; then
7202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7203$as_echo "$LIPO" >&6; }
7204else
7205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206$as_echo "no" >&6; }
7207fi
7208
7209
7210fi
7211if test -z "$ac_cv_prog_LIPO"; then
7212  ac_ct_LIPO=$LIPO
7213  # Extract the first word of "lipo", so it can be a program name with args.
7214set dummy lipo; ac_word=$2
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216$as_echo_n "checking for $ac_word... " >&6; }
7217if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7218  $as_echo_n "(cached) " >&6
7219else
7220  if test -n "$ac_ct_LIPO"; then
7221  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226  IFS=$as_save_IFS
7227  test -z "$as_dir" && as_dir=.
7228    for ac_exec_ext in '' $ac_executable_extensions; do
7229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230    ac_cv_prog_ac_ct_LIPO="lipo"
7231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232    break 2
7233  fi
7234done
7235  done
7236IFS=$as_save_IFS
7237
7238fi
7239fi
7240ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7241if test -n "$ac_ct_LIPO"; then
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7243$as_echo "$ac_ct_LIPO" >&6; }
7244else
7245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246$as_echo "no" >&6; }
7247fi
7248
7249  if test "x$ac_ct_LIPO" = x; then
7250    LIPO=":"
7251  else
7252    case $cross_compiling:$ac_tool_warned in
7253yes:)
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256ac_tool_warned=yes ;;
7257esac
7258    LIPO=$ac_ct_LIPO
7259  fi
7260else
7261  LIPO="$ac_cv_prog_LIPO"
7262fi
7263
7264    if test -n "$ac_tool_prefix"; then
7265  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7266set dummy ${ac_tool_prefix}otool; ac_word=$2
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268$as_echo_n "checking for $ac_word... " >&6; }
7269if ${ac_cv_prog_OTOOL+:} false; then :
7270  $as_echo_n "(cached) " >&6
7271else
7272  if test -n "$OTOOL"; then
7273  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278  IFS=$as_save_IFS
7279  test -z "$as_dir" && as_dir=.
7280    for ac_exec_ext in '' $ac_executable_extensions; do
7281  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284    break 2
7285  fi
7286done
7287  done
7288IFS=$as_save_IFS
7289
7290fi
7291fi
7292OTOOL=$ac_cv_prog_OTOOL
7293if test -n "$OTOOL"; then
7294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7295$as_echo "$OTOOL" >&6; }
7296else
7297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298$as_echo "no" >&6; }
7299fi
7300
7301
7302fi
7303if test -z "$ac_cv_prog_OTOOL"; then
7304  ac_ct_OTOOL=$OTOOL
7305  # Extract the first word of "otool", so it can be a program name with args.
7306set dummy otool; ac_word=$2
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308$as_echo_n "checking for $ac_word... " >&6; }
7309if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7310  $as_echo_n "(cached) " >&6
7311else
7312  if test -n "$ac_ct_OTOOL"; then
7313  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318  IFS=$as_save_IFS
7319  test -z "$as_dir" && as_dir=.
7320    for ac_exec_ext in '' $ac_executable_extensions; do
7321  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322    ac_cv_prog_ac_ct_OTOOL="otool"
7323    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324    break 2
7325  fi
7326done
7327  done
7328IFS=$as_save_IFS
7329
7330fi
7331fi
7332ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7333if test -n "$ac_ct_OTOOL"; then
7334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7335$as_echo "$ac_ct_OTOOL" >&6; }
7336else
7337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338$as_echo "no" >&6; }
7339fi
7340
7341  if test "x$ac_ct_OTOOL" = x; then
7342    OTOOL=":"
7343  else
7344    case $cross_compiling:$ac_tool_warned in
7345yes:)
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348ac_tool_warned=yes ;;
7349esac
7350    OTOOL=$ac_ct_OTOOL
7351  fi
7352else
7353  OTOOL="$ac_cv_prog_OTOOL"
7354fi
7355
7356    if test -n "$ac_tool_prefix"; then
7357  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7358set dummy ${ac_tool_prefix}otool64; ac_word=$2
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360$as_echo_n "checking for $ac_word... " >&6; }
7361if ${ac_cv_prog_OTOOL64+:} false; then :
7362  $as_echo_n "(cached) " >&6
7363else
7364  if test -n "$OTOOL64"; then
7365  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7366else
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370  IFS=$as_save_IFS
7371  test -z "$as_dir" && as_dir=.
7372    for ac_exec_ext in '' $ac_executable_extensions; do
7373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376    break 2
7377  fi
7378done
7379  done
7380IFS=$as_save_IFS
7381
7382fi
7383fi
7384OTOOL64=$ac_cv_prog_OTOOL64
7385if test -n "$OTOOL64"; then
7386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7387$as_echo "$OTOOL64" >&6; }
7388else
7389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390$as_echo "no" >&6; }
7391fi
7392
7393
7394fi
7395if test -z "$ac_cv_prog_OTOOL64"; then
7396  ac_ct_OTOOL64=$OTOOL64
7397  # Extract the first word of "otool64", so it can be a program name with args.
7398set dummy otool64; ac_word=$2
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400$as_echo_n "checking for $ac_word... " >&6; }
7401if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  if test -n "$ac_ct_OTOOL64"; then
7405  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7406else
7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410  IFS=$as_save_IFS
7411  test -z "$as_dir" && as_dir=.
7412    for ac_exec_ext in '' $ac_executable_extensions; do
7413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414    ac_cv_prog_ac_ct_OTOOL64="otool64"
7415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416    break 2
7417  fi
7418done
7419  done
7420IFS=$as_save_IFS
7421
7422fi
7423fi
7424ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7425if test -n "$ac_ct_OTOOL64"; then
7426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7427$as_echo "$ac_ct_OTOOL64" >&6; }
7428else
7429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430$as_echo "no" >&6; }
7431fi
7432
7433  if test "x$ac_ct_OTOOL64" = x; then
7434    OTOOL64=":"
7435  else
7436    case $cross_compiling:$ac_tool_warned in
7437yes:)
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440ac_tool_warned=yes ;;
7441esac
7442    OTOOL64=$ac_ct_OTOOL64
7443  fi
7444else
7445  OTOOL64="$ac_cv_prog_OTOOL64"
7446fi
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7475$as_echo_n "checking for -single_module linker flag... " >&6; }
7476if ${lt_cv_apple_cc_single_mod+:} false; then :
7477  $as_echo_n "(cached) " >&6
7478else
7479  lt_cv_apple_cc_single_mod=no
7480      if test -z "$LT_MULTI_MODULE"; then
7481	# By default we will add the -single_module flag. You can override
7482	# by either setting the environment variable LT_MULTI_MODULE
7483	# non-empty at configure time, or by adding -multi_module to the
7484	# link flags.
7485	rm -rf libconftest.dylib*
7486	echo "int foo(void){return 1;}" > conftest.c
7487	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7488-dynamiclib -Wl,-single_module conftest.c" >&5
7489	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7490	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7491        _lt_result=$?
7492	# If there is a non-empty error log, and "single_module"
7493	# appears in it, assume the flag caused a linker warning
7494        if test -s conftest.err && $GREP single_module conftest.err; then
7495	  cat conftest.err >&5
7496	# Otherwise, if the output was created with a 0 exit code from
7497	# the compiler, it worked.
7498	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7499	  lt_cv_apple_cc_single_mod=yes
7500	else
7501	  cat conftest.err >&5
7502	fi
7503	rm -rf libconftest.dylib*
7504	rm -f conftest.*
7505      fi
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7508$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7509
7510    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7511$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7512if ${lt_cv_ld_exported_symbols_list+:} false; then :
7513  $as_echo_n "(cached) " >&6
7514else
7515  lt_cv_ld_exported_symbols_list=no
7516      save_LDFLAGS=$LDFLAGS
7517      echo "_main" > conftest.sym
7518      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520/* end confdefs.h.  */
7521
7522int
7523main ()
7524{
7525
7526  ;
7527  return 0;
7528}
7529_ACEOF
7530if ac_fn_c_try_link "$LINENO"; then :
7531  lt_cv_ld_exported_symbols_list=yes
7532else
7533  lt_cv_ld_exported_symbols_list=no
7534fi
7535rm -f core conftest.err conftest.$ac_objext \
7536    conftest$ac_exeext conftest.$ac_ext
7537	LDFLAGS=$save_LDFLAGS
7538
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7541$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7542
7543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7544$as_echo_n "checking for -force_load linker flag... " >&6; }
7545if ${lt_cv_ld_force_load+:} false; then :
7546  $as_echo_n "(cached) " >&6
7547else
7548  lt_cv_ld_force_load=no
7549      cat > conftest.c << _LT_EOF
7550int forced_loaded() { return 2;}
7551_LT_EOF
7552      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7553      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7554      echo "$AR cru libconftest.a conftest.o" >&5
7555      $AR cru libconftest.a conftest.o 2>&5
7556      echo "$RANLIB libconftest.a" >&5
7557      $RANLIB libconftest.a 2>&5
7558      cat > conftest.c << _LT_EOF
7559int main() { return 0;}
7560_LT_EOF
7561      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7562      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7563      _lt_result=$?
7564      if test -s conftest.err && $GREP force_load conftest.err; then
7565	cat conftest.err >&5
7566      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7567	lt_cv_ld_force_load=yes
7568      else
7569	cat conftest.err >&5
7570      fi
7571        rm -f conftest.err libconftest.a conftest conftest.c
7572        rm -rf conftest.dSYM
7573
7574fi
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7576$as_echo "$lt_cv_ld_force_load" >&6; }
7577    case $host_os in
7578    rhapsody* | darwin1.[012])
7579      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7580    darwin1.*)
7581      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7582    darwin*) # darwin 5.x on
7583      # if running on 10.5 or later, the deployment target defaults
7584      # to the OS version, if on x86, and 10.4, the deployment
7585      # target defaults to 10.4. Don't you love it?
7586      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7587	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7588	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7589	10.[012][,.]*)
7590	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7591	10.*)
7592	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7593      esac
7594    ;;
7595  esac
7596    if test yes = "$lt_cv_apple_cc_single_mod"; then
7597      _lt_dar_single_mod='$single_module'
7598    fi
7599    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7600      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7601    else
7602      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7603    fi
7604    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7605      _lt_dsymutil='~$DSYMUTIL $lib || :'
7606    else
7607      _lt_dsymutil=
7608    fi
7609    ;;
7610  esac
7611
7612# func_munge_path_list VARIABLE PATH
7613# -----------------------------------
7614# VARIABLE is name of variable containing _space_ separated list of
7615# directories to be munged by the contents of PATH, which is string
7616# having a format:
7617# "DIR[:DIR]:"
7618#       string "DIR[ DIR]" will be prepended to VARIABLE
7619# ":DIR[:DIR]"
7620#       string "DIR[ DIR]" will be appended to VARIABLE
7621# "DIRP[:DIRP]::[DIRA:]DIRA"
7622#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7623#       "DIRA[ DIRA]" will be appended to VARIABLE
7624# "DIR[:DIR]"
7625#       VARIABLE will be replaced by "DIR[ DIR]"
7626func_munge_path_list ()
7627{
7628    case x$2 in
7629    x)
7630        ;;
7631    *:)
7632        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7633        ;;
7634    x:*)
7635        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7636        ;;
7637    *::*)
7638        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7639        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7640        ;;
7641    *)
7642        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7643        ;;
7644    esac
7645}
7646
7647ac_ext=c
7648ac_cpp='$CPP $CPPFLAGS'
7649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7653$as_echo_n "checking how to run the C preprocessor... " >&6; }
7654# On Suns, sometimes $CPP names a directory.
7655if test -n "$CPP" && test -d "$CPP"; then
7656  CPP=
7657fi
7658if test -z "$CPP"; then
7659  if ${ac_cv_prog_CPP+:} false; then :
7660  $as_echo_n "(cached) " >&6
7661else
7662      # Double quotes because CPP needs to be expanded
7663    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7664    do
7665      ac_preproc_ok=false
7666for ac_c_preproc_warn_flag in '' yes
7667do
7668  # Use a header file that comes with gcc, so configuring glibc
7669  # with a fresh cross-compiler works.
7670  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7671  # <limits.h> exists even on freestanding compilers.
7672  # On the NeXT, cc -E runs the code through the compiler's parser,
7673  # not just through cpp. "Syntax error" is here to catch this case.
7674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676#ifdef __STDC__
7677# include <limits.h>
7678#else
7679# include <assert.h>
7680#endif
7681		     Syntax error
7682_ACEOF
7683if ac_fn_c_try_cpp "$LINENO"; then :
7684
7685else
7686  # Broken: fails on valid input.
7687continue
7688fi
7689rm -f conftest.err conftest.i conftest.$ac_ext
7690
7691  # OK, works on sane cases.  Now check whether nonexistent headers
7692  # can be detected and how.
7693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694/* end confdefs.h.  */
7695#include <ac_nonexistent.h>
7696_ACEOF
7697if ac_fn_c_try_cpp "$LINENO"; then :
7698  # Broken: success on invalid input.
7699continue
7700else
7701  # Passes both tests.
7702ac_preproc_ok=:
7703break
7704fi
7705rm -f conftest.err conftest.i conftest.$ac_ext
7706
7707done
7708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7709rm -f conftest.i conftest.err conftest.$ac_ext
7710if $ac_preproc_ok; then :
7711  break
7712fi
7713
7714    done
7715    ac_cv_prog_CPP=$CPP
7716
7717fi
7718  CPP=$ac_cv_prog_CPP
7719else
7720  ac_cv_prog_CPP=$CPP
7721fi
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7723$as_echo "$CPP" >&6; }
7724ac_preproc_ok=false
7725for ac_c_preproc_warn_flag in '' yes
7726do
7727  # Use a header file that comes with gcc, so configuring glibc
7728  # with a fresh cross-compiler works.
7729  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7730  # <limits.h> exists even on freestanding compilers.
7731  # On the NeXT, cc -E runs the code through the compiler's parser,
7732  # not just through cpp. "Syntax error" is here to catch this case.
7733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734/* end confdefs.h.  */
7735#ifdef __STDC__
7736# include <limits.h>
7737#else
7738# include <assert.h>
7739#endif
7740		     Syntax error
7741_ACEOF
7742if ac_fn_c_try_cpp "$LINENO"; then :
7743
7744else
7745  # Broken: fails on valid input.
7746continue
7747fi
7748rm -f conftest.err conftest.i conftest.$ac_ext
7749
7750  # OK, works on sane cases.  Now check whether nonexistent headers
7751  # can be detected and how.
7752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754#include <ac_nonexistent.h>
7755_ACEOF
7756if ac_fn_c_try_cpp "$LINENO"; then :
7757  # Broken: success on invalid input.
7758continue
7759else
7760  # Passes both tests.
7761ac_preproc_ok=:
7762break
7763fi
7764rm -f conftest.err conftest.i conftest.$ac_ext
7765
7766done
7767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7768rm -f conftest.i conftest.err conftest.$ac_ext
7769if $ac_preproc_ok; then :
7770
7771else
7772  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7774as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7775See \`config.log' for more details" "$LINENO" 5; }
7776fi
7777
7778ac_ext=c
7779ac_cpp='$CPP $CPPFLAGS'
7780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783
7784
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7786$as_echo_n "checking for ANSI C header files... " >&6; }
7787if ${ac_cv_header_stdc+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h.  */
7792#include <stdlib.h>
7793#include <stdarg.h>
7794#include <string.h>
7795#include <float.h>
7796
7797int
7798main ()
7799{
7800
7801  ;
7802  return 0;
7803}
7804_ACEOF
7805if ac_fn_c_try_compile "$LINENO"; then :
7806  ac_cv_header_stdc=yes
7807else
7808  ac_cv_header_stdc=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811
7812if test $ac_cv_header_stdc = yes; then
7813  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816#include <string.h>
7817
7818_ACEOF
7819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7820  $EGREP "memchr" >/dev/null 2>&1; then :
7821
7822else
7823  ac_cv_header_stdc=no
7824fi
7825rm -f conftest*
7826
7827fi
7828
7829if test $ac_cv_header_stdc = yes; then
7830  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h.  */
7833#include <stdlib.h>
7834
7835_ACEOF
7836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7837  $EGREP "free" >/dev/null 2>&1; then :
7838
7839else
7840  ac_cv_header_stdc=no
7841fi
7842rm -f conftest*
7843
7844fi
7845
7846if test $ac_cv_header_stdc = yes; then
7847  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7848  if test "$cross_compiling" = yes; then :
7849  :
7850else
7851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h.  */
7853#include <ctype.h>
7854#include <stdlib.h>
7855#if ((' ' & 0x0FF) == 0x020)
7856# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7857# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7858#else
7859# define ISLOWER(c) \
7860		   (('a' <= (c) && (c) <= 'i') \
7861		     || ('j' <= (c) && (c) <= 'r') \
7862		     || ('s' <= (c) && (c) <= 'z'))
7863# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7864#endif
7865
7866#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7867int
7868main ()
7869{
7870  int i;
7871  for (i = 0; i < 256; i++)
7872    if (XOR (islower (i), ISLOWER (i))
7873	|| toupper (i) != TOUPPER (i))
7874      return 2;
7875  return 0;
7876}
7877_ACEOF
7878if ac_fn_c_try_run "$LINENO"; then :
7879
7880else
7881  ac_cv_header_stdc=no
7882fi
7883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7884  conftest.$ac_objext conftest.beam conftest.$ac_ext
7885fi
7886
7887fi
7888fi
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7890$as_echo "$ac_cv_header_stdc" >&6; }
7891if test $ac_cv_header_stdc = yes; then
7892
7893$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7894
7895fi
7896
7897# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7898for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7899		  inttypes.h stdint.h unistd.h
7900do :
7901  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7902ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7903"
7904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7905  cat >>confdefs.h <<_ACEOF
7906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907_ACEOF
7908
7909fi
7910
7911done
7912
7913
7914for ac_header in dlfcn.h
7915do :
7916  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7917"
7918if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7919  cat >>confdefs.h <<_ACEOF
7920#define HAVE_DLFCN_H 1
7921_ACEOF
7922
7923fi
7924
7925done
7926
7927
7928
7929
7930
7931# Set options
7932
7933
7934
7935        enable_dlopen=no
7936
7937
7938  enable_win32_dll=no
7939
7940
7941            # Check whether --enable-shared was given.
7942if test "${enable_shared+set}" = set; then :
7943  enableval=$enable_shared; p=${PACKAGE-default}
7944    case $enableval in
7945    yes) enable_shared=yes ;;
7946    no) enable_shared=no ;;
7947    *)
7948      enable_shared=no
7949      # Look at the argument we got.  We use all the common list separators.
7950      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7951      for pkg in $enableval; do
7952	IFS=$lt_save_ifs
7953	if test "X$pkg" = "X$p"; then
7954	  enable_shared=yes
7955	fi
7956      done
7957      IFS=$lt_save_ifs
7958      ;;
7959    esac
7960else
7961  enable_shared=yes
7962fi
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972  # Check whether --enable-static was given.
7973if test "${enable_static+set}" = set; then :
7974  enableval=$enable_static; p=${PACKAGE-default}
7975    case $enableval in
7976    yes) enable_static=yes ;;
7977    no) enable_static=no ;;
7978    *)
7979     enable_static=no
7980      # Look at the argument we got.  We use all the common list separators.
7981      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7982      for pkg in $enableval; do
7983	IFS=$lt_save_ifs
7984	if test "X$pkg" = "X$p"; then
7985	  enable_static=yes
7986	fi
7987      done
7988      IFS=$lt_save_ifs
7989      ;;
7990    esac
7991else
7992  enable_static=yes
7993fi
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004# Check whether --with-pic was given.
8005if test "${with_pic+set}" = set; then :
8006  withval=$with_pic; lt_p=${PACKAGE-default}
8007    case $withval in
8008    yes|no) pic_mode=$withval ;;
8009    *)
8010      pic_mode=default
8011      # Look at the argument we got.  We use all the common list separators.
8012      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8013      for lt_pkg in $withval; do
8014	IFS=$lt_save_ifs
8015	if test "X$lt_pkg" = "X$lt_p"; then
8016	  pic_mode=yes
8017	fi
8018      done
8019      IFS=$lt_save_ifs
8020      ;;
8021    esac
8022else
8023  pic_mode=default
8024fi
8025
8026
8027
8028
8029
8030
8031
8032
8033  # Check whether --enable-fast-install was given.
8034if test "${enable_fast_install+set}" = set; then :
8035  enableval=$enable_fast_install; p=${PACKAGE-default}
8036    case $enableval in
8037    yes) enable_fast_install=yes ;;
8038    no) enable_fast_install=no ;;
8039    *)
8040      enable_fast_install=no
8041      # Look at the argument we got.  We use all the common list separators.
8042      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8043      for pkg in $enableval; do
8044	IFS=$lt_save_ifs
8045	if test "X$pkg" = "X$p"; then
8046	  enable_fast_install=yes
8047	fi
8048      done
8049      IFS=$lt_save_ifs
8050      ;;
8051    esac
8052else
8053  enable_fast_install=yes
8054fi
8055
8056
8057
8058
8059
8060
8061
8062
8063  shared_archive_member_spec=
8064case $host,$enable_shared in
8065power*-*-aix[5-9]*,yes)
8066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8067$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8068
8069# Check whether --with-aix-soname was given.
8070if test "${with_aix_soname+set}" = set; then :
8071  withval=$with_aix_soname; case $withval in
8072    aix|svr4|both)
8073      ;;
8074    *)
8075      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8076      ;;
8077    esac
8078    lt_cv_with_aix_soname=$with_aix_soname
8079else
8080  if ${lt_cv_with_aix_soname+:} false; then :
8081  $as_echo_n "(cached) " >&6
8082else
8083  lt_cv_with_aix_soname=aix
8084fi
8085
8086    with_aix_soname=$lt_cv_with_aix_soname
8087fi
8088
8089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8090$as_echo "$with_aix_soname" >&6; }
8091  if test aix != "$with_aix_soname"; then
8092    # For the AIX way of multilib, we name the shared archive member
8093    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8094    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8095    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8096    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8097    if test 64 = "${OBJECT_MODE-32}"; then
8098      shared_archive_member_spec=shr_64
8099    else
8100      shared_archive_member_spec=shr
8101    fi
8102  fi
8103  ;;
8104*)
8105  with_aix_soname=aix
8106  ;;
8107esac
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118# This can be used to rebuild libtool when needed
8119LIBTOOL_DEPS=$ltmain
8120
8121# Always use our own libtool.
8122LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153test -z "$LN_S" && LN_S="ln -s"
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168if test -n "${ZSH_VERSION+set}"; then
8169   setopt NO_GLOB_SUBST
8170fi
8171
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8173$as_echo_n "checking for objdir... " >&6; }
8174if ${lt_cv_objdir+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  rm -f .libs 2>/dev/null
8178mkdir .libs 2>/dev/null
8179if test -d .libs; then
8180  lt_cv_objdir=.libs
8181else
8182  # MS-DOS does not allow filenames that begin with a dot.
8183  lt_cv_objdir=_libs
8184fi
8185rmdir .libs 2>/dev/null
8186fi
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8188$as_echo "$lt_cv_objdir" >&6; }
8189objdir=$lt_cv_objdir
8190
8191
8192
8193
8194
8195cat >>confdefs.h <<_ACEOF
8196#define LT_OBJDIR "$lt_cv_objdir/"
8197_ACEOF
8198
8199
8200
8201
8202case $host_os in
8203aix3*)
8204  # AIX sometimes has problems with the GCC collect2 program.  For some
8205  # reason, if we set the COLLECT_NAMES environment variable, the problems
8206  # vanish in a puff of smoke.
8207  if test set != "${COLLECT_NAMES+set}"; then
8208    COLLECT_NAMES=
8209    export COLLECT_NAMES
8210  fi
8211  ;;
8212esac
8213
8214# Global variables:
8215ofile=libtool
8216can_build_shared=yes
8217
8218# All known linkers require a '.a' archive for static linking (except MSVC,
8219# which needs '.lib').
8220libext=a
8221
8222with_gnu_ld=$lt_cv_prog_gnu_ld
8223
8224old_CC=$CC
8225old_CFLAGS=$CFLAGS
8226
8227# Set sane defaults for various variables
8228test -z "$CC" && CC=cc
8229test -z "$LTCC" && LTCC=$CC
8230test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8231test -z "$LD" && LD=ld
8232test -z "$ac_objext" && ac_objext=o
8233
8234func_cc_basename $compiler
8235cc_basename=$func_cc_basename_result
8236
8237
8238# Only perform the check for file, if the check method requires it
8239test -z "$MAGIC_CMD" && MAGIC_CMD=file
8240case $deplibs_check_method in
8241file_magic*)
8242  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8243    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8244$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8245if ${lt_cv_path_MAGIC_CMD+:} false; then :
8246  $as_echo_n "(cached) " >&6
8247else
8248  case $MAGIC_CMD in
8249[\\/*] |  ?:[\\/]*)
8250  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8251  ;;
8252*)
8253  lt_save_MAGIC_CMD=$MAGIC_CMD
8254  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8255  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8256  for ac_dir in $ac_dummy; do
8257    IFS=$lt_save_ifs
8258    test -z "$ac_dir" && ac_dir=.
8259    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8260      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8261      if test -n "$file_magic_test_file"; then
8262	case $deplibs_check_method in
8263	"file_magic "*)
8264	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8265	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8266	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8267	    $EGREP "$file_magic_regex" > /dev/null; then
8268	    :
8269	  else
8270	    cat <<_LT_EOF 1>&2
8271
8272*** Warning: the command libtool uses to detect shared libraries,
8273*** $file_magic_cmd, produces output that libtool cannot recognize.
8274*** The result is that libtool may fail to recognize shared libraries
8275*** as such.  This will affect the creation of libtool libraries that
8276*** depend on shared libraries, but programs linked with such libtool
8277*** libraries will work regardless of this problem.  Nevertheless, you
8278*** may want to report the problem to your system manager and/or to
8279*** bug-libtool@gnu.org
8280
8281_LT_EOF
8282	  fi ;;
8283	esac
8284      fi
8285      break
8286    fi
8287  done
8288  IFS=$lt_save_ifs
8289  MAGIC_CMD=$lt_save_MAGIC_CMD
8290  ;;
8291esac
8292fi
8293
8294MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8295if test -n "$MAGIC_CMD"; then
8296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8297$as_echo "$MAGIC_CMD" >&6; }
8298else
8299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300$as_echo "no" >&6; }
8301fi
8302
8303
8304
8305
8306
8307if test -z "$lt_cv_path_MAGIC_CMD"; then
8308  if test -n "$ac_tool_prefix"; then
8309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8310$as_echo_n "checking for file... " >&6; }
8311if ${lt_cv_path_MAGIC_CMD+:} false; then :
8312  $as_echo_n "(cached) " >&6
8313else
8314  case $MAGIC_CMD in
8315[\\/*] |  ?:[\\/]*)
8316  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8317  ;;
8318*)
8319  lt_save_MAGIC_CMD=$MAGIC_CMD
8320  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8321  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8322  for ac_dir in $ac_dummy; do
8323    IFS=$lt_save_ifs
8324    test -z "$ac_dir" && ac_dir=.
8325    if test -f "$ac_dir/file"; then
8326      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8327      if test -n "$file_magic_test_file"; then
8328	case $deplibs_check_method in
8329	"file_magic "*)
8330	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8331	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8332	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8333	    $EGREP "$file_magic_regex" > /dev/null; then
8334	    :
8335	  else
8336	    cat <<_LT_EOF 1>&2
8337
8338*** Warning: the command libtool uses to detect shared libraries,
8339*** $file_magic_cmd, produces output that libtool cannot recognize.
8340*** The result is that libtool may fail to recognize shared libraries
8341*** as such.  This will affect the creation of libtool libraries that
8342*** depend on shared libraries, but programs linked with such libtool
8343*** libraries will work regardless of this problem.  Nevertheless, you
8344*** may want to report the problem to your system manager and/or to
8345*** bug-libtool@gnu.org
8346
8347_LT_EOF
8348	  fi ;;
8349	esac
8350      fi
8351      break
8352    fi
8353  done
8354  IFS=$lt_save_ifs
8355  MAGIC_CMD=$lt_save_MAGIC_CMD
8356  ;;
8357esac
8358fi
8359
8360MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8361if test -n "$MAGIC_CMD"; then
8362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8363$as_echo "$MAGIC_CMD" >&6; }
8364else
8365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366$as_echo "no" >&6; }
8367fi
8368
8369
8370  else
8371    MAGIC_CMD=:
8372  fi
8373fi
8374
8375  fi
8376  ;;
8377esac
8378
8379# Use C for the default configuration in the libtool script
8380
8381lt_save_CC=$CC
8382ac_ext=c
8383ac_cpp='$CPP $CPPFLAGS'
8384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8386ac_compiler_gnu=$ac_cv_c_compiler_gnu
8387
8388
8389# Source file extension for C test sources.
8390ac_ext=c
8391
8392# Object file extension for compiled C test sources.
8393objext=o
8394objext=$objext
8395
8396# Code to be used in simple compile tests
8397lt_simple_compile_test_code="int some_variable = 0;"
8398
8399# Code to be used in simple link tests
8400lt_simple_link_test_code='int main(){return(0);}'
8401
8402
8403
8404
8405
8406
8407
8408# If no C compiler was specified, use CC.
8409LTCC=${LTCC-"$CC"}
8410
8411# If no C compiler flags were specified, use CFLAGS.
8412LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8413
8414# Allow CC to be a program name with arguments.
8415compiler=$CC
8416
8417# Save the default compiler, since it gets overwritten when the other
8418# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8419compiler_DEFAULT=$CC
8420
8421# save warnings/boilerplate of simple test code
8422ac_outfile=conftest.$ac_objext
8423echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8424eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8425_lt_compiler_boilerplate=`cat conftest.err`
8426$RM conftest*
8427
8428ac_outfile=conftest.$ac_objext
8429echo "$lt_simple_link_test_code" >conftest.$ac_ext
8430eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8431_lt_linker_boilerplate=`cat conftest.err`
8432$RM -r conftest*
8433
8434
8435if test -n "$compiler"; then
8436
8437lt_prog_compiler_no_builtin_flag=
8438
8439if test yes = "$GCC"; then
8440  case $cc_basename in
8441  nvcc*)
8442    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8443  *)
8444    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8445  esac
8446
8447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8448$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8449if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  lt_cv_prog_compiler_rtti_exceptions=no
8453   ac_outfile=conftest.$ac_objext
8454   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8455   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8456   # Insert the option either (1) after the last *FLAGS variable, or
8457   # (2) before a word containing "conftest.", or (3) at the end.
8458   # Note that $ac_compile itself does not contain backslashes and begins
8459   # with a dollar sign (not a hyphen), so the echo should work correctly.
8460   # The option is referenced via a variable to avoid confusing sed.
8461   lt_compile=`echo "$ac_compile" | $SED \
8462   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464   -e 's:$: $lt_compiler_flag:'`
8465   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8466   (eval "$lt_compile" 2>conftest.err)
8467   ac_status=$?
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   if (exit $ac_status) && test -s "$ac_outfile"; then
8471     # The compiler can only warn and ignore the option if not recognized
8472     # So say no if there are warnings other than the usual output.
8473     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8474     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8475     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8476       lt_cv_prog_compiler_rtti_exceptions=yes
8477     fi
8478   fi
8479   $RM conftest*
8480
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8483$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8484
8485if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8486    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8487else
8488    :
8489fi
8490
8491fi
8492
8493
8494
8495
8496
8497
8498  lt_prog_compiler_wl=
8499lt_prog_compiler_pic=
8500lt_prog_compiler_static=
8501
8502
8503  if test yes = "$GCC"; then
8504    lt_prog_compiler_wl='-Wl,'
8505    lt_prog_compiler_static='-static'
8506
8507    case $host_os in
8508      aix*)
8509      # All AIX code is PIC.
8510      if test ia64 = "$host_cpu"; then
8511	# AIX 5 now supports IA64 processor
8512	lt_prog_compiler_static='-Bstatic'
8513      fi
8514      lt_prog_compiler_pic='-fPIC'
8515      ;;
8516
8517    amigaos*)
8518      case $host_cpu in
8519      powerpc)
8520            # see comment about AmigaOS4 .so support
8521            lt_prog_compiler_pic='-fPIC'
8522        ;;
8523      m68k)
8524            # FIXME: we need at least 68020 code to build shared libraries, but
8525            # adding the '-m68020' flag to GCC prevents building anything better,
8526            # like '-m68040'.
8527            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8528        ;;
8529      esac
8530      ;;
8531
8532    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8533      # PIC is the default for these OSes.
8534      ;;
8535
8536    mingw* | cygwin* | pw32* | os2* | cegcc*)
8537      # This hack is so that the source file can tell whether it is being
8538      # built for inclusion in a dll (and should export symbols for example).
8539      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8540      # (--disable-auto-import) libraries
8541      lt_prog_compiler_pic='-DDLL_EXPORT'
8542      case $host_os in
8543      os2*)
8544	lt_prog_compiler_static='$wl-static'
8545	;;
8546      esac
8547      ;;
8548
8549    darwin* | rhapsody*)
8550      # PIC is the default on this platform
8551      # Common symbols not allowed in MH_DYLIB files
8552      lt_prog_compiler_pic='-fno-common'
8553      ;;
8554
8555    haiku*)
8556      # PIC is the default for Haiku.
8557      # The "-static" flag exists, but is broken.
8558      lt_prog_compiler_static=
8559      ;;
8560
8561    hpux*)
8562      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8563      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8564      # sets the default TLS model and affects inlining.
8565      case $host_cpu in
8566      hppa*64*)
8567	# +Z the default
8568	;;
8569      *)
8570	lt_prog_compiler_pic='-fPIC'
8571	;;
8572      esac
8573      ;;
8574
8575    interix[3-9]*)
8576      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8577      # Instead, we relocate shared libraries at runtime.
8578      ;;
8579
8580    msdosdjgpp*)
8581      # Just because we use GCC doesn't mean we suddenly get shared libraries
8582      # on systems that don't support them.
8583      lt_prog_compiler_can_build_shared=no
8584      enable_shared=no
8585      ;;
8586
8587    *nto* | *qnx*)
8588      # QNX uses GNU C++, but need to define -shared option too, otherwise
8589      # it will coredump.
8590      lt_prog_compiler_pic='-fPIC -shared'
8591      ;;
8592
8593    sysv4*MP*)
8594      if test -d /usr/nec; then
8595	lt_prog_compiler_pic=-Kconform_pic
8596      fi
8597      ;;
8598
8599    *)
8600      lt_prog_compiler_pic='-fPIC'
8601      ;;
8602    esac
8603
8604    case $cc_basename in
8605    nvcc*) # Cuda Compiler Driver 2.2
8606      lt_prog_compiler_wl='-Xlinker '
8607      if test -n "$lt_prog_compiler_pic"; then
8608        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8609      fi
8610      ;;
8611    esac
8612  else
8613    # PORTME Check for flag to pass linker flags through the system compiler.
8614    case $host_os in
8615    aix*)
8616      lt_prog_compiler_wl='-Wl,'
8617      if test ia64 = "$host_cpu"; then
8618	# AIX 5 now supports IA64 processor
8619	lt_prog_compiler_static='-Bstatic'
8620      else
8621	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8622      fi
8623      ;;
8624
8625    darwin* | rhapsody*)
8626      # PIC is the default on this platform
8627      # Common symbols not allowed in MH_DYLIB files
8628      lt_prog_compiler_pic='-fno-common'
8629      case $cc_basename in
8630      nagfor*)
8631        # NAG Fortran compiler
8632        lt_prog_compiler_wl='-Wl,-Wl,,'
8633        lt_prog_compiler_pic='-PIC'
8634        lt_prog_compiler_static='-Bstatic'
8635        ;;
8636      esac
8637      ;;
8638
8639    mingw* | cygwin* | pw32* | os2* | cegcc*)
8640      # This hack is so that the source file can tell whether it is being
8641      # built for inclusion in a dll (and should export symbols for example).
8642      lt_prog_compiler_pic='-DDLL_EXPORT'
8643      case $host_os in
8644      os2*)
8645	lt_prog_compiler_static='$wl-static'
8646	;;
8647      esac
8648      ;;
8649
8650    hpux9* | hpux10* | hpux11*)
8651      lt_prog_compiler_wl='-Wl,'
8652      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8653      # not for PA HP-UX.
8654      case $host_cpu in
8655      hppa*64*|ia64*)
8656	# +Z the default
8657	;;
8658      *)
8659	lt_prog_compiler_pic='+Z'
8660	;;
8661      esac
8662      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8663      lt_prog_compiler_static='$wl-a ${wl}archive'
8664      ;;
8665
8666    irix5* | irix6* | nonstopux*)
8667      lt_prog_compiler_wl='-Wl,'
8668      # PIC (with -KPIC) is the default.
8669      lt_prog_compiler_static='-non_shared'
8670      ;;
8671
8672    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8673      case $cc_basename in
8674      # old Intel for x86_64, which still supported -KPIC.
8675      ecc*)
8676	lt_prog_compiler_wl='-Wl,'
8677	lt_prog_compiler_pic='-KPIC'
8678	lt_prog_compiler_static='-static'
8679        ;;
8680      # icc used to be incompatible with GCC.
8681      # ICC 10 doesn't accept -KPIC any more.
8682      icc* | ifort*)
8683	lt_prog_compiler_wl='-Wl,'
8684	lt_prog_compiler_pic='-fPIC'
8685	lt_prog_compiler_static='-static'
8686        ;;
8687      # Lahey Fortran 8.1.
8688      lf95*)
8689	lt_prog_compiler_wl='-Wl,'
8690	lt_prog_compiler_pic='--shared'
8691	lt_prog_compiler_static='--static'
8692	;;
8693      nagfor*)
8694	# NAG Fortran compiler
8695	lt_prog_compiler_wl='-Wl,-Wl,,'
8696	lt_prog_compiler_pic='-PIC'
8697	lt_prog_compiler_static='-Bstatic'
8698	;;
8699      tcc*)
8700	# Fabrice Bellard et al's Tiny C Compiler
8701	lt_prog_compiler_wl='-Wl,'
8702	lt_prog_compiler_pic='-fPIC'
8703	lt_prog_compiler_static='-static'
8704	;;
8705      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8706        # Portland Group compilers (*not* the Pentium gcc compiler,
8707	# which looks to be a dead project)
8708	lt_prog_compiler_wl='-Wl,'
8709	lt_prog_compiler_pic='-fpic'
8710	lt_prog_compiler_static='-Bstatic'
8711        ;;
8712      ccc*)
8713        lt_prog_compiler_wl='-Wl,'
8714        # All Alpha code is PIC.
8715        lt_prog_compiler_static='-non_shared'
8716        ;;
8717      xl* | bgxl* | bgf* | mpixl*)
8718	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8719	lt_prog_compiler_wl='-Wl,'
8720	lt_prog_compiler_pic='-qpic'
8721	lt_prog_compiler_static='-qstaticlink'
8722	;;
8723      *)
8724	case `$CC -V 2>&1 | sed 5q` in
8725	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8726	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8727	  lt_prog_compiler_pic='-KPIC'
8728	  lt_prog_compiler_static='-Bstatic'
8729	  lt_prog_compiler_wl=''
8730	  ;;
8731	*Sun\ F* | *Sun*Fortran*)
8732	  lt_prog_compiler_pic='-KPIC'
8733	  lt_prog_compiler_static='-Bstatic'
8734	  lt_prog_compiler_wl='-Qoption ld '
8735	  ;;
8736	*Sun\ C*)
8737	  # Sun C 5.9
8738	  lt_prog_compiler_pic='-KPIC'
8739	  lt_prog_compiler_static='-Bstatic'
8740	  lt_prog_compiler_wl='-Wl,'
8741	  ;;
8742        *Intel*\ [CF]*Compiler*)
8743	  lt_prog_compiler_wl='-Wl,'
8744	  lt_prog_compiler_pic='-fPIC'
8745	  lt_prog_compiler_static='-static'
8746	  ;;
8747	*Portland\ Group*)
8748	  lt_prog_compiler_wl='-Wl,'
8749	  lt_prog_compiler_pic='-fpic'
8750	  lt_prog_compiler_static='-Bstatic'
8751	  ;;
8752	esac
8753	;;
8754      esac
8755      ;;
8756
8757    newsos6)
8758      lt_prog_compiler_pic='-KPIC'
8759      lt_prog_compiler_static='-Bstatic'
8760      ;;
8761
8762    *nto* | *qnx*)
8763      # QNX uses GNU C++, but need to define -shared option too, otherwise
8764      # it will coredump.
8765      lt_prog_compiler_pic='-fPIC -shared'
8766      ;;
8767
8768    osf3* | osf4* | osf5*)
8769      lt_prog_compiler_wl='-Wl,'
8770      # All OSF/1 code is PIC.
8771      lt_prog_compiler_static='-non_shared'
8772      ;;
8773
8774    rdos*)
8775      lt_prog_compiler_static='-non_shared'
8776      ;;
8777
8778    solaris*)
8779      lt_prog_compiler_pic='-KPIC'
8780      lt_prog_compiler_static='-Bstatic'
8781      case $cc_basename in
8782      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8783	lt_prog_compiler_wl='-Qoption ld ';;
8784      *)
8785	lt_prog_compiler_wl='-Wl,';;
8786      esac
8787      ;;
8788
8789    sunos4*)
8790      lt_prog_compiler_wl='-Qoption ld '
8791      lt_prog_compiler_pic='-PIC'
8792      lt_prog_compiler_static='-Bstatic'
8793      ;;
8794
8795    sysv4 | sysv4.2uw2* | sysv4.3*)
8796      lt_prog_compiler_wl='-Wl,'
8797      lt_prog_compiler_pic='-KPIC'
8798      lt_prog_compiler_static='-Bstatic'
8799      ;;
8800
8801    sysv4*MP*)
8802      if test -d /usr/nec; then
8803	lt_prog_compiler_pic='-Kconform_pic'
8804	lt_prog_compiler_static='-Bstatic'
8805      fi
8806      ;;
8807
8808    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8809      lt_prog_compiler_wl='-Wl,'
8810      lt_prog_compiler_pic='-KPIC'
8811      lt_prog_compiler_static='-Bstatic'
8812      ;;
8813
8814    unicos*)
8815      lt_prog_compiler_wl='-Wl,'
8816      lt_prog_compiler_can_build_shared=no
8817      ;;
8818
8819    uts4*)
8820      lt_prog_compiler_pic='-pic'
8821      lt_prog_compiler_static='-Bstatic'
8822      ;;
8823
8824    *)
8825      lt_prog_compiler_can_build_shared=no
8826      ;;
8827    esac
8828  fi
8829
8830case $host_os in
8831  # For platforms that do not support PIC, -DPIC is meaningless:
8832  *djgpp*)
8833    lt_prog_compiler_pic=
8834    ;;
8835  *)
8836    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8837    ;;
8838esac
8839
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8841$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8842if ${lt_cv_prog_compiler_pic+:} false; then :
8843  $as_echo_n "(cached) " >&6
8844else
8845  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8846fi
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8848$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8849lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8850
8851#
8852# Check to make sure the PIC flag actually works.
8853#
8854if test -n "$lt_prog_compiler_pic"; then
8855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8856$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8857if ${lt_cv_prog_compiler_pic_works+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860  lt_cv_prog_compiler_pic_works=no
8861   ac_outfile=conftest.$ac_objext
8862   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8863   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8864   # Insert the option either (1) after the last *FLAGS variable, or
8865   # (2) before a word containing "conftest.", or (3) at the end.
8866   # Note that $ac_compile itself does not contain backslashes and begins
8867   # with a dollar sign (not a hyphen), so the echo should work correctly.
8868   # The option is referenced via a variable to avoid confusing sed.
8869   lt_compile=`echo "$ac_compile" | $SED \
8870   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8871   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8872   -e 's:$: $lt_compiler_flag:'`
8873   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8874   (eval "$lt_compile" 2>conftest.err)
8875   ac_status=$?
8876   cat conftest.err >&5
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   if (exit $ac_status) && test -s "$ac_outfile"; then
8879     # The compiler can only warn and ignore the option if not recognized
8880     # So say no if there are warnings other than the usual output.
8881     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8882     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8883     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8884       lt_cv_prog_compiler_pic_works=yes
8885     fi
8886   fi
8887   $RM conftest*
8888
8889fi
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8891$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8892
8893if test yes = "$lt_cv_prog_compiler_pic_works"; then
8894    case $lt_prog_compiler_pic in
8895     "" | " "*) ;;
8896     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8897     esac
8898else
8899    lt_prog_compiler_pic=
8900     lt_prog_compiler_can_build_shared=no
8901fi
8902
8903fi
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915#
8916# Check to make sure the static flag actually works.
8917#
8918wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8920$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8921if ${lt_cv_prog_compiler_static_works+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  lt_cv_prog_compiler_static_works=no
8925   save_LDFLAGS=$LDFLAGS
8926   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8927   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8928   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8929     # The linker can only warn and ignore the option if not recognized
8930     # So say no if there are warnings
8931     if test -s conftest.err; then
8932       # Append any errors to the config.log.
8933       cat conftest.err 1>&5
8934       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8935       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8936       if diff conftest.exp conftest.er2 >/dev/null; then
8937         lt_cv_prog_compiler_static_works=yes
8938       fi
8939     else
8940       lt_cv_prog_compiler_static_works=yes
8941     fi
8942   fi
8943   $RM -r conftest*
8944   LDFLAGS=$save_LDFLAGS
8945
8946fi
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8948$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8949
8950if test yes = "$lt_cv_prog_compiler_static_works"; then
8951    :
8952else
8953    lt_prog_compiler_static=
8954fi
8955
8956
8957
8958
8959
8960
8961
8962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8963$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8964if ${lt_cv_prog_compiler_c_o+:} false; then :
8965  $as_echo_n "(cached) " >&6
8966else
8967  lt_cv_prog_compiler_c_o=no
8968   $RM -r conftest 2>/dev/null
8969   mkdir conftest
8970   cd conftest
8971   mkdir out
8972   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8973
8974   lt_compiler_flag="-o out/conftest2.$ac_objext"
8975   # Insert the option either (1) after the last *FLAGS variable, or
8976   # (2) before a word containing "conftest.", or (3) at the end.
8977   # Note that $ac_compile itself does not contain backslashes and begins
8978   # with a dollar sign (not a hyphen), so the echo should work correctly.
8979   lt_compile=`echo "$ac_compile" | $SED \
8980   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8981   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8982   -e 's:$: $lt_compiler_flag:'`
8983   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8984   (eval "$lt_compile" 2>out/conftest.err)
8985   ac_status=$?
8986   cat out/conftest.err >&5
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8989   then
8990     # The compiler can only warn and ignore the option if not recognized
8991     # So say no if there are warnings
8992     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8993     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8994     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8995       lt_cv_prog_compiler_c_o=yes
8996     fi
8997   fi
8998   chmod u+w . 2>&5
8999   $RM conftest*
9000   # SGI C++ compiler will create directory out/ii_files/ for
9001   # template instantiation
9002   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9003   $RM out/* && rmdir out
9004   cd ..
9005   $RM -r conftest
9006   $RM conftest*
9007
9008fi
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9010$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9011
9012
9013
9014
9015
9016
9017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9018$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9019if ${lt_cv_prog_compiler_c_o+:} false; then :
9020  $as_echo_n "(cached) " >&6
9021else
9022  lt_cv_prog_compiler_c_o=no
9023   $RM -r conftest 2>/dev/null
9024   mkdir conftest
9025   cd conftest
9026   mkdir out
9027   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9028
9029   lt_compiler_flag="-o out/conftest2.$ac_objext"
9030   # Insert the option either (1) after the last *FLAGS variable, or
9031   # (2) before a word containing "conftest.", or (3) at the end.
9032   # Note that $ac_compile itself does not contain backslashes and begins
9033   # with a dollar sign (not a hyphen), so the echo should work correctly.
9034   lt_compile=`echo "$ac_compile" | $SED \
9035   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9036   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9037   -e 's:$: $lt_compiler_flag:'`
9038   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9039   (eval "$lt_compile" 2>out/conftest.err)
9040   ac_status=$?
9041   cat out/conftest.err >&5
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9044   then
9045     # The compiler can only warn and ignore the option if not recognized
9046     # So say no if there are warnings
9047     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9048     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9049     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9050       lt_cv_prog_compiler_c_o=yes
9051     fi
9052   fi
9053   chmod u+w . 2>&5
9054   $RM conftest*
9055   # SGI C++ compiler will create directory out/ii_files/ for
9056   # template instantiation
9057   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9058   $RM out/* && rmdir out
9059   cd ..
9060   $RM -r conftest
9061   $RM conftest*
9062
9063fi
9064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9065$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9066
9067
9068
9069
9070hard_links=nottested
9071if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9072  # do not overwrite the value of need_locks provided by the user
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9074$as_echo_n "checking if we can lock with hard links... " >&6; }
9075  hard_links=yes
9076  $RM conftest*
9077  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9078  touch conftest.a
9079  ln conftest.a conftest.b 2>&5 || hard_links=no
9080  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9082$as_echo "$hard_links" >&6; }
9083  if test no = "$hard_links"; then
9084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9085$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9086    need_locks=warn
9087  fi
9088else
9089  need_locks=no
9090fi
9091
9092
9093
9094
9095
9096
9097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9098$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9099
9100  runpath_var=
9101  allow_undefined_flag=
9102  always_export_symbols=no
9103  archive_cmds=
9104  archive_expsym_cmds=
9105  compiler_needs_object=no
9106  enable_shared_with_static_runtimes=no
9107  export_dynamic_flag_spec=
9108  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9109  hardcode_automatic=no
9110  hardcode_direct=no
9111  hardcode_direct_absolute=no
9112  hardcode_libdir_flag_spec=
9113  hardcode_libdir_separator=
9114  hardcode_minus_L=no
9115  hardcode_shlibpath_var=unsupported
9116  inherit_rpath=no
9117  link_all_deplibs=unknown
9118  module_cmds=
9119  module_expsym_cmds=
9120  old_archive_from_new_cmds=
9121  old_archive_from_expsyms_cmds=
9122  thread_safe_flag_spec=
9123  whole_archive_flag_spec=
9124  # include_expsyms should be a list of space-separated symbols to be *always*
9125  # included in the symbol list
9126  include_expsyms=
9127  # exclude_expsyms can be an extended regexp of symbols to exclude
9128  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9129  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9130  # as well as any symbol that contains 'd'.
9131  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9132  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9133  # platforms (ab)use it in PIC code, but their linkers get confused if
9134  # the symbol is explicitly referenced.  Since portable code cannot
9135  # rely on this symbol name, it's probably fine to never include it in
9136  # preloaded symbol tables.
9137  # Exclude shared library initialization/finalization symbols.
9138  extract_expsyms_cmds=
9139
9140  case $host_os in
9141  cygwin* | mingw* | pw32* | cegcc*)
9142    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9143    # When not using gcc, we currently assume that we are using
9144    # Microsoft Visual C++.
9145    if test yes != "$GCC"; then
9146      with_gnu_ld=no
9147    fi
9148    ;;
9149  interix*)
9150    # we just hope/assume this is gcc and not c89 (= MSVC++)
9151    with_gnu_ld=yes
9152    ;;
9153  openbsd* | bitrig*)
9154    with_gnu_ld=no
9155    ;;
9156  esac
9157
9158  ld_shlibs=yes
9159
9160  # On some targets, GNU ld is compatible enough with the native linker
9161  # that we're better off using the native interface for both.
9162  lt_use_gnu_ld_interface=no
9163  if test yes = "$with_gnu_ld"; then
9164    case $host_os in
9165      aix*)
9166	# The AIX port of GNU ld has always aspired to compatibility
9167	# with the native linker.  However, as the warning in the GNU ld
9168	# block says, versions before 2.19.5* couldn't really create working
9169	# shared libraries, regardless of the interface used.
9170	case `$LD -v 2>&1` in
9171	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9172	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9173	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9174	  *)
9175	    lt_use_gnu_ld_interface=yes
9176	    ;;
9177	esac
9178	;;
9179      *)
9180	lt_use_gnu_ld_interface=yes
9181	;;
9182    esac
9183  fi
9184
9185  if test yes = "$lt_use_gnu_ld_interface"; then
9186    # If archive_cmds runs LD, not CC, wlarc should be empty
9187    wlarc='$wl'
9188
9189    # Set some defaults for GNU ld with shared library support. These
9190    # are reset later if shared libraries are not supported. Putting them
9191    # here allows them to be overridden if necessary.
9192    runpath_var=LD_RUN_PATH
9193    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9194    export_dynamic_flag_spec='$wl--export-dynamic'
9195    # ancient GNU ld didn't support --whole-archive et. al.
9196    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9197      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9198    else
9199      whole_archive_flag_spec=
9200    fi
9201    supports_anon_versioning=no
9202    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9203      *GNU\ gold*) supports_anon_versioning=yes ;;
9204      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9205      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9206      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9207      *\ 2.11.*) ;; # other 2.11 versions
9208      *) supports_anon_versioning=yes ;;
9209    esac
9210
9211    # See if GNU ld supports shared libraries.
9212    case $host_os in
9213    aix[3-9]*)
9214      # On AIX/PPC, the GNU linker is very broken
9215      if test ia64 != "$host_cpu"; then
9216	ld_shlibs=no
9217	cat <<_LT_EOF 1>&2
9218
9219*** Warning: the GNU linker, at least up to release 2.19, is reported
9220*** to be unable to reliably create shared libraries on AIX.
9221*** Therefore, libtool is disabling shared libraries support.  If you
9222*** really care for shared libraries, you may want to install binutils
9223*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9224*** You will then need to restart the configuration process.
9225
9226_LT_EOF
9227      fi
9228      ;;
9229
9230    amigaos*)
9231      case $host_cpu in
9232      powerpc)
9233            # see comment about AmigaOS4 .so support
9234            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9235            archive_expsym_cmds=''
9236        ;;
9237      m68k)
9238            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)'
9239            hardcode_libdir_flag_spec='-L$libdir'
9240            hardcode_minus_L=yes
9241        ;;
9242      esac
9243      ;;
9244
9245    beos*)
9246      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9247	allow_undefined_flag=unsupported
9248	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9249	# support --undefined.  This deserves some investigation.  FIXME
9250	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9251      else
9252	ld_shlibs=no
9253      fi
9254      ;;
9255
9256    cygwin* | mingw* | pw32* | cegcc*)
9257      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9258      # as there is no search path for DLLs.
9259      hardcode_libdir_flag_spec='-L$libdir'
9260      export_dynamic_flag_spec='$wl--export-all-symbols'
9261      allow_undefined_flag=unsupported
9262      always_export_symbols=no
9263      enable_shared_with_static_runtimes=yes
9264      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'
9265      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9266
9267      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9268        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9269	# If the export-symbols file already is a .def file, use it as
9270	# is; otherwise, prepend EXPORTS...
9271	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9272          cp $export_symbols $output_objdir/$soname.def;
9273        else
9274          echo EXPORTS > $output_objdir/$soname.def;
9275          cat $export_symbols >> $output_objdir/$soname.def;
9276        fi~
9277        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9278      else
9279	ld_shlibs=no
9280      fi
9281      ;;
9282
9283    haiku*)
9284      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9285      link_all_deplibs=yes
9286      ;;
9287
9288    os2*)
9289      hardcode_libdir_flag_spec='-L$libdir'
9290      hardcode_minus_L=yes
9291      allow_undefined_flag=unsupported
9292      shrext_cmds=.dll
9293      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9294	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9295	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9296	$ECHO EXPORTS >> $output_objdir/$libname.def~
9297	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9298	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9299	emximp -o $lib $output_objdir/$libname.def'
9300      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9301	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9302	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9303	$ECHO EXPORTS >> $output_objdir/$libname.def~
9304	prefix_cmds="$SED"~
9305	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9306	  prefix_cmds="$prefix_cmds -e 1d";
9307	fi~
9308	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9309	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9310	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9311	emximp -o $lib $output_objdir/$libname.def'
9312      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9313      enable_shared_with_static_runtimes=yes
9314      ;;
9315
9316    interix[3-9]*)
9317      hardcode_direct=no
9318      hardcode_shlibpath_var=no
9319      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9320      export_dynamic_flag_spec='$wl-E'
9321      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9322      # Instead, shared libraries are loaded at an image base (0x10000000 by
9323      # default) and relocated if they conflict, which is a slow very memory
9324      # consuming and fragmenting process.  To avoid this, we pick a random,
9325      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9326      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9327      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9328      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'
9329      ;;
9330
9331    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9332      tmp_diet=no
9333      if test linux-dietlibc = "$host_os"; then
9334	case $cc_basename in
9335	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9336	esac
9337      fi
9338      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9339	 && test no = "$tmp_diet"
9340      then
9341	tmp_addflag=' $pic_flag'
9342	tmp_sharedflag='-shared'
9343	case $cc_basename,$host_cpu in
9344        pgcc*)				# Portland Group C compiler
9345	  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'
9346	  tmp_addflag=' $pic_flag'
9347	  ;;
9348	pgf77* | pgf90* | pgf95* | pgfortran*)
9349					# Portland Group f77 and f90 compilers
9350	  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'
9351	  tmp_addflag=' $pic_flag -Mnomain' ;;
9352	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9353	  tmp_addflag=' -i_dynamic' ;;
9354	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9355	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9356	ifc* | ifort*)			# Intel Fortran compiler
9357	  tmp_addflag=' -nofor_main' ;;
9358	lf95*)				# Lahey Fortran 8.1
9359	  whole_archive_flag_spec=
9360	  tmp_sharedflag='--shared' ;;
9361        nagfor*)                        # NAGFOR 5.3
9362          tmp_sharedflag='-Wl,-shared' ;;
9363	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9364	  tmp_sharedflag='-qmkshrobj'
9365	  tmp_addflag= ;;
9366	nvcc*)	# Cuda Compiler Driver 2.2
9367	  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'
9368	  compiler_needs_object=yes
9369	  ;;
9370	esac
9371	case `$CC -V 2>&1 | sed 5q` in
9372	*Sun\ C*)			# Sun C 5.9
9373	  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'
9374	  compiler_needs_object=yes
9375	  tmp_sharedflag='-G' ;;
9376	*Sun\ F*)			# Sun Fortran 8.3
9377	  tmp_sharedflag='-G' ;;
9378	esac
9379	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9380
9381        if test yes = "$supports_anon_versioning"; then
9382          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9383            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9384            echo "local: *; };" >> $output_objdir/$libname.ver~
9385            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9386        fi
9387
9388	case $cc_basename in
9389	tcc*)
9390	  export_dynamic_flag_spec='-rdynamic'
9391	  ;;
9392	xlf* | bgf* | bgxlf* | mpixlf*)
9393	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9394	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9395	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9396	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9397	  if test yes = "$supports_anon_versioning"; then
9398	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9399              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9400              echo "local: *; };" >> $output_objdir/$libname.ver~
9401              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9402	  fi
9403	  ;;
9404	esac
9405      else
9406        ld_shlibs=no
9407      fi
9408      ;;
9409
9410    netbsd*)
9411      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9412	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9413	wlarc=
9414      else
9415	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9416	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9417      fi
9418      ;;
9419
9420    solaris*)
9421      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9422	ld_shlibs=no
9423	cat <<_LT_EOF 1>&2
9424
9425*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9426*** create shared libraries on Solaris systems.  Therefore, libtool
9427*** is disabling shared libraries support.  We urge you to upgrade GNU
9428*** binutils to release 2.9.1 or newer.  Another option is to modify
9429*** your PATH or compiler configuration so that the native linker is
9430*** used, and then restart.
9431
9432_LT_EOF
9433      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9434	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9435	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9436      else
9437	ld_shlibs=no
9438      fi
9439      ;;
9440
9441    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9442      case `$LD -v 2>&1` in
9443        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9444	ld_shlibs=no
9445	cat <<_LT_EOF 1>&2
9446
9447*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9448*** reliably create shared libraries on SCO systems.  Therefore, libtool
9449*** is disabling shared libraries support.  We urge you to upgrade GNU
9450*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9451*** your PATH or compiler configuration so that the native linker is
9452*** used, and then restart.
9453
9454_LT_EOF
9455	;;
9456	*)
9457	  # For security reasons, it is highly recommended that you always
9458	  # use absolute paths for naming shared libraries, and exclude the
9459	  # DT_RUNPATH tag from executables and libraries.  But doing so
9460	  # requires that you compile everything twice, which is a pain.
9461	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9462	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9463	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9464	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9465	  else
9466	    ld_shlibs=no
9467	  fi
9468	;;
9469      esac
9470      ;;
9471
9472    sunos4*)
9473      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474      wlarc=
9475      hardcode_direct=yes
9476      hardcode_shlibpath_var=no
9477      ;;
9478
9479    *)
9480      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9482	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9483      else
9484	ld_shlibs=no
9485      fi
9486      ;;
9487    esac
9488
9489    if test no = "$ld_shlibs"; then
9490      runpath_var=
9491      hardcode_libdir_flag_spec=
9492      export_dynamic_flag_spec=
9493      whole_archive_flag_spec=
9494    fi
9495  else
9496    # PORTME fill in a description of your system's linker (not GNU ld)
9497    case $host_os in
9498    aix3*)
9499      allow_undefined_flag=unsupported
9500      always_export_symbols=yes
9501      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'
9502      # Note: this linker hardcodes the directories in LIBPATH if there
9503      # are no directories specified by -L.
9504      hardcode_minus_L=yes
9505      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9506	# Neither direct hardcoding nor static linking is supported with a
9507	# broken collect2.
9508	hardcode_direct=unsupported
9509      fi
9510      ;;
9511
9512    aix[4-9]*)
9513      if test ia64 = "$host_cpu"; then
9514	# On IA64, the linker does run time linking by default, so we don't
9515	# have to do anything special.
9516	aix_use_runtimelinking=no
9517	exp_sym_flag='-Bexport'
9518	no_entry_flag=
9519      else
9520	# If we're using GNU nm, then we don't want the "-C" option.
9521	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9522	# Without the "-l" option, or with the "-B" option, AIX nm treats
9523	# weak defined symbols like other global defined symbols, whereas
9524	# GNU nm marks them as "W".
9525	# While the 'weak' keyword is ignored in the Export File, we need
9526	# it in the Import File for the 'aix-soname' feature, so we have
9527	# to replace the "-B" option with "-P" for AIX nm.
9528	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9529	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9530	else
9531	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9532	fi
9533	aix_use_runtimelinking=no
9534
9535	# Test if we are trying to use run time linking or normal
9536	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9537	# have runtime linking enabled, and use it for executables.
9538	# For shared libraries, we enable/disable runtime linking
9539	# depending on the kind of the shared library created -
9540	# when "with_aix_soname,aix_use_runtimelinking" is:
9541	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9542	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9543	#            lib.a           static archive
9544	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9545	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9546	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9547	#            lib.a(lib.so.V) shared, rtl:no
9548	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9549	#            lib.a           static archive
9550	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9551	  for ld_flag in $LDFLAGS; do
9552	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9553	    aix_use_runtimelinking=yes
9554	    break
9555	  fi
9556	  done
9557	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9558	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9559	    # so we don't have lib.a shared libs to link our executables.
9560	    # We have to force runtime linking in this case.
9561	    aix_use_runtimelinking=yes
9562	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9563	  fi
9564	  ;;
9565	esac
9566
9567	exp_sym_flag='-bexport'
9568	no_entry_flag='-bnoentry'
9569      fi
9570
9571      # When large executables or shared objects are built, AIX ld can
9572      # have problems creating the table of contents.  If linking a library
9573      # or program results in "error TOC overflow" add -mminimal-toc to
9574      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9575      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9576
9577      archive_cmds=''
9578      hardcode_direct=yes
9579      hardcode_direct_absolute=yes
9580      hardcode_libdir_separator=':'
9581      link_all_deplibs=yes
9582      file_list_spec='$wl-f,'
9583      case $with_aix_soname,$aix_use_runtimelinking in
9584      aix,*) ;; # traditional, no import file
9585      svr4,* | *,yes) # use import file
9586	# The Import File defines what to hardcode.
9587	hardcode_direct=no
9588	hardcode_direct_absolute=no
9589	;;
9590      esac
9591
9592      if test yes = "$GCC"; then
9593	case $host_os in aix4.[012]|aix4.[012].*)
9594	# We only want to do this on AIX 4.2 and lower, the check
9595	# below for broken collect2 doesn't work under 4.3+
9596	  collect2name=`$CC -print-prog-name=collect2`
9597	  if test -f "$collect2name" &&
9598	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9599	  then
9600	  # We have reworked collect2
9601	  :
9602	  else
9603	  # We have old collect2
9604	  hardcode_direct=unsupported
9605	  # It fails to find uninstalled libraries when the uninstalled
9606	  # path is not listed in the libpath.  Setting hardcode_minus_L
9607	  # to unsupported forces relinking
9608	  hardcode_minus_L=yes
9609	  hardcode_libdir_flag_spec='-L$libdir'
9610	  hardcode_libdir_separator=
9611	  fi
9612	  ;;
9613	esac
9614	shared_flag='-shared'
9615	if test yes = "$aix_use_runtimelinking"; then
9616	  shared_flag="$shared_flag "'$wl-G'
9617	fi
9618	# Need to ensure runtime linking is disabled for the traditional
9619	# shared library, or the linker may eventually find shared libraries
9620	# /with/ Import File - we do not want to mix them.
9621	shared_flag_aix='-shared'
9622	shared_flag_svr4='-shared $wl-G'
9623      else
9624	# not using gcc
9625	if test ia64 = "$host_cpu"; then
9626	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9627	# chokes on -Wl,-G. The following line is correct:
9628	  shared_flag='-G'
9629	else
9630	  if test yes = "$aix_use_runtimelinking"; then
9631	    shared_flag='$wl-G'
9632	  else
9633	    shared_flag='$wl-bM:SRE'
9634	  fi
9635	  shared_flag_aix='$wl-bM:SRE'
9636	  shared_flag_svr4='$wl-G'
9637	fi
9638      fi
9639
9640      export_dynamic_flag_spec='$wl-bexpall'
9641      # It seems that -bexpall does not export symbols beginning with
9642      # underscore (_), so it is better to generate a list of symbols to export.
9643      always_export_symbols=yes
9644      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9645	# Warning - without using the other runtime loading flags (-brtl),
9646	# -berok will link without error, but may produce a broken library.
9647	allow_undefined_flag='-berok'
9648        # Determine the default libpath from the value encoded in an
9649        # empty executable.
9650        if test set = "${lt_cv_aix_libpath+set}"; then
9651  aix_libpath=$lt_cv_aix_libpath
9652else
9653  if ${lt_cv_aix_libpath_+:} false; then :
9654  $as_echo_n "(cached) " >&6
9655else
9656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658
9659int
9660main ()
9661{
9662
9663  ;
9664  return 0;
9665}
9666_ACEOF
9667if ac_fn_c_try_link "$LINENO"; then :
9668
9669  lt_aix_libpath_sed='
9670      /Import File Strings/,/^$/ {
9671	  /^0/ {
9672	      s/^0  *\([^ ]*\) *$/\1/
9673	      p
9674	  }
9675      }'
9676  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677  # Check for a 64-bit object if we didn't find anything.
9678  if test -z "$lt_cv_aix_libpath_"; then
9679    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9680  fi
9681fi
9682rm -f core conftest.err conftest.$ac_objext \
9683    conftest$ac_exeext conftest.$ac_ext
9684  if test -z "$lt_cv_aix_libpath_"; then
9685    lt_cv_aix_libpath_=/usr/lib:/lib
9686  fi
9687
9688fi
9689
9690  aix_libpath=$lt_cv_aix_libpath_
9691fi
9692
9693        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9694        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9695      else
9696	if test ia64 = "$host_cpu"; then
9697	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9698	  allow_undefined_flag="-z nodefs"
9699	  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"
9700	else
9701	 # Determine the default libpath from the value encoded in an
9702	 # empty executable.
9703	 if test set = "${lt_cv_aix_libpath+set}"; then
9704  aix_libpath=$lt_cv_aix_libpath
9705else
9706  if ${lt_cv_aix_libpath_+:} false; then :
9707  $as_echo_n "(cached) " >&6
9708else
9709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710/* end confdefs.h.  */
9711
9712int
9713main ()
9714{
9715
9716  ;
9717  return 0;
9718}
9719_ACEOF
9720if ac_fn_c_try_link "$LINENO"; then :
9721
9722  lt_aix_libpath_sed='
9723      /Import File Strings/,/^$/ {
9724	  /^0/ {
9725	      s/^0  *\([^ ]*\) *$/\1/
9726	      p
9727	  }
9728      }'
9729  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9730  # Check for a 64-bit object if we didn't find anything.
9731  if test -z "$lt_cv_aix_libpath_"; then
9732    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9733  fi
9734fi
9735rm -f core conftest.err conftest.$ac_objext \
9736    conftest$ac_exeext conftest.$ac_ext
9737  if test -z "$lt_cv_aix_libpath_"; then
9738    lt_cv_aix_libpath_=/usr/lib:/lib
9739  fi
9740
9741fi
9742
9743  aix_libpath=$lt_cv_aix_libpath_
9744fi
9745
9746	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9747	  # Warning - without using the other run time loading flags,
9748	  # -berok will link without error, but may produce a broken library.
9749	  no_undefined_flag=' $wl-bernotok'
9750	  allow_undefined_flag=' $wl-berok'
9751	  if test yes = "$with_gnu_ld"; then
9752	    # We only use this code for GNU lds that support --whole-archive.
9753	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9754	  else
9755	    # Exported symbols can be pulled into shared objects from archives
9756	    whole_archive_flag_spec='$convenience'
9757	  fi
9758	  archive_cmds_need_lc=yes
9759	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9760	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9761	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9762	  if test svr4 != "$with_aix_soname"; then
9763	    # This is similar to how AIX traditionally builds its shared libraries.
9764	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9765	  fi
9766	  if test aix != "$with_aix_soname"; then
9767	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9768	  else
9769	    # used by -dlpreopen to get the symbols
9770	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9771	  fi
9772	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9773	fi
9774      fi
9775      ;;
9776
9777    amigaos*)
9778      case $host_cpu in
9779      powerpc)
9780            # see comment about AmigaOS4 .so support
9781            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9782            archive_expsym_cmds=''
9783        ;;
9784      m68k)
9785            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)'
9786            hardcode_libdir_flag_spec='-L$libdir'
9787            hardcode_minus_L=yes
9788        ;;
9789      esac
9790      ;;
9791
9792    bsdi[45]*)
9793      export_dynamic_flag_spec=-rdynamic
9794      ;;
9795
9796    cygwin* | mingw* | pw32* | cegcc*)
9797      # When not using gcc, we currently assume that we are using
9798      # Microsoft Visual C++.
9799      # hardcode_libdir_flag_spec is actually meaningless, as there is
9800      # no search path for DLLs.
9801      case $cc_basename in
9802      cl*)
9803	# Native MSVC
9804	hardcode_libdir_flag_spec=' '
9805	allow_undefined_flag=unsupported
9806	always_export_symbols=yes
9807	file_list_spec='@'
9808	# Tell ltmain to make .lib files, not .a files.
9809	libext=lib
9810	# Tell ltmain to make .dll files, not .so files.
9811	shrext_cmds=.dll
9812	# FIXME: Setting linknames here is a bad hack.
9813	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9814	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9815            cp "$export_symbols" "$output_objdir/$soname.def";
9816            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9817          else
9818            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9819          fi~
9820          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9821          linknames='
9822	# The linker will not automatically build a static lib if we build a DLL.
9823	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9824	enable_shared_with_static_runtimes=yes
9825	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9826	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9827	# Don't use ranlib
9828	old_postinstall_cmds='chmod 644 $oldlib'
9829	postlink_cmds='lt_outputfile="@OUTPUT@"~
9830          lt_tool_outputfile="@TOOL_OUTPUT@"~
9831          case $lt_outputfile in
9832            *.exe|*.EXE) ;;
9833            *)
9834              lt_outputfile=$lt_outputfile.exe
9835              lt_tool_outputfile=$lt_tool_outputfile.exe
9836              ;;
9837          esac~
9838          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9839            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9840            $RM "$lt_outputfile.manifest";
9841          fi'
9842	;;
9843      *)
9844	# Assume MSVC wrapper
9845	hardcode_libdir_flag_spec=' '
9846	allow_undefined_flag=unsupported
9847	# Tell ltmain to make .lib files, not .a files.
9848	libext=lib
9849	# Tell ltmain to make .dll files, not .so files.
9850	shrext_cmds=.dll
9851	# FIXME: Setting linknames here is a bad hack.
9852	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9853	# The linker will automatically build a .lib file if we build a DLL.
9854	old_archive_from_new_cmds='true'
9855	# FIXME: Should let the user specify the lib program.
9856	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9857	enable_shared_with_static_runtimes=yes
9858	;;
9859      esac
9860      ;;
9861
9862    darwin* | rhapsody*)
9863
9864
9865  archive_cmds_need_lc=no
9866  hardcode_direct=no
9867  hardcode_automatic=yes
9868  hardcode_shlibpath_var=unsupported
9869  if test yes = "$lt_cv_ld_force_load"; then
9870    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\"`'
9871
9872  else
9873    whole_archive_flag_spec=''
9874  fi
9875  link_all_deplibs=yes
9876  allow_undefined_flag=$_lt_dar_allow_undefined
9877  case $cc_basename in
9878     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9879     *) _lt_dar_can_shared=$GCC ;;
9880  esac
9881  if test yes = "$_lt_dar_can_shared"; then
9882    output_verbose_link_cmd=func_echo_all
9883    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9884    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9885    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"
9886    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"
9887
9888  else
9889  ld_shlibs=no
9890  fi
9891
9892      ;;
9893
9894    dgux*)
9895      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896      hardcode_libdir_flag_spec='-L$libdir'
9897      hardcode_shlibpath_var=no
9898      ;;
9899
9900    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9901    # support.  Future versions do this automatically, but an explicit c++rt0.o
9902    # does not break anything, and helps significantly (at the cost of a little
9903    # extra space).
9904    freebsd2.2*)
9905      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9906      hardcode_libdir_flag_spec='-R$libdir'
9907      hardcode_direct=yes
9908      hardcode_shlibpath_var=no
9909      ;;
9910
9911    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9912    freebsd2.*)
9913      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9914      hardcode_direct=yes
9915      hardcode_minus_L=yes
9916      hardcode_shlibpath_var=no
9917      ;;
9918
9919    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9920    freebsd* | dragonfly*)
9921      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9922      hardcode_libdir_flag_spec='-R$libdir'
9923      hardcode_direct=yes
9924      hardcode_shlibpath_var=no
9925      ;;
9926
9927    hpux9*)
9928      if test yes = "$GCC"; then
9929	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9930      else
9931	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9932      fi
9933      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9934      hardcode_libdir_separator=:
9935      hardcode_direct=yes
9936
9937      # hardcode_minus_L: Not really in the search PATH,
9938      # but as the default location of the library.
9939      hardcode_minus_L=yes
9940      export_dynamic_flag_spec='$wl-E'
9941      ;;
9942
9943    hpux10*)
9944      if test yes,no = "$GCC,$with_gnu_ld"; then
9945	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9946      else
9947	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9948      fi
9949      if test no = "$with_gnu_ld"; then
9950	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9951	hardcode_libdir_separator=:
9952	hardcode_direct=yes
9953	hardcode_direct_absolute=yes
9954	export_dynamic_flag_spec='$wl-E'
9955	# hardcode_minus_L: Not really in the search PATH,
9956	# but as the default location of the library.
9957	hardcode_minus_L=yes
9958      fi
9959      ;;
9960
9961    hpux11*)
9962      if test yes,no = "$GCC,$with_gnu_ld"; then
9963	case $host_cpu in
9964	hppa*64*)
9965	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9966	  ;;
9967	ia64*)
9968	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9969	  ;;
9970	*)
9971	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9972	  ;;
9973	esac
9974      else
9975	case $host_cpu in
9976	hppa*64*)
9977	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9978	  ;;
9979	ia64*)
9980	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9981	  ;;
9982	*)
9983
9984	  # Older versions of the 11.00 compiler do not understand -b yet
9985	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9986	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9987$as_echo_n "checking if $CC understands -b... " >&6; }
9988if ${lt_cv_prog_compiler__b+:} false; then :
9989  $as_echo_n "(cached) " >&6
9990else
9991  lt_cv_prog_compiler__b=no
9992   save_LDFLAGS=$LDFLAGS
9993   LDFLAGS="$LDFLAGS -b"
9994   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9995   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9996     # The linker can only warn and ignore the option if not recognized
9997     # So say no if there are warnings
9998     if test -s conftest.err; then
9999       # Append any errors to the config.log.
10000       cat conftest.err 1>&5
10001       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10002       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10003       if diff conftest.exp conftest.er2 >/dev/null; then
10004         lt_cv_prog_compiler__b=yes
10005       fi
10006     else
10007       lt_cv_prog_compiler__b=yes
10008     fi
10009   fi
10010   $RM -r conftest*
10011   LDFLAGS=$save_LDFLAGS
10012
10013fi
10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10015$as_echo "$lt_cv_prog_compiler__b" >&6; }
10016
10017if test yes = "$lt_cv_prog_compiler__b"; then
10018    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10019else
10020    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10021fi
10022
10023	  ;;
10024	esac
10025      fi
10026      if test no = "$with_gnu_ld"; then
10027	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10028	hardcode_libdir_separator=:
10029
10030	case $host_cpu in
10031	hppa*64*|ia64*)
10032	  hardcode_direct=no
10033	  hardcode_shlibpath_var=no
10034	  ;;
10035	*)
10036	  hardcode_direct=yes
10037	  hardcode_direct_absolute=yes
10038	  export_dynamic_flag_spec='$wl-E'
10039
10040	  # hardcode_minus_L: Not really in the search PATH,
10041	  # but as the default location of the library.
10042	  hardcode_minus_L=yes
10043	  ;;
10044	esac
10045      fi
10046      ;;
10047
10048    irix5* | irix6* | nonstopux*)
10049      if test yes = "$GCC"; then
10050	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'
10051	# Try to use the -exported_symbol ld option, if it does not
10052	# work, assume that -exports_file does not work either and
10053	# implicitly export all symbols.
10054	# This should be the same for all languages, so no per-tag cache variable.
10055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10056$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10057if ${lt_cv_irix_exported_symbol+:} false; then :
10058  $as_echo_n "(cached) " >&6
10059else
10060  save_LDFLAGS=$LDFLAGS
10061	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10062	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063/* end confdefs.h.  */
10064int foo (void) { return 0; }
10065_ACEOF
10066if ac_fn_c_try_link "$LINENO"; then :
10067  lt_cv_irix_exported_symbol=yes
10068else
10069  lt_cv_irix_exported_symbol=no
10070fi
10071rm -f core conftest.err conftest.$ac_objext \
10072    conftest$ac_exeext conftest.$ac_ext
10073           LDFLAGS=$save_LDFLAGS
10074fi
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10076$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10077	if test yes = "$lt_cv_irix_exported_symbol"; then
10078          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'
10079	fi
10080      else
10081	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'
10082	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'
10083      fi
10084      archive_cmds_need_lc='no'
10085      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10086      hardcode_libdir_separator=:
10087      inherit_rpath=yes
10088      link_all_deplibs=yes
10089      ;;
10090
10091    linux*)
10092      case $cc_basename in
10093      tcc*)
10094	# Fabrice Bellard et al's Tiny C Compiler
10095	ld_shlibs=yes
10096	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10097	;;
10098      esac
10099      ;;
10100
10101    netbsd*)
10102      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10103	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10104      else
10105	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10106      fi
10107      hardcode_libdir_flag_spec='-R$libdir'
10108      hardcode_direct=yes
10109      hardcode_shlibpath_var=no
10110      ;;
10111
10112    newsos6)
10113      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114      hardcode_direct=yes
10115      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10116      hardcode_libdir_separator=:
10117      hardcode_shlibpath_var=no
10118      ;;
10119
10120    *nto* | *qnx*)
10121      ;;
10122
10123    openbsd* | bitrig*)
10124      if test -f /usr/libexec/ld.so; then
10125	hardcode_direct=yes
10126	hardcode_shlibpath_var=no
10127	hardcode_direct_absolute=yes
10128	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10129	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10130	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10131	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10132	  export_dynamic_flag_spec='$wl-E'
10133	else
10134	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10135	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10136	fi
10137      else
10138	ld_shlibs=no
10139      fi
10140      ;;
10141
10142    os2*)
10143      hardcode_libdir_flag_spec='-L$libdir'
10144      hardcode_minus_L=yes
10145      allow_undefined_flag=unsupported
10146      shrext_cmds=.dll
10147      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10148	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10149	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10150	$ECHO EXPORTS >> $output_objdir/$libname.def~
10151	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10152	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10153	emximp -o $lib $output_objdir/$libname.def'
10154      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10155	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10156	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10157	$ECHO EXPORTS >> $output_objdir/$libname.def~
10158	prefix_cmds="$SED"~
10159	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10160	  prefix_cmds="$prefix_cmds -e 1d";
10161	fi~
10162	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10163	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10164	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10165	emximp -o $lib $output_objdir/$libname.def'
10166      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10167      enable_shared_with_static_runtimes=yes
10168      ;;
10169
10170    osf3*)
10171      if test yes = "$GCC"; then
10172	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10173	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'
10174      else
10175	allow_undefined_flag=' -expect_unresolved \*'
10176	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'
10177      fi
10178      archive_cmds_need_lc='no'
10179      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10180      hardcode_libdir_separator=:
10181      ;;
10182
10183    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10184      if test yes = "$GCC"; then
10185	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10186	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'
10187	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10188      else
10189	allow_undefined_flag=' -expect_unresolved \*'
10190	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'
10191	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~
10192          $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'
10193
10194	# Both c and cxx compiler support -rpath directly
10195	hardcode_libdir_flag_spec='-rpath $libdir'
10196      fi
10197      archive_cmds_need_lc='no'
10198      hardcode_libdir_separator=:
10199      ;;
10200
10201    solaris*)
10202      no_undefined_flag=' -z defs'
10203      if test yes = "$GCC"; then
10204	wlarc='$wl'
10205	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10206	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207          $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'
10208      else
10209	case `$CC -V 2>&1` in
10210	*"Compilers 5.0"*)
10211	  wlarc=''
10212	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10214            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10215	  ;;
10216	*)
10217	  wlarc='$wl'
10218	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10219	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10220            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10221	  ;;
10222	esac
10223      fi
10224      hardcode_libdir_flag_spec='-R$libdir'
10225      hardcode_shlibpath_var=no
10226      case $host_os in
10227      solaris2.[0-5] | solaris2.[0-5].*) ;;
10228      *)
10229	# The compiler driver will combine and reorder linker options,
10230	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10231	# but is careful enough not to reorder.
10232	# Supported since Solaris 2.6 (maybe 2.5.1?)
10233	if test yes = "$GCC"; then
10234	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10235	else
10236	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10237	fi
10238	;;
10239      esac
10240      link_all_deplibs=yes
10241      ;;
10242
10243    sunos4*)
10244      if test sequent = "$host_vendor"; then
10245	# Use $CC to link under sequent, because it throws in some extra .o
10246	# files that make .init and .fini sections work.
10247	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10248      else
10249	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10250      fi
10251      hardcode_libdir_flag_spec='-L$libdir'
10252      hardcode_direct=yes
10253      hardcode_minus_L=yes
10254      hardcode_shlibpath_var=no
10255      ;;
10256
10257    sysv4)
10258      case $host_vendor in
10259	sni)
10260	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10261	  hardcode_direct=yes # is this really true???
10262	;;
10263	siemens)
10264	  ## LD is ld it makes a PLAMLIB
10265	  ## CC just makes a GrossModule.
10266	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10267	  reload_cmds='$CC -r -o $output$reload_objs'
10268	  hardcode_direct=no
10269        ;;
10270	motorola)
10271	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10272	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10273	;;
10274      esac
10275      runpath_var='LD_RUN_PATH'
10276      hardcode_shlibpath_var=no
10277      ;;
10278
10279    sysv4.3*)
10280      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281      hardcode_shlibpath_var=no
10282      export_dynamic_flag_spec='-Bexport'
10283      ;;
10284
10285    sysv4*MP*)
10286      if test -d /usr/nec; then
10287	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288	hardcode_shlibpath_var=no
10289	runpath_var=LD_RUN_PATH
10290	hardcode_runpath_var=yes
10291	ld_shlibs=yes
10292      fi
10293      ;;
10294
10295    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10296      no_undefined_flag='$wl-z,text'
10297      archive_cmds_need_lc=no
10298      hardcode_shlibpath_var=no
10299      runpath_var='LD_RUN_PATH'
10300
10301      if test yes = "$GCC"; then
10302	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10303	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10304      else
10305	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10306	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10307      fi
10308      ;;
10309
10310    sysv5* | sco3.2v5* | sco5v6*)
10311      # Note: We CANNOT use -z defs as we might desire, because we do not
10312      # link with -lc, and that would cause any symbols used from libc to
10313      # always be unresolved, which means just about no library would
10314      # ever link correctly.  If we're not using GNU ld we use -z text
10315      # though, which does catch some bad symbols but isn't as heavy-handed
10316      # as -z defs.
10317      no_undefined_flag='$wl-z,text'
10318      allow_undefined_flag='$wl-z,nodefs'
10319      archive_cmds_need_lc=no
10320      hardcode_shlibpath_var=no
10321      hardcode_libdir_flag_spec='$wl-R,$libdir'
10322      hardcode_libdir_separator=':'
10323      link_all_deplibs=yes
10324      export_dynamic_flag_spec='$wl-Bexport'
10325      runpath_var='LD_RUN_PATH'
10326
10327      if test yes = "$GCC"; then
10328	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330      else
10331	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10332	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333      fi
10334      ;;
10335
10336    uts4*)
10337      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338      hardcode_libdir_flag_spec='-L$libdir'
10339      hardcode_shlibpath_var=no
10340      ;;
10341
10342    *)
10343      ld_shlibs=no
10344      ;;
10345    esac
10346
10347    if test sni = "$host_vendor"; then
10348      case $host in
10349      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10350	export_dynamic_flag_spec='$wl-Blargedynsym'
10351	;;
10352      esac
10353    fi
10354  fi
10355
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10357$as_echo "$ld_shlibs" >&6; }
10358test no = "$ld_shlibs" && can_build_shared=no
10359
10360with_gnu_ld=$with_gnu_ld
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376#
10377# Do we need to explicitly link libc?
10378#
10379case "x$archive_cmds_need_lc" in
10380x|xyes)
10381  # Assume -lc should be added
10382  archive_cmds_need_lc=yes
10383
10384  if test yes,yes = "$GCC,$enable_shared"; then
10385    case $archive_cmds in
10386    *'~'*)
10387      # FIXME: we may have to deal with multi-command sequences.
10388      ;;
10389    '$CC '*)
10390      # Test whether the compiler implicitly links with -lc since on some
10391      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10392      # to ld, don't add -lc before -lgcc.
10393      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10394$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10395if ${lt_cv_archive_cmds_need_lc+:} false; then :
10396  $as_echo_n "(cached) " >&6
10397else
10398  $RM conftest*
10399	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10400
10401	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10402  (eval $ac_compile) 2>&5
10403  ac_status=$?
10404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10405  test $ac_status = 0; } 2>conftest.err; then
10406	  soname=conftest
10407	  lib=conftest
10408	  libobjs=conftest.$ac_objext
10409	  deplibs=
10410	  wl=$lt_prog_compiler_wl
10411	  pic_flag=$lt_prog_compiler_pic
10412	  compiler_flags=-v
10413	  linker_flags=-v
10414	  verstring=
10415	  output_objdir=.
10416	  libname=conftest
10417	  lt_save_allow_undefined_flag=$allow_undefined_flag
10418	  allow_undefined_flag=
10419	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10420  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10421  ac_status=$?
10422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10423  test $ac_status = 0; }
10424	  then
10425	    lt_cv_archive_cmds_need_lc=no
10426	  else
10427	    lt_cv_archive_cmds_need_lc=yes
10428	  fi
10429	  allow_undefined_flag=$lt_save_allow_undefined_flag
10430	else
10431	  cat conftest.err 1>&5
10432	fi
10433	$RM conftest*
10434
10435fi
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10437$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10438      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10439      ;;
10440    esac
10441  fi
10442  ;;
10443esac
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
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10597$as_echo_n "checking dynamic linker characteristics... " >&6; }
10598
10599if test yes = "$GCC"; then
10600  case $host_os in
10601    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10602    *) lt_awk_arg='/^libraries:/' ;;
10603  esac
10604  case $host_os in
10605    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10606    *) lt_sed_strip_eq='s|=/|/|g' ;;
10607  esac
10608  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10609  case $lt_search_path_spec in
10610  *\;*)
10611    # if the path contains ";" then we assume it to be the separator
10612    # otherwise default to the standard path separator (i.e. ":") - it is
10613    # assumed that no part of a normal pathname contains ";" but that should
10614    # okay in the real world where ";" in dirpaths is itself problematic.
10615    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10616    ;;
10617  *)
10618    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10619    ;;
10620  esac
10621  # Ok, now we have the path, separated by spaces, we can step through it
10622  # and add multilib dir if necessary...
10623  lt_tmp_lt_search_path_spec=
10624  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10625  # ...but if some path component already ends with the multilib dir we assume
10626  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10627  case "$lt_multi_os_dir; $lt_search_path_spec " in
10628  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10629    lt_multi_os_dir=
10630    ;;
10631  esac
10632  for lt_sys_path in $lt_search_path_spec; do
10633    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10634      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10635    elif test -n "$lt_multi_os_dir"; then
10636      test -d "$lt_sys_path" && \
10637	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10638    fi
10639  done
10640  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10641BEGIN {RS = " "; FS = "/|\n";} {
10642  lt_foo = "";
10643  lt_count = 0;
10644  for (lt_i = NF; lt_i > 0; lt_i--) {
10645    if ($lt_i != "" && $lt_i != ".") {
10646      if ($lt_i == "..") {
10647        lt_count++;
10648      } else {
10649        if (lt_count == 0) {
10650          lt_foo = "/" $lt_i lt_foo;
10651        } else {
10652          lt_count--;
10653        }
10654      }
10655    }
10656  }
10657  if (lt_foo != "") { lt_freq[lt_foo]++; }
10658  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10659}'`
10660  # AWK program above erroneously prepends '/' to C:/dos/paths
10661  # for these hosts.
10662  case $host_os in
10663    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10664      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10665  esac
10666  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10667else
10668  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10669fi
10670library_names_spec=
10671libname_spec='lib$name'
10672soname_spec=
10673shrext_cmds=.so
10674postinstall_cmds=
10675postuninstall_cmds=
10676finish_cmds=
10677finish_eval=
10678shlibpath_var=
10679shlibpath_overrides_runpath=unknown
10680version_type=none
10681dynamic_linker="$host_os ld.so"
10682sys_lib_dlsearch_path_spec="/lib /usr/lib"
10683need_lib_prefix=unknown
10684hardcode_into_libs=no
10685
10686# when you set need_version to no, make sure it does not cause -set_version
10687# flags to be left without arguments
10688need_version=unknown
10689
10690
10691
10692case $host_os in
10693aix3*)
10694  version_type=linux # correct to gnu/linux during the next big refactor
10695  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10696  shlibpath_var=LIBPATH
10697
10698  # AIX 3 has no versioning support, so we append a major version to the name.
10699  soname_spec='$libname$release$shared_ext$major'
10700  ;;
10701
10702aix[4-9]*)
10703  version_type=linux # correct to gnu/linux during the next big refactor
10704  need_lib_prefix=no
10705  need_version=no
10706  hardcode_into_libs=yes
10707  if test ia64 = "$host_cpu"; then
10708    # AIX 5 supports IA64
10709    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10710    shlibpath_var=LD_LIBRARY_PATH
10711  else
10712    # With GCC up to 2.95.x, collect2 would create an import file
10713    # for dependence libraries.  The import file would start with
10714    # the line '#! .'.  This would cause the generated library to
10715    # depend on '.', always an invalid library.  This was fixed in
10716    # development snapshots of GCC prior to 3.0.
10717    case $host_os in
10718      aix4 | aix4.[01] | aix4.[01].*)
10719      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10720	   echo ' yes '
10721	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10722	:
10723      else
10724	can_build_shared=no
10725      fi
10726      ;;
10727    esac
10728    # Using Import Files as archive members, it is possible to support
10729    # filename-based versioning of shared library archives on AIX. While
10730    # this would work for both with and without runtime linking, it will
10731    # prevent static linking of such archives. So we do filename-based
10732    # shared library versioning with .so extension only, which is used
10733    # when both runtime linking and shared linking is enabled.
10734    # Unfortunately, runtime linking may impact performance, so we do
10735    # not want this to be the default eventually. Also, we use the
10736    # versioned .so libs for executables only if there is the -brtl
10737    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10738    # To allow for filename-based versioning support, we need to create
10739    # libNAME.so.V as an archive file, containing:
10740    # *) an Import File, referring to the versioned filename of the
10741    #    archive as well as the shared archive member, telling the
10742    #    bitwidth (32 or 64) of that shared object, and providing the
10743    #    list of exported symbols of that shared object, eventually
10744    #    decorated with the 'weak' keyword
10745    # *) the shared object with the F_LOADONLY flag set, to really avoid
10746    #    it being seen by the linker.
10747    # At run time we better use the real file rather than another symlink,
10748    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10749
10750    case $with_aix_soname,$aix_use_runtimelinking in
10751    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10752    # soname into executable. Probably we can add versioning support to
10753    # collect2, so additional links can be useful in future.
10754    aix,yes) # traditional libtool
10755      dynamic_linker='AIX unversionable lib.so'
10756      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10757      # instead of lib<name>.a to let people know that these are not
10758      # typical AIX shared libraries.
10759      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10760      ;;
10761    aix,no) # traditional AIX only
10762      dynamic_linker='AIX lib.a(lib.so.V)'
10763      # We preserve .a as extension for shared libraries through AIX4.2
10764      # and later when we are not doing run time linking.
10765      library_names_spec='$libname$release.a $libname.a'
10766      soname_spec='$libname$release$shared_ext$major'
10767      ;;
10768    svr4,*) # full svr4 only
10769      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10770      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10771      # We do not specify a path in Import Files, so LIBPATH fires.
10772      shlibpath_overrides_runpath=yes
10773      ;;
10774    *,yes) # both, prefer svr4
10775      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10776      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10777      # unpreferred sharedlib libNAME.a needs extra handling
10778      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10779      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10780      # We do not specify a path in Import Files, so LIBPATH fires.
10781      shlibpath_overrides_runpath=yes
10782      ;;
10783    *,no) # both, prefer aix
10784      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10785      library_names_spec='$libname$release.a $libname.a'
10786      soname_spec='$libname$release$shared_ext$major'
10787      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10788      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10789      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10790      ;;
10791    esac
10792    shlibpath_var=LIBPATH
10793  fi
10794  ;;
10795
10796amigaos*)
10797  case $host_cpu in
10798  powerpc)
10799    # Since July 2007 AmigaOS4 officially supports .so libraries.
10800    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10801    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10802    ;;
10803  m68k)
10804    library_names_spec='$libname.ixlibrary $libname.a'
10805    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10806    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10807    ;;
10808  esac
10809  ;;
10810
10811beos*)
10812  library_names_spec='$libname$shared_ext'
10813  dynamic_linker="$host_os ld.so"
10814  shlibpath_var=LIBRARY_PATH
10815  ;;
10816
10817bsdi[45]*)
10818  version_type=linux # correct to gnu/linux during the next big refactor
10819  need_version=no
10820  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10821  soname_spec='$libname$release$shared_ext$major'
10822  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10823  shlibpath_var=LD_LIBRARY_PATH
10824  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10825  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10826  # the default ld.so.conf also contains /usr/contrib/lib and
10827  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10828  # libtool to hard-code these into programs
10829  ;;
10830
10831cygwin* | mingw* | pw32* | cegcc*)
10832  version_type=windows
10833  shrext_cmds=.dll
10834  need_version=no
10835  need_lib_prefix=no
10836
10837  case $GCC,$cc_basename in
10838  yes,*)
10839    # gcc
10840    library_names_spec='$libname.dll.a'
10841    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10842    postinstall_cmds='base_file=`basename \$file`~
10843      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10844      dldir=$destdir/`dirname \$dlpath`~
10845      test -d \$dldir || mkdir -p \$dldir~
10846      $install_prog $dir/$dlname \$dldir/$dlname~
10847      chmod a+x \$dldir/$dlname~
10848      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10849        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10850      fi'
10851    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10852      dlpath=$dir/\$dldll~
10853       $RM \$dlpath'
10854    shlibpath_overrides_runpath=yes
10855
10856    case $host_os in
10857    cygwin*)
10858      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10859      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10860
10861      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10862      ;;
10863    mingw* | cegcc*)
10864      # MinGW DLLs use traditional 'lib' prefix
10865      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10866      ;;
10867    pw32*)
10868      # pw32 DLLs use 'pw' prefix rather than 'lib'
10869      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10870      ;;
10871    esac
10872    dynamic_linker='Win32 ld.exe'
10873    ;;
10874
10875  *,cl*)
10876    # Native MSVC
10877    libname_spec='$name'
10878    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10879    library_names_spec='$libname.dll.lib'
10880
10881    case $build_os in
10882    mingw*)
10883      sys_lib_search_path_spec=
10884      lt_save_ifs=$IFS
10885      IFS=';'
10886      for lt_path in $LIB
10887      do
10888        IFS=$lt_save_ifs
10889        # Let DOS variable expansion print the short 8.3 style file name.
10890        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10891        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10892      done
10893      IFS=$lt_save_ifs
10894      # Convert to MSYS style.
10895      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10896      ;;
10897    cygwin*)
10898      # Convert to unix form, then to dos form, then back to unix form
10899      # but this time dos style (no spaces!) so that the unix form looks
10900      # like /cygdrive/c/PROGRA~1:/cygdr...
10901      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10902      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10903      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10904      ;;
10905    *)
10906      sys_lib_search_path_spec=$LIB
10907      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10908        # It is most probably a Windows format PATH.
10909        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10910      else
10911        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10912      fi
10913      # FIXME: find the short name or the path components, as spaces are
10914      # common. (e.g. "Program Files" -> "PROGRA~1")
10915      ;;
10916    esac
10917
10918    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10919    postinstall_cmds='base_file=`basename \$file`~
10920      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10921      dldir=$destdir/`dirname \$dlpath`~
10922      test -d \$dldir || mkdir -p \$dldir~
10923      $install_prog $dir/$dlname \$dldir/$dlname'
10924    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10925      dlpath=$dir/\$dldll~
10926       $RM \$dlpath'
10927    shlibpath_overrides_runpath=yes
10928    dynamic_linker='Win32 link.exe'
10929    ;;
10930
10931  *)
10932    # Assume MSVC wrapper
10933    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10934    dynamic_linker='Win32 ld.exe'
10935    ;;
10936  esac
10937  # FIXME: first we should search . and the directory the executable is in
10938  shlibpath_var=PATH
10939  ;;
10940
10941darwin* | rhapsody*)
10942  dynamic_linker="$host_os dyld"
10943  version_type=darwin
10944  need_lib_prefix=no
10945  need_version=no
10946  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10947  soname_spec='$libname$release$major$shared_ext'
10948  shlibpath_overrides_runpath=yes
10949  shlibpath_var=DYLD_LIBRARY_PATH
10950  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10951
10952  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10953  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10954  ;;
10955
10956dgux*)
10957  version_type=linux # correct to gnu/linux during the next big refactor
10958  need_lib_prefix=no
10959  need_version=no
10960  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10961  soname_spec='$libname$release$shared_ext$major'
10962  shlibpath_var=LD_LIBRARY_PATH
10963  ;;
10964
10965freebsd* | dragonfly*)
10966  # DragonFly does not have aout.  When/if they implement a new
10967  # versioning mechanism, adjust this.
10968  if test -x /usr/bin/objformat; then
10969    objformat=`/usr/bin/objformat`
10970  else
10971    case $host_os in
10972    freebsd[23].*) objformat=aout ;;
10973    *) objformat=elf ;;
10974    esac
10975  fi
10976  version_type=freebsd-$objformat
10977  case $version_type in
10978    freebsd-elf*)
10979      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10980      soname_spec='$libname$release$shared_ext$major'
10981      need_version=no
10982      need_lib_prefix=no
10983      ;;
10984    freebsd-*)
10985      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10986      need_version=yes
10987      ;;
10988  esac
10989  shlibpath_var=LD_LIBRARY_PATH
10990  case $host_os in
10991  freebsd2.*)
10992    shlibpath_overrides_runpath=yes
10993    ;;
10994  freebsd3.[01]* | freebsdelf3.[01]*)
10995    shlibpath_overrides_runpath=yes
10996    hardcode_into_libs=yes
10997    ;;
10998  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10999  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11000    shlibpath_overrides_runpath=no
11001    hardcode_into_libs=yes
11002    ;;
11003  *) # from 4.6 on, and DragonFly
11004    shlibpath_overrides_runpath=yes
11005    hardcode_into_libs=yes
11006    ;;
11007  esac
11008  ;;
11009
11010haiku*)
11011  version_type=linux # correct to gnu/linux during the next big refactor
11012  need_lib_prefix=no
11013  need_version=no
11014  dynamic_linker="$host_os runtime_loader"
11015  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11016  soname_spec='$libname$release$shared_ext$major'
11017  shlibpath_var=LIBRARY_PATH
11018  shlibpath_overrides_runpath=no
11019  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11020  hardcode_into_libs=yes
11021  ;;
11022
11023hpux9* | hpux10* | hpux11*)
11024  # Give a soname corresponding to the major version so that dld.sl refuses to
11025  # link against other versions.
11026  version_type=sunos
11027  need_lib_prefix=no
11028  need_version=no
11029  case $host_cpu in
11030  ia64*)
11031    shrext_cmds='.so'
11032    hardcode_into_libs=yes
11033    dynamic_linker="$host_os dld.so"
11034    shlibpath_var=LD_LIBRARY_PATH
11035    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11036    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11037    soname_spec='$libname$release$shared_ext$major'
11038    if test 32 = "$HPUX_IA64_MODE"; then
11039      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11040      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11041    else
11042      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11043      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11044    fi
11045    ;;
11046  hppa*64*)
11047    shrext_cmds='.sl'
11048    hardcode_into_libs=yes
11049    dynamic_linker="$host_os dld.sl"
11050    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11051    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11052    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11053    soname_spec='$libname$release$shared_ext$major'
11054    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11055    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11056    ;;
11057  *)
11058    shrext_cmds='.sl'
11059    dynamic_linker="$host_os dld.sl"
11060    shlibpath_var=SHLIB_PATH
11061    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11062    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11063    soname_spec='$libname$release$shared_ext$major'
11064    ;;
11065  esac
11066  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11067  postinstall_cmds='chmod 555 $lib'
11068  # or fails outright, so override atomically:
11069  install_override_mode=555
11070  ;;
11071
11072interix[3-9]*)
11073  version_type=linux # correct to gnu/linux during the next big refactor
11074  need_lib_prefix=no
11075  need_version=no
11076  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11077  soname_spec='$libname$release$shared_ext$major'
11078  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11079  shlibpath_var=LD_LIBRARY_PATH
11080  shlibpath_overrides_runpath=no
11081  hardcode_into_libs=yes
11082  ;;
11083
11084irix5* | irix6* | nonstopux*)
11085  case $host_os in
11086    nonstopux*) version_type=nonstopux ;;
11087    *)
11088	if test yes = "$lt_cv_prog_gnu_ld"; then
11089		version_type=linux # correct to gnu/linux during the next big refactor
11090	else
11091		version_type=irix
11092	fi ;;
11093  esac
11094  need_lib_prefix=no
11095  need_version=no
11096  soname_spec='$libname$release$shared_ext$major'
11097  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11098  case $host_os in
11099  irix5* | nonstopux*)
11100    libsuff= shlibsuff=
11101    ;;
11102  *)
11103    case $LD in # libtool.m4 will add one of these switches to LD
11104    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11105      libsuff= shlibsuff= libmagic=32-bit;;
11106    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11107      libsuff=32 shlibsuff=N32 libmagic=N32;;
11108    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11109      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11110    *) libsuff= shlibsuff= libmagic=never-match;;
11111    esac
11112    ;;
11113  esac
11114  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11115  shlibpath_overrides_runpath=no
11116  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11117  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11118  hardcode_into_libs=yes
11119  ;;
11120
11121# No shared lib support for Linux oldld, aout, or coff.
11122linux*oldld* | linux*aout* | linux*coff*)
11123  dynamic_linker=no
11124  ;;
11125
11126linux*android*)
11127  version_type=none # Android doesn't support versioned libraries.
11128  need_lib_prefix=no
11129  need_version=no
11130  library_names_spec='$libname$release$shared_ext'
11131  soname_spec='$libname$release$shared_ext'
11132  finish_cmds=
11133  shlibpath_var=LD_LIBRARY_PATH
11134  shlibpath_overrides_runpath=yes
11135
11136  # This implies no fast_install, which is unacceptable.
11137  # Some rework will be needed to allow for fast_install
11138  # before this can be enabled.
11139  hardcode_into_libs=yes
11140
11141  dynamic_linker='Android linker'
11142  # Don't embed -rpath directories since the linker doesn't support them.
11143  hardcode_libdir_flag_spec='-L$libdir'
11144  ;;
11145
11146# This must be glibc/ELF.
11147linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11148  version_type=linux # correct to gnu/linux during the next big refactor
11149  need_lib_prefix=no
11150  need_version=no
11151  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11152  soname_spec='$libname$release$shared_ext$major'
11153  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11154  shlibpath_var=LD_LIBRARY_PATH
11155  shlibpath_overrides_runpath=no
11156
11157  # Some binutils ld are patched to set DT_RUNPATH
11158  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11159  $as_echo_n "(cached) " >&6
11160else
11161  lt_cv_shlibpath_overrides_runpath=no
11162    save_LDFLAGS=$LDFLAGS
11163    save_libdir=$libdir
11164    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11165	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11166    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167/* end confdefs.h.  */
11168
11169int
11170main ()
11171{
11172
11173  ;
11174  return 0;
11175}
11176_ACEOF
11177if ac_fn_c_try_link "$LINENO"; then :
11178  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11179  lt_cv_shlibpath_overrides_runpath=yes
11180fi
11181fi
11182rm -f core conftest.err conftest.$ac_objext \
11183    conftest$ac_exeext conftest.$ac_ext
11184    LDFLAGS=$save_LDFLAGS
11185    libdir=$save_libdir
11186
11187fi
11188
11189  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11190
11191  # This implies no fast_install, which is unacceptable.
11192  # Some rework will be needed to allow for fast_install
11193  # before this can be enabled.
11194  hardcode_into_libs=yes
11195
11196  # Add ABI-specific directories to the system library path.
11197  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11198
11199  # Ideally, we could use ldconfig to report *all* directores which are
11200  # searched for libraries, however this is still not possible.  Aside from not
11201  # being certain /sbin/ldconfig is available, command
11202  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11203  # even though it is searched at run-time.  Try to do the best guess by
11204  # appending ld.so.conf contents (and includes) to the search path.
11205  if test -f /etc/ld.so.conf; then
11206    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' ' '`
11207    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11208  fi
11209
11210  # We used to test for /lib/ld.so.1 and disable shared libraries on
11211  # powerpc, because MkLinux only supported shared libraries with the
11212  # GNU dynamic linker.  Since this was broken with cross compilers,
11213  # most powerpc-linux boxes support dynamic linking these days and
11214  # people can always --disable-shared, the test was removed, and we
11215  # assume the GNU/Linux dynamic linker is in use.
11216  dynamic_linker='GNU/Linux ld.so'
11217  ;;
11218
11219netbsd*)
11220  version_type=sunos
11221  need_lib_prefix=no
11222  need_version=no
11223  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11224    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11225    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11226    dynamic_linker='NetBSD (a.out) ld.so'
11227  else
11228    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11229    soname_spec='$libname$release$shared_ext$major'
11230    dynamic_linker='NetBSD ld.elf_so'
11231  fi
11232  shlibpath_var=LD_LIBRARY_PATH
11233  shlibpath_overrides_runpath=yes
11234  hardcode_into_libs=yes
11235  ;;
11236
11237newsos6)
11238  version_type=linux # correct to gnu/linux during the next big refactor
11239  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11240  shlibpath_var=LD_LIBRARY_PATH
11241  shlibpath_overrides_runpath=yes
11242  ;;
11243
11244*nto* | *qnx*)
11245  version_type=qnx
11246  need_lib_prefix=no
11247  need_version=no
11248  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11249  soname_spec='$libname$release$shared_ext$major'
11250  shlibpath_var=LD_LIBRARY_PATH
11251  shlibpath_overrides_runpath=no
11252  hardcode_into_libs=yes
11253  dynamic_linker='ldqnx.so'
11254  ;;
11255
11256openbsd* | bitrig*)
11257  version_type=sunos
11258  sys_lib_dlsearch_path_spec=/usr/lib
11259  need_lib_prefix=no
11260  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11261    need_version=no
11262  else
11263    need_version=yes
11264  fi
11265  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11266  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11267  shlibpath_var=LD_LIBRARY_PATH
11268  shlibpath_overrides_runpath=yes
11269  ;;
11270
11271os2*)
11272  libname_spec='$name'
11273  version_type=windows
11274  shrext_cmds=.dll
11275  need_version=no
11276  need_lib_prefix=no
11277  # OS/2 can only load a DLL with a base name of 8 characters or less.
11278  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11279    v=$($ECHO $release$versuffix | tr -d .-);
11280    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11281    $ECHO $n$v`$shared_ext'
11282  library_names_spec='${libname}_dll.$libext'
11283  dynamic_linker='OS/2 ld.exe'
11284  shlibpath_var=BEGINLIBPATH
11285  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11286  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11287  postinstall_cmds='base_file=`basename \$file`~
11288    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11289    dldir=$destdir/`dirname \$dlpath`~
11290    test -d \$dldir || mkdir -p \$dldir~
11291    $install_prog $dir/$dlname \$dldir/$dlname~
11292    chmod a+x \$dldir/$dlname~
11293    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11294      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11295    fi'
11296  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11297    dlpath=$dir/\$dldll~
11298    $RM \$dlpath'
11299  ;;
11300
11301osf3* | osf4* | osf5*)
11302  version_type=osf
11303  need_lib_prefix=no
11304  need_version=no
11305  soname_spec='$libname$release$shared_ext$major'
11306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11307  shlibpath_var=LD_LIBRARY_PATH
11308  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11309  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11310  ;;
11311
11312rdos*)
11313  dynamic_linker=no
11314  ;;
11315
11316solaris*)
11317  version_type=linux # correct to gnu/linux during the next big refactor
11318  need_lib_prefix=no
11319  need_version=no
11320  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11321  soname_spec='$libname$release$shared_ext$major'
11322  shlibpath_var=LD_LIBRARY_PATH
11323  shlibpath_overrides_runpath=yes
11324  hardcode_into_libs=yes
11325  # ldd complains unless libraries are executable
11326  postinstall_cmds='chmod +x $lib'
11327  ;;
11328
11329sunos4*)
11330  version_type=sunos
11331  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11332  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11333  shlibpath_var=LD_LIBRARY_PATH
11334  shlibpath_overrides_runpath=yes
11335  if test yes = "$with_gnu_ld"; then
11336    need_lib_prefix=no
11337  fi
11338  need_version=yes
11339  ;;
11340
11341sysv4 | sysv4.3*)
11342  version_type=linux # correct to gnu/linux during the next big refactor
11343  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11344  soname_spec='$libname$release$shared_ext$major'
11345  shlibpath_var=LD_LIBRARY_PATH
11346  case $host_vendor in
11347    sni)
11348      shlibpath_overrides_runpath=no
11349      need_lib_prefix=no
11350      runpath_var=LD_RUN_PATH
11351      ;;
11352    siemens)
11353      need_lib_prefix=no
11354      ;;
11355    motorola)
11356      need_lib_prefix=no
11357      need_version=no
11358      shlibpath_overrides_runpath=no
11359      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11360      ;;
11361  esac
11362  ;;
11363
11364sysv4*MP*)
11365  if test -d /usr/nec; then
11366    version_type=linux # correct to gnu/linux during the next big refactor
11367    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11368    soname_spec='$libname$shared_ext.$major'
11369    shlibpath_var=LD_LIBRARY_PATH
11370  fi
11371  ;;
11372
11373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11374  version_type=sco
11375  need_lib_prefix=no
11376  need_version=no
11377  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11378  soname_spec='$libname$release$shared_ext$major'
11379  shlibpath_var=LD_LIBRARY_PATH
11380  shlibpath_overrides_runpath=yes
11381  hardcode_into_libs=yes
11382  if test yes = "$with_gnu_ld"; then
11383    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11384  else
11385    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11386    case $host_os in
11387      sco3.2v5*)
11388        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11389	;;
11390    esac
11391  fi
11392  sys_lib_dlsearch_path_spec='/usr/lib'
11393  ;;
11394
11395tpf*)
11396  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11397  version_type=linux # correct to gnu/linux during the next big refactor
11398  need_lib_prefix=no
11399  need_version=no
11400  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11401  shlibpath_var=LD_LIBRARY_PATH
11402  shlibpath_overrides_runpath=no
11403  hardcode_into_libs=yes
11404  ;;
11405
11406uts4*)
11407  version_type=linux # correct to gnu/linux during the next big refactor
11408  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11409  soname_spec='$libname$release$shared_ext$major'
11410  shlibpath_var=LD_LIBRARY_PATH
11411  ;;
11412
11413*)
11414  dynamic_linker=no
11415  ;;
11416esac
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11418$as_echo "$dynamic_linker" >&6; }
11419test no = "$dynamic_linker" && can_build_shared=no
11420
11421variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11422if test yes = "$GCC"; then
11423  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11424fi
11425
11426if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11427  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11428fi
11429
11430if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11431  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11432fi
11433
11434# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11435configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11436
11437# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11438func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11439
11440# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11441configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11540$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11541hardcode_action=
11542if test -n "$hardcode_libdir_flag_spec" ||
11543   test -n "$runpath_var" ||
11544   test yes = "$hardcode_automatic"; then
11545
11546  # We can hardcode non-existent directories.
11547  if test no != "$hardcode_direct" &&
11548     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11549     # have to relink, otherwise we might link with an installed library
11550     # when we should be linking with a yet-to-be-installed one
11551     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11552     test no != "$hardcode_minus_L"; then
11553    # Linking always hardcodes the temporary library directory.
11554    hardcode_action=relink
11555  else
11556    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11557    hardcode_action=immediate
11558  fi
11559else
11560  # We cannot hardcode anything, or else we can only hardcode existing
11561  # directories.
11562  hardcode_action=unsupported
11563fi
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11565$as_echo "$hardcode_action" >&6; }
11566
11567if test relink = "$hardcode_action" ||
11568   test yes = "$inherit_rpath"; then
11569  # Fast installation is not supported
11570  enable_fast_install=no
11571elif test yes = "$shlibpath_overrides_runpath" ||
11572     test no = "$enable_shared"; then
11573  # Fast installation is not necessary
11574  enable_fast_install=needless
11575fi
11576
11577
11578
11579
11580
11581
11582  if test yes != "$enable_dlopen"; then
11583  enable_dlopen=unknown
11584  enable_dlopen_self=unknown
11585  enable_dlopen_self_static=unknown
11586else
11587  lt_cv_dlopen=no
11588  lt_cv_dlopen_libs=
11589
11590  case $host_os in
11591  beos*)
11592    lt_cv_dlopen=load_add_on
11593    lt_cv_dlopen_libs=
11594    lt_cv_dlopen_self=yes
11595    ;;
11596
11597  mingw* | pw32* | cegcc*)
11598    lt_cv_dlopen=LoadLibrary
11599    lt_cv_dlopen_libs=
11600    ;;
11601
11602  cygwin*)
11603    lt_cv_dlopen=dlopen
11604    lt_cv_dlopen_libs=
11605    ;;
11606
11607  darwin*)
11608    # if libdl is installed we need to link against it
11609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11610$as_echo_n "checking for dlopen in -ldl... " >&6; }
11611if ${ac_cv_lib_dl_dlopen+:} false; then :
11612  $as_echo_n "(cached) " >&6
11613else
11614  ac_check_lib_save_LIBS=$LIBS
11615LIBS="-ldl  $LIBS"
11616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617/* end confdefs.h.  */
11618
11619/* Override any GCC internal prototype to avoid an error.
11620   Use char because int might match the return type of a GCC
11621   builtin and then its argument prototype would still apply.  */
11622#ifdef __cplusplus
11623extern "C"
11624#endif
11625char dlopen ();
11626int
11627main ()
11628{
11629return dlopen ();
11630  ;
11631  return 0;
11632}
11633_ACEOF
11634if ac_fn_c_try_link "$LINENO"; then :
11635  ac_cv_lib_dl_dlopen=yes
11636else
11637  ac_cv_lib_dl_dlopen=no
11638fi
11639rm -f core conftest.err conftest.$ac_objext \
11640    conftest$ac_exeext conftest.$ac_ext
11641LIBS=$ac_check_lib_save_LIBS
11642fi
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11644$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11645if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11646  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11647else
11648
11649    lt_cv_dlopen=dyld
11650    lt_cv_dlopen_libs=
11651    lt_cv_dlopen_self=yes
11652
11653fi
11654
11655    ;;
11656
11657  tpf*)
11658    # Don't try to run any link tests for TPF.  We know it's impossible
11659    # because TPF is a cross-compiler, and we know how we open DSOs.
11660    lt_cv_dlopen=dlopen
11661    lt_cv_dlopen_libs=
11662    lt_cv_dlopen_self=no
11663    ;;
11664
11665  *)
11666    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11667if test "x$ac_cv_func_shl_load" = xyes; then :
11668  lt_cv_dlopen=shl_load
11669else
11670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11671$as_echo_n "checking for shl_load in -ldld... " >&6; }
11672if ${ac_cv_lib_dld_shl_load+:} false; then :
11673  $as_echo_n "(cached) " >&6
11674else
11675  ac_check_lib_save_LIBS=$LIBS
11676LIBS="-ldld  $LIBS"
11677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678/* end confdefs.h.  */
11679
11680/* Override any GCC internal prototype to avoid an error.
11681   Use char because int might match the return type of a GCC
11682   builtin and then its argument prototype would still apply.  */
11683#ifdef __cplusplus
11684extern "C"
11685#endif
11686char shl_load ();
11687int
11688main ()
11689{
11690return shl_load ();
11691  ;
11692  return 0;
11693}
11694_ACEOF
11695if ac_fn_c_try_link "$LINENO"; then :
11696  ac_cv_lib_dld_shl_load=yes
11697else
11698  ac_cv_lib_dld_shl_load=no
11699fi
11700rm -f core conftest.err conftest.$ac_objext \
11701    conftest$ac_exeext conftest.$ac_ext
11702LIBS=$ac_check_lib_save_LIBS
11703fi
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11705$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11706if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11707  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11708else
11709  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11710if test "x$ac_cv_func_dlopen" = xyes; then :
11711  lt_cv_dlopen=dlopen
11712else
11713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11714$as_echo_n "checking for dlopen in -ldl... " >&6; }
11715if ${ac_cv_lib_dl_dlopen+:} false; then :
11716  $as_echo_n "(cached) " >&6
11717else
11718  ac_check_lib_save_LIBS=$LIBS
11719LIBS="-ldl  $LIBS"
11720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721/* end confdefs.h.  */
11722
11723/* Override any GCC internal prototype to avoid an error.
11724   Use char because int might match the return type of a GCC
11725   builtin and then its argument prototype would still apply.  */
11726#ifdef __cplusplus
11727extern "C"
11728#endif
11729char dlopen ();
11730int
11731main ()
11732{
11733return dlopen ();
11734  ;
11735  return 0;
11736}
11737_ACEOF
11738if ac_fn_c_try_link "$LINENO"; then :
11739  ac_cv_lib_dl_dlopen=yes
11740else
11741  ac_cv_lib_dl_dlopen=no
11742fi
11743rm -f core conftest.err conftest.$ac_objext \
11744    conftest$ac_exeext conftest.$ac_ext
11745LIBS=$ac_check_lib_save_LIBS
11746fi
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11748$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11749if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11750  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11751else
11752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11753$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11754if ${ac_cv_lib_svld_dlopen+:} false; then :
11755  $as_echo_n "(cached) " >&6
11756else
11757  ac_check_lib_save_LIBS=$LIBS
11758LIBS="-lsvld  $LIBS"
11759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760/* end confdefs.h.  */
11761
11762/* Override any GCC internal prototype to avoid an error.
11763   Use char because int might match the return type of a GCC
11764   builtin and then its argument prototype would still apply.  */
11765#ifdef __cplusplus
11766extern "C"
11767#endif
11768char dlopen ();
11769int
11770main ()
11771{
11772return dlopen ();
11773  ;
11774  return 0;
11775}
11776_ACEOF
11777if ac_fn_c_try_link "$LINENO"; then :
11778  ac_cv_lib_svld_dlopen=yes
11779else
11780  ac_cv_lib_svld_dlopen=no
11781fi
11782rm -f core conftest.err conftest.$ac_objext \
11783    conftest$ac_exeext conftest.$ac_ext
11784LIBS=$ac_check_lib_save_LIBS
11785fi
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11787$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11788if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11789  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11790else
11791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11792$as_echo_n "checking for dld_link in -ldld... " >&6; }
11793if ${ac_cv_lib_dld_dld_link+:} false; then :
11794  $as_echo_n "(cached) " >&6
11795else
11796  ac_check_lib_save_LIBS=$LIBS
11797LIBS="-ldld  $LIBS"
11798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799/* end confdefs.h.  */
11800
11801/* Override any GCC internal prototype to avoid an error.
11802   Use char because int might match the return type of a GCC
11803   builtin and then its argument prototype would still apply.  */
11804#ifdef __cplusplus
11805extern "C"
11806#endif
11807char dld_link ();
11808int
11809main ()
11810{
11811return dld_link ();
11812  ;
11813  return 0;
11814}
11815_ACEOF
11816if ac_fn_c_try_link "$LINENO"; then :
11817  ac_cv_lib_dld_dld_link=yes
11818else
11819  ac_cv_lib_dld_dld_link=no
11820fi
11821rm -f core conftest.err conftest.$ac_objext \
11822    conftest$ac_exeext conftest.$ac_ext
11823LIBS=$ac_check_lib_save_LIBS
11824fi
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11826$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11827if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11828  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11829fi
11830
11831
11832fi
11833
11834
11835fi
11836
11837
11838fi
11839
11840
11841fi
11842
11843
11844fi
11845
11846    ;;
11847  esac
11848
11849  if test no = "$lt_cv_dlopen"; then
11850    enable_dlopen=no
11851  else
11852    enable_dlopen=yes
11853  fi
11854
11855  case $lt_cv_dlopen in
11856  dlopen)
11857    save_CPPFLAGS=$CPPFLAGS
11858    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11859
11860    save_LDFLAGS=$LDFLAGS
11861    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11862
11863    save_LIBS=$LIBS
11864    LIBS="$lt_cv_dlopen_libs $LIBS"
11865
11866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11867$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11868if ${lt_cv_dlopen_self+:} false; then :
11869  $as_echo_n "(cached) " >&6
11870else
11871  	  if test yes = "$cross_compiling"; then :
11872  lt_cv_dlopen_self=cross
11873else
11874  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11875  lt_status=$lt_dlunknown
11876  cat > conftest.$ac_ext <<_LT_EOF
11877#line $LINENO "configure"
11878#include "confdefs.h"
11879
11880#if HAVE_DLFCN_H
11881#include <dlfcn.h>
11882#endif
11883
11884#include <stdio.h>
11885
11886#ifdef RTLD_GLOBAL
11887#  define LT_DLGLOBAL		RTLD_GLOBAL
11888#else
11889#  ifdef DL_GLOBAL
11890#    define LT_DLGLOBAL		DL_GLOBAL
11891#  else
11892#    define LT_DLGLOBAL		0
11893#  endif
11894#endif
11895
11896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11897   find out it does not work in some platform. */
11898#ifndef LT_DLLAZY_OR_NOW
11899#  ifdef RTLD_LAZY
11900#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11901#  else
11902#    ifdef DL_LAZY
11903#      define LT_DLLAZY_OR_NOW		DL_LAZY
11904#    else
11905#      ifdef RTLD_NOW
11906#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11907#      else
11908#        ifdef DL_NOW
11909#          define LT_DLLAZY_OR_NOW	DL_NOW
11910#        else
11911#          define LT_DLLAZY_OR_NOW	0
11912#        endif
11913#      endif
11914#    endif
11915#  endif
11916#endif
11917
11918/* When -fvisibility=hidden is used, assume the code has been annotated
11919   correspondingly for the symbols needed.  */
11920#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11921int fnord () __attribute__((visibility("default")));
11922#endif
11923
11924int fnord () { return 42; }
11925int main ()
11926{
11927  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11928  int status = $lt_dlunknown;
11929
11930  if (self)
11931    {
11932      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11933      else
11934        {
11935	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11936          else puts (dlerror ());
11937	}
11938      /* dlclose (self); */
11939    }
11940  else
11941    puts (dlerror ());
11942
11943  return status;
11944}
11945_LT_EOF
11946  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11947  (eval $ac_link) 2>&5
11948  ac_status=$?
11949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11950  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11951    (./conftest; exit; ) >&5 2>/dev/null
11952    lt_status=$?
11953    case x$lt_status in
11954      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11955      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11956      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11957    esac
11958  else :
11959    # compilation failed
11960    lt_cv_dlopen_self=no
11961  fi
11962fi
11963rm -fr conftest*
11964
11965
11966fi
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11968$as_echo "$lt_cv_dlopen_self" >&6; }
11969
11970    if test yes = "$lt_cv_dlopen_self"; then
11971      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11972      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11973$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11974if ${lt_cv_dlopen_self_static+:} false; then :
11975  $as_echo_n "(cached) " >&6
11976else
11977  	  if test yes = "$cross_compiling"; then :
11978  lt_cv_dlopen_self_static=cross
11979else
11980  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11981  lt_status=$lt_dlunknown
11982  cat > conftest.$ac_ext <<_LT_EOF
11983#line $LINENO "configure"
11984#include "confdefs.h"
11985
11986#if HAVE_DLFCN_H
11987#include <dlfcn.h>
11988#endif
11989
11990#include <stdio.h>
11991
11992#ifdef RTLD_GLOBAL
11993#  define LT_DLGLOBAL		RTLD_GLOBAL
11994#else
11995#  ifdef DL_GLOBAL
11996#    define LT_DLGLOBAL		DL_GLOBAL
11997#  else
11998#    define LT_DLGLOBAL		0
11999#  endif
12000#endif
12001
12002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12003   find out it does not work in some platform. */
12004#ifndef LT_DLLAZY_OR_NOW
12005#  ifdef RTLD_LAZY
12006#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12007#  else
12008#    ifdef DL_LAZY
12009#      define LT_DLLAZY_OR_NOW		DL_LAZY
12010#    else
12011#      ifdef RTLD_NOW
12012#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12013#      else
12014#        ifdef DL_NOW
12015#          define LT_DLLAZY_OR_NOW	DL_NOW
12016#        else
12017#          define LT_DLLAZY_OR_NOW	0
12018#        endif
12019#      endif
12020#    endif
12021#  endif
12022#endif
12023
12024/* When -fvisibility=hidden is used, assume the code has been annotated
12025   correspondingly for the symbols needed.  */
12026#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12027int fnord () __attribute__((visibility("default")));
12028#endif
12029
12030int fnord () { return 42; }
12031int main ()
12032{
12033  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12034  int status = $lt_dlunknown;
12035
12036  if (self)
12037    {
12038      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12039      else
12040        {
12041	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12042          else puts (dlerror ());
12043	}
12044      /* dlclose (self); */
12045    }
12046  else
12047    puts (dlerror ());
12048
12049  return status;
12050}
12051_LT_EOF
12052  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12053  (eval $ac_link) 2>&5
12054  ac_status=$?
12055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12056  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12057    (./conftest; exit; ) >&5 2>/dev/null
12058    lt_status=$?
12059    case x$lt_status in
12060      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12061      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12062      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12063    esac
12064  else :
12065    # compilation failed
12066    lt_cv_dlopen_self_static=no
12067  fi
12068fi
12069rm -fr conftest*
12070
12071
12072fi
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12074$as_echo "$lt_cv_dlopen_self_static" >&6; }
12075    fi
12076
12077    CPPFLAGS=$save_CPPFLAGS
12078    LDFLAGS=$save_LDFLAGS
12079    LIBS=$save_LIBS
12080    ;;
12081  esac
12082
12083  case $lt_cv_dlopen_self in
12084  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12085  *) enable_dlopen_self=unknown ;;
12086  esac
12087
12088  case $lt_cv_dlopen_self_static in
12089  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12090  *) enable_dlopen_self_static=unknown ;;
12091  esac
12092fi
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110striplib=
12111old_striplib=
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12113$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12114if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12115  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12116  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118$as_echo "yes" >&6; }
12119else
12120# FIXME - insert some real tests, host_os isn't really good enough
12121  case $host_os in
12122  darwin*)
12123    if test -n "$STRIP"; then
12124      striplib="$STRIP -x"
12125      old_striplib="$STRIP -S"
12126      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127$as_echo "yes" >&6; }
12128    else
12129      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130$as_echo "no" >&6; }
12131    fi
12132    ;;
12133  *)
12134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135$as_echo "no" >&6; }
12136    ;;
12137  esac
12138fi
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151  # Report what library types will actually be built
12152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12153$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12155$as_echo "$can_build_shared" >&6; }
12156
12157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12158$as_echo_n "checking whether to build shared libraries... " >&6; }
12159  test no = "$can_build_shared" && enable_shared=no
12160
12161  # On AIX, shared libraries and static libraries use the same namespace, and
12162  # are all built from PIC.
12163  case $host_os in
12164  aix3*)
12165    test yes = "$enable_shared" && enable_static=no
12166    if test -n "$RANLIB"; then
12167      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12168      postinstall_cmds='$RANLIB $lib'
12169    fi
12170    ;;
12171
12172  aix[4-9]*)
12173    if test ia64 != "$host_cpu"; then
12174      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12175      yes,aix,yes) ;;			# shared object as lib.so file only
12176      yes,svr4,*) ;;			# shared object as lib.so archive member only
12177      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12178      esac
12179    fi
12180    ;;
12181  esac
12182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12183$as_echo "$enable_shared" >&6; }
12184
12185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12186$as_echo_n "checking whether to build static libraries... " >&6; }
12187  # Make sure either enable_shared or enable_static is yes.
12188  test yes = "$enable_shared" || enable_static=yes
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12190$as_echo "$enable_static" >&6; }
12191
12192
12193
12194
12195fi
12196ac_ext=c
12197ac_cpp='$CPP $CPPFLAGS'
12198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12200ac_compiler_gnu=$ac_cv_c_compiler_gnu
12201
12202CC=$lt_save_CC
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218        ac_config_commands="$ac_config_commands libtool"
12219
12220
12221
12222
12223# Only expand once:
12224
12225
12226
12227
12228for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h
12229do :
12230  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12232if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12233  cat >>confdefs.h <<_ACEOF
12234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12235_ACEOF
12236
12237fi
12238
12239done
12240
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12242$as_echo_n "checking for ANSI C header files... " >&6; }
12243if ${ac_cv_header_stdc+:} false; then :
12244  $as_echo_n "(cached) " >&6
12245else
12246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247/* end confdefs.h.  */
12248#include <stdlib.h>
12249#include <stdarg.h>
12250#include <string.h>
12251#include <float.h>
12252
12253int
12254main ()
12255{
12256
12257  ;
12258  return 0;
12259}
12260_ACEOF
12261if ac_fn_c_try_compile "$LINENO"; then :
12262  ac_cv_header_stdc=yes
12263else
12264  ac_cv_header_stdc=no
12265fi
12266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12267
12268if test $ac_cv_header_stdc = yes; then
12269  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271/* end confdefs.h.  */
12272#include <string.h>
12273
12274_ACEOF
12275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12276  $EGREP "memchr" >/dev/null 2>&1; then :
12277
12278else
12279  ac_cv_header_stdc=no
12280fi
12281rm -f conftest*
12282
12283fi
12284
12285if test $ac_cv_header_stdc = yes; then
12286  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288/* end confdefs.h.  */
12289#include <stdlib.h>
12290
12291_ACEOF
12292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12293  $EGREP "free" >/dev/null 2>&1; then :
12294
12295else
12296  ac_cv_header_stdc=no
12297fi
12298rm -f conftest*
12299
12300fi
12301
12302if test $ac_cv_header_stdc = yes; then
12303  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12304  if test "$cross_compiling" = yes; then :
12305  :
12306else
12307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308/* end confdefs.h.  */
12309#include <ctype.h>
12310#include <stdlib.h>
12311#if ((' ' & 0x0FF) == 0x020)
12312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12314#else
12315# define ISLOWER(c) \
12316		   (('a' <= (c) && (c) <= 'i') \
12317		     || ('j' <= (c) && (c) <= 'r') \
12318		     || ('s' <= (c) && (c) <= 'z'))
12319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12320#endif
12321
12322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12323int
12324main ()
12325{
12326  int i;
12327  for (i = 0; i < 256; i++)
12328    if (XOR (islower (i), ISLOWER (i))
12329	|| toupper (i) != TOUPPER (i))
12330      return 2;
12331  return 0;
12332}
12333_ACEOF
12334if ac_fn_c_try_run "$LINENO"; then :
12335
12336else
12337  ac_cv_header_stdc=no
12338fi
12339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12340  conftest.$ac_objext conftest.beam conftest.$ac_ext
12341fi
12342
12343fi
12344fi
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12346$as_echo "$ac_cv_header_stdc" >&6; }
12347if test $ac_cv_header_stdc = yes; then
12348
12349$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12350
12351fi
12352
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12354$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12355if ${ac_cv_header_sys_wait_h+:} false; then :
12356  $as_echo_n "(cached) " >&6
12357else
12358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359/* end confdefs.h.  */
12360#include <sys/types.h>
12361#include <sys/wait.h>
12362#ifndef WEXITSTATUS
12363# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12364#endif
12365#ifndef WIFEXITED
12366# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12367#endif
12368
12369int
12370main ()
12371{
12372  int s;
12373  wait (&s);
12374  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12375  ;
12376  return 0;
12377}
12378_ACEOF
12379if ac_fn_c_try_compile "$LINENO"; then :
12380  ac_cv_header_sys_wait_h=yes
12381else
12382  ac_cv_header_sys_wait_h=no
12383fi
12384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12385fi
12386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12387$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12388if test $ac_cv_header_sys_wait_h = yes; then
12389
12390$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12391
12392fi
12393
12394
12395
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12397$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12398if ${ac_cv_c_const+:} false; then :
12399  $as_echo_n "(cached) " >&6
12400else
12401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403
12404int
12405main ()
12406{
12407
12408#ifndef __cplusplus
12409  /* Ultrix mips cc rejects this sort of thing.  */
12410  typedef int charset[2];
12411  const charset cs = { 0, 0 };
12412  /* SunOS 4.1.1 cc rejects this.  */
12413  char const *const *pcpcc;
12414  char **ppc;
12415  /* NEC SVR4.0.2 mips cc rejects this.  */
12416  struct point {int x, y;};
12417  static struct point const zero = {0,0};
12418  /* AIX XL C 1.02.0.0 rejects this.
12419     It does not let you subtract one const X* pointer from another in
12420     an arm of an if-expression whose if-part is not a constant
12421     expression */
12422  const char *g = "string";
12423  pcpcc = &g + (g ? g-g : 0);
12424  /* HPUX 7.0 cc rejects these. */
12425  ++pcpcc;
12426  ppc = (char**) pcpcc;
12427  pcpcc = (char const *const *) ppc;
12428  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12429    char tx;
12430    char *t = &tx;
12431    char const *s = 0 ? (char *) 0 : (char const *) 0;
12432
12433    *t++ = 0;
12434    if (s) return 0;
12435  }
12436  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12437    int x[] = {25, 17};
12438    const int *foo = &x[0];
12439    ++foo;
12440  }
12441  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12442    typedef const int *iptr;
12443    iptr p = 0;
12444    ++p;
12445  }
12446  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12447       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12448    struct s { int j; const int *ap[3]; } bx;
12449    struct s *b = &bx; b->j = 5;
12450  }
12451  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12452    const int foo = 10;
12453    if (!foo) return 0;
12454  }
12455  return !cs[0] && !zero.x;
12456#endif
12457
12458  ;
12459  return 0;
12460}
12461_ACEOF
12462if ac_fn_c_try_compile "$LINENO"; then :
12463  ac_cv_c_const=yes
12464else
12465  ac_cv_c_const=no
12466fi
12467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12468fi
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12470$as_echo "$ac_cv_c_const" >&6; }
12471if test $ac_cv_c_const = no; then
12472
12473$as_echo "#define const /**/" >>confdefs.h
12474
12475fi
12476
12477ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12478if test "x$ac_cv_type_off_t" = xyes; then :
12479
12480else
12481
12482cat >>confdefs.h <<_ACEOF
12483#define off_t long int
12484_ACEOF
12485
12486fi
12487
12488ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12489if test "x$ac_cv_type_pid_t" = xyes; then :
12490
12491else
12492
12493cat >>confdefs.h <<_ACEOF
12494#define pid_t int
12495_ACEOF
12496
12497fi
12498
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12500$as_echo_n "checking return type of signal handlers... " >&6; }
12501if ${ac_cv_type_signal+:} false; then :
12502  $as_echo_n "(cached) " >&6
12503else
12504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505/* end confdefs.h.  */
12506#include <sys/types.h>
12507#include <signal.h>
12508
12509int
12510main ()
12511{
12512return *(signal (0, 0)) (0) == 1;
12513  ;
12514  return 0;
12515}
12516_ACEOF
12517if ac_fn_c_try_compile "$LINENO"; then :
12518  ac_cv_type_signal=int
12519else
12520  ac_cv_type_signal=void
12521fi
12522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523fi
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12525$as_echo "$ac_cv_type_signal" >&6; }
12526
12527cat >>confdefs.h <<_ACEOF
12528#define RETSIGTYPE $ac_cv_type_signal
12529_ACEOF
12530
12531
12532# Check whether --enable-largefile was given.
12533if test "${enable_largefile+set}" = set; then :
12534  enableval=$enable_largefile;
12535fi
12536
12537if test "$enable_largefile" != no; then
12538
12539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12540$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12541if ${ac_cv_sys_largefile_CC+:} false; then :
12542  $as_echo_n "(cached) " >&6
12543else
12544  ac_cv_sys_largefile_CC=no
12545     if test "$GCC" != yes; then
12546       ac_save_CC=$CC
12547       while :; do
12548	 # IRIX 6.2 and later do not support large files by default,
12549	 # so use the C compiler's -n32 option if that helps.
12550	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551/* end confdefs.h.  */
12552#include <sys/types.h>
12553 /* Check that off_t can represent 2**63 - 1 correctly.
12554    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12555    since some C++ compilers masquerading as C compilers
12556    incorrectly reject 9223372036854775807.  */
12557#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12558  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12559		       && LARGE_OFF_T % 2147483647 == 1)
12560		      ? 1 : -1];
12561int
12562main ()
12563{
12564
12565  ;
12566  return 0;
12567}
12568_ACEOF
12569	 if ac_fn_c_try_compile "$LINENO"; then :
12570  break
12571fi
12572rm -f core conftest.err conftest.$ac_objext
12573	 CC="$CC -n32"
12574	 if ac_fn_c_try_compile "$LINENO"; then :
12575  ac_cv_sys_largefile_CC=' -n32'; break
12576fi
12577rm -f core conftest.err conftest.$ac_objext
12578	 break
12579       done
12580       CC=$ac_save_CC
12581       rm -f conftest.$ac_ext
12582    fi
12583fi
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12585$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12586  if test "$ac_cv_sys_largefile_CC" != no; then
12587    CC=$CC$ac_cv_sys_largefile_CC
12588  fi
12589
12590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12591$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12592if ${ac_cv_sys_file_offset_bits+:} false; then :
12593  $as_echo_n "(cached) " >&6
12594else
12595  while :; do
12596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597/* end confdefs.h.  */
12598#include <sys/types.h>
12599 /* Check that off_t can represent 2**63 - 1 correctly.
12600    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12601    since some C++ compilers masquerading as C compilers
12602    incorrectly reject 9223372036854775807.  */
12603#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12604  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12605		       && LARGE_OFF_T % 2147483647 == 1)
12606		      ? 1 : -1];
12607int
12608main ()
12609{
12610
12611  ;
12612  return 0;
12613}
12614_ACEOF
12615if ac_fn_c_try_compile "$LINENO"; then :
12616  ac_cv_sys_file_offset_bits=no; break
12617fi
12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620/* end confdefs.h.  */
12621#define _FILE_OFFSET_BITS 64
12622#include <sys/types.h>
12623 /* Check that off_t can represent 2**63 - 1 correctly.
12624    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12625    since some C++ compilers masquerading as C compilers
12626    incorrectly reject 9223372036854775807.  */
12627#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12628  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12629		       && LARGE_OFF_T % 2147483647 == 1)
12630		      ? 1 : -1];
12631int
12632main ()
12633{
12634
12635  ;
12636  return 0;
12637}
12638_ACEOF
12639if ac_fn_c_try_compile "$LINENO"; then :
12640  ac_cv_sys_file_offset_bits=64; break
12641fi
12642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643  ac_cv_sys_file_offset_bits=unknown
12644  break
12645done
12646fi
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12648$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12649case $ac_cv_sys_file_offset_bits in #(
12650  no | unknown) ;;
12651  *)
12652cat >>confdefs.h <<_ACEOF
12653#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12654_ACEOF
12655;;
12656esac
12657rm -rf conftest*
12658  if test $ac_cv_sys_file_offset_bits = unknown; then
12659    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12660$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12661if ${ac_cv_sys_large_files+:} false; then :
12662  $as_echo_n "(cached) " >&6
12663else
12664  while :; do
12665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666/* end confdefs.h.  */
12667#include <sys/types.h>
12668 /* Check that off_t can represent 2**63 - 1 correctly.
12669    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12670    since some C++ compilers masquerading as C compilers
12671    incorrectly reject 9223372036854775807.  */
12672#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12673  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12674		       && LARGE_OFF_T % 2147483647 == 1)
12675		      ? 1 : -1];
12676int
12677main ()
12678{
12679
12680  ;
12681  return 0;
12682}
12683_ACEOF
12684if ac_fn_c_try_compile "$LINENO"; then :
12685  ac_cv_sys_large_files=no; break
12686fi
12687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689/* end confdefs.h.  */
12690#define _LARGE_FILES 1
12691#include <sys/types.h>
12692 /* Check that off_t can represent 2**63 - 1 correctly.
12693    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12694    since some C++ compilers masquerading as C compilers
12695    incorrectly reject 9223372036854775807.  */
12696#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12697  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12698		       && LARGE_OFF_T % 2147483647 == 1)
12699		      ? 1 : -1];
12700int
12701main ()
12702{
12703
12704  ;
12705  return 0;
12706}
12707_ACEOF
12708if ac_fn_c_try_compile "$LINENO"; then :
12709  ac_cv_sys_large_files=1; break
12710fi
12711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712  ac_cv_sys_large_files=unknown
12713  break
12714done
12715fi
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12717$as_echo "$ac_cv_sys_large_files" >&6; }
12718case $ac_cv_sys_large_files in #(
12719  no | unknown) ;;
12720  *)
12721cat >>confdefs.h <<_ACEOF
12722#define _LARGE_FILES $ac_cv_sys_large_files
12723_ACEOF
12724;;
12725esac
12726rm -rf conftest*
12727  fi
12728
12729
12730fi
12731
12732
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
12734$as_echo_n "checking for off64_t... " >&6; }
12735if ${liblock_cv_hasoff64t+:} false; then :
12736  $as_echo_n "(cached) " >&6
12737else
12738  liblock_cv_hasoff64t="no"
12739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740/* end confdefs.h.  */
12741
12742#include <sys/types.h>
12743off64_t	n;
12744
12745int
12746main ()
12747{
12748
12749
12750	n=0;
12751
12752  ;
12753  return 0;
12754}
12755_ACEOF
12756if ac_fn_c_try_compile "$LINENO"; then :
12757  liblock_cv_hasoff64t="yes"
12758fi
12759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760
12761
12762fi
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasoff64t" >&5
12764$as_echo "$liblock_cv_hasoff64t" >&6; }
12765
12766if test "$liblock_cv_hasoff64t" = "yes"
12767then
12768	LL_OFFSET_TYPE=off64_t
12769else
12770	LL_OFFSET_TYPE=off_t
12771fi
12772
12773cat >>confdefs.h <<_ACEOF
12774#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12775_ACEOF
12776
12777
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock_t" >&5
12779$as_echo_n "checking for flock_t... " >&6; }
12780if ${liblock_cv_hasflock_t+:} false; then :
12781  $as_echo_n "(cached) " >&6
12782else
12783  liblock_cv_hasflock_t="no"
12784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785/* end confdefs.h.  */
12786
12787#if     HAVE_CONFIG_H
12788#include        "config.h"
12789#endif
12790#include        <sys/types.h>
12791#if     HAVE_FCNTL_H
12792#include        <fcntl.h>
12793#endif
12794#if     HAVE_SYS_FCNTL_H
12795#include        <sys/fcntl.h>
12796#endif
12797flock_t t;
12798
12799int
12800main ()
12801{
12802
12803
12804  ;
12805  return 0;
12806}
12807_ACEOF
12808if ac_fn_c_try_compile "$LINENO"; then :
12809  liblock_cv_hasflock_t="yes"
12810fi
12811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812fi
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock_t" >&5
12814$as_echo "$liblock_cv_hasflock_t" >&6; }
12815
12816if test "$liblock_cv_hasflock_t" = "yes"
12817then
12818
12819cat >>confdefs.h <<_ACEOF
12820#define HAS_FLOCK_T 1
12821_ACEOF
12822
12823fi
12824
12825
12826for ac_func in getdtablesize setpgrp sysconf
12827do :
12828  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12829ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12830if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12831  cat >>confdefs.h <<_ACEOF
12832#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12833_ACEOF
12834
12835fi
12836done
12837
12838ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
12839if test "x$ac_cv_func_setpgrp" = xyes; then :
12840
12841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12842$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12843if ${ac_cv_func_setpgrp_void+:} false; then :
12844  $as_echo_n "(cached) " >&6
12845else
12846  if test "$cross_compiling" = yes; then :
12847  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
12848else
12849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850/* end confdefs.h.  */
12851$ac_includes_default
12852int
12853main ()
12854{
12855/* If this system has a BSD-style setpgrp which takes arguments,
12856  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12857  exit successfully. */
12858  return setpgrp (1,1) != -1;
12859  ;
12860  return 0;
12861}
12862_ACEOF
12863if ac_fn_c_try_run "$LINENO"; then :
12864  ac_cv_func_setpgrp_void=no
12865else
12866  ac_cv_func_setpgrp_void=yes
12867fi
12868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12869  conftest.$ac_objext conftest.beam conftest.$ac_ext
12870fi
12871
12872fi
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12874$as_echo "$ac_cv_func_setpgrp_void" >&6; }
12875if test $ac_cv_func_setpgrp_void = yes; then
12876
12877$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12878
12879fi
12880
12881
12882
12883fi
12884
12885
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl" >&5
12887$as_echo_n "checking for fcntl... " >&6; }
12888if ${liblock_cv_hasfcntl+:} false; then :
12889  $as_echo_n "(cached) " >&6
12890else
12891  liblock_cv_hasfcntl="no"
12892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893/* end confdefs.h.  */
12894
12895#define	LL_OFFSET_TYPE	$LL_OFFSET_TYPE
12896#include "${srcdir}/lockfcntl.c"
12897int n;
12898
12899int
12900main ()
12901{
12902
12903
12904  ;
12905  return 0;
12906}
12907_ACEOF
12908if ac_fn_c_try_link "$LINENO"; then :
12909  liblock_cv_hasfcntl="yes"
12910fi
12911rm -f core conftest.err conftest.$ac_objext \
12912    conftest$ac_exeext conftest.$ac_ext
12913fi
12914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasfcntl" >&5
12915$as_echo "$liblock_cv_hasfcntl" >&6; }
12916if test "$liblock_cv_hasfcntl" = "yes"
12917then
12918
12919cat >>confdefs.h <<_ACEOF
12920#define HAS_FCNTL 1
12921_ACEOF
12922
12923fi
12924
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
12926$as_echo_n "checking for flock... " >&6; }
12927if ${liblock_cv_hasflock+:} false; then :
12928  $as_echo_n "(cached) " >&6
12929else
12930  liblock_cv_hasflock="no"
12931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h.  */
12933
12934#define	LL_OFFSET_TYPE	$LL_OFFSET_TYPE
12935#include "${srcdir}/lockflock.c"
12936int n;
12937
12938int
12939main ()
12940{
12941
12942
12943  ;
12944  return 0;
12945}
12946_ACEOF
12947if ac_fn_c_try_link "$LINENO"; then :
12948  liblock_cv_hasflock="yes"
12949fi
12950rm -f core conftest.err conftest.$ac_objext \
12951    conftest$ac_exeext conftest.$ac_ext
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock" >&5
12954$as_echo "$liblock_cv_hasflock" >&6; }
12955if test "$liblock_cv_hasflock" = "yes"
12956then
12957
12958cat >>confdefs.h <<_ACEOF
12959#define HAS_FLOCK 1
12960_ACEOF
12961
12962fi
12963
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5
12965$as_echo_n "checking for lockf... " >&6; }
12966if ${liblock_cv_haslockf+:} false; then :
12967  $as_echo_n "(cached) " >&6
12968else
12969  liblock_cv_haslockf="no"
12970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971/* end confdefs.h.  */
12972
12973#define	LL_OFFSET_TYPE	$LL_OFFSET_TYPE
12974#include "${srcdir}/locklockf.c"
12975int n;
12976
12977int
12978main ()
12979{
12980
12981
12982  ;
12983  return 0;
12984}
12985_ACEOF
12986if ac_fn_c_try_link "$LINENO"; then :
12987  liblock_cv_haslockf="yes"
12988fi
12989rm -f core conftest.err conftest.$ac_objext \
12990    conftest$ac_exeext conftest.$ac_ext
12991fi
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_haslockf" >&5
12993$as_echo "$liblock_cv_haslockf" >&6; }
12994if test "$liblock_cv_haslockf" = "yes"
12995then
12996
12997cat >>confdefs.h <<_ACEOF
12998#define HAS_LOCKF 1
12999_ACEOF
13000
13001fi
13002
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for locking method" >&5
13004$as_echo_n "checking for locking method... " >&6; }
13005
13006# Check whether --with-locking-method was given.
13007if test "${with_locking_method+set}" = set; then :
13008  withval=$with_locking_method; lockmethod="$withval"
13009else
13010  lockmethod=""
13011fi
13012
13013
13014case x$lockmethod in
13015xfcntl)
13016	if test "$cross_compiling" = yes; then :
13017  :
13018
13019else
13020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021/* end confdefs.h.  */
13022
13023#define USE_FCNTL 1
13024#define	LL_OFFSET_TYPE	$LL_OFFSET_TYPE
13025#include "${srcdir}/locktest.c"
13026
13027_ACEOF
13028if ac_fn_c_try_run "$LINENO"; then :
13029
13030else
13031  as_fn_error $? "fcntl test failed." "$LINENO" 5
13032fi
13033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13034  conftest.$ac_objext conftest.beam conftest.$ac_ext
13035fi
13036
13037	;;
13038x)
13039	if test "$cross_compiling" = yes; then :
13040  as_fn_error $? "--with-locking-method option required" "$LINENO" 5
13041else
13042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043/* end confdefs.h.  */
13044
13045#define USE_FCNTL 1
13046#define	LL_OFFSET_TYPE	$LL_OFFSET_TYPE
13047#include "${srcdir}/locktest.c"
13048
13049_ACEOF
13050if ac_fn_c_try_run "$LINENO"; then :
13051  lockmethod=fcntl
13052fi
13053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13054  conftest.$ac_objext conftest.beam conftest.$ac_ext
13055fi
13056
13057	;;
13058esac
13059
13060case x$lockmethod in
13061xlockf)
13062	if test "$cross_compiling" = yes; then :
13063  :
13064
13065else
13066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067/* end confdefs.h.  */
13068
13069#define USE_LOCKF 1
13070#define	LL_OFFSET_TYPE	$LL_OFFSET_TYPE
13071#include "${srcdir}/locktest.c"
13072
13073_ACEOF
13074if ac_fn_c_try_run "$LINENO"; then :
13075
13076else
13077  as_fn_error $? "lockf test failed." "$LINENO" 5
13078fi
13079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13080  conftest.$ac_objext conftest.beam conftest.$ac_ext
13081fi
13082
13083	;;
13084x)
13085	if test "$cross_compiling" = yes; then :
13086  as_fn_error $? "--with-locking-method option required" "$LINENO" 5
13087else
13088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089/* end confdefs.h.  */
13090
13091#define USE_LOCKF 1
13092#define	LL_OFFSET_TYPE	$LL_OFFSET_TYPE
13093#include "${srcdir}/locktest.c"
13094
13095_ACEOF
13096if ac_fn_c_try_run "$LINENO"; then :
13097  lockmethod=lockf
13098fi
13099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13100  conftest.$ac_objext conftest.beam conftest.$ac_ext
13101fi
13102
13103	;;
13104esac
13105
13106
13107case x$lockmethod in
13108xflock)
13109	if test "$cross_compiling" = yes; then :
13110  :
13111
13112else
13113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114/* end confdefs.h.  */
13115
13116#define USE_FLOCK 1
13117#define	LL_OFFSET_TYPE	$LL_OFFSET_TYPE
13118#include "${srcdir}/locktest.c"
13119
13120_ACEOF
13121if ac_fn_c_try_run "$LINENO"; then :
13122
13123else
13124  as_fn_error $? "flock test failed." "$LINENO" 5
13125fi
13126rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13127  conftest.$ac_objext conftest.beam conftest.$ac_ext
13128fi
13129
13130	;;
13131x)
13132	if test "$cross_compiling" = yes; then :
13133  as_fn_error $? "--with-locking-method option required" "$LINENO" 5
13134else
13135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136/* end confdefs.h.  */
13137
13138#define USE_FLOCK 1
13139#define	LL_OFFSET_TYPE	$LL_OFFSET_TYPE
13140#include "${srcdir}/locktest.c"
13141
13142_ACEOF
13143if ac_fn_c_try_run "$LINENO"; then :
13144  lockmethod=flock
13145fi
13146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13147  conftest.$ac_objext conftest.beam conftest.$ac_ext
13148fi
13149
13150	;;
13151esac
13152
13153case x$lockmethod in
13154xlockf)
13155	;;
13156xflock)
13157	;;
13158xfcntl)
13159	;;
13160*)
13161	as_fn_error $? "must specify --with-locking-method option" "$LINENO" 5
13162	;;
13163esac
13164
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lockmethod" >&5
13166$as_echo "$lockmethod" >&6; }
13167
13168 if test "$lockmethod" = "fcntl"; then
13169  USE_FCNTL_TRUE=
13170  USE_FCNTL_FALSE='#'
13171else
13172  USE_FCNTL_TRUE='#'
13173  USE_FCNTL_FALSE=
13174fi
13175
13176 if test "$lockmethod" = "flock"; then
13177  USE_FLOCK_TRUE=
13178  USE_FLOCK_FALSE='#'
13179else
13180  USE_FLOCK_TRUE='#'
13181  USE_FLOCK_FALSE=
13182fi
13183
13184 if test "$lockmethod" = "lockf"; then
13185  USE_LOCKF_TRUE=
13186  USE_LOCKF_FALSE='#'
13187else
13188  USE_LOCKF_TRUE='#'
13189  USE_LOCKF_FALSE=
13190fi
13191
13192
13193 if test -d ${srcdir}/../docbook; then
13194  HAVE_SGML_TRUE=
13195  HAVE_SGML_FALSE='#'
13196else
13197  HAVE_SGML_TRUE='#'
13198  HAVE_SGML_FALSE=
13199fi
13200
13201
13202
13203cat >>confdefs.h <<_ACEOF
13204#define liblock_config_h 1
13205_ACEOF
13206
13207
13208ac_config_files="$ac_config_files Makefile"
13209
13210cat >confcache <<\_ACEOF
13211# This file is a shell script that caches the results of configure
13212# tests run on this system so they can be shared between configure
13213# scripts and configure runs, see configure's option --config-cache.
13214# It is not useful on other systems.  If it contains results you don't
13215# want to keep, you may remove or edit it.
13216#
13217# config.status only pays attention to the cache file if you give it
13218# the --recheck option to rerun configure.
13219#
13220# `ac_cv_env_foo' variables (set or unset) will be overridden when
13221# loading this file, other *unset* `ac_cv_foo' will be assigned the
13222# following values.
13223
13224_ACEOF
13225
13226# The following way of writing the cache mishandles newlines in values,
13227# but we know of no workaround that is simple, portable, and efficient.
13228# So, we kill variables containing newlines.
13229# Ultrix sh set writes to stderr and can't be redirected directly,
13230# and sets the high bit in the cache file unless we assign to the vars.
13231(
13232  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13233    eval ac_val=\$$ac_var
13234    case $ac_val in #(
13235    *${as_nl}*)
13236      case $ac_var in #(
13237      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13238$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13239      esac
13240      case $ac_var in #(
13241      _ | IFS | as_nl) ;; #(
13242      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13243      *) { eval $ac_var=; unset $ac_var;} ;;
13244      esac ;;
13245    esac
13246  done
13247
13248  (set) 2>&1 |
13249    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13250    *${as_nl}ac_space=\ *)
13251      # `set' does not quote correctly, so add quotes: double-quote
13252      # substitution turns \\\\ into \\, and sed turns \\ into \.
13253      sed -n \
13254	"s/'/'\\\\''/g;
13255	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13256      ;; #(
13257    *)
13258      # `set' quotes correctly as required by POSIX, so do not add quotes.
13259      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13260      ;;
13261    esac |
13262    sort
13263) |
13264  sed '
13265     /^ac_cv_env_/b end
13266     t clear
13267     :clear
13268     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13269     t end
13270     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13271     :end' >>confcache
13272if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13273  if test -w "$cache_file"; then
13274    if test "x$cache_file" != "x/dev/null"; then
13275      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13276$as_echo "$as_me: updating cache $cache_file" >&6;}
13277      if test ! -f "$cache_file" || test -h "$cache_file"; then
13278	cat confcache >"$cache_file"
13279      else
13280        case $cache_file in #(
13281        */* | ?:*)
13282	  mv -f confcache "$cache_file"$$ &&
13283	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13284        *)
13285	  mv -f confcache "$cache_file" ;;
13286	esac
13287      fi
13288    fi
13289  else
13290    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13291$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13292  fi
13293fi
13294rm -f confcache
13295
13296test "x$prefix" = xNONE && prefix=$ac_default_prefix
13297# Let make expand exec_prefix.
13298test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13299
13300DEFS=-DHAVE_CONFIG_H
13301
13302ac_libobjs=
13303ac_ltlibobjs=
13304U=
13305for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13306  # 1. Remove the extension, and $U if already installed.
13307  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13308  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13309  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13310  #    will be set to the directory where LIBOBJS objects are built.
13311  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13312  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13313done
13314LIBOBJS=$ac_libobjs
13315
13316LTLIBOBJS=$ac_ltlibobjs
13317
13318
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13320$as_echo_n "checking that generated files are newer than configure... " >&6; }
13321   if test -n "$am_sleep_pid"; then
13322     # Hide warnings about reused PIDs.
13323     wait $am_sleep_pid 2>/dev/null
13324   fi
13325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13326$as_echo "done" >&6; }
13327 if test -n "$EXEEXT"; then
13328  am__EXEEXT_TRUE=
13329  am__EXEEXT_FALSE='#'
13330else
13331  am__EXEEXT_TRUE='#'
13332  am__EXEEXT_FALSE=
13333fi
13334
13335if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13336  as_fn_error $? "conditional \"AMDEP\" was never defined.
13337Usually this means the macro was only invoked conditionally." "$LINENO" 5
13338fi
13339if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13340  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13341Usually this means the macro was only invoked conditionally." "$LINENO" 5
13342fi
13343if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then
13344  as_fn_error $? "conditional \"USE_FCNTL\" was never defined.
13345Usually this means the macro was only invoked conditionally." "$LINENO" 5
13346fi
13347if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then
13348  as_fn_error $? "conditional \"USE_FLOCK\" was never defined.
13349Usually this means the macro was only invoked conditionally." "$LINENO" 5
13350fi
13351if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then
13352  as_fn_error $? "conditional \"USE_LOCKF\" was never defined.
13353Usually this means the macro was only invoked conditionally." "$LINENO" 5
13354fi
13355if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
13356  as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
13357Usually this means the macro was only invoked conditionally." "$LINENO" 5
13358fi
13359
13360: "${CONFIG_STATUS=./config.status}"
13361ac_write_fail=0
13362ac_clean_files_save=$ac_clean_files
13363ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13364{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13365$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13366as_write_fail=0
13367cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13368#! $SHELL
13369# Generated by $as_me.
13370# Run this file to recreate the current configuration.
13371# Compiler output produced by configure, useful for debugging
13372# configure, is in config.log if it exists.
13373
13374debug=false
13375ac_cs_recheck=false
13376ac_cs_silent=false
13377
13378SHELL=\${CONFIG_SHELL-$SHELL}
13379export SHELL
13380_ASEOF
13381cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13382## -------------------- ##
13383## M4sh Initialization. ##
13384## -------------------- ##
13385
13386# Be more Bourne compatible
13387DUALCASE=1; export DUALCASE # for MKS sh
13388if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13389  emulate sh
13390  NULLCMD=:
13391  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13392  # is contrary to our usage.  Disable this feature.
13393  alias -g '${1+"$@"}'='"$@"'
13394  setopt NO_GLOB_SUBST
13395else
13396  case `(set -o) 2>/dev/null` in #(
13397  *posix*) :
13398    set -o posix ;; #(
13399  *) :
13400     ;;
13401esac
13402fi
13403
13404
13405as_nl='
13406'
13407export as_nl
13408# Printing a long string crashes Solaris 7 /usr/bin/printf.
13409as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13410as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13411as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13412# Prefer a ksh shell builtin over an external printf program on Solaris,
13413# but without wasting forks for bash or zsh.
13414if test -z "$BASH_VERSION$ZSH_VERSION" \
13415    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13416  as_echo='print -r --'
13417  as_echo_n='print -rn --'
13418elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13419  as_echo='printf %s\n'
13420  as_echo_n='printf %s'
13421else
13422  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13423    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13424    as_echo_n='/usr/ucb/echo -n'
13425  else
13426    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13427    as_echo_n_body='eval
13428      arg=$1;
13429      case $arg in #(
13430      *"$as_nl"*)
13431	expr "X$arg" : "X\\(.*\\)$as_nl";
13432	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13433      esac;
13434      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13435    '
13436    export as_echo_n_body
13437    as_echo_n='sh -c $as_echo_n_body as_echo'
13438  fi
13439  export as_echo_body
13440  as_echo='sh -c $as_echo_body as_echo'
13441fi
13442
13443# The user is always right.
13444if test "${PATH_SEPARATOR+set}" != set; then
13445  PATH_SEPARATOR=:
13446  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13447    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13448      PATH_SEPARATOR=';'
13449  }
13450fi
13451
13452
13453# IFS
13454# We need space, tab and new line, in precisely that order.  Quoting is
13455# there to prevent editors from complaining about space-tab.
13456# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13457# splitting by setting IFS to empty value.)
13458IFS=" ""	$as_nl"
13459
13460# Find who we are.  Look in the path if we contain no directory separator.
13461as_myself=
13462case $0 in #((
13463  *[\\/]* ) as_myself=$0 ;;
13464  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465for as_dir in $PATH
13466do
13467  IFS=$as_save_IFS
13468  test -z "$as_dir" && as_dir=.
13469    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13470  done
13471IFS=$as_save_IFS
13472
13473     ;;
13474esac
13475# We did not find ourselves, most probably we were run as `sh COMMAND'
13476# in which case we are not to be found in the path.
13477if test "x$as_myself" = x; then
13478  as_myself=$0
13479fi
13480if test ! -f "$as_myself"; then
13481  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13482  exit 1
13483fi
13484
13485# Unset variables that we do not need and which cause bugs (e.g. in
13486# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13487# suppresses any "Segmentation fault" message there.  '((' could
13488# trigger a bug in pdksh 5.2.14.
13489for as_var in BASH_ENV ENV MAIL MAILPATH
13490do eval test x\${$as_var+set} = xset \
13491  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13492done
13493PS1='$ '
13494PS2='> '
13495PS4='+ '
13496
13497# NLS nuisances.
13498LC_ALL=C
13499export LC_ALL
13500LANGUAGE=C
13501export LANGUAGE
13502
13503# CDPATH.
13504(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13505
13506
13507# as_fn_error STATUS ERROR [LINENO LOG_FD]
13508# ----------------------------------------
13509# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13510# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13511# script with STATUS, using 1 if that was 0.
13512as_fn_error ()
13513{
13514  as_status=$1; test $as_status -eq 0 && as_status=1
13515  if test "$4"; then
13516    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13517    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13518  fi
13519  $as_echo "$as_me: error: $2" >&2
13520  as_fn_exit $as_status
13521} # as_fn_error
13522
13523
13524# as_fn_set_status STATUS
13525# -----------------------
13526# Set $? to STATUS, without forking.
13527as_fn_set_status ()
13528{
13529  return $1
13530} # as_fn_set_status
13531
13532# as_fn_exit STATUS
13533# -----------------
13534# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13535as_fn_exit ()
13536{
13537  set +e
13538  as_fn_set_status $1
13539  exit $1
13540} # as_fn_exit
13541
13542# as_fn_unset VAR
13543# ---------------
13544# Portably unset VAR.
13545as_fn_unset ()
13546{
13547  { eval $1=; unset $1;}
13548}
13549as_unset=as_fn_unset
13550# as_fn_append VAR VALUE
13551# ----------------------
13552# Append the text in VALUE to the end of the definition contained in VAR. Take
13553# advantage of any shell optimizations that allow amortized linear growth over
13554# repeated appends, instead of the typical quadratic growth present in naive
13555# implementations.
13556if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13557  eval 'as_fn_append ()
13558  {
13559    eval $1+=\$2
13560  }'
13561else
13562  as_fn_append ()
13563  {
13564    eval $1=\$$1\$2
13565  }
13566fi # as_fn_append
13567
13568# as_fn_arith ARG...
13569# ------------------
13570# Perform arithmetic evaluation on the ARGs, and store the result in the
13571# global $as_val. Take advantage of shells that can avoid forks. The arguments
13572# must be portable across $(()) and expr.
13573if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13574  eval 'as_fn_arith ()
13575  {
13576    as_val=$(( $* ))
13577  }'
13578else
13579  as_fn_arith ()
13580  {
13581    as_val=`expr "$@" || test $? -eq 1`
13582  }
13583fi # as_fn_arith
13584
13585
13586if expr a : '\(a\)' >/dev/null 2>&1 &&
13587   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13588  as_expr=expr
13589else
13590  as_expr=false
13591fi
13592
13593if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13594  as_basename=basename
13595else
13596  as_basename=false
13597fi
13598
13599if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13600  as_dirname=dirname
13601else
13602  as_dirname=false
13603fi
13604
13605as_me=`$as_basename -- "$0" ||
13606$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13607	 X"$0" : 'X\(//\)$' \| \
13608	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13609$as_echo X/"$0" |
13610    sed '/^.*\/\([^/][^/]*\)\/*$/{
13611	    s//\1/
13612	    q
13613	  }
13614	  /^X\/\(\/\/\)$/{
13615	    s//\1/
13616	    q
13617	  }
13618	  /^X\/\(\/\).*/{
13619	    s//\1/
13620	    q
13621	  }
13622	  s/.*/./; q'`
13623
13624# Avoid depending upon Character Ranges.
13625as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13626as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13627as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13628as_cr_digits='0123456789'
13629as_cr_alnum=$as_cr_Letters$as_cr_digits
13630
13631ECHO_C= ECHO_N= ECHO_T=
13632case `echo -n x` in #(((((
13633-n*)
13634  case `echo 'xy\c'` in
13635  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13636  xy)  ECHO_C='\c';;
13637  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13638       ECHO_T='	';;
13639  esac;;
13640*)
13641  ECHO_N='-n';;
13642esac
13643
13644rm -f conf$$ conf$$.exe conf$$.file
13645if test -d conf$$.dir; then
13646  rm -f conf$$.dir/conf$$.file
13647else
13648  rm -f conf$$.dir
13649  mkdir conf$$.dir 2>/dev/null
13650fi
13651if (echo >conf$$.file) 2>/dev/null; then
13652  if ln -s conf$$.file conf$$ 2>/dev/null; then
13653    as_ln_s='ln -s'
13654    # ... but there are two gotchas:
13655    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13656    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13657    # In both cases, we have to default to `cp -pR'.
13658    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13659      as_ln_s='cp -pR'
13660  elif ln conf$$.file conf$$ 2>/dev/null; then
13661    as_ln_s=ln
13662  else
13663    as_ln_s='cp -pR'
13664  fi
13665else
13666  as_ln_s='cp -pR'
13667fi
13668rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13669rmdir conf$$.dir 2>/dev/null
13670
13671
13672# as_fn_mkdir_p
13673# -------------
13674# Create "$as_dir" as a directory, including parents if necessary.
13675as_fn_mkdir_p ()
13676{
13677
13678  case $as_dir in #(
13679  -*) as_dir=./$as_dir;;
13680  esac
13681  test -d "$as_dir" || eval $as_mkdir_p || {
13682    as_dirs=
13683    while :; do
13684      case $as_dir in #(
13685      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13686      *) as_qdir=$as_dir;;
13687      esac
13688      as_dirs="'$as_qdir' $as_dirs"
13689      as_dir=`$as_dirname -- "$as_dir" ||
13690$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13691	 X"$as_dir" : 'X\(//\)[^/]' \| \
13692	 X"$as_dir" : 'X\(//\)$' \| \
13693	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13694$as_echo X"$as_dir" |
13695    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13696	    s//\1/
13697	    q
13698	  }
13699	  /^X\(\/\/\)[^/].*/{
13700	    s//\1/
13701	    q
13702	  }
13703	  /^X\(\/\/\)$/{
13704	    s//\1/
13705	    q
13706	  }
13707	  /^X\(\/\).*/{
13708	    s//\1/
13709	    q
13710	  }
13711	  s/.*/./; q'`
13712      test -d "$as_dir" && break
13713    done
13714    test -z "$as_dirs" || eval "mkdir $as_dirs"
13715  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13716
13717
13718} # as_fn_mkdir_p
13719if mkdir -p . 2>/dev/null; then
13720  as_mkdir_p='mkdir -p "$as_dir"'
13721else
13722  test -d ./-p && rmdir ./-p
13723  as_mkdir_p=false
13724fi
13725
13726
13727# as_fn_executable_p FILE
13728# -----------------------
13729# Test if FILE is an executable regular file.
13730as_fn_executable_p ()
13731{
13732  test -f "$1" && test -x "$1"
13733} # as_fn_executable_p
13734as_test_x='test -x'
13735as_executable_p=as_fn_executable_p
13736
13737# Sed expression to map a string onto a valid CPP name.
13738as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13739
13740# Sed expression to map a string onto a valid variable name.
13741as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13742
13743
13744exec 6>&1
13745## ----------------------------------- ##
13746## Main body of $CONFIG_STATUS script. ##
13747## ----------------------------------- ##
13748_ASEOF
13749test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13750
13751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13752# Save the log message, to keep $0 and so on meaningful, and to
13753# report actual input values of CONFIG_FILES etc. instead of their
13754# values after options handling.
13755ac_log="
13756This file was extended by liblock $as_me 0.60, which was
13757generated by GNU Autoconf 2.69.  Invocation command line was
13758
13759  CONFIG_FILES    = $CONFIG_FILES
13760  CONFIG_HEADERS  = $CONFIG_HEADERS
13761  CONFIG_LINKS    = $CONFIG_LINKS
13762  CONFIG_COMMANDS = $CONFIG_COMMANDS
13763  $ $0 $@
13764
13765on `(hostname || uname -n) 2>/dev/null | sed 1q`
13766"
13767
13768_ACEOF
13769
13770case $ac_config_files in *"
13771"*) set x $ac_config_files; shift; ac_config_files=$*;;
13772esac
13773
13774case $ac_config_headers in *"
13775"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13776esac
13777
13778
13779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13780# Files that config.status was made for.
13781config_files="$ac_config_files"
13782config_headers="$ac_config_headers"
13783config_commands="$ac_config_commands"
13784
13785_ACEOF
13786
13787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13788ac_cs_usage="\
13789\`$as_me' instantiates files and other configuration actions
13790from templates according to the current configuration.  Unless the files
13791and actions are specified as TAGs, all are instantiated by default.
13792
13793Usage: $0 [OPTION]... [TAG]...
13794
13795  -h, --help       print this help, then exit
13796  -V, --version    print version number and configuration settings, then exit
13797      --config     print configuration, then exit
13798  -q, --quiet, --silent
13799                   do not print progress messages
13800  -d, --debug      don't remove temporary files
13801      --recheck    update $as_me by reconfiguring in the same conditions
13802      --file=FILE[:TEMPLATE]
13803                   instantiate the configuration file FILE
13804      --header=FILE[:TEMPLATE]
13805                   instantiate the configuration header FILE
13806
13807Configuration files:
13808$config_files
13809
13810Configuration headers:
13811$config_headers
13812
13813Configuration commands:
13814$config_commands
13815
13816Report bugs to <courier-users@lists.sourceforge.net>."
13817
13818_ACEOF
13819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13820ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13821ac_cs_version="\\
13822liblock config.status 0.60
13823configured by $0, generated by GNU Autoconf 2.69,
13824  with options \\"\$ac_cs_config\\"
13825
13826Copyright (C) 2012 Free Software Foundation, Inc.
13827This config.status script is free software; the Free Software Foundation
13828gives unlimited permission to copy, distribute and modify it."
13829
13830ac_pwd='$ac_pwd'
13831srcdir='$srcdir'
13832INSTALL='$INSTALL'
13833MKDIR_P='$MKDIR_P'
13834AWK='$AWK'
13835test -n "\$AWK" || AWK=awk
13836_ACEOF
13837
13838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839# The default lists apply if the user does not specify any file.
13840ac_need_defaults=:
13841while test $# != 0
13842do
13843  case $1 in
13844  --*=?*)
13845    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13846    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13847    ac_shift=:
13848    ;;
13849  --*=)
13850    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13851    ac_optarg=
13852    ac_shift=:
13853    ;;
13854  *)
13855    ac_option=$1
13856    ac_optarg=$2
13857    ac_shift=shift
13858    ;;
13859  esac
13860
13861  case $ac_option in
13862  # Handling of the options.
13863  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13864    ac_cs_recheck=: ;;
13865  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13866    $as_echo "$ac_cs_version"; exit ;;
13867  --config | --confi | --conf | --con | --co | --c )
13868    $as_echo "$ac_cs_config"; exit ;;
13869  --debug | --debu | --deb | --de | --d | -d )
13870    debug=: ;;
13871  --file | --fil | --fi | --f )
13872    $ac_shift
13873    case $ac_optarg in
13874    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13875    '') as_fn_error $? "missing file argument" ;;
13876    esac
13877    as_fn_append CONFIG_FILES " '$ac_optarg'"
13878    ac_need_defaults=false;;
13879  --header | --heade | --head | --hea )
13880    $ac_shift
13881    case $ac_optarg in
13882    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13883    esac
13884    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13885    ac_need_defaults=false;;
13886  --he | --h)
13887    # Conflict between --help and --header
13888    as_fn_error $? "ambiguous option: \`$1'
13889Try \`$0 --help' for more information.";;
13890  --help | --hel | -h )
13891    $as_echo "$ac_cs_usage"; exit ;;
13892  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13893  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13894    ac_cs_silent=: ;;
13895
13896  # This is an error.
13897  -*) as_fn_error $? "unrecognized option: \`$1'
13898Try \`$0 --help' for more information." ;;
13899
13900  *) as_fn_append ac_config_targets " $1"
13901     ac_need_defaults=false ;;
13902
13903  esac
13904  shift
13905done
13906
13907ac_configure_extra_args=
13908
13909if $ac_cs_silent; then
13910  exec 6>/dev/null
13911  ac_configure_extra_args="$ac_configure_extra_args --silent"
13912fi
13913
13914_ACEOF
13915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13916if \$ac_cs_recheck; then
13917  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13918  shift
13919  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13920  CONFIG_SHELL='$SHELL'
13921  export CONFIG_SHELL
13922  exec "\$@"
13923fi
13924
13925_ACEOF
13926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13927exec 5>>config.log
13928{
13929  echo
13930  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13931## Running $as_me. ##
13932_ASBOX
13933  $as_echo "$ac_log"
13934} >&5
13935
13936_ACEOF
13937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13938#
13939# INIT-COMMANDS
13940#
13941AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13942
13943
13944# The HP-UX ksh and POSIX shell print the target directory to stdout
13945# if CDPATH is set.
13946(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13947
13948sed_quote_subst='$sed_quote_subst'
13949double_quote_subst='$double_quote_subst'
13950delay_variable_subst='$delay_variable_subst'
13951macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13952macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13953enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13954enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13955pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13956enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13957shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13958SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13959ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13960PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13961host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13962host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13963host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13964build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13965build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13966build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13967SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13968Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13969GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13970EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13971FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13972LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13973NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13974LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13975max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13976ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13977exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13978lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13979lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13980lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13981lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13982lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13983reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13984reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13985OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13986deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13987file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13988file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13989want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13990DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13991sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13992AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13993AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13994archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13995STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13996RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13997old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13998old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13999old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14000lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14001CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14002CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14003compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14004GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14005lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14006lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14007lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14008lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14009lt_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"`'
14010lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14011nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14012lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14013lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14014objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14015MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14016lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14017lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14018lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14019lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14020lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14021need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14022MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14023DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14024NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14025LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14026OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14027OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14028libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14029shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14030extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14031archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14032enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14033export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14034whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14035compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14036old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14037old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14038archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14039archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14040module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14041module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14042with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14043allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14044no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14045hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14046hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14047hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14048hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14049hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14050hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14051hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14052inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14053link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14054always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14055export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14056exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14057include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14058prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14059postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14060file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14061variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14062need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14063need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14064version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14065runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14066shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14067shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14068libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14069library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14070soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14071install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14072postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14073postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14074finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14075finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14076hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14077sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14078configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14079configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14080hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14081enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14082enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14083enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14084old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14085striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14086
14087LTCC='$LTCC'
14088LTCFLAGS='$LTCFLAGS'
14089compiler='$compiler_DEFAULT'
14090
14091# A function that is used when there is no print builtin or printf.
14092func_fallback_echo ()
14093{
14094  eval 'cat <<_LTECHO_EOF
14095\$1
14096_LTECHO_EOF'
14097}
14098
14099# Quote evaled strings.
14100for var in SHELL \
14101ECHO \
14102PATH_SEPARATOR \
14103SED \
14104GREP \
14105EGREP \
14106FGREP \
14107LD \
14108NM \
14109LN_S \
14110lt_SP2NL \
14111lt_NL2SP \
14112reload_flag \
14113OBJDUMP \
14114deplibs_check_method \
14115file_magic_cmd \
14116file_magic_glob \
14117want_nocaseglob \
14118DLLTOOL \
14119sharedlib_from_linklib_cmd \
14120AR \
14121AR_FLAGS \
14122archiver_list_spec \
14123STRIP \
14124RANLIB \
14125CC \
14126CFLAGS \
14127compiler \
14128lt_cv_sys_global_symbol_pipe \
14129lt_cv_sys_global_symbol_to_cdecl \
14130lt_cv_sys_global_symbol_to_import \
14131lt_cv_sys_global_symbol_to_c_name_address \
14132lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14133lt_cv_nm_interface \
14134nm_file_list_spec \
14135lt_cv_truncate_bin \
14136lt_prog_compiler_no_builtin_flag \
14137lt_prog_compiler_pic \
14138lt_prog_compiler_wl \
14139lt_prog_compiler_static \
14140lt_cv_prog_compiler_c_o \
14141need_locks \
14142MANIFEST_TOOL \
14143DSYMUTIL \
14144NMEDIT \
14145LIPO \
14146OTOOL \
14147OTOOL64 \
14148shrext_cmds \
14149export_dynamic_flag_spec \
14150whole_archive_flag_spec \
14151compiler_needs_object \
14152with_gnu_ld \
14153allow_undefined_flag \
14154no_undefined_flag \
14155hardcode_libdir_flag_spec \
14156hardcode_libdir_separator \
14157exclude_expsyms \
14158include_expsyms \
14159file_list_spec \
14160variables_saved_for_relink \
14161libname_spec \
14162library_names_spec \
14163soname_spec \
14164install_override_mode \
14165finish_eval \
14166old_striplib \
14167striplib; do
14168    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14169    *[\\\\\\\`\\"\\\$]*)
14170      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14171      ;;
14172    *)
14173      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14174      ;;
14175    esac
14176done
14177
14178# Double-quote double-evaled strings.
14179for var in reload_cmds \
14180old_postinstall_cmds \
14181old_postuninstall_cmds \
14182old_archive_cmds \
14183extract_expsyms_cmds \
14184old_archive_from_new_cmds \
14185old_archive_from_expsyms_cmds \
14186archive_cmds \
14187archive_expsym_cmds \
14188module_cmds \
14189module_expsym_cmds \
14190export_symbols_cmds \
14191prelink_cmds \
14192postlink_cmds \
14193postinstall_cmds \
14194postuninstall_cmds \
14195finish_cmds \
14196sys_lib_search_path_spec \
14197configure_time_dlsearch_path \
14198configure_time_lt_sys_library_path; do
14199    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14200    *[\\\\\\\`\\"\\\$]*)
14201      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14202      ;;
14203    *)
14204      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14205      ;;
14206    esac
14207done
14208
14209ac_aux_dir='$ac_aux_dir'
14210
14211# See if we are running on zsh, and set the options that allow our
14212# commands through without removal of \ escapes INIT.
14213if test -n "\${ZSH_VERSION+set}"; then
14214   setopt NO_GLOB_SUBST
14215fi
14216
14217
14218    PACKAGE='$PACKAGE'
14219    VERSION='$VERSION'
14220    RM='$RM'
14221    ofile='$ofile'
14222
14223
14224
14225
14226_ACEOF
14227
14228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14229
14230# Handling of arguments.
14231for ac_config_target in $ac_config_targets
14232do
14233  case $ac_config_target in
14234    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14235    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14236    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14237    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14238
14239  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14240  esac
14241done
14242
14243
14244# If the user did not use the arguments to specify the items to instantiate,
14245# then the envvar interface is used.  Set only those that are not.
14246# We use the long form for the default assignment because of an extremely
14247# bizarre bug on SunOS 4.1.3.
14248if $ac_need_defaults; then
14249  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14250  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14251  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14252fi
14253
14254# Have a temporary directory for convenience.  Make it in the build tree
14255# simply because there is no reason against having it here, and in addition,
14256# creating and moving files from /tmp can sometimes cause problems.
14257# Hook for its removal unless debugging.
14258# Note that there is a small window in which the directory will not be cleaned:
14259# after its creation but before its name has been assigned to `$tmp'.
14260$debug ||
14261{
14262  tmp= ac_tmp=
14263  trap 'exit_status=$?
14264  : "${ac_tmp:=$tmp}"
14265  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14266' 0
14267  trap 'as_fn_exit 1' 1 2 13 15
14268}
14269# Create a (secure) tmp directory for tmp files.
14270
14271{
14272  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14273  test -d "$tmp"
14274}  ||
14275{
14276  tmp=./conf$$-$RANDOM
14277  (umask 077 && mkdir "$tmp")
14278} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14279ac_tmp=$tmp
14280
14281# Set up the scripts for CONFIG_FILES section.
14282# No need to generate them if there are no CONFIG_FILES.
14283# This happens for instance with `./config.status config.h'.
14284if test -n "$CONFIG_FILES"; then
14285
14286
14287ac_cr=`echo X | tr X '\015'`
14288# On cygwin, bash can eat \r inside `` if the user requested igncr.
14289# But we know of no other shell where ac_cr would be empty at this
14290# point, so we can use a bashism as a fallback.
14291if test "x$ac_cr" = x; then
14292  eval ac_cr=\$\'\\r\'
14293fi
14294ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14295if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14296  ac_cs_awk_cr='\\r'
14297else
14298  ac_cs_awk_cr=$ac_cr
14299fi
14300
14301echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14302_ACEOF
14303
14304
14305{
14306  echo "cat >conf$$subs.awk <<_ACEOF" &&
14307  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14308  echo "_ACEOF"
14309} >conf$$subs.sh ||
14310  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14311ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14312ac_delim='%!_!# '
14313for ac_last_try in false false false false false :; do
14314  . ./conf$$subs.sh ||
14315    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14316
14317  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14318  if test $ac_delim_n = $ac_delim_num; then
14319    break
14320  elif $ac_last_try; then
14321    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14322  else
14323    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14324  fi
14325done
14326rm -f conf$$subs.sh
14327
14328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14329cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14330_ACEOF
14331sed -n '
14332h
14333s/^/S["/; s/!.*/"]=/
14334p
14335g
14336s/^[^!]*!//
14337:repl
14338t repl
14339s/'"$ac_delim"'$//
14340t delim
14341:nl
14342h
14343s/\(.\{148\}\)..*/\1/
14344t more1
14345s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14346p
14347n
14348b repl
14349:more1
14350s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14351p
14352g
14353s/.\{148\}//
14354t nl
14355:delim
14356h
14357s/\(.\{148\}\)..*/\1/
14358t more2
14359s/["\\]/\\&/g; s/^/"/; s/$/"/
14360p
14361b
14362:more2
14363s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14364p
14365g
14366s/.\{148\}//
14367t delim
14368' <conf$$subs.awk | sed '
14369/^[^""]/{
14370  N
14371  s/\n//
14372}
14373' >>$CONFIG_STATUS || ac_write_fail=1
14374rm -f conf$$subs.awk
14375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14376_ACAWK
14377cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14378  for (key in S) S_is_set[key] = 1
14379  FS = ""
14380
14381}
14382{
14383  line = $ 0
14384  nfields = split(line, field, "@")
14385  substed = 0
14386  len = length(field[1])
14387  for (i = 2; i < nfields; i++) {
14388    key = field[i]
14389    keylen = length(key)
14390    if (S_is_set[key]) {
14391      value = S[key]
14392      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14393      len += length(value) + length(field[++i])
14394      substed = 1
14395    } else
14396      len += 1 + keylen
14397  }
14398
14399  print line
14400}
14401
14402_ACAWK
14403_ACEOF
14404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14405if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14406  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14407else
14408  cat
14409fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14410  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14411_ACEOF
14412
14413# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14414# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14415# trailing colons and then remove the whole line if VPATH becomes empty
14416# (actually we leave an empty line to preserve line numbers).
14417if test "x$srcdir" = x.; then
14418  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14419h
14420s///
14421s/^/:/
14422s/[	 ]*$/:/
14423s/:\$(srcdir):/:/g
14424s/:\${srcdir}:/:/g
14425s/:@srcdir@:/:/g
14426s/^:*//
14427s/:*$//
14428x
14429s/\(=[	 ]*\).*/\1/
14430G
14431s/\n//
14432s/^[^=]*=[	 ]*$//
14433}'
14434fi
14435
14436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14437fi # test -n "$CONFIG_FILES"
14438
14439# Set up the scripts for CONFIG_HEADERS section.
14440# No need to generate them if there are no CONFIG_HEADERS.
14441# This happens for instance with `./config.status Makefile'.
14442if test -n "$CONFIG_HEADERS"; then
14443cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14444BEGIN {
14445_ACEOF
14446
14447# Transform confdefs.h into an awk script `defines.awk', embedded as
14448# here-document in config.status, that substitutes the proper values into
14449# config.h.in to produce config.h.
14450
14451# Create a delimiter string that does not exist in confdefs.h, to ease
14452# handling of long lines.
14453ac_delim='%!_!# '
14454for ac_last_try in false false :; do
14455  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14456  if test -z "$ac_tt"; then
14457    break
14458  elif $ac_last_try; then
14459    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14460  else
14461    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14462  fi
14463done
14464
14465# For the awk script, D is an array of macro values keyed by name,
14466# likewise P contains macro parameters if any.  Preserve backslash
14467# newline sequences.
14468
14469ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14470sed -n '
14471s/.\{148\}/&'"$ac_delim"'/g
14472t rset
14473:rset
14474s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14475t def
14476d
14477:def
14478s/\\$//
14479t bsnl
14480s/["\\]/\\&/g
14481s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14482D["\1"]=" \3"/p
14483s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14484d
14485:bsnl
14486s/["\\]/\\&/g
14487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14488D["\1"]=" \3\\\\\\n"\\/p
14489t cont
14490s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14491t cont
14492d
14493:cont
14494n
14495s/.\{148\}/&'"$ac_delim"'/g
14496t clear
14497:clear
14498s/\\$//
14499t bsnlc
14500s/["\\]/\\&/g; s/^/"/; s/$/"/p
14501d
14502:bsnlc
14503s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14504b cont
14505' <confdefs.h | sed '
14506s/'"$ac_delim"'/"\\\
14507"/g' >>$CONFIG_STATUS || ac_write_fail=1
14508
14509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14510  for (key in D) D_is_set[key] = 1
14511  FS = ""
14512}
14513/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14514  line = \$ 0
14515  split(line, arg, " ")
14516  if (arg[1] == "#") {
14517    defundef = arg[2]
14518    mac1 = arg[3]
14519  } else {
14520    defundef = substr(arg[1], 2)
14521    mac1 = arg[2]
14522  }
14523  split(mac1, mac2, "(") #)
14524  macro = mac2[1]
14525  prefix = substr(line, 1, index(line, defundef) - 1)
14526  if (D_is_set[macro]) {
14527    # Preserve the white space surrounding the "#".
14528    print prefix "define", macro P[macro] D[macro]
14529    next
14530  } else {
14531    # Replace #undef with comments.  This is necessary, for example,
14532    # in the case of _POSIX_SOURCE, which is predefined and required
14533    # on some systems where configure will not decide to define it.
14534    if (defundef == "undef") {
14535      print "/*", prefix defundef, macro, "*/"
14536      next
14537    }
14538  }
14539}
14540{ print }
14541_ACAWK
14542_ACEOF
14543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14544  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14545fi # test -n "$CONFIG_HEADERS"
14546
14547
14548eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14549shift
14550for ac_tag
14551do
14552  case $ac_tag in
14553  :[FHLC]) ac_mode=$ac_tag; continue;;
14554  esac
14555  case $ac_mode$ac_tag in
14556  :[FHL]*:*);;
14557  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14558  :[FH]-) ac_tag=-:-;;
14559  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14560  esac
14561  ac_save_IFS=$IFS
14562  IFS=:
14563  set x $ac_tag
14564  IFS=$ac_save_IFS
14565  shift
14566  ac_file=$1
14567  shift
14568
14569  case $ac_mode in
14570  :L) ac_source=$1;;
14571  :[FH])
14572    ac_file_inputs=
14573    for ac_f
14574    do
14575      case $ac_f in
14576      -) ac_f="$ac_tmp/stdin";;
14577      *) # Look for the file first in the build tree, then in the source tree
14578	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14579	 # because $ac_f cannot contain `:'.
14580	 test -f "$ac_f" ||
14581	   case $ac_f in
14582	   [\\/$]*) false;;
14583	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14584	   esac ||
14585	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14586      esac
14587      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14588      as_fn_append ac_file_inputs " '$ac_f'"
14589    done
14590
14591    # Let's still pretend it is `configure' which instantiates (i.e., don't
14592    # use $as_me), people would be surprised to read:
14593    #    /* config.h.  Generated by config.status.  */
14594    configure_input='Generated from '`
14595	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14596	`' by configure.'
14597    if test x"$ac_file" != x-; then
14598      configure_input="$ac_file.  $configure_input"
14599      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14600$as_echo "$as_me: creating $ac_file" >&6;}
14601    fi
14602    # Neutralize special characters interpreted by sed in replacement strings.
14603    case $configure_input in #(
14604    *\&* | *\|* | *\\* )
14605       ac_sed_conf_input=`$as_echo "$configure_input" |
14606       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14607    *) ac_sed_conf_input=$configure_input;;
14608    esac
14609
14610    case $ac_tag in
14611    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14612      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14613    esac
14614    ;;
14615  esac
14616
14617  ac_dir=`$as_dirname -- "$ac_file" ||
14618$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14619	 X"$ac_file" : 'X\(//\)[^/]' \| \
14620	 X"$ac_file" : 'X\(//\)$' \| \
14621	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14622$as_echo X"$ac_file" |
14623    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14624	    s//\1/
14625	    q
14626	  }
14627	  /^X\(\/\/\)[^/].*/{
14628	    s//\1/
14629	    q
14630	  }
14631	  /^X\(\/\/\)$/{
14632	    s//\1/
14633	    q
14634	  }
14635	  /^X\(\/\).*/{
14636	    s//\1/
14637	    q
14638	  }
14639	  s/.*/./; q'`
14640  as_dir="$ac_dir"; as_fn_mkdir_p
14641  ac_builddir=.
14642
14643case "$ac_dir" in
14644.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14645*)
14646  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14647  # A ".." for each directory in $ac_dir_suffix.
14648  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14649  case $ac_top_builddir_sub in
14650  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14651  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14652  esac ;;
14653esac
14654ac_abs_top_builddir=$ac_pwd
14655ac_abs_builddir=$ac_pwd$ac_dir_suffix
14656# for backward compatibility:
14657ac_top_builddir=$ac_top_build_prefix
14658
14659case $srcdir in
14660  .)  # We are building in place.
14661    ac_srcdir=.
14662    ac_top_srcdir=$ac_top_builddir_sub
14663    ac_abs_top_srcdir=$ac_pwd ;;
14664  [\\/]* | ?:[\\/]* )  # Absolute name.
14665    ac_srcdir=$srcdir$ac_dir_suffix;
14666    ac_top_srcdir=$srcdir
14667    ac_abs_top_srcdir=$srcdir ;;
14668  *) # Relative name.
14669    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14670    ac_top_srcdir=$ac_top_build_prefix$srcdir
14671    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14672esac
14673ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14674
14675
14676  case $ac_mode in
14677  :F)
14678  #
14679  # CONFIG_FILE
14680  #
14681
14682  case $INSTALL in
14683  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14684  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14685  esac
14686  ac_MKDIR_P=$MKDIR_P
14687  case $MKDIR_P in
14688  [\\/$]* | ?:[\\/]* ) ;;
14689  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14690  esac
14691_ACEOF
14692
14693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14694# If the template does not know about datarootdir, expand it.
14695# FIXME: This hack should be removed a few years after 2.60.
14696ac_datarootdir_hack=; ac_datarootdir_seen=
14697ac_sed_dataroot='
14698/datarootdir/ {
14699  p
14700  q
14701}
14702/@datadir@/p
14703/@docdir@/p
14704/@infodir@/p
14705/@localedir@/p
14706/@mandir@/p'
14707case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14708*datarootdir*) ac_datarootdir_seen=yes;;
14709*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14710  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14711$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14712_ACEOF
14713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14714  ac_datarootdir_hack='
14715  s&@datadir@&$datadir&g
14716  s&@docdir@&$docdir&g
14717  s&@infodir@&$infodir&g
14718  s&@localedir@&$localedir&g
14719  s&@mandir@&$mandir&g
14720  s&\\\${datarootdir}&$datarootdir&g' ;;
14721esac
14722_ACEOF
14723
14724# Neutralize VPATH when `$srcdir' = `.'.
14725# Shell code in configure.ac might set extrasub.
14726# FIXME: do we really want to maintain this feature?
14727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14728ac_sed_extra="$ac_vpsub
14729$extrasub
14730_ACEOF
14731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14732:t
14733/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14734s|@configure_input@|$ac_sed_conf_input|;t t
14735s&@top_builddir@&$ac_top_builddir_sub&;t t
14736s&@top_build_prefix@&$ac_top_build_prefix&;t t
14737s&@srcdir@&$ac_srcdir&;t t
14738s&@abs_srcdir@&$ac_abs_srcdir&;t t
14739s&@top_srcdir@&$ac_top_srcdir&;t t
14740s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14741s&@builddir@&$ac_builddir&;t t
14742s&@abs_builddir@&$ac_abs_builddir&;t t
14743s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14744s&@INSTALL@&$ac_INSTALL&;t t
14745s&@MKDIR_P@&$ac_MKDIR_P&;t t
14746$ac_datarootdir_hack
14747"
14748eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14749  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14750
14751test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14752  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14753  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14754      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14755  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14756which seems to be undefined.  Please make sure it is defined" >&5
14757$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14758which seems to be undefined.  Please make sure it is defined" >&2;}
14759
14760  rm -f "$ac_tmp/stdin"
14761  case $ac_file in
14762  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14763  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14764  esac \
14765  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14766 ;;
14767  :H)
14768  #
14769  # CONFIG_HEADER
14770  #
14771  if test x"$ac_file" != x-; then
14772    {
14773      $as_echo "/* $configure_input  */" \
14774      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14775    } >"$ac_tmp/config.h" \
14776      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14777    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14778      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14779$as_echo "$as_me: $ac_file is unchanged" >&6;}
14780    else
14781      rm -f "$ac_file"
14782      mv "$ac_tmp/config.h" "$ac_file" \
14783	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14784    fi
14785  else
14786    $as_echo "/* $configure_input  */" \
14787      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14788      || as_fn_error $? "could not create -" "$LINENO" 5
14789  fi
14790# Compute "$ac_file"'s index in $config_headers.
14791_am_arg="$ac_file"
14792_am_stamp_count=1
14793for _am_header in $config_headers :; do
14794  case $_am_header in
14795    $_am_arg | $_am_arg:* )
14796      break ;;
14797    * )
14798      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14799  esac
14800done
14801echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14802$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14803	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14804	 X"$_am_arg" : 'X\(//\)$' \| \
14805	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14806$as_echo X"$_am_arg" |
14807    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14808	    s//\1/
14809	    q
14810	  }
14811	  /^X\(\/\/\)[^/].*/{
14812	    s//\1/
14813	    q
14814	  }
14815	  /^X\(\/\/\)$/{
14816	    s//\1/
14817	    q
14818	  }
14819	  /^X\(\/\).*/{
14820	    s//\1/
14821	    q
14822	  }
14823	  s/.*/./; q'`/stamp-h$_am_stamp_count
14824 ;;
14825
14826  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14827$as_echo "$as_me: executing $ac_file commands" >&6;}
14828 ;;
14829  esac
14830
14831
14832  case $ac_file$ac_mode in
14833    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14834  # Older Autoconf quotes --file arguments for eval, but not when files
14835  # are listed without --file.  Let's play safe and only enable the eval
14836  # if we detect the quoting.
14837  # TODO: see whether this extra hack can be removed once we start
14838  # requiring Autoconf 2.70 or later.
14839  case $CONFIG_FILES in #(
14840  *\'*) :
14841    eval set x "$CONFIG_FILES" ;; #(
14842  *) :
14843    set x $CONFIG_FILES ;; #(
14844  *) :
14845     ;;
14846esac
14847  shift
14848  # Used to flag and report bootstrapping failures.
14849  am_rc=0
14850  for am_mf
14851  do
14852    # Strip MF so we end up with the name of the file.
14853    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14854    # Check whether this is an Automake generated Makefile which includes
14855    # dependency-tracking related rules and includes.
14856    # Grep'ing the whole file directly is not great: AIX grep has a line
14857    # limit of 2048, but all sed's we know have understand at least 4000.
14858    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14859      || continue
14860    am_dirpart=`$as_dirname -- "$am_mf" ||
14861$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14862	 X"$am_mf" : 'X\(//\)[^/]' \| \
14863	 X"$am_mf" : 'X\(//\)$' \| \
14864	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14865$as_echo X"$am_mf" |
14866    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14867	    s//\1/
14868	    q
14869	  }
14870	  /^X\(\/\/\)[^/].*/{
14871	    s//\1/
14872	    q
14873	  }
14874	  /^X\(\/\/\)$/{
14875	    s//\1/
14876	    q
14877	  }
14878	  /^X\(\/\).*/{
14879	    s//\1/
14880	    q
14881	  }
14882	  s/.*/./; q'`
14883    am_filepart=`$as_basename -- "$am_mf" ||
14884$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14885	 X"$am_mf" : 'X\(//\)$' \| \
14886	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14887$as_echo X/"$am_mf" |
14888    sed '/^.*\/\([^/][^/]*\)\/*$/{
14889	    s//\1/
14890	    q
14891	  }
14892	  /^X\/\(\/\/\)$/{
14893	    s//\1/
14894	    q
14895	  }
14896	  /^X\/\(\/\).*/{
14897	    s//\1/
14898	    q
14899	  }
14900	  s/.*/./; q'`
14901    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14902      && sed -e '/# am--include-marker/d' "$am_filepart" \
14903        | $MAKE -f - am--depfiles" >&5
14904   (cd "$am_dirpart" \
14905      && sed -e '/# am--include-marker/d' "$am_filepart" \
14906        | $MAKE -f - am--depfiles) >&5 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } || am_rc=$?
14910  done
14911  if test $am_rc -ne 0; then
14912    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14914as_fn_error $? "Something went wrong bootstrapping makefile fragments
14915    for automatic dependency tracking.  If GNU make was not used, consider
14916    re-running the configure script with MAKE=\"gmake\" (or whatever is
14917    necessary).  You can also try re-running configure with the
14918    '--disable-dependency-tracking' option to at least be able to build
14919    the package (albeit without support for automatic dependency tracking).
14920See \`config.log' for more details" "$LINENO" 5; }
14921  fi
14922  { am_dirpart=; unset am_dirpart;}
14923  { am_filepart=; unset am_filepart;}
14924  { am_mf=; unset am_mf;}
14925  { am_rc=; unset am_rc;}
14926  rm -f conftest-deps.mk
14927}
14928 ;;
14929    "libtool":C)
14930
14931    # See if we are running on zsh, and set the options that allow our
14932    # commands through without removal of \ escapes.
14933    if test -n "${ZSH_VERSION+set}"; then
14934      setopt NO_GLOB_SUBST
14935    fi
14936
14937    cfgfile=${ofile}T
14938    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14939    $RM "$cfgfile"
14940
14941    cat <<_LT_EOF >> "$cfgfile"
14942#! $SHELL
14943# Generated automatically by $as_me ($PACKAGE) $VERSION
14944# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14945# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14946
14947# Provide generalized library-building support services.
14948# Written by Gordon Matzigkeit, 1996
14949
14950# Copyright (C) 2014 Free Software Foundation, Inc.
14951# This is free software; see the source for copying conditions.  There is NO
14952# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14953
14954# GNU Libtool is free software; you can redistribute it and/or modify
14955# it under the terms of the GNU General Public License as published by
14956# the Free Software Foundation; either version 2 of of the License, or
14957# (at your option) any later version.
14958#
14959# As a special exception to the GNU General Public License, if you
14960# distribute this file as part of a program or library that is built
14961# using GNU Libtool, you may include this file under the  same
14962# distribution terms that you use for the rest of that program.
14963#
14964# GNU Libtool is distributed in the hope that it will be useful, but
14965# WITHOUT ANY WARRANTY; without even the implied warranty of
14966# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14967# GNU General Public License for more details.
14968#
14969# You should have received a copy of the GNU General Public License
14970# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14971
14972
14973# The names of the tagged configurations supported by this script.
14974available_tags=''
14975
14976# Configured defaults for sys_lib_dlsearch_path munging.
14977: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14978
14979# ### BEGIN LIBTOOL CONFIG
14980
14981# Which release of libtool.m4 was used?
14982macro_version=$macro_version
14983macro_revision=$macro_revision
14984
14985# Whether or not to build shared libraries.
14986build_libtool_libs=$enable_shared
14987
14988# Whether or not to build static libraries.
14989build_old_libs=$enable_static
14990
14991# What type of objects to build.
14992pic_mode=$pic_mode
14993
14994# Whether or not to optimize for fast installation.
14995fast_install=$enable_fast_install
14996
14997# Shared archive member basename,for filename based shared library versioning on AIX.
14998shared_archive_member_spec=$shared_archive_member_spec
14999
15000# Shell to use when invoking shell scripts.
15001SHELL=$lt_SHELL
15002
15003# An echo program that protects backslashes.
15004ECHO=$lt_ECHO
15005
15006# The PATH separator for the build system.
15007PATH_SEPARATOR=$lt_PATH_SEPARATOR
15008
15009# The host system.
15010host_alias=$host_alias
15011host=$host
15012host_os=$host_os
15013
15014# The build system.
15015build_alias=$build_alias
15016build=$build
15017build_os=$build_os
15018
15019# A sed program that does not truncate output.
15020SED=$lt_SED
15021
15022# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15023Xsed="\$SED -e 1s/^X//"
15024
15025# A grep program that handles long lines.
15026GREP=$lt_GREP
15027
15028# An ERE matcher.
15029EGREP=$lt_EGREP
15030
15031# A literal string matcher.
15032FGREP=$lt_FGREP
15033
15034# A BSD- or MS-compatible name lister.
15035NM=$lt_NM
15036
15037# Whether we need soft or hard links.
15038LN_S=$lt_LN_S
15039
15040# What is the maximum length of a command?
15041max_cmd_len=$max_cmd_len
15042
15043# Object file suffix (normally "o").
15044objext=$ac_objext
15045
15046# Executable file suffix (normally "").
15047exeext=$exeext
15048
15049# whether the shell understands "unset".
15050lt_unset=$lt_unset
15051
15052# turn spaces into newlines.
15053SP2NL=$lt_lt_SP2NL
15054
15055# turn newlines into spaces.
15056NL2SP=$lt_lt_NL2SP
15057
15058# convert \$build file names to \$host format.
15059to_host_file_cmd=$lt_cv_to_host_file_cmd
15060
15061# convert \$build files to toolchain format.
15062to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15063
15064# An object symbol dumper.
15065OBJDUMP=$lt_OBJDUMP
15066
15067# Method to check whether dependent libraries are shared objects.
15068deplibs_check_method=$lt_deplibs_check_method
15069
15070# Command to use when deplibs_check_method = "file_magic".
15071file_magic_cmd=$lt_file_magic_cmd
15072
15073# How to find potential files when deplibs_check_method = "file_magic".
15074file_magic_glob=$lt_file_magic_glob
15075
15076# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15077want_nocaseglob=$lt_want_nocaseglob
15078
15079# DLL creation program.
15080DLLTOOL=$lt_DLLTOOL
15081
15082# Command to associate shared and link libraries.
15083sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15084
15085# The archiver.
15086AR=$lt_AR
15087
15088# Flags to create an archive.
15089AR_FLAGS=$lt_AR_FLAGS
15090
15091# How to feed a file listing to the archiver.
15092archiver_list_spec=$lt_archiver_list_spec
15093
15094# A symbol stripping program.
15095STRIP=$lt_STRIP
15096
15097# Commands used to install an old-style archive.
15098RANLIB=$lt_RANLIB
15099old_postinstall_cmds=$lt_old_postinstall_cmds
15100old_postuninstall_cmds=$lt_old_postuninstall_cmds
15101
15102# Whether to use a lock for old archive extraction.
15103lock_old_archive_extraction=$lock_old_archive_extraction
15104
15105# A C compiler.
15106LTCC=$lt_CC
15107
15108# LTCC compiler flags.
15109LTCFLAGS=$lt_CFLAGS
15110
15111# Take the output of nm and produce a listing of raw symbols and C names.
15112global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15113
15114# Transform the output of nm in a proper C declaration.
15115global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15116
15117# Transform the output of nm into a list of symbols to manually relocate.
15118global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15119
15120# Transform the output of nm in a C name address pair.
15121global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15122
15123# Transform the output of nm in a C name address pair when lib prefix is needed.
15124global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15125
15126# The name lister interface.
15127nm_interface=$lt_lt_cv_nm_interface
15128
15129# Specify filename containing input files for \$NM.
15130nm_file_list_spec=$lt_nm_file_list_spec
15131
15132# The root where to search for dependent libraries,and where our libraries should be installed.
15133lt_sysroot=$lt_sysroot
15134
15135# Command to truncate a binary pipe.
15136lt_truncate_bin=$lt_lt_cv_truncate_bin
15137
15138# The name of the directory that contains temporary libtool files.
15139objdir=$objdir
15140
15141# Used to examine libraries when file_magic_cmd begins with "file".
15142MAGIC_CMD=$MAGIC_CMD
15143
15144# Must we lock files when doing compilation?
15145need_locks=$lt_need_locks
15146
15147# Manifest tool.
15148MANIFEST_TOOL=$lt_MANIFEST_TOOL
15149
15150# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15151DSYMUTIL=$lt_DSYMUTIL
15152
15153# Tool to change global to local symbols on Mac OS X.
15154NMEDIT=$lt_NMEDIT
15155
15156# Tool to manipulate fat objects and archives on Mac OS X.
15157LIPO=$lt_LIPO
15158
15159# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15160OTOOL=$lt_OTOOL
15161
15162# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15163OTOOL64=$lt_OTOOL64
15164
15165# Old archive suffix (normally "a").
15166libext=$libext
15167
15168# Shared library suffix (normally ".so").
15169shrext_cmds=$lt_shrext_cmds
15170
15171# The commands to extract the exported symbol list from a shared archive.
15172extract_expsyms_cmds=$lt_extract_expsyms_cmds
15173
15174# Variables whose values should be saved in libtool wrapper scripts and
15175# restored at link time.
15176variables_saved_for_relink=$lt_variables_saved_for_relink
15177
15178# Do we need the "lib" prefix for modules?
15179need_lib_prefix=$need_lib_prefix
15180
15181# Do we need a version for libraries?
15182need_version=$need_version
15183
15184# Library versioning type.
15185version_type=$version_type
15186
15187# Shared library runtime path variable.
15188runpath_var=$runpath_var
15189
15190# Shared library path variable.
15191shlibpath_var=$shlibpath_var
15192
15193# Is shlibpath searched before the hard-coded library search path?
15194shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15195
15196# Format of library name prefix.
15197libname_spec=$lt_libname_spec
15198
15199# List of archive names.  First name is the real one, the rest are links.
15200# The last name is the one that the linker finds with -lNAME
15201library_names_spec=$lt_library_names_spec
15202
15203# The coded name of the library, if different from the real name.
15204soname_spec=$lt_soname_spec
15205
15206# Permission mode override for installation of shared libraries.
15207install_override_mode=$lt_install_override_mode
15208
15209# Command to use after installation of a shared archive.
15210postinstall_cmds=$lt_postinstall_cmds
15211
15212# Command to use after uninstallation of a shared archive.
15213postuninstall_cmds=$lt_postuninstall_cmds
15214
15215# Commands used to finish a libtool library installation in a directory.
15216finish_cmds=$lt_finish_cmds
15217
15218# As "finish_cmds", except a single script fragment to be evaled but
15219# not shown.
15220finish_eval=$lt_finish_eval
15221
15222# Whether we should hardcode library paths into libraries.
15223hardcode_into_libs=$hardcode_into_libs
15224
15225# Compile-time system search path for libraries.
15226sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15227
15228# Detected run-time system search path for libraries.
15229sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15230
15231# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15232configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15233
15234# Whether dlopen is supported.
15235dlopen_support=$enable_dlopen
15236
15237# Whether dlopen of programs is supported.
15238dlopen_self=$enable_dlopen_self
15239
15240# Whether dlopen of statically linked programs is supported.
15241dlopen_self_static=$enable_dlopen_self_static
15242
15243# Commands to strip libraries.
15244old_striplib=$lt_old_striplib
15245striplib=$lt_striplib
15246
15247
15248# The linker used to build libraries.
15249LD=$lt_LD
15250
15251# How to create reloadable object files.
15252reload_flag=$lt_reload_flag
15253reload_cmds=$lt_reload_cmds
15254
15255# Commands used to build an old-style archive.
15256old_archive_cmds=$lt_old_archive_cmds
15257
15258# A language specific compiler.
15259CC=$lt_compiler
15260
15261# Is the compiler the GNU compiler?
15262with_gcc=$GCC
15263
15264# Compiler flag to turn off builtin functions.
15265no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15266
15267# Additional compiler flags for building library objects.
15268pic_flag=$lt_lt_prog_compiler_pic
15269
15270# How to pass a linker flag through the compiler.
15271wl=$lt_lt_prog_compiler_wl
15272
15273# Compiler flag to prevent dynamic linking.
15274link_static_flag=$lt_lt_prog_compiler_static
15275
15276# Does compiler simultaneously support -c and -o options?
15277compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15278
15279# Whether or not to add -lc for building shared libraries.
15280build_libtool_need_lc=$archive_cmds_need_lc
15281
15282# Whether or not to disallow shared libs when runtime libs are static.
15283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15284
15285# Compiler flag to allow reflexive dlopens.
15286export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15287
15288# Compiler flag to generate shared objects directly from archives.
15289whole_archive_flag_spec=$lt_whole_archive_flag_spec
15290
15291# Whether the compiler copes with passing no objects directly.
15292compiler_needs_object=$lt_compiler_needs_object
15293
15294# Create an old-style archive from a shared archive.
15295old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15296
15297# Create a temporary old-style archive to link instead of a shared archive.
15298old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15299
15300# Commands used to build a shared archive.
15301archive_cmds=$lt_archive_cmds
15302archive_expsym_cmds=$lt_archive_expsym_cmds
15303
15304# Commands used to build a loadable module if different from building
15305# a shared archive.
15306module_cmds=$lt_module_cmds
15307module_expsym_cmds=$lt_module_expsym_cmds
15308
15309# Whether we are building with GNU ld or not.
15310with_gnu_ld=$lt_with_gnu_ld
15311
15312# Flag that allows shared libraries with undefined symbols to be built.
15313allow_undefined_flag=$lt_allow_undefined_flag
15314
15315# Flag that enforces no undefined symbols.
15316no_undefined_flag=$lt_no_undefined_flag
15317
15318# Flag to hardcode \$libdir into a binary during linking.
15319# This must work even if \$libdir does not exist
15320hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15321
15322# Whether we need a single "-rpath" flag with a separated argument.
15323hardcode_libdir_separator=$lt_hardcode_libdir_separator
15324
15325# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15326# DIR into the resulting binary.
15327hardcode_direct=$hardcode_direct
15328
15329# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15330# DIR into the resulting binary and the resulting library dependency is
15331# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15332# library is relocated.
15333hardcode_direct_absolute=$hardcode_direct_absolute
15334
15335# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15336# into the resulting binary.
15337hardcode_minus_L=$hardcode_minus_L
15338
15339# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15340# into the resulting binary.
15341hardcode_shlibpath_var=$hardcode_shlibpath_var
15342
15343# Set to "yes" if building a shared library automatically hardcodes DIR
15344# into the library and all subsequent libraries and executables linked
15345# against it.
15346hardcode_automatic=$hardcode_automatic
15347
15348# Set to yes if linker adds runtime paths of dependent libraries
15349# to runtime path list.
15350inherit_rpath=$inherit_rpath
15351
15352# Whether libtool must link a program against all its dependency libraries.
15353link_all_deplibs=$link_all_deplibs
15354
15355# Set to "yes" if exported symbols are required.
15356always_export_symbols=$always_export_symbols
15357
15358# The commands to list exported symbols.
15359export_symbols_cmds=$lt_export_symbols_cmds
15360
15361# Symbols that should not be listed in the preloaded symbols.
15362exclude_expsyms=$lt_exclude_expsyms
15363
15364# Symbols that must always be exported.
15365include_expsyms=$lt_include_expsyms
15366
15367# Commands necessary for linking programs (against libraries) with templates.
15368prelink_cmds=$lt_prelink_cmds
15369
15370# Commands necessary for finishing linking programs.
15371postlink_cmds=$lt_postlink_cmds
15372
15373# Specify filename containing input files.
15374file_list_spec=$lt_file_list_spec
15375
15376# How to hardcode a shared library path into an executable.
15377hardcode_action=$hardcode_action
15378
15379# ### END LIBTOOL CONFIG
15380
15381_LT_EOF
15382
15383    cat <<'_LT_EOF' >> "$cfgfile"
15384
15385# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15386
15387# func_munge_path_list VARIABLE PATH
15388# -----------------------------------
15389# VARIABLE is name of variable containing _space_ separated list of
15390# directories to be munged by the contents of PATH, which is string
15391# having a format:
15392# "DIR[:DIR]:"
15393#       string "DIR[ DIR]" will be prepended to VARIABLE
15394# ":DIR[:DIR]"
15395#       string "DIR[ DIR]" will be appended to VARIABLE
15396# "DIRP[:DIRP]::[DIRA:]DIRA"
15397#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15398#       "DIRA[ DIRA]" will be appended to VARIABLE
15399# "DIR[:DIR]"
15400#       VARIABLE will be replaced by "DIR[ DIR]"
15401func_munge_path_list ()
15402{
15403    case x$2 in
15404    x)
15405        ;;
15406    *:)
15407        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15408        ;;
15409    x:*)
15410        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15411        ;;
15412    *::*)
15413        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15414        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15415        ;;
15416    *)
15417        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15418        ;;
15419    esac
15420}
15421
15422
15423# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15424func_cc_basename ()
15425{
15426    for cc_temp in $*""; do
15427      case $cc_temp in
15428        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15429        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15430        \-*) ;;
15431        *) break;;
15432      esac
15433    done
15434    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15435}
15436
15437
15438# ### END FUNCTIONS SHARED WITH CONFIGURE
15439
15440_LT_EOF
15441
15442  case $host_os in
15443  aix3*)
15444    cat <<\_LT_EOF >> "$cfgfile"
15445# AIX sometimes has problems with the GCC collect2 program.  For some
15446# reason, if we set the COLLECT_NAMES environment variable, the problems
15447# vanish in a puff of smoke.
15448if test set != "${COLLECT_NAMES+set}"; then
15449  COLLECT_NAMES=
15450  export COLLECT_NAMES
15451fi
15452_LT_EOF
15453    ;;
15454  esac
15455
15456
15457ltmain=$ac_aux_dir/ltmain.sh
15458
15459
15460  # We use sed instead of cat because bash on DJGPP gets confused if
15461  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15462  # text mode, it properly converts lines to CR/LF.  This bash problem
15463  # is reportedly fixed, but why not run on old versions too?
15464  sed '$q' "$ltmain" >> "$cfgfile" \
15465     || (rm -f "$cfgfile"; exit 1)
15466
15467   mv -f "$cfgfile" "$ofile" ||
15468    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15469  chmod +x "$ofile"
15470
15471 ;;
15472
15473  esac
15474done # for ac_tag
15475
15476
15477as_fn_exit 0
15478_ACEOF
15479ac_clean_files=$ac_clean_files_save
15480
15481test $ac_write_fail = 0 ||
15482  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15483
15484
15485# configure is writing to config.log, and then calls config.status.
15486# config.status does its own redirection, appending to config.log.
15487# Unfortunately, on DOS this fails, as config.log is still kept open
15488# by configure, so config.status won't be able to write to it; its
15489# output is simply discarded.  So we exec the FD to /dev/null,
15490# effectively closing config.log, so it can be properly (re)opened and
15491# appended to by config.status.  When coming back to configure, we
15492# need to make the FD available again.
15493if test "$no_create" != yes; then
15494  ac_cs_success=:
15495  ac_config_status_args=
15496  test "$silent" = yes &&
15497    ac_config_status_args="$ac_config_status_args --quiet"
15498  exec 5>/dev/null
15499  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15500  exec 5>>config.log
15501  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15502  # would make configure fail if this is the last instruction.
15503  $ac_cs_success || as_fn_exit 1
15504fi
15505if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15506  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15507$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15508fi
15509
15510