1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libkpass 6.
4#
5# Report bugs to <libkpass@bldewolf.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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: libkpass@bldewolf.com about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: 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='libkpass'
592PACKAGE_TARNAME='libkpass'
593PACKAGE_VERSION='6'
594PACKAGE_STRING='libkpass 6'
595PACKAGE_BUGREPORT='libkpass@bldewolf.com'
596PACKAGE_URL=''
597
598ac_unique_file="src/kpass.c"
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_header_list=
636gt_needs=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640POSUB
641LTLIBINTL
642LIBINTL
643INTLLIBS
644LTLIBICONV
645LIBICONV
646INTL_MACOSX_LIBS
647XGETTEXT_EXTRA_OPTIONS
648MSGMERGE
649XGETTEXT_015
650XGETTEXT
651GMSGFMT_015
652MSGFMT_015
653GMSGFMT
654MSGFMT
655GETTEXT_MACRO_VERSION
656USE_NLS
657LIBOBJS
658CPP
659OTOOL64
660OTOOL
661LIPO
662NMEDIT
663DSYMUTIL
664MANIFEST_TOOL
665DLLTOOL
666OBJDUMP
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672EGREP
673GREP
674SED
675host_os
676host_vendor
677host_cpu
678host
679build_os
680build_vendor
681build_cpu
682build
683LIBTOOL
684RANLIB
685LN_S
686am__fastdepCC_FALSE
687am__fastdepCC_TRUE
688CCDEPMODE
689am__nodep
690AMDEPBACKSLASH
691AMDEP_FALSE
692AMDEP_TRUE
693am__quote
694am__include
695DEPDIR
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703ac_ct_AR
704AR
705AM_BACKSLASH
706AM_DEFAULT_VERBOSITY
707AM_DEFAULT_V
708AM_V
709am__untar
710am__tar
711AMTAR
712am__leading_dot
713SET_MAKE
714AWK
715mkdir_p
716MKDIR_P
717INSTALL_STRIP_PROGRAM
718STRIP
719install_sh
720MAKEINFO
721AUTOHEADER
722AUTOMAKE
723AUTOCONF
724ACLOCAL
725VERSION
726PACKAGE
727CYGPATH_W
728am__isrc
729INSTALL_DATA
730INSTALL_SCRIPT
731INSTALL_PROGRAM
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
773enable_silent_rules
774enable_dependency_tracking
775enable_shared
776enable_static
777with_pic
778enable_fast_install
779with_gnu_ld
780with_sysroot
781enable_libtool_lock
782enable_nls
783enable_rpath
784with_libiconv_prefix
785with_libintl_prefix
786'
787      ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CPP'
796
797
798# Initialize some variables set by options.
799ac_init_help=
800ac_init_version=false
801ac_unrecognized_opts=
802ac_unrecognized_sep=
803# The variables have the same names as the options, with
804# dashes changed to underlines.
805cache_file=/dev/null
806exec_prefix=NONE
807no_create=
808no_recursion=
809prefix=NONE
810program_prefix=NONE
811program_suffix=NONE
812program_transform_name=s,x,x,
813silent=
814site=
815srcdir=
816verbose=
817x_includes=NONE
818x_libraries=NONE
819
820# Installation directory options.
821# These are left unexpanded so users can "make install exec_prefix=/foo"
822# and all the variables that are supposed to be based on exec_prefix
823# by default will actually change.
824# Use braces instead of parens because sh, perl, etc. also accept them.
825# (The list follows the same order as the GNU Coding Standards.)
826bindir='${exec_prefix}/bin'
827sbindir='${exec_prefix}/sbin'
828libexecdir='${exec_prefix}/libexec'
829datarootdir='${prefix}/share'
830datadir='${datarootdir}'
831sysconfdir='${prefix}/etc'
832sharedstatedir='${prefix}/com'
833localstatedir='${prefix}/var'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850  # If the previous option needs an argument, assign it.
851  if test -n "$ac_prev"; then
852    eval $ac_prev=\$ac_option
853    ac_prev=
854    continue
855  fi
856
857  case $ac_option in
858  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859  *=)   ac_optarg= ;;
860  *)    ac_optarg=yes ;;
861  esac
862
863  # Accept the important Cygnus configure options, so we can diagnose typos.
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: $ac_useropt"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
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    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087    ac_prev=sbindir ;;
1088  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089  | --sbi=* | --sb=*)
1090    sbindir=$ac_optarg ;;
1091
1092  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094  | --sharedst | --shareds | --shared | --share | --shar \
1095  | --sha | --sh)
1096    ac_prev=sharedstatedir ;;
1097  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100  | --sha=* | --sh=*)
1101    sharedstatedir=$ac_optarg ;;
1102
1103  -site | --site | --sit)
1104    ac_prev=site ;;
1105  -site=* | --site=* | --sit=*)
1106    site=$ac_optarg ;;
1107
1108  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109    ac_prev=srcdir ;;
1110  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111    srcdir=$ac_optarg ;;
1112
1113  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114  | --syscon | --sysco | --sysc | --sys | --sy)
1115    ac_prev=sysconfdir ;;
1116  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118    sysconfdir=$ac_optarg ;;
1119
1120  -target | --target | --targe | --targ | --tar | --ta | --t)
1121    ac_prev=target_alias ;;
1122  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123    target_alias=$ac_optarg ;;
1124
1125  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126    verbose=yes ;;
1127
1128  -version | --version | --versio | --versi | --vers | -V)
1129    ac_init_version=: ;;
1130
1131  -with-* | --with-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=\$ac_optarg ;;
1146
1147  -without-* | --without-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=no ;;
1162
1163  --x)
1164    # Obsolete; use --with-x.
1165    with_x=yes ;;
1166
1167  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168  | --x-incl | --x-inc | --x-in | --x-i)
1169    ac_prev=x_includes ;;
1170  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172    x_includes=$ac_optarg ;;
1173
1174  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176    ac_prev=x_libraries ;;
1177  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179    x_libraries=$ac_optarg ;;
1180
1181  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182Try \`$0 --help' for more information"
1183    ;;
1184
1185  *=*)
1186    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187    # Reject names that are not valid shell variable names.
1188    case $ac_envvar in #(
1189      '' | [0-9]* | *[!_$as_cr_alnum]* )
1190      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191    esac
1192    eval $ac_envvar=\$ac_optarg
1193    export $ac_envvar ;;
1194
1195  *)
1196    # FIXME: should be removed in autoconf 3.0.
1197    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201    ;;
1202
1203  esac
1204done
1205
1206if test -n "$ac_prev"; then
1207  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208  as_fn_error $? "missing argument to $ac_option"
1209fi
1210
1211if test -n "$ac_unrecognized_opts"; then
1212  case $enable_option_checking in
1213    no) ;;
1214    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216  esac
1217fi
1218
1219# Check all directory arguments for consistency.
1220for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221		datadir sysconfdir sharedstatedir localstatedir includedir \
1222		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223		libdir localedir mandir
1224do
1225  eval ac_val=\$$ac_var
1226  # Remove trailing slashes.
1227  case $ac_val in
1228    */ )
1229      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230      eval $ac_var=\$ac_val;;
1231  esac
1232  # Be sure to have absolute directory names.
1233  case $ac_val in
1234    [\\/$]* | ?:[\\/]* )  continue;;
1235    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236  esac
1237  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238done
1239
1240# There might be people who depend on the old broken behavior: `$host'
1241# used to hold the argument of --host etc.
1242# FIXME: To remove some day.
1243build=$build_alias
1244host=$host_alias
1245target=$target_alias
1246
1247# FIXME: To remove some day.
1248if test "x$host_alias" != x; then
1249  if test "x$build_alias" = x; then
1250    cross_compiling=maybe
1251  elif test "x$build_alias" != "x$host_alias"; then
1252    cross_compiling=yes
1253  fi
1254fi
1255
1256ac_tool_prefix=
1257test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259test "$silent" = yes && exec 6>/dev/null
1260
1261
1262ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263ac_ls_di=`ls -di .` &&
1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265  as_fn_error $? "working directory cannot be determined"
1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267  as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270# Find the source files, if location was not specified.
1271if test -z "$srcdir"; then
1272  ac_srcdir_defaulted=yes
1273  # Try the directory containing this script, then the parent directory.
1274  ac_confdir=`$as_dirname -- "$as_myself" ||
1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276	 X"$as_myself" : 'X\(//\)[^/]' \| \
1277	 X"$as_myself" : 'X\(//\)$' \| \
1278	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279$as_echo X"$as_myself" |
1280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)[^/].*/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)$/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\).*/{
1293	    s//\1/
1294	    q
1295	  }
1296	  s/.*/./; q'`
1297  srcdir=$ac_confdir
1298  if test ! -r "$srcdir/$ac_unique_file"; then
1299    srcdir=..
1300  fi
1301else
1302  ac_srcdir_defaulted=no
1303fi
1304if test ! -r "$srcdir/$ac_unique_file"; then
1305  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307fi
1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309ac_abs_confdir=`(
1310	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311	pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314  srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324  eval ac_env_${ac_var}_value=\$${ac_var}
1325  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
1328
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333  # Omit some internal or obsolete options to make the list less imposing.
1334  # This message is too long to be a string in the A/UX 3.1 sh.
1335  cat <<_ACEOF
1336\`configure' configures libkpass 6 to adapt to many kinds of systems.
1337
1338Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343Defaults for the options are specified in brackets.
1344
1345Configuration:
1346  -h, --help              display this help and exit
1347      --help=short        display options specific to this package
1348      --help=recursive    display the short help of all the included packages
1349  -V, --version           display version information and exit
1350  -q, --quiet, --silent   do not print \`checking ...' messages
1351      --cache-file=FILE   cache test results in FILE [disabled]
1352  -C, --config-cache      alias for \`--cache-file=config.cache'
1353  -n, --no-create         do not create output files
1354      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356Installation directories:
1357  --prefix=PREFIX         install architecture-independent files in PREFIX
1358                          [$ac_default_prefix]
1359  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                          [PREFIX]
1361
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
1366
1367For better control, use the options below.
1368
1369Fine tuning of the installation directories:
1370  --bindir=DIR            user executables [EPREFIX/bin]
1371  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1372  --libexecdir=DIR        program executables [EPREFIX/libexec]
1373  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1374  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1375  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1376  --libdir=DIR            object code libraries [EPREFIX/lib]
1377  --includedir=DIR        C header files [PREFIX/include]
1378  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381  --infodir=DIR           info documentation [DATAROOTDIR/info]
1382  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383  --mandir=DIR            man documentation [DATAROOTDIR/man]
1384  --docdir=DIR            documentation root [DATAROOTDIR/doc/libkpass]
1385  --htmldir=DIR           html documentation [DOCDIR]
1386  --dvidir=DIR            dvi documentation [DOCDIR]
1387  --pdfdir=DIR            pdf documentation [DOCDIR]
1388  --psdir=DIR             ps documentation [DOCDIR]
1389_ACEOF
1390
1391  cat <<\_ACEOF
1392
1393Program names:
1394  --program-prefix=PREFIX            prepend PREFIX to installed program names
1395  --program-suffix=SUFFIX            append SUFFIX to installed program names
1396  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398System types:
1399  --build=BUILD     configure for building on BUILD [guessed]
1400  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401_ACEOF
1402fi
1403
1404if test -n "$ac_init_help"; then
1405  case $ac_init_help in
1406     short | recursive ) echo "Configuration of libkpass 6:";;
1407   esac
1408  cat <<\_ACEOF
1409
1410Optional Features:
1411  --disable-option-checking  ignore unrecognized --enable/--with options
1412  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1413  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1414  --enable-silent-rules   less verbose build output (undo: "make V=1")
1415  --disable-silent-rules  verbose build output (undo: "make V=0")
1416  --enable-dependency-tracking
1417                          do not reject slow dependency extractors
1418  --disable-dependency-tracking
1419                          speeds up one-time build
1420  --enable-shared[=PKGS]  build shared libraries [default=yes]
1421  --enable-static[=PKGS]  build static libraries [default=yes]
1422  --enable-fast-install[=PKGS]
1423                          optimize for fast installation [default=yes]
1424  --disable-libtool-lock  avoid locking (might break parallel builds)
1425  --disable-nls           do not use Native Language Support
1426  --disable-rpath         do not hardcode runtime library paths
1427
1428Optional Packages:
1429  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1430  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1431  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1432                          both]
1433  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1434  --with-sysroot=DIR Search for dependent libraries within DIR
1435                        (or the compiler's sysroot if not specified).
1436  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1437  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1438  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1439  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1440  --without-libintl-prefix     don't search for libintl in includedir and libdir
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  CPP         C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
1455Report bugs to <libkpass@bldewolf.com>.
1456_ACEOF
1457ac_status=$?
1458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461  # If there are subdirs, report their specific --help.
1462  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463    test -d "$ac_dir" ||
1464      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465      continue
1466    ac_builddir=.
1467
1468case "$ac_dir" in
1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470*)
1471  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472  # A ".." for each directory in $ac_dir_suffix.
1473  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474  case $ac_top_builddir_sub in
1475  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477  esac ;;
1478esac
1479ac_abs_top_builddir=$ac_pwd
1480ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481# for backward compatibility:
1482ac_top_builddir=$ac_top_build_prefix
1483
1484case $srcdir in
1485  .)  # We are building in place.
1486    ac_srcdir=.
1487    ac_top_srcdir=$ac_top_builddir_sub
1488    ac_abs_top_srcdir=$ac_pwd ;;
1489  [\\/]* | ?:[\\/]* )  # Absolute name.
1490    ac_srcdir=$srcdir$ac_dir_suffix;
1491    ac_top_srcdir=$srcdir
1492    ac_abs_top_srcdir=$srcdir ;;
1493  *) # Relative name.
1494    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495    ac_top_srcdir=$ac_top_build_prefix$srcdir
1496    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497esac
1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500    cd "$ac_dir" || { ac_status=$?; continue; }
1501    # Check for guested configure.
1502    if test -f "$ac_srcdir/configure.gnu"; then
1503      echo &&
1504      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505    elif test -f "$ac_srcdir/configure"; then
1506      echo &&
1507      $SHELL "$ac_srcdir/configure" --help=recursive
1508    else
1509      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510    fi || ac_status=$?
1511    cd "$ac_pwd" || { ac_status=$?; break; }
1512  done
1513fi
1514
1515test -n "$ac_init_help" && exit $ac_status
1516if $ac_init_version; then
1517  cat <<\_ACEOF
1518libkpass configure 6
1519generated by GNU Autoconf 2.69
1520
1521Copyright (C) 2012 Free Software Foundation, Inc.
1522This configure script is free software; the Free Software Foundation
1523gives unlimited permission to copy, distribute and modify it.
1524_ACEOF
1525  exit
1526fi
1527
1528## ------------------------ ##
1529## Autoconf initialization. ##
1530## ------------------------ ##
1531
1532# ac_fn_c_try_compile LINENO
1533# --------------------------
1534# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_compile ()
1536{
1537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538  rm -f conftest.$ac_objext
1539  if { { ac_try="$ac_compile"
1540case "(($ac_try" in
1541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542  *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546  (eval "$ac_compile") 2>conftest.err
1547  ac_status=$?
1548  if test -s conftest.err; then
1549    grep -v '^ *+' conftest.err >conftest.er1
1550    cat conftest.er1 >&5
1551    mv -f conftest.er1 conftest.err
1552  fi
1553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554  test $ac_status = 0; } && {
1555	 test -z "$ac_c_werror_flag" ||
1556	 test ! -s conftest.err
1557       } && test -s conftest.$ac_objext; then :
1558  ac_retval=0
1559else
1560  $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563	ac_retval=1
1564fi
1565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566  as_fn_set_status $ac_retval
1567
1568} # ac_fn_c_try_compile
1569
1570# ac_fn_c_try_link LINENO
1571# -----------------------
1572# Try to link conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_link ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  rm -f conftest.$ac_objext conftest$ac_exeext
1577  if { { ac_try="$ac_link"
1578case "(($ac_try" in
1579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580  *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584  (eval "$ac_link") 2>conftest.err
1585  ac_status=$?
1586  if test -s conftest.err; then
1587    grep -v '^ *+' conftest.err >conftest.er1
1588    cat conftest.er1 >&5
1589    mv -f conftest.er1 conftest.err
1590  fi
1591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592  test $ac_status = 0; } && {
1593	 test -z "$ac_c_werror_flag" ||
1594	 test ! -s conftest.err
1595       } && test -s conftest$ac_exeext && {
1596	 test "$cross_compiling" = yes ||
1597	 test -x conftest$ac_exeext
1598       }; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608  # interfere with the next link command; also delete a directory that is
1609  # left behind by Apple's compiler.  We do this before executing the actions.
1610  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612  as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_link
1615
1616# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists and can be compiled using the include files in
1619# INCLUDES, setting the cache variable VAR accordingly.
1620ac_fn_c_check_header_compile ()
1621{
1622  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624$as_echo_n "checking for $2... " >&6; }
1625if eval \${$3+:} false; then :
1626  $as_echo_n "(cached) " >&6
1627else
1628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629/* end confdefs.h.  */
1630$4
1631#include <$2>
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"; then :
1634  eval "$3=yes"
1635else
1636  eval "$3=no"
1637fi
1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639fi
1640eval ac_res=\$$3
1641	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642$as_echo "$ac_res" >&6; }
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645} # ac_fn_c_check_header_compile
1646
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } > conftest.i && {
1669	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       }; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677    ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_cpp
1683
1684# ac_fn_c_try_run LINENO
1685# ----------------------
1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687# that executables *can* be run.
1688ac_fn_c_try_run ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_link"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_link") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702  { { case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_try") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; }; }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: program exited with status $ac_status" >&5
1715       $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718       ac_retval=$ac_status
1719fi
1720  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_run
1725
1726# ac_fn_c_check_func LINENO FUNC VAR
1727# ----------------------------------
1728# Tests whether FUNC exists, setting the cache variable VAR accordingly
1729ac_fn_c_check_func ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733$as_echo_n "checking for $2... " >&6; }
1734if eval \${$3+:} false; then :
1735  $as_echo_n "(cached) " >&6
1736else
1737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h.  */
1739/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1741#define $2 innocuous_$2
1742
1743/* System header to define __stub macros and hopefully few prototypes,
1744    which can conflict with char $2 (); below.
1745    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1746    <limits.h> exists even on freestanding compilers.  */
1747
1748#ifdef __STDC__
1749# include <limits.h>
1750#else
1751# include <assert.h>
1752#endif
1753
1754#undef $2
1755
1756/* Override any GCC internal prototype to avoid an error.
1757   Use char because int might match the return type of a GCC
1758   builtin and then its argument prototype would still apply.  */
1759#ifdef __cplusplus
1760extern "C"
1761#endif
1762char $2 ();
1763/* The GNU C library defines this for functions which it implements
1764    to always fail with ENOSYS.  Some functions are actually named
1765    something starting with __ and the normal name is an alias.  */
1766#if defined __stub_$2 || defined __stub___$2
1767choke me
1768#endif
1769
1770int
1771main ()
1772{
1773return $2 ();
1774  ;
1775  return 0;
1776}
1777_ACEOF
1778if ac_fn_c_try_link "$LINENO"; then :
1779  eval "$3=yes"
1780else
1781  eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext \
1784    conftest$ac_exeext conftest.$ac_ext
1785fi
1786eval ac_res=\$$3
1787	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791} # ac_fn_c_check_func
1792
1793# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1794# -------------------------------------------------------
1795# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1796# the include files in INCLUDES and setting the cache variable VAR
1797# accordingly.
1798ac_fn_c_check_header_mongrel ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  if eval \${$3+:} false; then :
1802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803$as_echo_n "checking for $2... " >&6; }
1804if eval \${$3+:} false; then :
1805  $as_echo_n "(cached) " >&6
1806fi
1807eval ac_res=\$$3
1808	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
1810else
1811  # Is the header compilable?
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1813$as_echo_n "checking $2 usability... " >&6; }
1814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816$4
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_compile "$LINENO"; then :
1820  ac_header_compiler=yes
1821else
1822  ac_header_compiler=no
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1826$as_echo "$ac_header_compiler" >&6; }
1827
1828# Is the header present?
1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1830$as_echo_n "checking $2 presence... " >&6; }
1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833#include <$2>
1834_ACEOF
1835if ac_fn_c_try_cpp "$LINENO"; then :
1836  ac_header_preproc=yes
1837else
1838  ac_header_preproc=no
1839fi
1840rm -f conftest.err conftest.i conftest.$ac_ext
1841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1842$as_echo "$ac_header_preproc" >&6; }
1843
1844# So?  What about this header?
1845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846  yes:no: )
1847    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1848$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851    ;;
1852  no:yes:* )
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1854$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1856$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1857    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1858$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1860$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863( $as_echo "## ------------------------------------ ##
1864## Report this to libkpass@bldewolf.com ##
1865## ------------------------------------ ##"
1866     ) | sed "s/^/$as_me: WARNING:     /" >&2
1867    ;;
1868esac
1869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if eval \${$3+:} false; then :
1872  $as_echo_n "(cached) " >&6
1873else
1874  eval "$3=\$ac_header_compiler"
1875fi
1876eval ac_res=\$$3
1877	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879fi
1880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882} # ac_fn_c_check_header_mongrel
1883
1884# ac_fn_c_find_uintX_t LINENO BITS VAR
1885# ------------------------------------
1886# Finds an unsigned integer type with width BITS, setting cache variable VAR
1887# accordingly.
1888ac_fn_c_find_uintX_t ()
1889{
1890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1892$as_echo_n "checking for uint$2_t... " >&6; }
1893if eval \${$3+:} false; then :
1894  $as_echo_n "(cached) " >&6
1895else
1896  eval "$3=no"
1897     # Order is important - never check a type that is potentially smaller
1898     # than half of the expected target width.
1899     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1900	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1901       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h.  */
1903$ac_includes_default
1904int
1905main ()
1906{
1907static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1908test_array [0] = 0;
1909return test_array [0];
1910
1911  ;
1912  return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916  case $ac_type in #(
1917  uint$2_t) :
1918    eval "$3=yes" ;; #(
1919  *) :
1920    eval "$3=\$ac_type" ;;
1921esac
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924       if eval test \"x\$"$3"\" = x"no"; then :
1925
1926else
1927  break
1928fi
1929     done
1930fi
1931eval ac_res=\$$3
1932	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_find_uintX_t
1937cat >config.log <<_ACEOF
1938This file contains any messages produced by compilers while
1939running configure, to aid debugging if configure makes a mistake.
1940
1941It was created by libkpass $as_me 6, which was
1942generated by GNU Autoconf 2.69.  Invocation command line was
1943
1944  $ $0 $@
1945
1946_ACEOF
1947exec 5>>config.log
1948{
1949cat <<_ASUNAME
1950## --------- ##
1951## Platform. ##
1952## --------- ##
1953
1954hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958uname -v = `(uname -v) 2>/dev/null || echo unknown`
1959
1960/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1962
1963/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1964/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1965/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1967/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1968/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1969/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1970
1971_ASUNAME
1972
1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976  IFS=$as_save_IFS
1977  test -z "$as_dir" && as_dir=.
1978    $as_echo "PATH: $as_dir"
1979  done
1980IFS=$as_save_IFS
1981
1982} >&5
1983
1984cat >&5 <<_ACEOF
1985
1986
1987## ----------- ##
1988## Core tests. ##
1989## ----------- ##
1990
1991_ACEOF
1992
1993
1994# Keep a trace of the command line.
1995# Strip out --no-create and --no-recursion so they do not pile up.
1996# Strip out --silent because we don't want to record it for future runs.
1997# Also quote any args containing shell meta-characters.
1998# Make two passes to allow for proper duplicate-argument suppression.
1999ac_configure_args=
2000ac_configure_args0=
2001ac_configure_args1=
2002ac_must_keep_next=false
2003for ac_pass in 1 2
2004do
2005  for ac_arg
2006  do
2007    case $ac_arg in
2008    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010    | -silent | --silent | --silen | --sile | --sil)
2011      continue ;;
2012    *\'*)
2013      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014    esac
2015    case $ac_pass in
2016    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017    2)
2018      as_fn_append ac_configure_args1 " '$ac_arg'"
2019      if test $ac_must_keep_next = true; then
2020	ac_must_keep_next=false # Got value, back to normal.
2021      else
2022	case $ac_arg in
2023	  *=* | --config-cache | -C | -disable-* | --disable-* \
2024	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026	  | -with-* | --with-* | -without-* | --without-* | --x)
2027	    case "$ac_configure_args0 " in
2028	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029	    esac
2030	    ;;
2031	  -* ) ac_must_keep_next=true ;;
2032	esac
2033      fi
2034      as_fn_append ac_configure_args " '$ac_arg'"
2035      ;;
2036    esac
2037  done
2038done
2039{ ac_configure_args0=; unset ac_configure_args0;}
2040{ ac_configure_args1=; unset ac_configure_args1;}
2041
2042# When interrupted or exit'd, cleanup temporary files, and complete
2043# config.log.  We remove comments because anyway the quotes in there
2044# would cause problems or look ugly.
2045# WARNING: Use '\'' to represent an apostrophe within the trap.
2046# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047trap 'exit_status=$?
2048  # Save into config.log some information that might help in debugging.
2049  {
2050    echo
2051
2052    $as_echo "## ---------------- ##
2053## Cache variables. ##
2054## ---------------- ##"
2055    echo
2056    # The following way of writing the cache mishandles newlines in values,
2057(
2058  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059    eval ac_val=\$$ac_var
2060    case $ac_val in #(
2061    *${as_nl}*)
2062      case $ac_var in #(
2063      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065      esac
2066      case $ac_var in #(
2067      _ | IFS | as_nl) ;; #(
2068      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069      *) { eval $ac_var=; unset $ac_var;} ;;
2070      esac ;;
2071    esac
2072  done
2073  (set) 2>&1 |
2074    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075    *${as_nl}ac_space=\ *)
2076      sed -n \
2077	"s/'\''/'\''\\\\'\'''\''/g;
2078	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079      ;; #(
2080    *)
2081      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082      ;;
2083    esac |
2084    sort
2085)
2086    echo
2087
2088    $as_echo "## ----------------- ##
2089## Output variables. ##
2090## ----------------- ##"
2091    echo
2092    for ac_var in $ac_subst_vars
2093    do
2094      eval ac_val=\$$ac_var
2095      case $ac_val in
2096      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097      esac
2098      $as_echo "$ac_var='\''$ac_val'\''"
2099    done | sort
2100    echo
2101
2102    if test -n "$ac_subst_files"; then
2103      $as_echo "## ------------------- ##
2104## File substitutions. ##
2105## ------------------- ##"
2106      echo
2107      for ac_var in $ac_subst_files
2108      do
2109	eval ac_val=\$$ac_var
2110	case $ac_val in
2111	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112	esac
2113	$as_echo "$ac_var='\''$ac_val'\''"
2114      done | sort
2115      echo
2116    fi
2117
2118    if test -s confdefs.h; then
2119      $as_echo "## ----------- ##
2120## confdefs.h. ##
2121## ----------- ##"
2122      echo
2123      cat confdefs.h
2124      echo
2125    fi
2126    test "$ac_signal" != 0 &&
2127      $as_echo "$as_me: caught signal $ac_signal"
2128    $as_echo "$as_me: exit $exit_status"
2129  } >&5
2130  rm -f core *.core core.conftest.* &&
2131    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132    exit $exit_status
2133' 0
2134for ac_signal in 1 2 13 15; do
2135  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136done
2137ac_signal=0
2138
2139# confdefs.h avoids OS command line length limits that DEFS can exceed.
2140rm -f -r conftest* confdefs.h
2141
2142$as_echo "/* confdefs.h */" > confdefs.h
2143
2144# Predefined preprocessor variables.
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_NAME "$PACKAGE_NAME"
2148_ACEOF
2149
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152_ACEOF
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_VERSION "$PACKAGE_VERSION"
2156_ACEOF
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_STRING "$PACKAGE_STRING"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_URL "$PACKAGE_URL"
2168_ACEOF
2169
2170
2171# Let the site file select an alternate cache file if it wants to.
2172# Prefer an explicitly selected file to automatically selected ones.
2173ac_site_file1=NONE
2174ac_site_file2=NONE
2175if test -n "$CONFIG_SITE"; then
2176  # We do not want a PATH search for config.site.
2177  case $CONFIG_SITE in #((
2178    -*)  ac_site_file1=./$CONFIG_SITE;;
2179    */*) ac_site_file1=$CONFIG_SITE;;
2180    *)   ac_site_file1=./$CONFIG_SITE;;
2181  esac
2182elif test "x$prefix" != xNONE; then
2183  ac_site_file1=$prefix/share/config.site
2184  ac_site_file2=$prefix/etc/config.site
2185else
2186  ac_site_file1=$ac_default_prefix/share/config.site
2187  ac_site_file2=$ac_default_prefix/etc/config.site
2188fi
2189for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190do
2191  test "x$ac_site_file" = xNONE && continue
2192  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195    sed 's/^/| /' "$ac_site_file" >&5
2196    . "$ac_site_file" \
2197      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199as_fn_error $? "failed to load site script $ac_site_file
2200See \`config.log' for more details" "$LINENO" 5; }
2201  fi
2202done
2203
2204if test -r "$cache_file"; then
2205  # Some versions of bash will fail to source /dev/null (special files
2206  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2207  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209$as_echo "$as_me: loading cache $cache_file" >&6;}
2210    case $cache_file in
2211      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212      *)                      . "./$cache_file";;
2213    esac
2214  fi
2215else
2216  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217$as_echo "$as_me: creating cache $cache_file" >&6;}
2218  >$cache_file
2219fi
2220
2221as_fn_append ac_header_list " stdlib.h"
2222as_fn_append ac_header_list " unistd.h"
2223as_fn_append ac_header_list " sys/param.h"
2224gt_needs="$gt_needs "
2225# Check that the precious variables saved in the cache have kept the same
2226# value.
2227ac_cache_corrupted=false
2228for ac_var in $ac_precious_vars; do
2229  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230  eval ac_new_set=\$ac_env_${ac_var}_set
2231  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232  eval ac_new_val=\$ac_env_${ac_var}_value
2233  case $ac_old_set,$ac_new_set in
2234    set,)
2235      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2236$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237      ac_cache_corrupted=: ;;
2238    ,set)
2239      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2240$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2241      ac_cache_corrupted=: ;;
2242    ,);;
2243    *)
2244      if test "x$ac_old_val" != "x$ac_new_val"; then
2245	# differences in whitespace do not lead to failure.
2246	ac_old_val_w=`echo x $ac_old_val`
2247	ac_new_val_w=`echo x $ac_new_val`
2248	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2251	  ac_cache_corrupted=:
2252	else
2253	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2254$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255	  eval $ac_var=\$ac_old_val
2256	fi
2257	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2258$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2259	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2260$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2261      fi;;
2262  esac
2263  # Pass precious variables to config.status.
2264  if test "$ac_new_set" = set; then
2265    case $ac_new_val in
2266    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2267    *) ac_arg=$ac_var=$ac_new_val ;;
2268    esac
2269    case " $ac_configure_args " in
2270      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2271      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2272    esac
2273  fi
2274done
2275if $ac_cache_corrupted; then
2276  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2281fi
2282## -------------------- ##
2283## Main body of script. ##
2284## -------------------- ##
2285
2286ac_ext=c
2287ac_cpp='$CPP $CPPFLAGS'
2288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291
2292
2293
2294ac_config_headers="$ac_config_headers src/config.h"
2295
2296ac_aux_dir=
2297for ac_dir in build-aux "$srcdir"/build-aux; do
2298  if test -f "$ac_dir/install-sh"; then
2299    ac_aux_dir=$ac_dir
2300    ac_install_sh="$ac_aux_dir/install-sh -c"
2301    break
2302  elif test -f "$ac_dir/install.sh"; then
2303    ac_aux_dir=$ac_dir
2304    ac_install_sh="$ac_aux_dir/install.sh -c"
2305    break
2306  elif test -f "$ac_dir/shtool"; then
2307    ac_aux_dir=$ac_dir
2308    ac_install_sh="$ac_aux_dir/shtool install -c"
2309    break
2310  fi
2311done
2312if test -z "$ac_aux_dir"; then
2313  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2314fi
2315
2316# These three variables are undocumented and unsupported,
2317# and are intended to be withdrawn in a future Autoconf release.
2318# They can cause serious problems if a builder's source tree is in a directory
2319# whose full name contains unusual characters.
2320ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2321ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2322ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2323
2324
2325
2326
2327am__api_version='1.13'
2328
2329# Find a good install program.  We prefer a C program (faster),
2330# so one script is as good as another.  But avoid the broken or
2331# incompatible versions:
2332# SysV /etc/install, /usr/sbin/install
2333# SunOS /usr/etc/install
2334# IRIX /sbin/install
2335# AIX /bin/install
2336# AmigaOS /C/install, which installs bootblocks on floppy discs
2337# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2338# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2339# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2340# OS/2's system install, which has a completely different semantic
2341# ./install, which can be erroneously created by make from ./install.sh.
2342# Reject install programs that cannot install multiple files.
2343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2344$as_echo_n "checking for a BSD-compatible install... " >&6; }
2345if test -z "$INSTALL"; then
2346if ${ac_cv_path_install+:} false; then :
2347  $as_echo_n "(cached) " >&6
2348else
2349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352  IFS=$as_save_IFS
2353  test -z "$as_dir" && as_dir=.
2354    # Account for people who put trailing slashes in PATH elements.
2355case $as_dir/ in #((
2356  ./ | .// | /[cC]/* | \
2357  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2358  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2359  /usr/ucb/* ) ;;
2360  *)
2361    # OSF1 and SCO ODT 3.0 have their own names for install.
2362    # Don't use installbsd from OSF since it installs stuff as root
2363    # by default.
2364    for ac_prog in ginstall scoinst install; do
2365      for ac_exec_ext in '' $ac_executable_extensions; do
2366	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2367	  if test $ac_prog = install &&
2368	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369	    # AIX install.  It has an incompatible calling convention.
2370	    :
2371	  elif test $ac_prog = install &&
2372	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2373	    # program-specific install script used by HP pwplus--don't use.
2374	    :
2375	  else
2376	    rm -rf conftest.one conftest.two conftest.dir
2377	    echo one > conftest.one
2378	    echo two > conftest.two
2379	    mkdir conftest.dir
2380	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2381	      test -s conftest.one && test -s conftest.two &&
2382	      test -s conftest.dir/conftest.one &&
2383	      test -s conftest.dir/conftest.two
2384	    then
2385	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2386	      break 3
2387	    fi
2388	  fi
2389	fi
2390      done
2391    done
2392    ;;
2393esac
2394
2395  done
2396IFS=$as_save_IFS
2397
2398rm -rf conftest.one conftest.two conftest.dir
2399
2400fi
2401  if test "${ac_cv_path_install+set}" = set; then
2402    INSTALL=$ac_cv_path_install
2403  else
2404    # As a last resort, use the slow shell script.  Don't cache a
2405    # value for INSTALL within a source directory, because that will
2406    # break other packages using the cache if that directory is
2407    # removed, or if the value is a relative name.
2408    INSTALL=$ac_install_sh
2409  fi
2410fi
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2412$as_echo "$INSTALL" >&6; }
2413
2414# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2415# It thinks the first close brace ends the variable substitution.
2416test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2417
2418test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2419
2420test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2421
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2423$as_echo_n "checking whether build environment is sane... " >&6; }
2424# Reject unsafe characters in $srcdir or the absolute working directory
2425# name.  Accept space and tab only in the latter.
2426am_lf='
2427'
2428case `pwd` in
2429  *[\\\"\#\$\&\'\`$am_lf]*)
2430    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2431esac
2432case $srcdir in
2433  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2434    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2435esac
2436
2437# Do 'set' in a subshell so we don't clobber the current shell's
2438# arguments.  Must try -L first in case configure is actually a
2439# symlink; some systems play weird games with the mod time of symlinks
2440# (eg FreeBSD returns the mod time of the symlink's containing
2441# directory).
2442if (
2443   am_has_slept=no
2444   for am_try in 1 2; do
2445     echo "timestamp, slept: $am_has_slept" > conftest.file
2446     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2447     if test "$*" = "X"; then
2448	# -L didn't work.
2449	set X `ls -t "$srcdir/configure" conftest.file`
2450     fi
2451     if test "$*" != "X $srcdir/configure conftest.file" \
2452	&& test "$*" != "X conftest.file $srcdir/configure"; then
2453
2454	# If neither matched, then we have a broken ls.  This can happen
2455	# if, for instance, CONFIG_SHELL is bash and it inherits a
2456	# broken ls alias from the environment.  This has actually
2457	# happened.  Such a system could not be considered "sane".
2458	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2459  alias in your environment" "$LINENO" 5
2460     fi
2461     if test "$2" = conftest.file || test $am_try -eq 2; then
2462       break
2463     fi
2464     # Just in case.
2465     sleep 1
2466     am_has_slept=yes
2467   done
2468   test "$2" = conftest.file
2469   )
2470then
2471   # Ok.
2472   :
2473else
2474   as_fn_error $? "newly created file is older than distributed files!
2475Check your system clock" "$LINENO" 5
2476fi
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2478$as_echo "yes" >&6; }
2479# If we didn't sleep, we still need to ensure time stamps of config.status and
2480# generated files are strictly newer.
2481am_sleep_pid=
2482if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2483  ( sleep 1 ) &
2484  am_sleep_pid=$!
2485fi
2486
2487rm -f conftest.file
2488
2489test "$program_prefix" != NONE &&
2490  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2491# Use a double $ so make ignores it.
2492test "$program_suffix" != NONE &&
2493  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2494# Double any \ or $.
2495# By default was `s,x,x', remove it if useless.
2496ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2497program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2498
2499# expand $ac_aux_dir to an absolute path
2500am_aux_dir=`cd $ac_aux_dir && pwd`
2501
2502if test x"${MISSING+set}" != xset; then
2503  case $am_aux_dir in
2504  *\ * | *\	*)
2505    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2506  *)
2507    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2508  esac
2509fi
2510# Use eval to expand $SHELL
2511if eval "$MISSING --is-lightweight"; then
2512  am_missing_run="$MISSING "
2513else
2514  am_missing_run=
2515  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2516$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2517fi
2518
2519if test x"${install_sh}" != xset; then
2520  case $am_aux_dir in
2521  *\ * | *\	*)
2522    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2523  *)
2524    install_sh="\${SHELL} $am_aux_dir/install-sh"
2525  esac
2526fi
2527
2528# Installed binaries are usually stripped using 'strip' when the user
2529# run "make install-strip".  However 'strip' might not be the right
2530# tool to use in cross-compilation environments, therefore Automake
2531# will honor the 'STRIP' environment variable to overrule this program.
2532if test "$cross_compiling" != no; then
2533  if test -n "$ac_tool_prefix"; then
2534  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2535set dummy ${ac_tool_prefix}strip; ac_word=$2
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537$as_echo_n "checking for $ac_word... " >&6; }
2538if ${ac_cv_prog_STRIP+:} false; then :
2539  $as_echo_n "(cached) " >&6
2540else
2541  if test -n "$STRIP"; then
2542  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2543else
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547  IFS=$as_save_IFS
2548  test -z "$as_dir" && as_dir=.
2549    for ac_exec_ext in '' $ac_executable_extensions; do
2550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553    break 2
2554  fi
2555done
2556  done
2557IFS=$as_save_IFS
2558
2559fi
2560fi
2561STRIP=$ac_cv_prog_STRIP
2562if test -n "$STRIP"; then
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2564$as_echo "$STRIP" >&6; }
2565else
2566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567$as_echo "no" >&6; }
2568fi
2569
2570
2571fi
2572if test -z "$ac_cv_prog_STRIP"; then
2573  ac_ct_STRIP=$STRIP
2574  # Extract the first word of "strip", so it can be a program name with args.
2575set dummy strip; ac_word=$2
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577$as_echo_n "checking for $ac_word... " >&6; }
2578if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2579  $as_echo_n "(cached) " >&6
2580else
2581  if test -n "$ac_ct_STRIP"; then
2582  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587  IFS=$as_save_IFS
2588  test -z "$as_dir" && as_dir=.
2589    for ac_exec_ext in '' $ac_executable_extensions; do
2590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591    ac_cv_prog_ac_ct_STRIP="strip"
2592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593    break 2
2594  fi
2595done
2596  done
2597IFS=$as_save_IFS
2598
2599fi
2600fi
2601ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2602if test -n "$ac_ct_STRIP"; then
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2604$as_echo "$ac_ct_STRIP" >&6; }
2605else
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607$as_echo "no" >&6; }
2608fi
2609
2610  if test "x$ac_ct_STRIP" = x; then
2611    STRIP=":"
2612  else
2613    case $cross_compiling:$ac_tool_warned in
2614yes:)
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2617ac_tool_warned=yes ;;
2618esac
2619    STRIP=$ac_ct_STRIP
2620  fi
2621else
2622  STRIP="$ac_cv_prog_STRIP"
2623fi
2624
2625fi
2626INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2627
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2629$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2630if test -z "$MKDIR_P"; then
2631  if ${ac_cv_path_mkdir+:} false; then :
2632  $as_echo_n "(cached) " >&6
2633else
2634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2636do
2637  IFS=$as_save_IFS
2638  test -z "$as_dir" && as_dir=.
2639    for ac_prog in mkdir gmkdir; do
2640	 for ac_exec_ext in '' $ac_executable_extensions; do
2641	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2642	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2643	     'mkdir (GNU coreutils) '* | \
2644	     'mkdir (coreutils) '* | \
2645	     'mkdir (fileutils) '4.1*)
2646	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2647	       break 3;;
2648	   esac
2649	 done
2650       done
2651  done
2652IFS=$as_save_IFS
2653
2654fi
2655
2656  test -d ./--version && rmdir ./--version
2657  if test "${ac_cv_path_mkdir+set}" = set; then
2658    MKDIR_P="$ac_cv_path_mkdir -p"
2659  else
2660    # As a last resort, use the slow shell script.  Don't cache a
2661    # value for MKDIR_P within a source directory, because that will
2662    # break other packages using the cache if that directory is
2663    # removed, or if the value is a relative name.
2664    MKDIR_P="$ac_install_sh -d"
2665  fi
2666fi
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2668$as_echo "$MKDIR_P" >&6; }
2669
2670for ac_prog in gawk mawk nawk awk
2671do
2672  # Extract the first word of "$ac_prog", so it can be a program name with args.
2673set dummy $ac_prog; ac_word=$2
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675$as_echo_n "checking for $ac_word... " >&6; }
2676if ${ac_cv_prog_AWK+:} false; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  if test -n "$AWK"; then
2680  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2681else
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687    for ac_exec_ext in '' $ac_executable_extensions; do
2688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689    ac_cv_prog_AWK="$ac_prog"
2690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691    break 2
2692  fi
2693done
2694  done
2695IFS=$as_save_IFS
2696
2697fi
2698fi
2699AWK=$ac_cv_prog_AWK
2700if test -n "$AWK"; then
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2702$as_echo "$AWK" >&6; }
2703else
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705$as_echo "no" >&6; }
2706fi
2707
2708
2709  test -n "$AWK" && break
2710done
2711
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2714set x ${MAKE-make}
2715ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2716if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  cat >conftest.make <<\_ACEOF
2720SHELL = /bin/sh
2721all:
2722	@echo '@@@%%%=$(MAKE)=@@@%%%'
2723_ACEOF
2724# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2725case `${MAKE-make} -f conftest.make 2>/dev/null` in
2726  *@@@%%%=?*=@@@%%%*)
2727    eval ac_cv_prog_make_${ac_make}_set=yes;;
2728  *)
2729    eval ac_cv_prog_make_${ac_make}_set=no;;
2730esac
2731rm -f conftest.make
2732fi
2733if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2735$as_echo "yes" >&6; }
2736  SET_MAKE=
2737else
2738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
2740  SET_MAKE="MAKE=${MAKE-make}"
2741fi
2742
2743rm -rf .tst 2>/dev/null
2744mkdir .tst 2>/dev/null
2745if test -d .tst; then
2746  am__leading_dot=.
2747else
2748  am__leading_dot=_
2749fi
2750rmdir .tst 2>/dev/null
2751
2752# Check whether --enable-silent-rules was given.
2753if test "${enable_silent_rules+set}" = set; then :
2754  enableval=$enable_silent_rules;
2755fi
2756
2757case $enable_silent_rules in # (((
2758  yes) AM_DEFAULT_VERBOSITY=0;;
2759   no) AM_DEFAULT_VERBOSITY=1;;
2760    *) AM_DEFAULT_VERBOSITY=1;;
2761esac
2762am_make=${MAKE-make}
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2764$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2765if ${am_cv_make_support_nested_variables+:} false; then :
2766  $as_echo_n "(cached) " >&6
2767else
2768  if $as_echo 'TRUE=$(BAR$(V))
2769BAR0=false
2770BAR1=true
2771V=1
2772am__doit:
2773	@$(TRUE)
2774.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2775  am_cv_make_support_nested_variables=yes
2776else
2777  am_cv_make_support_nested_variables=no
2778fi
2779fi
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2781$as_echo "$am_cv_make_support_nested_variables" >&6; }
2782if test $am_cv_make_support_nested_variables = yes; then
2783    AM_V='$(V)'
2784  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2785else
2786  AM_V=$AM_DEFAULT_VERBOSITY
2787  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2788fi
2789AM_BACKSLASH='\'
2790
2791if test "`cd $srcdir && pwd`" != "`pwd`"; then
2792  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2793  # is not polluted with repeated "-I."
2794  am__isrc=' -I$(srcdir)'
2795  # test to see if srcdir already configured
2796  if test -f $srcdir/config.status; then
2797    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2798  fi
2799fi
2800
2801# test whether we have cygpath
2802if test -z "$CYGPATH_W"; then
2803  if (cygpath --version) >/dev/null 2>/dev/null; then
2804    CYGPATH_W='cygpath -w'
2805  else
2806    CYGPATH_W=echo
2807  fi
2808fi
2809
2810
2811# Define the identity of the package.
2812 PACKAGE='libkpass'
2813 VERSION='6'
2814
2815
2816cat >>confdefs.h <<_ACEOF
2817#define PACKAGE "$PACKAGE"
2818_ACEOF
2819
2820
2821cat >>confdefs.h <<_ACEOF
2822#define VERSION "$VERSION"
2823_ACEOF
2824
2825# Some tools Automake needs.
2826
2827ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2828
2829
2830AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2831
2832
2833AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2834
2835
2836AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2837
2838
2839MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2840
2841# For better backward compatibility.  To be removed once Automake 1.9.x
2842# dies out for good.  For more background, see:
2843# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2844# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2845mkdir_p='$(MKDIR_P)'
2846
2847# We need awk for the "check" target.  The system "awk" is bad on
2848# some platforms.
2849# Always define AMTAR for backward compatibility.  Yes, it's still used
2850# in the wild :-(  We should find a proper way to deprecate it ...
2851AMTAR='$${TAR-tar}'
2852
2853am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2854
2855
2856
2857
2858
2859
2860DEPDIR="${am__leading_dot}deps"
2861
2862ac_config_commands="$ac_config_commands depfiles"
2863
2864
2865am_make=${MAKE-make}
2866cat > confinc << 'END'
2867am__doit:
2868	@echo this is the am__doit target
2869.PHONY: am__doit
2870END
2871# If we don't find an include directive, just comment out the code.
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2873$as_echo_n "checking for style of include used by $am_make... " >&6; }
2874am__include="#"
2875am__quote=
2876_am_result=none
2877# First try GNU make style include.
2878echo "include confinc" > confmf
2879# Ignore all kinds of additional output from 'make'.
2880case `$am_make -s -f confmf 2> /dev/null` in #(
2881*the\ am__doit\ target*)
2882  am__include=include
2883  am__quote=
2884  _am_result=GNU
2885  ;;
2886esac
2887# Now try BSD make style include.
2888if test "$am__include" = "#"; then
2889   echo '.include "confinc"' > confmf
2890   case `$am_make -s -f confmf 2> /dev/null` in #(
2891   *the\ am__doit\ target*)
2892     am__include=.include
2893     am__quote="\""
2894     _am_result=BSD
2895     ;;
2896   esac
2897fi
2898
2899
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2901$as_echo "$_am_result" >&6; }
2902rm -f confinc confmf
2903
2904# Check whether --enable-dependency-tracking was given.
2905if test "${enable_dependency_tracking+set}" = set; then :
2906  enableval=$enable_dependency_tracking;
2907fi
2908
2909if test "x$enable_dependency_tracking" != xno; then
2910  am_depcomp="$ac_aux_dir/depcomp"
2911  AMDEPBACKSLASH='\'
2912  am__nodep='_no'
2913fi
2914 if test "x$enable_dependency_tracking" != xno; then
2915  AMDEP_TRUE=
2916  AMDEP_FALSE='#'
2917else
2918  AMDEP_TRUE='#'
2919  AMDEP_FALSE=
2920fi
2921
2922
2923ac_ext=c
2924ac_cpp='$CPP $CPPFLAGS'
2925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928if test -n "$ac_tool_prefix"; then
2929  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_CC+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$CC"; then
2937  ac_cv_prog_CC="$CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956CC=$ac_cv_prog_CC
2957if test -n "$CC"; then
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959$as_echo "$CC" >&6; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966fi
2967if test -z "$ac_cv_prog_CC"; then
2968  ac_ct_CC=$CC
2969  # Extract the first word of "gcc", so it can be a program name with args.
2970set dummy gcc; ac_word=$2
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if ${ac_cv_prog_ac_ct_CC+:} false; then :
2974  $as_echo_n "(cached) " >&6
2975else
2976  if test -n "$ac_ct_CC"; then
2977  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982  IFS=$as_save_IFS
2983  test -z "$as_dir" && as_dir=.
2984    for ac_exec_ext in '' $ac_executable_extensions; do
2985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986    ac_cv_prog_ac_ct_CC="gcc"
2987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988    break 2
2989  fi
2990done
2991  done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997if test -n "$ac_ct_CC"; then
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2999$as_echo "$ac_ct_CC" >&6; }
3000else
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005  if test "x$ac_ct_CC" = x; then
3006    CC=""
3007  else
3008    case $cross_compiling:$ac_tool_warned in
3009yes:)
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012ac_tool_warned=yes ;;
3013esac
3014    CC=$ac_ct_CC
3015  fi
3016else
3017  CC="$ac_cv_prog_CC"
3018fi
3019
3020if test -z "$CC"; then
3021          if test -n "$ac_tool_prefix"; then
3022    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3023set dummy ${ac_tool_prefix}cc; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if ${ac_cv_prog_CC+:} false; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  if test -n "$CC"; then
3030  ac_cv_prog_CC="$CC" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035  IFS=$as_save_IFS
3036  test -z "$as_dir" && as_dir=.
3037    for ac_exec_ext in '' $ac_executable_extensions; do
3038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039    ac_cv_prog_CC="${ac_tool_prefix}cc"
3040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041    break 2
3042  fi
3043done
3044  done
3045IFS=$as_save_IFS
3046
3047fi
3048fi
3049CC=$ac_cv_prog_CC
3050if test -n "$CC"; then
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052$as_echo "$CC" >&6; }
3053else
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055$as_echo "no" >&6; }
3056fi
3057
3058
3059  fi
3060fi
3061if test -z "$CC"; then
3062  # Extract the first word of "cc", so it can be a program name with args.
3063set dummy cc; ac_word=$2
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065$as_echo_n "checking for $ac_word... " >&6; }
3066if ${ac_cv_prog_CC+:} false; then :
3067  $as_echo_n "(cached) " >&6
3068else
3069  if test -n "$CC"; then
3070  ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
3072  ac_prog_rejected=no
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076  IFS=$as_save_IFS
3077  test -z "$as_dir" && as_dir=.
3078    for ac_exec_ext in '' $ac_executable_extensions; do
3079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3081       ac_prog_rejected=yes
3082       continue
3083     fi
3084    ac_cv_prog_CC="cc"
3085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089  done
3090IFS=$as_save_IFS
3091
3092if test $ac_prog_rejected = yes; then
3093  # We found a bogon in the path, so make sure we never use it.
3094  set dummy $ac_cv_prog_CC
3095  shift
3096  if test $# != 0; then
3097    # We chose a different compiler from the bogus one.
3098    # However, it has the same basename, so the bogon will be chosen
3099    # first if we set CC to just the basename; use the full file name.
3100    shift
3101    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3102  fi
3103fi
3104fi
3105fi
3106CC=$ac_cv_prog_CC
3107if test -n "$CC"; then
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109$as_echo "$CC" >&6; }
3110else
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112$as_echo "no" >&6; }
3113fi
3114
3115
3116fi
3117if test -z "$CC"; then
3118  if test -n "$ac_tool_prefix"; then
3119  for ac_prog in cl.exe
3120  do
3121    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3122set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if ${ac_cv_prog_CC+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test -n "$CC"; then
3129  ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136    for ac_exec_ext in '' $ac_executable_extensions; do
3137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143  done
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151$as_echo "$CC" >&6; }
3152else
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157
3158    test -n "$CC" && break
3159  done
3160fi
3161if test -z "$CC"; then
3162  ac_ct_CC=$CC
3163  for ac_prog in cl.exe
3164do
3165  # Extract the first word of "$ac_prog", so it can be a program name with args.
3166set dummy $ac_prog; ac_word=$2
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
3169if ${ac_cv_prog_ac_ct_CC+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  if test -n "$ac_ct_CC"; then
3173  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178  IFS=$as_save_IFS
3179  test -z "$as_dir" && as_dir=.
3180    for ac_exec_ext in '' $ac_executable_extensions; do
3181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182    ac_cv_prog_ac_ct_CC="$ac_prog"
3183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184    break 2
3185  fi
3186done
3187  done
3188IFS=$as_save_IFS
3189
3190fi
3191fi
3192ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193if test -n "$ac_ct_CC"; then
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195$as_echo "$ac_ct_CC" >&6; }
3196else
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199fi
3200
3201
3202  test -n "$ac_ct_CC" && break
3203done
3204
3205  if test "x$ac_ct_CC" = x; then
3206    CC=""
3207  else
3208    case $cross_compiling:$ac_tool_warned in
3209yes:)
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212ac_tool_warned=yes ;;
3213esac
3214    CC=$ac_ct_CC
3215  fi
3216fi
3217
3218fi
3219
3220
3221test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223as_fn_error $? "no acceptable C compiler found in \$PATH
3224See \`config.log' for more details" "$LINENO" 5; }
3225
3226# Provide some information about the compiler.
3227$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228set X $ac_compile
3229ac_compiler=$2
3230for ac_option in --version -v -V -qversion; do
3231  { { ac_try="$ac_compiler $ac_option >&5"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239  ac_status=$?
3240  if test -s conftest.err; then
3241    sed '10a\
3242... rest of stderr output deleted ...
3243         10q' conftest.err >conftest.er1
3244    cat conftest.er1 >&5
3245  fi
3246  rm -f conftest.er1 conftest.err
3247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248  test $ac_status = 0; }
3249done
3250
3251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253
3254int
3255main ()
3256{
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262ac_clean_files_save=$ac_clean_files
3263ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264# Try to create an executable without -o first, disregard a.out.
3265# It will help us diagnose broken compilers, and finding out an intuition
3266# of exeext.
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268$as_echo_n "checking whether the C compiler works... " >&6; }
3269ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270
3271# The possible output files:
3272ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273
3274ac_rmfiles=
3275for ac_file in $ac_files
3276do
3277  case $ac_file in
3278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280  esac
3281done
3282rm -f $ac_rmfiles
3283
3284if { { ac_try="$ac_link_default"
3285case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290$as_echo "$ac_try_echo"; } >&5
3291  (eval "$ac_link_default") 2>&5
3292  ac_status=$?
3293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294  test $ac_status = 0; }; then :
3295  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3296# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3297# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3298# so that the user can short-circuit this test for compilers unknown to
3299# Autoconf.
3300for ac_file in $ac_files ''
3301do
3302  test -f "$ac_file" || continue
3303  case $ac_file in
3304    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3305	;;
3306    [ab].out )
3307	# We found the default executable, but exeext='' is most
3308	# certainly right.
3309	break;;
3310    *.* )
3311	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3312	then :; else
3313	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314	fi
3315	# We set ac_cv_exeext here because the later test for it is not
3316	# safe: cross compilers may not add the suffix if given an `-o'
3317	# argument, so we may need to know it at that point already.
3318	# Even if this section looks crufty: it has the advantage of
3319	# actually working.
3320	break;;
3321    * )
3322	break;;
3323  esac
3324done
3325test "$ac_cv_exeext" = no && ac_cv_exeext=
3326
3327else
3328  ac_file=''
3329fi
3330if test -z "$ac_file"; then :
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333$as_echo "$as_me: failed program was:" >&5
3334sed 's/^/| /' conftest.$ac_ext >&5
3335
3336{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338as_fn_error 77 "C compiler cannot create executables
3339See \`config.log' for more details" "$LINENO" 5; }
3340else
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342$as_echo "yes" >&6; }
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3345$as_echo_n "checking for C compiler default output file name... " >&6; }
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3347$as_echo "$ac_file" >&6; }
3348ac_exeext=$ac_cv_exeext
3349
3350rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3351ac_clean_files=$ac_clean_files_save
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3353$as_echo_n "checking for suffix of executables... " >&6; }
3354if { { ac_try="$ac_link"
3355case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360$as_echo "$ac_try_echo"; } >&5
3361  (eval "$ac_link") 2>&5
3362  ac_status=$?
3363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364  test $ac_status = 0; }; then :
3365  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3366# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3367# work properly (i.e., refer to `conftest.exe'), while it won't with
3368# `rm'.
3369for ac_file in conftest.exe conftest conftest.*; do
3370  test -f "$ac_file" || continue
3371  case $ac_file in
3372    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3374	  break;;
3375    * ) break;;
3376  esac
3377done
3378else
3379  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3382See \`config.log' for more details" "$LINENO" 5; }
3383fi
3384rm -f conftest conftest$ac_cv_exeext
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3386$as_echo "$ac_cv_exeext" >&6; }
3387
3388rm -f conftest.$ac_ext
3389EXEEXT=$ac_cv_exeext
3390ac_exeext=$EXEEXT
3391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h.  */
3393#include <stdio.h>
3394int
3395main ()
3396{
3397FILE *f = fopen ("conftest.out", "w");
3398 return ferror (f) || fclose (f) != 0;
3399
3400  ;
3401  return 0;
3402}
3403_ACEOF
3404ac_clean_files="$ac_clean_files conftest.out"
3405# Check that the compiler produces executables we can run.  If not, either
3406# the compiler is broken, or we cross compile.
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3408$as_echo_n "checking whether we are cross compiling... " >&6; }
3409if test "$cross_compiling" != yes; then
3410  { { ac_try="$ac_link"
3411case "(($ac_try" in
3412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413  *) ac_try_echo=$ac_try;;
3414esac
3415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416$as_echo "$ac_try_echo"; } >&5
3417  (eval "$ac_link") 2>&5
3418  ac_status=$?
3419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420  test $ac_status = 0; }
3421  if { ac_try='./conftest$ac_cv_exeext'
3422  { { case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428  (eval "$ac_try") 2>&5
3429  ac_status=$?
3430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431  test $ac_status = 0; }; }; then
3432    cross_compiling=no
3433  else
3434    if test "$cross_compiling" = maybe; then
3435	cross_compiling=yes
3436    else
3437	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439as_fn_error $? "cannot run C compiled programs.
3440If you meant to cross compile, use \`--host'.
3441See \`config.log' for more details" "$LINENO" 5; }
3442    fi
3443  fi
3444fi
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3446$as_echo "$cross_compiling" >&6; }
3447
3448rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3449ac_clean_files=$ac_clean_files_save
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3451$as_echo_n "checking for suffix of object files... " >&6; }
3452if ${ac_cv_objext+:} false; then :
3453  $as_echo_n "(cached) " >&6
3454else
3455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h.  */
3457
3458int
3459main ()
3460{
3461
3462  ;
3463  return 0;
3464}
3465_ACEOF
3466rm -f conftest.o conftest.obj
3467if { { ac_try="$ac_compile"
3468case "(($ac_try" in
3469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470  *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474  (eval "$ac_compile") 2>&5
3475  ac_status=$?
3476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477  test $ac_status = 0; }; then :
3478  for ac_file in conftest.o conftest.obj conftest.*; do
3479  test -f "$ac_file" || continue;
3480  case $ac_file in
3481    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3482    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3483       break;;
3484  esac
3485done
3486else
3487  $as_echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492as_fn_error $? "cannot compute suffix of object files: cannot compile
3493See \`config.log' for more details" "$LINENO" 5; }
3494fi
3495rm -f conftest.$ac_cv_objext conftest.$ac_ext
3496fi
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3498$as_echo "$ac_cv_objext" >&6; }
3499OBJEXT=$ac_cv_objext
3500ac_objext=$OBJEXT
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3502$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3503if ${ac_cv_c_compiler_gnu+:} false; then :
3504  $as_echo_n "(cached) " >&6
3505else
3506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507/* end confdefs.h.  */
3508
3509int
3510main ()
3511{
3512#ifndef __GNUC__
3513       choke me
3514#endif
3515
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520if ac_fn_c_try_compile "$LINENO"; then :
3521  ac_compiler_gnu=yes
3522else
3523  ac_compiler_gnu=no
3524fi
3525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526ac_cv_c_compiler_gnu=$ac_compiler_gnu
3527
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3530$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3531if test $ac_compiler_gnu = yes; then
3532  GCC=yes
3533else
3534  GCC=
3535fi
3536ac_test_CFLAGS=${CFLAGS+set}
3537ac_save_CFLAGS=$CFLAGS
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3539$as_echo_n "checking whether $CC accepts -g... " >&6; }
3540if ${ac_cv_prog_cc_g+:} false; then :
3541  $as_echo_n "(cached) " >&6
3542else
3543  ac_save_c_werror_flag=$ac_c_werror_flag
3544   ac_c_werror_flag=yes
3545   ac_cv_prog_cc_g=no
3546   CFLAGS="-g"
3547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h.  */
3549
3550int
3551main ()
3552{
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558if ac_fn_c_try_compile "$LINENO"; then :
3559  ac_cv_prog_cc_g=yes
3560else
3561  CFLAGS=""
3562      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h.  */
3564
3565int
3566main ()
3567{
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573if ac_fn_c_try_compile "$LINENO"; then :
3574
3575else
3576  ac_c_werror_flag=$ac_save_c_werror_flag
3577	 CFLAGS="-g"
3578	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579/* end confdefs.h.  */
3580
3581int
3582main ()
3583{
3584
3585  ;
3586  return 0;
3587}
3588_ACEOF
3589if ac_fn_c_try_compile "$LINENO"; then :
3590  ac_cv_prog_cc_g=yes
3591fi
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595fi
3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597   ac_c_werror_flag=$ac_save_c_werror_flag
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3600$as_echo "$ac_cv_prog_cc_g" >&6; }
3601if test "$ac_test_CFLAGS" = set; then
3602  CFLAGS=$ac_save_CFLAGS
3603elif test $ac_cv_prog_cc_g = yes; then
3604  if test "$GCC" = yes; then
3605    CFLAGS="-g -O2"
3606  else
3607    CFLAGS="-g"
3608  fi
3609else
3610  if test "$GCC" = yes; then
3611    CFLAGS="-O2"
3612  else
3613    CFLAGS=
3614  fi
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3617$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3618if ${ac_cv_prog_cc_c89+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  ac_cv_prog_cc_c89=no
3622ac_save_CC=$CC
3623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h.  */
3625#include <stdarg.h>
3626#include <stdio.h>
3627struct stat;
3628/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3629struct buf { int x; };
3630FILE * (*rcsopen) (struct buf *, struct stat *, int);
3631static char *e (p, i)
3632     char **p;
3633     int i;
3634{
3635  return p[i];
3636}
3637static char *f (char * (*g) (char **, int), char **p, ...)
3638{
3639  char *s;
3640  va_list v;
3641  va_start (v,p);
3642  s = g (p, va_arg (v,int));
3643  va_end (v);
3644  return s;
3645}
3646
3647/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3648   function prototypes and stuff, but not '\xHH' hex character constants.
3649   These don't provoke an error unfortunately, instead are silently treated
3650   as 'x'.  The following induces an error, until -std is added to get
3651   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3652   array size at least.  It's necessary to write '\x00'==0 to get something
3653   that's true only with -std.  */
3654int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3655
3656/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3657   inside strings and character constants.  */
3658#define FOO(x) 'x'
3659int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3660
3661int test (int i, double x);
3662struct s1 {int (*f) (int a);};
3663struct s2 {int (*f) (double a);};
3664int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665int argc;
3666char **argv;
3667int
3668main ()
3669{
3670return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3676	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3677do
3678  CC="$ac_save_CC $ac_arg"
3679  if ac_fn_c_try_compile "$LINENO"; then :
3680  ac_cv_prog_cc_c89=$ac_arg
3681fi
3682rm -f core conftest.err conftest.$ac_objext
3683  test "x$ac_cv_prog_cc_c89" != "xno" && break
3684done
3685rm -f conftest.$ac_ext
3686CC=$ac_save_CC
3687
3688fi
3689# AC_CACHE_VAL
3690case "x$ac_cv_prog_cc_c89" in
3691  x)
3692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3693$as_echo "none needed" >&6; } ;;
3694  xno)
3695    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3696$as_echo "unsupported" >&6; } ;;
3697  *)
3698    CC="$CC $ac_cv_prog_cc_c89"
3699    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3700$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3701esac
3702if test "x$ac_cv_prog_cc_c89" != xno; then :
3703
3704fi
3705
3706ac_ext=c
3707ac_cpp='$CPP $CPPFLAGS'
3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712depcc="$CC"   am_compiler_list=
3713
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3715$as_echo_n "checking dependency style of $depcc... " >&6; }
3716if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3720  # We make a subdir and do the tests there.  Otherwise we can end up
3721  # making bogus files that we don't know about and never remove.  For
3722  # instance it was reported that on HP-UX the gcc test will end up
3723  # making a dummy file named 'D' -- because '-MD' means "put the output
3724  # in D".
3725  rm -rf conftest.dir
3726  mkdir conftest.dir
3727  # Copy depcomp to subdir because otherwise we won't find it if we're
3728  # using a relative directory.
3729  cp "$am_depcomp" conftest.dir
3730  cd conftest.dir
3731  # We will build objects and dependencies in a subdirectory because
3732  # it helps to detect inapplicable dependency modes.  For instance
3733  # both Tru64's cc and ICC support -MD to output dependencies as a
3734  # side effect of compilation, but ICC will put the dependencies in
3735  # the current directory while Tru64 will put them in the object
3736  # directory.
3737  mkdir sub
3738
3739  am_cv_CC_dependencies_compiler_type=none
3740  if test "$am_compiler_list" = ""; then
3741     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3742  fi
3743  am__universal=false
3744  case " $depcc " in #(
3745     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746     esac
3747
3748  for depmode in $am_compiler_list; do
3749    # Setup a source with many dependencies, because some compilers
3750    # like to wrap large dependency lists on column 80 (with \), and
3751    # we should not choose a depcomp mode which is confused by this.
3752    #
3753    # We need to recreate these files for each test, as the compiler may
3754    # overwrite some of them when testing with obscure command lines.
3755    # This happens at least with the AIX C compiler.
3756    : > sub/conftest.c
3757    for i in 1 2 3 4 5 6; do
3758      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3760      # Solaris 10 /bin/sh.
3761      echo '/* dummy */' > sub/conftst$i.h
3762    done
3763    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764
3765    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3766    # mode.  It turns out that the SunPro C++ compiler does not properly
3767    # handle '-M -o', and we need to detect this.  Also, some Intel
3768    # versions had trouble with output in subdirs.
3769    am__obj=sub/conftest.${OBJEXT-o}
3770    am__minus_obj="-o $am__obj"
3771    case $depmode in
3772    gcc)
3773      # This depmode causes a compiler race in universal mode.
3774      test "$am__universal" = false || continue
3775      ;;
3776    nosideeffect)
3777      # After this tag, mechanisms are not by side-effect, so they'll
3778      # only be used when explicitly requested.
3779      if test "x$enable_dependency_tracking" = xyes; then
3780	continue
3781      else
3782	break
3783      fi
3784      ;;
3785    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3786      # This compiler won't grok '-c -o', but also, the minuso test has
3787      # not run yet.  These depmodes are late enough in the game, and
3788      # so weak that their functioning should not be impacted.
3789      am__obj=conftest.${OBJEXT-o}
3790      am__minus_obj=
3791      ;;
3792    none) break ;;
3793    esac
3794    if depmode=$depmode \
3795       source=sub/conftest.c object=$am__obj \
3796       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3797       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3798         >/dev/null 2>conftest.err &&
3799       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3800       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3801       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3802       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3803      # icc doesn't choke on unknown options, it will just issue warnings
3804      # or remarks (even with -Werror).  So we grep stderr for any message
3805      # that says an option was ignored or not supported.
3806      # When given -MP, icc 7.0 and 7.1 complain thusly:
3807      #   icc: Command line warning: ignoring option '-M'; no argument required
3808      # The diagnosis changed in icc 8.0:
3809      #   icc: Command line remark: option '-MP' not supported
3810      if (grep 'ignoring option' conftest.err ||
3811          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3812        am_cv_CC_dependencies_compiler_type=$depmode
3813        break
3814      fi
3815    fi
3816  done
3817
3818  cd ..
3819  rm -rf conftest.dir
3820else
3821  am_cv_CC_dependencies_compiler_type=none
3822fi
3823
3824fi
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3826$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3827CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828
3829 if
3830  test "x$enable_dependency_tracking" != xno \
3831  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832  am__fastdepCC_TRUE=
3833  am__fastdepCC_FALSE='#'
3834else
3835  am__fastdepCC_TRUE='#'
3836  am__fastdepCC_FALSE=
3837fi
3838
3839
3840
3841if test -n "$ac_tool_prefix"; then
3842  for ac_prog in ar lib "link -lib"
3843  do
3844    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3845set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847$as_echo_n "checking for $ac_word... " >&6; }
3848if ${ac_cv_prog_AR+:} false; then :
3849  $as_echo_n "(cached) " >&6
3850else
3851  if test -n "$AR"; then
3852  ac_cv_prog_AR="$AR" # Let the user override the test.
3853else
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857  IFS=$as_save_IFS
3858  test -z "$as_dir" && as_dir=.
3859    for ac_exec_ext in '' $ac_executable_extensions; do
3860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863    break 2
3864  fi
3865done
3866  done
3867IFS=$as_save_IFS
3868
3869fi
3870fi
3871AR=$ac_cv_prog_AR
3872if test -n "$AR"; then
3873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3874$as_echo "$AR" >&6; }
3875else
3876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
3878fi
3879
3880
3881    test -n "$AR" && break
3882  done
3883fi
3884if test -z "$AR"; then
3885  ac_ct_AR=$AR
3886  for ac_prog in ar lib "link -lib"
3887do
3888  # Extract the first word of "$ac_prog", so it can be a program name with args.
3889set dummy $ac_prog; ac_word=$2
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891$as_echo_n "checking for $ac_word... " >&6; }
3892if ${ac_cv_prog_ac_ct_AR+:} false; then :
3893  $as_echo_n "(cached) " >&6
3894else
3895  if test -n "$ac_ct_AR"; then
3896  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3897else
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901  IFS=$as_save_IFS
3902  test -z "$as_dir" && as_dir=.
3903    for ac_exec_ext in '' $ac_executable_extensions; do
3904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905    ac_cv_prog_ac_ct_AR="$ac_prog"
3906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907    break 2
3908  fi
3909done
3910  done
3911IFS=$as_save_IFS
3912
3913fi
3914fi
3915ac_ct_AR=$ac_cv_prog_ac_ct_AR
3916if test -n "$ac_ct_AR"; then
3917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3918$as_echo "$ac_ct_AR" >&6; }
3919else
3920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921$as_echo "no" >&6; }
3922fi
3923
3924
3925  test -n "$ac_ct_AR" && break
3926done
3927
3928  if test "x$ac_ct_AR" = x; then
3929    AR="false"
3930  else
3931    case $cross_compiling:$ac_tool_warned in
3932yes:)
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935ac_tool_warned=yes ;;
3936esac
3937    AR=$ac_ct_AR
3938  fi
3939fi
3940
3941: ${AR=ar}
3942
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3944$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3945if ${am_cv_ar_interface+:} false; then :
3946  $as_echo_n "(cached) " >&6
3947else
3948  am_cv_ar_interface=ar
3949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950/* end confdefs.h.  */
3951int some_variable = 0;
3952_ACEOF
3953if ac_fn_c_try_compile "$LINENO"; then :
3954  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3955      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3956  (eval $am_ar_try) 2>&5
3957  ac_status=$?
3958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959  test $ac_status = 0; }
3960      if test "$ac_status" -eq 0; then
3961        am_cv_ar_interface=ar
3962      else
3963        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3964        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3965  (eval $am_ar_try) 2>&5
3966  ac_status=$?
3967  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968  test $ac_status = 0; }
3969        if test "$ac_status" -eq 0; then
3970          am_cv_ar_interface=lib
3971        else
3972          am_cv_ar_interface=unknown
3973        fi
3974      fi
3975      rm -f conftest.lib libconftest.a
3976
3977fi
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979
3980fi
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3982$as_echo "$am_cv_ar_interface" >&6; }
3983
3984case $am_cv_ar_interface in
3985ar)
3986  ;;
3987lib)
3988  # Microsoft lib, so override with the ar-lib wrapper script.
3989  # FIXME: It is wrong to rewrite AR.
3990  # But if we don't then we get into trouble of one sort or another.
3991  # A longer-term fix would be to have automake use am__AR in this case,
3992  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3993  # similar.
3994  AR="$am_aux_dir/ar-lib $AR"
3995  ;;
3996unknown)
3997  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3998  ;;
3999esac
4000
4001
4002
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4004$as_echo_n "checking whether ln -s works... " >&6; }
4005LN_S=$as_ln_s
4006if test "$LN_S" = "ln -s"; then
4007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4008$as_echo "yes" >&6; }
4009else
4010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4011$as_echo "no, using $LN_S" >&6; }
4012fi
4013
4014if test -n "$ac_tool_prefix"; then
4015  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4016set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018$as_echo_n "checking for $ac_word... " >&6; }
4019if ${ac_cv_prog_RANLIB+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  if test -n "$RANLIB"; then
4023  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030    for ac_exec_ext in '' $ac_executable_extensions; do
4031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034    break 2
4035  fi
4036done
4037  done
4038IFS=$as_save_IFS
4039
4040fi
4041fi
4042RANLIB=$ac_cv_prog_RANLIB
4043if test -n "$RANLIB"; then
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4045$as_echo "$RANLIB" >&6; }
4046else
4047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048$as_echo "no" >&6; }
4049fi
4050
4051
4052fi
4053if test -z "$ac_cv_prog_RANLIB"; then
4054  ac_ct_RANLIB=$RANLIB
4055  # Extract the first word of "ranlib", so it can be a program name with args.
4056set dummy ranlib; ac_word=$2
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058$as_echo_n "checking for $ac_word... " >&6; }
4059if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4060  $as_echo_n "(cached) " >&6
4061else
4062  if test -n "$ac_ct_RANLIB"; then
4063  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4064else
4065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066for as_dir in $PATH
4067do
4068  IFS=$as_save_IFS
4069  test -z "$as_dir" && as_dir=.
4070    for ac_exec_ext in '' $ac_executable_extensions; do
4071  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072    ac_cv_prog_ac_ct_RANLIB="ranlib"
4073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074    break 2
4075  fi
4076done
4077  done
4078IFS=$as_save_IFS
4079
4080fi
4081fi
4082ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4083if test -n "$ac_ct_RANLIB"; then
4084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4085$as_echo "$ac_ct_RANLIB" >&6; }
4086else
4087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088$as_echo "no" >&6; }
4089fi
4090
4091  if test "x$ac_ct_RANLIB" = x; then
4092    RANLIB=":"
4093  else
4094    case $cross_compiling:$ac_tool_warned in
4095yes:)
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4098ac_tool_warned=yes ;;
4099esac
4100    RANLIB=$ac_ct_RANLIB
4101  fi
4102else
4103  RANLIB="$ac_cv_prog_RANLIB"
4104fi
4105
4106case `pwd` in
4107  *\ * | *\	*)
4108    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4109$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4110esac
4111
4112
4113
4114macro_version='2.4.2'
4115macro_revision='1.3337'
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129ltmain="$ac_aux_dir/ltmain.sh"
4130
4131# Make sure we can run config.sub.
4132$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4133  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4134
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4136$as_echo_n "checking build system type... " >&6; }
4137if ${ac_cv_build+:} false; then :
4138  $as_echo_n "(cached) " >&6
4139else
4140  ac_build_alias=$build_alias
4141test "x$ac_build_alias" = x &&
4142  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4143test "x$ac_build_alias" = x &&
4144  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4145ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4146  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4147
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4150$as_echo "$ac_cv_build" >&6; }
4151case $ac_cv_build in
4152*-*-*) ;;
4153*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4154esac
4155build=$ac_cv_build
4156ac_save_IFS=$IFS; IFS='-'
4157set x $ac_cv_build
4158shift
4159build_cpu=$1
4160build_vendor=$2
4161shift; shift
4162# Remember, the first character of IFS is used to create $*,
4163# except with old shells:
4164build_os=$*
4165IFS=$ac_save_IFS
4166case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4167
4168
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4170$as_echo_n "checking host system type... " >&6; }
4171if ${ac_cv_host+:} false; then :
4172  $as_echo_n "(cached) " >&6
4173else
4174  if test "x$host_alias" = x; then
4175  ac_cv_host=$ac_cv_build
4176else
4177  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4178    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4179fi
4180
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4183$as_echo "$ac_cv_host" >&6; }
4184case $ac_cv_host in
4185*-*-*) ;;
4186*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4187esac
4188host=$ac_cv_host
4189ac_save_IFS=$IFS; IFS='-'
4190set x $ac_cv_host
4191shift
4192host_cpu=$1
4193host_vendor=$2
4194shift; shift
4195# Remember, the first character of IFS is used to create $*,
4196# except with old shells:
4197host_os=$*
4198IFS=$ac_save_IFS
4199case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4200
4201
4202# Backslashify metacharacters that are still active within
4203# double-quoted strings.
4204sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4205
4206# Same as above, but do not quote variable references.
4207double_quote_subst='s/\(["`\\]\)/\\\1/g'
4208
4209# Sed substitution to delay expansion of an escaped shell variable in a
4210# double_quote_subst'ed string.
4211delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4212
4213# Sed substitution to delay expansion of an escaped single quote.
4214delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4215
4216# Sed substitution to avoid accidental globbing in evaled expressions
4217no_glob_subst='s/\*/\\\*/g'
4218
4219ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4220ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4221ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4222
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4224$as_echo_n "checking how to print strings... " >&6; }
4225# Test print first, because it will be a builtin if present.
4226if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4227   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4228  ECHO='print -r --'
4229elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4230  ECHO='printf %s\n'
4231else
4232  # Use this function as a fallback that always works.
4233  func_fallback_echo ()
4234  {
4235    eval 'cat <<_LTECHO_EOF
4236$1
4237_LTECHO_EOF'
4238  }
4239  ECHO='func_fallback_echo'
4240fi
4241
4242# func_echo_all arg...
4243# Invoke $ECHO with all args, space-separated.
4244func_echo_all ()
4245{
4246    $ECHO ""
4247}
4248
4249case "$ECHO" in
4250  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4251$as_echo "printf" >&6; } ;;
4252  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4253$as_echo "print -r" >&6; } ;;
4254  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4255$as_echo "cat" >&6; } ;;
4256esac
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4272$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4273if ${ac_cv_path_SED+:} false; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4277     for ac_i in 1 2 3 4 5 6 7; do
4278       ac_script="$ac_script$as_nl$ac_script"
4279     done
4280     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4281     { ac_script=; unset ac_script;}
4282     if test -z "$SED"; then
4283  ac_path_SED_found=false
4284  # Loop through the user's path and test for each of PROGNAME-LIST
4285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288  IFS=$as_save_IFS
4289  test -z "$as_dir" && as_dir=.
4290    for ac_prog in sed gsed; do
4291    for ac_exec_ext in '' $ac_executable_extensions; do
4292      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4293      as_fn_executable_p "$ac_path_SED" || continue
4294# Check for GNU ac_path_SED and select it if it is found.
4295  # Check for GNU $ac_path_SED
4296case `"$ac_path_SED" --version 2>&1` in
4297*GNU*)
4298  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4299*)
4300  ac_count=0
4301  $as_echo_n 0123456789 >"conftest.in"
4302  while :
4303  do
4304    cat "conftest.in" "conftest.in" >"conftest.tmp"
4305    mv "conftest.tmp" "conftest.in"
4306    cp "conftest.in" "conftest.nl"
4307    $as_echo '' >> "conftest.nl"
4308    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4309    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4310    as_fn_arith $ac_count + 1 && ac_count=$as_val
4311    if test $ac_count -gt ${ac_path_SED_max-0}; then
4312      # Best one so far, save it but keep looking for a better one
4313      ac_cv_path_SED="$ac_path_SED"
4314      ac_path_SED_max=$ac_count
4315    fi
4316    # 10*(2^10) chars as input seems more than enough
4317    test $ac_count -gt 10 && break
4318  done
4319  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4320esac
4321
4322      $ac_path_SED_found && break 3
4323    done
4324  done
4325  done
4326IFS=$as_save_IFS
4327  if test -z "$ac_cv_path_SED"; then
4328    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4329  fi
4330else
4331  ac_cv_path_SED=$SED
4332fi
4333
4334fi
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4336$as_echo "$ac_cv_path_SED" >&6; }
4337 SED="$ac_cv_path_SED"
4338  rm -f conftest.sed
4339
4340test -z "$SED" && SED=sed
4341Xsed="$SED -e 1s/^X//"
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4354$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4355if ${ac_cv_path_GREP+:} false; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  if test -z "$GREP"; then
4359  ac_path_GREP_found=false
4360  # Loop through the user's path and test for each of PROGNAME-LIST
4361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4363do
4364  IFS=$as_save_IFS
4365  test -z "$as_dir" && as_dir=.
4366    for ac_prog in grep ggrep; do
4367    for ac_exec_ext in '' $ac_executable_extensions; do
4368      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4369      as_fn_executable_p "$ac_path_GREP" || continue
4370# Check for GNU ac_path_GREP and select it if it is found.
4371  # Check for GNU $ac_path_GREP
4372case `"$ac_path_GREP" --version 2>&1` in
4373*GNU*)
4374  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4375*)
4376  ac_count=0
4377  $as_echo_n 0123456789 >"conftest.in"
4378  while :
4379  do
4380    cat "conftest.in" "conftest.in" >"conftest.tmp"
4381    mv "conftest.tmp" "conftest.in"
4382    cp "conftest.in" "conftest.nl"
4383    $as_echo 'GREP' >> "conftest.nl"
4384    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4385    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4386    as_fn_arith $ac_count + 1 && ac_count=$as_val
4387    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4388      # Best one so far, save it but keep looking for a better one
4389      ac_cv_path_GREP="$ac_path_GREP"
4390      ac_path_GREP_max=$ac_count
4391    fi
4392    # 10*(2^10) chars as input seems more than enough
4393    test $ac_count -gt 10 && break
4394  done
4395  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4396esac
4397
4398      $ac_path_GREP_found && break 3
4399    done
4400  done
4401  done
4402IFS=$as_save_IFS
4403  if test -z "$ac_cv_path_GREP"; then
4404    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4405  fi
4406else
4407  ac_cv_path_GREP=$GREP
4408fi
4409
4410fi
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4412$as_echo "$ac_cv_path_GREP" >&6; }
4413 GREP="$ac_cv_path_GREP"
4414
4415
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4417$as_echo_n "checking for egrep... " >&6; }
4418if ${ac_cv_path_EGREP+:} false; then :
4419  $as_echo_n "(cached) " >&6
4420else
4421  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4422   then ac_cv_path_EGREP="$GREP -E"
4423   else
4424     if test -z "$EGREP"; then
4425  ac_path_EGREP_found=false
4426  # Loop through the user's path and test for each of PROGNAME-LIST
4427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4429do
4430  IFS=$as_save_IFS
4431  test -z "$as_dir" && as_dir=.
4432    for ac_prog in egrep; do
4433    for ac_exec_ext in '' $ac_executable_extensions; do
4434      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4435      as_fn_executable_p "$ac_path_EGREP" || continue
4436# Check for GNU ac_path_EGREP and select it if it is found.
4437  # Check for GNU $ac_path_EGREP
4438case `"$ac_path_EGREP" --version 2>&1` in
4439*GNU*)
4440  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4441*)
4442  ac_count=0
4443  $as_echo_n 0123456789 >"conftest.in"
4444  while :
4445  do
4446    cat "conftest.in" "conftest.in" >"conftest.tmp"
4447    mv "conftest.tmp" "conftest.in"
4448    cp "conftest.in" "conftest.nl"
4449    $as_echo 'EGREP' >> "conftest.nl"
4450    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4451    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4452    as_fn_arith $ac_count + 1 && ac_count=$as_val
4453    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4454      # Best one so far, save it but keep looking for a better one
4455      ac_cv_path_EGREP="$ac_path_EGREP"
4456      ac_path_EGREP_max=$ac_count
4457    fi
4458    # 10*(2^10) chars as input seems more than enough
4459    test $ac_count -gt 10 && break
4460  done
4461  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4462esac
4463
4464      $ac_path_EGREP_found && break 3
4465    done
4466  done
4467  done
4468IFS=$as_save_IFS
4469  if test -z "$ac_cv_path_EGREP"; then
4470    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4471  fi
4472else
4473  ac_cv_path_EGREP=$EGREP
4474fi
4475
4476   fi
4477fi
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4479$as_echo "$ac_cv_path_EGREP" >&6; }
4480 EGREP="$ac_cv_path_EGREP"
4481
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4484$as_echo_n "checking for fgrep... " >&6; }
4485if ${ac_cv_path_FGREP+:} false; then :
4486  $as_echo_n "(cached) " >&6
4487else
4488  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4489   then ac_cv_path_FGREP="$GREP -F"
4490   else
4491     if test -z "$FGREP"; then
4492  ac_path_FGREP_found=false
4493  # Loop through the user's path and test for each of PROGNAME-LIST
4494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4496do
4497  IFS=$as_save_IFS
4498  test -z "$as_dir" && as_dir=.
4499    for ac_prog in fgrep; do
4500    for ac_exec_ext in '' $ac_executable_extensions; do
4501      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4502      as_fn_executable_p "$ac_path_FGREP" || continue
4503# Check for GNU ac_path_FGREP and select it if it is found.
4504  # Check for GNU $ac_path_FGREP
4505case `"$ac_path_FGREP" --version 2>&1` in
4506*GNU*)
4507  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4508*)
4509  ac_count=0
4510  $as_echo_n 0123456789 >"conftest.in"
4511  while :
4512  do
4513    cat "conftest.in" "conftest.in" >"conftest.tmp"
4514    mv "conftest.tmp" "conftest.in"
4515    cp "conftest.in" "conftest.nl"
4516    $as_echo 'FGREP' >> "conftest.nl"
4517    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519    as_fn_arith $ac_count + 1 && ac_count=$as_val
4520    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4521      # Best one so far, save it but keep looking for a better one
4522      ac_cv_path_FGREP="$ac_path_FGREP"
4523      ac_path_FGREP_max=$ac_count
4524    fi
4525    # 10*(2^10) chars as input seems more than enough
4526    test $ac_count -gt 10 && break
4527  done
4528  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4529esac
4530
4531      $ac_path_FGREP_found && break 3
4532    done
4533  done
4534  done
4535IFS=$as_save_IFS
4536  if test -z "$ac_cv_path_FGREP"; then
4537    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4538  fi
4539else
4540  ac_cv_path_FGREP=$FGREP
4541fi
4542
4543   fi
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4546$as_echo "$ac_cv_path_FGREP" >&6; }
4547 FGREP="$ac_cv_path_FGREP"
4548
4549
4550test -z "$GREP" && GREP=grep
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570# Check whether --with-gnu-ld was given.
4571if test "${with_gnu_ld+set}" = set; then :
4572  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4573else
4574  with_gnu_ld=no
4575fi
4576
4577ac_prog=ld
4578if test "$GCC" = yes; then
4579  # Check if gcc -print-prog-name=ld gives a path.
4580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4581$as_echo_n "checking for ld used by $CC... " >&6; }
4582  case $host in
4583  *-*-mingw*)
4584    # gcc leaves a trailing carriage return which upsets mingw
4585    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4586  *)
4587    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4588  esac
4589  case $ac_prog in
4590    # Accept absolute paths.
4591    [\\/]* | ?:[\\/]*)
4592      re_direlt='/[^/][^/]*/\.\./'
4593      # Canonicalize the pathname of ld
4594      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4595      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4596	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4597      done
4598      test -z "$LD" && LD="$ac_prog"
4599      ;;
4600  "")
4601    # If it fails, then pretend we aren't using GCC.
4602    ac_prog=ld
4603    ;;
4604  *)
4605    # If it is relative, then search for the first ld in PATH.
4606    with_gnu_ld=unknown
4607    ;;
4608  esac
4609elif test "$with_gnu_ld" = yes; then
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4611$as_echo_n "checking for GNU ld... " >&6; }
4612else
4613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4614$as_echo_n "checking for non-GNU ld... " >&6; }
4615fi
4616if ${lt_cv_path_LD+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  if test -z "$LD"; then
4620  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4621  for ac_dir in $PATH; do
4622    IFS="$lt_save_ifs"
4623    test -z "$ac_dir" && ac_dir=.
4624    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4625      lt_cv_path_LD="$ac_dir/$ac_prog"
4626      # Check to see if the program is GNU ld.  I'd rather use --version,
4627      # but apparently some variants of GNU ld only accept -v.
4628      # Break only if it was the GNU/non-GNU ld that we prefer.
4629      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4630      *GNU* | *'with BFD'*)
4631	test "$with_gnu_ld" != no && break
4632	;;
4633      *)
4634	test "$with_gnu_ld" != yes && break
4635	;;
4636      esac
4637    fi
4638  done
4639  IFS="$lt_save_ifs"
4640else
4641  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4642fi
4643fi
4644
4645LD="$lt_cv_path_LD"
4646if test -n "$LD"; then
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4648$as_echo "$LD" >&6; }
4649else
4650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651$as_echo "no" >&6; }
4652fi
4653test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4655$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4656if ${lt_cv_prog_gnu_ld+:} false; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4660case `$LD -v 2>&1 </dev/null` in
4661*GNU* | *'with BFD'*)
4662  lt_cv_prog_gnu_ld=yes
4663  ;;
4664*)
4665  lt_cv_prog_gnu_ld=no
4666  ;;
4667esac
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4670$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4671with_gnu_ld=$lt_cv_prog_gnu_ld
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4682$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4683if ${lt_cv_path_NM+:} false; then :
4684  $as_echo_n "(cached) " >&6
4685else
4686  if test -n "$NM"; then
4687  # Let the user override the test.
4688  lt_cv_path_NM="$NM"
4689else
4690  lt_nm_to_check="${ac_tool_prefix}nm"
4691  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4692    lt_nm_to_check="$lt_nm_to_check nm"
4693  fi
4694  for lt_tmp_nm in $lt_nm_to_check; do
4695    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4696    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4697      IFS="$lt_save_ifs"
4698      test -z "$ac_dir" && ac_dir=.
4699      tmp_nm="$ac_dir/$lt_tmp_nm"
4700      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4701	# Check to see if the nm accepts a BSD-compat flag.
4702	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4703	#   nm: unknown option "B" ignored
4704	# Tru64's nm complains that /dev/null is an invalid object file
4705	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4706	*/dev/null* | *'Invalid file or object type'*)
4707	  lt_cv_path_NM="$tmp_nm -B"
4708	  break
4709	  ;;
4710	*)
4711	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4712	  */dev/null*)
4713	    lt_cv_path_NM="$tmp_nm -p"
4714	    break
4715	    ;;
4716	  *)
4717	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4718	    continue # so that we can try to find one that supports BSD flags
4719	    ;;
4720	  esac
4721	  ;;
4722	esac
4723      fi
4724    done
4725    IFS="$lt_save_ifs"
4726  done
4727  : ${lt_cv_path_NM=no}
4728fi
4729fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4731$as_echo "$lt_cv_path_NM" >&6; }
4732if test "$lt_cv_path_NM" != "no"; then
4733  NM="$lt_cv_path_NM"
4734else
4735  # Didn't find any BSD compatible name lister, look for dumpbin.
4736  if test -n "$DUMPBIN"; then :
4737    # Let the user override the test.
4738  else
4739    if test -n "$ac_tool_prefix"; then
4740  for ac_prog in dumpbin "link -dump"
4741  do
4742    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4743set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745$as_echo_n "checking for $ac_word... " >&6; }
4746if ${ac_cv_prog_DUMPBIN+:} false; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  if test -n "$DUMPBIN"; then
4750  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757    for ac_exec_ext in '' $ac_executable_extensions; do
4758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764  done
4765IFS=$as_save_IFS
4766
4767fi
4768fi
4769DUMPBIN=$ac_cv_prog_DUMPBIN
4770if test -n "$DUMPBIN"; then
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4772$as_echo "$DUMPBIN" >&6; }
4773else
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776fi
4777
4778
4779    test -n "$DUMPBIN" && break
4780  done
4781fi
4782if test -z "$DUMPBIN"; then
4783  ac_ct_DUMPBIN=$DUMPBIN
4784  for ac_prog in dumpbin "link -dump"
4785do
4786  # Extract the first word of "$ac_prog", so it can be a program name with args.
4787set dummy $ac_prog; ac_word=$2
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789$as_echo_n "checking for $ac_word... " >&6; }
4790if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4791  $as_echo_n "(cached) " >&6
4792else
4793  if test -n "$ac_ct_DUMPBIN"; then
4794  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4795else
4796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799  IFS=$as_save_IFS
4800  test -z "$as_dir" && as_dir=.
4801    for ac_exec_ext in '' $ac_executable_extensions; do
4802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805    break 2
4806  fi
4807done
4808  done
4809IFS=$as_save_IFS
4810
4811fi
4812fi
4813ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4814if test -n "$ac_ct_DUMPBIN"; then
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4816$as_echo "$ac_ct_DUMPBIN" >&6; }
4817else
4818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819$as_echo "no" >&6; }
4820fi
4821
4822
4823  test -n "$ac_ct_DUMPBIN" && break
4824done
4825
4826  if test "x$ac_ct_DUMPBIN" = x; then
4827    DUMPBIN=":"
4828  else
4829    case $cross_compiling:$ac_tool_warned in
4830yes:)
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833ac_tool_warned=yes ;;
4834esac
4835    DUMPBIN=$ac_ct_DUMPBIN
4836  fi
4837fi
4838
4839    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4840    *COFF*)
4841      DUMPBIN="$DUMPBIN -symbols"
4842      ;;
4843    *)
4844      DUMPBIN=:
4845      ;;
4846    esac
4847  fi
4848
4849  if test "$DUMPBIN" != ":"; then
4850    NM="$DUMPBIN"
4851  fi
4852fi
4853test -z "$NM" && NM=nm
4854
4855
4856
4857
4858
4859
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4861$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4862if ${lt_cv_nm_interface+:} false; then :
4863  $as_echo_n "(cached) " >&6
4864else
4865  lt_cv_nm_interface="BSD nm"
4866  echo "int some_variable = 0;" > conftest.$ac_ext
4867  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4868  (eval "$ac_compile" 2>conftest.err)
4869  cat conftest.err >&5
4870  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4871  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4872  cat conftest.err >&5
4873  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4874  cat conftest.out >&5
4875  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4876    lt_cv_nm_interface="MS dumpbin"
4877  fi
4878  rm -f conftest*
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4881$as_echo "$lt_cv_nm_interface" >&6; }
4882
4883# find the maximum length of command line arguments
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4885$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4886if ${lt_cv_sys_max_cmd_len+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889    i=0
4890  teststring="ABCD"
4891
4892  case $build_os in
4893  msdosdjgpp*)
4894    # On DJGPP, this test can blow up pretty badly due to problems in libc
4895    # (any single argument exceeding 2000 bytes causes a buffer overrun
4896    # during glob expansion).  Even if it were fixed, the result of this
4897    # check would be larger than it should be.
4898    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4899    ;;
4900
4901  gnu*)
4902    # Under GNU Hurd, this test is not required because there is
4903    # no limit to the length of command line arguments.
4904    # Libtool will interpret -1 as no limit whatsoever
4905    lt_cv_sys_max_cmd_len=-1;
4906    ;;
4907
4908  cygwin* | mingw* | cegcc*)
4909    # On Win9x/ME, this test blows up -- it succeeds, but takes
4910    # about 5 minutes as the teststring grows exponentially.
4911    # Worse, since 9x/ME are not pre-emptively multitasking,
4912    # you end up with a "frozen" computer, even though with patience
4913    # the test eventually succeeds (with a max line length of 256k).
4914    # Instead, let's just punt: use the minimum linelength reported by
4915    # all of the supported platforms: 8192 (on NT/2K/XP).
4916    lt_cv_sys_max_cmd_len=8192;
4917    ;;
4918
4919  mint*)
4920    # On MiNT this can take a long time and run out of memory.
4921    lt_cv_sys_max_cmd_len=8192;
4922    ;;
4923
4924  amigaos*)
4925    # On AmigaOS with pdksh, this test takes hours, literally.
4926    # So we just punt and use a minimum line length of 8192.
4927    lt_cv_sys_max_cmd_len=8192;
4928    ;;
4929
4930  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4931    # This has been around since 386BSD, at least.  Likely further.
4932    if test -x /sbin/sysctl; then
4933      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4934    elif test -x /usr/sbin/sysctl; then
4935      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4936    else
4937      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4938    fi
4939    # And add a safety zone
4940    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4941    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4942    ;;
4943
4944  interix*)
4945    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4946    lt_cv_sys_max_cmd_len=196608
4947    ;;
4948
4949  os2*)
4950    # The test takes a long time on OS/2.
4951    lt_cv_sys_max_cmd_len=8192
4952    ;;
4953
4954  osf*)
4955    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4956    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4957    # nice to cause kernel panics so lets avoid the loop below.
4958    # First set a reasonable default.
4959    lt_cv_sys_max_cmd_len=16384
4960    #
4961    if test -x /sbin/sysconfig; then
4962      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4963        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4964      esac
4965    fi
4966    ;;
4967  sco3.2v5*)
4968    lt_cv_sys_max_cmd_len=102400
4969    ;;
4970  sysv5* | sco5v6* | sysv4.2uw2*)
4971    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4972    if test -n "$kargmax"; then
4973      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4974    else
4975      lt_cv_sys_max_cmd_len=32768
4976    fi
4977    ;;
4978  *)
4979    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4980    if test -n "$lt_cv_sys_max_cmd_len"; then
4981      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4982      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4983    else
4984      # Make teststring a little bigger before we do anything with it.
4985      # a 1K string should be a reasonable start.
4986      for i in 1 2 3 4 5 6 7 8 ; do
4987        teststring=$teststring$teststring
4988      done
4989      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4990      # If test is not a shell built-in, we'll probably end up computing a
4991      # maximum length that is only half of the actual maximum length, but
4992      # we can't tell.
4993      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4994	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4995	      test $i != 17 # 1/2 MB should be enough
4996      do
4997        i=`expr $i + 1`
4998        teststring=$teststring$teststring
4999      done
5000      # Only check the string length outside the loop.
5001      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5002      teststring=
5003      # Add a significant safety factor because C++ compilers can tack on
5004      # massive amounts of additional arguments before passing them to the
5005      # linker.  It appears as though 1/2 is a usable value.
5006      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5007    fi
5008    ;;
5009  esac
5010
5011fi
5012
5013if test -n $lt_cv_sys_max_cmd_len ; then
5014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5015$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5016else
5017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5018$as_echo "none" >&6; }
5019fi
5020max_cmd_len=$lt_cv_sys_max_cmd_len
5021
5022
5023
5024
5025
5026
5027: ${CP="cp -f"}
5028: ${MV="mv -f"}
5029: ${RM="rm -f"}
5030
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5032$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5033# Try some XSI features
5034xsi_shell=no
5035( _lt_dummy="a/b/c"
5036  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5037      = c,a/b,b/c, \
5038    && eval 'test $(( 1 + 1 )) -eq 2 \
5039    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5040  && xsi_shell=yes
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5042$as_echo "$xsi_shell" >&6; }
5043
5044
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5046$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5047lt_shell_append=no
5048( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5049    >/dev/null 2>&1 \
5050  && lt_shell_append=yes
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5052$as_echo "$lt_shell_append" >&6; }
5053
5054
5055if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5056  lt_unset=unset
5057else
5058  lt_unset=false
5059fi
5060
5061
5062
5063
5064
5065# test EBCDIC or ASCII
5066case `echo X|tr X '\101'` in
5067 A) # ASCII based system
5068    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5069  lt_SP2NL='tr \040 \012'
5070  lt_NL2SP='tr \015\012 \040\040'
5071  ;;
5072 *) # EBCDIC based system
5073  lt_SP2NL='tr \100 \n'
5074  lt_NL2SP='tr \r\n \100\100'
5075  ;;
5076esac
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5087$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5088if ${lt_cv_to_host_file_cmd+:} false; then :
5089  $as_echo_n "(cached) " >&6
5090else
5091  case $host in
5092  *-*-mingw* )
5093    case $build in
5094      *-*-mingw* ) # actually msys
5095        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5096        ;;
5097      *-*-cygwin* )
5098        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5099        ;;
5100      * ) # otherwise, assume *nix
5101        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5102        ;;
5103    esac
5104    ;;
5105  *-*-cygwin* )
5106    case $build in
5107      *-*-mingw* ) # actually msys
5108        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5109        ;;
5110      *-*-cygwin* )
5111        lt_cv_to_host_file_cmd=func_convert_file_noop
5112        ;;
5113      * ) # otherwise, assume *nix
5114        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5115        ;;
5116    esac
5117    ;;
5118  * ) # unhandled hosts (and "normal" native builds)
5119    lt_cv_to_host_file_cmd=func_convert_file_noop
5120    ;;
5121esac
5122
5123fi
5124
5125to_host_file_cmd=$lt_cv_to_host_file_cmd
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5127$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5128
5129
5130
5131
5132
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5134$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5135if ${lt_cv_to_tool_file_cmd+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  #assume ordinary cross tools, or native build.
5139lt_cv_to_tool_file_cmd=func_convert_file_noop
5140case $host in
5141  *-*-mingw* )
5142    case $build in
5143      *-*-mingw* ) # actually msys
5144        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5145        ;;
5146    esac
5147    ;;
5148esac
5149
5150fi
5151
5152to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5154$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5155
5156
5157
5158
5159
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5161$as_echo_n "checking for $LD option to reload object files... " >&6; }
5162if ${lt_cv_ld_reload_flag+:} false; then :
5163  $as_echo_n "(cached) " >&6
5164else
5165  lt_cv_ld_reload_flag='-r'
5166fi
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5168$as_echo "$lt_cv_ld_reload_flag" >&6; }
5169reload_flag=$lt_cv_ld_reload_flag
5170case $reload_flag in
5171"" | " "*) ;;
5172*) reload_flag=" $reload_flag" ;;
5173esac
5174reload_cmds='$LD$reload_flag -o $output$reload_objs'
5175case $host_os in
5176  cygwin* | mingw* | pw32* | cegcc*)
5177    if test "$GCC" != yes; then
5178      reload_cmds=false
5179    fi
5180    ;;
5181  darwin*)
5182    if test "$GCC" = yes; then
5183      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5184    else
5185      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5186    fi
5187    ;;
5188esac
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198if test -n "$ac_tool_prefix"; then
5199  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5200set dummy ${ac_tool_prefix}objdump; ac_word=$2
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202$as_echo_n "checking for $ac_word... " >&6; }
5203if ${ac_cv_prog_OBJDUMP+:} false; then :
5204  $as_echo_n "(cached) " >&6
5205else
5206  if test -n "$OBJDUMP"; then
5207  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212  IFS=$as_save_IFS
5213  test -z "$as_dir" && as_dir=.
5214    for ac_exec_ext in '' $ac_executable_extensions; do
5215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218    break 2
5219  fi
5220done
5221  done
5222IFS=$as_save_IFS
5223
5224fi
5225fi
5226OBJDUMP=$ac_cv_prog_OBJDUMP
5227if test -n "$OBJDUMP"; then
5228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5229$as_echo "$OBJDUMP" >&6; }
5230else
5231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232$as_echo "no" >&6; }
5233fi
5234
5235
5236fi
5237if test -z "$ac_cv_prog_OBJDUMP"; then
5238  ac_ct_OBJDUMP=$OBJDUMP
5239  # Extract the first word of "objdump", so it can be a program name with args.
5240set dummy objdump; ac_word=$2
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242$as_echo_n "checking for $ac_word... " >&6; }
5243if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5244  $as_echo_n "(cached) " >&6
5245else
5246  if test -n "$ac_ct_OBJDUMP"; then
5247  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252  IFS=$as_save_IFS
5253  test -z "$as_dir" && as_dir=.
5254    for ac_exec_ext in '' $ac_executable_extensions; do
5255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258    break 2
5259  fi
5260done
5261  done
5262IFS=$as_save_IFS
5263
5264fi
5265fi
5266ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5267if test -n "$ac_ct_OBJDUMP"; then
5268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5269$as_echo "$ac_ct_OBJDUMP" >&6; }
5270else
5271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272$as_echo "no" >&6; }
5273fi
5274
5275  if test "x$ac_ct_OBJDUMP" = x; then
5276    OBJDUMP="false"
5277  else
5278    case $cross_compiling:$ac_tool_warned in
5279yes:)
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5282ac_tool_warned=yes ;;
5283esac
5284    OBJDUMP=$ac_ct_OBJDUMP
5285  fi
5286else
5287  OBJDUMP="$ac_cv_prog_OBJDUMP"
5288fi
5289
5290test -z "$OBJDUMP" && OBJDUMP=objdump
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5301$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5302if ${lt_cv_deplibs_check_method+:} false; then :
5303  $as_echo_n "(cached) " >&6
5304else
5305  lt_cv_file_magic_cmd='$MAGIC_CMD'
5306lt_cv_file_magic_test_file=
5307lt_cv_deplibs_check_method='unknown'
5308# Need to set the preceding variable on all platforms that support
5309# interlibrary dependencies.
5310# 'none' -- dependencies not supported.
5311# `unknown' -- same as none, but documents that we really don't know.
5312# 'pass_all' -- all dependencies passed with no checks.
5313# 'test_compile' -- check by making test program.
5314# 'file_magic [[regex]]' -- check by looking for files in library path
5315# which responds to the $file_magic_cmd with a given extended regex.
5316# If you have `file' or equivalent on your system and you're not sure
5317# whether `pass_all' will *always* work, you probably want this one.
5318
5319case $host_os in
5320aix[4-9]*)
5321  lt_cv_deplibs_check_method=pass_all
5322  ;;
5323
5324beos*)
5325  lt_cv_deplibs_check_method=pass_all
5326  ;;
5327
5328bsdi[45]*)
5329  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5330  lt_cv_file_magic_cmd='/usr/bin/file -L'
5331  lt_cv_file_magic_test_file=/shlib/libc.so
5332  ;;
5333
5334cygwin*)
5335  # func_win32_libid is a shell function defined in ltmain.sh
5336  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5337  lt_cv_file_magic_cmd='func_win32_libid'
5338  ;;
5339
5340mingw* | pw32*)
5341  # Base MSYS/MinGW do not provide the 'file' command needed by
5342  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5343  # unless we find 'file', for example because we are cross-compiling.
5344  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5345  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5346    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5347    lt_cv_file_magic_cmd='func_win32_libid'
5348  else
5349    # Keep this pattern in sync with the one in func_win32_libid.
5350    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5351    lt_cv_file_magic_cmd='$OBJDUMP -f'
5352  fi
5353  ;;
5354
5355cegcc*)
5356  # use the weaker test based on 'objdump'. See mingw*.
5357  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5358  lt_cv_file_magic_cmd='$OBJDUMP -f'
5359  ;;
5360
5361darwin* | rhapsody*)
5362  lt_cv_deplibs_check_method=pass_all
5363  ;;
5364
5365freebsd* | dragonfly*)
5366  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5367    case $host_cpu in
5368    i*86 )
5369      # Not sure whether the presence of OpenBSD here was a mistake.
5370      # Let's accept both of them until this is cleared up.
5371      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5372      lt_cv_file_magic_cmd=/usr/bin/file
5373      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5374      ;;
5375    esac
5376  else
5377    lt_cv_deplibs_check_method=pass_all
5378  fi
5379  ;;
5380
5381gnu*)
5382  lt_cv_deplibs_check_method=pass_all
5383  ;;
5384
5385haiku*)
5386  lt_cv_deplibs_check_method=pass_all
5387  ;;
5388
5389hpux10.20* | hpux11*)
5390  lt_cv_file_magic_cmd=/usr/bin/file
5391  case $host_cpu in
5392  ia64*)
5393    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5394    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5395    ;;
5396  hppa*64*)
5397    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]'
5398    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5399    ;;
5400  *)
5401    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5402    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5403    ;;
5404  esac
5405  ;;
5406
5407interix[3-9]*)
5408  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5409  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5410  ;;
5411
5412irix5* | irix6* | nonstopux*)
5413  case $LD in
5414  *-32|*"-32 ") libmagic=32-bit;;
5415  *-n32|*"-n32 ") libmagic=N32;;
5416  *-64|*"-64 ") libmagic=64-bit;;
5417  *) libmagic=never-match;;
5418  esac
5419  lt_cv_deplibs_check_method=pass_all
5420  ;;
5421
5422# This must be glibc/ELF.
5423linux* | k*bsd*-gnu | kopensolaris*-gnu)
5424  lt_cv_deplibs_check_method=pass_all
5425  ;;
5426
5427netbsd*)
5428  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5429    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5430  else
5431    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5432  fi
5433  ;;
5434
5435newos6*)
5436  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5437  lt_cv_file_magic_cmd=/usr/bin/file
5438  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5439  ;;
5440
5441*nto* | *qnx*)
5442  lt_cv_deplibs_check_method=pass_all
5443  ;;
5444
5445openbsd*)
5446  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5447    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5448  else
5449    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5450  fi
5451  ;;
5452
5453osf3* | osf4* | osf5*)
5454  lt_cv_deplibs_check_method=pass_all
5455  ;;
5456
5457rdos*)
5458  lt_cv_deplibs_check_method=pass_all
5459  ;;
5460
5461solaris*)
5462  lt_cv_deplibs_check_method=pass_all
5463  ;;
5464
5465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5466  lt_cv_deplibs_check_method=pass_all
5467  ;;
5468
5469sysv4 | sysv4.3*)
5470  case $host_vendor in
5471  motorola)
5472    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]'
5473    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5474    ;;
5475  ncr)
5476    lt_cv_deplibs_check_method=pass_all
5477    ;;
5478  sequent)
5479    lt_cv_file_magic_cmd='/bin/file'
5480    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5481    ;;
5482  sni)
5483    lt_cv_file_magic_cmd='/bin/file'
5484    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5485    lt_cv_file_magic_test_file=/lib/libc.so
5486    ;;
5487  siemens)
5488    lt_cv_deplibs_check_method=pass_all
5489    ;;
5490  pc)
5491    lt_cv_deplibs_check_method=pass_all
5492    ;;
5493  esac
5494  ;;
5495
5496tpf*)
5497  lt_cv_deplibs_check_method=pass_all
5498  ;;
5499esac
5500
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5503$as_echo "$lt_cv_deplibs_check_method" >&6; }
5504
5505file_magic_glob=
5506want_nocaseglob=no
5507if test "$build" = "$host"; then
5508  case $host_os in
5509  mingw* | pw32*)
5510    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5511      want_nocaseglob=yes
5512    else
5513      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5514    fi
5515    ;;
5516  esac
5517fi
5518
5519file_magic_cmd=$lt_cv_file_magic_cmd
5520deplibs_check_method=$lt_cv_deplibs_check_method
5521test -z "$deplibs_check_method" && deplibs_check_method=unknown
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544if test -n "$ac_tool_prefix"; then
5545  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5546set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548$as_echo_n "checking for $ac_word... " >&6; }
5549if ${ac_cv_prog_DLLTOOL+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  if test -n "$DLLTOOL"; then
5553  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558  IFS=$as_save_IFS
5559  test -z "$as_dir" && as_dir=.
5560    for ac_exec_ext in '' $ac_executable_extensions; do
5561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564    break 2
5565  fi
5566done
5567  done
5568IFS=$as_save_IFS
5569
5570fi
5571fi
5572DLLTOOL=$ac_cv_prog_DLLTOOL
5573if test -n "$DLLTOOL"; then
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5575$as_echo "$DLLTOOL" >&6; }
5576else
5577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
5579fi
5580
5581
5582fi
5583if test -z "$ac_cv_prog_DLLTOOL"; then
5584  ac_ct_DLLTOOL=$DLLTOOL
5585  # Extract the first word of "dlltool", so it can be a program name with args.
5586set dummy dlltool; ac_word=$2
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588$as_echo_n "checking for $ac_word... " >&6; }
5589if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  if test -n "$ac_ct_DLLTOOL"; then
5593  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598  IFS=$as_save_IFS
5599  test -z "$as_dir" && as_dir=.
5600    for ac_exec_ext in '' $ac_executable_extensions; do
5601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604    break 2
5605  fi
5606done
5607  done
5608IFS=$as_save_IFS
5609
5610fi
5611fi
5612ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5613if test -n "$ac_ct_DLLTOOL"; then
5614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5615$as_echo "$ac_ct_DLLTOOL" >&6; }
5616else
5617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618$as_echo "no" >&6; }
5619fi
5620
5621  if test "x$ac_ct_DLLTOOL" = x; then
5622    DLLTOOL="false"
5623  else
5624    case $cross_compiling:$ac_tool_warned in
5625yes:)
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628ac_tool_warned=yes ;;
5629esac
5630    DLLTOOL=$ac_ct_DLLTOOL
5631  fi
5632else
5633  DLLTOOL="$ac_cv_prog_DLLTOOL"
5634fi
5635
5636test -z "$DLLTOOL" && DLLTOOL=dlltool
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5648$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5649if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  lt_cv_sharedlib_from_linklib_cmd='unknown'
5653
5654case $host_os in
5655cygwin* | mingw* | pw32* | cegcc*)
5656  # two different shell functions defined in ltmain.sh
5657  # decide which to use based on capabilities of $DLLTOOL
5658  case `$DLLTOOL --help 2>&1` in
5659  *--identify-strict*)
5660    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5661    ;;
5662  *)
5663    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5664    ;;
5665  esac
5666  ;;
5667*)
5668  # fallback: assume linklib IS sharedlib
5669  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5670  ;;
5671esac
5672
5673fi
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5675$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5676sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5677test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5678
5679
5680
5681
5682
5683
5684
5685if test -n "$ac_tool_prefix"; then
5686  for ac_prog in ar
5687  do
5688    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691$as_echo_n "checking for $ac_word... " >&6; }
5692if ${ac_cv_prog_AR+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  if test -n "$AR"; then
5696  ac_cv_prog_AR="$AR" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701  IFS=$as_save_IFS
5702  test -z "$as_dir" && as_dir=.
5703    for ac_exec_ext in '' $ac_executable_extensions; do
5704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707    break 2
5708  fi
5709done
5710  done
5711IFS=$as_save_IFS
5712
5713fi
5714fi
5715AR=$ac_cv_prog_AR
5716if test -n "$AR"; then
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5718$as_echo "$AR" >&6; }
5719else
5720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
5722fi
5723
5724
5725    test -n "$AR" && break
5726  done
5727fi
5728if test -z "$AR"; then
5729  ac_ct_AR=$AR
5730  for ac_prog in ar
5731do
5732  # Extract the first word of "$ac_prog", so it can be a program name with args.
5733set dummy $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_ac_ct_AR+:} false; then :
5737  $as_echo_n "(cached) " >&6
5738else
5739  if test -n "$ac_ct_AR"; then
5740  ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="$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
5759ac_ct_AR=$ac_cv_prog_ac_ct_AR
5760if test -n "$ac_ct_AR"; then
5761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5762$as_echo "$ac_ct_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 "$ac_ct_AR" && break
5770done
5771
5772  if test "x$ac_ct_AR" = x; then
5773    AR="false"
5774  else
5775    case $cross_compiling:$ac_tool_warned in
5776yes:)
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779ac_tool_warned=yes ;;
5780esac
5781    AR=$ac_ct_AR
5782  fi
5783fi
5784
5785: ${AR=ar}
5786: ${AR_FLAGS=cru}
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5799$as_echo_n "checking for archiver @FILE support... " >&6; }
5800if ${lt_cv_ar_at_file+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  lt_cv_ar_at_file=no
5804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805/* end confdefs.h.  */
5806
5807int
5808main ()
5809{
5810
5811  ;
5812  return 0;
5813}
5814_ACEOF
5815if ac_fn_c_try_compile "$LINENO"; then :
5816  echo conftest.$ac_objext > conftest.lst
5817      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5818      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5819  (eval $lt_ar_try) 2>&5
5820  ac_status=$?
5821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5822  test $ac_status = 0; }
5823      if test "$ac_status" -eq 0; then
5824	# Ensure the archiver fails upon bogus file names.
5825	rm -f conftest.$ac_objext libconftest.a
5826	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5827  (eval $lt_ar_try) 2>&5
5828  ac_status=$?
5829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5830  test $ac_status = 0; }
5831	if test "$ac_status" -ne 0; then
5832          lt_cv_ar_at_file=@
5833        fi
5834      fi
5835      rm -f conftest.* libconftest.a
5836
5837fi
5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839
5840fi
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5842$as_echo "$lt_cv_ar_at_file" >&6; }
5843
5844if test "x$lt_cv_ar_at_file" = xno; then
5845  archiver_list_spec=
5846else
5847  archiver_list_spec=$lt_cv_ar_at_file
5848fi
5849
5850
5851
5852
5853
5854
5855
5856if test -n "$ac_tool_prefix"; then
5857  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5858set dummy ${ac_tool_prefix}strip; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if ${ac_cv_prog_STRIP+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  if test -n "$STRIP"; then
5865  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  test -z "$as_dir" && as_dir=.
5872    for ac_exec_ext in '' $ac_executable_extensions; do
5873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876    break 2
5877  fi
5878done
5879  done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884STRIP=$ac_cv_prog_STRIP
5885if test -n "$STRIP"; then
5886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5887$as_echo "$STRIP" >&6; }
5888else
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893
5894fi
5895if test -z "$ac_cv_prog_STRIP"; then
5896  ac_ct_STRIP=$STRIP
5897  # Extract the first word of "strip", so it can be a program name with args.
5898set dummy strip; ac_word=$2
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900$as_echo_n "checking for $ac_word... " >&6; }
5901if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  if test -n "$ac_ct_STRIP"; then
5905  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910  IFS=$as_save_IFS
5911  test -z "$as_dir" && as_dir=.
5912    for ac_exec_ext in '' $ac_executable_extensions; do
5913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914    ac_cv_prog_ac_ct_STRIP="strip"
5915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916    break 2
5917  fi
5918done
5919  done
5920IFS=$as_save_IFS
5921
5922fi
5923fi
5924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5925if test -n "$ac_ct_STRIP"; then
5926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5927$as_echo "$ac_ct_STRIP" >&6; }
5928else
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930$as_echo "no" >&6; }
5931fi
5932
5933  if test "x$ac_ct_STRIP" = x; then
5934    STRIP=":"
5935  else
5936    case $cross_compiling:$ac_tool_warned in
5937yes:)
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940ac_tool_warned=yes ;;
5941esac
5942    STRIP=$ac_ct_STRIP
5943  fi
5944else
5945  STRIP="$ac_cv_prog_STRIP"
5946fi
5947
5948test -z "$STRIP" && STRIP=:
5949
5950
5951
5952
5953
5954
5955if test -n "$ac_tool_prefix"; then
5956  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5957set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if ${ac_cv_prog_RANLIB+:} false; then :
5961  $as_echo_n "(cached) " >&6
5962else
5963  if test -n "$RANLIB"; then
5964  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969  IFS=$as_save_IFS
5970  test -z "$as_dir" && as_dir=.
5971    for ac_exec_ext in '' $ac_executable_extensions; do
5972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975    break 2
5976  fi
5977done
5978  done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983RANLIB=$ac_cv_prog_RANLIB
5984if test -n "$RANLIB"; then
5985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5986$as_echo "$RANLIB" >&6; }
5987else
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992
5993fi
5994if test -z "$ac_cv_prog_RANLIB"; then
5995  ac_ct_RANLIB=$RANLIB
5996  # Extract the first word of "ranlib", so it can be a program name with args.
5997set dummy ranlib; ac_word=$2
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999$as_echo_n "checking for $ac_word... " >&6; }
6000if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  if test -n "$ac_ct_RANLIB"; then
6004  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6005else
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009  IFS=$as_save_IFS
6010  test -z "$as_dir" && as_dir=.
6011    for ac_exec_ext in '' $ac_executable_extensions; do
6012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013    ac_cv_prog_ac_ct_RANLIB="ranlib"
6014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015    break 2
6016  fi
6017done
6018  done
6019IFS=$as_save_IFS
6020
6021fi
6022fi
6023ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6024if test -n "$ac_ct_RANLIB"; then
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6026$as_echo "$ac_ct_RANLIB" >&6; }
6027else
6028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029$as_echo "no" >&6; }
6030fi
6031
6032  if test "x$ac_ct_RANLIB" = x; then
6033    RANLIB=":"
6034  else
6035    case $cross_compiling:$ac_tool_warned in
6036yes:)
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039ac_tool_warned=yes ;;
6040esac
6041    RANLIB=$ac_ct_RANLIB
6042  fi
6043else
6044  RANLIB="$ac_cv_prog_RANLIB"
6045fi
6046
6047test -z "$RANLIB" && RANLIB=:
6048
6049
6050
6051
6052
6053
6054# Determine commands to create old-style static archives.
6055old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6056old_postinstall_cmds='chmod 644 $oldlib'
6057old_postuninstall_cmds=
6058
6059if test -n "$RANLIB"; then
6060  case $host_os in
6061  openbsd*)
6062    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6063    ;;
6064  *)
6065    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6066    ;;
6067  esac
6068  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6069fi
6070
6071case $host_os in
6072  darwin*)
6073    lock_old_archive_extraction=yes ;;
6074  *)
6075    lock_old_archive_extraction=no ;;
6076esac
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116# If no C compiler was specified, use CC.
6117LTCC=${LTCC-"$CC"}
6118
6119# If no C compiler flags were specified, use CFLAGS.
6120LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6121
6122# Allow CC to be a program name with arguments.
6123compiler=$CC
6124
6125
6126# Check for command to grab the raw symbol name followed by C symbol from nm.
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6128$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6129if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132
6133# These are sane defaults that work on at least a few old systems.
6134# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6135
6136# Character class describing NM global symbol codes.
6137symcode='[BCDEGRST]'
6138
6139# Regexp to match symbols that can be accessed directly from C.
6140sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6141
6142# Define system-specific variables.
6143case $host_os in
6144aix*)
6145  symcode='[BCDT]'
6146  ;;
6147cygwin* | mingw* | pw32* | cegcc*)
6148  symcode='[ABCDGISTW]'
6149  ;;
6150hpux*)
6151  if test "$host_cpu" = ia64; then
6152    symcode='[ABCDEGRST]'
6153  fi
6154  ;;
6155irix* | nonstopux*)
6156  symcode='[BCDEGRST]'
6157  ;;
6158osf*)
6159  symcode='[BCDEGQRST]'
6160  ;;
6161solaris*)
6162  symcode='[BDRT]'
6163  ;;
6164sco3.2v5*)
6165  symcode='[DT]'
6166  ;;
6167sysv4.2uw2*)
6168  symcode='[DT]'
6169  ;;
6170sysv5* | sco5v6* | unixware* | OpenUNIX*)
6171  symcode='[ABDT]'
6172  ;;
6173sysv4)
6174  symcode='[DFNSTU]'
6175  ;;
6176esac
6177
6178# If we're using GNU nm, then use its standard symbol codes.
6179case `$NM -V 2>&1` in
6180*GNU* | *'with BFD'*)
6181  symcode='[ABCDGIRSTW]' ;;
6182esac
6183
6184# Transform an extracted symbol line into a proper C declaration.
6185# Some systems (esp. on ia64) link data and code symbols differently,
6186# so use this general approach.
6187lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6188
6189# Transform an extracted symbol line into symbol name and symbol address
6190lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6191lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6192
6193# Handle CRLF in mingw tool chain
6194opt_cr=
6195case $build_os in
6196mingw*)
6197  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6198  ;;
6199esac
6200
6201# Try without a prefix underscore, then with it.
6202for ac_symprfx in "" "_"; do
6203
6204  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6205  symxfrm="\\1 $ac_symprfx\\2 \\2"
6206
6207  # Write the raw and C identifiers.
6208  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6209    # Fake it for dumpbin and say T for any non-static function
6210    # and D for any global variable.
6211    # Also find C++ and __fastcall symbols from MSVC++,
6212    # which start with @ or ?.
6213    lt_cv_sys_global_symbol_pipe="$AWK '"\
6214"     {last_section=section; section=\$ 3};"\
6215"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6216"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6217"     \$ 0!~/External *\|/{next};"\
6218"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6219"     {if(hide[section]) next};"\
6220"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6221"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6222"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6223"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6224"     ' prfx=^$ac_symprfx"
6225  else
6226    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6227  fi
6228  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6229
6230  # Check to see that the pipe works correctly.
6231  pipe_works=no
6232
6233  rm -f conftest*
6234  cat > conftest.$ac_ext <<_LT_EOF
6235#ifdef __cplusplus
6236extern "C" {
6237#endif
6238char nm_test_var;
6239void nm_test_func(void);
6240void nm_test_func(void){}
6241#ifdef __cplusplus
6242}
6243#endif
6244int main(){nm_test_var='a';nm_test_func();return(0);}
6245_LT_EOF
6246
6247  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6248  (eval $ac_compile) 2>&5
6249  ac_status=$?
6250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6251  test $ac_status = 0; }; then
6252    # Now try to grab the symbols.
6253    nlist=conftest.nm
6254    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6255  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6256  ac_status=$?
6257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258  test $ac_status = 0; } && test -s "$nlist"; then
6259      # Try sorting and uniquifying the output.
6260      if sort "$nlist" | uniq > "$nlist"T; then
6261	mv -f "$nlist"T "$nlist"
6262      else
6263	rm -f "$nlist"T
6264      fi
6265
6266      # Make sure that we snagged all the symbols we need.
6267      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6268	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6269	  cat <<_LT_EOF > conftest.$ac_ext
6270/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6271#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6272/* DATA imports from DLLs on WIN32 con't be const, because runtime
6273   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6274# define LT_DLSYM_CONST
6275#elif defined(__osf__)
6276/* This system does not cope well with relocations in const data.  */
6277# define LT_DLSYM_CONST
6278#else
6279# define LT_DLSYM_CONST const
6280#endif
6281
6282#ifdef __cplusplus
6283extern "C" {
6284#endif
6285
6286_LT_EOF
6287	  # Now generate the symbol file.
6288	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6289
6290	  cat <<_LT_EOF >> conftest.$ac_ext
6291
6292/* The mapping between symbol names and symbols.  */
6293LT_DLSYM_CONST struct {
6294  const char *name;
6295  void       *address;
6296}
6297lt__PROGRAM__LTX_preloaded_symbols[] =
6298{
6299  { "@PROGRAM@", (void *) 0 },
6300_LT_EOF
6301	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6302	  cat <<\_LT_EOF >> conftest.$ac_ext
6303  {0, (void *) 0}
6304};
6305
6306/* This works around a problem in FreeBSD linker */
6307#ifdef FREEBSD_WORKAROUND
6308static const void *lt_preloaded_setup() {
6309  return lt__PROGRAM__LTX_preloaded_symbols;
6310}
6311#endif
6312
6313#ifdef __cplusplus
6314}
6315#endif
6316_LT_EOF
6317	  # Now try linking the two files.
6318	  mv conftest.$ac_objext conftstm.$ac_objext
6319	  lt_globsym_save_LIBS=$LIBS
6320	  lt_globsym_save_CFLAGS=$CFLAGS
6321	  LIBS="conftstm.$ac_objext"
6322	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6323	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6324  (eval $ac_link) 2>&5
6325  ac_status=$?
6326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6328	    pipe_works=yes
6329	  fi
6330	  LIBS=$lt_globsym_save_LIBS
6331	  CFLAGS=$lt_globsym_save_CFLAGS
6332	else
6333	  echo "cannot find nm_test_func in $nlist" >&5
6334	fi
6335      else
6336	echo "cannot find nm_test_var in $nlist" >&5
6337      fi
6338    else
6339      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6340    fi
6341  else
6342    echo "$progname: failed program was:" >&5
6343    cat conftest.$ac_ext >&5
6344  fi
6345  rm -rf conftest* conftst*
6346
6347  # Do not use the global_symbol_pipe unless it works.
6348  if test "$pipe_works" = yes; then
6349    break
6350  else
6351    lt_cv_sys_global_symbol_pipe=
6352  fi
6353done
6354
6355fi
6356
6357if test -z "$lt_cv_sys_global_symbol_pipe"; then
6358  lt_cv_sys_global_symbol_to_cdecl=
6359fi
6360if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6362$as_echo "failed" >&6; }
6363else
6364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6365$as_echo "ok" >&6; }
6366fi
6367
6368# Response file support.
6369if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6370  nm_file_list_spec='@'
6371elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6372  nm_file_list_spec='@'
6373fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6402$as_echo_n "checking for sysroot... " >&6; }
6403
6404# Check whether --with-sysroot was given.
6405if test "${with_sysroot+set}" = set; then :
6406  withval=$with_sysroot;
6407else
6408  with_sysroot=no
6409fi
6410
6411
6412lt_sysroot=
6413case ${with_sysroot} in #(
6414 yes)
6415   if test "$GCC" = yes; then
6416     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6417   fi
6418   ;; #(
6419 /*)
6420   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6421   ;; #(
6422 no|'')
6423   ;; #(
6424 *)
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6426$as_echo "${with_sysroot}" >&6; }
6427   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6428   ;;
6429esac
6430
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6432$as_echo "${lt_sysroot:-no}" >&6; }
6433
6434
6435
6436
6437
6438# Check whether --enable-libtool-lock was given.
6439if test "${enable_libtool_lock+set}" = set; then :
6440  enableval=$enable_libtool_lock;
6441fi
6442
6443test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6444
6445# Some flags need to be propagated to the compiler or linker for good
6446# libtool support.
6447case $host in
6448ia64-*-hpux*)
6449  # Find out which ABI we are using.
6450  echo 'int i;' > conftest.$ac_ext
6451  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452  (eval $ac_compile) 2>&5
6453  ac_status=$?
6454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455  test $ac_status = 0; }; then
6456    case `/usr/bin/file conftest.$ac_objext` in
6457      *ELF-32*)
6458	HPUX_IA64_MODE="32"
6459	;;
6460      *ELF-64*)
6461	HPUX_IA64_MODE="64"
6462	;;
6463    esac
6464  fi
6465  rm -rf conftest*
6466  ;;
6467*-*-irix6*)
6468  # Find out which ABI we are using.
6469  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6470  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471  (eval $ac_compile) 2>&5
6472  ac_status=$?
6473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474  test $ac_status = 0; }; then
6475    if test "$lt_cv_prog_gnu_ld" = yes; then
6476      case `/usr/bin/file conftest.$ac_objext` in
6477	*32-bit*)
6478	  LD="${LD-ld} -melf32bsmip"
6479	  ;;
6480	*N32*)
6481	  LD="${LD-ld} -melf32bmipn32"
6482	  ;;
6483	*64-bit*)
6484	  LD="${LD-ld} -melf64bmip"
6485	;;
6486      esac
6487    else
6488      case `/usr/bin/file conftest.$ac_objext` in
6489	*32-bit*)
6490	  LD="${LD-ld} -32"
6491	  ;;
6492	*N32*)
6493	  LD="${LD-ld} -n32"
6494	  ;;
6495	*64-bit*)
6496	  LD="${LD-ld} -64"
6497	  ;;
6498      esac
6499    fi
6500  fi
6501  rm -rf conftest*
6502  ;;
6503
6504x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6505s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6506  # Find out which ABI we are using.
6507  echo 'int i;' > conftest.$ac_ext
6508  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509  (eval $ac_compile) 2>&5
6510  ac_status=$?
6511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512  test $ac_status = 0; }; then
6513    case `/usr/bin/file conftest.o` in
6514      *32-bit*)
6515	case $host in
6516	  x86_64-*kfreebsd*-gnu)
6517	    LD="${LD-ld} -m elf_i386_fbsd"
6518	    ;;
6519	  x86_64-*linux*)
6520	    LD="${LD-ld} -m elf_i386"
6521	    ;;
6522	  ppc64-*linux*|powerpc64-*linux*)
6523	    LD="${LD-ld} -m elf32ppclinux"
6524	    ;;
6525	  s390x-*linux*)
6526	    LD="${LD-ld} -m elf_s390"
6527	    ;;
6528	  sparc64-*linux*)
6529	    LD="${LD-ld} -m elf32_sparc"
6530	    ;;
6531	esac
6532	;;
6533      *64-bit*)
6534	case $host in
6535	  x86_64-*kfreebsd*-gnu)
6536	    LD="${LD-ld} -m elf_x86_64_fbsd"
6537	    ;;
6538	  x86_64-*linux*)
6539	    LD="${LD-ld} -m elf_x86_64"
6540	    ;;
6541	  ppc*-*linux*|powerpc*-*linux*)
6542	    LD="${LD-ld} -m elf64ppc"
6543	    ;;
6544	  s390*-*linux*|s390*-*tpf*)
6545	    LD="${LD-ld} -m elf64_s390"
6546	    ;;
6547	  sparc*-*linux*)
6548	    LD="${LD-ld} -m elf64_sparc"
6549	    ;;
6550	esac
6551	;;
6552    esac
6553  fi
6554  rm -rf conftest*
6555  ;;
6556
6557*-*-sco3.2v5*)
6558  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6559  SAVE_CFLAGS="$CFLAGS"
6560  CFLAGS="$CFLAGS -belf"
6561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6562$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6563if ${lt_cv_cc_needs_belf+:} false; then :
6564  $as_echo_n "(cached) " >&6
6565else
6566  ac_ext=c
6567ac_cpp='$CPP $CPPFLAGS'
6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
6572     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574
6575int
6576main ()
6577{
6578
6579  ;
6580  return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_link "$LINENO"; then :
6584  lt_cv_cc_needs_belf=yes
6585else
6586  lt_cv_cc_needs_belf=no
6587fi
6588rm -f core conftest.err conftest.$ac_objext \
6589    conftest$ac_exeext conftest.$ac_ext
6590     ac_ext=c
6591ac_cpp='$CPP $CPPFLAGS'
6592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6598$as_echo "$lt_cv_cc_needs_belf" >&6; }
6599  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6600    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6601    CFLAGS="$SAVE_CFLAGS"
6602  fi
6603  ;;
6604*-*solaris*)
6605  # Find out which ABI we are using.
6606  echo 'int i;' > conftest.$ac_ext
6607  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6608  (eval $ac_compile) 2>&5
6609  ac_status=$?
6610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611  test $ac_status = 0; }; then
6612    case `/usr/bin/file conftest.o` in
6613    *64-bit*)
6614      case $lt_cv_prog_gnu_ld in
6615      yes*)
6616        case $host in
6617        i?86-*-solaris*)
6618          LD="${LD-ld} -m elf_x86_64"
6619          ;;
6620        sparc*-*-solaris*)
6621          LD="${LD-ld} -m elf64_sparc"
6622          ;;
6623        esac
6624        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6625        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6626          LD="${LD-ld}_sol2"
6627        fi
6628        ;;
6629      *)
6630	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6631	  LD="${LD-ld} -64"
6632	fi
6633	;;
6634      esac
6635      ;;
6636    esac
6637  fi
6638  rm -rf conftest*
6639  ;;
6640esac
6641
6642need_locks="$enable_libtool_lock"
6643
6644if test -n "$ac_tool_prefix"; then
6645  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6646set dummy ${ac_tool_prefix}mt; ac_word=$2
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  if test -n "$MANIFEST_TOOL"; then
6653  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660    for ac_exec_ext in '' $ac_executable_extensions; do
6661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667  done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6673if test -n "$MANIFEST_TOOL"; then
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6675$as_echo "$MANIFEST_TOOL" >&6; }
6676else
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681
6682fi
6683if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6684  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6685  # Extract the first word of "mt", so it can be a program name with args.
6686set dummy mt; ac_word=$2
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688$as_echo_n "checking for $ac_word... " >&6; }
6689if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  if test -n "$ac_ct_MANIFEST_TOOL"; then
6693  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698  IFS=$as_save_IFS
6699  test -z "$as_dir" && as_dir=.
6700    for ac_exec_ext in '' $ac_executable_extensions; do
6701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704    break 2
6705  fi
6706done
6707  done
6708IFS=$as_save_IFS
6709
6710fi
6711fi
6712ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6713if test -n "$ac_ct_MANIFEST_TOOL"; then
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6715$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6716else
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720
6721  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6722    MANIFEST_TOOL=":"
6723  else
6724    case $cross_compiling:$ac_tool_warned in
6725yes:)
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728ac_tool_warned=yes ;;
6729esac
6730    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6731  fi
6732else
6733  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6734fi
6735
6736test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6738$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6739if ${lt_cv_path_mainfest_tool+:} false; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  lt_cv_path_mainfest_tool=no
6743  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6744  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6745  cat conftest.err >&5
6746  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6747    lt_cv_path_mainfest_tool=yes
6748  fi
6749  rm -f conftest*
6750fi
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6752$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6753if test "x$lt_cv_path_mainfest_tool" != xyes; then
6754  MANIFEST_TOOL=:
6755fi
6756
6757
6758
6759
6760
6761
6762  case $host_os in
6763    rhapsody* | darwin*)
6764    if test -n "$ac_tool_prefix"; then
6765  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6766set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
6769if ${ac_cv_prog_DSYMUTIL+:} false; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  if test -n "$DSYMUTIL"; then
6773  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778  IFS=$as_save_IFS
6779  test -z "$as_dir" && as_dir=.
6780    for ac_exec_ext in '' $ac_executable_extensions; do
6781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784    break 2
6785  fi
6786done
6787  done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
6792DSYMUTIL=$ac_cv_prog_DSYMUTIL
6793if test -n "$DSYMUTIL"; then
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6795$as_echo "$DSYMUTIL" >&6; }
6796else
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
6801
6802fi
6803if test -z "$ac_cv_prog_DSYMUTIL"; then
6804  ac_ct_DSYMUTIL=$DSYMUTIL
6805  # Extract the first word of "dsymutil", so it can be a program name with args.
6806set dummy dsymutil; ac_word=$2
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808$as_echo_n "checking for $ac_word... " >&6; }
6809if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6810  $as_echo_n "(cached) " >&6
6811else
6812  if test -n "$ac_ct_DSYMUTIL"; then
6813  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6814else
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818  IFS=$as_save_IFS
6819  test -z "$as_dir" && as_dir=.
6820    for ac_exec_ext in '' $ac_executable_extensions; do
6821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824    break 2
6825  fi
6826done
6827  done
6828IFS=$as_save_IFS
6829
6830fi
6831fi
6832ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6833if test -n "$ac_ct_DSYMUTIL"; then
6834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6835$as_echo "$ac_ct_DSYMUTIL" >&6; }
6836else
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838$as_echo "no" >&6; }
6839fi
6840
6841  if test "x$ac_ct_DSYMUTIL" = x; then
6842    DSYMUTIL=":"
6843  else
6844    case $cross_compiling:$ac_tool_warned in
6845yes:)
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848ac_tool_warned=yes ;;
6849esac
6850    DSYMUTIL=$ac_ct_DSYMUTIL
6851  fi
6852else
6853  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6854fi
6855
6856    if test -n "$ac_tool_prefix"; then
6857  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6858set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if ${ac_cv_prog_NMEDIT+:} false; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$NMEDIT"; then
6865  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872    for ac_exec_ext in '' $ac_executable_extensions; do
6873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879  done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884NMEDIT=$ac_cv_prog_NMEDIT
6885if test -n "$NMEDIT"; then
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6887$as_echo "$NMEDIT" >&6; }
6888else
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893
6894fi
6895if test -z "$ac_cv_prog_NMEDIT"; then
6896  ac_ct_NMEDIT=$NMEDIT
6897  # Extract the first word of "nmedit", so it can be a program name with args.
6898set dummy nmedit; ac_word=$2
6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900$as_echo_n "checking for $ac_word... " >&6; }
6901if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6902  $as_echo_n "(cached) " >&6
6903else
6904  if test -n "$ac_ct_NMEDIT"; then
6905  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6906else
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910  IFS=$as_save_IFS
6911  test -z "$as_dir" && as_dir=.
6912    for ac_exec_ext in '' $ac_executable_extensions; do
6913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6914    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916    break 2
6917  fi
6918done
6919  done
6920IFS=$as_save_IFS
6921
6922fi
6923fi
6924ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6925if test -n "$ac_ct_NMEDIT"; then
6926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6927$as_echo "$ac_ct_NMEDIT" >&6; }
6928else
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930$as_echo "no" >&6; }
6931fi
6932
6933  if test "x$ac_ct_NMEDIT" = x; then
6934    NMEDIT=":"
6935  else
6936    case $cross_compiling:$ac_tool_warned in
6937yes:)
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940ac_tool_warned=yes ;;
6941esac
6942    NMEDIT=$ac_ct_NMEDIT
6943  fi
6944else
6945  NMEDIT="$ac_cv_prog_NMEDIT"
6946fi
6947
6948    if test -n "$ac_tool_prefix"; then
6949  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6950set dummy ${ac_tool_prefix}lipo; ac_word=$2
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952$as_echo_n "checking for $ac_word... " >&6; }
6953if ${ac_cv_prog_LIPO+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  if test -n "$LIPO"; then
6957  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962  IFS=$as_save_IFS
6963  test -z "$as_dir" && as_dir=.
6964    for ac_exec_ext in '' $ac_executable_extensions; do
6965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968    break 2
6969  fi
6970done
6971  done
6972IFS=$as_save_IFS
6973
6974fi
6975fi
6976LIPO=$ac_cv_prog_LIPO
6977if test -n "$LIPO"; then
6978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6979$as_echo "$LIPO" >&6; }
6980else
6981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982$as_echo "no" >&6; }
6983fi
6984
6985
6986fi
6987if test -z "$ac_cv_prog_LIPO"; then
6988  ac_ct_LIPO=$LIPO
6989  # Extract the first word of "lipo", so it can be a program name with args.
6990set dummy lipo; 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_ac_ct_LIPO+:} false; then :
6994  $as_echo_n "(cached) " >&6
6995else
6996  if test -n "$ac_ct_LIPO"; then
6997  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo"
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
7016ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7017if test -n "$ac_ct_LIPO"; then
7018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7019$as_echo "$ac_ct_LIPO" >&6; }
7020else
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022$as_echo "no" >&6; }
7023fi
7024
7025  if test "x$ac_ct_LIPO" = x; then
7026    LIPO=":"
7027  else
7028    case $cross_compiling:$ac_tool_warned in
7029yes:)
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032ac_tool_warned=yes ;;
7033esac
7034    LIPO=$ac_ct_LIPO
7035  fi
7036else
7037  LIPO="$ac_cv_prog_LIPO"
7038fi
7039
7040    if test -n "$ac_tool_prefix"; then
7041  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7042set dummy ${ac_tool_prefix}otool; ac_word=$2
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044$as_echo_n "checking for $ac_word... " >&6; }
7045if ${ac_cv_prog_OTOOL+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  if test -n "$OTOOL"; then
7049  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7050else
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054  IFS=$as_save_IFS
7055  test -z "$as_dir" && as_dir=.
7056    for ac_exec_ext in '' $ac_executable_extensions; do
7057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060    break 2
7061  fi
7062done
7063  done
7064IFS=$as_save_IFS
7065
7066fi
7067fi
7068OTOOL=$ac_cv_prog_OTOOL
7069if test -n "$OTOOL"; then
7070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7071$as_echo "$OTOOL" >&6; }
7072else
7073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074$as_echo "no" >&6; }
7075fi
7076
7077
7078fi
7079if test -z "$ac_cv_prog_OTOOL"; then
7080  ac_ct_OTOOL=$OTOOL
7081  # Extract the first word of "otool", so it can be a program name with args.
7082set dummy otool; 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_ac_ct_OTOOL+:} false; then :
7086  $as_echo_n "(cached) " >&6
7087else
7088  if test -n "$ac_ct_OTOOL"; then
7089  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
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
7108ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7109if test -n "$ac_ct_OTOOL"; then
7110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7111$as_echo "$ac_ct_OTOOL" >&6; }
7112else
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114$as_echo "no" >&6; }
7115fi
7116
7117  if test "x$ac_ct_OTOOL" = x; then
7118    OTOOL=":"
7119  else
7120    case $cross_compiling:$ac_tool_warned in
7121yes:)
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124ac_tool_warned=yes ;;
7125esac
7126    OTOOL=$ac_ct_OTOOL
7127  fi
7128else
7129  OTOOL="$ac_cv_prog_OTOOL"
7130fi
7131
7132    if test -n "$ac_tool_prefix"; then
7133  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7134set dummy ${ac_tool_prefix}otool64; ac_word=$2
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136$as_echo_n "checking for $ac_word... " >&6; }
7137if ${ac_cv_prog_OTOOL64+:} false; then :
7138  $as_echo_n "(cached) " >&6
7139else
7140  if test -n "$OTOOL64"; then
7141  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146  IFS=$as_save_IFS
7147  test -z "$as_dir" && as_dir=.
7148    for ac_exec_ext in '' $ac_executable_extensions; do
7149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152    break 2
7153  fi
7154done
7155  done
7156IFS=$as_save_IFS
7157
7158fi
7159fi
7160OTOOL64=$ac_cv_prog_OTOOL64
7161if test -n "$OTOOL64"; then
7162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7163$as_echo "$OTOOL64" >&6; }
7164else
7165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166$as_echo "no" >&6; }
7167fi
7168
7169
7170fi
7171if test -z "$ac_cv_prog_OTOOL64"; then
7172  ac_ct_OTOOL64=$OTOOL64
7173  # Extract the first word of "otool64", so it can be a program name with args.
7174set dummy otool64; 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_ac_ct_OTOOL64+:} false; then :
7178  $as_echo_n "(cached) " >&6
7179else
7180  if test -n "$ac_ct_OTOOL64"; then
7181  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_ac_ct_OTOOL64="otool64"
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
7200ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7201if test -n "$ac_ct_OTOOL64"; then
7202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7203$as_echo "$ac_ct_OTOOL64" >&6; }
7204else
7205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206$as_echo "no" >&6; }
7207fi
7208
7209  if test "x$ac_ct_OTOOL64" = x; then
7210    OTOOL64=":"
7211  else
7212    case $cross_compiling:$ac_tool_warned in
7213yes:)
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216ac_tool_warned=yes ;;
7217esac
7218    OTOOL64=$ac_ct_OTOOL64
7219  fi
7220else
7221  OTOOL64="$ac_cv_prog_OTOOL64"
7222fi
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7251$as_echo_n "checking for -single_module linker flag... " >&6; }
7252if ${lt_cv_apple_cc_single_mod+:} false; then :
7253  $as_echo_n "(cached) " >&6
7254else
7255  lt_cv_apple_cc_single_mod=no
7256      if test -z "${LT_MULTI_MODULE}"; then
7257	# By default we will add the -single_module flag. You can override
7258	# by either setting the environment variable LT_MULTI_MODULE
7259	# non-empty at configure time, or by adding -multi_module to the
7260	# link flags.
7261	rm -rf libconftest.dylib*
7262	echo "int foo(void){return 1;}" > conftest.c
7263	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7264-dynamiclib -Wl,-single_module conftest.c" >&5
7265	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7266	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7267        _lt_result=$?
7268	# If there is a non-empty error log, and "single_module"
7269	# appears in it, assume the flag caused a linker warning
7270        if test -s conftest.err && $GREP single_module conftest.err; then
7271	  cat conftest.err >&5
7272	# Otherwise, if the output was created with a 0 exit code from
7273	# the compiler, it worked.
7274	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7275	  lt_cv_apple_cc_single_mod=yes
7276	else
7277	  cat conftest.err >&5
7278	fi
7279	rm -rf libconftest.dylib*
7280	rm -f conftest.*
7281      fi
7282fi
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7284$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7285
7286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7287$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7288if ${lt_cv_ld_exported_symbols_list+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  lt_cv_ld_exported_symbols_list=no
7292      save_LDFLAGS=$LDFLAGS
7293      echo "_main" > conftest.sym
7294      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7295      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h.  */
7297
7298int
7299main ()
7300{
7301
7302  ;
7303  return 0;
7304}
7305_ACEOF
7306if ac_fn_c_try_link "$LINENO"; then :
7307  lt_cv_ld_exported_symbols_list=yes
7308else
7309  lt_cv_ld_exported_symbols_list=no
7310fi
7311rm -f core conftest.err conftest.$ac_objext \
7312    conftest$ac_exeext conftest.$ac_ext
7313	LDFLAGS="$save_LDFLAGS"
7314
7315fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7317$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7318
7319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7320$as_echo_n "checking for -force_load linker flag... " >&6; }
7321if ${lt_cv_ld_force_load+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  lt_cv_ld_force_load=no
7325      cat > conftest.c << _LT_EOF
7326int forced_loaded() { return 2;}
7327_LT_EOF
7328      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7329      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7330      echo "$AR cru libconftest.a conftest.o" >&5
7331      $AR cru libconftest.a conftest.o 2>&5
7332      echo "$RANLIB libconftest.a" >&5
7333      $RANLIB libconftest.a 2>&5
7334      cat > conftest.c << _LT_EOF
7335int main() { return 0;}
7336_LT_EOF
7337      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7338      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7339      _lt_result=$?
7340      if test -s conftest.err && $GREP force_load conftest.err; then
7341	cat conftest.err >&5
7342      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7343	lt_cv_ld_force_load=yes
7344      else
7345	cat conftest.err >&5
7346      fi
7347        rm -f conftest.err libconftest.a conftest conftest.c
7348        rm -rf conftest.dSYM
7349
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7352$as_echo "$lt_cv_ld_force_load" >&6; }
7353    case $host_os in
7354    rhapsody* | darwin1.[012])
7355      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7356    darwin1.*)
7357      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7358    darwin*) # darwin 5.x on
7359      # if running on 10.5 or later, the deployment target defaults
7360      # to the OS version, if on x86, and 10.4, the deployment
7361      # target defaults to 10.4. Don't you love it?
7362      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7363	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7364	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7365	10.[012]*)
7366	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7367	10.*)
7368	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7369      esac
7370    ;;
7371  esac
7372    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7373      _lt_dar_single_mod='$single_module'
7374    fi
7375    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7376      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7377    else
7378      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7379    fi
7380    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7381      _lt_dsymutil='~$DSYMUTIL $lib || :'
7382    else
7383      _lt_dsymutil=
7384    fi
7385    ;;
7386  esac
7387
7388ac_ext=c
7389ac_cpp='$CPP $CPPFLAGS'
7390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392ac_compiler_gnu=$ac_cv_c_compiler_gnu
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7394$as_echo_n "checking how to run the C preprocessor... " >&6; }
7395# On Suns, sometimes $CPP names a directory.
7396if test -n "$CPP" && test -d "$CPP"; then
7397  CPP=
7398fi
7399if test -z "$CPP"; then
7400  if ${ac_cv_prog_CPP+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403      # Double quotes because CPP needs to be expanded
7404    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7405    do
7406      ac_preproc_ok=false
7407for ac_c_preproc_warn_flag in '' yes
7408do
7409  # Use a header file that comes with gcc, so configuring glibc
7410  # with a fresh cross-compiler works.
7411  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7412  # <limits.h> exists even on freestanding compilers.
7413  # On the NeXT, cc -E runs the code through the compiler's parser,
7414  # not just through cpp. "Syntax error" is here to catch this case.
7415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416/* end confdefs.h.  */
7417#ifdef __STDC__
7418# include <limits.h>
7419#else
7420# include <assert.h>
7421#endif
7422		     Syntax error
7423_ACEOF
7424if ac_fn_c_try_cpp "$LINENO"; then :
7425
7426else
7427  # Broken: fails on valid input.
7428continue
7429fi
7430rm -f conftest.err conftest.i conftest.$ac_ext
7431
7432  # OK, works on sane cases.  Now check whether nonexistent headers
7433  # can be detected and how.
7434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h.  */
7436#include <ac_nonexistent.h>
7437_ACEOF
7438if ac_fn_c_try_cpp "$LINENO"; then :
7439  # Broken: success on invalid input.
7440continue
7441else
7442  # Passes both tests.
7443ac_preproc_ok=:
7444break
7445fi
7446rm -f conftest.err conftest.i conftest.$ac_ext
7447
7448done
7449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7450rm -f conftest.i conftest.err conftest.$ac_ext
7451if $ac_preproc_ok; then :
7452  break
7453fi
7454
7455    done
7456    ac_cv_prog_CPP=$CPP
7457
7458fi
7459  CPP=$ac_cv_prog_CPP
7460else
7461  ac_cv_prog_CPP=$CPP
7462fi
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7464$as_echo "$CPP" >&6; }
7465ac_preproc_ok=false
7466for ac_c_preproc_warn_flag in '' yes
7467do
7468  # Use a header file that comes with gcc, so configuring glibc
7469  # with a fresh cross-compiler works.
7470  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7471  # <limits.h> exists even on freestanding compilers.
7472  # On the NeXT, cc -E runs the code through the compiler's parser,
7473  # not just through cpp. "Syntax error" is here to catch this case.
7474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476#ifdef __STDC__
7477# include <limits.h>
7478#else
7479# include <assert.h>
7480#endif
7481		     Syntax error
7482_ACEOF
7483if ac_fn_c_try_cpp "$LINENO"; then :
7484
7485else
7486  # Broken: fails on valid input.
7487continue
7488fi
7489rm -f conftest.err conftest.i conftest.$ac_ext
7490
7491  # OK, works on sane cases.  Now check whether nonexistent headers
7492  # can be detected and how.
7493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495#include <ac_nonexistent.h>
7496_ACEOF
7497if ac_fn_c_try_cpp "$LINENO"; then :
7498  # Broken: success on invalid input.
7499continue
7500else
7501  # Passes both tests.
7502ac_preproc_ok=:
7503break
7504fi
7505rm -f conftest.err conftest.i conftest.$ac_ext
7506
7507done
7508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7509rm -f conftest.i conftest.err conftest.$ac_ext
7510if $ac_preproc_ok; then :
7511
7512else
7513  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7515as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7516See \`config.log' for more details" "$LINENO" 5; }
7517fi
7518
7519ac_ext=c
7520ac_cpp='$CPP $CPPFLAGS'
7521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524
7525
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7527$as_echo_n "checking for ANSI C header files... " >&6; }
7528if ${ac_cv_header_stdc+:} false; then :
7529  $as_echo_n "(cached) " >&6
7530else
7531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533#include <stdlib.h>
7534#include <stdarg.h>
7535#include <string.h>
7536#include <float.h>
7537
7538int
7539main ()
7540{
7541
7542  ;
7543  return 0;
7544}
7545_ACEOF
7546if ac_fn_c_try_compile "$LINENO"; then :
7547  ac_cv_header_stdc=yes
7548else
7549  ac_cv_header_stdc=no
7550fi
7551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552
7553if test $ac_cv_header_stdc = yes; then
7554  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557#include <string.h>
7558
7559_ACEOF
7560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561  $EGREP "memchr" >/dev/null 2>&1; then :
7562
7563else
7564  ac_cv_header_stdc=no
7565fi
7566rm -f conftest*
7567
7568fi
7569
7570if test $ac_cv_header_stdc = yes; then
7571  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h.  */
7574#include <stdlib.h>
7575
7576_ACEOF
7577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7578  $EGREP "free" >/dev/null 2>&1; then :
7579
7580else
7581  ac_cv_header_stdc=no
7582fi
7583rm -f conftest*
7584
7585fi
7586
7587if test $ac_cv_header_stdc = yes; then
7588  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7589  if test "$cross_compiling" = yes; then :
7590  :
7591else
7592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594#include <ctype.h>
7595#include <stdlib.h>
7596#if ((' ' & 0x0FF) == 0x020)
7597# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7598# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7599#else
7600# define ISLOWER(c) \
7601		   (('a' <= (c) && (c) <= 'i') \
7602		     || ('j' <= (c) && (c) <= 'r') \
7603		     || ('s' <= (c) && (c) <= 'z'))
7604# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7605#endif
7606
7607#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7608int
7609main ()
7610{
7611  int i;
7612  for (i = 0; i < 256; i++)
7613    if (XOR (islower (i), ISLOWER (i))
7614	|| toupper (i) != TOUPPER (i))
7615      return 2;
7616  return 0;
7617}
7618_ACEOF
7619if ac_fn_c_try_run "$LINENO"; then :
7620
7621else
7622  ac_cv_header_stdc=no
7623fi
7624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7625  conftest.$ac_objext conftest.beam conftest.$ac_ext
7626fi
7627
7628fi
7629fi
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7631$as_echo "$ac_cv_header_stdc" >&6; }
7632if test $ac_cv_header_stdc = yes; then
7633
7634$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7635
7636fi
7637
7638# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7639for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7640		  inttypes.h stdint.h unistd.h
7641do :
7642  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7643ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7644"
7645if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7646  cat >>confdefs.h <<_ACEOF
7647#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7648_ACEOF
7649
7650fi
7651
7652done
7653
7654
7655for ac_header in dlfcn.h
7656do :
7657  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7658"
7659if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7660  cat >>confdefs.h <<_ACEOF
7661#define HAVE_DLFCN_H 1
7662_ACEOF
7663
7664fi
7665
7666done
7667
7668
7669
7670
7671
7672# Set options
7673
7674
7675
7676        enable_dlopen=no
7677
7678
7679  enable_win32_dll=no
7680
7681
7682            # Check whether --enable-shared was given.
7683if test "${enable_shared+set}" = set; then :
7684  enableval=$enable_shared; p=${PACKAGE-default}
7685    case $enableval in
7686    yes) enable_shared=yes ;;
7687    no) enable_shared=no ;;
7688    *)
7689      enable_shared=no
7690      # Look at the argument we got.  We use all the common list separators.
7691      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7692      for pkg in $enableval; do
7693	IFS="$lt_save_ifs"
7694	if test "X$pkg" = "X$p"; then
7695	  enable_shared=yes
7696	fi
7697      done
7698      IFS="$lt_save_ifs"
7699      ;;
7700    esac
7701else
7702  enable_shared=yes
7703fi
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713  # Check whether --enable-static was given.
7714if test "${enable_static+set}" = set; then :
7715  enableval=$enable_static; p=${PACKAGE-default}
7716    case $enableval in
7717    yes) enable_static=yes ;;
7718    no) enable_static=no ;;
7719    *)
7720     enable_static=no
7721      # Look at the argument we got.  We use all the common list separators.
7722      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7723      for pkg in $enableval; do
7724	IFS="$lt_save_ifs"
7725	if test "X$pkg" = "X$p"; then
7726	  enable_static=yes
7727	fi
7728      done
7729      IFS="$lt_save_ifs"
7730      ;;
7731    esac
7732else
7733  enable_static=yes
7734fi
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745# Check whether --with-pic was given.
7746if test "${with_pic+set}" = set; then :
7747  withval=$with_pic; lt_p=${PACKAGE-default}
7748    case $withval in
7749    yes|no) pic_mode=$withval ;;
7750    *)
7751      pic_mode=default
7752      # Look at the argument we got.  We use all the common list separators.
7753      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7754      for lt_pkg in $withval; do
7755	IFS="$lt_save_ifs"
7756	if test "X$lt_pkg" = "X$lt_p"; then
7757	  pic_mode=yes
7758	fi
7759      done
7760      IFS="$lt_save_ifs"
7761      ;;
7762    esac
7763else
7764  pic_mode=default
7765fi
7766
7767
7768test -z "$pic_mode" && pic_mode=default
7769
7770
7771
7772
7773
7774
7775
7776  # Check whether --enable-fast-install was given.
7777if test "${enable_fast_install+set}" = set; then :
7778  enableval=$enable_fast_install; p=${PACKAGE-default}
7779    case $enableval in
7780    yes) enable_fast_install=yes ;;
7781    no) enable_fast_install=no ;;
7782    *)
7783      enable_fast_install=no
7784      # Look at the argument we got.  We use all the common list separators.
7785      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7786      for pkg in $enableval; do
7787	IFS="$lt_save_ifs"
7788	if test "X$pkg" = "X$p"; then
7789	  enable_fast_install=yes
7790	fi
7791      done
7792      IFS="$lt_save_ifs"
7793      ;;
7794    esac
7795else
7796  enable_fast_install=yes
7797fi
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809# This can be used to rebuild libtool when needed
7810LIBTOOL_DEPS="$ltmain"
7811
7812# Always use our own libtool.
7813LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844test -z "$LN_S" && LN_S="ln -s"
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859if test -n "${ZSH_VERSION+set}" ; then
7860   setopt NO_GLOB_SUBST
7861fi
7862
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7864$as_echo_n "checking for objdir... " >&6; }
7865if ${lt_cv_objdir+:} false; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  rm -f .libs 2>/dev/null
7869mkdir .libs 2>/dev/null
7870if test -d .libs; then
7871  lt_cv_objdir=.libs
7872else
7873  # MS-DOS does not allow filenames that begin with a dot.
7874  lt_cv_objdir=_libs
7875fi
7876rmdir .libs 2>/dev/null
7877fi
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7879$as_echo "$lt_cv_objdir" >&6; }
7880objdir=$lt_cv_objdir
7881
7882
7883
7884
7885
7886cat >>confdefs.h <<_ACEOF
7887#define LT_OBJDIR "$lt_cv_objdir/"
7888_ACEOF
7889
7890
7891
7892
7893case $host_os in
7894aix3*)
7895  # AIX sometimes has problems with the GCC collect2 program.  For some
7896  # reason, if we set the COLLECT_NAMES environment variable, the problems
7897  # vanish in a puff of smoke.
7898  if test "X${COLLECT_NAMES+set}" != Xset; then
7899    COLLECT_NAMES=
7900    export COLLECT_NAMES
7901  fi
7902  ;;
7903esac
7904
7905# Global variables:
7906ofile=libtool
7907can_build_shared=yes
7908
7909# All known linkers require a `.a' archive for static linking (except MSVC,
7910# which needs '.lib').
7911libext=a
7912
7913with_gnu_ld="$lt_cv_prog_gnu_ld"
7914
7915old_CC="$CC"
7916old_CFLAGS="$CFLAGS"
7917
7918# Set sane defaults for various variables
7919test -z "$CC" && CC=cc
7920test -z "$LTCC" && LTCC=$CC
7921test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7922test -z "$LD" && LD=ld
7923test -z "$ac_objext" && ac_objext=o
7924
7925for cc_temp in $compiler""; do
7926  case $cc_temp in
7927    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7928    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7929    \-*) ;;
7930    *) break;;
7931  esac
7932done
7933cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7934
7935
7936# Only perform the check for file, if the check method requires it
7937test -z "$MAGIC_CMD" && MAGIC_CMD=file
7938case $deplibs_check_method in
7939file_magic*)
7940  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7941    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7942$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7943if ${lt_cv_path_MAGIC_CMD+:} false; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  case $MAGIC_CMD in
7947[\\/*] |  ?:[\\/]*)
7948  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7949  ;;
7950*)
7951  lt_save_MAGIC_CMD="$MAGIC_CMD"
7952  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7953  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7954  for ac_dir in $ac_dummy; do
7955    IFS="$lt_save_ifs"
7956    test -z "$ac_dir" && ac_dir=.
7957    if test -f $ac_dir/${ac_tool_prefix}file; then
7958      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7959      if test -n "$file_magic_test_file"; then
7960	case $deplibs_check_method in
7961	"file_magic "*)
7962	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7963	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7964	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7965	    $EGREP "$file_magic_regex" > /dev/null; then
7966	    :
7967	  else
7968	    cat <<_LT_EOF 1>&2
7969
7970*** Warning: the command libtool uses to detect shared libraries,
7971*** $file_magic_cmd, produces output that libtool cannot recognize.
7972*** The result is that libtool may fail to recognize shared libraries
7973*** as such.  This will affect the creation of libtool libraries that
7974*** depend on shared libraries, but programs linked with such libtool
7975*** libraries will work regardless of this problem.  Nevertheless, you
7976*** may want to report the problem to your system manager and/or to
7977*** bug-libtool@gnu.org
7978
7979_LT_EOF
7980	  fi ;;
7981	esac
7982      fi
7983      break
7984    fi
7985  done
7986  IFS="$lt_save_ifs"
7987  MAGIC_CMD="$lt_save_MAGIC_CMD"
7988  ;;
7989esac
7990fi
7991
7992MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7993if test -n "$MAGIC_CMD"; then
7994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7995$as_echo "$MAGIC_CMD" >&6; }
7996else
7997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998$as_echo "no" >&6; }
7999fi
8000
8001
8002
8003
8004
8005if test -z "$lt_cv_path_MAGIC_CMD"; then
8006  if test -n "$ac_tool_prefix"; then
8007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8008$as_echo_n "checking for file... " >&6; }
8009if ${lt_cv_path_MAGIC_CMD+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  case $MAGIC_CMD in
8013[\\/*] |  ?:[\\/]*)
8014  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8015  ;;
8016*)
8017  lt_save_MAGIC_CMD="$MAGIC_CMD"
8018  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8019  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8020  for ac_dir in $ac_dummy; do
8021    IFS="$lt_save_ifs"
8022    test -z "$ac_dir" && ac_dir=.
8023    if test -f $ac_dir/file; then
8024      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8025      if test -n "$file_magic_test_file"; then
8026	case $deplibs_check_method in
8027	"file_magic "*)
8028	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8029	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8031	    $EGREP "$file_magic_regex" > /dev/null; then
8032	    :
8033	  else
8034	    cat <<_LT_EOF 1>&2
8035
8036*** Warning: the command libtool uses to detect shared libraries,
8037*** $file_magic_cmd, produces output that libtool cannot recognize.
8038*** The result is that libtool may fail to recognize shared libraries
8039*** as such.  This will affect the creation of libtool libraries that
8040*** depend on shared libraries, but programs linked with such libtool
8041*** libraries will work regardless of this problem.  Nevertheless, you
8042*** may want to report the problem to your system manager and/or to
8043*** bug-libtool@gnu.org
8044
8045_LT_EOF
8046	  fi ;;
8047	esac
8048      fi
8049      break
8050    fi
8051  done
8052  IFS="$lt_save_ifs"
8053  MAGIC_CMD="$lt_save_MAGIC_CMD"
8054  ;;
8055esac
8056fi
8057
8058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8059if test -n "$MAGIC_CMD"; then
8060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8061$as_echo "$MAGIC_CMD" >&6; }
8062else
8063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
8065fi
8066
8067
8068  else
8069    MAGIC_CMD=:
8070  fi
8071fi
8072
8073  fi
8074  ;;
8075esac
8076
8077# Use C for the default configuration in the libtool script
8078
8079lt_save_CC="$CC"
8080ac_ext=c
8081ac_cpp='$CPP $CPPFLAGS'
8082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084ac_compiler_gnu=$ac_cv_c_compiler_gnu
8085
8086
8087# Source file extension for C test sources.
8088ac_ext=c
8089
8090# Object file extension for compiled C test sources.
8091objext=o
8092objext=$objext
8093
8094# Code to be used in simple compile tests
8095lt_simple_compile_test_code="int some_variable = 0;"
8096
8097# Code to be used in simple link tests
8098lt_simple_link_test_code='int main(){return(0);}'
8099
8100
8101
8102
8103
8104
8105
8106# If no C compiler was specified, use CC.
8107LTCC=${LTCC-"$CC"}
8108
8109# If no C compiler flags were specified, use CFLAGS.
8110LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8111
8112# Allow CC to be a program name with arguments.
8113compiler=$CC
8114
8115# Save the default compiler, since it gets overwritten when the other
8116# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8117compiler_DEFAULT=$CC
8118
8119# save warnings/boilerplate of simple test code
8120ac_outfile=conftest.$ac_objext
8121echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8122eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8123_lt_compiler_boilerplate=`cat conftest.err`
8124$RM conftest*
8125
8126ac_outfile=conftest.$ac_objext
8127echo "$lt_simple_link_test_code" >conftest.$ac_ext
8128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8129_lt_linker_boilerplate=`cat conftest.err`
8130$RM -r conftest*
8131
8132
8133## CAVEAT EMPTOR:
8134## There is no encapsulation within the following macros, do not change
8135## the running order or otherwise move them around unless you know exactly
8136## what you are doing...
8137if test -n "$compiler"; then
8138
8139lt_prog_compiler_no_builtin_flag=
8140
8141if test "$GCC" = yes; then
8142  case $cc_basename in
8143  nvcc*)
8144    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8145  *)
8146    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8147  esac
8148
8149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8150$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8151if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8152  $as_echo_n "(cached) " >&6
8153else
8154  lt_cv_prog_compiler_rtti_exceptions=no
8155   ac_outfile=conftest.$ac_objext
8156   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8157   lt_compiler_flag="-fno-rtti -fno-exceptions"
8158   # Insert the option either (1) after the last *FLAGS variable, or
8159   # (2) before a word containing "conftest.", or (3) at the end.
8160   # Note that $ac_compile itself does not contain backslashes and begins
8161   # with a dollar sign (not a hyphen), so the echo should work correctly.
8162   # The option is referenced via a variable to avoid confusing sed.
8163   lt_compile=`echo "$ac_compile" | $SED \
8164   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8165   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8166   -e 's:$: $lt_compiler_flag:'`
8167   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8168   (eval "$lt_compile" 2>conftest.err)
8169   ac_status=$?
8170   cat conftest.err >&5
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   if (exit $ac_status) && test -s "$ac_outfile"; then
8173     # The compiler can only warn and ignore the option if not recognized
8174     # So say no if there are warnings other than the usual output.
8175     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8176     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8177     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8178       lt_cv_prog_compiler_rtti_exceptions=yes
8179     fi
8180   fi
8181   $RM conftest*
8182
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8185$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8186
8187if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8188    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8189else
8190    :
8191fi
8192
8193fi
8194
8195
8196
8197
8198
8199
8200  lt_prog_compiler_wl=
8201lt_prog_compiler_pic=
8202lt_prog_compiler_static=
8203
8204
8205  if test "$GCC" = yes; then
8206    lt_prog_compiler_wl='-Wl,'
8207    lt_prog_compiler_static='-static'
8208
8209    case $host_os in
8210      aix*)
8211      # All AIX code is PIC.
8212      if test "$host_cpu" = ia64; then
8213	# AIX 5 now supports IA64 processor
8214	lt_prog_compiler_static='-Bstatic'
8215      fi
8216      ;;
8217
8218    amigaos*)
8219      case $host_cpu in
8220      powerpc)
8221            # see comment about AmigaOS4 .so support
8222            lt_prog_compiler_pic='-fPIC'
8223        ;;
8224      m68k)
8225            # FIXME: we need at least 68020 code to build shared libraries, but
8226            # adding the `-m68020' flag to GCC prevents building anything better,
8227            # like `-m68040'.
8228            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8229        ;;
8230      esac
8231      ;;
8232
8233    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8234      # PIC is the default for these OSes.
8235      ;;
8236
8237    mingw* | cygwin* | pw32* | os2* | cegcc*)
8238      # This hack is so that the source file can tell whether it is being
8239      # built for inclusion in a dll (and should export symbols for example).
8240      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8241      # (--disable-auto-import) libraries
8242      lt_prog_compiler_pic='-DDLL_EXPORT'
8243      ;;
8244
8245    darwin* | rhapsody*)
8246      # PIC is the default on this platform
8247      # Common symbols not allowed in MH_DYLIB files
8248      lt_prog_compiler_pic='-fno-common'
8249      ;;
8250
8251    haiku*)
8252      # PIC is the default for Haiku.
8253      # The "-static" flag exists, but is broken.
8254      lt_prog_compiler_static=
8255      ;;
8256
8257    hpux*)
8258      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8259      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8260      # sets the default TLS model and affects inlining.
8261      case $host_cpu in
8262      hppa*64*)
8263	# +Z the default
8264	;;
8265      *)
8266	lt_prog_compiler_pic='-fPIC'
8267	;;
8268      esac
8269      ;;
8270
8271    interix[3-9]*)
8272      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8273      # Instead, we relocate shared libraries at runtime.
8274      ;;
8275
8276    msdosdjgpp*)
8277      # Just because we use GCC doesn't mean we suddenly get shared libraries
8278      # on systems that don't support them.
8279      lt_prog_compiler_can_build_shared=no
8280      enable_shared=no
8281      ;;
8282
8283    *nto* | *qnx*)
8284      # QNX uses GNU C++, but need to define -shared option too, otherwise
8285      # it will coredump.
8286      lt_prog_compiler_pic='-fPIC -shared'
8287      ;;
8288
8289    sysv4*MP*)
8290      if test -d /usr/nec; then
8291	lt_prog_compiler_pic=-Kconform_pic
8292      fi
8293      ;;
8294
8295    *)
8296      lt_prog_compiler_pic='-fPIC'
8297      ;;
8298    esac
8299
8300    case $cc_basename in
8301    nvcc*) # Cuda Compiler Driver 2.2
8302      lt_prog_compiler_wl='-Xlinker '
8303      if test -n "$lt_prog_compiler_pic"; then
8304        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8305      fi
8306      ;;
8307    esac
8308  else
8309    # PORTME Check for flag to pass linker flags through the system compiler.
8310    case $host_os in
8311    aix*)
8312      lt_prog_compiler_wl='-Wl,'
8313      if test "$host_cpu" = ia64; then
8314	# AIX 5 now supports IA64 processor
8315	lt_prog_compiler_static='-Bstatic'
8316      else
8317	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8318      fi
8319      ;;
8320
8321    mingw* | cygwin* | pw32* | os2* | cegcc*)
8322      # This hack is so that the source file can tell whether it is being
8323      # built for inclusion in a dll (and should export symbols for example).
8324      lt_prog_compiler_pic='-DDLL_EXPORT'
8325      ;;
8326
8327    hpux9* | hpux10* | hpux11*)
8328      lt_prog_compiler_wl='-Wl,'
8329      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8330      # not for PA HP-UX.
8331      case $host_cpu in
8332      hppa*64*|ia64*)
8333	# +Z the default
8334	;;
8335      *)
8336	lt_prog_compiler_pic='+Z'
8337	;;
8338      esac
8339      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8340      lt_prog_compiler_static='${wl}-a ${wl}archive'
8341      ;;
8342
8343    irix5* | irix6* | nonstopux*)
8344      lt_prog_compiler_wl='-Wl,'
8345      # PIC (with -KPIC) is the default.
8346      lt_prog_compiler_static='-non_shared'
8347      ;;
8348
8349    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8350      case $cc_basename in
8351      # old Intel for x86_64 which still supported -KPIC.
8352      ecc*)
8353	lt_prog_compiler_wl='-Wl,'
8354	lt_prog_compiler_pic='-KPIC'
8355	lt_prog_compiler_static='-static'
8356        ;;
8357      # icc used to be incompatible with GCC.
8358      # ICC 10 doesn't accept -KPIC any more.
8359      icc* | ifort*)
8360	lt_prog_compiler_wl='-Wl,'
8361	lt_prog_compiler_pic='-fPIC'
8362	lt_prog_compiler_static='-static'
8363        ;;
8364      # Lahey Fortran 8.1.
8365      lf95*)
8366	lt_prog_compiler_wl='-Wl,'
8367	lt_prog_compiler_pic='--shared'
8368	lt_prog_compiler_static='--static'
8369	;;
8370      nagfor*)
8371	# NAG Fortran compiler
8372	lt_prog_compiler_wl='-Wl,-Wl,,'
8373	lt_prog_compiler_pic='-PIC'
8374	lt_prog_compiler_static='-Bstatic'
8375	;;
8376      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8377        # Portland Group compilers (*not* the Pentium gcc compiler,
8378	# which looks to be a dead project)
8379	lt_prog_compiler_wl='-Wl,'
8380	lt_prog_compiler_pic='-fpic'
8381	lt_prog_compiler_static='-Bstatic'
8382        ;;
8383      ccc*)
8384        lt_prog_compiler_wl='-Wl,'
8385        # All Alpha code is PIC.
8386        lt_prog_compiler_static='-non_shared'
8387        ;;
8388      xl* | bgxl* | bgf* | mpixl*)
8389	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8390	lt_prog_compiler_wl='-Wl,'
8391	lt_prog_compiler_pic='-qpic'
8392	lt_prog_compiler_static='-qstaticlink'
8393	;;
8394      *)
8395	case `$CC -V 2>&1 | sed 5q` in
8396	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8397	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8398	  lt_prog_compiler_pic='-KPIC'
8399	  lt_prog_compiler_static='-Bstatic'
8400	  lt_prog_compiler_wl=''
8401	  ;;
8402	*Sun\ F* | *Sun*Fortran*)
8403	  lt_prog_compiler_pic='-KPIC'
8404	  lt_prog_compiler_static='-Bstatic'
8405	  lt_prog_compiler_wl='-Qoption ld '
8406	  ;;
8407	*Sun\ C*)
8408	  # Sun C 5.9
8409	  lt_prog_compiler_pic='-KPIC'
8410	  lt_prog_compiler_static='-Bstatic'
8411	  lt_prog_compiler_wl='-Wl,'
8412	  ;;
8413        *Intel*\ [CF]*Compiler*)
8414	  lt_prog_compiler_wl='-Wl,'
8415	  lt_prog_compiler_pic='-fPIC'
8416	  lt_prog_compiler_static='-static'
8417	  ;;
8418	*Portland\ Group*)
8419	  lt_prog_compiler_wl='-Wl,'
8420	  lt_prog_compiler_pic='-fpic'
8421	  lt_prog_compiler_static='-Bstatic'
8422	  ;;
8423	esac
8424	;;
8425      esac
8426      ;;
8427
8428    newsos6)
8429      lt_prog_compiler_pic='-KPIC'
8430      lt_prog_compiler_static='-Bstatic'
8431      ;;
8432
8433    *nto* | *qnx*)
8434      # QNX uses GNU C++, but need to define -shared option too, otherwise
8435      # it will coredump.
8436      lt_prog_compiler_pic='-fPIC -shared'
8437      ;;
8438
8439    osf3* | osf4* | osf5*)
8440      lt_prog_compiler_wl='-Wl,'
8441      # All OSF/1 code is PIC.
8442      lt_prog_compiler_static='-non_shared'
8443      ;;
8444
8445    rdos*)
8446      lt_prog_compiler_static='-non_shared'
8447      ;;
8448
8449    solaris*)
8450      lt_prog_compiler_pic='-KPIC'
8451      lt_prog_compiler_static='-Bstatic'
8452      case $cc_basename in
8453      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8454	lt_prog_compiler_wl='-Qoption ld ';;
8455      *)
8456	lt_prog_compiler_wl='-Wl,';;
8457      esac
8458      ;;
8459
8460    sunos4*)
8461      lt_prog_compiler_wl='-Qoption ld '
8462      lt_prog_compiler_pic='-PIC'
8463      lt_prog_compiler_static='-Bstatic'
8464      ;;
8465
8466    sysv4 | sysv4.2uw2* | sysv4.3*)
8467      lt_prog_compiler_wl='-Wl,'
8468      lt_prog_compiler_pic='-KPIC'
8469      lt_prog_compiler_static='-Bstatic'
8470      ;;
8471
8472    sysv4*MP*)
8473      if test -d /usr/nec ;then
8474	lt_prog_compiler_pic='-Kconform_pic'
8475	lt_prog_compiler_static='-Bstatic'
8476      fi
8477      ;;
8478
8479    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8480      lt_prog_compiler_wl='-Wl,'
8481      lt_prog_compiler_pic='-KPIC'
8482      lt_prog_compiler_static='-Bstatic'
8483      ;;
8484
8485    unicos*)
8486      lt_prog_compiler_wl='-Wl,'
8487      lt_prog_compiler_can_build_shared=no
8488      ;;
8489
8490    uts4*)
8491      lt_prog_compiler_pic='-pic'
8492      lt_prog_compiler_static='-Bstatic'
8493      ;;
8494
8495    *)
8496      lt_prog_compiler_can_build_shared=no
8497      ;;
8498    esac
8499  fi
8500
8501case $host_os in
8502  # For platforms which do not support PIC, -DPIC is meaningless:
8503  *djgpp*)
8504    lt_prog_compiler_pic=
8505    ;;
8506  *)
8507    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8508    ;;
8509esac
8510
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8512$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8513if ${lt_cv_prog_compiler_pic+:} false; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8517fi
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8519$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8520lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8521
8522#
8523# Check to make sure the PIC flag actually works.
8524#
8525if test -n "$lt_prog_compiler_pic"; then
8526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8527$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8528if ${lt_cv_prog_compiler_pic_works+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  lt_cv_prog_compiler_pic_works=no
8532   ac_outfile=conftest.$ac_objext
8533   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8534   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8535   # Insert the option either (1) after the last *FLAGS variable, or
8536   # (2) before a word containing "conftest.", or (3) at the end.
8537   # Note that $ac_compile itself does not contain backslashes and begins
8538   # with a dollar sign (not a hyphen), so the echo should work correctly.
8539   # The option is referenced via a variable to avoid confusing sed.
8540   lt_compile=`echo "$ac_compile" | $SED \
8541   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8542   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8543   -e 's:$: $lt_compiler_flag:'`
8544   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8545   (eval "$lt_compile" 2>conftest.err)
8546   ac_status=$?
8547   cat conftest.err >&5
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   if (exit $ac_status) && test -s "$ac_outfile"; then
8550     # The compiler can only warn and ignore the option if not recognized
8551     # So say no if there are warnings other than the usual output.
8552     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8553     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8554     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8555       lt_cv_prog_compiler_pic_works=yes
8556     fi
8557   fi
8558   $RM conftest*
8559
8560fi
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8562$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8563
8564if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8565    case $lt_prog_compiler_pic in
8566     "" | " "*) ;;
8567     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8568     esac
8569else
8570    lt_prog_compiler_pic=
8571     lt_prog_compiler_can_build_shared=no
8572fi
8573
8574fi
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586#
8587# Check to make sure the static flag actually works.
8588#
8589wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8591$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8592if ${lt_cv_prog_compiler_static_works+:} false; then :
8593  $as_echo_n "(cached) " >&6
8594else
8595  lt_cv_prog_compiler_static_works=no
8596   save_LDFLAGS="$LDFLAGS"
8597   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8598   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8599   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8600     # The linker can only warn and ignore the option if not recognized
8601     # So say no if there are warnings
8602     if test -s conftest.err; then
8603       # Append any errors to the config.log.
8604       cat conftest.err 1>&5
8605       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8606       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8607       if diff conftest.exp conftest.er2 >/dev/null; then
8608         lt_cv_prog_compiler_static_works=yes
8609       fi
8610     else
8611       lt_cv_prog_compiler_static_works=yes
8612     fi
8613   fi
8614   $RM -r conftest*
8615   LDFLAGS="$save_LDFLAGS"
8616
8617fi
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8619$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8620
8621if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8622    :
8623else
8624    lt_prog_compiler_static=
8625fi
8626
8627
8628
8629
8630
8631
8632
8633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8635if ${lt_cv_prog_compiler_c_o+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  lt_cv_prog_compiler_c_o=no
8639   $RM -r conftest 2>/dev/null
8640   mkdir conftest
8641   cd conftest
8642   mkdir out
8643   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8644
8645   lt_compiler_flag="-o out/conftest2.$ac_objext"
8646   # Insert the option either (1) after the last *FLAGS variable, or
8647   # (2) before a word containing "conftest.", or (3) at the end.
8648   # Note that $ac_compile itself does not contain backslashes and begins
8649   # with a dollar sign (not a hyphen), so the echo should work correctly.
8650   lt_compile=`echo "$ac_compile" | $SED \
8651   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653   -e 's:$: $lt_compiler_flag:'`
8654   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8655   (eval "$lt_compile" 2>out/conftest.err)
8656   ac_status=$?
8657   cat out/conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8660   then
8661     # The compiler can only warn and ignore the option if not recognized
8662     # So say no if there are warnings
8663     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8664     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8665     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8666       lt_cv_prog_compiler_c_o=yes
8667     fi
8668   fi
8669   chmod u+w . 2>&5
8670   $RM conftest*
8671   # SGI C++ compiler will create directory out/ii_files/ for
8672   # template instantiation
8673   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8674   $RM out/* && rmdir out
8675   cd ..
8676   $RM -r conftest
8677   $RM conftest*
8678
8679fi
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8681$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8682
8683
8684
8685
8686
8687
8688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8689$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8690if ${lt_cv_prog_compiler_c_o+:} false; then :
8691  $as_echo_n "(cached) " >&6
8692else
8693  lt_cv_prog_compiler_c_o=no
8694   $RM -r conftest 2>/dev/null
8695   mkdir conftest
8696   cd conftest
8697   mkdir out
8698   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8699
8700   lt_compiler_flag="-o out/conftest2.$ac_objext"
8701   # Insert the option either (1) after the last *FLAGS variable, or
8702   # (2) before a word containing "conftest.", or (3) at the end.
8703   # Note that $ac_compile itself does not contain backslashes and begins
8704   # with a dollar sign (not a hyphen), so the echo should work correctly.
8705   lt_compile=`echo "$ac_compile" | $SED \
8706   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8707   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8708   -e 's:$: $lt_compiler_flag:'`
8709   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8710   (eval "$lt_compile" 2>out/conftest.err)
8711   ac_status=$?
8712   cat out/conftest.err >&5
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8715   then
8716     # The compiler can only warn and ignore the option if not recognized
8717     # So say no if there are warnings
8718     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8719     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8720     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8721       lt_cv_prog_compiler_c_o=yes
8722     fi
8723   fi
8724   chmod u+w . 2>&5
8725   $RM conftest*
8726   # SGI C++ compiler will create directory out/ii_files/ for
8727   # template instantiation
8728   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8729   $RM out/* && rmdir out
8730   cd ..
8731   $RM -r conftest
8732   $RM conftest*
8733
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8736$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8737
8738
8739
8740
8741hard_links="nottested"
8742if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8743  # do not overwrite the value of need_locks provided by the user
8744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8745$as_echo_n "checking if we can lock with hard links... " >&6; }
8746  hard_links=yes
8747  $RM conftest*
8748  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8749  touch conftest.a
8750  ln conftest.a conftest.b 2>&5 || hard_links=no
8751  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8753$as_echo "$hard_links" >&6; }
8754  if test "$hard_links" = no; then
8755    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8756$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8757    need_locks=warn
8758  fi
8759else
8760  need_locks=no
8761fi
8762
8763
8764
8765
8766
8767
8768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8769$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8770
8771  runpath_var=
8772  allow_undefined_flag=
8773  always_export_symbols=no
8774  archive_cmds=
8775  archive_expsym_cmds=
8776  compiler_needs_object=no
8777  enable_shared_with_static_runtimes=no
8778  export_dynamic_flag_spec=
8779  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8780  hardcode_automatic=no
8781  hardcode_direct=no
8782  hardcode_direct_absolute=no
8783  hardcode_libdir_flag_spec=
8784  hardcode_libdir_separator=
8785  hardcode_minus_L=no
8786  hardcode_shlibpath_var=unsupported
8787  inherit_rpath=no
8788  link_all_deplibs=unknown
8789  module_cmds=
8790  module_expsym_cmds=
8791  old_archive_from_new_cmds=
8792  old_archive_from_expsyms_cmds=
8793  thread_safe_flag_spec=
8794  whole_archive_flag_spec=
8795  # include_expsyms should be a list of space-separated symbols to be *always*
8796  # included in the symbol list
8797  include_expsyms=
8798  # exclude_expsyms can be an extended regexp of symbols to exclude
8799  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8800  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8801  # as well as any symbol that contains `d'.
8802  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8803  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8804  # platforms (ab)use it in PIC code, but their linkers get confused if
8805  # the symbol is explicitly referenced.  Since portable code cannot
8806  # rely on this symbol name, it's probably fine to never include it in
8807  # preloaded symbol tables.
8808  # Exclude shared library initialization/finalization symbols.
8809  extract_expsyms_cmds=
8810
8811  case $host_os in
8812  cygwin* | mingw* | pw32* | cegcc*)
8813    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8814    # When not using gcc, we currently assume that we are using
8815    # Microsoft Visual C++.
8816    if test "$GCC" != yes; then
8817      with_gnu_ld=no
8818    fi
8819    ;;
8820  interix*)
8821    # we just hope/assume this is gcc and not c89 (= MSVC++)
8822    with_gnu_ld=yes
8823    ;;
8824  openbsd*)
8825    with_gnu_ld=no
8826    ;;
8827  esac
8828
8829  ld_shlibs=yes
8830
8831  # On some targets, GNU ld is compatible enough with the native linker
8832  # that we're better off using the native interface for both.
8833  lt_use_gnu_ld_interface=no
8834  if test "$with_gnu_ld" = yes; then
8835    case $host_os in
8836      aix*)
8837	# The AIX port of GNU ld has always aspired to compatibility
8838	# with the native linker.  However, as the warning in the GNU ld
8839	# block says, versions before 2.19.5* couldn't really create working
8840	# shared libraries, regardless of the interface used.
8841	case `$LD -v 2>&1` in
8842	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8843	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8844	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8845	  *)
8846	    lt_use_gnu_ld_interface=yes
8847	    ;;
8848	esac
8849	;;
8850      *)
8851	lt_use_gnu_ld_interface=yes
8852	;;
8853    esac
8854  fi
8855
8856  if test "$lt_use_gnu_ld_interface" = yes; then
8857    # If archive_cmds runs LD, not CC, wlarc should be empty
8858    wlarc='${wl}'
8859
8860    # Set some defaults for GNU ld with shared library support. These
8861    # are reset later if shared libraries are not supported. Putting them
8862    # here allows them to be overridden if necessary.
8863    runpath_var=LD_RUN_PATH
8864    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865    export_dynamic_flag_spec='${wl}--export-dynamic'
8866    # ancient GNU ld didn't support --whole-archive et. al.
8867    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8868      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8869    else
8870      whole_archive_flag_spec=
8871    fi
8872    supports_anon_versioning=no
8873    case `$LD -v 2>&1` in
8874      *GNU\ gold*) supports_anon_versioning=yes ;;
8875      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8876      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8877      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8878      *\ 2.11.*) ;; # other 2.11 versions
8879      *) supports_anon_versioning=yes ;;
8880    esac
8881
8882    # See if GNU ld supports shared libraries.
8883    case $host_os in
8884    aix[3-9]*)
8885      # On AIX/PPC, the GNU linker is very broken
8886      if test "$host_cpu" != ia64; then
8887	ld_shlibs=no
8888	cat <<_LT_EOF 1>&2
8889
8890*** Warning: the GNU linker, at least up to release 2.19, is reported
8891*** to be unable to reliably create shared libraries on AIX.
8892*** Therefore, libtool is disabling shared libraries support.  If you
8893*** really care for shared libraries, you may want to install binutils
8894*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8895*** You will then need to restart the configuration process.
8896
8897_LT_EOF
8898      fi
8899      ;;
8900
8901    amigaos*)
8902      case $host_cpu in
8903      powerpc)
8904            # see comment about AmigaOS4 .so support
8905            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8906            archive_expsym_cmds=''
8907        ;;
8908      m68k)
8909            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)'
8910            hardcode_libdir_flag_spec='-L$libdir'
8911            hardcode_minus_L=yes
8912        ;;
8913      esac
8914      ;;
8915
8916    beos*)
8917      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8918	allow_undefined_flag=unsupported
8919	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8920	# support --undefined.  This deserves some investigation.  FIXME
8921	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922      else
8923	ld_shlibs=no
8924      fi
8925      ;;
8926
8927    cygwin* | mingw* | pw32* | cegcc*)
8928      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8929      # as there is no search path for DLLs.
8930      hardcode_libdir_flag_spec='-L$libdir'
8931      export_dynamic_flag_spec='${wl}--export-all-symbols'
8932      allow_undefined_flag=unsupported
8933      always_export_symbols=no
8934      enable_shared_with_static_runtimes=yes
8935      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'
8936      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8937
8938      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8939        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8940	# If the export-symbols file already is a .def file (1st line
8941	# is EXPORTS), use it as is; otherwise, prepend...
8942	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8943	  cp $export_symbols $output_objdir/$soname.def;
8944	else
8945	  echo EXPORTS > $output_objdir/$soname.def;
8946	  cat $export_symbols >> $output_objdir/$soname.def;
8947	fi~
8948	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8949      else
8950	ld_shlibs=no
8951      fi
8952      ;;
8953
8954    haiku*)
8955      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8956      link_all_deplibs=yes
8957      ;;
8958
8959    interix[3-9]*)
8960      hardcode_direct=no
8961      hardcode_shlibpath_var=no
8962      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8963      export_dynamic_flag_spec='${wl}-E'
8964      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8965      # Instead, shared libraries are loaded at an image base (0x10000000 by
8966      # default) and relocated if they conflict, which is a slow very memory
8967      # consuming and fragmenting process.  To avoid this, we pick a random,
8968      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8969      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8970      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8971      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'
8972      ;;
8973
8974    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8975      tmp_diet=no
8976      if test "$host_os" = linux-dietlibc; then
8977	case $cc_basename in
8978	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8979	esac
8980      fi
8981      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8982	 && test "$tmp_diet" = no
8983      then
8984	tmp_addflag=' $pic_flag'
8985	tmp_sharedflag='-shared'
8986	case $cc_basename,$host_cpu in
8987        pgcc*)				# Portland Group C compiler
8988	  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'
8989	  tmp_addflag=' $pic_flag'
8990	  ;;
8991	pgf77* | pgf90* | pgf95* | pgfortran*)
8992					# Portland Group f77 and f90 compilers
8993	  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'
8994	  tmp_addflag=' $pic_flag -Mnomain' ;;
8995	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8996	  tmp_addflag=' -i_dynamic' ;;
8997	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8998	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8999	ifc* | ifort*)			# Intel Fortran compiler
9000	  tmp_addflag=' -nofor_main' ;;
9001	lf95*)				# Lahey Fortran 8.1
9002	  whole_archive_flag_spec=
9003	  tmp_sharedflag='--shared' ;;
9004	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9005	  tmp_sharedflag='-qmkshrobj'
9006	  tmp_addflag= ;;
9007	nvcc*)	# Cuda Compiler Driver 2.2
9008	  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'
9009	  compiler_needs_object=yes
9010	  ;;
9011	esac
9012	case `$CC -V 2>&1 | sed 5q` in
9013	*Sun\ C*)			# Sun C 5.9
9014	  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'
9015	  compiler_needs_object=yes
9016	  tmp_sharedflag='-G' ;;
9017	*Sun\ F*)			# Sun Fortran 8.3
9018	  tmp_sharedflag='-G' ;;
9019	esac
9020	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9021
9022        if test "x$supports_anon_versioning" = xyes; then
9023          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9024	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9025	    echo "local: *; };" >> $output_objdir/$libname.ver~
9026	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9027        fi
9028
9029	case $cc_basename in
9030	xlf* | bgf* | bgxlf* | mpixlf*)
9031	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9032	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9033	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9034	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9035	  if test "x$supports_anon_versioning" = xyes; then
9036	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9037	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9038	      echo "local: *; };" >> $output_objdir/$libname.ver~
9039	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9040	  fi
9041	  ;;
9042	esac
9043      else
9044        ld_shlibs=no
9045      fi
9046      ;;
9047
9048    netbsd*)
9049      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9050	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9051	wlarc=
9052      else
9053	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9055      fi
9056      ;;
9057
9058    solaris*)
9059      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9060	ld_shlibs=no
9061	cat <<_LT_EOF 1>&2
9062
9063*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9064*** create shared libraries on Solaris systems.  Therefore, libtool
9065*** is disabling shared libraries support.  We urge you to upgrade GNU
9066*** binutils to release 2.9.1 or newer.  Another option is to modify
9067*** your PATH or compiler configuration so that the native linker is
9068*** used, and then restart.
9069
9070_LT_EOF
9071      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9072	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9074      else
9075	ld_shlibs=no
9076      fi
9077      ;;
9078
9079    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9080      case `$LD -v 2>&1` in
9081        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9082	ld_shlibs=no
9083	cat <<_LT_EOF 1>&2
9084
9085*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9086*** reliably create shared libraries on SCO systems.  Therefore, libtool
9087*** is disabling shared libraries support.  We urge you to upgrade GNU
9088*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9089*** your PATH or compiler configuration so that the native linker is
9090*** used, and then restart.
9091
9092_LT_EOF
9093	;;
9094	*)
9095	  # For security reasons, it is highly recommended that you always
9096	  # use absolute paths for naming shared libraries, and exclude the
9097	  # DT_RUNPATH tag from executables and libraries.  But doing so
9098	  # requires that you compile everything twice, which is a pain.
9099	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9100	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9101	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9103	  else
9104	    ld_shlibs=no
9105	  fi
9106	;;
9107      esac
9108      ;;
9109
9110    sunos4*)
9111      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9112      wlarc=
9113      hardcode_direct=yes
9114      hardcode_shlibpath_var=no
9115      ;;
9116
9117    *)
9118      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9119	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9121      else
9122	ld_shlibs=no
9123      fi
9124      ;;
9125    esac
9126
9127    if test "$ld_shlibs" = no; then
9128      runpath_var=
9129      hardcode_libdir_flag_spec=
9130      export_dynamic_flag_spec=
9131      whole_archive_flag_spec=
9132    fi
9133  else
9134    # PORTME fill in a description of your system's linker (not GNU ld)
9135    case $host_os in
9136    aix3*)
9137      allow_undefined_flag=unsupported
9138      always_export_symbols=yes
9139      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'
9140      # Note: this linker hardcodes the directories in LIBPATH if there
9141      # are no directories specified by -L.
9142      hardcode_minus_L=yes
9143      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9144	# Neither direct hardcoding nor static linking is supported with a
9145	# broken collect2.
9146	hardcode_direct=unsupported
9147      fi
9148      ;;
9149
9150    aix[4-9]*)
9151      if test "$host_cpu" = ia64; then
9152	# On IA64, the linker does run time linking by default, so we don't
9153	# have to do anything special.
9154	aix_use_runtimelinking=no
9155	exp_sym_flag='-Bexport'
9156	no_entry_flag=""
9157      else
9158	# If we're using GNU nm, then we don't want the "-C" option.
9159	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9160	# Also, AIX nm treats weak defined symbols like other global
9161	# defined symbols, whereas GNU nm marks them as "W".
9162	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9163	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9164	else
9165	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9166	fi
9167	aix_use_runtimelinking=no
9168
9169	# Test if we are trying to use run time linking or normal
9170	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9171	# need to do runtime linking.
9172	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9173	  for ld_flag in $LDFLAGS; do
9174	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9175	    aix_use_runtimelinking=yes
9176	    break
9177	  fi
9178	  done
9179	  ;;
9180	esac
9181
9182	exp_sym_flag='-bexport'
9183	no_entry_flag='-bnoentry'
9184      fi
9185
9186      # When large executables or shared objects are built, AIX ld can
9187      # have problems creating the table of contents.  If linking a library
9188      # or program results in "error TOC overflow" add -mminimal-toc to
9189      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9190      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9191
9192      archive_cmds=''
9193      hardcode_direct=yes
9194      hardcode_direct_absolute=yes
9195      hardcode_libdir_separator=':'
9196      link_all_deplibs=yes
9197      file_list_spec='${wl}-f,'
9198
9199      if test "$GCC" = yes; then
9200	case $host_os in aix4.[012]|aix4.[012].*)
9201	# We only want to do this on AIX 4.2 and lower, the check
9202	# below for broken collect2 doesn't work under 4.3+
9203	  collect2name=`${CC} -print-prog-name=collect2`
9204	  if test -f "$collect2name" &&
9205	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9206	  then
9207	  # We have reworked collect2
9208	  :
9209	  else
9210	  # We have old collect2
9211	  hardcode_direct=unsupported
9212	  # It fails to find uninstalled libraries when the uninstalled
9213	  # path is not listed in the libpath.  Setting hardcode_minus_L
9214	  # to unsupported forces relinking
9215	  hardcode_minus_L=yes
9216	  hardcode_libdir_flag_spec='-L$libdir'
9217	  hardcode_libdir_separator=
9218	  fi
9219	  ;;
9220	esac
9221	shared_flag='-shared'
9222	if test "$aix_use_runtimelinking" = yes; then
9223	  shared_flag="$shared_flag "'${wl}-G'
9224	fi
9225      else
9226	# not using gcc
9227	if test "$host_cpu" = ia64; then
9228	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9229	# chokes on -Wl,-G. The following line is correct:
9230	  shared_flag='-G'
9231	else
9232	  if test "$aix_use_runtimelinking" = yes; then
9233	    shared_flag='${wl}-G'
9234	  else
9235	    shared_flag='${wl}-bM:SRE'
9236	  fi
9237	fi
9238      fi
9239
9240      export_dynamic_flag_spec='${wl}-bexpall'
9241      # It seems that -bexpall does not export symbols beginning with
9242      # underscore (_), so it is better to generate a list of symbols to export.
9243      always_export_symbols=yes
9244      if test "$aix_use_runtimelinking" = yes; then
9245	# Warning - without using the other runtime loading flags (-brtl),
9246	# -berok will link without error, but may produce a broken library.
9247	allow_undefined_flag='-berok'
9248        # Determine the default libpath from the value encoded in an
9249        # empty executable.
9250        if test "${lt_cv_aix_libpath+set}" = set; then
9251  aix_libpath=$lt_cv_aix_libpath
9252else
9253  if ${lt_cv_aix_libpath_+:} false; then :
9254  $as_echo_n "(cached) " >&6
9255else
9256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257/* end confdefs.h.  */
9258
9259int
9260main ()
9261{
9262
9263  ;
9264  return 0;
9265}
9266_ACEOF
9267if ac_fn_c_try_link "$LINENO"; then :
9268
9269  lt_aix_libpath_sed='
9270      /Import File Strings/,/^$/ {
9271	  /^0/ {
9272	      s/^0  *\([^ ]*\) *$/\1/
9273	      p
9274	  }
9275      }'
9276  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277  # Check for a 64-bit object if we didn't find anything.
9278  if test -z "$lt_cv_aix_libpath_"; then
9279    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9280  fi
9281fi
9282rm -f core conftest.err conftest.$ac_objext \
9283    conftest$ac_exeext conftest.$ac_ext
9284  if test -z "$lt_cv_aix_libpath_"; then
9285    lt_cv_aix_libpath_="/usr/lib:/lib"
9286  fi
9287
9288fi
9289
9290  aix_libpath=$lt_cv_aix_libpath_
9291fi
9292
9293        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9294        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9295      else
9296	if test "$host_cpu" = ia64; then
9297	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9298	  allow_undefined_flag="-z nodefs"
9299	  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"
9300	else
9301	 # Determine the default libpath from the value encoded in an
9302	 # empty executable.
9303	 if test "${lt_cv_aix_libpath+set}" = set; then
9304  aix_libpath=$lt_cv_aix_libpath
9305else
9306  if ${lt_cv_aix_libpath_+:} false; then :
9307  $as_echo_n "(cached) " >&6
9308else
9309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310/* end confdefs.h.  */
9311
9312int
9313main ()
9314{
9315
9316  ;
9317  return 0;
9318}
9319_ACEOF
9320if ac_fn_c_try_link "$LINENO"; then :
9321
9322  lt_aix_libpath_sed='
9323      /Import File Strings/,/^$/ {
9324	  /^0/ {
9325	      s/^0  *\([^ ]*\) *$/\1/
9326	      p
9327	  }
9328      }'
9329  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9330  # Check for a 64-bit object if we didn't find anything.
9331  if test -z "$lt_cv_aix_libpath_"; then
9332    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9333  fi
9334fi
9335rm -f core conftest.err conftest.$ac_objext \
9336    conftest$ac_exeext conftest.$ac_ext
9337  if test -z "$lt_cv_aix_libpath_"; then
9338    lt_cv_aix_libpath_="/usr/lib:/lib"
9339  fi
9340
9341fi
9342
9343  aix_libpath=$lt_cv_aix_libpath_
9344fi
9345
9346	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9347	  # Warning - without using the other run time loading flags,
9348	  # -berok will link without error, but may produce a broken library.
9349	  no_undefined_flag=' ${wl}-bernotok'
9350	  allow_undefined_flag=' ${wl}-berok'
9351	  if test "$with_gnu_ld" = yes; then
9352	    # We only use this code for GNU lds that support --whole-archive.
9353	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9354	  else
9355	    # Exported symbols can be pulled into shared objects from archives
9356	    whole_archive_flag_spec='$convenience'
9357	  fi
9358	  archive_cmds_need_lc=yes
9359	  # This is similar to how AIX traditionally builds its shared libraries.
9360	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9361	fi
9362      fi
9363      ;;
9364
9365    amigaos*)
9366      case $host_cpu in
9367      powerpc)
9368            # see comment about AmigaOS4 .so support
9369            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9370            archive_expsym_cmds=''
9371        ;;
9372      m68k)
9373            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)'
9374            hardcode_libdir_flag_spec='-L$libdir'
9375            hardcode_minus_L=yes
9376        ;;
9377      esac
9378      ;;
9379
9380    bsdi[45]*)
9381      export_dynamic_flag_spec=-rdynamic
9382      ;;
9383
9384    cygwin* | mingw* | pw32* | cegcc*)
9385      # When not using gcc, we currently assume that we are using
9386      # Microsoft Visual C++.
9387      # hardcode_libdir_flag_spec is actually meaningless, as there is
9388      # no search path for DLLs.
9389      case $cc_basename in
9390      cl*)
9391	# Native MSVC
9392	hardcode_libdir_flag_spec=' '
9393	allow_undefined_flag=unsupported
9394	always_export_symbols=yes
9395	file_list_spec='@'
9396	# Tell ltmain to make .lib files, not .a files.
9397	libext=lib
9398	# Tell ltmain to make .dll files, not .so files.
9399	shrext_cmds=".dll"
9400	# FIXME: Setting linknames here is a bad hack.
9401	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9402	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9403	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9404	  else
9405	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9406	  fi~
9407	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9408	  linknames='
9409	# The linker will not automatically build a static lib if we build a DLL.
9410	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9411	enable_shared_with_static_runtimes=yes
9412	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9413	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9414	# Don't use ranlib
9415	old_postinstall_cmds='chmod 644 $oldlib'
9416	postlink_cmds='lt_outputfile="@OUTPUT@"~
9417	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9418	  case $lt_outputfile in
9419	    *.exe|*.EXE) ;;
9420	    *)
9421	      lt_outputfile="$lt_outputfile.exe"
9422	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9423	      ;;
9424	  esac~
9425	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9426	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9427	    $RM "$lt_outputfile.manifest";
9428	  fi'
9429	;;
9430      *)
9431	# Assume MSVC wrapper
9432	hardcode_libdir_flag_spec=' '
9433	allow_undefined_flag=unsupported
9434	# Tell ltmain to make .lib files, not .a files.
9435	libext=lib
9436	# Tell ltmain to make .dll files, not .so files.
9437	shrext_cmds=".dll"
9438	# FIXME: Setting linknames here is a bad hack.
9439	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9440	# The linker will automatically build a .lib file if we build a DLL.
9441	old_archive_from_new_cmds='true'
9442	# FIXME: Should let the user specify the lib program.
9443	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9444	enable_shared_with_static_runtimes=yes
9445	;;
9446      esac
9447      ;;
9448
9449    darwin* | rhapsody*)
9450
9451
9452  archive_cmds_need_lc=no
9453  hardcode_direct=no
9454  hardcode_automatic=yes
9455  hardcode_shlibpath_var=unsupported
9456  if test "$lt_cv_ld_force_load" = "yes"; then
9457    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\"`'
9458
9459  else
9460    whole_archive_flag_spec=''
9461  fi
9462  link_all_deplibs=yes
9463  allow_undefined_flag="$_lt_dar_allow_undefined"
9464  case $cc_basename in
9465     ifort*) _lt_dar_can_shared=yes ;;
9466     *) _lt_dar_can_shared=$GCC ;;
9467  esac
9468  if test "$_lt_dar_can_shared" = "yes"; then
9469    output_verbose_link_cmd=func_echo_all
9470    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9471    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9472    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}"
9473    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}"
9474
9475  else
9476  ld_shlibs=no
9477  fi
9478
9479      ;;
9480
9481    dgux*)
9482      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483      hardcode_libdir_flag_spec='-L$libdir'
9484      hardcode_shlibpath_var=no
9485      ;;
9486
9487    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9488    # support.  Future versions do this automatically, but an explicit c++rt0.o
9489    # does not break anything, and helps significantly (at the cost of a little
9490    # extra space).
9491    freebsd2.2*)
9492      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9493      hardcode_libdir_flag_spec='-R$libdir'
9494      hardcode_direct=yes
9495      hardcode_shlibpath_var=no
9496      ;;
9497
9498    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9499    freebsd2.*)
9500      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9501      hardcode_direct=yes
9502      hardcode_minus_L=yes
9503      hardcode_shlibpath_var=no
9504      ;;
9505
9506    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9507    freebsd* | dragonfly*)
9508      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9509      hardcode_libdir_flag_spec='-R$libdir'
9510      hardcode_direct=yes
9511      hardcode_shlibpath_var=no
9512      ;;
9513
9514    hpux9*)
9515      if test "$GCC" = yes; then
9516	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9517      else
9518	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9519      fi
9520      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521      hardcode_libdir_separator=:
9522      hardcode_direct=yes
9523
9524      # hardcode_minus_L: Not really in the search PATH,
9525      # but as the default location of the library.
9526      hardcode_minus_L=yes
9527      export_dynamic_flag_spec='${wl}-E'
9528      ;;
9529
9530    hpux10*)
9531      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9532	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9533      else
9534	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9535      fi
9536      if test "$with_gnu_ld" = no; then
9537	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9538	hardcode_libdir_separator=:
9539	hardcode_direct=yes
9540	hardcode_direct_absolute=yes
9541	export_dynamic_flag_spec='${wl}-E'
9542	# hardcode_minus_L: Not really in the search PATH,
9543	# but as the default location of the library.
9544	hardcode_minus_L=yes
9545      fi
9546      ;;
9547
9548    hpux11*)
9549      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9550	case $host_cpu in
9551	hppa*64*)
9552	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9553	  ;;
9554	ia64*)
9555	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9556	  ;;
9557	*)
9558	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9559	  ;;
9560	esac
9561      else
9562	case $host_cpu in
9563	hppa*64*)
9564	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9565	  ;;
9566	ia64*)
9567	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9568	  ;;
9569	*)
9570
9571	  # Older versions of the 11.00 compiler do not understand -b yet
9572	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9573	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9574$as_echo_n "checking if $CC understands -b... " >&6; }
9575if ${lt_cv_prog_compiler__b+:} false; then :
9576  $as_echo_n "(cached) " >&6
9577else
9578  lt_cv_prog_compiler__b=no
9579   save_LDFLAGS="$LDFLAGS"
9580   LDFLAGS="$LDFLAGS -b"
9581   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9582   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9583     # The linker can only warn and ignore the option if not recognized
9584     # So say no if there are warnings
9585     if test -s conftest.err; then
9586       # Append any errors to the config.log.
9587       cat conftest.err 1>&5
9588       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9589       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9590       if diff conftest.exp conftest.er2 >/dev/null; then
9591         lt_cv_prog_compiler__b=yes
9592       fi
9593     else
9594       lt_cv_prog_compiler__b=yes
9595     fi
9596   fi
9597   $RM -r conftest*
9598   LDFLAGS="$save_LDFLAGS"
9599
9600fi
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9602$as_echo "$lt_cv_prog_compiler__b" >&6; }
9603
9604if test x"$lt_cv_prog_compiler__b" = xyes; then
9605    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9606else
9607    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9608fi
9609
9610	  ;;
9611	esac
9612      fi
9613      if test "$with_gnu_ld" = no; then
9614	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9615	hardcode_libdir_separator=:
9616
9617	case $host_cpu in
9618	hppa*64*|ia64*)
9619	  hardcode_direct=no
9620	  hardcode_shlibpath_var=no
9621	  ;;
9622	*)
9623	  hardcode_direct=yes
9624	  hardcode_direct_absolute=yes
9625	  export_dynamic_flag_spec='${wl}-E'
9626
9627	  # hardcode_minus_L: Not really in the search PATH,
9628	  # but as the default location of the library.
9629	  hardcode_minus_L=yes
9630	  ;;
9631	esac
9632      fi
9633      ;;
9634
9635    irix5* | irix6* | nonstopux*)
9636      if test "$GCC" = yes; then
9637	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'
9638	# Try to use the -exported_symbol ld option, if it does not
9639	# work, assume that -exports_file does not work either and
9640	# implicitly export all symbols.
9641	# This should be the same for all languages, so no per-tag cache variable.
9642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9643$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9644if ${lt_cv_irix_exported_symbol+:} false; then :
9645  $as_echo_n "(cached) " >&6
9646else
9647  save_LDFLAGS="$LDFLAGS"
9648	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9649	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int foo (void) { return 0; }
9652_ACEOF
9653if ac_fn_c_try_link "$LINENO"; then :
9654  lt_cv_irix_exported_symbol=yes
9655else
9656  lt_cv_irix_exported_symbol=no
9657fi
9658rm -f core conftest.err conftest.$ac_objext \
9659    conftest$ac_exeext conftest.$ac_ext
9660           LDFLAGS="$save_LDFLAGS"
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9663$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9664	if test "$lt_cv_irix_exported_symbol" = yes; then
9665          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'
9666	fi
9667      else
9668	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'
9669	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'
9670      fi
9671      archive_cmds_need_lc='no'
9672      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673      hardcode_libdir_separator=:
9674      inherit_rpath=yes
9675      link_all_deplibs=yes
9676      ;;
9677
9678    netbsd*)
9679      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9680	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9681      else
9682	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9683      fi
9684      hardcode_libdir_flag_spec='-R$libdir'
9685      hardcode_direct=yes
9686      hardcode_shlibpath_var=no
9687      ;;
9688
9689    newsos6)
9690      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691      hardcode_direct=yes
9692      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9693      hardcode_libdir_separator=:
9694      hardcode_shlibpath_var=no
9695      ;;
9696
9697    *nto* | *qnx*)
9698      ;;
9699
9700    openbsd*)
9701      if test -f /usr/libexec/ld.so; then
9702	hardcode_direct=yes
9703	hardcode_shlibpath_var=no
9704	hardcode_direct_absolute=yes
9705	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9706	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9707	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9708	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9709	  export_dynamic_flag_spec='${wl}-E'
9710	else
9711	  case $host_os in
9712	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9713	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9714	     hardcode_libdir_flag_spec='-R$libdir'
9715	     ;;
9716	   *)
9717	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9718	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9719	     ;;
9720	  esac
9721	fi
9722      else
9723	ld_shlibs=no
9724      fi
9725      ;;
9726
9727    os2*)
9728      hardcode_libdir_flag_spec='-L$libdir'
9729      hardcode_minus_L=yes
9730      allow_undefined_flag=unsupported
9731      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9732      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9733      ;;
9734
9735    osf3*)
9736      if test "$GCC" = yes; then
9737	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9738	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'
9739      else
9740	allow_undefined_flag=' -expect_unresolved \*'
9741	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'
9742      fi
9743      archive_cmds_need_lc='no'
9744      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745      hardcode_libdir_separator=:
9746      ;;
9747
9748    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9749      if test "$GCC" = yes; then
9750	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9751	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'
9752	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9753      else
9754	allow_undefined_flag=' -expect_unresolved \*'
9755	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'
9756	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~
9757	$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'
9758
9759	# Both c and cxx compiler support -rpath directly
9760	hardcode_libdir_flag_spec='-rpath $libdir'
9761      fi
9762      archive_cmds_need_lc='no'
9763      hardcode_libdir_separator=:
9764      ;;
9765
9766    solaris*)
9767      no_undefined_flag=' -z defs'
9768      if test "$GCC" = yes; then
9769	wlarc='${wl}'
9770	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9772	  $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'
9773      else
9774	case `$CC -V 2>&1` in
9775	*"Compilers 5.0"*)
9776	  wlarc=''
9777	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9779	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9780	  ;;
9781	*)
9782	  wlarc='${wl}'
9783	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9784	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9785	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9786	  ;;
9787	esac
9788      fi
9789      hardcode_libdir_flag_spec='-R$libdir'
9790      hardcode_shlibpath_var=no
9791      case $host_os in
9792      solaris2.[0-5] | solaris2.[0-5].*) ;;
9793      *)
9794	# The compiler driver will combine and reorder linker options,
9795	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9796	# but is careful enough not to reorder.
9797	# Supported since Solaris 2.6 (maybe 2.5.1?)
9798	if test "$GCC" = yes; then
9799	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9800	else
9801	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9802	fi
9803	;;
9804      esac
9805      link_all_deplibs=yes
9806      ;;
9807
9808    sunos4*)
9809      if test "x$host_vendor" = xsequent; then
9810	# Use $CC to link under sequent, because it throws in some extra .o
9811	# files that make .init and .fini sections work.
9812	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9813      else
9814	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9815      fi
9816      hardcode_libdir_flag_spec='-L$libdir'
9817      hardcode_direct=yes
9818      hardcode_minus_L=yes
9819      hardcode_shlibpath_var=no
9820      ;;
9821
9822    sysv4)
9823      case $host_vendor in
9824	sni)
9825	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826	  hardcode_direct=yes # is this really true???
9827	;;
9828	siemens)
9829	  ## LD is ld it makes a PLAMLIB
9830	  ## CC just makes a GrossModule.
9831	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9832	  reload_cmds='$CC -r -o $output$reload_objs'
9833	  hardcode_direct=no
9834        ;;
9835	motorola)
9836	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9837	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9838	;;
9839      esac
9840      runpath_var='LD_RUN_PATH'
9841      hardcode_shlibpath_var=no
9842      ;;
9843
9844    sysv4.3*)
9845      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846      hardcode_shlibpath_var=no
9847      export_dynamic_flag_spec='-Bexport'
9848      ;;
9849
9850    sysv4*MP*)
9851      if test -d /usr/nec; then
9852	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853	hardcode_shlibpath_var=no
9854	runpath_var=LD_RUN_PATH
9855	hardcode_runpath_var=yes
9856	ld_shlibs=yes
9857      fi
9858      ;;
9859
9860    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9861      no_undefined_flag='${wl}-z,text'
9862      archive_cmds_need_lc=no
9863      hardcode_shlibpath_var=no
9864      runpath_var='LD_RUN_PATH'
9865
9866      if test "$GCC" = yes; then
9867	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9868	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9869      else
9870	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9871	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9872      fi
9873      ;;
9874
9875    sysv5* | sco3.2v5* | sco5v6*)
9876      # Note: We can NOT use -z defs as we might desire, because we do not
9877      # link with -lc, and that would cause any symbols used from libc to
9878      # always be unresolved, which means just about no library would
9879      # ever link correctly.  If we're not using GNU ld we use -z text
9880      # though, which does catch some bad symbols but isn't as heavy-handed
9881      # as -z defs.
9882      no_undefined_flag='${wl}-z,text'
9883      allow_undefined_flag='${wl}-z,nodefs'
9884      archive_cmds_need_lc=no
9885      hardcode_shlibpath_var=no
9886      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9887      hardcode_libdir_separator=':'
9888      link_all_deplibs=yes
9889      export_dynamic_flag_spec='${wl}-Bexport'
9890      runpath_var='LD_RUN_PATH'
9891
9892      if test "$GCC" = yes; then
9893	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9894	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9895      else
9896	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9897	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9898      fi
9899      ;;
9900
9901    uts4*)
9902      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903      hardcode_libdir_flag_spec='-L$libdir'
9904      hardcode_shlibpath_var=no
9905      ;;
9906
9907    *)
9908      ld_shlibs=no
9909      ;;
9910    esac
9911
9912    if test x$host_vendor = xsni; then
9913      case $host in
9914      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9915	export_dynamic_flag_spec='${wl}-Blargedynsym'
9916	;;
9917      esac
9918    fi
9919  fi
9920
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9922$as_echo "$ld_shlibs" >&6; }
9923test "$ld_shlibs" = no && can_build_shared=no
9924
9925with_gnu_ld=$with_gnu_ld
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941#
9942# Do we need to explicitly link libc?
9943#
9944case "x$archive_cmds_need_lc" in
9945x|xyes)
9946  # Assume -lc should be added
9947  archive_cmds_need_lc=yes
9948
9949  if test "$enable_shared" = yes && test "$GCC" = yes; then
9950    case $archive_cmds in
9951    *'~'*)
9952      # FIXME: we may have to deal with multi-command sequences.
9953      ;;
9954    '$CC '*)
9955      # Test whether the compiler implicitly links with -lc since on some
9956      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9957      # to ld, don't add -lc before -lgcc.
9958      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9959$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9960if ${lt_cv_archive_cmds_need_lc+:} false; then :
9961  $as_echo_n "(cached) " >&6
9962else
9963  $RM conftest*
9964	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9965
9966	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9967  (eval $ac_compile) 2>&5
9968  ac_status=$?
9969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9970  test $ac_status = 0; } 2>conftest.err; then
9971	  soname=conftest
9972	  lib=conftest
9973	  libobjs=conftest.$ac_objext
9974	  deplibs=
9975	  wl=$lt_prog_compiler_wl
9976	  pic_flag=$lt_prog_compiler_pic
9977	  compiler_flags=-v
9978	  linker_flags=-v
9979	  verstring=
9980	  output_objdir=.
9981	  libname=conftest
9982	  lt_save_allow_undefined_flag=$allow_undefined_flag
9983	  allow_undefined_flag=
9984	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9985  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9986  ac_status=$?
9987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9988  test $ac_status = 0; }
9989	  then
9990	    lt_cv_archive_cmds_need_lc=no
9991	  else
9992	    lt_cv_archive_cmds_need_lc=yes
9993	  fi
9994	  allow_undefined_flag=$lt_save_allow_undefined_flag
9995	else
9996	  cat conftest.err 1>&5
9997	fi
9998	$RM conftest*
9999
10000fi
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10002$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10003      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10004      ;;
10005    esac
10006  fi
10007  ;;
10008esac
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10162$as_echo_n "checking dynamic linker characteristics... " >&6; }
10163
10164if test "$GCC" = yes; then
10165  case $host_os in
10166    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10167    *) lt_awk_arg="/^libraries:/" ;;
10168  esac
10169  case $host_os in
10170    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10171    *) lt_sed_strip_eq="s,=/,/,g" ;;
10172  esac
10173  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10174  case $lt_search_path_spec in
10175  *\;*)
10176    # if the path contains ";" then we assume it to be the separator
10177    # otherwise default to the standard path separator (i.e. ":") - it is
10178    # assumed that no part of a normal pathname contains ";" but that should
10179    # okay in the real world where ";" in dirpaths is itself problematic.
10180    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10181    ;;
10182  *)
10183    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10184    ;;
10185  esac
10186  # Ok, now we have the path, separated by spaces, we can step through it
10187  # and add multilib dir if necessary.
10188  lt_tmp_lt_search_path_spec=
10189  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10190  for lt_sys_path in $lt_search_path_spec; do
10191    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10192      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10193    else
10194      test -d "$lt_sys_path" && \
10195	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10196    fi
10197  done
10198  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10199BEGIN {RS=" "; FS="/|\n";} {
10200  lt_foo="";
10201  lt_count=0;
10202  for (lt_i = NF; lt_i > 0; lt_i--) {
10203    if ($lt_i != "" && $lt_i != ".") {
10204      if ($lt_i == "..") {
10205        lt_count++;
10206      } else {
10207        if (lt_count == 0) {
10208          lt_foo="/" $lt_i lt_foo;
10209        } else {
10210          lt_count--;
10211        }
10212      }
10213    }
10214  }
10215  if (lt_foo != "") { lt_freq[lt_foo]++; }
10216  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10217}'`
10218  # AWK program above erroneously prepends '/' to C:/dos/paths
10219  # for these hosts.
10220  case $host_os in
10221    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10222      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10223  esac
10224  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10225else
10226  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10227fi
10228library_names_spec=
10229libname_spec='lib$name'
10230soname_spec=
10231shrext_cmds=".so"
10232postinstall_cmds=
10233postuninstall_cmds=
10234finish_cmds=
10235finish_eval=
10236shlibpath_var=
10237shlibpath_overrides_runpath=unknown
10238version_type=none
10239dynamic_linker="$host_os ld.so"
10240sys_lib_dlsearch_path_spec="/lib /usr/lib"
10241need_lib_prefix=unknown
10242hardcode_into_libs=no
10243
10244# when you set need_version to no, make sure it does not cause -set_version
10245# flags to be left without arguments
10246need_version=unknown
10247
10248case $host_os in
10249aix3*)
10250  version_type=linux # correct to gnu/linux during the next big refactor
10251  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10252  shlibpath_var=LIBPATH
10253
10254  # AIX 3 has no versioning support, so we append a major version to the name.
10255  soname_spec='${libname}${release}${shared_ext}$major'
10256  ;;
10257
10258aix[4-9]*)
10259  version_type=linux # correct to gnu/linux during the next big refactor
10260  need_lib_prefix=no
10261  need_version=no
10262  hardcode_into_libs=yes
10263  if test "$host_cpu" = ia64; then
10264    # AIX 5 supports IA64
10265    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10266    shlibpath_var=LD_LIBRARY_PATH
10267  else
10268    # With GCC up to 2.95.x, collect2 would create an import file
10269    # for dependence libraries.  The import file would start with
10270    # the line `#! .'.  This would cause the generated library to
10271    # depend on `.', always an invalid library.  This was fixed in
10272    # development snapshots of GCC prior to 3.0.
10273    case $host_os in
10274      aix4 | aix4.[01] | aix4.[01].*)
10275      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10276	   echo ' yes '
10277	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10278	:
10279      else
10280	can_build_shared=no
10281      fi
10282      ;;
10283    esac
10284    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10285    # soname into executable. Probably we can add versioning support to
10286    # collect2, so additional links can be useful in future.
10287    if test "$aix_use_runtimelinking" = yes; then
10288      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10289      # instead of lib<name>.a to let people know that these are not
10290      # typical AIX shared libraries.
10291      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292    else
10293      # We preserve .a as extension for shared libraries through AIX4.2
10294      # and later when we are not doing run time linking.
10295      library_names_spec='${libname}${release}.a $libname.a'
10296      soname_spec='${libname}${release}${shared_ext}$major'
10297    fi
10298    shlibpath_var=LIBPATH
10299  fi
10300  ;;
10301
10302amigaos*)
10303  case $host_cpu in
10304  powerpc)
10305    # Since July 2007 AmigaOS4 officially supports .so libraries.
10306    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10307    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308    ;;
10309  m68k)
10310    library_names_spec='$libname.ixlibrary $libname.a'
10311    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10312    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10313    ;;
10314  esac
10315  ;;
10316
10317beos*)
10318  library_names_spec='${libname}${shared_ext}'
10319  dynamic_linker="$host_os ld.so"
10320  shlibpath_var=LIBRARY_PATH
10321  ;;
10322
10323bsdi[45]*)
10324  version_type=linux # correct to gnu/linux during the next big refactor
10325  need_version=no
10326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327  soname_spec='${libname}${release}${shared_ext}$major'
10328  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10329  shlibpath_var=LD_LIBRARY_PATH
10330  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10331  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10332  # the default ld.so.conf also contains /usr/contrib/lib and
10333  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10334  # libtool to hard-code these into programs
10335  ;;
10336
10337cygwin* | mingw* | pw32* | cegcc*)
10338  version_type=windows
10339  shrext_cmds=".dll"
10340  need_version=no
10341  need_lib_prefix=no
10342
10343  case $GCC,$cc_basename in
10344  yes,*)
10345    # gcc
10346    library_names_spec='$libname.dll.a'
10347    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10348    postinstall_cmds='base_file=`basename \${file}`~
10349      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10350      dldir=$destdir/`dirname \$dlpath`~
10351      test -d \$dldir || mkdir -p \$dldir~
10352      $install_prog $dir/$dlname \$dldir/$dlname~
10353      chmod a+x \$dldir/$dlname~
10354      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10355        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10356      fi'
10357    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10358      dlpath=$dir/\$dldll~
10359       $RM \$dlpath'
10360    shlibpath_overrides_runpath=yes
10361
10362    case $host_os in
10363    cygwin*)
10364      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10365      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10366
10367      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10368      ;;
10369    mingw* | cegcc*)
10370      # MinGW DLLs use traditional 'lib' prefix
10371      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10372      ;;
10373    pw32*)
10374      # pw32 DLLs use 'pw' prefix rather than 'lib'
10375      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10376      ;;
10377    esac
10378    dynamic_linker='Win32 ld.exe'
10379    ;;
10380
10381  *,cl*)
10382    # Native MSVC
10383    libname_spec='$name'
10384    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10385    library_names_spec='${libname}.dll.lib'
10386
10387    case $build_os in
10388    mingw*)
10389      sys_lib_search_path_spec=
10390      lt_save_ifs=$IFS
10391      IFS=';'
10392      for lt_path in $LIB
10393      do
10394        IFS=$lt_save_ifs
10395        # Let DOS variable expansion print the short 8.3 style file name.
10396        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10397        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10398      done
10399      IFS=$lt_save_ifs
10400      # Convert to MSYS style.
10401      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10402      ;;
10403    cygwin*)
10404      # Convert to unix form, then to dos form, then back to unix form
10405      # but this time dos style (no spaces!) so that the unix form looks
10406      # like /cygdrive/c/PROGRA~1:/cygdr...
10407      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10408      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10409      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10410      ;;
10411    *)
10412      sys_lib_search_path_spec="$LIB"
10413      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10414        # It is most probably a Windows format PATH.
10415        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10416      else
10417        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10418      fi
10419      # FIXME: find the short name or the path components, as spaces are
10420      # common. (e.g. "Program Files" -> "PROGRA~1")
10421      ;;
10422    esac
10423
10424    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10425    postinstall_cmds='base_file=`basename \${file}`~
10426      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10427      dldir=$destdir/`dirname \$dlpath`~
10428      test -d \$dldir || mkdir -p \$dldir~
10429      $install_prog $dir/$dlname \$dldir/$dlname'
10430    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10431      dlpath=$dir/\$dldll~
10432       $RM \$dlpath'
10433    shlibpath_overrides_runpath=yes
10434    dynamic_linker='Win32 link.exe'
10435    ;;
10436
10437  *)
10438    # Assume MSVC wrapper
10439    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10440    dynamic_linker='Win32 ld.exe'
10441    ;;
10442  esac
10443  # FIXME: first we should search . and the directory the executable is in
10444  shlibpath_var=PATH
10445  ;;
10446
10447darwin* | rhapsody*)
10448  dynamic_linker="$host_os dyld"
10449  version_type=darwin
10450  need_lib_prefix=no
10451  need_version=no
10452  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10453  soname_spec='${libname}${release}${major}$shared_ext'
10454  shlibpath_overrides_runpath=yes
10455  shlibpath_var=DYLD_LIBRARY_PATH
10456  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10457
10458  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10459  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10460  ;;
10461
10462dgux*)
10463  version_type=linux # correct to gnu/linux during the next big refactor
10464  need_lib_prefix=no
10465  need_version=no
10466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10467  soname_spec='${libname}${release}${shared_ext}$major'
10468  shlibpath_var=LD_LIBRARY_PATH
10469  ;;
10470
10471freebsd* | dragonfly*)
10472  # DragonFly does not have aout.  When/if they implement a new
10473  # versioning mechanism, adjust this.
10474  if test -x /usr/bin/objformat; then
10475    objformat=`/usr/bin/objformat`
10476  else
10477    case $host_os in
10478    freebsd[23].*) objformat=aout ;;
10479    *) objformat=elf ;;
10480    esac
10481  fi
10482  version_type=freebsd-$objformat
10483  case $version_type in
10484    freebsd-elf*)
10485      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10486      need_version=no
10487      need_lib_prefix=no
10488      ;;
10489    freebsd-*)
10490      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10491      need_version=yes
10492      ;;
10493  esac
10494  shlibpath_var=LD_LIBRARY_PATH
10495  case $host_os in
10496  freebsd2.*)
10497    shlibpath_overrides_runpath=yes
10498    ;;
10499  freebsd3.[01]* | freebsdelf3.[01]*)
10500    shlibpath_overrides_runpath=yes
10501    hardcode_into_libs=yes
10502    ;;
10503  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10504  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10505    shlibpath_overrides_runpath=no
10506    hardcode_into_libs=yes
10507    ;;
10508  *) # from 4.6 on, and DragonFly
10509    shlibpath_overrides_runpath=yes
10510    hardcode_into_libs=yes
10511    ;;
10512  esac
10513  ;;
10514
10515gnu*)
10516  version_type=linux # correct to gnu/linux during the next big refactor
10517  need_lib_prefix=no
10518  need_version=no
10519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10520  soname_spec='${libname}${release}${shared_ext}$major'
10521  shlibpath_var=LD_LIBRARY_PATH
10522  shlibpath_overrides_runpath=no
10523  hardcode_into_libs=yes
10524  ;;
10525
10526haiku*)
10527  version_type=linux # correct to gnu/linux during the next big refactor
10528  need_lib_prefix=no
10529  need_version=no
10530  dynamic_linker="$host_os runtime_loader"
10531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10532  soname_spec='${libname}${release}${shared_ext}$major'
10533  shlibpath_var=LIBRARY_PATH
10534  shlibpath_overrides_runpath=yes
10535  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10536  hardcode_into_libs=yes
10537  ;;
10538
10539hpux9* | hpux10* | hpux11*)
10540  # Give a soname corresponding to the major version so that dld.sl refuses to
10541  # link against other versions.
10542  version_type=sunos
10543  need_lib_prefix=no
10544  need_version=no
10545  case $host_cpu in
10546  ia64*)
10547    shrext_cmds='.so'
10548    hardcode_into_libs=yes
10549    dynamic_linker="$host_os dld.so"
10550    shlibpath_var=LD_LIBRARY_PATH
10551    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10552    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553    soname_spec='${libname}${release}${shared_ext}$major'
10554    if test "X$HPUX_IA64_MODE" = X32; then
10555      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10556    else
10557      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10558    fi
10559    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10560    ;;
10561  hppa*64*)
10562    shrext_cmds='.sl'
10563    hardcode_into_libs=yes
10564    dynamic_linker="$host_os dld.sl"
10565    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10566    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10567    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568    soname_spec='${libname}${release}${shared_ext}$major'
10569    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10570    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10571    ;;
10572  *)
10573    shrext_cmds='.sl'
10574    dynamic_linker="$host_os dld.sl"
10575    shlibpath_var=SHLIB_PATH
10576    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10577    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578    soname_spec='${libname}${release}${shared_ext}$major'
10579    ;;
10580  esac
10581  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10582  postinstall_cmds='chmod 555 $lib'
10583  # or fails outright, so override atomically:
10584  install_override_mode=555
10585  ;;
10586
10587interix[3-9]*)
10588  version_type=linux # correct to gnu/linux during the next big refactor
10589  need_lib_prefix=no
10590  need_version=no
10591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10592  soname_spec='${libname}${release}${shared_ext}$major'
10593  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10594  shlibpath_var=LD_LIBRARY_PATH
10595  shlibpath_overrides_runpath=no
10596  hardcode_into_libs=yes
10597  ;;
10598
10599irix5* | irix6* | nonstopux*)
10600  case $host_os in
10601    nonstopux*) version_type=nonstopux ;;
10602    *)
10603	if test "$lt_cv_prog_gnu_ld" = yes; then
10604		version_type=linux # correct to gnu/linux during the next big refactor
10605	else
10606		version_type=irix
10607	fi ;;
10608  esac
10609  need_lib_prefix=no
10610  need_version=no
10611  soname_spec='${libname}${release}${shared_ext}$major'
10612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10613  case $host_os in
10614  irix5* | nonstopux*)
10615    libsuff= shlibsuff=
10616    ;;
10617  *)
10618    case $LD in # libtool.m4 will add one of these switches to LD
10619    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10620      libsuff= shlibsuff= libmagic=32-bit;;
10621    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10622      libsuff=32 shlibsuff=N32 libmagic=N32;;
10623    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10624      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10625    *) libsuff= shlibsuff= libmagic=never-match;;
10626    esac
10627    ;;
10628  esac
10629  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10630  shlibpath_overrides_runpath=no
10631  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10632  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10633  hardcode_into_libs=yes
10634  ;;
10635
10636# No shared lib support for Linux oldld, aout, or coff.
10637linux*oldld* | linux*aout* | linux*coff*)
10638  dynamic_linker=no
10639  ;;
10640
10641# This must be glibc/ELF.
10642linux* | k*bsd*-gnu | kopensolaris*-gnu)
10643  version_type=linux # correct to gnu/linux during the next big refactor
10644  need_lib_prefix=no
10645  need_version=no
10646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647  soname_spec='${libname}${release}${shared_ext}$major'
10648  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10649  shlibpath_var=LD_LIBRARY_PATH
10650  shlibpath_overrides_runpath=no
10651
10652  # Some binutils ld are patched to set DT_RUNPATH
10653  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10654  $as_echo_n "(cached) " >&6
10655else
10656  lt_cv_shlibpath_overrides_runpath=no
10657    save_LDFLAGS=$LDFLAGS
10658    save_libdir=$libdir
10659    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10660	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10661    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h.  */
10663
10664int
10665main ()
10666{
10667
10668  ;
10669  return 0;
10670}
10671_ACEOF
10672if ac_fn_c_try_link "$LINENO"; then :
10673  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10674  lt_cv_shlibpath_overrides_runpath=yes
10675fi
10676fi
10677rm -f core conftest.err conftest.$ac_objext \
10678    conftest$ac_exeext conftest.$ac_ext
10679    LDFLAGS=$save_LDFLAGS
10680    libdir=$save_libdir
10681
10682fi
10683
10684  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10685
10686  # This implies no fast_install, which is unacceptable.
10687  # Some rework will be needed to allow for fast_install
10688  # before this can be enabled.
10689  hardcode_into_libs=yes
10690
10691  # Append ld.so.conf contents to the search path
10692  if test -f /etc/ld.so.conf; then
10693    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' ' '`
10694    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10695  fi
10696
10697  # We used to test for /lib/ld.so.1 and disable shared libraries on
10698  # powerpc, because MkLinux only supported shared libraries with the
10699  # GNU dynamic linker.  Since this was broken with cross compilers,
10700  # most powerpc-linux boxes support dynamic linking these days and
10701  # people can always --disable-shared, the test was removed, and we
10702  # assume the GNU/Linux dynamic linker is in use.
10703  dynamic_linker='GNU/Linux ld.so'
10704  ;;
10705
10706netbsd*)
10707  version_type=sunos
10708  need_lib_prefix=no
10709  need_version=no
10710  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10711    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10712    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10713    dynamic_linker='NetBSD (a.out) ld.so'
10714  else
10715    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10716    soname_spec='${libname}${release}${shared_ext}$major'
10717    dynamic_linker='NetBSD ld.elf_so'
10718  fi
10719  shlibpath_var=LD_LIBRARY_PATH
10720  shlibpath_overrides_runpath=yes
10721  hardcode_into_libs=yes
10722  ;;
10723
10724newsos6)
10725  version_type=linux # correct to gnu/linux during the next big refactor
10726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727  shlibpath_var=LD_LIBRARY_PATH
10728  shlibpath_overrides_runpath=yes
10729  ;;
10730
10731*nto* | *qnx*)
10732  version_type=qnx
10733  need_lib_prefix=no
10734  need_version=no
10735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736  soname_spec='${libname}${release}${shared_ext}$major'
10737  shlibpath_var=LD_LIBRARY_PATH
10738  shlibpath_overrides_runpath=no
10739  hardcode_into_libs=yes
10740  dynamic_linker='ldqnx.so'
10741  ;;
10742
10743openbsd*)
10744  version_type=sunos
10745  sys_lib_dlsearch_path_spec="/usr/lib"
10746  need_lib_prefix=no
10747  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10748  case $host_os in
10749    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10750    *)				need_version=no  ;;
10751  esac
10752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10753  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10754  shlibpath_var=LD_LIBRARY_PATH
10755  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10756    case $host_os in
10757      openbsd2.[89] | openbsd2.[89].*)
10758	shlibpath_overrides_runpath=no
10759	;;
10760      *)
10761	shlibpath_overrides_runpath=yes
10762	;;
10763      esac
10764  else
10765    shlibpath_overrides_runpath=yes
10766  fi
10767  ;;
10768
10769os2*)
10770  libname_spec='$name'
10771  shrext_cmds=".dll"
10772  need_lib_prefix=no
10773  library_names_spec='$libname${shared_ext} $libname.a'
10774  dynamic_linker='OS/2 ld.exe'
10775  shlibpath_var=LIBPATH
10776  ;;
10777
10778osf3* | osf4* | osf5*)
10779  version_type=osf
10780  need_lib_prefix=no
10781  need_version=no
10782  soname_spec='${libname}${release}${shared_ext}$major'
10783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784  shlibpath_var=LD_LIBRARY_PATH
10785  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10786  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10787  ;;
10788
10789rdos*)
10790  dynamic_linker=no
10791  ;;
10792
10793solaris*)
10794  version_type=linux # correct to gnu/linux during the next big refactor
10795  need_lib_prefix=no
10796  need_version=no
10797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798  soname_spec='${libname}${release}${shared_ext}$major'
10799  shlibpath_var=LD_LIBRARY_PATH
10800  shlibpath_overrides_runpath=yes
10801  hardcode_into_libs=yes
10802  # ldd complains unless libraries are executable
10803  postinstall_cmds='chmod +x $lib'
10804  ;;
10805
10806sunos4*)
10807  version_type=sunos
10808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10809  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10810  shlibpath_var=LD_LIBRARY_PATH
10811  shlibpath_overrides_runpath=yes
10812  if test "$with_gnu_ld" = yes; then
10813    need_lib_prefix=no
10814  fi
10815  need_version=yes
10816  ;;
10817
10818sysv4 | sysv4.3*)
10819  version_type=linux # correct to gnu/linux during the next big refactor
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  shlibpath_var=LD_LIBRARY_PATH
10823  case $host_vendor in
10824    sni)
10825      shlibpath_overrides_runpath=no
10826      need_lib_prefix=no
10827      runpath_var=LD_RUN_PATH
10828      ;;
10829    siemens)
10830      need_lib_prefix=no
10831      ;;
10832    motorola)
10833      need_lib_prefix=no
10834      need_version=no
10835      shlibpath_overrides_runpath=no
10836      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10837      ;;
10838  esac
10839  ;;
10840
10841sysv4*MP*)
10842  if test -d /usr/nec ;then
10843    version_type=linux # correct to gnu/linux during the next big refactor
10844    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10845    soname_spec='$libname${shared_ext}.$major'
10846    shlibpath_var=LD_LIBRARY_PATH
10847  fi
10848  ;;
10849
10850sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10851  version_type=freebsd-elf
10852  need_lib_prefix=no
10853  need_version=no
10854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10855  soname_spec='${libname}${release}${shared_ext}$major'
10856  shlibpath_var=LD_LIBRARY_PATH
10857  shlibpath_overrides_runpath=yes
10858  hardcode_into_libs=yes
10859  if test "$with_gnu_ld" = yes; then
10860    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10861  else
10862    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10863    case $host_os in
10864      sco3.2v5*)
10865        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10866	;;
10867    esac
10868  fi
10869  sys_lib_dlsearch_path_spec='/usr/lib'
10870  ;;
10871
10872tpf*)
10873  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10874  version_type=linux # correct to gnu/linux during the next big refactor
10875  need_lib_prefix=no
10876  need_version=no
10877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878  shlibpath_var=LD_LIBRARY_PATH
10879  shlibpath_overrides_runpath=no
10880  hardcode_into_libs=yes
10881  ;;
10882
10883uts4*)
10884  version_type=linux # correct to gnu/linux during the next big refactor
10885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886  soname_spec='${libname}${release}${shared_ext}$major'
10887  shlibpath_var=LD_LIBRARY_PATH
10888  ;;
10889
10890*)
10891  dynamic_linker=no
10892  ;;
10893esac
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10895$as_echo "$dynamic_linker" >&6; }
10896test "$dynamic_linker" = no && can_build_shared=no
10897
10898variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10899if test "$GCC" = yes; then
10900  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10901fi
10902
10903if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10904  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10905fi
10906if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10907  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10908fi
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11002$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11003hardcode_action=
11004if test -n "$hardcode_libdir_flag_spec" ||
11005   test -n "$runpath_var" ||
11006   test "X$hardcode_automatic" = "Xyes" ; then
11007
11008  # We can hardcode non-existent directories.
11009  if test "$hardcode_direct" != no &&
11010     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11011     # have to relink, otherwise we might link with an installed library
11012     # when we should be linking with a yet-to-be-installed one
11013     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11014     test "$hardcode_minus_L" != no; then
11015    # Linking always hardcodes the temporary library directory.
11016    hardcode_action=relink
11017  else
11018    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11019    hardcode_action=immediate
11020  fi
11021else
11022  # We cannot hardcode anything, or else we can only hardcode existing
11023  # directories.
11024  hardcode_action=unsupported
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11027$as_echo "$hardcode_action" >&6; }
11028
11029if test "$hardcode_action" = relink ||
11030   test "$inherit_rpath" = yes; then
11031  # Fast installation is not supported
11032  enable_fast_install=no
11033elif test "$shlibpath_overrides_runpath" = yes ||
11034     test "$enable_shared" = no; then
11035  # Fast installation is not necessary
11036  enable_fast_install=needless
11037fi
11038
11039
11040
11041
11042
11043
11044  if test "x$enable_dlopen" != xyes; then
11045  enable_dlopen=unknown
11046  enable_dlopen_self=unknown
11047  enable_dlopen_self_static=unknown
11048else
11049  lt_cv_dlopen=no
11050  lt_cv_dlopen_libs=
11051
11052  case $host_os in
11053  beos*)
11054    lt_cv_dlopen="load_add_on"
11055    lt_cv_dlopen_libs=
11056    lt_cv_dlopen_self=yes
11057    ;;
11058
11059  mingw* | pw32* | cegcc*)
11060    lt_cv_dlopen="LoadLibrary"
11061    lt_cv_dlopen_libs=
11062    ;;
11063
11064  cygwin*)
11065    lt_cv_dlopen="dlopen"
11066    lt_cv_dlopen_libs=
11067    ;;
11068
11069  darwin*)
11070  # if libdl is installed we need to link against it
11071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11072$as_echo_n "checking for dlopen in -ldl... " >&6; }
11073if ${ac_cv_lib_dl_dlopen+:} false; then :
11074  $as_echo_n "(cached) " >&6
11075else
11076  ac_check_lib_save_LIBS=$LIBS
11077LIBS="-ldl  $LIBS"
11078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079/* end confdefs.h.  */
11080
11081/* Override any GCC internal prototype to avoid an error.
11082   Use char because int might match the return type of a GCC
11083   builtin and then its argument prototype would still apply.  */
11084#ifdef __cplusplus
11085extern "C"
11086#endif
11087char dlopen ();
11088int
11089main ()
11090{
11091return dlopen ();
11092  ;
11093  return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_link "$LINENO"; then :
11097  ac_cv_lib_dl_dlopen=yes
11098else
11099  ac_cv_lib_dl_dlopen=no
11100fi
11101rm -f core conftest.err conftest.$ac_objext \
11102    conftest$ac_exeext conftest.$ac_ext
11103LIBS=$ac_check_lib_save_LIBS
11104fi
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11106$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11107if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11108  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11109else
11110
11111    lt_cv_dlopen="dyld"
11112    lt_cv_dlopen_libs=
11113    lt_cv_dlopen_self=yes
11114
11115fi
11116
11117    ;;
11118
11119  *)
11120    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11121if test "x$ac_cv_func_shl_load" = xyes; then :
11122  lt_cv_dlopen="shl_load"
11123else
11124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11125$as_echo_n "checking for shl_load in -ldld... " >&6; }
11126if ${ac_cv_lib_dld_shl_load+:} false; then :
11127  $as_echo_n "(cached) " >&6
11128else
11129  ac_check_lib_save_LIBS=$LIBS
11130LIBS="-ldld  $LIBS"
11131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132/* end confdefs.h.  */
11133
11134/* Override any GCC internal prototype to avoid an error.
11135   Use char because int might match the return type of a GCC
11136   builtin and then its argument prototype would still apply.  */
11137#ifdef __cplusplus
11138extern "C"
11139#endif
11140char shl_load ();
11141int
11142main ()
11143{
11144return shl_load ();
11145  ;
11146  return 0;
11147}
11148_ACEOF
11149if ac_fn_c_try_link "$LINENO"; then :
11150  ac_cv_lib_dld_shl_load=yes
11151else
11152  ac_cv_lib_dld_shl_load=no
11153fi
11154rm -f core conftest.err conftest.$ac_objext \
11155    conftest$ac_exeext conftest.$ac_ext
11156LIBS=$ac_check_lib_save_LIBS
11157fi
11158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11159$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11160if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11161  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11162else
11163  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11164if test "x$ac_cv_func_dlopen" = xyes; then :
11165  lt_cv_dlopen="dlopen"
11166else
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11168$as_echo_n "checking for dlopen in -ldl... " >&6; }
11169if ${ac_cv_lib_dl_dlopen+:} false; then :
11170  $as_echo_n "(cached) " >&6
11171else
11172  ac_check_lib_save_LIBS=$LIBS
11173LIBS="-ldl  $LIBS"
11174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175/* end confdefs.h.  */
11176
11177/* Override any GCC internal prototype to avoid an error.
11178   Use char because int might match the return type of a GCC
11179   builtin and then its argument prototype would still apply.  */
11180#ifdef __cplusplus
11181extern "C"
11182#endif
11183char dlopen ();
11184int
11185main ()
11186{
11187return dlopen ();
11188  ;
11189  return 0;
11190}
11191_ACEOF
11192if ac_fn_c_try_link "$LINENO"; then :
11193  ac_cv_lib_dl_dlopen=yes
11194else
11195  ac_cv_lib_dl_dlopen=no
11196fi
11197rm -f core conftest.err conftest.$ac_objext \
11198    conftest$ac_exeext conftest.$ac_ext
11199LIBS=$ac_check_lib_save_LIBS
11200fi
11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11202$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11203if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11204  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11205else
11206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11207$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11208if ${ac_cv_lib_svld_dlopen+:} false; then :
11209  $as_echo_n "(cached) " >&6
11210else
11211  ac_check_lib_save_LIBS=$LIBS
11212LIBS="-lsvld  $LIBS"
11213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214/* end confdefs.h.  */
11215
11216/* Override any GCC internal prototype to avoid an error.
11217   Use char because int might match the return type of a GCC
11218   builtin and then its argument prototype would still apply.  */
11219#ifdef __cplusplus
11220extern "C"
11221#endif
11222char dlopen ();
11223int
11224main ()
11225{
11226return dlopen ();
11227  ;
11228  return 0;
11229}
11230_ACEOF
11231if ac_fn_c_try_link "$LINENO"; then :
11232  ac_cv_lib_svld_dlopen=yes
11233else
11234  ac_cv_lib_svld_dlopen=no
11235fi
11236rm -f core conftest.err conftest.$ac_objext \
11237    conftest$ac_exeext conftest.$ac_ext
11238LIBS=$ac_check_lib_save_LIBS
11239fi
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11241$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11242if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11243  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11244else
11245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11246$as_echo_n "checking for dld_link in -ldld... " >&6; }
11247if ${ac_cv_lib_dld_dld_link+:} false; then :
11248  $as_echo_n "(cached) " >&6
11249else
11250  ac_check_lib_save_LIBS=$LIBS
11251LIBS="-ldld  $LIBS"
11252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253/* end confdefs.h.  */
11254
11255/* Override any GCC internal prototype to avoid an error.
11256   Use char because int might match the return type of a GCC
11257   builtin and then its argument prototype would still apply.  */
11258#ifdef __cplusplus
11259extern "C"
11260#endif
11261char dld_link ();
11262int
11263main ()
11264{
11265return dld_link ();
11266  ;
11267  return 0;
11268}
11269_ACEOF
11270if ac_fn_c_try_link "$LINENO"; then :
11271  ac_cv_lib_dld_dld_link=yes
11272else
11273  ac_cv_lib_dld_dld_link=no
11274fi
11275rm -f core conftest.err conftest.$ac_objext \
11276    conftest$ac_exeext conftest.$ac_ext
11277LIBS=$ac_check_lib_save_LIBS
11278fi
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11280$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11281if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11282  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11283fi
11284
11285
11286fi
11287
11288
11289fi
11290
11291
11292fi
11293
11294
11295fi
11296
11297
11298fi
11299
11300    ;;
11301  esac
11302
11303  if test "x$lt_cv_dlopen" != xno; then
11304    enable_dlopen=yes
11305  else
11306    enable_dlopen=no
11307  fi
11308
11309  case $lt_cv_dlopen in
11310  dlopen)
11311    save_CPPFLAGS="$CPPFLAGS"
11312    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11313
11314    save_LDFLAGS="$LDFLAGS"
11315    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11316
11317    save_LIBS="$LIBS"
11318    LIBS="$lt_cv_dlopen_libs $LIBS"
11319
11320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11321$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11322if ${lt_cv_dlopen_self+:} false; then :
11323  $as_echo_n "(cached) " >&6
11324else
11325  	  if test "$cross_compiling" = yes; then :
11326  lt_cv_dlopen_self=cross
11327else
11328  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11329  lt_status=$lt_dlunknown
11330  cat > conftest.$ac_ext <<_LT_EOF
11331#line $LINENO "configure"
11332#include "confdefs.h"
11333
11334#if HAVE_DLFCN_H
11335#include <dlfcn.h>
11336#endif
11337
11338#include <stdio.h>
11339
11340#ifdef RTLD_GLOBAL
11341#  define LT_DLGLOBAL		RTLD_GLOBAL
11342#else
11343#  ifdef DL_GLOBAL
11344#    define LT_DLGLOBAL		DL_GLOBAL
11345#  else
11346#    define LT_DLGLOBAL		0
11347#  endif
11348#endif
11349
11350/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11351   find out it does not work in some platform. */
11352#ifndef LT_DLLAZY_OR_NOW
11353#  ifdef RTLD_LAZY
11354#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11355#  else
11356#    ifdef DL_LAZY
11357#      define LT_DLLAZY_OR_NOW		DL_LAZY
11358#    else
11359#      ifdef RTLD_NOW
11360#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11361#      else
11362#        ifdef DL_NOW
11363#          define LT_DLLAZY_OR_NOW	DL_NOW
11364#        else
11365#          define LT_DLLAZY_OR_NOW	0
11366#        endif
11367#      endif
11368#    endif
11369#  endif
11370#endif
11371
11372/* When -fvisbility=hidden is used, assume the code has been annotated
11373   correspondingly for the symbols needed.  */
11374#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11375int fnord () __attribute__((visibility("default")));
11376#endif
11377
11378int fnord () { return 42; }
11379int main ()
11380{
11381  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11382  int status = $lt_dlunknown;
11383
11384  if (self)
11385    {
11386      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11387      else
11388        {
11389	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11390          else puts (dlerror ());
11391	}
11392      /* dlclose (self); */
11393    }
11394  else
11395    puts (dlerror ());
11396
11397  return status;
11398}
11399_LT_EOF
11400  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11401  (eval $ac_link) 2>&5
11402  ac_status=$?
11403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11404  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11405    (./conftest; exit; ) >&5 2>/dev/null
11406    lt_status=$?
11407    case x$lt_status in
11408      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11409      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11410      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11411    esac
11412  else :
11413    # compilation failed
11414    lt_cv_dlopen_self=no
11415  fi
11416fi
11417rm -fr conftest*
11418
11419
11420fi
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11422$as_echo "$lt_cv_dlopen_self" >&6; }
11423
11424    if test "x$lt_cv_dlopen_self" = xyes; then
11425      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11426      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11427$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11428if ${lt_cv_dlopen_self_static+:} false; then :
11429  $as_echo_n "(cached) " >&6
11430else
11431  	  if test "$cross_compiling" = yes; then :
11432  lt_cv_dlopen_self_static=cross
11433else
11434  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11435  lt_status=$lt_dlunknown
11436  cat > conftest.$ac_ext <<_LT_EOF
11437#line $LINENO "configure"
11438#include "confdefs.h"
11439
11440#if HAVE_DLFCN_H
11441#include <dlfcn.h>
11442#endif
11443
11444#include <stdio.h>
11445
11446#ifdef RTLD_GLOBAL
11447#  define LT_DLGLOBAL		RTLD_GLOBAL
11448#else
11449#  ifdef DL_GLOBAL
11450#    define LT_DLGLOBAL		DL_GLOBAL
11451#  else
11452#    define LT_DLGLOBAL		0
11453#  endif
11454#endif
11455
11456/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11457   find out it does not work in some platform. */
11458#ifndef LT_DLLAZY_OR_NOW
11459#  ifdef RTLD_LAZY
11460#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11461#  else
11462#    ifdef DL_LAZY
11463#      define LT_DLLAZY_OR_NOW		DL_LAZY
11464#    else
11465#      ifdef RTLD_NOW
11466#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11467#      else
11468#        ifdef DL_NOW
11469#          define LT_DLLAZY_OR_NOW	DL_NOW
11470#        else
11471#          define LT_DLLAZY_OR_NOW	0
11472#        endif
11473#      endif
11474#    endif
11475#  endif
11476#endif
11477
11478/* When -fvisbility=hidden is used, assume the code has been annotated
11479   correspondingly for the symbols needed.  */
11480#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11481int fnord () __attribute__((visibility("default")));
11482#endif
11483
11484int fnord () { return 42; }
11485int main ()
11486{
11487  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11488  int status = $lt_dlunknown;
11489
11490  if (self)
11491    {
11492      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11493      else
11494        {
11495	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11496          else puts (dlerror ());
11497	}
11498      /* dlclose (self); */
11499    }
11500  else
11501    puts (dlerror ());
11502
11503  return status;
11504}
11505_LT_EOF
11506  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11507  (eval $ac_link) 2>&5
11508  ac_status=$?
11509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11510  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11511    (./conftest; exit; ) >&5 2>/dev/null
11512    lt_status=$?
11513    case x$lt_status in
11514      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11515      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11516      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11517    esac
11518  else :
11519    # compilation failed
11520    lt_cv_dlopen_self_static=no
11521  fi
11522fi
11523rm -fr conftest*
11524
11525
11526fi
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11528$as_echo "$lt_cv_dlopen_self_static" >&6; }
11529    fi
11530
11531    CPPFLAGS="$save_CPPFLAGS"
11532    LDFLAGS="$save_LDFLAGS"
11533    LIBS="$save_LIBS"
11534    ;;
11535  esac
11536
11537  case $lt_cv_dlopen_self in
11538  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11539  *) enable_dlopen_self=unknown ;;
11540  esac
11541
11542  case $lt_cv_dlopen_self_static in
11543  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11544  *) enable_dlopen_self_static=unknown ;;
11545  esac
11546fi
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564striplib=
11565old_striplib=
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11567$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11568if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11569  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11570  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572$as_echo "yes" >&6; }
11573else
11574# FIXME - insert some real tests, host_os isn't really good enough
11575  case $host_os in
11576  darwin*)
11577    if test -n "$STRIP" ; then
11578      striplib="$STRIP -x"
11579      old_striplib="$STRIP -S"
11580      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11581$as_echo "yes" >&6; }
11582    else
11583      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584$as_echo "no" >&6; }
11585    fi
11586    ;;
11587  *)
11588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589$as_echo "no" >&6; }
11590    ;;
11591  esac
11592fi
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605  # Report which library types will actually be built
11606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11607$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11609$as_echo "$can_build_shared" >&6; }
11610
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11612$as_echo_n "checking whether to build shared libraries... " >&6; }
11613  test "$can_build_shared" = "no" && enable_shared=no
11614
11615  # On AIX, shared libraries and static libraries use the same namespace, and
11616  # are all built from PIC.
11617  case $host_os in
11618  aix3*)
11619    test "$enable_shared" = yes && enable_static=no
11620    if test -n "$RANLIB"; then
11621      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11622      postinstall_cmds='$RANLIB $lib'
11623    fi
11624    ;;
11625
11626  aix[4-9]*)
11627    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11628      test "$enable_shared" = yes && enable_static=no
11629    fi
11630    ;;
11631  esac
11632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11633$as_echo "$enable_shared" >&6; }
11634
11635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11636$as_echo_n "checking whether to build static libraries... " >&6; }
11637  # Make sure either enable_shared or enable_static is yes.
11638  test "$enable_shared" = yes || enable_static=yes
11639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11640$as_echo "$enable_static" >&6; }
11641
11642
11643
11644
11645fi
11646ac_ext=c
11647ac_cpp='$CPP $CPPFLAGS'
11648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11650ac_compiler_gnu=$ac_cv_c_compiler_gnu
11651
11652CC="$lt_save_CC"
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668        ac_config_commands="$ac_config_commands libtool"
11669
11670
11671
11672
11673# Only expand once:
11674
11675
11676
11677# Checks for programs.
11678ac_ext=c
11679ac_cpp='$CPP $CPPFLAGS'
11680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682ac_compiler_gnu=$ac_cv_c_compiler_gnu
11683if test -n "$ac_tool_prefix"; then
11684  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11685set dummy ${ac_tool_prefix}gcc; ac_word=$2
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687$as_echo_n "checking for $ac_word... " >&6; }
11688if ${ac_cv_prog_CC+:} false; then :
11689  $as_echo_n "(cached) " >&6
11690else
11691  if test -n "$CC"; then
11692  ac_cv_prog_CC="$CC" # Let the user override the test.
11693else
11694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695for as_dir in $PATH
11696do
11697  IFS=$as_save_IFS
11698  test -z "$as_dir" && as_dir=.
11699    for ac_exec_ext in '' $ac_executable_extensions; do
11700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11701    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11703    break 2
11704  fi
11705done
11706  done
11707IFS=$as_save_IFS
11708
11709fi
11710fi
11711CC=$ac_cv_prog_CC
11712if test -n "$CC"; then
11713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11714$as_echo "$CC" >&6; }
11715else
11716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717$as_echo "no" >&6; }
11718fi
11719
11720
11721fi
11722if test -z "$ac_cv_prog_CC"; then
11723  ac_ct_CC=$CC
11724  # Extract the first word of "gcc", so it can be a program name with args.
11725set dummy gcc; ac_word=$2
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727$as_echo_n "checking for $ac_word... " >&6; }
11728if ${ac_cv_prog_ac_ct_CC+:} false; then :
11729  $as_echo_n "(cached) " >&6
11730else
11731  if test -n "$ac_ct_CC"; then
11732  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11733else
11734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735for as_dir in $PATH
11736do
11737  IFS=$as_save_IFS
11738  test -z "$as_dir" && as_dir=.
11739    for ac_exec_ext in '' $ac_executable_extensions; do
11740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11741    ac_cv_prog_ac_ct_CC="gcc"
11742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743    break 2
11744  fi
11745done
11746  done
11747IFS=$as_save_IFS
11748
11749fi
11750fi
11751ac_ct_CC=$ac_cv_prog_ac_ct_CC
11752if test -n "$ac_ct_CC"; then
11753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11754$as_echo "$ac_ct_CC" >&6; }
11755else
11756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757$as_echo "no" >&6; }
11758fi
11759
11760  if test "x$ac_ct_CC" = x; then
11761    CC=""
11762  else
11763    case $cross_compiling:$ac_tool_warned in
11764yes:)
11765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11767ac_tool_warned=yes ;;
11768esac
11769    CC=$ac_ct_CC
11770  fi
11771else
11772  CC="$ac_cv_prog_CC"
11773fi
11774
11775if test -z "$CC"; then
11776          if test -n "$ac_tool_prefix"; then
11777    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11778set dummy ${ac_tool_prefix}cc; ac_word=$2
11779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780$as_echo_n "checking for $ac_word... " >&6; }
11781if ${ac_cv_prog_CC+:} false; then :
11782  $as_echo_n "(cached) " >&6
11783else
11784  if test -n "$CC"; then
11785  ac_cv_prog_CC="$CC" # Let the user override the test.
11786else
11787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788for as_dir in $PATH
11789do
11790  IFS=$as_save_IFS
11791  test -z "$as_dir" && as_dir=.
11792    for ac_exec_ext in '' $ac_executable_extensions; do
11793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794    ac_cv_prog_CC="${ac_tool_prefix}cc"
11795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796    break 2
11797  fi
11798done
11799  done
11800IFS=$as_save_IFS
11801
11802fi
11803fi
11804CC=$ac_cv_prog_CC
11805if test -n "$CC"; then
11806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11807$as_echo "$CC" >&6; }
11808else
11809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
11811fi
11812
11813
11814  fi
11815fi
11816if test -z "$CC"; then
11817  # Extract the first word of "cc", so it can be a program name with args.
11818set dummy cc; ac_word=$2
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820$as_echo_n "checking for $ac_word... " >&6; }
11821if ${ac_cv_prog_CC+:} false; then :
11822  $as_echo_n "(cached) " >&6
11823else
11824  if test -n "$CC"; then
11825  ac_cv_prog_CC="$CC" # Let the user override the test.
11826else
11827  ac_prog_rejected=no
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831  IFS=$as_save_IFS
11832  test -z "$as_dir" && as_dir=.
11833    for ac_exec_ext in '' $ac_executable_extensions; do
11834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11836       ac_prog_rejected=yes
11837       continue
11838     fi
11839    ac_cv_prog_CC="cc"
11840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841    break 2
11842  fi
11843done
11844  done
11845IFS=$as_save_IFS
11846
11847if test $ac_prog_rejected = yes; then
11848  # We found a bogon in the path, so make sure we never use it.
11849  set dummy $ac_cv_prog_CC
11850  shift
11851  if test $# != 0; then
11852    # We chose a different compiler from the bogus one.
11853    # However, it has the same basename, so the bogon will be chosen
11854    # first if we set CC to just the basename; use the full file name.
11855    shift
11856    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11857  fi
11858fi
11859fi
11860fi
11861CC=$ac_cv_prog_CC
11862if test -n "$CC"; then
11863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11864$as_echo "$CC" >&6; }
11865else
11866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867$as_echo "no" >&6; }
11868fi
11869
11870
11871fi
11872if test -z "$CC"; then
11873  if test -n "$ac_tool_prefix"; then
11874  for ac_prog in cl.exe
11875  do
11876    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879$as_echo_n "checking for $ac_word... " >&6; }
11880if ${ac_cv_prog_CC+:} false; then :
11881  $as_echo_n "(cached) " >&6
11882else
11883  if test -n "$CC"; then
11884  ac_cv_prog_CC="$CC" # Let the user override the test.
11885else
11886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887for as_dir in $PATH
11888do
11889  IFS=$as_save_IFS
11890  test -z "$as_dir" && as_dir=.
11891    for ac_exec_ext in '' $ac_executable_extensions; do
11892  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895    break 2
11896  fi
11897done
11898  done
11899IFS=$as_save_IFS
11900
11901fi
11902fi
11903CC=$ac_cv_prog_CC
11904if test -n "$CC"; then
11905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11906$as_echo "$CC" >&6; }
11907else
11908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909$as_echo "no" >&6; }
11910fi
11911
11912
11913    test -n "$CC" && break
11914  done
11915fi
11916if test -z "$CC"; then
11917  ac_ct_CC=$CC
11918  for ac_prog in cl.exe
11919do
11920  # Extract the first word of "$ac_prog", so it can be a program name with args.
11921set dummy $ac_prog; ac_word=$2
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923$as_echo_n "checking for $ac_word... " >&6; }
11924if ${ac_cv_prog_ac_ct_CC+:} false; then :
11925  $as_echo_n "(cached) " >&6
11926else
11927  if test -n "$ac_ct_CC"; then
11928  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11929else
11930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931for as_dir in $PATH
11932do
11933  IFS=$as_save_IFS
11934  test -z "$as_dir" && as_dir=.
11935    for ac_exec_ext in '' $ac_executable_extensions; do
11936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11937    ac_cv_prog_ac_ct_CC="$ac_prog"
11938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939    break 2
11940  fi
11941done
11942  done
11943IFS=$as_save_IFS
11944
11945fi
11946fi
11947ac_ct_CC=$ac_cv_prog_ac_ct_CC
11948if test -n "$ac_ct_CC"; then
11949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11950$as_echo "$ac_ct_CC" >&6; }
11951else
11952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953$as_echo "no" >&6; }
11954fi
11955
11956
11957  test -n "$ac_ct_CC" && break
11958done
11959
11960  if test "x$ac_ct_CC" = x; then
11961    CC=""
11962  else
11963    case $cross_compiling:$ac_tool_warned in
11964yes:)
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11967ac_tool_warned=yes ;;
11968esac
11969    CC=$ac_ct_CC
11970  fi
11971fi
11972
11973fi
11974
11975
11976test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11978as_fn_error $? "no acceptable C compiler found in \$PATH
11979See \`config.log' for more details" "$LINENO" 5; }
11980
11981# Provide some information about the compiler.
11982$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11983set X $ac_compile
11984ac_compiler=$2
11985for ac_option in --version -v -V -qversion; do
11986  { { ac_try="$ac_compiler $ac_option >&5"
11987case "(($ac_try" in
11988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989  *) ac_try_echo=$ac_try;;
11990esac
11991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11992$as_echo "$ac_try_echo"; } >&5
11993  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11994  ac_status=$?
11995  if test -s conftest.err; then
11996    sed '10a\
11997... rest of stderr output deleted ...
11998         10q' conftest.err >conftest.er1
11999    cat conftest.er1 >&5
12000  fi
12001  rm -f conftest.er1 conftest.err
12002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003  test $ac_status = 0; }
12004done
12005
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12007$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12008if ${ac_cv_c_compiler_gnu+:} false; then :
12009  $as_echo_n "(cached) " >&6
12010else
12011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012/* end confdefs.h.  */
12013
12014int
12015main ()
12016{
12017#ifndef __GNUC__
12018       choke me
12019#endif
12020
12021  ;
12022  return 0;
12023}
12024_ACEOF
12025if ac_fn_c_try_compile "$LINENO"; then :
12026  ac_compiler_gnu=yes
12027else
12028  ac_compiler_gnu=no
12029fi
12030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12031ac_cv_c_compiler_gnu=$ac_compiler_gnu
12032
12033fi
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12035$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12036if test $ac_compiler_gnu = yes; then
12037  GCC=yes
12038else
12039  GCC=
12040fi
12041ac_test_CFLAGS=${CFLAGS+set}
12042ac_save_CFLAGS=$CFLAGS
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12044$as_echo_n "checking whether $CC accepts -g... " >&6; }
12045if ${ac_cv_prog_cc_g+:} false; then :
12046  $as_echo_n "(cached) " >&6
12047else
12048  ac_save_c_werror_flag=$ac_c_werror_flag
12049   ac_c_werror_flag=yes
12050   ac_cv_prog_cc_g=no
12051   CFLAGS="-g"
12052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053/* end confdefs.h.  */
12054
12055int
12056main ()
12057{
12058
12059  ;
12060  return 0;
12061}
12062_ACEOF
12063if ac_fn_c_try_compile "$LINENO"; then :
12064  ac_cv_prog_cc_g=yes
12065else
12066  CFLAGS=""
12067      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h.  */
12069
12070int
12071main ()
12072{
12073
12074  ;
12075  return 0;
12076}
12077_ACEOF
12078if ac_fn_c_try_compile "$LINENO"; then :
12079
12080else
12081  ac_c_werror_flag=$ac_save_c_werror_flag
12082	 CFLAGS="-g"
12083	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084/* end confdefs.h.  */
12085
12086int
12087main ()
12088{
12089
12090  ;
12091  return 0;
12092}
12093_ACEOF
12094if ac_fn_c_try_compile "$LINENO"; then :
12095  ac_cv_prog_cc_g=yes
12096fi
12097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098fi
12099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100fi
12101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102   ac_c_werror_flag=$ac_save_c_werror_flag
12103fi
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12105$as_echo "$ac_cv_prog_cc_g" >&6; }
12106if test "$ac_test_CFLAGS" = set; then
12107  CFLAGS=$ac_save_CFLAGS
12108elif test $ac_cv_prog_cc_g = yes; then
12109  if test "$GCC" = yes; then
12110    CFLAGS="-g -O2"
12111  else
12112    CFLAGS="-g"
12113  fi
12114else
12115  if test "$GCC" = yes; then
12116    CFLAGS="-O2"
12117  else
12118    CFLAGS=
12119  fi
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12122$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12123if ${ac_cv_prog_cc_c89+:} false; then :
12124  $as_echo_n "(cached) " >&6
12125else
12126  ac_cv_prog_cc_c89=no
12127ac_save_CC=$CC
12128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h.  */
12130#include <stdarg.h>
12131#include <stdio.h>
12132struct stat;
12133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12134struct buf { int x; };
12135FILE * (*rcsopen) (struct buf *, struct stat *, int);
12136static char *e (p, i)
12137     char **p;
12138     int i;
12139{
12140  return p[i];
12141}
12142static char *f (char * (*g) (char **, int), char **p, ...)
12143{
12144  char *s;
12145  va_list v;
12146  va_start (v,p);
12147  s = g (p, va_arg (v,int));
12148  va_end (v);
12149  return s;
12150}
12151
12152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12153   function prototypes and stuff, but not '\xHH' hex character constants.
12154   These don't provoke an error unfortunately, instead are silently treated
12155   as 'x'.  The following induces an error, until -std is added to get
12156   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12157   array size at least.  It's necessary to write '\x00'==0 to get something
12158   that's true only with -std.  */
12159int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12160
12161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12162   inside strings and character constants.  */
12163#define FOO(x) 'x'
12164int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12165
12166int test (int i, double x);
12167struct s1 {int (*f) (int a);};
12168struct s2 {int (*f) (double a);};
12169int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12170int argc;
12171char **argv;
12172int
12173main ()
12174{
12175return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12176  ;
12177  return 0;
12178}
12179_ACEOF
12180for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12181	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12182do
12183  CC="$ac_save_CC $ac_arg"
12184  if ac_fn_c_try_compile "$LINENO"; then :
12185  ac_cv_prog_cc_c89=$ac_arg
12186fi
12187rm -f core conftest.err conftest.$ac_objext
12188  test "x$ac_cv_prog_cc_c89" != "xno" && break
12189done
12190rm -f conftest.$ac_ext
12191CC=$ac_save_CC
12192
12193fi
12194# AC_CACHE_VAL
12195case "x$ac_cv_prog_cc_c89" in
12196  x)
12197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12198$as_echo "none needed" >&6; } ;;
12199  xno)
12200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12201$as_echo "unsupported" >&6; } ;;
12202  *)
12203    CC="$CC $ac_cv_prog_cc_c89"
12204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12205$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12206esac
12207if test "x$ac_cv_prog_cc_c89" != xno; then :
12208
12209fi
12210
12211ac_ext=c
12212ac_cpp='$CPP $CPPFLAGS'
12213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12215ac_compiler_gnu=$ac_cv_c_compiler_gnu
12216
12217depcc="$CC"   am_compiler_list=
12218
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12220$as_echo_n "checking dependency style of $depcc... " >&6; }
12221if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12222  $as_echo_n "(cached) " >&6
12223else
12224  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12225  # We make a subdir and do the tests there.  Otherwise we can end up
12226  # making bogus files that we don't know about and never remove.  For
12227  # instance it was reported that on HP-UX the gcc test will end up
12228  # making a dummy file named 'D' -- because '-MD' means "put the output
12229  # in D".
12230  rm -rf conftest.dir
12231  mkdir conftest.dir
12232  # Copy depcomp to subdir because otherwise we won't find it if we're
12233  # using a relative directory.
12234  cp "$am_depcomp" conftest.dir
12235  cd conftest.dir
12236  # We will build objects and dependencies in a subdirectory because
12237  # it helps to detect inapplicable dependency modes.  For instance
12238  # both Tru64's cc and ICC support -MD to output dependencies as a
12239  # side effect of compilation, but ICC will put the dependencies in
12240  # the current directory while Tru64 will put them in the object
12241  # directory.
12242  mkdir sub
12243
12244  am_cv_CC_dependencies_compiler_type=none
12245  if test "$am_compiler_list" = ""; then
12246     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12247  fi
12248  am__universal=false
12249  case " $depcc " in #(
12250     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12251     esac
12252
12253  for depmode in $am_compiler_list; do
12254    # Setup a source with many dependencies, because some compilers
12255    # like to wrap large dependency lists on column 80 (with \), and
12256    # we should not choose a depcomp mode which is confused by this.
12257    #
12258    # We need to recreate these files for each test, as the compiler may
12259    # overwrite some of them when testing with obscure command lines.
12260    # This happens at least with the AIX C compiler.
12261    : > sub/conftest.c
12262    for i in 1 2 3 4 5 6; do
12263      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12264      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12265      # Solaris 10 /bin/sh.
12266      echo '/* dummy */' > sub/conftst$i.h
12267    done
12268    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12269
12270    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12271    # mode.  It turns out that the SunPro C++ compiler does not properly
12272    # handle '-M -o', and we need to detect this.  Also, some Intel
12273    # versions had trouble with output in subdirs.
12274    am__obj=sub/conftest.${OBJEXT-o}
12275    am__minus_obj="-o $am__obj"
12276    case $depmode in
12277    gcc)
12278      # This depmode causes a compiler race in universal mode.
12279      test "$am__universal" = false || continue
12280      ;;
12281    nosideeffect)
12282      # After this tag, mechanisms are not by side-effect, so they'll
12283      # only be used when explicitly requested.
12284      if test "x$enable_dependency_tracking" = xyes; then
12285	continue
12286      else
12287	break
12288      fi
12289      ;;
12290    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12291      # This compiler won't grok '-c -o', but also, the minuso test has
12292      # not run yet.  These depmodes are late enough in the game, and
12293      # so weak that their functioning should not be impacted.
12294      am__obj=conftest.${OBJEXT-o}
12295      am__minus_obj=
12296      ;;
12297    none) break ;;
12298    esac
12299    if depmode=$depmode \
12300       source=sub/conftest.c object=$am__obj \
12301       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12302       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12303         >/dev/null 2>conftest.err &&
12304       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12305       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12306       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12307       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12308      # icc doesn't choke on unknown options, it will just issue warnings
12309      # or remarks (even with -Werror).  So we grep stderr for any message
12310      # that says an option was ignored or not supported.
12311      # When given -MP, icc 7.0 and 7.1 complain thusly:
12312      #   icc: Command line warning: ignoring option '-M'; no argument required
12313      # The diagnosis changed in icc 8.0:
12314      #   icc: Command line remark: option '-MP' not supported
12315      if (grep 'ignoring option' conftest.err ||
12316          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12317        am_cv_CC_dependencies_compiler_type=$depmode
12318        break
12319      fi
12320    fi
12321  done
12322
12323  cd ..
12324  rm -rf conftest.dir
12325else
12326  am_cv_CC_dependencies_compiler_type=none
12327fi
12328
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12331$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12332CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12333
12334 if
12335  test "x$enable_dependency_tracking" != xno \
12336  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12337  am__fastdepCC_TRUE=
12338  am__fastdepCC_FALSE='#'
12339else
12340  am__fastdepCC_TRUE='#'
12341  am__fastdepCC_FALSE=
12342fi
12343
12344
12345
12346# Checks for libraries.
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha256_init in -lnettle" >&5
12348$as_echo_n "checking for nettle_sha256_init in -lnettle... " >&6; }
12349if ${ac_cv_lib_nettle_nettle_sha256_init+:} false; then :
12350  $as_echo_n "(cached) " >&6
12351else
12352  ac_check_lib_save_LIBS=$LIBS
12353LIBS="-lnettle  $LIBS"
12354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355/* end confdefs.h.  */
12356
12357/* Override any GCC internal prototype to avoid an error.
12358   Use char because int might match the return type of a GCC
12359   builtin and then its argument prototype would still apply.  */
12360#ifdef __cplusplus
12361extern "C"
12362#endif
12363char nettle_sha256_init ();
12364int
12365main ()
12366{
12367return nettle_sha256_init ();
12368  ;
12369  return 0;
12370}
12371_ACEOF
12372if ac_fn_c_try_link "$LINENO"; then :
12373  ac_cv_lib_nettle_nettle_sha256_init=yes
12374else
12375  ac_cv_lib_nettle_nettle_sha256_init=no
12376fi
12377rm -f core conftest.err conftest.$ac_objext \
12378    conftest$ac_exeext conftest.$ac_ext
12379LIBS=$ac_check_lib_save_LIBS
12380fi
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha256_init" >&5
12382$as_echo "$ac_cv_lib_nettle_nettle_sha256_init" >&6; }
12383if test "x$ac_cv_lib_nettle_nettle_sha256_init" = xyes; then :
12384  cat >>confdefs.h <<_ACEOF
12385#define HAVE_LIBNETTLE 1
12386_ACEOF
12387
12388  LIBS="-lnettle $LIBS"
12389
12390else
12391  $as_echo  "Sorry, you need nettle."; exit 1
12392fi
12393
12394
12395# Checks for header files.
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12397$as_echo_n "checking for ANSI C header files... " >&6; }
12398if ${ac_cv_header_stdc+:} false; then :
12399  $as_echo_n "(cached) " >&6
12400else
12401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402/* end confdefs.h.  */
12403#include <stdlib.h>
12404#include <stdarg.h>
12405#include <string.h>
12406#include <float.h>
12407
12408int
12409main ()
12410{
12411
12412  ;
12413  return 0;
12414}
12415_ACEOF
12416if ac_fn_c_try_compile "$LINENO"; then :
12417  ac_cv_header_stdc=yes
12418else
12419  ac_cv_header_stdc=no
12420fi
12421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422
12423if test $ac_cv_header_stdc = yes; then
12424  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426/* end confdefs.h.  */
12427#include <string.h>
12428
12429_ACEOF
12430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12431  $EGREP "memchr" >/dev/null 2>&1; then :
12432
12433else
12434  ac_cv_header_stdc=no
12435fi
12436rm -f conftest*
12437
12438fi
12439
12440if test $ac_cv_header_stdc = yes; then
12441  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443/* end confdefs.h.  */
12444#include <stdlib.h>
12445
12446_ACEOF
12447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12448  $EGREP "free" >/dev/null 2>&1; then :
12449
12450else
12451  ac_cv_header_stdc=no
12452fi
12453rm -f conftest*
12454
12455fi
12456
12457if test $ac_cv_header_stdc = yes; then
12458  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12459  if test "$cross_compiling" = yes; then :
12460  :
12461else
12462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463/* end confdefs.h.  */
12464#include <ctype.h>
12465#include <stdlib.h>
12466#if ((' ' & 0x0FF) == 0x020)
12467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12469#else
12470# define ISLOWER(c) \
12471		   (('a' <= (c) && (c) <= 'i') \
12472		     || ('j' <= (c) && (c) <= 'r') \
12473		     || ('s' <= (c) && (c) <= 'z'))
12474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12475#endif
12476
12477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12478int
12479main ()
12480{
12481  int i;
12482  for (i = 0; i < 256; i++)
12483    if (XOR (islower (i), ISLOWER (i))
12484	|| toupper (i) != TOUPPER (i))
12485      return 2;
12486  return 0;
12487}
12488_ACEOF
12489if ac_fn_c_try_run "$LINENO"; then :
12490
12491else
12492  ac_cv_header_stdc=no
12493fi
12494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12495  conftest.$ac_objext conftest.beam conftest.$ac_ext
12496fi
12497
12498fi
12499fi
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12501$as_echo "$ac_cv_header_stdc" >&6; }
12502if test $ac_cv_header_stdc = yes; then
12503
12504$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12505
12506fi
12507
12508for ac_header in fcntl.h stdint.h stdlib.h string.h termios.h unistd.h byteswap.h sys/endian.h
12509do :
12510  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12511ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12513  cat >>confdefs.h <<_ACEOF
12514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12515_ACEOF
12516
12517fi
12518
12519done
12520
12521
12522# Checks for typedefs, structures, and compiler characteristics.
12523ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
12524case $ac_cv_c_uint16_t in #(
12525  no|yes) ;; #(
12526  *)
12527
12528
12529cat >>confdefs.h <<_ACEOF
12530#define uint16_t $ac_cv_c_uint16_t
12531_ACEOF
12532;;
12533  esac
12534
12535ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
12536case $ac_cv_c_uint32_t in #(
12537  no|yes) ;; #(
12538  *)
12539
12540$as_echo "#define _UINT32_T 1" >>confdefs.h
12541
12542
12543cat >>confdefs.h <<_ACEOF
12544#define uint32_t $ac_cv_c_uint32_t
12545_ACEOF
12546;;
12547  esac
12548
12549ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
12550case $ac_cv_c_uint8_t in #(
12551  no|yes) ;; #(
12552  *)
12553
12554$as_echo "#define _UINT8_T 1" >>confdefs.h
12555
12556
12557cat >>confdefs.h <<_ACEOF
12558#define uint8_t $ac_cv_c_uint8_t
12559_ACEOF
12560;;
12561  esac
12562
12563
12564# Checks for library functions.
12565for ac_header in stdlib.h
12566do :
12567  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12568if test "x$ac_cv_header_stdlib_h" = xyes; then :
12569  cat >>confdefs.h <<_ACEOF
12570#define HAVE_STDLIB_H 1
12571_ACEOF
12572
12573fi
12574
12575done
12576
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12578$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12579if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12580  $as_echo_n "(cached) " >&6
12581else
12582  if test "$cross_compiling" = yes; then :
12583  ac_cv_func_malloc_0_nonnull=no
12584else
12585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586/* end confdefs.h.  */
12587#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12588# include <stdlib.h>
12589#else
12590char *malloc ();
12591#endif
12592
12593int
12594main ()
12595{
12596return ! malloc (0);
12597  ;
12598  return 0;
12599}
12600_ACEOF
12601if ac_fn_c_try_run "$LINENO"; then :
12602  ac_cv_func_malloc_0_nonnull=yes
12603else
12604  ac_cv_func_malloc_0_nonnull=no
12605fi
12606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12607  conftest.$ac_objext conftest.beam conftest.$ac_ext
12608fi
12609
12610fi
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12612$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12613if test $ac_cv_func_malloc_0_nonnull = yes; then :
12614
12615$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12616
12617else
12618  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12619
12620   case " $LIBOBJS " in
12621  *" malloc.$ac_objext "* ) ;;
12622  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12623 ;;
12624esac
12625
12626
12627$as_echo "#define malloc rpl_malloc" >>confdefs.h
12628
12629fi
12630
12631
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12633$as_echo_n "checking for working memcmp... " >&6; }
12634if ${ac_cv_func_memcmp_working+:} false; then :
12635  $as_echo_n "(cached) " >&6
12636else
12637  if test "$cross_compiling" = yes; then :
12638  ac_cv_func_memcmp_working=no
12639else
12640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641/* end confdefs.h.  */
12642$ac_includes_default
12643int
12644main ()
12645{
12646
12647  /* Some versions of memcmp are not 8-bit clean.  */
12648  char c0 = '\100', c1 = '\200', c2 = '\201';
12649  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12650    return 1;
12651
12652  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12653     or more and with at least one buffer not starting on a 4-byte boundary.
12654     William Lewis provided this test program.   */
12655  {
12656    char foo[21];
12657    char bar[21];
12658    int i;
12659    for (i = 0; i < 4; i++)
12660      {
12661	char *a = foo + i;
12662	char *b = bar + i;
12663	strcpy (a, "--------01111111");
12664	strcpy (b, "--------10000000");
12665	if (memcmp (a, b, 16) >= 0)
12666	  return 1;
12667      }
12668    return 0;
12669  }
12670
12671  ;
12672  return 0;
12673}
12674_ACEOF
12675if ac_fn_c_try_run "$LINENO"; then :
12676  ac_cv_func_memcmp_working=yes
12677else
12678  ac_cv_func_memcmp_working=no
12679fi
12680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12681  conftest.$ac_objext conftest.beam conftest.$ac_ext
12682fi
12683
12684fi
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12686$as_echo "$ac_cv_func_memcmp_working" >&6; }
12687test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12688  *" memcmp.$ac_objext "* ) ;;
12689  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12690 ;;
12691esac
12692
12693
12694
12695
12696
12697  for ac_header in $ac_header_list
12698do :
12699  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12700ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12701"
12702if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12703  cat >>confdefs.h <<_ACEOF
12704#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12705_ACEOF
12706
12707fi
12708
12709done
12710
12711
12712
12713
12714
12715
12716
12717
12718for ac_func in getpagesize
12719do :
12720  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12721if test "x$ac_cv_func_getpagesize" = xyes; then :
12722  cat >>confdefs.h <<_ACEOF
12723#define HAVE_GETPAGESIZE 1
12724_ACEOF
12725
12726fi
12727done
12728
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12730$as_echo_n "checking for working mmap... " >&6; }
12731if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12732  $as_echo_n "(cached) " >&6
12733else
12734  if test "$cross_compiling" = yes; then :
12735  ac_cv_func_mmap_fixed_mapped=no
12736else
12737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738/* end confdefs.h.  */
12739$ac_includes_default
12740/* malloc might have been renamed as rpl_malloc. */
12741#undef malloc
12742
12743/* Thanks to Mike Haertel and Jim Avera for this test.
12744   Here is a matrix of mmap possibilities:
12745	mmap private not fixed
12746	mmap private fixed at somewhere currently unmapped
12747	mmap private fixed at somewhere already mapped
12748	mmap shared not fixed
12749	mmap shared fixed at somewhere currently unmapped
12750	mmap shared fixed at somewhere already mapped
12751   For private mappings, we should verify that changes cannot be read()
12752   back from the file, nor mmap's back from the file at a different
12753   address.  (There have been systems where private was not correctly
12754   implemented like the infamous i386 svr4.0, and systems where the
12755   VM page cache was not coherent with the file system buffer cache
12756   like early versions of FreeBSD and possibly contemporary NetBSD.)
12757   For shared mappings, we should conversely verify that changes get
12758   propagated back to all the places they're supposed to be.
12759
12760   Grep wants private fixed already mapped.
12761   The main things grep needs to know about mmap are:
12762   * does it exist and is it safe to write into the mmap'd area
12763   * how to use it (BSD variants)  */
12764
12765#include <fcntl.h>
12766#include <sys/mman.h>
12767
12768#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12769char *malloc ();
12770#endif
12771
12772/* This mess was copied from the GNU getpagesize.h.  */
12773#ifndef HAVE_GETPAGESIZE
12774# ifdef _SC_PAGESIZE
12775#  define getpagesize() sysconf(_SC_PAGESIZE)
12776# else /* no _SC_PAGESIZE */
12777#  ifdef HAVE_SYS_PARAM_H
12778#   include <sys/param.h>
12779#   ifdef EXEC_PAGESIZE
12780#    define getpagesize() EXEC_PAGESIZE
12781#   else /* no EXEC_PAGESIZE */
12782#    ifdef NBPG
12783#     define getpagesize() NBPG * CLSIZE
12784#     ifndef CLSIZE
12785#      define CLSIZE 1
12786#     endif /* no CLSIZE */
12787#    else /* no NBPG */
12788#     ifdef NBPC
12789#      define getpagesize() NBPC
12790#     else /* no NBPC */
12791#      ifdef PAGESIZE
12792#       define getpagesize() PAGESIZE
12793#      endif /* PAGESIZE */
12794#     endif /* no NBPC */
12795#    endif /* no NBPG */
12796#   endif /* no EXEC_PAGESIZE */
12797#  else /* no HAVE_SYS_PARAM_H */
12798#   define getpagesize() 8192	/* punt totally */
12799#  endif /* no HAVE_SYS_PARAM_H */
12800# endif /* no _SC_PAGESIZE */
12801
12802#endif /* no HAVE_GETPAGESIZE */
12803
12804int
12805main ()
12806{
12807  char *data, *data2, *data3;
12808  const char *cdata2;
12809  int i, pagesize;
12810  int fd, fd2;
12811
12812  pagesize = getpagesize ();
12813
12814  /* First, make a file with some known garbage in it. */
12815  data = (char *) malloc (pagesize);
12816  if (!data)
12817    return 1;
12818  for (i = 0; i < pagesize; ++i)
12819    *(data + i) = rand ();
12820  umask (0);
12821  fd = creat ("conftest.mmap", 0600);
12822  if (fd < 0)
12823    return 2;
12824  if (write (fd, data, pagesize) != pagesize)
12825    return 3;
12826  close (fd);
12827
12828  /* Next, check that the tail of a page is zero-filled.  File must have
12829     non-zero length, otherwise we risk SIGBUS for entire page.  */
12830  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12831  if (fd2 < 0)
12832    return 4;
12833  cdata2 = "";
12834  if (write (fd2, cdata2, 1) != 1)
12835    return 5;
12836  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12837  if (data2 == MAP_FAILED)
12838    return 6;
12839  for (i = 0; i < pagesize; ++i)
12840    if (*(data2 + i))
12841      return 7;
12842  close (fd2);
12843  if (munmap (data2, pagesize))
12844    return 8;
12845
12846  /* Next, try to mmap the file at a fixed address which already has
12847     something else allocated at it.  If we can, also make sure that
12848     we see the same garbage.  */
12849  fd = open ("conftest.mmap", O_RDWR);
12850  if (fd < 0)
12851    return 9;
12852  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12853		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
12854    return 10;
12855  for (i = 0; i < pagesize; ++i)
12856    if (*(data + i) != *(data2 + i))
12857      return 11;
12858
12859  /* Finally, make sure that changes to the mapped area do not
12860     percolate back to the file as seen by read().  (This is a bug on
12861     some variants of i386 svr4.0.)  */
12862  for (i = 0; i < pagesize; ++i)
12863    *(data2 + i) = *(data2 + i) + 1;
12864  data3 = (char *) malloc (pagesize);
12865  if (!data3)
12866    return 12;
12867  if (read (fd, data3, pagesize) != pagesize)
12868    return 13;
12869  for (i = 0; i < pagesize; ++i)
12870    if (*(data + i) != *(data3 + i))
12871      return 14;
12872  close (fd);
12873  return 0;
12874}
12875_ACEOF
12876if ac_fn_c_try_run "$LINENO"; then :
12877  ac_cv_func_mmap_fixed_mapped=yes
12878else
12879  ac_cv_func_mmap_fixed_mapped=no
12880fi
12881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12882  conftest.$ac_objext conftest.beam conftest.$ac_ext
12883fi
12884
12885fi
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12887$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12888if test $ac_cv_func_mmap_fixed_mapped = yes; then
12889
12890$as_echo "#define HAVE_MMAP 1" >>confdefs.h
12891
12892fi
12893rm -f conftest.mmap conftest.txt
12894
12895for ac_func in memset munmap strdup getpass
12896do :
12897  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12898ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12899if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12900  cat >>confdefs.h <<_ACEOF
12901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12902_ACEOF
12903
12904fi
12905done
12906
12907
12908# Check for gettext.
12909
12910
12911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12912$as_echo_n "checking whether NLS is requested... " >&6; }
12913    # Check whether --enable-nls was given.
12914if test "${enable_nls+set}" = set; then :
12915  enableval=$enable_nls; USE_NLS=$enableval
12916else
12917  USE_NLS=yes
12918fi
12919
12920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12921$as_echo "$USE_NLS" >&6; }
12922
12923
12924
12925
12926      GETTEXT_MACRO_VERSION=0.18
12927
12928
12929
12930
12931# Prepare PATH_SEPARATOR.
12932# The user is always right.
12933if test "${PATH_SEPARATOR+set}" != set; then
12934  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12935  # contains only /bin. Note that ksh looks also at the FPATH variable,
12936  # so we have to set that as well for the test.
12937  PATH_SEPARATOR=:
12938  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12939    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12940           || PATH_SEPARATOR=';'
12941       }
12942fi
12943
12944# Find out how to test for executable files. Don't use a zero-byte file,
12945# as systems may use methods other than mode bits to determine executability.
12946cat >conf$$.file <<_ASEOF
12947#! /bin/sh
12948exit 0
12949_ASEOF
12950chmod +x conf$$.file
12951if test -x conf$$.file >/dev/null 2>&1; then
12952  ac_executable_p="test -x"
12953else
12954  ac_executable_p="test -f"
12955fi
12956rm -f conf$$.file
12957
12958# Extract the first word of "msgfmt", so it can be a program name with args.
12959set dummy msgfmt; ac_word=$2
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961$as_echo_n "checking for $ac_word... " >&6; }
12962if ${ac_cv_path_MSGFMT+:} false; then :
12963  $as_echo_n "(cached) " >&6
12964else
12965  case "$MSGFMT" in
12966  [\\/]* | ?:[\\/]*)
12967    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12968    ;;
12969  *)
12970    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12971    for ac_dir in $PATH; do
12972      IFS="$ac_save_IFS"
12973      test -z "$ac_dir" && ac_dir=.
12974      for ac_exec_ext in '' $ac_executable_extensions; do
12975        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12976          echo "$as_me: trying $ac_dir/$ac_word..." >&5
12977          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12978     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12979            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12980            break 2
12981          fi
12982        fi
12983      done
12984    done
12985    IFS="$ac_save_IFS"
12986  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12987    ;;
12988esac
12989fi
12990MSGFMT="$ac_cv_path_MSGFMT"
12991if test "$MSGFMT" != ":"; then
12992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12993$as_echo "$MSGFMT" >&6; }
12994else
12995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
12997fi
12998
12999  # Extract the first word of "gmsgfmt", so it can be a program name with args.
13000set dummy gmsgfmt; ac_word=$2
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002$as_echo_n "checking for $ac_word... " >&6; }
13003if ${ac_cv_path_GMSGFMT+:} false; then :
13004  $as_echo_n "(cached) " >&6
13005else
13006  case $GMSGFMT in
13007  [\\/]* | ?:[\\/]*)
13008  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13009  ;;
13010  *)
13011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012for as_dir in $PATH
13013do
13014  IFS=$as_save_IFS
13015  test -z "$as_dir" && as_dir=.
13016    for ac_exec_ext in '' $ac_executable_extensions; do
13017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020    break 2
13021  fi
13022done
13023  done
13024IFS=$as_save_IFS
13025
13026  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13027  ;;
13028esac
13029fi
13030GMSGFMT=$ac_cv_path_GMSGFMT
13031if test -n "$GMSGFMT"; then
13032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13033$as_echo "$GMSGFMT" >&6; }
13034else
13035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036$as_echo "no" >&6; }
13037fi
13038
13039
13040
13041    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13042    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13043    *) MSGFMT_015=$MSGFMT ;;
13044  esac
13045
13046  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13047    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13048    *) GMSGFMT_015=$GMSGFMT ;;
13049  esac
13050
13051
13052
13053# Prepare PATH_SEPARATOR.
13054# The user is always right.
13055if test "${PATH_SEPARATOR+set}" != set; then
13056  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13057  # contains only /bin. Note that ksh looks also at the FPATH variable,
13058  # so we have to set that as well for the test.
13059  PATH_SEPARATOR=:
13060  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13061    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13062           || PATH_SEPARATOR=';'
13063       }
13064fi
13065
13066# Find out how to test for executable files. Don't use a zero-byte file,
13067# as systems may use methods other than mode bits to determine executability.
13068cat >conf$$.file <<_ASEOF
13069#! /bin/sh
13070exit 0
13071_ASEOF
13072chmod +x conf$$.file
13073if test -x conf$$.file >/dev/null 2>&1; then
13074  ac_executable_p="test -x"
13075else
13076  ac_executable_p="test -f"
13077fi
13078rm -f conf$$.file
13079
13080# Extract the first word of "xgettext", so it can be a program name with args.
13081set dummy xgettext; ac_word=$2
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083$as_echo_n "checking for $ac_word... " >&6; }
13084if ${ac_cv_path_XGETTEXT+:} false; then :
13085  $as_echo_n "(cached) " >&6
13086else
13087  case "$XGETTEXT" in
13088  [\\/]* | ?:[\\/]*)
13089    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13090    ;;
13091  *)
13092    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13093    for ac_dir in $PATH; do
13094      IFS="$ac_save_IFS"
13095      test -z "$ac_dir" && ac_dir=.
13096      for ac_exec_ext in '' $ac_executable_extensions; do
13097        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13098          echo "$as_me: trying $ac_dir/$ac_word..." >&5
13099          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13100     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13101            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13102            break 2
13103          fi
13104        fi
13105      done
13106    done
13107    IFS="$ac_save_IFS"
13108  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13109    ;;
13110esac
13111fi
13112XGETTEXT="$ac_cv_path_XGETTEXT"
13113if test "$XGETTEXT" != ":"; then
13114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13115$as_echo "$XGETTEXT" >&6; }
13116else
13117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118$as_echo "no" >&6; }
13119fi
13120
13121    rm -f messages.po
13122
13123    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13124    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13125    *) XGETTEXT_015=$XGETTEXT ;;
13126  esac
13127
13128
13129
13130# Prepare PATH_SEPARATOR.
13131# The user is always right.
13132if test "${PATH_SEPARATOR+set}" != set; then
13133  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13134  # contains only /bin. Note that ksh looks also at the FPATH variable,
13135  # so we have to set that as well for the test.
13136  PATH_SEPARATOR=:
13137  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13138    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13139           || PATH_SEPARATOR=';'
13140       }
13141fi
13142
13143# Find out how to test for executable files. Don't use a zero-byte file,
13144# as systems may use methods other than mode bits to determine executability.
13145cat >conf$$.file <<_ASEOF
13146#! /bin/sh
13147exit 0
13148_ASEOF
13149chmod +x conf$$.file
13150if test -x conf$$.file >/dev/null 2>&1; then
13151  ac_executable_p="test -x"
13152else
13153  ac_executable_p="test -f"
13154fi
13155rm -f conf$$.file
13156
13157# Extract the first word of "msgmerge", so it can be a program name with args.
13158set dummy msgmerge; ac_word=$2
13159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160$as_echo_n "checking for $ac_word... " >&6; }
13161if ${ac_cv_path_MSGMERGE+:} false; then :
13162  $as_echo_n "(cached) " >&6
13163else
13164  case "$MSGMERGE" in
13165  [\\/]* | ?:[\\/]*)
13166    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13167    ;;
13168  *)
13169    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13170    for ac_dir in $PATH; do
13171      IFS="$ac_save_IFS"
13172      test -z "$ac_dir" && ac_dir=.
13173      for ac_exec_ext in '' $ac_executable_extensions; do
13174        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13175          echo "$as_me: trying $ac_dir/$ac_word..." >&5
13176          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13177            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13178            break 2
13179          fi
13180        fi
13181      done
13182    done
13183    IFS="$ac_save_IFS"
13184  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13185    ;;
13186esac
13187fi
13188MSGMERGE="$ac_cv_path_MSGMERGE"
13189if test "$MSGMERGE" != ":"; then
13190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13191$as_echo "$MSGMERGE" >&6; }
13192else
13193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194$as_echo "no" >&6; }
13195fi
13196
13197
13198        test -n "$localedir" || localedir='${datadir}/locale'
13199
13200
13201    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13202
13203
13204  ac_config_commands="$ac_config_commands po-directories"
13205
13206
13207
13208      if test "X$prefix" = "XNONE"; then
13209    acl_final_prefix="$ac_default_prefix"
13210  else
13211    acl_final_prefix="$prefix"
13212  fi
13213  if test "X$exec_prefix" = "XNONE"; then
13214    acl_final_exec_prefix='${prefix}'
13215  else
13216    acl_final_exec_prefix="$exec_prefix"
13217  fi
13218  acl_save_prefix="$prefix"
13219  prefix="$acl_final_prefix"
13220  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13221  prefix="$acl_save_prefix"
13222
13223
13224
13225# Check whether --with-gnu-ld was given.
13226if test "${with_gnu_ld+set}" = set; then :
13227  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13228else
13229  with_gnu_ld=no
13230fi
13231
13232# Prepare PATH_SEPARATOR.
13233# The user is always right.
13234if test "${PATH_SEPARATOR+set}" != set; then
13235  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13236  # contains only /bin. Note that ksh looks also at the FPATH variable,
13237  # so we have to set that as well for the test.
13238  PATH_SEPARATOR=:
13239  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13240    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13241           || PATH_SEPARATOR=';'
13242       }
13243fi
13244
13245ac_prog=ld
13246if test "$GCC" = yes; then
13247  # Check if gcc -print-prog-name=ld gives a path.
13248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13249$as_echo_n "checking for ld used by $CC... " >&6; }
13250  case $host in
13251  *-*-mingw*)
13252    # gcc leaves a trailing carriage return which upsets mingw
13253    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13254  *)
13255    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13256  esac
13257  case $ac_prog in
13258    # Accept absolute paths.
13259    [\\/]* | ?:[\\/]*)
13260      re_direlt='/[^/][^/]*/\.\./'
13261      # Canonicalize the pathname of ld
13262      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13263      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13264        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13265      done
13266      test -z "$LD" && LD="$ac_prog"
13267      ;;
13268  "")
13269    # If it fails, then pretend we aren't using GCC.
13270    ac_prog=ld
13271    ;;
13272  *)
13273    # If it is relative, then search for the first ld in PATH.
13274    with_gnu_ld=unknown
13275    ;;
13276  esac
13277elif test "$with_gnu_ld" = yes; then
13278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13279$as_echo_n "checking for GNU ld... " >&6; }
13280else
13281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13282$as_echo_n "checking for non-GNU ld... " >&6; }
13283fi
13284if ${acl_cv_path_LD+:} false; then :
13285  $as_echo_n "(cached) " >&6
13286else
13287  if test -z "$LD"; then
13288  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13289  for ac_dir in $PATH; do
13290    IFS="$acl_save_ifs"
13291    test -z "$ac_dir" && ac_dir=.
13292    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13293      acl_cv_path_LD="$ac_dir/$ac_prog"
13294      # Check to see if the program is GNU ld.  I'd rather use --version,
13295      # but apparently some variants of GNU ld only accept -v.
13296      # Break only if it was the GNU/non-GNU ld that we prefer.
13297      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13298      *GNU* | *'with BFD'*)
13299        test "$with_gnu_ld" != no && break
13300        ;;
13301      *)
13302        test "$with_gnu_ld" != yes && break
13303        ;;
13304      esac
13305    fi
13306  done
13307  IFS="$acl_save_ifs"
13308else
13309  acl_cv_path_LD="$LD" # Let the user override the test with a path.
13310fi
13311fi
13312
13313LD="$acl_cv_path_LD"
13314if test -n "$LD"; then
13315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13316$as_echo "$LD" >&6; }
13317else
13318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
13320fi
13321test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13323$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13324if ${acl_cv_prog_gnu_ld+:} false; then :
13325  $as_echo_n "(cached) " >&6
13326else
13327  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13328case `$LD -v 2>&1 </dev/null` in
13329*GNU* | *'with BFD'*)
13330  acl_cv_prog_gnu_ld=yes
13331  ;;
13332*)
13333  acl_cv_prog_gnu_ld=no
13334  ;;
13335esac
13336fi
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13338$as_echo "$acl_cv_prog_gnu_ld" >&6; }
13339with_gnu_ld=$acl_cv_prog_gnu_ld
13340
13341
13342
13343
13344                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13345$as_echo_n "checking for shared library run path origin... " >&6; }
13346if ${acl_cv_rpath+:} false; then :
13347  $as_echo_n "(cached) " >&6
13348else
13349
13350    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13351    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13352    . ./conftest.sh
13353    rm -f ./conftest.sh
13354    acl_cv_rpath=done
13355
13356fi
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13358$as_echo "$acl_cv_rpath" >&6; }
13359  wl="$acl_cv_wl"
13360  acl_libext="$acl_cv_libext"
13361  acl_shlibext="$acl_cv_shlibext"
13362  acl_libname_spec="$acl_cv_libname_spec"
13363  acl_library_names_spec="$acl_cv_library_names_spec"
13364  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13365  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13366  acl_hardcode_direct="$acl_cv_hardcode_direct"
13367  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13368    # Check whether --enable-rpath was given.
13369if test "${enable_rpath+set}" = set; then :
13370  enableval=$enable_rpath; :
13371else
13372  enable_rpath=yes
13373fi
13374
13375
13376
13377
13378  acl_libdirstem=lib
13379  acl_libdirstem2=
13380  case "$host_os" in
13381    solaris*)
13382                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13383$as_echo_n "checking for 64-bit host... " >&6; }
13384if ${gl_cv_solaris_64bit+:} false; then :
13385  $as_echo_n "(cached) " >&6
13386else
13387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388/* end confdefs.h.  */
13389
13390#ifdef _LP64
13391sixtyfour bits
13392#endif
13393
13394_ACEOF
13395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13396  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13397  gl_cv_solaris_64bit=yes
13398else
13399  gl_cv_solaris_64bit=no
13400fi
13401rm -f conftest*
13402
13403
13404fi
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13406$as_echo "$gl_cv_solaris_64bit" >&6; }
13407      if test $gl_cv_solaris_64bit = yes; then
13408        acl_libdirstem=lib/64
13409        case "$host_cpu" in
13410          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
13411          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13412        esac
13413      fi
13414      ;;
13415    *)
13416      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13417      if test -n "$searchpath"; then
13418        acl_save_IFS="${IFS= 	}"; IFS=":"
13419        for searchdir in $searchpath; do
13420          if test -d "$searchdir"; then
13421            case "$searchdir" in
13422              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13423              */../ | */.. )
13424                # Better ignore directories of this form. They are misleading.
13425                ;;
13426              *) searchdir=`cd "$searchdir" && pwd`
13427                 case "$searchdir" in
13428                   */lib64 ) acl_libdirstem=lib64 ;;
13429                 esac ;;
13430            esac
13431          fi
13432        done
13433        IFS="$acl_save_IFS"
13434      fi
13435      ;;
13436  esac
13437  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450    use_additional=yes
13451
13452  acl_save_prefix="$prefix"
13453  prefix="$acl_final_prefix"
13454  acl_save_exec_prefix="$exec_prefix"
13455  exec_prefix="$acl_final_exec_prefix"
13456
13457    eval additional_includedir=\"$includedir\"
13458    eval additional_libdir=\"$libdir\"
13459
13460  exec_prefix="$acl_save_exec_prefix"
13461  prefix="$acl_save_prefix"
13462
13463
13464# Check whether --with-libiconv-prefix was given.
13465if test "${with_libiconv_prefix+set}" = set; then :
13466  withval=$with_libiconv_prefix;
13467    if test "X$withval" = "Xno"; then
13468      use_additional=no
13469    else
13470      if test "X$withval" = "X"; then
13471
13472  acl_save_prefix="$prefix"
13473  prefix="$acl_final_prefix"
13474  acl_save_exec_prefix="$exec_prefix"
13475  exec_prefix="$acl_final_exec_prefix"
13476
13477          eval additional_includedir=\"$includedir\"
13478          eval additional_libdir=\"$libdir\"
13479
13480  exec_prefix="$acl_save_exec_prefix"
13481  prefix="$acl_save_prefix"
13482
13483      else
13484        additional_includedir="$withval/include"
13485        additional_libdir="$withval/$acl_libdirstem"
13486        if test "$acl_libdirstem2" != "$acl_libdirstem" \
13487           && ! test -d "$withval/$acl_libdirstem"; then
13488          additional_libdir="$withval/$acl_libdirstem2"
13489        fi
13490      fi
13491    fi
13492
13493fi
13494
13495      LIBICONV=
13496  LTLIBICONV=
13497  INCICONV=
13498  LIBICONV_PREFIX=
13499      HAVE_LIBICONV=
13500  rpathdirs=
13501  ltrpathdirs=
13502  names_already_handled=
13503  names_next_round='iconv '
13504  while test -n "$names_next_round"; do
13505    names_this_round="$names_next_round"
13506    names_next_round=
13507    for name in $names_this_round; do
13508      already_handled=
13509      for n in $names_already_handled; do
13510        if test "$n" = "$name"; then
13511          already_handled=yes
13512          break
13513        fi
13514      done
13515      if test -z "$already_handled"; then
13516        names_already_handled="$names_already_handled $name"
13517                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13518        eval value=\"\$HAVE_LIB$uppername\"
13519        if test -n "$value"; then
13520          if test "$value" = yes; then
13521            eval value=\"\$LIB$uppername\"
13522            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13523            eval value=\"\$LTLIB$uppername\"
13524            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13525          else
13526                                    :
13527          fi
13528        else
13529                              found_dir=
13530          found_la=
13531          found_so=
13532          found_a=
13533          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13534          if test -n "$acl_shlibext"; then
13535            shrext=".$acl_shlibext"             # typically: shrext=.so
13536          else
13537            shrext=
13538          fi
13539          if test $use_additional = yes; then
13540            dir="$additional_libdir"
13541                                    if test -n "$acl_shlibext"; then
13542              if test -f "$dir/$libname$shrext"; then
13543                found_dir="$dir"
13544                found_so="$dir/$libname$shrext"
13545              else
13546                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13547                  ver=`(cd "$dir" && \
13548                        for f in "$libname$shrext".*; do echo "$f"; done \
13549                        | sed -e "s,^$libname$shrext\\\\.,," \
13550                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13551                        | sed 1q ) 2>/dev/null`
13552                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13553                    found_dir="$dir"
13554                    found_so="$dir/$libname$shrext.$ver"
13555                  fi
13556                else
13557                  eval library_names=\"$acl_library_names_spec\"
13558                  for f in $library_names; do
13559                    if test -f "$dir/$f"; then
13560                      found_dir="$dir"
13561                      found_so="$dir/$f"
13562                      break
13563                    fi
13564                  done
13565                fi
13566              fi
13567            fi
13568                        if test "X$found_dir" = "X"; then
13569              if test -f "$dir/$libname.$acl_libext"; then
13570                found_dir="$dir"
13571                found_a="$dir/$libname.$acl_libext"
13572              fi
13573            fi
13574            if test "X$found_dir" != "X"; then
13575              if test -f "$dir/$libname.la"; then
13576                found_la="$dir/$libname.la"
13577              fi
13578            fi
13579          fi
13580          if test "X$found_dir" = "X"; then
13581            for x in $LDFLAGS $LTLIBICONV; do
13582
13583  acl_save_prefix="$prefix"
13584  prefix="$acl_final_prefix"
13585  acl_save_exec_prefix="$exec_prefix"
13586  exec_prefix="$acl_final_exec_prefix"
13587  eval x=\"$x\"
13588  exec_prefix="$acl_save_exec_prefix"
13589  prefix="$acl_save_prefix"
13590
13591              case "$x" in
13592                -L*)
13593                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13594                                    if test -n "$acl_shlibext"; then
13595                    if test -f "$dir/$libname$shrext"; then
13596                      found_dir="$dir"
13597                      found_so="$dir/$libname$shrext"
13598                    else
13599                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13600                        ver=`(cd "$dir" && \
13601                              for f in "$libname$shrext".*; do echo "$f"; done \
13602                              | sed -e "s,^$libname$shrext\\\\.,," \
13603                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13604                              | sed 1q ) 2>/dev/null`
13605                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13606                          found_dir="$dir"
13607                          found_so="$dir/$libname$shrext.$ver"
13608                        fi
13609                      else
13610                        eval library_names=\"$acl_library_names_spec\"
13611                        for f in $library_names; do
13612                          if test -f "$dir/$f"; then
13613                            found_dir="$dir"
13614                            found_so="$dir/$f"
13615                            break
13616                          fi
13617                        done
13618                      fi
13619                    fi
13620                  fi
13621                                    if test "X$found_dir" = "X"; then
13622                    if test -f "$dir/$libname.$acl_libext"; then
13623                      found_dir="$dir"
13624                      found_a="$dir/$libname.$acl_libext"
13625                    fi
13626                  fi
13627                  if test "X$found_dir" != "X"; then
13628                    if test -f "$dir/$libname.la"; then
13629                      found_la="$dir/$libname.la"
13630                    fi
13631                  fi
13632                  ;;
13633              esac
13634              if test "X$found_dir" != "X"; then
13635                break
13636              fi
13637            done
13638          fi
13639          if test "X$found_dir" != "X"; then
13640                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13641            if test "X$found_so" != "X"; then
13642                                                        if test "$enable_rpath" = no \
13643                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13644                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13645                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13646              else
13647                                                                                haveit=
13648                for x in $ltrpathdirs; do
13649                  if test "X$x" = "X$found_dir"; then
13650                    haveit=yes
13651                    break
13652                  fi
13653                done
13654                if test -z "$haveit"; then
13655                  ltrpathdirs="$ltrpathdirs $found_dir"
13656                fi
13657                                if test "$acl_hardcode_direct" = yes; then
13658                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13659                else
13660                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13661                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13662                                                            haveit=
13663                    for x in $rpathdirs; do
13664                      if test "X$x" = "X$found_dir"; then
13665                        haveit=yes
13666                        break
13667                      fi
13668                    done
13669                    if test -z "$haveit"; then
13670                      rpathdirs="$rpathdirs $found_dir"
13671                    fi
13672                  else
13673                                                                                haveit=
13674                    for x in $LDFLAGS $LIBICONV; do
13675
13676  acl_save_prefix="$prefix"
13677  prefix="$acl_final_prefix"
13678  acl_save_exec_prefix="$exec_prefix"
13679  exec_prefix="$acl_final_exec_prefix"
13680  eval x=\"$x\"
13681  exec_prefix="$acl_save_exec_prefix"
13682  prefix="$acl_save_prefix"
13683
13684                      if test "X$x" = "X-L$found_dir"; then
13685                        haveit=yes
13686                        break
13687                      fi
13688                    done
13689                    if test -z "$haveit"; then
13690                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13691                    fi
13692                    if test "$acl_hardcode_minus_L" != no; then
13693                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13694                    else
13695                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13696                    fi
13697                  fi
13698                fi
13699              fi
13700            else
13701              if test "X$found_a" != "X"; then
13702                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13703              else
13704                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13705              fi
13706            fi
13707                        additional_includedir=
13708            case "$found_dir" in
13709              */$acl_libdirstem | */$acl_libdirstem/)
13710                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13711                if test "$name" = 'iconv'; then
13712                  LIBICONV_PREFIX="$basedir"
13713                fi
13714                additional_includedir="$basedir/include"
13715                ;;
13716              */$acl_libdirstem2 | */$acl_libdirstem2/)
13717                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13718                if test "$name" = 'iconv'; then
13719                  LIBICONV_PREFIX="$basedir"
13720                fi
13721                additional_includedir="$basedir/include"
13722                ;;
13723            esac
13724            if test "X$additional_includedir" != "X"; then
13725                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
13726                haveit=
13727                if test "X$additional_includedir" = "X/usr/local/include"; then
13728                  if test -n "$GCC"; then
13729                    case $host_os in
13730                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13731                    esac
13732                  fi
13733                fi
13734                if test -z "$haveit"; then
13735                  for x in $CPPFLAGS $INCICONV; do
13736
13737  acl_save_prefix="$prefix"
13738  prefix="$acl_final_prefix"
13739  acl_save_exec_prefix="$exec_prefix"
13740  exec_prefix="$acl_final_exec_prefix"
13741  eval x=\"$x\"
13742  exec_prefix="$acl_save_exec_prefix"
13743  prefix="$acl_save_prefix"
13744
13745                    if test "X$x" = "X-I$additional_includedir"; then
13746                      haveit=yes
13747                      break
13748                    fi
13749                  done
13750                  if test -z "$haveit"; then
13751                    if test -d "$additional_includedir"; then
13752                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13753                    fi
13754                  fi
13755                fi
13756              fi
13757            fi
13758                        if test -n "$found_la"; then
13759                                                        save_libdir="$libdir"
13760              case "$found_la" in
13761                */* | *\\*) . "$found_la" ;;
13762                *) . "./$found_la" ;;
13763              esac
13764              libdir="$save_libdir"
13765                            for dep in $dependency_libs; do
13766                case "$dep" in
13767                  -L*)
13768                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13769                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13770                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13771                      haveit=
13772                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13773                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13774                        if test -n "$GCC"; then
13775                          case $host_os in
13776                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13777                          esac
13778                        fi
13779                      fi
13780                      if test -z "$haveit"; then
13781                        haveit=
13782                        for x in $LDFLAGS $LIBICONV; do
13783
13784  acl_save_prefix="$prefix"
13785  prefix="$acl_final_prefix"
13786  acl_save_exec_prefix="$exec_prefix"
13787  exec_prefix="$acl_final_exec_prefix"
13788  eval x=\"$x\"
13789  exec_prefix="$acl_save_exec_prefix"
13790  prefix="$acl_save_prefix"
13791
13792                          if test "X$x" = "X-L$additional_libdir"; then
13793                            haveit=yes
13794                            break
13795                          fi
13796                        done
13797                        if test -z "$haveit"; then
13798                          if test -d "$additional_libdir"; then
13799                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13800                          fi
13801                        fi
13802                        haveit=
13803                        for x in $LDFLAGS $LTLIBICONV; do
13804
13805  acl_save_prefix="$prefix"
13806  prefix="$acl_final_prefix"
13807  acl_save_exec_prefix="$exec_prefix"
13808  exec_prefix="$acl_final_exec_prefix"
13809  eval x=\"$x\"
13810  exec_prefix="$acl_save_exec_prefix"
13811  prefix="$acl_save_prefix"
13812
13813                          if test "X$x" = "X-L$additional_libdir"; then
13814                            haveit=yes
13815                            break
13816                          fi
13817                        done
13818                        if test -z "$haveit"; then
13819                          if test -d "$additional_libdir"; then
13820                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13821                          fi
13822                        fi
13823                      fi
13824                    fi
13825                    ;;
13826                  -R*)
13827                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
13828                    if test "$enable_rpath" != no; then
13829                                                                  haveit=
13830                      for x in $rpathdirs; do
13831                        if test "X$x" = "X$dir"; then
13832                          haveit=yes
13833                          break
13834                        fi
13835                      done
13836                      if test -z "$haveit"; then
13837                        rpathdirs="$rpathdirs $dir"
13838                      fi
13839                                                                  haveit=
13840                      for x in $ltrpathdirs; do
13841                        if test "X$x" = "X$dir"; then
13842                          haveit=yes
13843                          break
13844                        fi
13845                      done
13846                      if test -z "$haveit"; then
13847                        ltrpathdirs="$ltrpathdirs $dir"
13848                      fi
13849                    fi
13850                    ;;
13851                  -l*)
13852                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13853                    ;;
13854                  *.la)
13855                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13856                    ;;
13857                  *)
13858                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13859                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13860                    ;;
13861                esac
13862              done
13863            fi
13864          else
13865                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13866            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13867          fi
13868        fi
13869      fi
13870    done
13871  done
13872  if test "X$rpathdirs" != "X"; then
13873    if test -n "$acl_hardcode_libdir_separator"; then
13874                        alldirs=
13875      for found_dir in $rpathdirs; do
13876        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13877      done
13878            acl_save_libdir="$libdir"
13879      libdir="$alldirs"
13880      eval flag=\"$acl_hardcode_libdir_flag_spec\"
13881      libdir="$acl_save_libdir"
13882      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13883    else
13884            for found_dir in $rpathdirs; do
13885        acl_save_libdir="$libdir"
13886        libdir="$found_dir"
13887        eval flag=\"$acl_hardcode_libdir_flag_spec\"
13888        libdir="$acl_save_libdir"
13889        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13890      done
13891    fi
13892  fi
13893  if test "X$ltrpathdirs" != "X"; then
13894            for found_dir in $ltrpathdirs; do
13895      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13896    done
13897  fi
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13930$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13931if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13932  $as_echo_n "(cached) " >&6
13933else
13934  gt_save_LIBS="$LIBS"
13935     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13936     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h.  */
13938#include <CoreFoundation/CFPreferences.h>
13939int
13940main ()
13941{
13942CFPreferencesCopyAppValue(NULL, NULL)
13943  ;
13944  return 0;
13945}
13946_ACEOF
13947if ac_fn_c_try_link "$LINENO"; then :
13948  gt_cv_func_CFPreferencesCopyAppValue=yes
13949else
13950  gt_cv_func_CFPreferencesCopyAppValue=no
13951fi
13952rm -f core conftest.err conftest.$ac_objext \
13953    conftest$ac_exeext conftest.$ac_ext
13954     LIBS="$gt_save_LIBS"
13955fi
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13957$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13958  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13959
13960$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13961
13962  fi
13963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13964$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13965if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13966  $as_echo_n "(cached) " >&6
13967else
13968  gt_save_LIBS="$LIBS"
13969     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13970     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971/* end confdefs.h.  */
13972#include <CoreFoundation/CFLocale.h>
13973int
13974main ()
13975{
13976CFLocaleCopyCurrent();
13977  ;
13978  return 0;
13979}
13980_ACEOF
13981if ac_fn_c_try_link "$LINENO"; then :
13982  gt_cv_func_CFLocaleCopyCurrent=yes
13983else
13984  gt_cv_func_CFLocaleCopyCurrent=no
13985fi
13986rm -f core conftest.err conftest.$ac_objext \
13987    conftest$ac_exeext conftest.$ac_ext
13988     LIBS="$gt_save_LIBS"
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13991$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13992  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13993
13994$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13995
13996  fi
13997  INTL_MACOSX_LIBS=
13998  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13999    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14000  fi
14001
14002
14003
14004
14005
14006
14007  LIBINTL=
14008  LTLIBINTL=
14009  POSUB=
14010
14011    case " $gt_needs " in
14012    *" need-formatstring-macros "*) gt_api_version=3 ;;
14013    *" need-ngettext "*) gt_api_version=2 ;;
14014    *) gt_api_version=1 ;;
14015  esac
14016  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14017  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14018
14019    if test "$USE_NLS" = "yes"; then
14020    gt_use_preinstalled_gnugettext=no
14021
14022
14023        if test $gt_api_version -ge 3; then
14024          gt_revision_test_code='
14025#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14026#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14027#endif
14028typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14029'
14030        else
14031          gt_revision_test_code=
14032        fi
14033        if test $gt_api_version -ge 2; then
14034          gt_expression_test_code=' + * ngettext ("", "", 0)'
14035        else
14036          gt_expression_test_code=
14037        fi
14038
14039        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14040$as_echo_n "checking for GNU gettext in libc... " >&6; }
14041if eval \${$gt_func_gnugettext_libc+:} false; then :
14042  $as_echo_n "(cached) " >&6
14043else
14044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045/* end confdefs.h.  */
14046
14047#include <libintl.h>
14048$gt_revision_test_code
14049extern int _nl_msg_cat_cntr;
14050extern int *_nl_domain_bindings;
14051
14052int
14053main ()
14054{
14055
14056bindtextdomain ("", "");
14057return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14058
14059  ;
14060  return 0;
14061}
14062_ACEOF
14063if ac_fn_c_try_link "$LINENO"; then :
14064  eval "$gt_func_gnugettext_libc=yes"
14065else
14066  eval "$gt_func_gnugettext_libc=no"
14067fi
14068rm -f core conftest.err conftest.$ac_objext \
14069    conftest$ac_exeext conftest.$ac_ext
14070fi
14071eval ac_res=\$$gt_func_gnugettext_libc
14072	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14073$as_echo "$ac_res" >&6; }
14074
14075        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14076
14077
14078
14079
14080
14081          am_save_CPPFLAGS="$CPPFLAGS"
14082
14083  for element in $INCICONV; do
14084    haveit=
14085    for x in $CPPFLAGS; do
14086
14087  acl_save_prefix="$prefix"
14088  prefix="$acl_final_prefix"
14089  acl_save_exec_prefix="$exec_prefix"
14090  exec_prefix="$acl_final_exec_prefix"
14091  eval x=\"$x\"
14092  exec_prefix="$acl_save_exec_prefix"
14093  prefix="$acl_save_prefix"
14094
14095      if test "X$x" = "X$element"; then
14096        haveit=yes
14097        break
14098      fi
14099    done
14100    if test -z "$haveit"; then
14101      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14102    fi
14103  done
14104
14105
14106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14107$as_echo_n "checking for iconv... " >&6; }
14108if ${am_cv_func_iconv+:} false; then :
14109  $as_echo_n "(cached) " >&6
14110else
14111
14112    am_cv_func_iconv="no, consider installing GNU libiconv"
14113    am_cv_lib_iconv=no
14114    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115/* end confdefs.h.  */
14116
14117#include <stdlib.h>
14118#include <iconv.h>
14119
14120int
14121main ()
14122{
14123iconv_t cd = iconv_open("","");
14124           iconv(cd,NULL,NULL,NULL,NULL);
14125           iconv_close(cd);
14126  ;
14127  return 0;
14128}
14129_ACEOF
14130if ac_fn_c_try_link "$LINENO"; then :
14131  am_cv_func_iconv=yes
14132fi
14133rm -f core conftest.err conftest.$ac_objext \
14134    conftest$ac_exeext conftest.$ac_ext
14135    if test "$am_cv_func_iconv" != yes; then
14136      am_save_LIBS="$LIBS"
14137      LIBS="$LIBS $LIBICONV"
14138      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139/* end confdefs.h.  */
14140
14141#include <stdlib.h>
14142#include <iconv.h>
14143
14144int
14145main ()
14146{
14147iconv_t cd = iconv_open("","");
14148             iconv(cd,NULL,NULL,NULL,NULL);
14149             iconv_close(cd);
14150  ;
14151  return 0;
14152}
14153_ACEOF
14154if ac_fn_c_try_link "$LINENO"; then :
14155  am_cv_lib_iconv=yes
14156        am_cv_func_iconv=yes
14157fi
14158rm -f core conftest.err conftest.$ac_objext \
14159    conftest$ac_exeext conftest.$ac_ext
14160      LIBS="$am_save_LIBS"
14161    fi
14162
14163fi
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14165$as_echo "$am_cv_func_iconv" >&6; }
14166  if test "$am_cv_func_iconv" = yes; then
14167    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14168$as_echo_n "checking for working iconv... " >&6; }
14169if ${am_cv_func_iconv_works+:} false; then :
14170  $as_echo_n "(cached) " >&6
14171else
14172
14173                  am_save_LIBS="$LIBS"
14174      if test $am_cv_lib_iconv = yes; then
14175        LIBS="$LIBS $LIBICONV"
14176      fi
14177      if test "$cross_compiling" = yes; then :
14178
14179         case "$host_os" in
14180           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14181           *)            am_cv_func_iconv_works="guessing yes" ;;
14182         esac
14183
14184else
14185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186/* end confdefs.h.  */
14187
14188#include <iconv.h>
14189#include <string.h>
14190int main ()
14191{
14192  int result = 0;
14193  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14194     returns.  */
14195  {
14196    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14197    if (cd_utf8_to_88591 != (iconv_t)(-1))
14198      {
14199        static const char input[] = "\342\202\254"; /* EURO SIGN */
14200        char buf[10];
14201        const char *inptr = input;
14202        size_t inbytesleft = strlen (input);
14203        char *outptr = buf;
14204        size_t outbytesleft = sizeof (buf);
14205        size_t res = iconv (cd_utf8_to_88591,
14206                            (char **) &inptr, &inbytesleft,
14207                            &outptr, &outbytesleft);
14208        if (res == 0)
14209          result |= 1;
14210        iconv_close (cd_utf8_to_88591);
14211      }
14212  }
14213  /* Test against Solaris 10 bug: Failures are not distinguishable from
14214     successful returns.  */
14215  {
14216    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14217    if (cd_ascii_to_88591 != (iconv_t)(-1))
14218      {
14219        static const char input[] = "\263";
14220        char buf[10];
14221        const char *inptr = input;
14222        size_t inbytesleft = strlen (input);
14223        char *outptr = buf;
14224        size_t outbytesleft = sizeof (buf);
14225        size_t res = iconv (cd_ascii_to_88591,
14226                            (char **) &inptr, &inbytesleft,
14227                            &outptr, &outbytesleft);
14228        if (res == 0)
14229          result |= 2;
14230        iconv_close (cd_ascii_to_88591);
14231      }
14232  }
14233  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
14234  {
14235    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14236    if (cd_88591_to_utf8 != (iconv_t)(-1))
14237      {
14238        static const char input[] = "\304";
14239        static char buf[2] = { (char)0xDE, (char)0xAD };
14240        const char *inptr = input;
14241        size_t inbytesleft = 1;
14242        char *outptr = buf;
14243        size_t outbytesleft = 1;
14244        size_t res = iconv (cd_88591_to_utf8,
14245                            (char **) &inptr, &inbytesleft,
14246                            &outptr, &outbytesleft);
14247        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14248          result |= 4;
14249        iconv_close (cd_88591_to_utf8);
14250      }
14251  }
14252#if 0 /* This bug could be worked around by the caller.  */
14253  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14254  {
14255    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14256    if (cd_88591_to_utf8 != (iconv_t)(-1))
14257      {
14258        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14259        char buf[50];
14260        const char *inptr = input;
14261        size_t inbytesleft = strlen (input);
14262        char *outptr = buf;
14263        size_t outbytesleft = sizeof (buf);
14264        size_t res = iconv (cd_88591_to_utf8,
14265                            (char **) &inptr, &inbytesleft,
14266                            &outptr, &outbytesleft);
14267        if ((int)res > 0)
14268          result |= 8;
14269        iconv_close (cd_88591_to_utf8);
14270      }
14271  }
14272#endif
14273  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14274     provided.  */
14275  if (/* Try standardized names.  */
14276      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14277      /* Try IRIX, OSF/1 names.  */
14278      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14279      /* Try AIX names.  */
14280      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14281      /* Try HP-UX names.  */
14282      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14283    result |= 16;
14284  return result;
14285}
14286_ACEOF
14287if ac_fn_c_try_run "$LINENO"; then :
14288  am_cv_func_iconv_works=yes
14289else
14290  am_cv_func_iconv_works=no
14291fi
14292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14293  conftest.$ac_objext conftest.beam conftest.$ac_ext
14294fi
14295
14296      LIBS="$am_save_LIBS"
14297
14298fi
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14300$as_echo "$am_cv_func_iconv_works" >&6; }
14301    case "$am_cv_func_iconv_works" in
14302      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14303      *)   am_func_iconv=yes ;;
14304    esac
14305  else
14306    am_func_iconv=no am_cv_lib_iconv=no
14307  fi
14308  if test "$am_func_iconv" = yes; then
14309
14310$as_echo "#define HAVE_ICONV 1" >>confdefs.h
14311
14312  fi
14313  if test "$am_cv_lib_iconv" = yes; then
14314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14315$as_echo_n "checking how to link with libiconv... " >&6; }
14316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14317$as_echo "$LIBICONV" >&6; }
14318  else
14319            CPPFLAGS="$am_save_CPPFLAGS"
14320    LIBICONV=
14321    LTLIBICONV=
14322  fi
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334    use_additional=yes
14335
14336  acl_save_prefix="$prefix"
14337  prefix="$acl_final_prefix"
14338  acl_save_exec_prefix="$exec_prefix"
14339  exec_prefix="$acl_final_exec_prefix"
14340
14341    eval additional_includedir=\"$includedir\"
14342    eval additional_libdir=\"$libdir\"
14343
14344  exec_prefix="$acl_save_exec_prefix"
14345  prefix="$acl_save_prefix"
14346
14347
14348# Check whether --with-libintl-prefix was given.
14349if test "${with_libintl_prefix+set}" = set; then :
14350  withval=$with_libintl_prefix;
14351    if test "X$withval" = "Xno"; then
14352      use_additional=no
14353    else
14354      if test "X$withval" = "X"; then
14355
14356  acl_save_prefix="$prefix"
14357  prefix="$acl_final_prefix"
14358  acl_save_exec_prefix="$exec_prefix"
14359  exec_prefix="$acl_final_exec_prefix"
14360
14361          eval additional_includedir=\"$includedir\"
14362          eval additional_libdir=\"$libdir\"
14363
14364  exec_prefix="$acl_save_exec_prefix"
14365  prefix="$acl_save_prefix"
14366
14367      else
14368        additional_includedir="$withval/include"
14369        additional_libdir="$withval/$acl_libdirstem"
14370        if test "$acl_libdirstem2" != "$acl_libdirstem" \
14371           && ! test -d "$withval/$acl_libdirstem"; then
14372          additional_libdir="$withval/$acl_libdirstem2"
14373        fi
14374      fi
14375    fi
14376
14377fi
14378
14379      LIBINTL=
14380  LTLIBINTL=
14381  INCINTL=
14382  LIBINTL_PREFIX=
14383      HAVE_LIBINTL=
14384  rpathdirs=
14385  ltrpathdirs=
14386  names_already_handled=
14387  names_next_round='intl '
14388  while test -n "$names_next_round"; do
14389    names_this_round="$names_next_round"
14390    names_next_round=
14391    for name in $names_this_round; do
14392      already_handled=
14393      for n in $names_already_handled; do
14394        if test "$n" = "$name"; then
14395          already_handled=yes
14396          break
14397        fi
14398      done
14399      if test -z "$already_handled"; then
14400        names_already_handled="$names_already_handled $name"
14401                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14402        eval value=\"\$HAVE_LIB$uppername\"
14403        if test -n "$value"; then
14404          if test "$value" = yes; then
14405            eval value=\"\$LIB$uppername\"
14406            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14407            eval value=\"\$LTLIB$uppername\"
14408            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14409          else
14410                                    :
14411          fi
14412        else
14413                              found_dir=
14414          found_la=
14415          found_so=
14416          found_a=
14417          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14418          if test -n "$acl_shlibext"; then
14419            shrext=".$acl_shlibext"             # typically: shrext=.so
14420          else
14421            shrext=
14422          fi
14423          if test $use_additional = yes; then
14424            dir="$additional_libdir"
14425                                    if test -n "$acl_shlibext"; then
14426              if test -f "$dir/$libname$shrext"; then
14427                found_dir="$dir"
14428                found_so="$dir/$libname$shrext"
14429              else
14430                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14431                  ver=`(cd "$dir" && \
14432                        for f in "$libname$shrext".*; do echo "$f"; done \
14433                        | sed -e "s,^$libname$shrext\\\\.,," \
14434                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14435                        | sed 1q ) 2>/dev/null`
14436                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14437                    found_dir="$dir"
14438                    found_so="$dir/$libname$shrext.$ver"
14439                  fi
14440                else
14441                  eval library_names=\"$acl_library_names_spec\"
14442                  for f in $library_names; do
14443                    if test -f "$dir/$f"; then
14444                      found_dir="$dir"
14445                      found_so="$dir/$f"
14446                      break
14447                    fi
14448                  done
14449                fi
14450              fi
14451            fi
14452                        if test "X$found_dir" = "X"; then
14453              if test -f "$dir/$libname.$acl_libext"; then
14454                found_dir="$dir"
14455                found_a="$dir/$libname.$acl_libext"
14456              fi
14457            fi
14458            if test "X$found_dir" != "X"; then
14459              if test -f "$dir/$libname.la"; then
14460                found_la="$dir/$libname.la"
14461              fi
14462            fi
14463          fi
14464          if test "X$found_dir" = "X"; then
14465            for x in $LDFLAGS $LTLIBINTL; do
14466
14467  acl_save_prefix="$prefix"
14468  prefix="$acl_final_prefix"
14469  acl_save_exec_prefix="$exec_prefix"
14470  exec_prefix="$acl_final_exec_prefix"
14471  eval x=\"$x\"
14472  exec_prefix="$acl_save_exec_prefix"
14473  prefix="$acl_save_prefix"
14474
14475              case "$x" in
14476                -L*)
14477                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14478                                    if test -n "$acl_shlibext"; then
14479                    if test -f "$dir/$libname$shrext"; then
14480                      found_dir="$dir"
14481                      found_so="$dir/$libname$shrext"
14482                    else
14483                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14484                        ver=`(cd "$dir" && \
14485                              for f in "$libname$shrext".*; do echo "$f"; done \
14486                              | sed -e "s,^$libname$shrext\\\\.,," \
14487                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14488                              | sed 1q ) 2>/dev/null`
14489                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14490                          found_dir="$dir"
14491                          found_so="$dir/$libname$shrext.$ver"
14492                        fi
14493                      else
14494                        eval library_names=\"$acl_library_names_spec\"
14495                        for f in $library_names; do
14496                          if test -f "$dir/$f"; then
14497                            found_dir="$dir"
14498                            found_so="$dir/$f"
14499                            break
14500                          fi
14501                        done
14502                      fi
14503                    fi
14504                  fi
14505                                    if test "X$found_dir" = "X"; then
14506                    if test -f "$dir/$libname.$acl_libext"; then
14507                      found_dir="$dir"
14508                      found_a="$dir/$libname.$acl_libext"
14509                    fi
14510                  fi
14511                  if test "X$found_dir" != "X"; then
14512                    if test -f "$dir/$libname.la"; then
14513                      found_la="$dir/$libname.la"
14514                    fi
14515                  fi
14516                  ;;
14517              esac
14518              if test "X$found_dir" != "X"; then
14519                break
14520              fi
14521            done
14522          fi
14523          if test "X$found_dir" != "X"; then
14524                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14525            if test "X$found_so" != "X"; then
14526                                                        if test "$enable_rpath" = no \
14527                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14528                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14529                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14530              else
14531                                                                                haveit=
14532                for x in $ltrpathdirs; do
14533                  if test "X$x" = "X$found_dir"; then
14534                    haveit=yes
14535                    break
14536                  fi
14537                done
14538                if test -z "$haveit"; then
14539                  ltrpathdirs="$ltrpathdirs $found_dir"
14540                fi
14541                                if test "$acl_hardcode_direct" = yes; then
14542                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14543                else
14544                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14545                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14546                                                            haveit=
14547                    for x in $rpathdirs; do
14548                      if test "X$x" = "X$found_dir"; then
14549                        haveit=yes
14550                        break
14551                      fi
14552                    done
14553                    if test -z "$haveit"; then
14554                      rpathdirs="$rpathdirs $found_dir"
14555                    fi
14556                  else
14557                                                                                haveit=
14558                    for x in $LDFLAGS $LIBINTL; do
14559
14560  acl_save_prefix="$prefix"
14561  prefix="$acl_final_prefix"
14562  acl_save_exec_prefix="$exec_prefix"
14563  exec_prefix="$acl_final_exec_prefix"
14564  eval x=\"$x\"
14565  exec_prefix="$acl_save_exec_prefix"
14566  prefix="$acl_save_prefix"
14567
14568                      if test "X$x" = "X-L$found_dir"; then
14569                        haveit=yes
14570                        break
14571                      fi
14572                    done
14573                    if test -z "$haveit"; then
14574                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14575                    fi
14576                    if test "$acl_hardcode_minus_L" != no; then
14577                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14578                    else
14579                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14580                    fi
14581                  fi
14582                fi
14583              fi
14584            else
14585              if test "X$found_a" != "X"; then
14586                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14587              else
14588                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14589              fi
14590            fi
14591                        additional_includedir=
14592            case "$found_dir" in
14593              */$acl_libdirstem | */$acl_libdirstem/)
14594                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14595                if test "$name" = 'intl'; then
14596                  LIBINTL_PREFIX="$basedir"
14597                fi
14598                additional_includedir="$basedir/include"
14599                ;;
14600              */$acl_libdirstem2 | */$acl_libdirstem2/)
14601                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14602                if test "$name" = 'intl'; then
14603                  LIBINTL_PREFIX="$basedir"
14604                fi
14605                additional_includedir="$basedir/include"
14606                ;;
14607            esac
14608            if test "X$additional_includedir" != "X"; then
14609                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14610                haveit=
14611                if test "X$additional_includedir" = "X/usr/local/include"; then
14612                  if test -n "$GCC"; then
14613                    case $host_os in
14614                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14615                    esac
14616                  fi
14617                fi
14618                if test -z "$haveit"; then
14619                  for x in $CPPFLAGS $INCINTL; do
14620
14621  acl_save_prefix="$prefix"
14622  prefix="$acl_final_prefix"
14623  acl_save_exec_prefix="$exec_prefix"
14624  exec_prefix="$acl_final_exec_prefix"
14625  eval x=\"$x\"
14626  exec_prefix="$acl_save_exec_prefix"
14627  prefix="$acl_save_prefix"
14628
14629                    if test "X$x" = "X-I$additional_includedir"; then
14630                      haveit=yes
14631                      break
14632                    fi
14633                  done
14634                  if test -z "$haveit"; then
14635                    if test -d "$additional_includedir"; then
14636                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14637                    fi
14638                  fi
14639                fi
14640              fi
14641            fi
14642                        if test -n "$found_la"; then
14643                                                        save_libdir="$libdir"
14644              case "$found_la" in
14645                */* | *\\*) . "$found_la" ;;
14646                *) . "./$found_la" ;;
14647              esac
14648              libdir="$save_libdir"
14649                            for dep in $dependency_libs; do
14650                case "$dep" in
14651                  -L*)
14652                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14653                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14654                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14655                      haveit=
14656                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14657                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14658                        if test -n "$GCC"; then
14659                          case $host_os in
14660                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14661                          esac
14662                        fi
14663                      fi
14664                      if test -z "$haveit"; then
14665                        haveit=
14666                        for x in $LDFLAGS $LIBINTL; do
14667
14668  acl_save_prefix="$prefix"
14669  prefix="$acl_final_prefix"
14670  acl_save_exec_prefix="$exec_prefix"
14671  exec_prefix="$acl_final_exec_prefix"
14672  eval x=\"$x\"
14673  exec_prefix="$acl_save_exec_prefix"
14674  prefix="$acl_save_prefix"
14675
14676                          if test "X$x" = "X-L$additional_libdir"; then
14677                            haveit=yes
14678                            break
14679                          fi
14680                        done
14681                        if test -z "$haveit"; then
14682                          if test -d "$additional_libdir"; then
14683                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14684                          fi
14685                        fi
14686                        haveit=
14687                        for x in $LDFLAGS $LTLIBINTL; do
14688
14689  acl_save_prefix="$prefix"
14690  prefix="$acl_final_prefix"
14691  acl_save_exec_prefix="$exec_prefix"
14692  exec_prefix="$acl_final_exec_prefix"
14693  eval x=\"$x\"
14694  exec_prefix="$acl_save_exec_prefix"
14695  prefix="$acl_save_prefix"
14696
14697                          if test "X$x" = "X-L$additional_libdir"; then
14698                            haveit=yes
14699                            break
14700                          fi
14701                        done
14702                        if test -z "$haveit"; then
14703                          if test -d "$additional_libdir"; then
14704                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14705                          fi
14706                        fi
14707                      fi
14708                    fi
14709                    ;;
14710                  -R*)
14711                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14712                    if test "$enable_rpath" != no; then
14713                                                                  haveit=
14714                      for x in $rpathdirs; do
14715                        if test "X$x" = "X$dir"; then
14716                          haveit=yes
14717                          break
14718                        fi
14719                      done
14720                      if test -z "$haveit"; then
14721                        rpathdirs="$rpathdirs $dir"
14722                      fi
14723                                                                  haveit=
14724                      for x in $ltrpathdirs; do
14725                        if test "X$x" = "X$dir"; then
14726                          haveit=yes
14727                          break
14728                        fi
14729                      done
14730                      if test -z "$haveit"; then
14731                        ltrpathdirs="$ltrpathdirs $dir"
14732                      fi
14733                    fi
14734                    ;;
14735                  -l*)
14736                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14737                    ;;
14738                  *.la)
14739                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14740                    ;;
14741                  *)
14742                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14743                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14744                    ;;
14745                esac
14746              done
14747            fi
14748          else
14749                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14750            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14751          fi
14752        fi
14753      fi
14754    done
14755  done
14756  if test "X$rpathdirs" != "X"; then
14757    if test -n "$acl_hardcode_libdir_separator"; then
14758                        alldirs=
14759      for found_dir in $rpathdirs; do
14760        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14761      done
14762            acl_save_libdir="$libdir"
14763      libdir="$alldirs"
14764      eval flag=\"$acl_hardcode_libdir_flag_spec\"
14765      libdir="$acl_save_libdir"
14766      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14767    else
14768            for found_dir in $rpathdirs; do
14769        acl_save_libdir="$libdir"
14770        libdir="$found_dir"
14771        eval flag=\"$acl_hardcode_libdir_flag_spec\"
14772        libdir="$acl_save_libdir"
14773        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14774      done
14775    fi
14776  fi
14777  if test "X$ltrpathdirs" != "X"; then
14778            for found_dir in $ltrpathdirs; do
14779      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14780    done
14781  fi
14782
14783
14784
14785
14786
14787
14788          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14789$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14790if eval \${$gt_func_gnugettext_libintl+:} false; then :
14791  $as_echo_n "(cached) " >&6
14792else
14793  gt_save_CPPFLAGS="$CPPFLAGS"
14794            CPPFLAGS="$CPPFLAGS $INCINTL"
14795            gt_save_LIBS="$LIBS"
14796            LIBS="$LIBS $LIBINTL"
14797                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798/* end confdefs.h.  */
14799
14800#include <libintl.h>
14801$gt_revision_test_code
14802extern int _nl_msg_cat_cntr;
14803extern
14804#ifdef __cplusplus
14805"C"
14806#endif
14807const char *_nl_expand_alias (const char *);
14808
14809int
14810main ()
14811{
14812
14813bindtextdomain ("", "");
14814return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14815
14816  ;
14817  return 0;
14818}
14819_ACEOF
14820if ac_fn_c_try_link "$LINENO"; then :
14821  eval "$gt_func_gnugettext_libintl=yes"
14822else
14823  eval "$gt_func_gnugettext_libintl=no"
14824fi
14825rm -f core conftest.err conftest.$ac_objext \
14826    conftest$ac_exeext conftest.$ac_ext
14827                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14828              LIBS="$LIBS $LIBICONV"
14829              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830/* end confdefs.h.  */
14831
14832#include <libintl.h>
14833$gt_revision_test_code
14834extern int _nl_msg_cat_cntr;
14835extern
14836#ifdef __cplusplus
14837"C"
14838#endif
14839const char *_nl_expand_alias (const char *);
14840
14841int
14842main ()
14843{
14844
14845bindtextdomain ("", "");
14846return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14847
14848  ;
14849  return 0;
14850}
14851_ACEOF
14852if ac_fn_c_try_link "$LINENO"; then :
14853  LIBINTL="$LIBINTL $LIBICONV"
14854                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14855                 eval "$gt_func_gnugettext_libintl=yes"
14856
14857fi
14858rm -f core conftest.err conftest.$ac_objext \
14859    conftest$ac_exeext conftest.$ac_ext
14860            fi
14861            CPPFLAGS="$gt_save_CPPFLAGS"
14862            LIBS="$gt_save_LIBS"
14863fi
14864eval ac_res=\$$gt_func_gnugettext_libintl
14865	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14866$as_echo "$ac_res" >&6; }
14867        fi
14868
14869                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14870           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14871                && test "$PACKAGE" != gettext-runtime \
14872                && test "$PACKAGE" != gettext-tools; }; then
14873          gt_use_preinstalled_gnugettext=yes
14874        else
14875                    LIBINTL=
14876          LTLIBINTL=
14877          INCINTL=
14878        fi
14879
14880
14881
14882    if test -n "$INTL_MACOSX_LIBS"; then
14883      if test "$gt_use_preinstalled_gnugettext" = "yes" \
14884         || test "$nls_cv_use_gnu_gettext" = "yes"; then
14885                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14886        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14887      fi
14888    fi
14889
14890    if test "$gt_use_preinstalled_gnugettext" = "yes" \
14891       || test "$nls_cv_use_gnu_gettext" = "yes"; then
14892
14893$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14894
14895    else
14896      USE_NLS=no
14897    fi
14898  fi
14899
14900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14901$as_echo_n "checking whether to use NLS... " >&6; }
14902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14903$as_echo "$USE_NLS" >&6; }
14904  if test "$USE_NLS" = "yes"; then
14905    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14906$as_echo_n "checking where the gettext function comes from... " >&6; }
14907    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14908      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14909        gt_source="external libintl"
14910      else
14911        gt_source="libc"
14912      fi
14913    else
14914      gt_source="included intl directory"
14915    fi
14916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14917$as_echo "$gt_source" >&6; }
14918  fi
14919
14920  if test "$USE_NLS" = "yes"; then
14921
14922    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14923      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14924        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14925$as_echo_n "checking how to link with libintl... " >&6; }
14926        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14927$as_echo "$LIBINTL" >&6; }
14928
14929  for element in $INCINTL; do
14930    haveit=
14931    for x in $CPPFLAGS; do
14932
14933  acl_save_prefix="$prefix"
14934  prefix="$acl_final_prefix"
14935  acl_save_exec_prefix="$exec_prefix"
14936  exec_prefix="$acl_final_exec_prefix"
14937  eval x=\"$x\"
14938  exec_prefix="$acl_save_exec_prefix"
14939  prefix="$acl_save_prefix"
14940
14941      if test "X$x" = "X$element"; then
14942        haveit=yes
14943        break
14944      fi
14945    done
14946    if test -z "$haveit"; then
14947      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14948    fi
14949  done
14950
14951      fi
14952
14953
14954$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14955
14956
14957$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14958
14959    fi
14960
14961        POSUB=po
14962  fi
14963
14964
14965
14966    INTLLIBS="$LIBINTL"
14967
14968
14969
14970
14971
14972
14973
14974# Let's make gcc noisy
14975CFLAGS="$CFLAGS -Wall"
14976
14977ac_config_files="$ac_config_files Makefile po/Makefile.in"
14978
14979cat >confcache <<\_ACEOF
14980# This file is a shell script that caches the results of configure
14981# tests run on this system so they can be shared between configure
14982# scripts and configure runs, see configure's option --config-cache.
14983# It is not useful on other systems.  If it contains results you don't
14984# want to keep, you may remove or edit it.
14985#
14986# config.status only pays attention to the cache file if you give it
14987# the --recheck option to rerun configure.
14988#
14989# `ac_cv_env_foo' variables (set or unset) will be overridden when
14990# loading this file, other *unset* `ac_cv_foo' will be assigned the
14991# following values.
14992
14993_ACEOF
14994
14995# The following way of writing the cache mishandles newlines in values,
14996# but we know of no workaround that is simple, portable, and efficient.
14997# So, we kill variables containing newlines.
14998# Ultrix sh set writes to stderr and can't be redirected directly,
14999# and sets the high bit in the cache file unless we assign to the vars.
15000(
15001  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15002    eval ac_val=\$$ac_var
15003    case $ac_val in #(
15004    *${as_nl}*)
15005      case $ac_var in #(
15006      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15008      esac
15009      case $ac_var in #(
15010      _ | IFS | as_nl) ;; #(
15011      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15012      *) { eval $ac_var=; unset $ac_var;} ;;
15013      esac ;;
15014    esac
15015  done
15016
15017  (set) 2>&1 |
15018    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15019    *${as_nl}ac_space=\ *)
15020      # `set' does not quote correctly, so add quotes: double-quote
15021      # substitution turns \\\\ into \\, and sed turns \\ into \.
15022      sed -n \
15023	"s/'/'\\\\''/g;
15024	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15025      ;; #(
15026    *)
15027      # `set' quotes correctly as required by POSIX, so do not add quotes.
15028      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15029      ;;
15030    esac |
15031    sort
15032) |
15033  sed '
15034     /^ac_cv_env_/b end
15035     t clear
15036     :clear
15037     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15038     t end
15039     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15040     :end' >>confcache
15041if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15042  if test -w "$cache_file"; then
15043    if test "x$cache_file" != "x/dev/null"; then
15044      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15045$as_echo "$as_me: updating cache $cache_file" >&6;}
15046      if test ! -f "$cache_file" || test -h "$cache_file"; then
15047	cat confcache >"$cache_file"
15048      else
15049        case $cache_file in #(
15050        */* | ?:*)
15051	  mv -f confcache "$cache_file"$$ &&
15052	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15053        *)
15054	  mv -f confcache "$cache_file" ;;
15055	esac
15056      fi
15057    fi
15058  else
15059    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15060$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15061  fi
15062fi
15063rm -f confcache
15064
15065test "x$prefix" = xNONE && prefix=$ac_default_prefix
15066# Let make expand exec_prefix.
15067test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15068
15069DEFS=-DHAVE_CONFIG_H
15070
15071ac_libobjs=
15072ac_ltlibobjs=
15073U=
15074for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15075  # 1. Remove the extension, and $U if already installed.
15076  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15077  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15078  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15079  #    will be set to the directory where LIBOBJS objects are built.
15080  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15081  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15082done
15083LIBOBJS=$ac_libobjs
15084
15085LTLIBOBJS=$ac_ltlibobjs
15086
15087
15088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15089$as_echo_n "checking that generated files are newer than configure... " >&6; }
15090   if test -n "$am_sleep_pid"; then
15091     # Hide warnings about reused PIDs.
15092     wait $am_sleep_pid 2>/dev/null
15093   fi
15094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15095$as_echo "done" >&6; }
15096 if test -n "$EXEEXT"; then
15097  am__EXEEXT_TRUE=
15098  am__EXEEXT_FALSE='#'
15099else
15100  am__EXEEXT_TRUE='#'
15101  am__EXEEXT_FALSE=
15102fi
15103
15104if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15105  as_fn_error $? "conditional \"AMDEP\" was never defined.
15106Usually this means the macro was only invoked conditionally." "$LINENO" 5
15107fi
15108if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15109  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15110Usually this means the macro was only invoked conditionally." "$LINENO" 5
15111fi
15112if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15113  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15114Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115fi
15116
15117: "${CONFIG_STATUS=./config.status}"
15118ac_write_fail=0
15119ac_clean_files_save=$ac_clean_files
15120ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15121{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15122$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15123as_write_fail=0
15124cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15125#! $SHELL
15126# Generated by $as_me.
15127# Run this file to recreate the current configuration.
15128# Compiler output produced by configure, useful for debugging
15129# configure, is in config.log if it exists.
15130
15131debug=false
15132ac_cs_recheck=false
15133ac_cs_silent=false
15134
15135SHELL=\${CONFIG_SHELL-$SHELL}
15136export SHELL
15137_ASEOF
15138cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15139## -------------------- ##
15140## M4sh Initialization. ##
15141## -------------------- ##
15142
15143# Be more Bourne compatible
15144DUALCASE=1; export DUALCASE # for MKS sh
15145if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15146  emulate sh
15147  NULLCMD=:
15148  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15149  # is contrary to our usage.  Disable this feature.
15150  alias -g '${1+"$@"}'='"$@"'
15151  setopt NO_GLOB_SUBST
15152else
15153  case `(set -o) 2>/dev/null` in #(
15154  *posix*) :
15155    set -o posix ;; #(
15156  *) :
15157     ;;
15158esac
15159fi
15160
15161
15162as_nl='
15163'
15164export as_nl
15165# Printing a long string crashes Solaris 7 /usr/bin/printf.
15166as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15167as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15168as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15169# Prefer a ksh shell builtin over an external printf program on Solaris,
15170# but without wasting forks for bash or zsh.
15171if test -z "$BASH_VERSION$ZSH_VERSION" \
15172    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15173  as_echo='print -r --'
15174  as_echo_n='print -rn --'
15175elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15176  as_echo='printf %s\n'
15177  as_echo_n='printf %s'
15178else
15179  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15180    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15181    as_echo_n='/usr/ucb/echo -n'
15182  else
15183    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15184    as_echo_n_body='eval
15185      arg=$1;
15186      case $arg in #(
15187      *"$as_nl"*)
15188	expr "X$arg" : "X\\(.*\\)$as_nl";
15189	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15190      esac;
15191      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15192    '
15193    export as_echo_n_body
15194    as_echo_n='sh -c $as_echo_n_body as_echo'
15195  fi
15196  export as_echo_body
15197  as_echo='sh -c $as_echo_body as_echo'
15198fi
15199
15200# The user is always right.
15201if test "${PATH_SEPARATOR+set}" != set; then
15202  PATH_SEPARATOR=:
15203  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15204    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15205      PATH_SEPARATOR=';'
15206  }
15207fi
15208
15209
15210# IFS
15211# We need space, tab and new line, in precisely that order.  Quoting is
15212# there to prevent editors from complaining about space-tab.
15213# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15214# splitting by setting IFS to empty value.)
15215IFS=" ""	$as_nl"
15216
15217# Find who we are.  Look in the path if we contain no directory separator.
15218as_myself=
15219case $0 in #((
15220  *[\\/]* ) as_myself=$0 ;;
15221  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15222for as_dir in $PATH
15223do
15224  IFS=$as_save_IFS
15225  test -z "$as_dir" && as_dir=.
15226    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15227  done
15228IFS=$as_save_IFS
15229
15230     ;;
15231esac
15232# We did not find ourselves, most probably we were run as `sh COMMAND'
15233# in which case we are not to be found in the path.
15234if test "x$as_myself" = x; then
15235  as_myself=$0
15236fi
15237if test ! -f "$as_myself"; then
15238  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15239  exit 1
15240fi
15241
15242# Unset variables that we do not need and which cause bugs (e.g. in
15243# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15244# suppresses any "Segmentation fault" message there.  '((' could
15245# trigger a bug in pdksh 5.2.14.
15246for as_var in BASH_ENV ENV MAIL MAILPATH
15247do eval test x\${$as_var+set} = xset \
15248  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15249done
15250PS1='$ '
15251PS2='> '
15252PS4='+ '
15253
15254# NLS nuisances.
15255LC_ALL=C
15256export LC_ALL
15257LANGUAGE=C
15258export LANGUAGE
15259
15260# CDPATH.
15261(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15262
15263
15264# as_fn_error STATUS ERROR [LINENO LOG_FD]
15265# ----------------------------------------
15266# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15267# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15268# script with STATUS, using 1 if that was 0.
15269as_fn_error ()
15270{
15271  as_status=$1; test $as_status -eq 0 && as_status=1
15272  if test "$4"; then
15273    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15274    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15275  fi
15276  $as_echo "$as_me: error: $2" >&2
15277  as_fn_exit $as_status
15278} # as_fn_error
15279
15280
15281# as_fn_set_status STATUS
15282# -----------------------
15283# Set $? to STATUS, without forking.
15284as_fn_set_status ()
15285{
15286  return $1
15287} # as_fn_set_status
15288
15289# as_fn_exit STATUS
15290# -----------------
15291# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15292as_fn_exit ()
15293{
15294  set +e
15295  as_fn_set_status $1
15296  exit $1
15297} # as_fn_exit
15298
15299# as_fn_unset VAR
15300# ---------------
15301# Portably unset VAR.
15302as_fn_unset ()
15303{
15304  { eval $1=; unset $1;}
15305}
15306as_unset=as_fn_unset
15307# as_fn_append VAR VALUE
15308# ----------------------
15309# Append the text in VALUE to the end of the definition contained in VAR. Take
15310# advantage of any shell optimizations that allow amortized linear growth over
15311# repeated appends, instead of the typical quadratic growth present in naive
15312# implementations.
15313if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15314  eval 'as_fn_append ()
15315  {
15316    eval $1+=\$2
15317  }'
15318else
15319  as_fn_append ()
15320  {
15321    eval $1=\$$1\$2
15322  }
15323fi # as_fn_append
15324
15325# as_fn_arith ARG...
15326# ------------------
15327# Perform arithmetic evaluation on the ARGs, and store the result in the
15328# global $as_val. Take advantage of shells that can avoid forks. The arguments
15329# must be portable across $(()) and expr.
15330if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15331  eval 'as_fn_arith ()
15332  {
15333    as_val=$(( $* ))
15334  }'
15335else
15336  as_fn_arith ()
15337  {
15338    as_val=`expr "$@" || test $? -eq 1`
15339  }
15340fi # as_fn_arith
15341
15342
15343if expr a : '\(a\)' >/dev/null 2>&1 &&
15344   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15345  as_expr=expr
15346else
15347  as_expr=false
15348fi
15349
15350if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15351  as_basename=basename
15352else
15353  as_basename=false
15354fi
15355
15356if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15357  as_dirname=dirname
15358else
15359  as_dirname=false
15360fi
15361
15362as_me=`$as_basename -- "$0" ||
15363$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15364	 X"$0" : 'X\(//\)$' \| \
15365	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15366$as_echo X/"$0" |
15367    sed '/^.*\/\([^/][^/]*\)\/*$/{
15368	    s//\1/
15369	    q
15370	  }
15371	  /^X\/\(\/\/\)$/{
15372	    s//\1/
15373	    q
15374	  }
15375	  /^X\/\(\/\).*/{
15376	    s//\1/
15377	    q
15378	  }
15379	  s/.*/./; q'`
15380
15381# Avoid depending upon Character Ranges.
15382as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15383as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15384as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15385as_cr_digits='0123456789'
15386as_cr_alnum=$as_cr_Letters$as_cr_digits
15387
15388ECHO_C= ECHO_N= ECHO_T=
15389case `echo -n x` in #(((((
15390-n*)
15391  case `echo 'xy\c'` in
15392  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15393  xy)  ECHO_C='\c';;
15394  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15395       ECHO_T='	';;
15396  esac;;
15397*)
15398  ECHO_N='-n';;
15399esac
15400
15401rm -f conf$$ conf$$.exe conf$$.file
15402if test -d conf$$.dir; then
15403  rm -f conf$$.dir/conf$$.file
15404else
15405  rm -f conf$$.dir
15406  mkdir conf$$.dir 2>/dev/null
15407fi
15408if (echo >conf$$.file) 2>/dev/null; then
15409  if ln -s conf$$.file conf$$ 2>/dev/null; then
15410    as_ln_s='ln -s'
15411    # ... but there are two gotchas:
15412    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15413    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15414    # In both cases, we have to default to `cp -pR'.
15415    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15416      as_ln_s='cp -pR'
15417  elif ln conf$$.file conf$$ 2>/dev/null; then
15418    as_ln_s=ln
15419  else
15420    as_ln_s='cp -pR'
15421  fi
15422else
15423  as_ln_s='cp -pR'
15424fi
15425rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15426rmdir conf$$.dir 2>/dev/null
15427
15428
15429# as_fn_mkdir_p
15430# -------------
15431# Create "$as_dir" as a directory, including parents if necessary.
15432as_fn_mkdir_p ()
15433{
15434
15435  case $as_dir in #(
15436  -*) as_dir=./$as_dir;;
15437  esac
15438  test -d "$as_dir" || eval $as_mkdir_p || {
15439    as_dirs=
15440    while :; do
15441      case $as_dir in #(
15442      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15443      *) as_qdir=$as_dir;;
15444      esac
15445      as_dirs="'$as_qdir' $as_dirs"
15446      as_dir=`$as_dirname -- "$as_dir" ||
15447$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15448	 X"$as_dir" : 'X\(//\)[^/]' \| \
15449	 X"$as_dir" : 'X\(//\)$' \| \
15450	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15451$as_echo X"$as_dir" |
15452    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15453	    s//\1/
15454	    q
15455	  }
15456	  /^X\(\/\/\)[^/].*/{
15457	    s//\1/
15458	    q
15459	  }
15460	  /^X\(\/\/\)$/{
15461	    s//\1/
15462	    q
15463	  }
15464	  /^X\(\/\).*/{
15465	    s//\1/
15466	    q
15467	  }
15468	  s/.*/./; q'`
15469      test -d "$as_dir" && break
15470    done
15471    test -z "$as_dirs" || eval "mkdir $as_dirs"
15472  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15473
15474
15475} # as_fn_mkdir_p
15476if mkdir -p . 2>/dev/null; then
15477  as_mkdir_p='mkdir -p "$as_dir"'
15478else
15479  test -d ./-p && rmdir ./-p
15480  as_mkdir_p=false
15481fi
15482
15483
15484# as_fn_executable_p FILE
15485# -----------------------
15486# Test if FILE is an executable regular file.
15487as_fn_executable_p ()
15488{
15489  test -f "$1" && test -x "$1"
15490} # as_fn_executable_p
15491as_test_x='test -x'
15492as_executable_p=as_fn_executable_p
15493
15494# Sed expression to map a string onto a valid CPP name.
15495as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15496
15497# Sed expression to map a string onto a valid variable name.
15498as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15499
15500
15501exec 6>&1
15502## ----------------------------------- ##
15503## Main body of $CONFIG_STATUS script. ##
15504## ----------------------------------- ##
15505_ASEOF
15506test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15507
15508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15509# Save the log message, to keep $0 and so on meaningful, and to
15510# report actual input values of CONFIG_FILES etc. instead of their
15511# values after options handling.
15512ac_log="
15513This file was extended by libkpass $as_me 6, which was
15514generated by GNU Autoconf 2.69.  Invocation command line was
15515
15516  CONFIG_FILES    = $CONFIG_FILES
15517  CONFIG_HEADERS  = $CONFIG_HEADERS
15518  CONFIG_LINKS    = $CONFIG_LINKS
15519  CONFIG_COMMANDS = $CONFIG_COMMANDS
15520  $ $0 $@
15521
15522on `(hostname || uname -n) 2>/dev/null | sed 1q`
15523"
15524
15525_ACEOF
15526
15527case $ac_config_files in *"
15528"*) set x $ac_config_files; shift; ac_config_files=$*;;
15529esac
15530
15531case $ac_config_headers in *"
15532"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15533esac
15534
15535
15536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15537# Files that config.status was made for.
15538config_files="$ac_config_files"
15539config_headers="$ac_config_headers"
15540config_commands="$ac_config_commands"
15541
15542_ACEOF
15543
15544cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15545ac_cs_usage="\
15546\`$as_me' instantiates files and other configuration actions
15547from templates according to the current configuration.  Unless the files
15548and actions are specified as TAGs, all are instantiated by default.
15549
15550Usage: $0 [OPTION]... [TAG]...
15551
15552  -h, --help       print this help, then exit
15553  -V, --version    print version number and configuration settings, then exit
15554      --config     print configuration, then exit
15555  -q, --quiet, --silent
15556                   do not print progress messages
15557  -d, --debug      don't remove temporary files
15558      --recheck    update $as_me by reconfiguring in the same conditions
15559      --file=FILE[:TEMPLATE]
15560                   instantiate the configuration file FILE
15561      --header=FILE[:TEMPLATE]
15562                   instantiate the configuration header FILE
15563
15564Configuration files:
15565$config_files
15566
15567Configuration headers:
15568$config_headers
15569
15570Configuration commands:
15571$config_commands
15572
15573Report bugs to <libkpass@bldewolf.com>."
15574
15575_ACEOF
15576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15577ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15578ac_cs_version="\\
15579libkpass config.status 6
15580configured by $0, generated by GNU Autoconf 2.69,
15581  with options \\"\$ac_cs_config\\"
15582
15583Copyright (C) 2012 Free Software Foundation, Inc.
15584This config.status script is free software; the Free Software Foundation
15585gives unlimited permission to copy, distribute and modify it."
15586
15587ac_pwd='$ac_pwd'
15588srcdir='$srcdir'
15589INSTALL='$INSTALL'
15590MKDIR_P='$MKDIR_P'
15591AWK='$AWK'
15592test -n "\$AWK" || AWK=awk
15593_ACEOF
15594
15595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15596# The default lists apply if the user does not specify any file.
15597ac_need_defaults=:
15598while test $# != 0
15599do
15600  case $1 in
15601  --*=?*)
15602    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15603    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15604    ac_shift=:
15605    ;;
15606  --*=)
15607    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15608    ac_optarg=
15609    ac_shift=:
15610    ;;
15611  *)
15612    ac_option=$1
15613    ac_optarg=$2
15614    ac_shift=shift
15615    ;;
15616  esac
15617
15618  case $ac_option in
15619  # Handling of the options.
15620  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15621    ac_cs_recheck=: ;;
15622  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15623    $as_echo "$ac_cs_version"; exit ;;
15624  --config | --confi | --conf | --con | --co | --c )
15625    $as_echo "$ac_cs_config"; exit ;;
15626  --debug | --debu | --deb | --de | --d | -d )
15627    debug=: ;;
15628  --file | --fil | --fi | --f )
15629    $ac_shift
15630    case $ac_optarg in
15631    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15632    '') as_fn_error $? "missing file argument" ;;
15633    esac
15634    as_fn_append CONFIG_FILES " '$ac_optarg'"
15635    ac_need_defaults=false;;
15636  --header | --heade | --head | --hea )
15637    $ac_shift
15638    case $ac_optarg in
15639    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15640    esac
15641    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15642    ac_need_defaults=false;;
15643  --he | --h)
15644    # Conflict between --help and --header
15645    as_fn_error $? "ambiguous option: \`$1'
15646Try \`$0 --help' for more information.";;
15647  --help | --hel | -h )
15648    $as_echo "$ac_cs_usage"; exit ;;
15649  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15650  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15651    ac_cs_silent=: ;;
15652
15653  # This is an error.
15654  -*) as_fn_error $? "unrecognized option: \`$1'
15655Try \`$0 --help' for more information." ;;
15656
15657  *) as_fn_append ac_config_targets " $1"
15658     ac_need_defaults=false ;;
15659
15660  esac
15661  shift
15662done
15663
15664ac_configure_extra_args=
15665
15666if $ac_cs_silent; then
15667  exec 6>/dev/null
15668  ac_configure_extra_args="$ac_configure_extra_args --silent"
15669fi
15670
15671_ACEOF
15672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15673if \$ac_cs_recheck; then
15674  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15675  shift
15676  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15677  CONFIG_SHELL='$SHELL'
15678  export CONFIG_SHELL
15679  exec "\$@"
15680fi
15681
15682_ACEOF
15683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15684exec 5>>config.log
15685{
15686  echo
15687  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15688## Running $as_me. ##
15689_ASBOX
15690  $as_echo "$ac_log"
15691} >&5
15692
15693_ACEOF
15694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15695#
15696# INIT-COMMANDS
15697#
15698AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15699
15700
15701# The HP-UX ksh and POSIX shell print the target directory to stdout
15702# if CDPATH is set.
15703(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15704
15705sed_quote_subst='$sed_quote_subst'
15706double_quote_subst='$double_quote_subst'
15707delay_variable_subst='$delay_variable_subst'
15708macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15709macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15710enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15711enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15712pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15713enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15714SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15715ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15716PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15717host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15718host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15719host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15720build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15721build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15722build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15723SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15724Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15725GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15726EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15727FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15728LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15729NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15730LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15731max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15732ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15733exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15734lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15735lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15736lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15737lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15738lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15739reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15740reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15741OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15742deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15743file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15744file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15745want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15746DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15747sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15748AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15749AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15750archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15751STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15752RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15753old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15754old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15755old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15756lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15757CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15758CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15759compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15760GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15761lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15762lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15763lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15764lt_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"`'
15765nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15766lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15767objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15768MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15769lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15770lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15771lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15772lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15773lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15774need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15775MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15776DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15777NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15778LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15779OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15780OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15781libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15782shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15783extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15784archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15785enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15786export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15787whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15788compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15789old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15790old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15791archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15792archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15793module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15794module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15795with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15796allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15797no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15798hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15799hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15800hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15801hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15802hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15803hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15804hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15805inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15806link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15807always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15808export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15809exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15810include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15811prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15812postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15813file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15814variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15815need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15816need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15817version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15818runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15819shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15820shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15821libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15822library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15823soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15824install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15825postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15826postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15827finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15828finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15829hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15830sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15831sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15832hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15833enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15834enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15835enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15836old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15837striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15838
15839LTCC='$LTCC'
15840LTCFLAGS='$LTCFLAGS'
15841compiler='$compiler_DEFAULT'
15842
15843# A function that is used when there is no print builtin or printf.
15844func_fallback_echo ()
15845{
15846  eval 'cat <<_LTECHO_EOF
15847\$1
15848_LTECHO_EOF'
15849}
15850
15851# Quote evaled strings.
15852for var in SHELL \
15853ECHO \
15854PATH_SEPARATOR \
15855SED \
15856GREP \
15857EGREP \
15858FGREP \
15859LD \
15860NM \
15861LN_S \
15862lt_SP2NL \
15863lt_NL2SP \
15864reload_flag \
15865OBJDUMP \
15866deplibs_check_method \
15867file_magic_cmd \
15868file_magic_glob \
15869want_nocaseglob \
15870DLLTOOL \
15871sharedlib_from_linklib_cmd \
15872AR \
15873AR_FLAGS \
15874archiver_list_spec \
15875STRIP \
15876RANLIB \
15877CC \
15878CFLAGS \
15879compiler \
15880lt_cv_sys_global_symbol_pipe \
15881lt_cv_sys_global_symbol_to_cdecl \
15882lt_cv_sys_global_symbol_to_c_name_address \
15883lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15884nm_file_list_spec \
15885lt_prog_compiler_no_builtin_flag \
15886lt_prog_compiler_pic \
15887lt_prog_compiler_wl \
15888lt_prog_compiler_static \
15889lt_cv_prog_compiler_c_o \
15890need_locks \
15891MANIFEST_TOOL \
15892DSYMUTIL \
15893NMEDIT \
15894LIPO \
15895OTOOL \
15896OTOOL64 \
15897shrext_cmds \
15898export_dynamic_flag_spec \
15899whole_archive_flag_spec \
15900compiler_needs_object \
15901with_gnu_ld \
15902allow_undefined_flag \
15903no_undefined_flag \
15904hardcode_libdir_flag_spec \
15905hardcode_libdir_separator \
15906exclude_expsyms \
15907include_expsyms \
15908file_list_spec \
15909variables_saved_for_relink \
15910libname_spec \
15911library_names_spec \
15912soname_spec \
15913install_override_mode \
15914finish_eval \
15915old_striplib \
15916striplib; do
15917    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15918    *[\\\\\\\`\\"\\\$]*)
15919      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15920      ;;
15921    *)
15922      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15923      ;;
15924    esac
15925done
15926
15927# Double-quote double-evaled strings.
15928for var in reload_cmds \
15929old_postinstall_cmds \
15930old_postuninstall_cmds \
15931old_archive_cmds \
15932extract_expsyms_cmds \
15933old_archive_from_new_cmds \
15934old_archive_from_expsyms_cmds \
15935archive_cmds \
15936archive_expsym_cmds \
15937module_cmds \
15938module_expsym_cmds \
15939export_symbols_cmds \
15940prelink_cmds \
15941postlink_cmds \
15942postinstall_cmds \
15943postuninstall_cmds \
15944finish_cmds \
15945sys_lib_search_path_spec \
15946sys_lib_dlsearch_path_spec; do
15947    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15948    *[\\\\\\\`\\"\\\$]*)
15949      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15950      ;;
15951    *)
15952      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15953      ;;
15954    esac
15955done
15956
15957ac_aux_dir='$ac_aux_dir'
15958xsi_shell='$xsi_shell'
15959lt_shell_append='$lt_shell_append'
15960
15961# See if we are running on zsh, and set the options which allow our
15962# commands through without removal of \ escapes INIT.
15963if test -n "\${ZSH_VERSION+set}" ; then
15964   setopt NO_GLOB_SUBST
15965fi
15966
15967
15968    PACKAGE='$PACKAGE'
15969    VERSION='$VERSION'
15970    TIMESTAMP='$TIMESTAMP'
15971    RM='$RM'
15972    ofile='$ofile'
15973
15974
15975
15976# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15977    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15978    # from automake < 1.5.
15979    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15980    # Capture the value of LINGUAS because we need it to compute CATALOGS.
15981    LINGUAS="${LINGUAS-%UNSET%}"
15982
15983
15984_ACEOF
15985
15986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15987
15988# Handling of arguments.
15989for ac_config_target in $ac_config_targets
15990do
15991  case $ac_config_target in
15992    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15993    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15994    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15995    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15996    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15997    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15998
15999  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16000  esac
16001done
16002
16003
16004# If the user did not use the arguments to specify the items to instantiate,
16005# then the envvar interface is used.  Set only those that are not.
16006# We use the long form for the default assignment because of an extremely
16007# bizarre bug on SunOS 4.1.3.
16008if $ac_need_defaults; then
16009  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16010  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16011  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16012fi
16013
16014# Have a temporary directory for convenience.  Make it in the build tree
16015# simply because there is no reason against having it here, and in addition,
16016# creating and moving files from /tmp can sometimes cause problems.
16017# Hook for its removal unless debugging.
16018# Note that there is a small window in which the directory will not be cleaned:
16019# after its creation but before its name has been assigned to `$tmp'.
16020$debug ||
16021{
16022  tmp= ac_tmp=
16023  trap 'exit_status=$?
16024  : "${ac_tmp:=$tmp}"
16025  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16026' 0
16027  trap 'as_fn_exit 1' 1 2 13 15
16028}
16029# Create a (secure) tmp directory for tmp files.
16030
16031{
16032  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16033  test -d "$tmp"
16034}  ||
16035{
16036  tmp=./conf$$-$RANDOM
16037  (umask 077 && mkdir "$tmp")
16038} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16039ac_tmp=$tmp
16040
16041# Set up the scripts for CONFIG_FILES section.
16042# No need to generate them if there are no CONFIG_FILES.
16043# This happens for instance with `./config.status config.h'.
16044if test -n "$CONFIG_FILES"; then
16045
16046
16047ac_cr=`echo X | tr X '\015'`
16048# On cygwin, bash can eat \r inside `` if the user requested igncr.
16049# But we know of no other shell where ac_cr would be empty at this
16050# point, so we can use a bashism as a fallback.
16051if test "x$ac_cr" = x; then
16052  eval ac_cr=\$\'\\r\'
16053fi
16054ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16055if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16056  ac_cs_awk_cr='\\r'
16057else
16058  ac_cs_awk_cr=$ac_cr
16059fi
16060
16061echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16062_ACEOF
16063
16064
16065{
16066  echo "cat >conf$$subs.awk <<_ACEOF" &&
16067  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16068  echo "_ACEOF"
16069} >conf$$subs.sh ||
16070  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16071ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16072ac_delim='%!_!# '
16073for ac_last_try in false false false false false :; do
16074  . ./conf$$subs.sh ||
16075    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16076
16077  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16078  if test $ac_delim_n = $ac_delim_num; then
16079    break
16080  elif $ac_last_try; then
16081    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16082  else
16083    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16084  fi
16085done
16086rm -f conf$$subs.sh
16087
16088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16089cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16090_ACEOF
16091sed -n '
16092h
16093s/^/S["/; s/!.*/"]=/
16094p
16095g
16096s/^[^!]*!//
16097:repl
16098t repl
16099s/'"$ac_delim"'$//
16100t delim
16101:nl
16102h
16103s/\(.\{148\}\)..*/\1/
16104t more1
16105s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16106p
16107n
16108b repl
16109:more1
16110s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16111p
16112g
16113s/.\{148\}//
16114t nl
16115:delim
16116h
16117s/\(.\{148\}\)..*/\1/
16118t more2
16119s/["\\]/\\&/g; s/^/"/; s/$/"/
16120p
16121b
16122:more2
16123s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16124p
16125g
16126s/.\{148\}//
16127t delim
16128' <conf$$subs.awk | sed '
16129/^[^""]/{
16130  N
16131  s/\n//
16132}
16133' >>$CONFIG_STATUS || ac_write_fail=1
16134rm -f conf$$subs.awk
16135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16136_ACAWK
16137cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16138  for (key in S) S_is_set[key] = 1
16139  FS = ""
16140
16141}
16142{
16143  line = $ 0
16144  nfields = split(line, field, "@")
16145  substed = 0
16146  len = length(field[1])
16147  for (i = 2; i < nfields; i++) {
16148    key = field[i]
16149    keylen = length(key)
16150    if (S_is_set[key]) {
16151      value = S[key]
16152      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16153      len += length(value) + length(field[++i])
16154      substed = 1
16155    } else
16156      len += 1 + keylen
16157  }
16158
16159  print line
16160}
16161
16162_ACAWK
16163_ACEOF
16164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16165if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16166  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16167else
16168  cat
16169fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16170  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16171_ACEOF
16172
16173# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16174# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16175# trailing colons and then remove the whole line if VPATH becomes empty
16176# (actually we leave an empty line to preserve line numbers).
16177if test "x$srcdir" = x.; then
16178  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16179h
16180s///
16181s/^/:/
16182s/[	 ]*$/:/
16183s/:\$(srcdir):/:/g
16184s/:\${srcdir}:/:/g
16185s/:@srcdir@:/:/g
16186s/^:*//
16187s/:*$//
16188x
16189s/\(=[	 ]*\).*/\1/
16190G
16191s/\n//
16192s/^[^=]*=[	 ]*$//
16193}'
16194fi
16195
16196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16197fi # test -n "$CONFIG_FILES"
16198
16199# Set up the scripts for CONFIG_HEADERS section.
16200# No need to generate them if there are no CONFIG_HEADERS.
16201# This happens for instance with `./config.status Makefile'.
16202if test -n "$CONFIG_HEADERS"; then
16203cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16204BEGIN {
16205_ACEOF
16206
16207# Transform confdefs.h into an awk script `defines.awk', embedded as
16208# here-document in config.status, that substitutes the proper values into
16209# config.h.in to produce config.h.
16210
16211# Create a delimiter string that does not exist in confdefs.h, to ease
16212# handling of long lines.
16213ac_delim='%!_!# '
16214for ac_last_try in false false :; do
16215  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16216  if test -z "$ac_tt"; then
16217    break
16218  elif $ac_last_try; then
16219    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16220  else
16221    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16222  fi
16223done
16224
16225# For the awk script, D is an array of macro values keyed by name,
16226# likewise P contains macro parameters if any.  Preserve backslash
16227# newline sequences.
16228
16229ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16230sed -n '
16231s/.\{148\}/&'"$ac_delim"'/g
16232t rset
16233:rset
16234s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16235t def
16236d
16237:def
16238s/\\$//
16239t bsnl
16240s/["\\]/\\&/g
16241s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16242D["\1"]=" \3"/p
16243s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16244d
16245:bsnl
16246s/["\\]/\\&/g
16247s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16248D["\1"]=" \3\\\\\\n"\\/p
16249t cont
16250s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16251t cont
16252d
16253:cont
16254n
16255s/.\{148\}/&'"$ac_delim"'/g
16256t clear
16257:clear
16258s/\\$//
16259t bsnlc
16260s/["\\]/\\&/g; s/^/"/; s/$/"/p
16261d
16262:bsnlc
16263s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16264b cont
16265' <confdefs.h | sed '
16266s/'"$ac_delim"'/"\\\
16267"/g' >>$CONFIG_STATUS || ac_write_fail=1
16268
16269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270  for (key in D) D_is_set[key] = 1
16271  FS = ""
16272}
16273/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16274  line = \$ 0
16275  split(line, arg, " ")
16276  if (arg[1] == "#") {
16277    defundef = arg[2]
16278    mac1 = arg[3]
16279  } else {
16280    defundef = substr(arg[1], 2)
16281    mac1 = arg[2]
16282  }
16283  split(mac1, mac2, "(") #)
16284  macro = mac2[1]
16285  prefix = substr(line, 1, index(line, defundef) - 1)
16286  if (D_is_set[macro]) {
16287    # Preserve the white space surrounding the "#".
16288    print prefix "define", macro P[macro] D[macro]
16289    next
16290  } else {
16291    # Replace #undef with comments.  This is necessary, for example,
16292    # in the case of _POSIX_SOURCE, which is predefined and required
16293    # on some systems where configure will not decide to define it.
16294    if (defundef == "undef") {
16295      print "/*", prefix defundef, macro, "*/"
16296      next
16297    }
16298  }
16299}
16300{ print }
16301_ACAWK
16302_ACEOF
16303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16304  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16305fi # test -n "$CONFIG_HEADERS"
16306
16307
16308eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16309shift
16310for ac_tag
16311do
16312  case $ac_tag in
16313  :[FHLC]) ac_mode=$ac_tag; continue;;
16314  esac
16315  case $ac_mode$ac_tag in
16316  :[FHL]*:*);;
16317  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16318  :[FH]-) ac_tag=-:-;;
16319  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16320  esac
16321  ac_save_IFS=$IFS
16322  IFS=:
16323  set x $ac_tag
16324  IFS=$ac_save_IFS
16325  shift
16326  ac_file=$1
16327  shift
16328
16329  case $ac_mode in
16330  :L) ac_source=$1;;
16331  :[FH])
16332    ac_file_inputs=
16333    for ac_f
16334    do
16335      case $ac_f in
16336      -) ac_f="$ac_tmp/stdin";;
16337      *) # Look for the file first in the build tree, then in the source tree
16338	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16339	 # because $ac_f cannot contain `:'.
16340	 test -f "$ac_f" ||
16341	   case $ac_f in
16342	   [\\/$]*) false;;
16343	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16344	   esac ||
16345	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16346      esac
16347      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16348      as_fn_append ac_file_inputs " '$ac_f'"
16349    done
16350
16351    # Let's still pretend it is `configure' which instantiates (i.e., don't
16352    # use $as_me), people would be surprised to read:
16353    #    /* config.h.  Generated by config.status.  */
16354    configure_input='Generated from '`
16355	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16356	`' by configure.'
16357    if test x"$ac_file" != x-; then
16358      configure_input="$ac_file.  $configure_input"
16359      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16360$as_echo "$as_me: creating $ac_file" >&6;}
16361    fi
16362    # Neutralize special characters interpreted by sed in replacement strings.
16363    case $configure_input in #(
16364    *\&* | *\|* | *\\* )
16365       ac_sed_conf_input=`$as_echo "$configure_input" |
16366       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16367    *) ac_sed_conf_input=$configure_input;;
16368    esac
16369
16370    case $ac_tag in
16371    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16372      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16373    esac
16374    ;;
16375  esac
16376
16377  ac_dir=`$as_dirname -- "$ac_file" ||
16378$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16379	 X"$ac_file" : 'X\(//\)[^/]' \| \
16380	 X"$ac_file" : 'X\(//\)$' \| \
16381	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16382$as_echo X"$ac_file" |
16383    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16384	    s//\1/
16385	    q
16386	  }
16387	  /^X\(\/\/\)[^/].*/{
16388	    s//\1/
16389	    q
16390	  }
16391	  /^X\(\/\/\)$/{
16392	    s//\1/
16393	    q
16394	  }
16395	  /^X\(\/\).*/{
16396	    s//\1/
16397	    q
16398	  }
16399	  s/.*/./; q'`
16400  as_dir="$ac_dir"; as_fn_mkdir_p
16401  ac_builddir=.
16402
16403case "$ac_dir" in
16404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16405*)
16406  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16407  # A ".." for each directory in $ac_dir_suffix.
16408  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16409  case $ac_top_builddir_sub in
16410  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16411  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16412  esac ;;
16413esac
16414ac_abs_top_builddir=$ac_pwd
16415ac_abs_builddir=$ac_pwd$ac_dir_suffix
16416# for backward compatibility:
16417ac_top_builddir=$ac_top_build_prefix
16418
16419case $srcdir in
16420  .)  # We are building in place.
16421    ac_srcdir=.
16422    ac_top_srcdir=$ac_top_builddir_sub
16423    ac_abs_top_srcdir=$ac_pwd ;;
16424  [\\/]* | ?:[\\/]* )  # Absolute name.
16425    ac_srcdir=$srcdir$ac_dir_suffix;
16426    ac_top_srcdir=$srcdir
16427    ac_abs_top_srcdir=$srcdir ;;
16428  *) # Relative name.
16429    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16430    ac_top_srcdir=$ac_top_build_prefix$srcdir
16431    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16432esac
16433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16434
16435
16436  case $ac_mode in
16437  :F)
16438  #
16439  # CONFIG_FILE
16440  #
16441
16442  case $INSTALL in
16443  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16444  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16445  esac
16446  ac_MKDIR_P=$MKDIR_P
16447  case $MKDIR_P in
16448  [\\/$]* | ?:[\\/]* ) ;;
16449  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16450  esac
16451_ACEOF
16452
16453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454# If the template does not know about datarootdir, expand it.
16455# FIXME: This hack should be removed a few years after 2.60.
16456ac_datarootdir_hack=; ac_datarootdir_seen=
16457ac_sed_dataroot='
16458/datarootdir/ {
16459  p
16460  q
16461}
16462/@datadir@/p
16463/@docdir@/p
16464/@infodir@/p
16465/@localedir@/p
16466/@mandir@/p'
16467case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16468*datarootdir*) ac_datarootdir_seen=yes;;
16469*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16470  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16471$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16472_ACEOF
16473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16474  ac_datarootdir_hack='
16475  s&@datadir@&$datadir&g
16476  s&@docdir@&$docdir&g
16477  s&@infodir@&$infodir&g
16478  s&@localedir@&$localedir&g
16479  s&@mandir@&$mandir&g
16480  s&\\\${datarootdir}&$datarootdir&g' ;;
16481esac
16482_ACEOF
16483
16484# Neutralize VPATH when `$srcdir' = `.'.
16485# Shell code in configure.ac might set extrasub.
16486# FIXME: do we really want to maintain this feature?
16487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16488ac_sed_extra="$ac_vpsub
16489$extrasub
16490_ACEOF
16491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16492:t
16493/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16494s|@configure_input@|$ac_sed_conf_input|;t t
16495s&@top_builddir@&$ac_top_builddir_sub&;t t
16496s&@top_build_prefix@&$ac_top_build_prefix&;t t
16497s&@srcdir@&$ac_srcdir&;t t
16498s&@abs_srcdir@&$ac_abs_srcdir&;t t
16499s&@top_srcdir@&$ac_top_srcdir&;t t
16500s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16501s&@builddir@&$ac_builddir&;t t
16502s&@abs_builddir@&$ac_abs_builddir&;t t
16503s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16504s&@INSTALL@&$ac_INSTALL&;t t
16505s&@MKDIR_P@&$ac_MKDIR_P&;t t
16506$ac_datarootdir_hack
16507"
16508eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16509  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16510
16511test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16512  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16513  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16514      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16515  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16516which seems to be undefined.  Please make sure it is defined" >&5
16517$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16518which seems to be undefined.  Please make sure it is defined" >&2;}
16519
16520  rm -f "$ac_tmp/stdin"
16521  case $ac_file in
16522  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16523  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16524  esac \
16525  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16526 ;;
16527  :H)
16528  #
16529  # CONFIG_HEADER
16530  #
16531  if test x"$ac_file" != x-; then
16532    {
16533      $as_echo "/* $configure_input  */" \
16534      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16535    } >"$ac_tmp/config.h" \
16536      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16537    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16538      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16539$as_echo "$as_me: $ac_file is unchanged" >&6;}
16540    else
16541      rm -f "$ac_file"
16542      mv "$ac_tmp/config.h" "$ac_file" \
16543	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16544    fi
16545  else
16546    $as_echo "/* $configure_input  */" \
16547      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16548      || as_fn_error $? "could not create -" "$LINENO" 5
16549  fi
16550# Compute "$ac_file"'s index in $config_headers.
16551_am_arg="$ac_file"
16552_am_stamp_count=1
16553for _am_header in $config_headers :; do
16554  case $_am_header in
16555    $_am_arg | $_am_arg:* )
16556      break ;;
16557    * )
16558      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16559  esac
16560done
16561echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16562$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16563	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16564	 X"$_am_arg" : 'X\(//\)$' \| \
16565	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16566$as_echo X"$_am_arg" |
16567    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16568	    s//\1/
16569	    q
16570	  }
16571	  /^X\(\/\/\)[^/].*/{
16572	    s//\1/
16573	    q
16574	  }
16575	  /^X\(\/\/\)$/{
16576	    s//\1/
16577	    q
16578	  }
16579	  /^X\(\/\).*/{
16580	    s//\1/
16581	    q
16582	  }
16583	  s/.*/./; q'`/stamp-h$_am_stamp_count
16584 ;;
16585
16586  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16587$as_echo "$as_me: executing $ac_file commands" >&6;}
16588 ;;
16589  esac
16590
16591
16592  case $ac_file$ac_mode in
16593    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16594  # Older Autoconf quotes --file arguments for eval, but not when files
16595  # are listed without --file.  Let's play safe and only enable the eval
16596  # if we detect the quoting.
16597  case $CONFIG_FILES in
16598  *\'*) eval set x "$CONFIG_FILES" ;;
16599  *)   set x $CONFIG_FILES ;;
16600  esac
16601  shift
16602  for mf
16603  do
16604    # Strip MF so we end up with the name of the file.
16605    mf=`echo "$mf" | sed -e 's/:.*$//'`
16606    # Check whether this is an Automake generated Makefile or not.
16607    # We used to match only the files named 'Makefile.in', but
16608    # some people rename them; so instead we look at the file content.
16609    # Grep'ing the first line is not enough: some people post-process
16610    # each Makefile.in and add a new line on top of each file to say so.
16611    # Grep'ing the whole file is not good either: AIX grep has a line
16612    # limit of 2048, but all sed's we know have understand at least 4000.
16613    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16614      dirpart=`$as_dirname -- "$mf" ||
16615$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16616	 X"$mf" : 'X\(//\)[^/]' \| \
16617	 X"$mf" : 'X\(//\)$' \| \
16618	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16619$as_echo X"$mf" |
16620    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16621	    s//\1/
16622	    q
16623	  }
16624	  /^X\(\/\/\)[^/].*/{
16625	    s//\1/
16626	    q
16627	  }
16628	  /^X\(\/\/\)$/{
16629	    s//\1/
16630	    q
16631	  }
16632	  /^X\(\/\).*/{
16633	    s//\1/
16634	    q
16635	  }
16636	  s/.*/./; q'`
16637    else
16638      continue
16639    fi
16640    # Extract the definition of DEPDIR, am__include, and am__quote
16641    # from the Makefile without running 'make'.
16642    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16643    test -z "$DEPDIR" && continue
16644    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16645    test -z "am__include" && continue
16646    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16647    # Find all dependency output files, they are included files with
16648    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16649    # simplest approach to changing $(DEPDIR) to its actual value in the
16650    # expansion.
16651    for file in `sed -n "
16652      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16653	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16654      # Make sure the directory exists.
16655      test -f "$dirpart/$file" && continue
16656      fdir=`$as_dirname -- "$file" ||
16657$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16658	 X"$file" : 'X\(//\)[^/]' \| \
16659	 X"$file" : 'X\(//\)$' \| \
16660	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16661$as_echo X"$file" |
16662    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16663	    s//\1/
16664	    q
16665	  }
16666	  /^X\(\/\/\)[^/].*/{
16667	    s//\1/
16668	    q
16669	  }
16670	  /^X\(\/\/\)$/{
16671	    s//\1/
16672	    q
16673	  }
16674	  /^X\(\/\).*/{
16675	    s//\1/
16676	    q
16677	  }
16678	  s/.*/./; q'`
16679      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16680      # echo "creating $dirpart/$file"
16681      echo '# dummy' > "$dirpart/$file"
16682    done
16683  done
16684}
16685 ;;
16686    "libtool":C)
16687
16688    # See if we are running on zsh, and set the options which allow our
16689    # commands through without removal of \ escapes.
16690    if test -n "${ZSH_VERSION+set}" ; then
16691      setopt NO_GLOB_SUBST
16692    fi
16693
16694    cfgfile="${ofile}T"
16695    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16696    $RM "$cfgfile"
16697
16698    cat <<_LT_EOF >> "$cfgfile"
16699#! $SHELL
16700
16701# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16702# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16703# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16704# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16705#
16706#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16707#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16708#                 Foundation, Inc.
16709#   Written by Gordon Matzigkeit, 1996
16710#
16711#   This file is part of GNU Libtool.
16712#
16713# GNU Libtool is free software; you can redistribute it and/or
16714# modify it under the terms of the GNU General Public License as
16715# published by the Free Software Foundation; either version 2 of
16716# the License, or (at your option) any later version.
16717#
16718# As a special exception to the GNU General Public License,
16719# if you distribute this file as part of a program or library that
16720# is built using GNU Libtool, you may include this file under the
16721# same distribution terms that you use for the rest of that program.
16722#
16723# GNU Libtool is distributed in the hope that it will be useful,
16724# but WITHOUT ANY WARRANTY; without even the implied warranty of
16725# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16726# GNU General Public License for more details.
16727#
16728# You should have received a copy of the GNU General Public License
16729# along with GNU Libtool; see the file COPYING.  If not, a copy
16730# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16731# obtained by writing to the Free Software Foundation, Inc.,
16732# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16733
16734
16735# The names of the tagged configurations supported by this script.
16736available_tags=""
16737
16738# ### BEGIN LIBTOOL CONFIG
16739
16740# Which release of libtool.m4 was used?
16741macro_version=$macro_version
16742macro_revision=$macro_revision
16743
16744# Whether or not to build shared libraries.
16745build_libtool_libs=$enable_shared
16746
16747# Whether or not to build static libraries.
16748build_old_libs=$enable_static
16749
16750# What type of objects to build.
16751pic_mode=$pic_mode
16752
16753# Whether or not to optimize for fast installation.
16754fast_install=$enable_fast_install
16755
16756# Shell to use when invoking shell scripts.
16757SHELL=$lt_SHELL
16758
16759# An echo program that protects backslashes.
16760ECHO=$lt_ECHO
16761
16762# The PATH separator for the build system.
16763PATH_SEPARATOR=$lt_PATH_SEPARATOR
16764
16765# The host system.
16766host_alias=$host_alias
16767host=$host
16768host_os=$host_os
16769
16770# The build system.
16771build_alias=$build_alias
16772build=$build
16773build_os=$build_os
16774
16775# A sed program that does not truncate output.
16776SED=$lt_SED
16777
16778# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16779Xsed="\$SED -e 1s/^X//"
16780
16781# A grep program that handles long lines.
16782GREP=$lt_GREP
16783
16784# An ERE matcher.
16785EGREP=$lt_EGREP
16786
16787# A literal string matcher.
16788FGREP=$lt_FGREP
16789
16790# A BSD- or MS-compatible name lister.
16791NM=$lt_NM
16792
16793# Whether we need soft or hard links.
16794LN_S=$lt_LN_S
16795
16796# What is the maximum length of a command?
16797max_cmd_len=$max_cmd_len
16798
16799# Object file suffix (normally "o").
16800objext=$ac_objext
16801
16802# Executable file suffix (normally "").
16803exeext=$exeext
16804
16805# whether the shell understands "unset".
16806lt_unset=$lt_unset
16807
16808# turn spaces into newlines.
16809SP2NL=$lt_lt_SP2NL
16810
16811# turn newlines into spaces.
16812NL2SP=$lt_lt_NL2SP
16813
16814# convert \$build file names to \$host format.
16815to_host_file_cmd=$lt_cv_to_host_file_cmd
16816
16817# convert \$build files to toolchain format.
16818to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16819
16820# An object symbol dumper.
16821OBJDUMP=$lt_OBJDUMP
16822
16823# Method to check whether dependent libraries are shared objects.
16824deplibs_check_method=$lt_deplibs_check_method
16825
16826# Command to use when deplibs_check_method = "file_magic".
16827file_magic_cmd=$lt_file_magic_cmd
16828
16829# How to find potential files when deplibs_check_method = "file_magic".
16830file_magic_glob=$lt_file_magic_glob
16831
16832# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16833want_nocaseglob=$lt_want_nocaseglob
16834
16835# DLL creation program.
16836DLLTOOL=$lt_DLLTOOL
16837
16838# Command to associate shared and link libraries.
16839sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16840
16841# The archiver.
16842AR=$lt_AR
16843
16844# Flags to create an archive.
16845AR_FLAGS=$lt_AR_FLAGS
16846
16847# How to feed a file listing to the archiver.
16848archiver_list_spec=$lt_archiver_list_spec
16849
16850# A symbol stripping program.
16851STRIP=$lt_STRIP
16852
16853# Commands used to install an old-style archive.
16854RANLIB=$lt_RANLIB
16855old_postinstall_cmds=$lt_old_postinstall_cmds
16856old_postuninstall_cmds=$lt_old_postuninstall_cmds
16857
16858# Whether to use a lock for old archive extraction.
16859lock_old_archive_extraction=$lock_old_archive_extraction
16860
16861# A C compiler.
16862LTCC=$lt_CC
16863
16864# LTCC compiler flags.
16865LTCFLAGS=$lt_CFLAGS
16866
16867# Take the output of nm and produce a listing of raw symbols and C names.
16868global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16869
16870# Transform the output of nm in a proper C declaration.
16871global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16872
16873# Transform the output of nm in a C name address pair.
16874global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16875
16876# Transform the output of nm in a C name address pair when lib prefix is needed.
16877global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16878
16879# Specify filename containing input files for \$NM.
16880nm_file_list_spec=$lt_nm_file_list_spec
16881
16882# The root where to search for dependent libraries,and in which our libraries should be installed.
16883lt_sysroot=$lt_sysroot
16884
16885# The name of the directory that contains temporary libtool files.
16886objdir=$objdir
16887
16888# Used to examine libraries when file_magic_cmd begins with "file".
16889MAGIC_CMD=$MAGIC_CMD
16890
16891# Must we lock files when doing compilation?
16892need_locks=$lt_need_locks
16893
16894# Manifest tool.
16895MANIFEST_TOOL=$lt_MANIFEST_TOOL
16896
16897# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16898DSYMUTIL=$lt_DSYMUTIL
16899
16900# Tool to change global to local symbols on Mac OS X.
16901NMEDIT=$lt_NMEDIT
16902
16903# Tool to manipulate fat objects and archives on Mac OS X.
16904LIPO=$lt_LIPO
16905
16906# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16907OTOOL=$lt_OTOOL
16908
16909# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16910OTOOL64=$lt_OTOOL64
16911
16912# Old archive suffix (normally "a").
16913libext=$libext
16914
16915# Shared library suffix (normally ".so").
16916shrext_cmds=$lt_shrext_cmds
16917
16918# The commands to extract the exported symbol list from a shared archive.
16919extract_expsyms_cmds=$lt_extract_expsyms_cmds
16920
16921# Variables whose values should be saved in libtool wrapper scripts and
16922# restored at link time.
16923variables_saved_for_relink=$lt_variables_saved_for_relink
16924
16925# Do we need the "lib" prefix for modules?
16926need_lib_prefix=$need_lib_prefix
16927
16928# Do we need a version for libraries?
16929need_version=$need_version
16930
16931# Library versioning type.
16932version_type=$version_type
16933
16934# Shared library runtime path variable.
16935runpath_var=$runpath_var
16936
16937# Shared library path variable.
16938shlibpath_var=$shlibpath_var
16939
16940# Is shlibpath searched before the hard-coded library search path?
16941shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16942
16943# Format of library name prefix.
16944libname_spec=$lt_libname_spec
16945
16946# List of archive names.  First name is the real one, the rest are links.
16947# The last name is the one that the linker finds with -lNAME
16948library_names_spec=$lt_library_names_spec
16949
16950# The coded name of the library, if different from the real name.
16951soname_spec=$lt_soname_spec
16952
16953# Permission mode override for installation of shared libraries.
16954install_override_mode=$lt_install_override_mode
16955
16956# Command to use after installation of a shared archive.
16957postinstall_cmds=$lt_postinstall_cmds
16958
16959# Command to use after uninstallation of a shared archive.
16960postuninstall_cmds=$lt_postuninstall_cmds
16961
16962# Commands used to finish a libtool library installation in a directory.
16963finish_cmds=$lt_finish_cmds
16964
16965# As "finish_cmds", except a single script fragment to be evaled but
16966# not shown.
16967finish_eval=$lt_finish_eval
16968
16969# Whether we should hardcode library paths into libraries.
16970hardcode_into_libs=$hardcode_into_libs
16971
16972# Compile-time system search path for libraries.
16973sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16974
16975# Run-time system search path for libraries.
16976sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16977
16978# Whether dlopen is supported.
16979dlopen_support=$enable_dlopen
16980
16981# Whether dlopen of programs is supported.
16982dlopen_self=$enable_dlopen_self
16983
16984# Whether dlopen of statically linked programs is supported.
16985dlopen_self_static=$enable_dlopen_self_static
16986
16987# Commands to strip libraries.
16988old_striplib=$lt_old_striplib
16989striplib=$lt_striplib
16990
16991
16992# The linker used to build libraries.
16993LD=$lt_LD
16994
16995# How to create reloadable object files.
16996reload_flag=$lt_reload_flag
16997reload_cmds=$lt_reload_cmds
16998
16999# Commands used to build an old-style archive.
17000old_archive_cmds=$lt_old_archive_cmds
17001
17002# A language specific compiler.
17003CC=$lt_compiler
17004
17005# Is the compiler the GNU compiler?
17006with_gcc=$GCC
17007
17008# Compiler flag to turn off builtin functions.
17009no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17010
17011# Additional compiler flags for building library objects.
17012pic_flag=$lt_lt_prog_compiler_pic
17013
17014# How to pass a linker flag through the compiler.
17015wl=$lt_lt_prog_compiler_wl
17016
17017# Compiler flag to prevent dynamic linking.
17018link_static_flag=$lt_lt_prog_compiler_static
17019
17020# Does compiler simultaneously support -c and -o options?
17021compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17022
17023# Whether or not to add -lc for building shared libraries.
17024build_libtool_need_lc=$archive_cmds_need_lc
17025
17026# Whether or not to disallow shared libs when runtime libs are static.
17027allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17028
17029# Compiler flag to allow reflexive dlopens.
17030export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17031
17032# Compiler flag to generate shared objects directly from archives.
17033whole_archive_flag_spec=$lt_whole_archive_flag_spec
17034
17035# Whether the compiler copes with passing no objects directly.
17036compiler_needs_object=$lt_compiler_needs_object
17037
17038# Create an old-style archive from a shared archive.
17039old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17040
17041# Create a temporary old-style archive to link instead of a shared archive.
17042old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17043
17044# Commands used to build a shared archive.
17045archive_cmds=$lt_archive_cmds
17046archive_expsym_cmds=$lt_archive_expsym_cmds
17047
17048# Commands used to build a loadable module if different from building
17049# a shared archive.
17050module_cmds=$lt_module_cmds
17051module_expsym_cmds=$lt_module_expsym_cmds
17052
17053# Whether we are building with GNU ld or not.
17054with_gnu_ld=$lt_with_gnu_ld
17055
17056# Flag that allows shared libraries with undefined symbols to be built.
17057allow_undefined_flag=$lt_allow_undefined_flag
17058
17059# Flag that enforces no undefined symbols.
17060no_undefined_flag=$lt_no_undefined_flag
17061
17062# Flag to hardcode \$libdir into a binary during linking.
17063# This must work even if \$libdir does not exist
17064hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17065
17066# Whether we need a single "-rpath" flag with a separated argument.
17067hardcode_libdir_separator=$lt_hardcode_libdir_separator
17068
17069# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17070# DIR into the resulting binary.
17071hardcode_direct=$hardcode_direct
17072
17073# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17074# DIR into the resulting binary and the resulting library dependency is
17075# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17076# library is relocated.
17077hardcode_direct_absolute=$hardcode_direct_absolute
17078
17079# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17080# into the resulting binary.
17081hardcode_minus_L=$hardcode_minus_L
17082
17083# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17084# into the resulting binary.
17085hardcode_shlibpath_var=$hardcode_shlibpath_var
17086
17087# Set to "yes" if building a shared library automatically hardcodes DIR
17088# into the library and all subsequent libraries and executables linked
17089# against it.
17090hardcode_automatic=$hardcode_automatic
17091
17092# Set to yes if linker adds runtime paths of dependent libraries
17093# to runtime path list.
17094inherit_rpath=$inherit_rpath
17095
17096# Whether libtool must link a program against all its dependency libraries.
17097link_all_deplibs=$link_all_deplibs
17098
17099# Set to "yes" if exported symbols are required.
17100always_export_symbols=$always_export_symbols
17101
17102# The commands to list exported symbols.
17103export_symbols_cmds=$lt_export_symbols_cmds
17104
17105# Symbols that should not be listed in the preloaded symbols.
17106exclude_expsyms=$lt_exclude_expsyms
17107
17108# Symbols that must always be exported.
17109include_expsyms=$lt_include_expsyms
17110
17111# Commands necessary for linking programs (against libraries) with templates.
17112prelink_cmds=$lt_prelink_cmds
17113
17114# Commands necessary for finishing linking programs.
17115postlink_cmds=$lt_postlink_cmds
17116
17117# Specify filename containing input files.
17118file_list_spec=$lt_file_list_spec
17119
17120# How to hardcode a shared library path into an executable.
17121hardcode_action=$hardcode_action
17122
17123# ### END LIBTOOL CONFIG
17124
17125_LT_EOF
17126
17127  case $host_os in
17128  aix3*)
17129    cat <<\_LT_EOF >> "$cfgfile"
17130# AIX sometimes has problems with the GCC collect2 program.  For some
17131# reason, if we set the COLLECT_NAMES environment variable, the problems
17132# vanish in a puff of smoke.
17133if test "X${COLLECT_NAMES+set}" != Xset; then
17134  COLLECT_NAMES=
17135  export COLLECT_NAMES
17136fi
17137_LT_EOF
17138    ;;
17139  esac
17140
17141
17142ltmain="$ac_aux_dir/ltmain.sh"
17143
17144
17145  # We use sed instead of cat because bash on DJGPP gets confused if
17146  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17147  # text mode, it properly converts lines to CR/LF.  This bash problem
17148  # is reportedly fixed, but why not run on old versions too?
17149  sed '$q' "$ltmain" >> "$cfgfile" \
17150     || (rm -f "$cfgfile"; exit 1)
17151
17152  if test x"$xsi_shell" = xyes; then
17153  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17154func_dirname ()\
17155{\
17156\    case ${1} in\
17157\      */*) func_dirname_result="${1%/*}${2}" ;;\
17158\      *  ) func_dirname_result="${3}" ;;\
17159\    esac\
17160} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17161  && mv -f "$cfgfile.tmp" "$cfgfile" \
17162    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17163test 0 -eq $? || _lt_function_replace_fail=:
17164
17165
17166  sed -e '/^func_basename ()$/,/^} # func_basename /c\
17167func_basename ()\
17168{\
17169\    func_basename_result="${1##*/}"\
17170} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17171  && mv -f "$cfgfile.tmp" "$cfgfile" \
17172    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17173test 0 -eq $? || _lt_function_replace_fail=:
17174
17175
17176  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17177func_dirname_and_basename ()\
17178{\
17179\    case ${1} in\
17180\      */*) func_dirname_result="${1%/*}${2}" ;;\
17181\      *  ) func_dirname_result="${3}" ;;\
17182\    esac\
17183\    func_basename_result="${1##*/}"\
17184} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17185  && mv -f "$cfgfile.tmp" "$cfgfile" \
17186    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17187test 0 -eq $? || _lt_function_replace_fail=:
17188
17189
17190  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17191func_stripname ()\
17192{\
17193\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17194\    # positional parameters, so assign one to ordinary parameter first.\
17195\    func_stripname_result=${3}\
17196\    func_stripname_result=${func_stripname_result#"${1}"}\
17197\    func_stripname_result=${func_stripname_result%"${2}"}\
17198} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17199  && mv -f "$cfgfile.tmp" "$cfgfile" \
17200    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17201test 0 -eq $? || _lt_function_replace_fail=:
17202
17203
17204  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17205func_split_long_opt ()\
17206{\
17207\    func_split_long_opt_name=${1%%=*}\
17208\    func_split_long_opt_arg=${1#*=}\
17209} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17210  && mv -f "$cfgfile.tmp" "$cfgfile" \
17211    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17212test 0 -eq $? || _lt_function_replace_fail=:
17213
17214
17215  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17216func_split_short_opt ()\
17217{\
17218\    func_split_short_opt_arg=${1#??}\
17219\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17220} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17221  && mv -f "$cfgfile.tmp" "$cfgfile" \
17222    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17223test 0 -eq $? || _lt_function_replace_fail=:
17224
17225
17226  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17227func_lo2o ()\
17228{\
17229\    case ${1} in\
17230\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17231\      *)    func_lo2o_result=${1} ;;\
17232\    esac\
17233} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17234  && mv -f "$cfgfile.tmp" "$cfgfile" \
17235    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17236test 0 -eq $? || _lt_function_replace_fail=:
17237
17238
17239  sed -e '/^func_xform ()$/,/^} # func_xform /c\
17240func_xform ()\
17241{\
17242    func_xform_result=${1%.*}.lo\
17243} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17244  && mv -f "$cfgfile.tmp" "$cfgfile" \
17245    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17246test 0 -eq $? || _lt_function_replace_fail=:
17247
17248
17249  sed -e '/^func_arith ()$/,/^} # func_arith /c\
17250func_arith ()\
17251{\
17252    func_arith_result=$(( $* ))\
17253} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17254  && mv -f "$cfgfile.tmp" "$cfgfile" \
17255    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17256test 0 -eq $? || _lt_function_replace_fail=:
17257
17258
17259  sed -e '/^func_len ()$/,/^} # func_len /c\
17260func_len ()\
17261{\
17262    func_len_result=${#1}\
17263} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17264  && mv -f "$cfgfile.tmp" "$cfgfile" \
17265    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17266test 0 -eq $? || _lt_function_replace_fail=:
17267
17268fi
17269
17270if test x"$lt_shell_append" = xyes; then
17271  sed -e '/^func_append ()$/,/^} # func_append /c\
17272func_append ()\
17273{\
17274    eval "${1}+=\\${2}"\
17275} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17276  && mv -f "$cfgfile.tmp" "$cfgfile" \
17277    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17278test 0 -eq $? || _lt_function_replace_fail=:
17279
17280
17281  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17282func_append_quoted ()\
17283{\
17284\    func_quote_for_eval "${2}"\
17285\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17286} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17287  && mv -f "$cfgfile.tmp" "$cfgfile" \
17288    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17289test 0 -eq $? || _lt_function_replace_fail=:
17290
17291
17292  # Save a `func_append' function call where possible by direct use of '+='
17293  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17294    && mv -f "$cfgfile.tmp" "$cfgfile" \
17295      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17296  test 0 -eq $? || _lt_function_replace_fail=:
17297else
17298  # Save a `func_append' function call even when '+=' is not available
17299  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17300    && mv -f "$cfgfile.tmp" "$cfgfile" \
17301      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17302  test 0 -eq $? || _lt_function_replace_fail=:
17303fi
17304
17305if test x"$_lt_function_replace_fail" = x":"; then
17306  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17307$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17308fi
17309
17310
17311   mv -f "$cfgfile" "$ofile" ||
17312    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17313  chmod +x "$ofile"
17314
17315 ;;
17316    "po-directories":C)
17317    for ac_file in $CONFIG_FILES; do
17318      # Support "outfile[:infile[:infile...]]"
17319      case "$ac_file" in
17320        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17321      esac
17322      # PO directories have a Makefile.in generated from Makefile.in.in.
17323      case "$ac_file" in */Makefile.in)
17324        # Adjust a relative srcdir.
17325        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17326        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17327        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17328        # In autoconf-2.13 it is called $ac_given_srcdir.
17329        # In autoconf-2.50 it is called $srcdir.
17330        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17331        case "$ac_given_srcdir" in
17332          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17333          /*) top_srcdir="$ac_given_srcdir" ;;
17334          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17335        esac
17336        # Treat a directory as a PO directory if and only if it has a
17337        # POTFILES.in file. This allows packages to have multiple PO
17338        # directories under different names or in different locations.
17339        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17340          rm -f "$ac_dir/POTFILES"
17341          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17342          gt_tab=`printf '\t'`
17343          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17344          POMAKEFILEDEPS="POTFILES.in"
17345          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17346          # on $ac_dir but don't depend on user-specified configuration
17347          # parameters.
17348          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17349            # The LINGUAS file contains the set of available languages.
17350            if test -n "$OBSOLETE_ALL_LINGUAS"; then
17351              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17352            fi
17353            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17354            # Hide the ALL_LINGUAS assignment from automake < 1.5.
17355            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17356            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17357          else
17358            # The set of available languages was given in configure.in.
17359            # Hide the ALL_LINGUAS assignment from automake < 1.5.
17360            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17361          fi
17362          # Compute POFILES
17363          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17364          # Compute UPDATEPOFILES
17365          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17366          # Compute DUMMYPOFILES
17367          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17368          # Compute GMOFILES
17369          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17370          case "$ac_given_srcdir" in
17371            .) srcdirpre= ;;
17372            *) srcdirpre='$(srcdir)/' ;;
17373          esac
17374          POFILES=
17375          UPDATEPOFILES=
17376          DUMMYPOFILES=
17377          GMOFILES=
17378          for lang in $ALL_LINGUAS; do
17379            POFILES="$POFILES $srcdirpre$lang.po"
17380            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17381            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17382            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17383          done
17384          # CATALOGS depends on both $ac_dir and the user's LINGUAS
17385          # environment variable.
17386          INST_LINGUAS=
17387          if test -n "$ALL_LINGUAS"; then
17388            for presentlang in $ALL_LINGUAS; do
17389              useit=no
17390              if test "%UNSET%" != "$LINGUAS"; then
17391                desiredlanguages="$LINGUAS"
17392              else
17393                desiredlanguages="$ALL_LINGUAS"
17394              fi
17395              for desiredlang in $desiredlanguages; do
17396                # Use the presentlang catalog if desiredlang is
17397                #   a. equal to presentlang, or
17398                #   b. a variant of presentlang (because in this case,
17399                #      presentlang can be used as a fallback for messages
17400                #      which are not translated in the desiredlang catalog).
17401                case "$desiredlang" in
17402                  "$presentlang"*) useit=yes;;
17403                esac
17404              done
17405              if test $useit = yes; then
17406                INST_LINGUAS="$INST_LINGUAS $presentlang"
17407              fi
17408            done
17409          fi
17410          CATALOGS=
17411          if test -n "$INST_LINGUAS"; then
17412            for lang in $INST_LINGUAS; do
17413              CATALOGS="$CATALOGS $lang.gmo"
17414            done
17415          fi
17416          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17417          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17418          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17419            if test -f "$f"; then
17420              case "$f" in
17421                *.orig | *.bak | *~) ;;
17422                *) cat "$f" >> "$ac_dir/Makefile" ;;
17423              esac
17424            fi
17425          done
17426        fi
17427        ;;
17428      esac
17429    done ;;
17430
17431  esac
17432done # for ac_tag
17433
17434
17435as_fn_exit 0
17436_ACEOF
17437ac_clean_files=$ac_clean_files_save
17438
17439test $ac_write_fail = 0 ||
17440  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17441
17442
17443# configure is writing to config.log, and then calls config.status.
17444# config.status does its own redirection, appending to config.log.
17445# Unfortunately, on DOS this fails, as config.log is still kept open
17446# by configure, so config.status won't be able to write to it; its
17447# output is simply discarded.  So we exec the FD to /dev/null,
17448# effectively closing config.log, so it can be properly (re)opened and
17449# appended to by config.status.  When coming back to configure, we
17450# need to make the FD available again.
17451if test "$no_create" != yes; then
17452  ac_cs_success=:
17453  ac_config_status_args=
17454  test "$silent" = yes &&
17455    ac_config_status_args="$ac_config_status_args --quiet"
17456  exec 5>/dev/null
17457  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17458  exec 5>>config.log
17459  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17460  # would make configure fail if this is the last instruction.
17461  $ac_cs_success || as_fn_exit 1
17462fi
17463if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17464  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17465$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17466fi
17467
17468