1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ccrypt 1.11.
4#
5# Report bugs to <selinger at users.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and selinger at
278$0: users.sourceforge.net 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='ccrypt'
592PACKAGE_TARNAME='ccrypt'
593PACKAGE_VERSION='1.11'
594PACKAGE_STRING='ccrypt 1.11'
595PACKAGE_BUGREPORT='selinger at users.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="src/ccrypt.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
635gt_needs=
636ac_header_list=
637gl_use_threads_default=
638ac_func_list=
639ac_subst_vars='am__EXEEXT_FALSE
640am__EXEEXT_TRUE
641LTLIBOBJS
642LIBOBJS
643EXTRA_INCLUDES
644EXTRA_OBJS
645NAMEUC
646DATE
647SUF
648NAMECAT
649NAMEDECRYPT
650NAMEENCRYPT
651NAMECCRYPT
652LT_SYS_LIBRARY_PATH
653OTOOL64
654OTOOL
655LIPO
656NMEDIT
657DSYMUTIL
658MANIFEST_TOOL
659ac_ct_AR
660AR
661DLLTOOL
662OBJDUMP
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669LIBTOOL
670POSUB
671LTLIBINTL
672LIBINTL
673INTLLIBS
674INTL_LIBTOOL_SUFFIX_PREFIX
675INTLOBJS
676GENCAT
677INSTOBJEXT
678DATADIRNAME
679CATOBJEXT
680USE_INCLUDED_LIBINTL
681BUILD_INCLUDED_LIBINTL
682LTLIBC
683WINDRES
684WOE32
685WOE32DLL
686HAVE_WPRINTF
687HAVE_NEWLOCALE
688HAVE_SNPRINTF
689HAVE_ASPRINTF
690HAVE_POSIX_PRINTF
691INTL_DEFAULT_VERBOSITY
692INTL_MACOSX_LIBS
693GLIBC21
694INTLBISON
695LTLIBICONV
696LIBICONV
697LTLIBMULTITHREAD
698LIBMULTITHREAD
699LTLIBTHREAD
700LIBTHREAD
701LIBPTH_PREFIX
702LTLIBPTH
703LIBPTH
704PRI_MACROS_BROKEN
705ALLOCA
706HAVE_VISIBILITY
707CFLAG_VISIBILITY
708RANLIB
709GLIBC2
710host_os
711host_vendor
712host_cpu
713host
714build_os
715build_vendor
716build_cpu
717build
718XGETTEXT_EXTRA_OPTIONS
719MSGMERGE
720XGETTEXT_015
721XGETTEXT
722GMSGFMT_015
723MSGFMT_015
724GMSGFMT
725MSGFMT
726GETTEXT_MACRO_VERSION
727USE_NLS
728SED
729GETTEXT_PACKAGE
730TAR
731CADD
732EGREP
733GREP
734CPP
735am__fastdepCC_FALSE
736am__fastdepCC_TRUE
737CCDEPMODE
738am__nodep
739AMDEPBACKSLASH
740AMDEP_FALSE
741AMDEP_TRUE
742am__quote
743am__include
744DEPDIR
745OBJEXT
746EXEEXT
747ac_ct_CC
748CPPFLAGS
749LDFLAGS
750CFLAGS
751CC
752lispdir
753EMACSLOADPATH
754EMACS
755AM_BACKSLASH
756AM_DEFAULT_VERBOSITY
757AM_DEFAULT_V
758AM_V
759am__untar
760am__tar
761AMTAR
762am__leading_dot
763SET_MAKE
764AWK
765mkdir_p
766MKDIR_P
767INSTALL_STRIP_PROGRAM
768STRIP
769install_sh
770MAKEINFO
771AUTOHEADER
772AUTOMAKE
773AUTOCONF
774ACLOCAL
775VERSION
776PACKAGE
777CYGPATH_W
778am__isrc
779INSTALL_DATA
780INSTALL_SCRIPT
781INSTALL_PROGRAM
782target_alias
783host_alias
784build_alias
785LIBS
786ECHO_T
787ECHO_N
788ECHO_C
789DEFS
790mandir
791localedir
792libdir
793psdir
794pdfdir
795dvidir
796htmldir
797infodir
798docdir
799oldincludedir
800includedir
801runstatedir
802localstatedir
803sharedstatedir
804sysconfdir
805datadir
806datarootdir
807libexecdir
808sbindir
809bindir
810program_transform_name
811prefix
812exec_prefix
813PACKAGE_URL
814PACKAGE_BUGREPORT
815PACKAGE_STRING
816PACKAGE_VERSION
817PACKAGE_TARNAME
818PACKAGE_NAME
819PATH_SEPARATOR
820SHELL'
821ac_subst_files=''
822ac_user_opts='
823enable_option_checking
824enable_silent_rules
825with_lispdir
826enable_dependency_tracking
827enable_largefile
828enable_libcrypt
829enable_emacs
830with_included_getopt
831enable_nls
832enable_threads
833with_gnu_ld
834enable_rpath
835with_libpth_prefix
836with_libiconv_prefix
837with_included_gettext
838with_libintl_prefix
839enable_shared
840enable_static
841with_pic
842enable_fast_install
843with_aix_soname
844with_sysroot
845enable_libtool_lock
846'
847      ac_precious_vars='build_alias
848host_alias
849target_alias
850EMACS
851EMACSLOADPATH
852CC
853CFLAGS
854LDFLAGS
855LIBS
856CPPFLAGS
857CPP
858LT_SYS_LIBRARY_PATH'
859
860
861# Initialize some variables set by options.
862ac_init_help=
863ac_init_version=false
864ac_unrecognized_opts=
865ac_unrecognized_sep=
866# The variables have the same names as the options, with
867# dashes changed to underlines.
868cache_file=/dev/null
869exec_prefix=NONE
870no_create=
871no_recursion=
872prefix=NONE
873program_prefix=NONE
874program_suffix=NONE
875program_transform_name=s,x,x,
876silent=
877site=
878srcdir=
879verbose=
880x_includes=NONE
881x_libraries=NONE
882
883# Installation directory options.
884# These are left unexpanded so users can "make install exec_prefix=/foo"
885# and all the variables that are supposed to be based on exec_prefix
886# by default will actually change.
887# Use braces instead of parens because sh, perl, etc. also accept them.
888# (The list follows the same order as the GNU Coding Standards.)
889bindir='${exec_prefix}/bin'
890sbindir='${exec_prefix}/sbin'
891libexecdir='${exec_prefix}/libexec'
892datarootdir='${prefix}/share'
893datadir='${datarootdir}'
894sysconfdir='${prefix}/etc'
895sharedstatedir='${prefix}/com'
896localstatedir='${prefix}/var'
897runstatedir='${localstatedir}/run'
898includedir='${prefix}/include'
899oldincludedir='/usr/include'
900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901infodir='${datarootdir}/info'
902htmldir='${docdir}'
903dvidir='${docdir}'
904pdfdir='${docdir}'
905psdir='${docdir}'
906libdir='${exec_prefix}/lib'
907localedir='${datarootdir}/locale'
908mandir='${datarootdir}/man'
909
910ac_prev=
911ac_dashdash=
912for ac_option
913do
914  # If the previous option needs an argument, assign it.
915  if test -n "$ac_prev"; then
916    eval $ac_prev=\$ac_option
917    ac_prev=
918    continue
919  fi
920
921  case $ac_option in
922  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923  *=)   ac_optarg= ;;
924  *)    ac_optarg=yes ;;
925  esac
926
927  # Accept the important Cygnus configure options, so we can diagnose typos.
928
929  case $ac_dashdash$ac_option in
930  --)
931    ac_dashdash=yes ;;
932
933  -bindir | --bindir | --bindi | --bind | --bin | --bi)
934    ac_prev=bindir ;;
935  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936    bindir=$ac_optarg ;;
937
938  -build | --build | --buil | --bui | --bu)
939    ac_prev=build_alias ;;
940  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941    build_alias=$ac_optarg ;;
942
943  -cache-file | --cache-file | --cache-fil | --cache-fi \
944  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945    ac_prev=cache_file ;;
946  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948    cache_file=$ac_optarg ;;
949
950  --config-cache | -C)
951    cache_file=config.cache ;;
952
953  -datadir | --datadir | --datadi | --datad)
954    ac_prev=datadir ;;
955  -datadir=* | --datadir=* | --datadi=* | --datad=*)
956    datadir=$ac_optarg ;;
957
958  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959  | --dataroo | --dataro | --datar)
960    ac_prev=datarootdir ;;
961  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963    datarootdir=$ac_optarg ;;
964
965  -disable-* | --disable-*)
966    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967    # Reject names that are not valid shell variable names.
968    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969      as_fn_error $? "invalid feature name: $ac_useropt"
970    ac_useropt_orig=$ac_useropt
971    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972    case $ac_user_opts in
973      *"
974"enable_$ac_useropt"
975"*) ;;
976      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977	 ac_unrecognized_sep=', ';;
978    esac
979    eval enable_$ac_useropt=no ;;
980
981  -docdir | --docdir | --docdi | --doc | --do)
982    ac_prev=docdir ;;
983  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984    docdir=$ac_optarg ;;
985
986  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987    ac_prev=dvidir ;;
988  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989    dvidir=$ac_optarg ;;
990
991  -enable-* | --enable-*)
992    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993    # Reject names that are not valid shell variable names.
994    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995      as_fn_error $? "invalid feature name: $ac_useropt"
996    ac_useropt_orig=$ac_useropt
997    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998    case $ac_user_opts in
999      *"
1000"enable_$ac_useropt"
1001"*) ;;
1002      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003	 ac_unrecognized_sep=', ';;
1004    esac
1005    eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009  | --exec | --exe | --ex)
1010    ac_prev=exec_prefix ;;
1011  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013  | --exec=* | --exe=* | --ex=*)
1014    exec_prefix=$ac_optarg ;;
1015
1016  -gas | --gas | --ga | --g)
1017    # Obsolete; use --with-gas.
1018    with_gas=yes ;;
1019
1020  -help | --help | --hel | --he | -h)
1021    ac_init_help=long ;;
1022  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023    ac_init_help=recursive ;;
1024  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025    ac_init_help=short ;;
1026
1027  -host | --host | --hos | --ho)
1028    ac_prev=host_alias ;;
1029  -host=* | --host=* | --hos=* | --ho=*)
1030    host_alias=$ac_optarg ;;
1031
1032  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033    ac_prev=htmldir ;;
1034  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035  | --ht=*)
1036    htmldir=$ac_optarg ;;
1037
1038  -includedir | --includedir | --includedi | --included | --include \
1039  | --includ | --inclu | --incl | --inc)
1040    ac_prev=includedir ;;
1041  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042  | --includ=* | --inclu=* | --incl=* | --inc=*)
1043    includedir=$ac_optarg ;;
1044
1045  -infodir | --infodir | --infodi | --infod | --info | --inf)
1046    ac_prev=infodir ;;
1047  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048    infodir=$ac_optarg ;;
1049
1050  -libdir | --libdir | --libdi | --libd)
1051    ac_prev=libdir ;;
1052  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053    libdir=$ac_optarg ;;
1054
1055  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056  | --libexe | --libex | --libe)
1057    ac_prev=libexecdir ;;
1058  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059  | --libexe=* | --libex=* | --libe=*)
1060    libexecdir=$ac_optarg ;;
1061
1062  -localedir | --localedir | --localedi | --localed | --locale)
1063    ac_prev=localedir ;;
1064  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065    localedir=$ac_optarg ;;
1066
1067  -localstatedir | --localstatedir | --localstatedi | --localstated \
1068  | --localstate | --localstat | --localsta | --localst | --locals)
1069    ac_prev=localstatedir ;;
1070  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072    localstatedir=$ac_optarg ;;
1073
1074  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075    ac_prev=mandir ;;
1076  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077    mandir=$ac_optarg ;;
1078
1079  -nfp | --nfp | --nf)
1080    # Obsolete; use --without-fp.
1081    with_fp=no ;;
1082
1083  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084  | --no-cr | --no-c | -n)
1085    no_create=yes ;;
1086
1087  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089    no_recursion=yes ;;
1090
1091  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093  | --oldin | --oldi | --old | --ol | --o)
1094    ac_prev=oldincludedir ;;
1095  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098    oldincludedir=$ac_optarg ;;
1099
1100  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101    ac_prev=prefix ;;
1102  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103    prefix=$ac_optarg ;;
1104
1105  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106  | --program-pre | --program-pr | --program-p)
1107    ac_prev=program_prefix ;;
1108  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110    program_prefix=$ac_optarg ;;
1111
1112  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113  | --program-suf | --program-su | --program-s)
1114    ac_prev=program_suffix ;;
1115  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117    program_suffix=$ac_optarg ;;
1118
1119  -program-transform-name | --program-transform-name \
1120  | --program-transform-nam | --program-transform-na \
1121  | --program-transform-n | --program-transform- \
1122  | --program-transform | --program-transfor \
1123  | --program-transfo | --program-transf \
1124  | --program-trans | --program-tran \
1125  | --progr-tra | --program-tr | --program-t)
1126    ac_prev=program_transform_name ;;
1127  -program-transform-name=* | --program-transform-name=* \
1128  | --program-transform-nam=* | --program-transform-na=* \
1129  | --program-transform-n=* | --program-transform-=* \
1130  | --program-transform=* | --program-transfor=* \
1131  | --program-transfo=* | --program-transf=* \
1132  | --program-trans=* | --program-tran=* \
1133  | --progr-tra=* | --program-tr=* | --program-t=*)
1134    program_transform_name=$ac_optarg ;;
1135
1136  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137    ac_prev=pdfdir ;;
1138  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139    pdfdir=$ac_optarg ;;
1140
1141  -psdir | --psdir | --psdi | --psd | --ps)
1142    ac_prev=psdir ;;
1143  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144    psdir=$ac_optarg ;;
1145
1146  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147  | -silent | --silent | --silen | --sile | --sil)
1148    silent=yes ;;
1149
1150  -runstatedir | --runstatedir | --runstatedi | --runstated \
1151  | --runstate | --runstat | --runsta | --runst | --runs \
1152  | --run | --ru | --r)
1153    ac_prev=runstatedir ;;
1154  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1155  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1156  | --run=* | --ru=* | --r=*)
1157    runstatedir=$ac_optarg ;;
1158
1159  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160    ac_prev=sbindir ;;
1161  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162  | --sbi=* | --sb=*)
1163    sbindir=$ac_optarg ;;
1164
1165  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167  | --sharedst | --shareds | --shared | --share | --shar \
1168  | --sha | --sh)
1169    ac_prev=sharedstatedir ;;
1170  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173  | --sha=* | --sh=*)
1174    sharedstatedir=$ac_optarg ;;
1175
1176  -site | --site | --sit)
1177    ac_prev=site ;;
1178  -site=* | --site=* | --sit=*)
1179    site=$ac_optarg ;;
1180
1181  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182    ac_prev=srcdir ;;
1183  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184    srcdir=$ac_optarg ;;
1185
1186  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187  | --syscon | --sysco | --sysc | --sys | --sy)
1188    ac_prev=sysconfdir ;;
1189  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191    sysconfdir=$ac_optarg ;;
1192
1193  -target | --target | --targe | --targ | --tar | --ta | --t)
1194    ac_prev=target_alias ;;
1195  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196    target_alias=$ac_optarg ;;
1197
1198  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199    verbose=yes ;;
1200
1201  -version | --version | --versio | --versi | --vers | -V)
1202    ac_init_version=: ;;
1203
1204  -with-* | --with-*)
1205    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206    # Reject names that are not valid shell variable names.
1207    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208      as_fn_error $? "invalid package name: $ac_useropt"
1209    ac_useropt_orig=$ac_useropt
1210    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211    case $ac_user_opts in
1212      *"
1213"with_$ac_useropt"
1214"*) ;;
1215      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216	 ac_unrecognized_sep=', ';;
1217    esac
1218    eval with_$ac_useropt=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224      as_fn_error $? "invalid package name: $ac_useropt"
1225    ac_useropt_orig=$ac_useropt
1226    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227    case $ac_user_opts in
1228      *"
1229"with_$ac_useropt"
1230"*) ;;
1231      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232	 ac_unrecognized_sep=', ';;
1233    esac
1234    eval with_$ac_useropt=no ;;
1235
1236  --x)
1237    # Obsolete; use --with-x.
1238    with_x=yes ;;
1239
1240  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241  | --x-incl | --x-inc | --x-in | --x-i)
1242    ac_prev=x_includes ;;
1243  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245    x_includes=$ac_optarg ;;
1246
1247  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249    ac_prev=x_libraries ;;
1250  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252    x_libraries=$ac_optarg ;;
1253
1254  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255Try \`$0 --help' for more information"
1256    ;;
1257
1258  *=*)
1259    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260    # Reject names that are not valid shell variable names.
1261    case $ac_envvar in #(
1262      '' | [0-9]* | *[!_$as_cr_alnum]* )
1263      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264    esac
1265    eval $ac_envvar=\$ac_optarg
1266    export $ac_envvar ;;
1267
1268  *)
1269    # FIXME: should be removed in autoconf 3.0.
1270    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274    ;;
1275
1276  esac
1277done
1278
1279if test -n "$ac_prev"; then
1280  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281  as_fn_error $? "missing argument to $ac_option"
1282fi
1283
1284if test -n "$ac_unrecognized_opts"; then
1285  case $enable_option_checking in
1286    no) ;;
1287    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289  esac
1290fi
1291
1292# Check all directory arguments for consistency.
1293for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294		datadir sysconfdir sharedstatedir localstatedir includedir \
1295		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296		libdir localedir mandir runstatedir
1297do
1298  eval ac_val=\$$ac_var
1299  # Remove trailing slashes.
1300  case $ac_val in
1301    */ )
1302      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303      eval $ac_var=\$ac_val;;
1304  esac
1305  # Be sure to have absolute directory names.
1306  case $ac_val in
1307    [\\/$]* | ?:[\\/]* )  continue;;
1308    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309  esac
1310  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311done
1312
1313# There might be people who depend on the old broken behavior: `$host'
1314# used to hold the argument of --host etc.
1315# FIXME: To remove some day.
1316build=$build_alias
1317host=$host_alias
1318target=$target_alias
1319
1320# FIXME: To remove some day.
1321if test "x$host_alias" != x; then
1322  if test "x$build_alias" = x; then
1323    cross_compiling=maybe
1324  elif test "x$build_alias" != "x$host_alias"; then
1325    cross_compiling=yes
1326  fi
1327fi
1328
1329ac_tool_prefix=
1330test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332test "$silent" = yes && exec 6>/dev/null
1333
1334
1335ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336ac_ls_di=`ls -di .` &&
1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338  as_fn_error $? "working directory cannot be determined"
1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340  as_fn_error $? "pwd does not report name of working directory"
1341
1342
1343# Find the source files, if location was not specified.
1344if test -z "$srcdir"; then
1345  ac_srcdir_defaulted=yes
1346  # Try the directory containing this script, then the parent directory.
1347  ac_confdir=`$as_dirname -- "$as_myself" ||
1348$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349	 X"$as_myself" : 'X\(//\)[^/]' \| \
1350	 X"$as_myself" : 'X\(//\)$' \| \
1351	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352$as_echo X"$as_myself" |
1353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\/\)[^/].*/{
1358	    s//\1/
1359	    q
1360	  }
1361	  /^X\(\/\/\)$/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\).*/{
1366	    s//\1/
1367	    q
1368	  }
1369	  s/.*/./; q'`
1370  srcdir=$ac_confdir
1371  if test ! -r "$srcdir/$ac_unique_file"; then
1372    srcdir=..
1373  fi
1374else
1375  ac_srcdir_defaulted=no
1376fi
1377if test ! -r "$srcdir/$ac_unique_file"; then
1378  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1380fi
1381ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382ac_abs_confdir=`(
1383	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384	pwd)`
1385# When building in place, set srcdir=.
1386if test "$ac_abs_confdir" = "$ac_pwd"; then
1387  srcdir=.
1388fi
1389# Remove unnecessary trailing slashes from srcdir.
1390# Double slashes in file names in object file debugging info
1391# mess up M-x gdb in Emacs.
1392case $srcdir in
1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394esac
1395for ac_var in $ac_precious_vars; do
1396  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_env_${ac_var}_value=\$${ac_var}
1398  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400done
1401
1402#
1403# Report the --help message.
1404#
1405if test "$ac_init_help" = "long"; then
1406  # Omit some internal or obsolete options to make the list less imposing.
1407  # This message is too long to be a string in the A/UX 3.1 sh.
1408  cat <<_ACEOF
1409\`configure' configures ccrypt 1.11 to adapt to many kinds of systems.
1410
1411Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414VAR=VALUE.  See below for descriptions of some of the useful variables.
1415
1416Defaults for the options are specified in brackets.
1417
1418Configuration:
1419  -h, --help              display this help and exit
1420      --help=short        display options specific to this package
1421      --help=recursive    display the short help of all the included packages
1422  -V, --version           display version information and exit
1423  -q, --quiet, --silent   do not print \`checking ...' messages
1424      --cache-file=FILE   cache test results in FILE [disabled]
1425  -C, --config-cache      alias for \`--cache-file=config.cache'
1426  -n, --no-create         do not create output files
1427      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1428
1429Installation directories:
1430  --prefix=PREFIX         install architecture-independent files in PREFIX
1431                          [$ac_default_prefix]
1432  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1433                          [PREFIX]
1434
1435By default, \`make install' will install all the files in
1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1437an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438for instance \`--prefix=\$HOME'.
1439
1440For better control, use the options below.
1441
1442Fine tuning of the installation directories:
1443  --bindir=DIR            user executables [EPREFIX/bin]
1444  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1445  --libexecdir=DIR        program executables [EPREFIX/libexec]
1446  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1447  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1448  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1449  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1450  --libdir=DIR            object code libraries [EPREFIX/lib]
1451  --includedir=DIR        C header files [PREFIX/include]
1452  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1453  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1454  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1455  --infodir=DIR           info documentation [DATAROOTDIR/info]
1456  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1457  --mandir=DIR            man documentation [DATAROOTDIR/man]
1458  --docdir=DIR            documentation root [DATAROOTDIR/doc/ccrypt]
1459  --htmldir=DIR           html documentation [DOCDIR]
1460  --dvidir=DIR            dvi documentation [DOCDIR]
1461  --pdfdir=DIR            pdf documentation [DOCDIR]
1462  --psdir=DIR             ps documentation [DOCDIR]
1463_ACEOF
1464
1465  cat <<\_ACEOF
1466
1467Program names:
1468  --program-prefix=PREFIX            prepend PREFIX to installed program names
1469  --program-suffix=SUFFIX            append SUFFIX to installed program names
1470  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1471
1472System types:
1473  --build=BUILD     configure for building on BUILD [guessed]
1474  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475_ACEOF
1476fi
1477
1478if test -n "$ac_init_help"; then
1479  case $ac_init_help in
1480     short | recursive ) echo "Configuration of ccrypt 1.11:";;
1481   esac
1482  cat <<\_ACEOF
1483
1484Optional Features:
1485  --disable-option-checking  ignore unrecognized --enable/--with options
1486  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488  --enable-silent-rules   less verbose build output (undo: "make V=1")
1489  --disable-silent-rules  verbose build output (undo: "make V=0")
1490  --enable-dependency-tracking
1491                          do not reject slow dependency extractors
1492  --disable-dependency-tracking
1493                          speeds up one-time build
1494  --disable-largefile     omit support for large files
1495  --disable-libcrypt      do not link against libcrypt, use own replacement
1496  --disable-emacs         omit emacs support
1497  --disable-nls           do not use Native Language Support
1498  --enable-threads={posix|solaris|pth|windows}
1499                          specify multithreading API
1500  --disable-threads       build without multithread safety
1501  --disable-rpath         do not hardcode runtime library paths
1502  --enable-shared[=PKGS]  build shared libraries [default=yes]
1503  --enable-static[=PKGS]  build static libraries [default=yes]
1504  --enable-fast-install[=PKGS]
1505                          optimize for fast installation [default=yes]
1506  --disable-libtool-lock  avoid locking (might break parallel builds)
1507
1508Optional Packages:
1509  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1510  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1511  --with-lispdir          override the default lisp directory
1512  --with-included-getopt  avoid using the system-wide getopt library
1513  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1514  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1515  --without-libpth-prefix     don't search for libpth in includedir and libdir
1516  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1517  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1518  --with-included-gettext use the GNU gettext library included here
1519  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1520  --without-libintl-prefix     don't search for libintl in includedir and libdir
1521  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1522                          both]
1523  --with-aix-soname=aix|svr4|both
1524                          shared library versioning (aka "SONAME") variant to
1525                          provide on AIX, [default=aix].
1526  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1527  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1528                          compiler's sysroot if not specified).
1529
1530Some influential environment variables:
1531  EMACS       the Emacs editor command
1532  EMACSLOADPATH
1533              the Emacs library search path
1534  CC          C compiler command
1535  CFLAGS      C compiler flags
1536  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1537              nonstandard directory <lib dir>
1538  LIBS        libraries to pass to the linker, e.g. -l<library>
1539  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540              you have headers in a nonstandard directory <include dir>
1541  CPP         C preprocessor
1542  LT_SYS_LIBRARY_PATH
1543              User-defined run-time library search path.
1544
1545Use these variables to override the choices made by `configure' or to help
1546it to find libraries and programs with nonstandard names/locations.
1547
1548Report bugs to <selinger at users.sourceforge.net>.
1549_ACEOF
1550ac_status=$?
1551fi
1552
1553if test "$ac_init_help" = "recursive"; then
1554  # If there are subdirs, report their specific --help.
1555  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556    test -d "$ac_dir" ||
1557      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558      continue
1559    ac_builddir=.
1560
1561case "$ac_dir" in
1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563*)
1564  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565  # A ".." for each directory in $ac_dir_suffix.
1566  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567  case $ac_top_builddir_sub in
1568  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570  esac ;;
1571esac
1572ac_abs_top_builddir=$ac_pwd
1573ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574# for backward compatibility:
1575ac_top_builddir=$ac_top_build_prefix
1576
1577case $srcdir in
1578  .)  # We are building in place.
1579    ac_srcdir=.
1580    ac_top_srcdir=$ac_top_builddir_sub
1581    ac_abs_top_srcdir=$ac_pwd ;;
1582  [\\/]* | ?:[\\/]* )  # Absolute name.
1583    ac_srcdir=$srcdir$ac_dir_suffix;
1584    ac_top_srcdir=$srcdir
1585    ac_abs_top_srcdir=$srcdir ;;
1586  *) # Relative name.
1587    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588    ac_top_srcdir=$ac_top_build_prefix$srcdir
1589    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590esac
1591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593    cd "$ac_dir" || { ac_status=$?; continue; }
1594    # Check for guested configure.
1595    if test -f "$ac_srcdir/configure.gnu"; then
1596      echo &&
1597      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598    elif test -f "$ac_srcdir/configure"; then
1599      echo &&
1600      $SHELL "$ac_srcdir/configure" --help=recursive
1601    else
1602      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603    fi || ac_status=$?
1604    cd "$ac_pwd" || { ac_status=$?; break; }
1605  done
1606fi
1607
1608test -n "$ac_init_help" && exit $ac_status
1609if $ac_init_version; then
1610  cat <<\_ACEOF
1611ccrypt configure 1.11
1612generated by GNU Autoconf 2.69
1613
1614Copyright (C) 2012 Free Software Foundation, Inc.
1615This configure script is free software; the Free Software Foundation
1616gives unlimited permission to copy, distribute and modify it.
1617_ACEOF
1618  exit
1619fi
1620
1621## ------------------------ ##
1622## Autoconf initialization. ##
1623## ------------------------ ##
1624
1625# ac_fn_c_try_compile LINENO
1626# --------------------------
1627# Try to compile conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_compile ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  rm -f conftest.$ac_objext
1632  if { { ac_try="$ac_compile"
1633case "(($ac_try" in
1634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635  *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639  (eval "$ac_compile") 2>conftest.err
1640  ac_status=$?
1641  if test -s conftest.err; then
1642    grep -v '^ *+' conftest.err >conftest.er1
1643    cat conftest.er1 >&5
1644    mv -f conftest.er1 conftest.err
1645  fi
1646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647  test $ac_status = 0; } && {
1648	 test -z "$ac_c_werror_flag" ||
1649	 test ! -s conftest.err
1650       } && test -s conftest.$ac_objext; then :
1651  ac_retval=0
1652else
1653  $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656	ac_retval=1
1657fi
1658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659  as_fn_set_status $ac_retval
1660
1661} # ac_fn_c_try_compile
1662
1663# ac_fn_c_try_cpp LINENO
1664# ----------------------
1665# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_cpp ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  if { { ac_try="$ac_cpp conftest.$ac_ext"
1670case "(($ac_try" in
1671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672  *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677  ac_status=$?
1678  if test -s conftest.err; then
1679    grep -v '^ *+' conftest.err >conftest.er1
1680    cat conftest.er1 >&5
1681    mv -f conftest.er1 conftest.err
1682  fi
1683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684  test $ac_status = 0; } > conftest.i && {
1685	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686	 test ! -s conftest.err
1687       }; then :
1688  ac_retval=0
1689else
1690  $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693    ac_retval=1
1694fi
1695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696  as_fn_set_status $ac_retval
1697
1698} # ac_fn_c_try_cpp
1699
1700# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1701# -------------------------------------------------------
1702# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1703# the include files in INCLUDES and setting the cache variable VAR
1704# accordingly.
1705ac_fn_c_check_header_mongrel ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  if eval \${$3+:} false; then :
1709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710$as_echo_n "checking for $2... " >&6; }
1711if eval \${$3+:} false; then :
1712  $as_echo_n "(cached) " >&6
1713fi
1714eval ac_res=\$$3
1715	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716$as_echo "$ac_res" >&6; }
1717else
1718  # Is the header compilable?
1719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1720$as_echo_n "checking $2 usability... " >&6; }
1721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h.  */
1723$4
1724#include <$2>
1725_ACEOF
1726if ac_fn_c_try_compile "$LINENO"; then :
1727  ac_header_compiler=yes
1728else
1729  ac_header_compiler=no
1730fi
1731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1733$as_echo "$ac_header_compiler" >&6; }
1734
1735# Is the header present?
1736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1737$as_echo_n "checking $2 presence... " >&6; }
1738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740#include <$2>
1741_ACEOF
1742if ac_fn_c_try_cpp "$LINENO"; then :
1743  ac_header_preproc=yes
1744else
1745  ac_header_preproc=no
1746fi
1747rm -f conftest.err conftest.i conftest.$ac_ext
1748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1749$as_echo "$ac_header_preproc" >&6; }
1750
1751# So?  What about this header?
1752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1753  yes:no: )
1754    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1755$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1756    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758    ;;
1759  no:yes:* )
1760    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1761$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1762    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1763$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1764    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1765$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1766    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1767$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1768    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770( $as_echo "## ------------------------------------------------ ##
1771## Report this to selinger at users.sourceforge.net ##
1772## ------------------------------------------------ ##"
1773     ) | sed "s/^/$as_me: WARNING:     /" >&2
1774    ;;
1775esac
1776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777$as_echo_n "checking for $2... " >&6; }
1778if eval \${$3+:} false; then :
1779  $as_echo_n "(cached) " >&6
1780else
1781  eval "$3=\$ac_header_compiler"
1782fi
1783eval ac_res=\$$3
1784	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785$as_echo "$ac_res" >&6; }
1786fi
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_header_mongrel
1790
1791# ac_fn_c_try_run LINENO
1792# ----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1794# that executables *can* be run.
1795ac_fn_c_try_run ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_link") 2>&5
1806  ac_status=$?
1807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809  { { case "(($ac_try" in
1810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811  *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815  (eval "$ac_try") 2>&5
1816  ac_status=$?
1817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818  test $ac_status = 0; }; }; then :
1819  ac_retval=0
1820else
1821  $as_echo "$as_me: program exited with status $ac_status" >&5
1822       $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825       ac_retval=$ac_status
1826fi
1827  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829  as_fn_set_status $ac_retval
1830
1831} # ac_fn_c_try_run
1832
1833# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1834# -------------------------------------------------------
1835# Tests whether HEADER exists and can be compiled using the include files in
1836# INCLUDES, setting the cache variable VAR accordingly.
1837ac_fn_c_check_header_compile ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
1842if eval \${$3+:} false; then :
1843  $as_echo_n "(cached) " >&6
1844else
1845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846/* end confdefs.h.  */
1847$4
1848#include <$2>
1849_ACEOF
1850if ac_fn_c_try_compile "$LINENO"; then :
1851  eval "$3=yes"
1852else
1853  eval "$3=no"
1854fi
1855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856fi
1857eval ac_res=\$$3
1858	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862} # ac_fn_c_check_header_compile
1863
1864# ac_fn_c_try_link LINENO
1865# -----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded.
1867ac_fn_c_try_link ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  rm -f conftest.$ac_objext conftest$ac_exeext
1871  if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_link") 2>conftest.err
1879  ac_status=$?
1880  if test -s conftest.err; then
1881    grep -v '^ *+' conftest.err >conftest.er1
1882    cat conftest.er1 >&5
1883    mv -f conftest.er1 conftest.err
1884  fi
1885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886  test $ac_status = 0; } && {
1887	 test -z "$ac_c_werror_flag" ||
1888	 test ! -s conftest.err
1889       } && test -s conftest$ac_exeext && {
1890	 test "$cross_compiling" = yes ||
1891	 test -x conftest$ac_exeext
1892       }; then :
1893  ac_retval=0
1894else
1895  $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898	ac_retval=1
1899fi
1900  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902  # interfere with the next link command; also delete a directory that is
1903  # left behind by Apple's compiler.  We do this before executing the actions.
1904  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906  as_fn_set_status $ac_retval
1907
1908} # ac_fn_c_try_link
1909
1910# ac_fn_c_check_func LINENO FUNC VAR
1911# ----------------------------------
1912# Tests whether FUNC exists, setting the cache variable VAR accordingly
1913ac_fn_c_check_func ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917$as_echo_n "checking for $2... " >&6; }
1918if eval \${$3+:} false; then :
1919  $as_echo_n "(cached) " >&6
1920else
1921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h.  */
1923/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1925#define $2 innocuous_$2
1926
1927/* System header to define __stub macros and hopefully few prototypes,
1928    which can conflict with char $2 (); below.
1929    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930    <limits.h> exists even on freestanding compilers.  */
1931
1932#ifdef __STDC__
1933# include <limits.h>
1934#else
1935# include <assert.h>
1936#endif
1937
1938#undef $2
1939
1940/* Override any GCC internal prototype to avoid an error.
1941   Use char because int might match the return type of a GCC
1942   builtin and then its argument prototype would still apply.  */
1943#ifdef __cplusplus
1944extern "C"
1945#endif
1946char $2 ();
1947/* The GNU C library defines this for functions which it implements
1948    to always fail with ENOSYS.  Some functions are actually named
1949    something starting with __ and the normal name is an alias.  */
1950#if defined __stub_$2 || defined __stub___$2
1951choke me
1952#endif
1953
1954int
1955main ()
1956{
1957return $2 ();
1958  ;
1959  return 0;
1960}
1961_ACEOF
1962if ac_fn_c_try_link "$LINENO"; then :
1963  eval "$3=yes"
1964else
1965  eval "$3=no"
1966fi
1967rm -f core conftest.err conftest.$ac_objext \
1968    conftest$ac_exeext conftest.$ac_ext
1969fi
1970eval ac_res=\$$3
1971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974
1975} # ac_fn_c_check_func
1976
1977# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1978# --------------------------------------------
1979# Tries to find the compile-time value of EXPR in a program that includes
1980# INCLUDES, setting VAR accordingly. Returns whether the value could be
1981# computed
1982ac_fn_c_compute_int ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  if test "$cross_compiling" = yes; then
1986    # Depending upon the size, compute the lo and hi bounds.
1987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h.  */
1989$4
1990int
1991main ()
1992{
1993static int test_array [1 - 2 * !(($2) >= 0)];
1994test_array [0] = 0;
1995return test_array [0];
1996
1997  ;
1998  return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002  ac_lo=0 ac_mid=0
2003  while :; do
2004    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h.  */
2006$4
2007int
2008main ()
2009{
2010static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011test_array [0] = 0;
2012return test_array [0];
2013
2014  ;
2015  return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019  ac_hi=$ac_mid; break
2020else
2021  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2022			if test $ac_lo -le $ac_mid; then
2023			  ac_lo= ac_hi=
2024			  break
2025			fi
2026			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029  done
2030else
2031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h.  */
2033$4
2034int
2035main ()
2036{
2037static int test_array [1 - 2 * !(($2) < 0)];
2038test_array [0] = 0;
2039return test_array [0];
2040
2041  ;
2042  return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046  ac_hi=-1 ac_mid=-1
2047  while :; do
2048    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h.  */
2050$4
2051int
2052main ()
2053{
2054static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2055test_array [0] = 0;
2056return test_array [0];
2057
2058  ;
2059  return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"; then :
2063  ac_lo=$ac_mid; break
2064else
2065  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2066			if test $ac_mid -le $ac_hi; then
2067			  ac_lo= ac_hi=
2068			  break
2069			fi
2070			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073  done
2074else
2075  ac_lo= ac_hi=
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080# Binary search between lo and hi bounds.
2081while test "x$ac_lo" != "x$ac_hi"; do
2082  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h.  */
2085$4
2086int
2087main ()
2088{
2089static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2090test_array [0] = 0;
2091return test_array [0];
2092
2093  ;
2094  return 0;
2095}
2096_ACEOF
2097if ac_fn_c_try_compile "$LINENO"; then :
2098  ac_hi=$ac_mid
2099else
2100  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103done
2104case $ac_lo in #((
2105?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2106'') ac_retval=1 ;;
2107esac
2108  else
2109    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110/* end confdefs.h.  */
2111$4
2112static long int longval () { return $2; }
2113static unsigned long int ulongval () { return $2; }
2114#include <stdio.h>
2115#include <stdlib.h>
2116int
2117main ()
2118{
2119
2120  FILE *f = fopen ("conftest.val", "w");
2121  if (! f)
2122    return 1;
2123  if (($2) < 0)
2124    {
2125      long int i = longval ();
2126      if (i != ($2))
2127	return 1;
2128      fprintf (f, "%ld", i);
2129    }
2130  else
2131    {
2132      unsigned long int i = ulongval ();
2133      if (i != ($2))
2134	return 1;
2135      fprintf (f, "%lu", i);
2136    }
2137  /* Do not output a trailing newline, as this causes \r\n confusion
2138     on some platforms.  */
2139  return ferror (f) || fclose (f) != 0;
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_run "$LINENO"; then :
2146  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2147else
2148  ac_retval=1
2149fi
2150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2151  conftest.$ac_objext conftest.beam conftest.$ac_ext
2152rm -f conftest.val
2153
2154  fi
2155  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156  as_fn_set_status $ac_retval
2157
2158} # ac_fn_c_compute_int
2159
2160# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2161# -------------------------------------------
2162# Tests whether TYPE exists after having included INCLUDES, setting cache
2163# variable VAR accordingly.
2164ac_fn_c_check_type ()
2165{
2166  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2168$as_echo_n "checking for $2... " >&6; }
2169if eval \${$3+:} false; then :
2170  $as_echo_n "(cached) " >&6
2171else
2172  eval "$3=no"
2173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175$4
2176int
2177main ()
2178{
2179if (sizeof ($2))
2180	 return 0;
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187/* end confdefs.h.  */
2188$4
2189int
2190main ()
2191{
2192if (sizeof (($2)))
2193	    return 0;
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198if ac_fn_c_try_compile "$LINENO"; then :
2199
2200else
2201  eval "$3=yes"
2202fi
2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206fi
2207eval ac_res=\$$3
2208	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209$as_echo "$ac_res" >&6; }
2210  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211
2212} # ac_fn_c_check_type
2213
2214# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2215# ---------------------------------------------
2216# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2217# accordingly.
2218ac_fn_c_check_decl ()
2219{
2220  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221  as_decl_name=`echo $2|sed 's/ *(.*//'`
2222  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2224$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2225if eval \${$3+:} false; then :
2226  $as_echo_n "(cached) " >&6
2227else
2228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h.  */
2230$4
2231int
2232main ()
2233{
2234#ifndef $as_decl_name
2235#ifdef __cplusplus
2236  (void) $as_decl_use;
2237#else
2238  (void) $as_decl_name;
2239#endif
2240#endif
2241
2242  ;
2243  return 0;
2244}
2245_ACEOF
2246if ac_fn_c_try_compile "$LINENO"; then :
2247  eval "$3=yes"
2248else
2249  eval "$3=no"
2250fi
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252fi
2253eval ac_res=\$$3
2254	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255$as_echo "$ac_res" >&6; }
2256  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257
2258} # ac_fn_c_check_decl
2259cat >config.log <<_ACEOF
2260This file contains any messages produced by compilers while
2261running configure, to aid debugging if configure makes a mistake.
2262
2263It was created by ccrypt $as_me 1.11, which was
2264generated by GNU Autoconf 2.69.  Invocation command line was
2265
2266  $ $0 $@
2267
2268_ACEOF
2269exec 5>>config.log
2270{
2271cat <<_ASUNAME
2272## --------- ##
2273## Platform. ##
2274## --------- ##
2275
2276hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2277uname -m = `(uname -m) 2>/dev/null || echo unknown`
2278uname -r = `(uname -r) 2>/dev/null || echo unknown`
2279uname -s = `(uname -s) 2>/dev/null || echo unknown`
2280uname -v = `(uname -v) 2>/dev/null || echo unknown`
2281
2282/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2283/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2284
2285/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2286/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2287/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2288/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2289/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2290/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2291/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2292
2293_ASUNAME
2294
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298  IFS=$as_save_IFS
2299  test -z "$as_dir" && as_dir=.
2300    $as_echo "PATH: $as_dir"
2301  done
2302IFS=$as_save_IFS
2303
2304} >&5
2305
2306cat >&5 <<_ACEOF
2307
2308
2309## ----------- ##
2310## Core tests. ##
2311## ----------- ##
2312
2313_ACEOF
2314
2315
2316# Keep a trace of the command line.
2317# Strip out --no-create and --no-recursion so they do not pile up.
2318# Strip out --silent because we don't want to record it for future runs.
2319# Also quote any args containing shell meta-characters.
2320# Make two passes to allow for proper duplicate-argument suppression.
2321ac_configure_args=
2322ac_configure_args0=
2323ac_configure_args1=
2324ac_must_keep_next=false
2325for ac_pass in 1 2
2326do
2327  for ac_arg
2328  do
2329    case $ac_arg in
2330    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2331    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2332    | -silent | --silent | --silen | --sile | --sil)
2333      continue ;;
2334    *\'*)
2335      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2336    esac
2337    case $ac_pass in
2338    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339    2)
2340      as_fn_append ac_configure_args1 " '$ac_arg'"
2341      if test $ac_must_keep_next = true; then
2342	ac_must_keep_next=false # Got value, back to normal.
2343      else
2344	case $ac_arg in
2345	  *=* | --config-cache | -C | -disable-* | --disable-* \
2346	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2347	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2348	  | -with-* | --with-* | -without-* | --without-* | --x)
2349	    case "$ac_configure_args0 " in
2350	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2351	    esac
2352	    ;;
2353	  -* ) ac_must_keep_next=true ;;
2354	esac
2355      fi
2356      as_fn_append ac_configure_args " '$ac_arg'"
2357      ;;
2358    esac
2359  done
2360done
2361{ ac_configure_args0=; unset ac_configure_args0;}
2362{ ac_configure_args1=; unset ac_configure_args1;}
2363
2364# When interrupted or exit'd, cleanup temporary files, and complete
2365# config.log.  We remove comments because anyway the quotes in there
2366# would cause problems or look ugly.
2367# WARNING: Use '\'' to represent an apostrophe within the trap.
2368# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2369trap 'exit_status=$?
2370  # Save into config.log some information that might help in debugging.
2371  {
2372    echo
2373
2374    $as_echo "## ---------------- ##
2375## Cache variables. ##
2376## ---------------- ##"
2377    echo
2378    # The following way of writing the cache mishandles newlines in values,
2379(
2380  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381    eval ac_val=\$$ac_var
2382    case $ac_val in #(
2383    *${as_nl}*)
2384      case $ac_var in #(
2385      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2386$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2387      esac
2388      case $ac_var in #(
2389      _ | IFS | as_nl) ;; #(
2390      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2391      *) { eval $ac_var=; unset $ac_var;} ;;
2392      esac ;;
2393    esac
2394  done
2395  (set) 2>&1 |
2396    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397    *${as_nl}ac_space=\ *)
2398      sed -n \
2399	"s/'\''/'\''\\\\'\'''\''/g;
2400	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401      ;; #(
2402    *)
2403      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404      ;;
2405    esac |
2406    sort
2407)
2408    echo
2409
2410    $as_echo "## ----------------- ##
2411## Output variables. ##
2412## ----------------- ##"
2413    echo
2414    for ac_var in $ac_subst_vars
2415    do
2416      eval ac_val=\$$ac_var
2417      case $ac_val in
2418      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419      esac
2420      $as_echo "$ac_var='\''$ac_val'\''"
2421    done | sort
2422    echo
2423
2424    if test -n "$ac_subst_files"; then
2425      $as_echo "## ------------------- ##
2426## File substitutions. ##
2427## ------------------- ##"
2428      echo
2429      for ac_var in $ac_subst_files
2430      do
2431	eval ac_val=\$$ac_var
2432	case $ac_val in
2433	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2434	esac
2435	$as_echo "$ac_var='\''$ac_val'\''"
2436      done | sort
2437      echo
2438    fi
2439
2440    if test -s confdefs.h; then
2441      $as_echo "## ----------- ##
2442## confdefs.h. ##
2443## ----------- ##"
2444      echo
2445      cat confdefs.h
2446      echo
2447    fi
2448    test "$ac_signal" != 0 &&
2449      $as_echo "$as_me: caught signal $ac_signal"
2450    $as_echo "$as_me: exit $exit_status"
2451  } >&5
2452  rm -f core *.core core.conftest.* &&
2453    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454    exit $exit_status
2455' 0
2456for ac_signal in 1 2 13 15; do
2457  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458done
2459ac_signal=0
2460
2461# confdefs.h avoids OS command line length limits that DEFS can exceed.
2462rm -f -r conftest* confdefs.h
2463
2464$as_echo "/* confdefs.h */" > confdefs.h
2465
2466# Predefined preprocessor variables.
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_NAME "$PACKAGE_NAME"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_VERSION "$PACKAGE_VERSION"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_STRING "$PACKAGE_STRING"
2482_ACEOF
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486_ACEOF
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_URL "$PACKAGE_URL"
2490_ACEOF
2491
2492
2493# Let the site file select an alternate cache file if it wants to.
2494# Prefer an explicitly selected file to automatically selected ones.
2495ac_site_file1=NONE
2496ac_site_file2=NONE
2497if test -n "$CONFIG_SITE"; then
2498  # We do not want a PATH search for config.site.
2499  case $CONFIG_SITE in #((
2500    -*)  ac_site_file1=./$CONFIG_SITE;;
2501    */*) ac_site_file1=$CONFIG_SITE;;
2502    *)   ac_site_file1=./$CONFIG_SITE;;
2503  esac
2504elif test "x$prefix" != xNONE; then
2505  ac_site_file1=$prefix/share/config.site
2506  ac_site_file2=$prefix/etc/config.site
2507else
2508  ac_site_file1=$ac_default_prefix/share/config.site
2509  ac_site_file2=$ac_default_prefix/etc/config.site
2510fi
2511for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512do
2513  test "x$ac_site_file" = xNONE && continue
2514  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2515    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2516$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2517    sed 's/^/| /' "$ac_site_file" >&5
2518    . "$ac_site_file" \
2519      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521as_fn_error $? "failed to load site script $ac_site_file
2522See \`config.log' for more details" "$LINENO" 5; }
2523  fi
2524done
2525
2526if test -r "$cache_file"; then
2527  # Some versions of bash will fail to source /dev/null (special files
2528  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2529  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2530    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2531$as_echo "$as_me: loading cache $cache_file" >&6;}
2532    case $cache_file in
2533      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2534      *)                      . "./$cache_file";;
2535    esac
2536  fi
2537else
2538  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2539$as_echo "$as_me: creating cache $cache_file" >&6;}
2540  >$cache_file
2541fi
2542
2543gt_needs="$gt_needs "
2544as_fn_append ac_header_list " stdlib.h"
2545as_fn_append ac_header_list " unistd.h"
2546as_fn_append ac_header_list " sys/param.h"
2547as_fn_append ac_func_list " symlink"
2548# Check that the precious variables saved in the cache have kept the same
2549# value.
2550ac_cache_corrupted=false
2551for ac_var in $ac_precious_vars; do
2552  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2553  eval ac_new_set=\$ac_env_${ac_var}_set
2554  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2555  eval ac_new_val=\$ac_env_${ac_var}_value
2556  case $ac_old_set,$ac_new_set in
2557    set,)
2558      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2559$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2560      ac_cache_corrupted=: ;;
2561    ,set)
2562      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2563$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2564      ac_cache_corrupted=: ;;
2565    ,);;
2566    *)
2567      if test "x$ac_old_val" != "x$ac_new_val"; then
2568	# differences in whitespace do not lead to failure.
2569	ac_old_val_w=`echo x $ac_old_val`
2570	ac_new_val_w=`echo x $ac_new_val`
2571	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2572	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2573$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2574	  ac_cache_corrupted=:
2575	else
2576	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2577$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2578	  eval $ac_var=\$ac_old_val
2579	fi
2580	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2581$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2582	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2583$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2584      fi;;
2585  esac
2586  # Pass precious variables to config.status.
2587  if test "$ac_new_set" = set; then
2588    case $ac_new_val in
2589    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2590    *) ac_arg=$ac_var=$ac_new_val ;;
2591    esac
2592    case " $ac_configure_args " in
2593      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2594      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2595    esac
2596  fi
2597done
2598if $ac_cache_corrupted; then
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2602$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2603  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2604fi
2605## -------------------- ##
2606## Main body of script. ##
2607## -------------------- ##
2608
2609ac_ext=c
2610ac_cpp='$CPP $CPPFLAGS'
2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614
2615
2616
2617am__api_version='1.15'
2618
2619ac_aux_dir=
2620for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2621  if test -f "$ac_dir/install-sh"; then
2622    ac_aux_dir=$ac_dir
2623    ac_install_sh="$ac_aux_dir/install-sh -c"
2624    break
2625  elif test -f "$ac_dir/install.sh"; then
2626    ac_aux_dir=$ac_dir
2627    ac_install_sh="$ac_aux_dir/install.sh -c"
2628    break
2629  elif test -f "$ac_dir/shtool"; then
2630    ac_aux_dir=$ac_dir
2631    ac_install_sh="$ac_aux_dir/shtool install -c"
2632    break
2633  fi
2634done
2635if test -z "$ac_aux_dir"; then
2636  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2637fi
2638
2639# These three variables are undocumented and unsupported,
2640# and are intended to be withdrawn in a future Autoconf release.
2641# They can cause serious problems if a builder's source tree is in a directory
2642# whose full name contains unusual characters.
2643ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2644ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2645ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2646
2647
2648# Find a good install program.  We prefer a C program (faster),
2649# so one script is as good as another.  But avoid the broken or
2650# incompatible versions:
2651# SysV /etc/install, /usr/sbin/install
2652# SunOS /usr/etc/install
2653# IRIX /sbin/install
2654# AIX /bin/install
2655# AmigaOS /C/install, which installs bootblocks on floppy discs
2656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2659# OS/2's system install, which has a completely different semantic
2660# ./install, which can be erroneously created by make from ./install.sh.
2661# Reject install programs that cannot install multiple files.
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2663$as_echo_n "checking for a BSD-compatible install... " >&6; }
2664if test -z "$INSTALL"; then
2665if ${ac_cv_path_install+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671  IFS=$as_save_IFS
2672  test -z "$as_dir" && as_dir=.
2673    # Account for people who put trailing slashes in PATH elements.
2674case $as_dir/ in #((
2675  ./ | .// | /[cC]/* | \
2676  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2677  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2678  /usr/ucb/* ) ;;
2679  *)
2680    # OSF1 and SCO ODT 3.0 have their own names for install.
2681    # Don't use installbsd from OSF since it installs stuff as root
2682    # by default.
2683    for ac_prog in ginstall scoinst install; do
2684      for ac_exec_ext in '' $ac_executable_extensions; do
2685	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2686	  if test $ac_prog = install &&
2687	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688	    # AIX install.  It has an incompatible calling convention.
2689	    :
2690	  elif test $ac_prog = install &&
2691	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692	    # program-specific install script used by HP pwplus--don't use.
2693	    :
2694	  else
2695	    rm -rf conftest.one conftest.two conftest.dir
2696	    echo one > conftest.one
2697	    echo two > conftest.two
2698	    mkdir conftest.dir
2699	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2700	      test -s conftest.one && test -s conftest.two &&
2701	      test -s conftest.dir/conftest.one &&
2702	      test -s conftest.dir/conftest.two
2703	    then
2704	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2705	      break 3
2706	    fi
2707	  fi
2708	fi
2709      done
2710    done
2711    ;;
2712esac
2713
2714  done
2715IFS=$as_save_IFS
2716
2717rm -rf conftest.one conftest.two conftest.dir
2718
2719fi
2720  if test "${ac_cv_path_install+set}" = set; then
2721    INSTALL=$ac_cv_path_install
2722  else
2723    # As a last resort, use the slow shell script.  Don't cache a
2724    # value for INSTALL within a source directory, because that will
2725    # break other packages using the cache if that directory is
2726    # removed, or if the value is a relative name.
2727    INSTALL=$ac_install_sh
2728  fi
2729fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2731$as_echo "$INSTALL" >&6; }
2732
2733# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2734# It thinks the first close brace ends the variable substitution.
2735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2736
2737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2738
2739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2740
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2742$as_echo_n "checking whether build environment is sane... " >&6; }
2743# Reject unsafe characters in $srcdir or the absolute working directory
2744# name.  Accept space and tab only in the latter.
2745am_lf='
2746'
2747case `pwd` in
2748  *[\\\"\#\$\&\'\`$am_lf]*)
2749    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2750esac
2751case $srcdir in
2752  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2753    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2754esac
2755
2756# Do 'set' in a subshell so we don't clobber the current shell's
2757# arguments.  Must try -L first in case configure is actually a
2758# symlink; some systems play weird games with the mod time of symlinks
2759# (eg FreeBSD returns the mod time of the symlink's containing
2760# directory).
2761if (
2762   am_has_slept=no
2763   for am_try in 1 2; do
2764     echo "timestamp, slept: $am_has_slept" > conftest.file
2765     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2766     if test "$*" = "X"; then
2767	# -L didn't work.
2768	set X `ls -t "$srcdir/configure" conftest.file`
2769     fi
2770     if test "$*" != "X $srcdir/configure conftest.file" \
2771	&& test "$*" != "X conftest.file $srcdir/configure"; then
2772
2773	# If neither matched, then we have a broken ls.  This can happen
2774	# if, for instance, CONFIG_SHELL is bash and it inherits a
2775	# broken ls alias from the environment.  This has actually
2776	# happened.  Such a system could not be considered "sane".
2777	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2778  alias in your environment" "$LINENO" 5
2779     fi
2780     if test "$2" = conftest.file || test $am_try -eq 2; then
2781       break
2782     fi
2783     # Just in case.
2784     sleep 1
2785     am_has_slept=yes
2786   done
2787   test "$2" = conftest.file
2788   )
2789then
2790   # Ok.
2791   :
2792else
2793   as_fn_error $? "newly created file is older than distributed files!
2794Check your system clock" "$LINENO" 5
2795fi
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797$as_echo "yes" >&6; }
2798# If we didn't sleep, we still need to ensure time stamps of config.status and
2799# generated files are strictly newer.
2800am_sleep_pid=
2801if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2802  ( sleep 1 ) &
2803  am_sleep_pid=$!
2804fi
2805
2806rm -f conftest.file
2807
2808test "$program_prefix" != NONE &&
2809  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2810# Use a double $ so make ignores it.
2811test "$program_suffix" != NONE &&
2812  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2813# Double any \ or $.
2814# By default was `s,x,x', remove it if useless.
2815ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2816program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2817
2818# Expand $ac_aux_dir to an absolute path.
2819am_aux_dir=`cd "$ac_aux_dir" && pwd`
2820
2821if test x"${MISSING+set}" != xset; then
2822  case $am_aux_dir in
2823  *\ * | *\	*)
2824    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2825  *)
2826    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2827  esac
2828fi
2829# Use eval to expand $SHELL
2830if eval "$MISSING --is-lightweight"; then
2831  am_missing_run="$MISSING "
2832else
2833  am_missing_run=
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2835$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2836fi
2837
2838if test x"${install_sh+set}" != xset; then
2839  case $am_aux_dir in
2840  *\ * | *\	*)
2841    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2842  *)
2843    install_sh="\${SHELL} $am_aux_dir/install-sh"
2844  esac
2845fi
2846
2847# Installed binaries are usually stripped using 'strip' when the user
2848# run "make install-strip".  However 'strip' might not be the right
2849# tool to use in cross-compilation environments, therefore Automake
2850# will honor the 'STRIP' environment variable to overrule this program.
2851if test "$cross_compiling" != no; then
2852  if test -n "$ac_tool_prefix"; then
2853  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2854set dummy ${ac_tool_prefix}strip; ac_word=$2
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856$as_echo_n "checking for $ac_word... " >&6; }
2857if ${ac_cv_prog_STRIP+:} false; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  if test -n "$STRIP"; then
2861  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  test -z "$as_dir" && as_dir=.
2868    for ac_exec_ext in '' $ac_executable_extensions; do
2869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872    break 2
2873  fi
2874done
2875  done
2876IFS=$as_save_IFS
2877
2878fi
2879fi
2880STRIP=$ac_cv_prog_STRIP
2881if test -n "$STRIP"; then
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2883$as_echo "$STRIP" >&6; }
2884else
2885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886$as_echo "no" >&6; }
2887fi
2888
2889
2890fi
2891if test -z "$ac_cv_prog_STRIP"; then
2892  ac_ct_STRIP=$STRIP
2893  # Extract the first word of "strip", so it can be a program name with args.
2894set dummy strip; ac_word=$2
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896$as_echo_n "checking for $ac_word... " >&6; }
2897if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2898  $as_echo_n "(cached) " >&6
2899else
2900  if test -n "$ac_ct_STRIP"; then
2901  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2902else
2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904for as_dir in $PATH
2905do
2906  IFS=$as_save_IFS
2907  test -z "$as_dir" && as_dir=.
2908    for ac_exec_ext in '' $ac_executable_extensions; do
2909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910    ac_cv_prog_ac_ct_STRIP="strip"
2911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912    break 2
2913  fi
2914done
2915  done
2916IFS=$as_save_IFS
2917
2918fi
2919fi
2920ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2921if test -n "$ac_ct_STRIP"; then
2922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2923$as_echo "$ac_ct_STRIP" >&6; }
2924else
2925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926$as_echo "no" >&6; }
2927fi
2928
2929  if test "x$ac_ct_STRIP" = x; then
2930    STRIP=":"
2931  else
2932    case $cross_compiling:$ac_tool_warned in
2933yes:)
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936ac_tool_warned=yes ;;
2937esac
2938    STRIP=$ac_ct_STRIP
2939  fi
2940else
2941  STRIP="$ac_cv_prog_STRIP"
2942fi
2943
2944fi
2945INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2946
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2948$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2949if test -z "$MKDIR_P"; then
2950  if ${ac_cv_path_mkdir+:} false; then :
2951  $as_echo_n "(cached) " >&6
2952else
2953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2955do
2956  IFS=$as_save_IFS
2957  test -z "$as_dir" && as_dir=.
2958    for ac_prog in mkdir gmkdir; do
2959	 for ac_exec_ext in '' $ac_executable_extensions; do
2960	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2961	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2962	     'mkdir (GNU coreutils) '* | \
2963	     'mkdir (coreutils) '* | \
2964	     'mkdir (fileutils) '4.1*)
2965	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2966	       break 3;;
2967	   esac
2968	 done
2969       done
2970  done
2971IFS=$as_save_IFS
2972
2973fi
2974
2975  test -d ./--version && rmdir ./--version
2976  if test "${ac_cv_path_mkdir+set}" = set; then
2977    MKDIR_P="$ac_cv_path_mkdir -p"
2978  else
2979    # As a last resort, use the slow shell script.  Don't cache a
2980    # value for MKDIR_P within a source directory, because that will
2981    # break other packages using the cache if that directory is
2982    # removed, or if the value is a relative name.
2983    MKDIR_P="$ac_install_sh -d"
2984  fi
2985fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2987$as_echo "$MKDIR_P" >&6; }
2988
2989for ac_prog in gawk mawk nawk awk
2990do
2991  # Extract the first word of "$ac_prog", so it can be a program name with args.
2992set dummy $ac_prog; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if ${ac_cv_prog_AWK+:} false; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  if test -n "$AWK"; then
2999  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  test -z "$as_dir" && as_dir=.
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008    ac_cv_prog_AWK="$ac_prog"
3009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018AWK=$ac_cv_prog_AWK
3019if test -n "$AWK"; then
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3021$as_echo "$AWK" >&6; }
3022else
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027
3028  test -n "$AWK" && break
3029done
3030
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3032$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3033set x ${MAKE-make}
3034ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3035if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3036  $as_echo_n "(cached) " >&6
3037else
3038  cat >conftest.make <<\_ACEOF
3039SHELL = /bin/sh
3040all:
3041	@echo '@@@%%%=$(MAKE)=@@@%%%'
3042_ACEOF
3043# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3044case `${MAKE-make} -f conftest.make 2>/dev/null` in
3045  *@@@%%%=?*=@@@%%%*)
3046    eval ac_cv_prog_make_${ac_make}_set=yes;;
3047  *)
3048    eval ac_cv_prog_make_${ac_make}_set=no;;
3049esac
3050rm -f conftest.make
3051fi
3052if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054$as_echo "yes" >&6; }
3055  SET_MAKE=
3056else
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
3059  SET_MAKE="MAKE=${MAKE-make}"
3060fi
3061
3062rm -rf .tst 2>/dev/null
3063mkdir .tst 2>/dev/null
3064if test -d .tst; then
3065  am__leading_dot=.
3066else
3067  am__leading_dot=_
3068fi
3069rmdir .tst 2>/dev/null
3070
3071# Check whether --enable-silent-rules was given.
3072if test "${enable_silent_rules+set}" = set; then :
3073  enableval=$enable_silent_rules;
3074fi
3075
3076case $enable_silent_rules in # (((
3077  yes) AM_DEFAULT_VERBOSITY=0;;
3078   no) AM_DEFAULT_VERBOSITY=1;;
3079    *) AM_DEFAULT_VERBOSITY=1;;
3080esac
3081am_make=${MAKE-make}
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3083$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3084if ${am_cv_make_support_nested_variables+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  if $as_echo 'TRUE=$(BAR$(V))
3088BAR0=false
3089BAR1=true
3090V=1
3091am__doit:
3092	@$(TRUE)
3093.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3094  am_cv_make_support_nested_variables=yes
3095else
3096  am_cv_make_support_nested_variables=no
3097fi
3098fi
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3100$as_echo "$am_cv_make_support_nested_variables" >&6; }
3101if test $am_cv_make_support_nested_variables = yes; then
3102    AM_V='$(V)'
3103  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3104else
3105  AM_V=$AM_DEFAULT_VERBOSITY
3106  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3107fi
3108AM_BACKSLASH='\'
3109
3110if test "`cd $srcdir && pwd`" != "`pwd`"; then
3111  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3112  # is not polluted with repeated "-I."
3113  am__isrc=' -I$(srcdir)'
3114  # test to see if srcdir already configured
3115  if test -f $srcdir/config.status; then
3116    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3117  fi
3118fi
3119
3120# test whether we have cygpath
3121if test -z "$CYGPATH_W"; then
3122  if (cygpath --version) >/dev/null 2>/dev/null; then
3123    CYGPATH_W='cygpath -w'
3124  else
3125    CYGPATH_W=echo
3126  fi
3127fi
3128
3129
3130# Define the identity of the package.
3131 PACKAGE='ccrypt'
3132 VERSION='1.11'
3133
3134
3135cat >>confdefs.h <<_ACEOF
3136#define PACKAGE "$PACKAGE"
3137_ACEOF
3138
3139
3140cat >>confdefs.h <<_ACEOF
3141#define VERSION "$VERSION"
3142_ACEOF
3143
3144# Some tools Automake needs.
3145
3146ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3147
3148
3149AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3150
3151
3152AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3153
3154
3155AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3156
3157
3158MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3159
3160# For better backward compatibility.  To be removed once Automake 1.9.x
3161# dies out for good.  For more background, see:
3162# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3163# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3164mkdir_p='$(MKDIR_P)'
3165
3166# We need awk for the "check" target (and possibly the TAP driver).  The
3167# system "awk" is bad on some platforms.
3168# Always define AMTAR for backward compatibility.  Yes, it's still used
3169# in the wild :-(  We should find a proper way to deprecate it ...
3170AMTAR='$${TAR-tar}'
3171
3172
3173# We'll loop over all known methods to create a tar archive until one works.
3174_am_tools='gnutar  pax cpio none'
3175
3176am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3177
3178
3179
3180
3181
3182
3183# POSIX will say in a future version that running "rm -f" with no argument
3184# is OK; and we want to be able to make that assumption in our Makefile
3185# recipes.  So use an aggressive probe to check that the usage we want is
3186# actually supported "in the wild" to an acceptable degree.
3187# See automake bug#10828.
3188# To make any issue more visible, cause the running configure to be aborted
3189# by default if the 'rm' program in use doesn't match our expectations; the
3190# user can still override this though.
3191if rm -f && rm -fr && rm -rf; then : OK; else
3192  cat >&2 <<'END'
3193Oops!
3194
3195Your 'rm' program seems unable to run without file operands specified
3196on the command line, even when the '-f' option is present.  This is contrary
3197to the behaviour of most rm programs out there, and not conforming with
3198the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3199
3200Please tell bug-automake@gnu.org about your system, including the value
3201of your $PATH and any error possibly output before this message.  This
3202can help us improve future automake versions.
3203
3204END
3205  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3206    echo 'Configuration will proceed anyway, since you have set the' >&2
3207    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3208    echo >&2
3209  else
3210    cat >&2 <<'END'
3211Aborting the configuration process, to ensure you take notice of the issue.
3212
3213You can download and install GNU coreutils to get an 'rm' implementation
3214that behaves properly: <http://www.gnu.org/software/coreutils/>.
3215
3216If you want to complete the configuration process using your problematic
3217'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3218to "yes", and re-run configure.
3219
3220END
3221    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3222  fi
3223fi
3224
3225ac_config_headers="$ac_config_headers config.h"
3226
3227
3228
3229DATE="July 2018"
3230
3231 # If set to t, that means we are running in a shell under Emacs.
3232 # If you have an Emacs named "t", then use the full path.
3233 test x"$EMACS" = xt && EMACS=
3234 for ac_prog in emacs xemacs
3235do
3236  # Extract the first word of "$ac_prog", so it can be a program name with args.
3237set dummy $ac_prog; ac_word=$2
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if ${ac_cv_prog_EMACS+:} false; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  if test -n "$EMACS"; then
3244  ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251    for ac_exec_ext in '' $ac_executable_extensions; do
3252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253    ac_cv_prog_EMACS="$ac_prog"
3254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255    break 2
3256  fi
3257done
3258  done
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263EMACS=$ac_cv_prog_EMACS
3264if test -n "$EMACS"; then
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
3266$as_echo "$EMACS" >&6; }
3267else
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273  test -n "$EMACS" && break
3274done
3275test -n "$EMACS" || EMACS="no"
3276
3277
3278
3279
3280# Check whether --with-lispdir was given.
3281if test "${with_lispdir+set}" = set; then :
3282  withval=$with_lispdir;  lispdir="$withval"
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
3284$as_echo_n "checking where .elc files should go... " >&6; }
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
3286$as_echo "$lispdir" >&6; }
3287else
3288
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
3290$as_echo_n "checking where .elc files should go... " >&6; }
3291if ${am_cv_lispdir+:} false; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294
3295   if test $EMACS != "no"; then
3296     if test x${lispdir+set} != xset; then
3297  # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
3298  # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
3299  #  which is non-obvious for non-emacs users.
3300  # Redirecting /dev/null should help a bit; pity we can't detect "broken"
3301  #  emacsen earlier and avoid running this altogether.
3302  { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
3303  ($EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
3304  ac_status=$?
3305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306  test $ac_status = 0; }
3307	am_cv_lispdir=`sed -n \
3308       -e 's,/$,,' \
3309       -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
3310       -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
3311       conftest.out`
3312       rm conftest.out
3313     fi
3314   fi
3315   test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
3316
3317fi
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
3319$as_echo "$am_cv_lispdir" >&6; }
3320  lispdir="$am_cv_lispdir"
3321
3322fi
3323
3324
3325
3326
3327
3328NAMECCRYPT=ccrypt
3329NAMEENCRYPT=ccencrypt
3330NAMEDECRYPT=ccdecrypt
3331NAMECAT=ccat
3332SUF=.cpt
3333
3334NAMEUC=`echo $NAMECCRYPT | tr a-z A-Z`
3335
3336
3337cat >>confdefs.h <<_ACEOF
3338#define NAMECCRYPT "$NAMECCRYPT"
3339_ACEOF
3340
3341
3342cat >>confdefs.h <<_ACEOF
3343#define NAMEENCRYPT "$NAMEENCRYPT"
3344_ACEOF
3345
3346
3347cat >>confdefs.h <<_ACEOF
3348#define NAMEDECRYPT "$NAMEDECRYPT"
3349_ACEOF
3350
3351
3352cat >>confdefs.h <<_ACEOF
3353#define NAMECAT "$NAMECAT"
3354_ACEOF
3355
3356
3357cat >>confdefs.h <<_ACEOF
3358#define SUF "$SUF"
3359_ACEOF
3360
3361
3362ac_ext=c
3363ac_cpp='$CPP $CPPFLAGS'
3364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367if test -n "$ac_tool_prefix"; then
3368  for ac_prog in gcc clang cc c99 mgcc c89 pcc opencc sunc99 suncc
3369  do
3370    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3371set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if ${ac_cv_prog_CC+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  if test -n "$CC"; then
3378  ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392  done
3393IFS=$as_save_IFS
3394
3395fi
3396fi
3397CC=$ac_cv_prog_CC
3398if test -n "$CC"; then
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400$as_echo "$CC" >&6; }
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404fi
3405
3406
3407    test -n "$CC" && break
3408  done
3409fi
3410if test -z "$CC"; then
3411  ac_ct_CC=$CC
3412  for ac_prog in gcc clang cc c99 mgcc c89 pcc opencc sunc99 suncc
3413do
3414  # Extract the first word of "$ac_prog", so it can be a program name with args.
3415set dummy $ac_prog; ac_word=$2
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417$as_echo_n "checking for $ac_word... " >&6; }
3418if ${ac_cv_prog_ac_ct_CC+:} false; then :
3419  $as_echo_n "(cached) " >&6
3420else
3421  if test -n "$ac_ct_CC"; then
3422  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423else
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427  IFS=$as_save_IFS
3428  test -z "$as_dir" && as_dir=.
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431    ac_cv_prog_ac_ct_CC="$ac_prog"
3432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433    break 2
3434  fi
3435done
3436  done
3437IFS=$as_save_IFS
3438
3439fi
3440fi
3441ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442if test -n "$ac_ct_CC"; then
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444$as_echo "$ac_ct_CC" >&6; }
3445else
3446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447$as_echo "no" >&6; }
3448fi
3449
3450
3451  test -n "$ac_ct_CC" && break
3452done
3453
3454  if test "x$ac_ct_CC" = x; then
3455    CC=""
3456  else
3457    case $cross_compiling:$ac_tool_warned in
3458yes:)
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461ac_tool_warned=yes ;;
3462esac
3463    CC=$ac_ct_CC
3464  fi
3465fi
3466
3467
3468test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470as_fn_error $? "no acceptable C compiler found in \$PATH
3471See \`config.log' for more details" "$LINENO" 5; }
3472
3473# Provide some information about the compiler.
3474$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3475set X $ac_compile
3476ac_compiler=$2
3477for ac_option in --version -v -V -qversion; do
3478  { { ac_try="$ac_compiler $ac_option >&5"
3479case "(($ac_try" in
3480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481  *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484$as_echo "$ac_try_echo"; } >&5
3485  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3486  ac_status=$?
3487  if test -s conftest.err; then
3488    sed '10a\
3489... rest of stderr output deleted ...
3490         10q' conftest.err >conftest.er1
3491    cat conftest.er1 >&5
3492  fi
3493  rm -f conftest.er1 conftest.err
3494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495  test $ac_status = 0; }
3496done
3497
3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500
3501int
3502main ()
3503{
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509ac_clean_files_save=$ac_clean_files
3510ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3511# Try to create an executable without -o first, disregard a.out.
3512# It will help us diagnose broken compilers, and finding out an intuition
3513# of exeext.
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3515$as_echo_n "checking whether the C compiler works... " >&6; }
3516ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3517
3518# The possible output files:
3519ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3520
3521ac_rmfiles=
3522for ac_file in $ac_files
3523do
3524  case $ac_file in
3525    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3527  esac
3528done
3529rm -f $ac_rmfiles
3530
3531if { { ac_try="$ac_link_default"
3532case "(($ac_try" in
3533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534  *) ac_try_echo=$ac_try;;
3535esac
3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537$as_echo "$ac_try_echo"; } >&5
3538  (eval "$ac_link_default") 2>&5
3539  ac_status=$?
3540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541  test $ac_status = 0; }; then :
3542  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3543# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3544# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3545# so that the user can short-circuit this test for compilers unknown to
3546# Autoconf.
3547for ac_file in $ac_files ''
3548do
3549  test -f "$ac_file" || continue
3550  case $ac_file in
3551    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3552	;;
3553    [ab].out )
3554	# We found the default executable, but exeext='' is most
3555	# certainly right.
3556	break;;
3557    *.* )
3558	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3559	then :; else
3560	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561	fi
3562	# We set ac_cv_exeext here because the later test for it is not
3563	# safe: cross compilers may not add the suffix if given an `-o'
3564	# argument, so we may need to know it at that point already.
3565	# Even if this section looks crufty: it has the advantage of
3566	# actually working.
3567	break;;
3568    * )
3569	break;;
3570  esac
3571done
3572test "$ac_cv_exeext" = no && ac_cv_exeext=
3573
3574else
3575  ac_file=''
3576fi
3577if test -z "$ac_file"; then :
3578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580$as_echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585as_fn_error 77 "C compiler cannot create executables
3586See \`config.log' for more details" "$LINENO" 5; }
3587else
3588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589$as_echo "yes" >&6; }
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3592$as_echo_n "checking for C compiler default output file name... " >&6; }
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3594$as_echo "$ac_file" >&6; }
3595ac_exeext=$ac_cv_exeext
3596
3597rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3598ac_clean_files=$ac_clean_files_save
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3600$as_echo_n "checking for suffix of executables... " >&6; }
3601if { { ac_try="$ac_link"
3602case "(($ac_try" in
3603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604  *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607$as_echo "$ac_try_echo"; } >&5
3608  (eval "$ac_link") 2>&5
3609  ac_status=$?
3610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611  test $ac_status = 0; }; then :
3612  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3613# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3614# work properly (i.e., refer to `conftest.exe'), while it won't with
3615# `rm'.
3616for ac_file in conftest.exe conftest conftest.*; do
3617  test -f "$ac_file" || continue
3618  case $ac_file in
3619    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3620    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621	  break;;
3622    * ) break;;
3623  esac
3624done
3625else
3626  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3629See \`config.log' for more details" "$LINENO" 5; }
3630fi
3631rm -f conftest conftest$ac_cv_exeext
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3633$as_echo "$ac_cv_exeext" >&6; }
3634
3635rm -f conftest.$ac_ext
3636EXEEXT=$ac_cv_exeext
3637ac_exeext=$EXEEXT
3638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h.  */
3640#include <stdio.h>
3641int
3642main ()
3643{
3644FILE *f = fopen ("conftest.out", "w");
3645 return ferror (f) || fclose (f) != 0;
3646
3647  ;
3648  return 0;
3649}
3650_ACEOF
3651ac_clean_files="$ac_clean_files conftest.out"
3652# Check that the compiler produces executables we can run.  If not, either
3653# the compiler is broken, or we cross compile.
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3655$as_echo_n "checking whether we are cross compiling... " >&6; }
3656if test "$cross_compiling" != yes; then
3657  { { ac_try="$ac_link"
3658case "(($ac_try" in
3659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660  *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663$as_echo "$ac_try_echo"; } >&5
3664  (eval "$ac_link") 2>&5
3665  ac_status=$?
3666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667  test $ac_status = 0; }
3668  if { ac_try='./conftest$ac_cv_exeext'
3669  { { case "(($ac_try" in
3670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671  *) ac_try_echo=$ac_try;;
3672esac
3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674$as_echo "$ac_try_echo"; } >&5
3675  (eval "$ac_try") 2>&5
3676  ac_status=$?
3677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678  test $ac_status = 0; }; }; then
3679    cross_compiling=no
3680  else
3681    if test "$cross_compiling" = maybe; then
3682	cross_compiling=yes
3683    else
3684	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686as_fn_error $? "cannot run C compiled programs.
3687If you meant to cross compile, use \`--host'.
3688See \`config.log' for more details" "$LINENO" 5; }
3689    fi
3690  fi
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3693$as_echo "$cross_compiling" >&6; }
3694
3695rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3696ac_clean_files=$ac_clean_files_save
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3698$as_echo_n "checking for suffix of object files... " >&6; }
3699if ${ac_cv_objext+:} false; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704
3705int
3706main ()
3707{
3708
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713rm -f conftest.o conftest.obj
3714if { { ac_try="$ac_compile"
3715case "(($ac_try" in
3716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717  *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5
3721  (eval "$ac_compile") 2>&5
3722  ac_status=$?
3723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724  test $ac_status = 0; }; then :
3725  for ac_file in conftest.o conftest.obj conftest.*; do
3726  test -f "$ac_file" || continue;
3727  case $ac_file in
3728    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3729    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3730       break;;
3731  esac
3732done
3733else
3734  $as_echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739as_fn_error $? "cannot compute suffix of object files: cannot compile
3740See \`config.log' for more details" "$LINENO" 5; }
3741fi
3742rm -f conftest.$ac_cv_objext conftest.$ac_ext
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3745$as_echo "$ac_cv_objext" >&6; }
3746OBJEXT=$ac_cv_objext
3747ac_objext=$OBJEXT
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3749$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3750if ${ac_cv_c_compiler_gnu+:} false; then :
3751  $as_echo_n "(cached) " >&6
3752else
3753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h.  */
3755
3756int
3757main ()
3758{
3759#ifndef __GNUC__
3760       choke me
3761#endif
3762
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767if ac_fn_c_try_compile "$LINENO"; then :
3768  ac_compiler_gnu=yes
3769else
3770  ac_compiler_gnu=no
3771fi
3772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773ac_cv_c_compiler_gnu=$ac_compiler_gnu
3774
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3777$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3778if test $ac_compiler_gnu = yes; then
3779  GCC=yes
3780else
3781  GCC=
3782fi
3783ac_test_CFLAGS=${CFLAGS+set}
3784ac_save_CFLAGS=$CFLAGS
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3786$as_echo_n "checking whether $CC accepts -g... " >&6; }
3787if ${ac_cv_prog_cc_g+:} false; then :
3788  $as_echo_n "(cached) " >&6
3789else
3790  ac_save_c_werror_flag=$ac_c_werror_flag
3791   ac_c_werror_flag=yes
3792   ac_cv_prog_cc_g=no
3793   CFLAGS="-g"
3794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h.  */
3796
3797int
3798main ()
3799{
3800
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805if ac_fn_c_try_compile "$LINENO"; then :
3806  ac_cv_prog_cc_g=yes
3807else
3808  CFLAGS=""
3809      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810/* end confdefs.h.  */
3811
3812int
3813main ()
3814{
3815
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820if ac_fn_c_try_compile "$LINENO"; then :
3821
3822else
3823  ac_c_werror_flag=$ac_save_c_werror_flag
3824	 CFLAGS="-g"
3825	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h.  */
3827
3828int
3829main ()
3830{
3831
3832  ;
3833  return 0;
3834}
3835_ACEOF
3836if ac_fn_c_try_compile "$LINENO"; then :
3837  ac_cv_prog_cc_g=yes
3838fi
3839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840fi
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842fi
3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844   ac_c_werror_flag=$ac_save_c_werror_flag
3845fi
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3847$as_echo "$ac_cv_prog_cc_g" >&6; }
3848if test "$ac_test_CFLAGS" = set; then
3849  CFLAGS=$ac_save_CFLAGS
3850elif test $ac_cv_prog_cc_g = yes; then
3851  if test "$GCC" = yes; then
3852    CFLAGS="-g -O2"
3853  else
3854    CFLAGS="-g"
3855  fi
3856else
3857  if test "$GCC" = yes; then
3858    CFLAGS="-O2"
3859  else
3860    CFLAGS=
3861  fi
3862fi
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3864$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3865if ${ac_cv_prog_cc_c89+:} false; then :
3866  $as_echo_n "(cached) " >&6
3867else
3868  ac_cv_prog_cc_c89=no
3869ac_save_CC=$CC
3870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872#include <stdarg.h>
3873#include <stdio.h>
3874struct stat;
3875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3876struct buf { int x; };
3877FILE * (*rcsopen) (struct buf *, struct stat *, int);
3878static char *e (p, i)
3879     char **p;
3880     int i;
3881{
3882  return p[i];
3883}
3884static char *f (char * (*g) (char **, int), char **p, ...)
3885{
3886  char *s;
3887  va_list v;
3888  va_start (v,p);
3889  s = g (p, va_arg (v,int));
3890  va_end (v);
3891  return s;
3892}
3893
3894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3895   function prototypes and stuff, but not '\xHH' hex character constants.
3896   These don't provoke an error unfortunately, instead are silently treated
3897   as 'x'.  The following induces an error, until -std is added to get
3898   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3899   array size at least.  It's necessary to write '\x00'==0 to get something
3900   that's true only with -std.  */
3901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3902
3903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3904   inside strings and character constants.  */
3905#define FOO(x) 'x'
3906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3907
3908int test (int i, double x);
3909struct s1 {int (*f) (int a);};
3910struct s2 {int (*f) (double a);};
3911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912int argc;
3913char **argv;
3914int
3915main ()
3916{
3917return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3923	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924do
3925  CC="$ac_save_CC $ac_arg"
3926  if ac_fn_c_try_compile "$LINENO"; then :
3927  ac_cv_prog_cc_c89=$ac_arg
3928fi
3929rm -f core conftest.err conftest.$ac_objext
3930  test "x$ac_cv_prog_cc_c89" != "xno" && break
3931done
3932rm -f conftest.$ac_ext
3933CC=$ac_save_CC
3934
3935fi
3936# AC_CACHE_VAL
3937case "x$ac_cv_prog_cc_c89" in
3938  x)
3939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3940$as_echo "none needed" >&6; } ;;
3941  xno)
3942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3943$as_echo "unsupported" >&6; } ;;
3944  *)
3945    CC="$CC $ac_cv_prog_cc_c89"
3946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3947$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3948esac
3949if test "x$ac_cv_prog_cc_c89" != xno; then :
3950
3951fi
3952
3953ac_ext=c
3954ac_cpp='$CPP $CPPFLAGS'
3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959ac_ext=c
3960ac_cpp='$CPP $CPPFLAGS'
3961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3965$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3966if ${am_cv_prog_cc_c_o+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h.  */
3971
3972int
3973main ()
3974{
3975
3976  ;
3977  return 0;
3978}
3979_ACEOF
3980  # Make sure it works both with $CC and with simple cc.
3981  # Following AC_PROG_CC_C_O, we do the test twice because some
3982  # compilers refuse to overwrite an existing .o file with -o,
3983  # though they will create one.
3984  am_cv_prog_cc_c_o=yes
3985  for am_i in 1 2; do
3986    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3987   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); } \
3991         && test -f conftest2.$ac_objext; then
3992      : OK
3993    else
3994      am_cv_prog_cc_c_o=no
3995      break
3996    fi
3997  done
3998  rm -f core conftest*
3999  unset am_i
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4002$as_echo "$am_cv_prog_cc_c_o" >&6; }
4003if test "$am_cv_prog_cc_c_o" != yes; then
4004   # Losing compiler, so override with the script.
4005   # FIXME: It is wrong to rewrite CC.
4006   # But if we don't then we get into trouble of one sort or another.
4007   # A longer-term fix would be to have automake use am__CC in this case,
4008   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4009   CC="$am_aux_dir/compile $CC"
4010fi
4011ac_ext=c
4012ac_cpp='$CPP $CPPFLAGS'
4013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016
4017DEPDIR="${am__leading_dot}deps"
4018
4019ac_config_commands="$ac_config_commands depfiles"
4020
4021
4022am_make=${MAKE-make}
4023cat > confinc << 'END'
4024am__doit:
4025	@echo this is the am__doit target
4026.PHONY: am__doit
4027END
4028# If we don't find an include directive, just comment out the code.
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4030$as_echo_n "checking for style of include used by $am_make... " >&6; }
4031am__include="#"
4032am__quote=
4033_am_result=none
4034# First try GNU make style include.
4035echo "include confinc" > confmf
4036# Ignore all kinds of additional output from 'make'.
4037case `$am_make -s -f confmf 2> /dev/null` in #(
4038*the\ am__doit\ target*)
4039  am__include=include
4040  am__quote=
4041  _am_result=GNU
4042  ;;
4043esac
4044# Now try BSD make style include.
4045if test "$am__include" = "#"; then
4046   echo '.include "confinc"' > confmf
4047   case `$am_make -s -f confmf 2> /dev/null` in #(
4048   *the\ am__doit\ target*)
4049     am__include=.include
4050     am__quote="\""
4051     _am_result=BSD
4052     ;;
4053   esac
4054fi
4055
4056
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4058$as_echo "$_am_result" >&6; }
4059rm -f confinc confmf
4060
4061# Check whether --enable-dependency-tracking was given.
4062if test "${enable_dependency_tracking+set}" = set; then :
4063  enableval=$enable_dependency_tracking;
4064fi
4065
4066if test "x$enable_dependency_tracking" != xno; then
4067  am_depcomp="$ac_aux_dir/depcomp"
4068  AMDEPBACKSLASH='\'
4069  am__nodep='_no'
4070fi
4071 if test "x$enable_dependency_tracking" != xno; then
4072  AMDEP_TRUE=
4073  AMDEP_FALSE='#'
4074else
4075  AMDEP_TRUE='#'
4076  AMDEP_FALSE=
4077fi
4078
4079
4080
4081depcc="$CC"   am_compiler_list=
4082
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4084$as_echo_n "checking dependency style of $depcc... " >&6; }
4085if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4086  $as_echo_n "(cached) " >&6
4087else
4088  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4089  # We make a subdir and do the tests there.  Otherwise we can end up
4090  # making bogus files that we don't know about and never remove.  For
4091  # instance it was reported that on HP-UX the gcc test will end up
4092  # making a dummy file named 'D' -- because '-MD' means "put the output
4093  # in D".
4094  rm -rf conftest.dir
4095  mkdir conftest.dir
4096  # Copy depcomp to subdir because otherwise we won't find it if we're
4097  # using a relative directory.
4098  cp "$am_depcomp" conftest.dir
4099  cd conftest.dir
4100  # We will build objects and dependencies in a subdirectory because
4101  # it helps to detect inapplicable dependency modes.  For instance
4102  # both Tru64's cc and ICC support -MD to output dependencies as a
4103  # side effect of compilation, but ICC will put the dependencies in
4104  # the current directory while Tru64 will put them in the object
4105  # directory.
4106  mkdir sub
4107
4108  am_cv_CC_dependencies_compiler_type=none
4109  if test "$am_compiler_list" = ""; then
4110     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4111  fi
4112  am__universal=false
4113  case " $depcc " in #(
4114     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4115     esac
4116
4117  for depmode in $am_compiler_list; do
4118    # Setup a source with many dependencies, because some compilers
4119    # like to wrap large dependency lists on column 80 (with \), and
4120    # we should not choose a depcomp mode which is confused by this.
4121    #
4122    # We need to recreate these files for each test, as the compiler may
4123    # overwrite some of them when testing with obscure command lines.
4124    # This happens at least with the AIX C compiler.
4125    : > sub/conftest.c
4126    for i in 1 2 3 4 5 6; do
4127      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4128      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4129      # Solaris 10 /bin/sh.
4130      echo '/* dummy */' > sub/conftst$i.h
4131    done
4132    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4133
4134    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4135    # mode.  It turns out that the SunPro C++ compiler does not properly
4136    # handle '-M -o', and we need to detect this.  Also, some Intel
4137    # versions had trouble with output in subdirs.
4138    am__obj=sub/conftest.${OBJEXT-o}
4139    am__minus_obj="-o $am__obj"
4140    case $depmode in
4141    gcc)
4142      # This depmode causes a compiler race in universal mode.
4143      test "$am__universal" = false || continue
4144      ;;
4145    nosideeffect)
4146      # After this tag, mechanisms are not by side-effect, so they'll
4147      # only be used when explicitly requested.
4148      if test "x$enable_dependency_tracking" = xyes; then
4149	continue
4150      else
4151	break
4152      fi
4153      ;;
4154    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4155      # This compiler won't grok '-c -o', but also, the minuso test has
4156      # not run yet.  These depmodes are late enough in the game, and
4157      # so weak that their functioning should not be impacted.
4158      am__obj=conftest.${OBJEXT-o}
4159      am__minus_obj=
4160      ;;
4161    none) break ;;
4162    esac
4163    if depmode=$depmode \
4164       source=sub/conftest.c object=$am__obj \
4165       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4166       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4167         >/dev/null 2>conftest.err &&
4168       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4169       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4170       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4171       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4172      # icc doesn't choke on unknown options, it will just issue warnings
4173      # or remarks (even with -Werror).  So we grep stderr for any message
4174      # that says an option was ignored or not supported.
4175      # When given -MP, icc 7.0 and 7.1 complain thusly:
4176      #   icc: Command line warning: ignoring option '-M'; no argument required
4177      # The diagnosis changed in icc 8.0:
4178      #   icc: Command line remark: option '-MP' not supported
4179      if (grep 'ignoring option' conftest.err ||
4180          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4181        am_cv_CC_dependencies_compiler_type=$depmode
4182        break
4183      fi
4184    fi
4185  done
4186
4187  cd ..
4188  rm -rf conftest.dir
4189else
4190  am_cv_CC_dependencies_compiler_type=none
4191fi
4192
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4195$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4196CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4197
4198 if
4199  test "x$enable_dependency_tracking" != xno \
4200  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4201  am__fastdepCC_TRUE=
4202  am__fastdepCC_FALSE='#'
4203else
4204  am__fastdepCC_TRUE='#'
4205  am__fastdepCC_FALSE=
4206fi
4207
4208
4209
4210ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4216$as_echo_n "checking how to run the C preprocessor... " >&6; }
4217# On Suns, sometimes $CPP names a directory.
4218if test -n "$CPP" && test -d "$CPP"; then
4219  CPP=
4220fi
4221if test -z "$CPP"; then
4222  if ${ac_cv_prog_CPP+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225      # Double quotes because CPP needs to be expanded
4226    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4227    do
4228      ac_preproc_ok=false
4229for ac_c_preproc_warn_flag in '' yes
4230do
4231  # Use a header file that comes with gcc, so configuring glibc
4232  # with a fresh cross-compiler works.
4233  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234  # <limits.h> exists even on freestanding compilers.
4235  # On the NeXT, cc -E runs the code through the compiler's parser,
4236  # not just through cpp. "Syntax error" is here to catch this case.
4237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h.  */
4239#ifdef __STDC__
4240# include <limits.h>
4241#else
4242# include <assert.h>
4243#endif
4244		     Syntax error
4245_ACEOF
4246if ac_fn_c_try_cpp "$LINENO"; then :
4247
4248else
4249  # Broken: fails on valid input.
4250continue
4251fi
4252rm -f conftest.err conftest.i conftest.$ac_ext
4253
4254  # OK, works on sane cases.  Now check whether nonexistent headers
4255  # can be detected and how.
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#include <ac_nonexistent.h>
4259_ACEOF
4260if ac_fn_c_try_cpp "$LINENO"; then :
4261  # Broken: success on invalid input.
4262continue
4263else
4264  # Passes both tests.
4265ac_preproc_ok=:
4266break
4267fi
4268rm -f conftest.err conftest.i conftest.$ac_ext
4269
4270done
4271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4272rm -f conftest.i conftest.err conftest.$ac_ext
4273if $ac_preproc_ok; then :
4274  break
4275fi
4276
4277    done
4278    ac_cv_prog_CPP=$CPP
4279
4280fi
4281  CPP=$ac_cv_prog_CPP
4282else
4283  ac_cv_prog_CPP=$CPP
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4286$as_echo "$CPP" >&6; }
4287ac_preproc_ok=false
4288for ac_c_preproc_warn_flag in '' yes
4289do
4290  # Use a header file that comes with gcc, so configuring glibc
4291  # with a fresh cross-compiler works.
4292  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4293  # <limits.h> exists even on freestanding compilers.
4294  # On the NeXT, cc -E runs the code through the compiler's parser,
4295  # not just through cpp. "Syntax error" is here to catch this case.
4296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h.  */
4298#ifdef __STDC__
4299# include <limits.h>
4300#else
4301# include <assert.h>
4302#endif
4303		     Syntax error
4304_ACEOF
4305if ac_fn_c_try_cpp "$LINENO"; then :
4306
4307else
4308  # Broken: fails on valid input.
4309continue
4310fi
4311rm -f conftest.err conftest.i conftest.$ac_ext
4312
4313  # OK, works on sane cases.  Now check whether nonexistent headers
4314  # can be detected and how.
4315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#include <ac_nonexistent.h>
4318_ACEOF
4319if ac_fn_c_try_cpp "$LINENO"; then :
4320  # Broken: success on invalid input.
4321continue
4322else
4323  # Passes both tests.
4324ac_preproc_ok=:
4325break
4326fi
4327rm -f conftest.err conftest.i conftest.$ac_ext
4328
4329done
4330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4331rm -f conftest.i conftest.err conftest.$ac_ext
4332if $ac_preproc_ok; then :
4333
4334else
4335  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4338See \`config.log' for more details" "$LINENO" 5; }
4339fi
4340
4341ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4349$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4350if ${ac_cv_path_GREP+:} false; then :
4351  $as_echo_n "(cached) " >&6
4352else
4353  if test -z "$GREP"; then
4354  ac_path_GREP_found=false
4355  # Loop through the user's path and test for each of PROGNAME-LIST
4356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358do
4359  IFS=$as_save_IFS
4360  test -z "$as_dir" && as_dir=.
4361    for ac_prog in grep ggrep; do
4362    for ac_exec_ext in '' $ac_executable_extensions; do
4363      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4364      as_fn_executable_p "$ac_path_GREP" || continue
4365# Check for GNU ac_path_GREP and select it if it is found.
4366  # Check for GNU $ac_path_GREP
4367case `"$ac_path_GREP" --version 2>&1` in
4368*GNU*)
4369  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4370*)
4371  ac_count=0
4372  $as_echo_n 0123456789 >"conftest.in"
4373  while :
4374  do
4375    cat "conftest.in" "conftest.in" >"conftest.tmp"
4376    mv "conftest.tmp" "conftest.in"
4377    cp "conftest.in" "conftest.nl"
4378    $as_echo 'GREP' >> "conftest.nl"
4379    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381    as_fn_arith $ac_count + 1 && ac_count=$as_val
4382    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4383      # Best one so far, save it but keep looking for a better one
4384      ac_cv_path_GREP="$ac_path_GREP"
4385      ac_path_GREP_max=$ac_count
4386    fi
4387    # 10*(2^10) chars as input seems more than enough
4388    test $ac_count -gt 10 && break
4389  done
4390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391esac
4392
4393      $ac_path_GREP_found && break 3
4394    done
4395  done
4396  done
4397IFS=$as_save_IFS
4398  if test -z "$ac_cv_path_GREP"; then
4399    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400  fi
4401else
4402  ac_cv_path_GREP=$GREP
4403fi
4404
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4407$as_echo "$ac_cv_path_GREP" >&6; }
4408 GREP="$ac_cv_path_GREP"
4409
4410
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4412$as_echo_n "checking for egrep... " >&6; }
4413if ${ac_cv_path_EGREP+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4417   then ac_cv_path_EGREP="$GREP -E"
4418   else
4419     if test -z "$EGREP"; then
4420  ac_path_EGREP_found=false
4421  # Loop through the user's path and test for each of PROGNAME-LIST
4422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424do
4425  IFS=$as_save_IFS
4426  test -z "$as_dir" && as_dir=.
4427    for ac_prog in egrep; do
4428    for ac_exec_ext in '' $ac_executable_extensions; do
4429      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4430      as_fn_executable_p "$ac_path_EGREP" || continue
4431# Check for GNU ac_path_EGREP and select it if it is found.
4432  # Check for GNU $ac_path_EGREP
4433case `"$ac_path_EGREP" --version 2>&1` in
4434*GNU*)
4435  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4436*)
4437  ac_count=0
4438  $as_echo_n 0123456789 >"conftest.in"
4439  while :
4440  do
4441    cat "conftest.in" "conftest.in" >"conftest.tmp"
4442    mv "conftest.tmp" "conftest.in"
4443    cp "conftest.in" "conftest.nl"
4444    $as_echo 'EGREP' >> "conftest.nl"
4445    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4446    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4447    as_fn_arith $ac_count + 1 && ac_count=$as_val
4448    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4449      # Best one so far, save it but keep looking for a better one
4450      ac_cv_path_EGREP="$ac_path_EGREP"
4451      ac_path_EGREP_max=$ac_count
4452    fi
4453    # 10*(2^10) chars as input seems more than enough
4454    test $ac_count -gt 10 && break
4455  done
4456  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457esac
4458
4459      $ac_path_EGREP_found && break 3
4460    done
4461  done
4462  done
4463IFS=$as_save_IFS
4464  if test -z "$ac_cv_path_EGREP"; then
4465    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4466  fi
4467else
4468  ac_cv_path_EGREP=$EGREP
4469fi
4470
4471   fi
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4474$as_echo "$ac_cv_path_EGREP" >&6; }
4475 EGREP="$ac_cv_path_EGREP"
4476
4477
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4479$as_echo_n "checking for ANSI C header files... " >&6; }
4480if ${ac_cv_header_stdc+:} false; then :
4481  $as_echo_n "(cached) " >&6
4482else
4483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484/* end confdefs.h.  */
4485#include <stdlib.h>
4486#include <stdarg.h>
4487#include <string.h>
4488#include <float.h>
4489
4490int
4491main ()
4492{
4493
4494  ;
4495  return 0;
4496}
4497_ACEOF
4498if ac_fn_c_try_compile "$LINENO"; then :
4499  ac_cv_header_stdc=yes
4500else
4501  ac_cv_header_stdc=no
4502fi
4503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504
4505if test $ac_cv_header_stdc = yes; then
4506  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509#include <string.h>
4510
4511_ACEOF
4512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513  $EGREP "memchr" >/dev/null 2>&1; then :
4514
4515else
4516  ac_cv_header_stdc=no
4517fi
4518rm -f conftest*
4519
4520fi
4521
4522if test $ac_cv_header_stdc = yes; then
4523  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525/* end confdefs.h.  */
4526#include <stdlib.h>
4527
4528_ACEOF
4529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4530  $EGREP "free" >/dev/null 2>&1; then :
4531
4532else
4533  ac_cv_header_stdc=no
4534fi
4535rm -f conftest*
4536
4537fi
4538
4539if test $ac_cv_header_stdc = yes; then
4540  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4541  if test "$cross_compiling" = yes; then :
4542  :
4543else
4544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h.  */
4546#include <ctype.h>
4547#include <stdlib.h>
4548#if ((' ' & 0x0FF) == 0x020)
4549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4551#else
4552# define ISLOWER(c) \
4553		   (('a' <= (c) && (c) <= 'i') \
4554		     || ('j' <= (c) && (c) <= 'r') \
4555		     || ('s' <= (c) && (c) <= 'z'))
4556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4557#endif
4558
4559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4560int
4561main ()
4562{
4563  int i;
4564  for (i = 0; i < 256; i++)
4565    if (XOR (islower (i), ISLOWER (i))
4566	|| toupper (i) != TOUPPER (i))
4567      return 2;
4568  return 0;
4569}
4570_ACEOF
4571if ac_fn_c_try_run "$LINENO"; then :
4572
4573else
4574  ac_cv_header_stdc=no
4575fi
4576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4577  conftest.$ac_objext conftest.beam conftest.$ac_ext
4578fi
4579
4580fi
4581fi
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4583$as_echo "$ac_cv_header_stdc" >&6; }
4584if test $ac_cv_header_stdc = yes; then
4585
4586$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4587
4588fi
4589
4590# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4592		  inttypes.h stdint.h unistd.h
4593do :
4594  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4595ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4596"
4597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4598  cat >>confdefs.h <<_ACEOF
4599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4600_ACEOF
4601
4602fi
4603
4604done
4605
4606
4607
4608  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4609if test "x$ac_cv_header_minix_config_h" = xyes; then :
4610  MINIX=yes
4611else
4612  MINIX=
4613fi
4614
4615
4616  if test "$MINIX" = yes; then
4617
4618$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4619
4620
4621$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4622
4623
4624$as_echo "#define _MINIX 1" >>confdefs.h
4625
4626  fi
4627
4628
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4630$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4631if ${ac_cv_safe_to_define___extensions__+:} false; then :
4632  $as_echo_n "(cached) " >&6
4633else
4634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635/* end confdefs.h.  */
4636
4637#         define __EXTENSIONS__ 1
4638          $ac_includes_default
4639int
4640main ()
4641{
4642
4643  ;
4644  return 0;
4645}
4646_ACEOF
4647if ac_fn_c_try_compile "$LINENO"; then :
4648  ac_cv_safe_to_define___extensions__=yes
4649else
4650  ac_cv_safe_to_define___extensions__=no
4651fi
4652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4655$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4656  test $ac_cv_safe_to_define___extensions__ = yes &&
4657    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4658
4659  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4660
4661  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4662
4663  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4664
4665  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4666
4667
4668
4669
4670
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what compiler options to use" >&5
4672$as_echo_n "checking what compiler options to use... " >&6; }
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CADD $CFLAGS" >&5
4674$as_echo "$CADD $CFLAGS" >&6; }
4675
4676
4677for ac_prog in gtar
4678do
4679  # Extract the first word of "$ac_prog", so it can be a program name with args.
4680set dummy $ac_prog; ac_word=$2
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682$as_echo_n "checking for $ac_word... " >&6; }
4683if ${ac_cv_prog_TAR+:} false; then :
4684  $as_echo_n "(cached) " >&6
4685else
4686  if test -n "$TAR"; then
4687  ac_cv_prog_TAR="$TAR" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692  IFS=$as_save_IFS
4693  test -z "$as_dir" && as_dir=.
4694    for ac_exec_ext in '' $ac_executable_extensions; do
4695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696    ac_cv_prog_TAR="$ac_prog"
4697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698    break 2
4699  fi
4700done
4701  done
4702IFS=$as_save_IFS
4703
4704fi
4705fi
4706TAR=$ac_cv_prog_TAR
4707if test -n "$TAR"; then
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4709$as_echo "$TAR" >&6; }
4710else
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712$as_echo "no" >&6; }
4713fi
4714
4715
4716  test -n "$TAR" && break
4717done
4718test -n "$TAR" || TAR="tar"
4719
4720
4721
4722# Check whether --enable-largefile was given.
4723if test "${enable_largefile+set}" = set; then :
4724  enableval=$enable_largefile;
4725fi
4726
4727if test "$enable_largefile" != no; then
4728
4729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4730$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4731if ${ac_cv_sys_largefile_CC+:} false; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  ac_cv_sys_largefile_CC=no
4735     if test "$GCC" != yes; then
4736       ac_save_CC=$CC
4737       while :; do
4738	 # IRIX 6.2 and later do not support large files by default,
4739	 # so use the C compiler's -n32 option if that helps.
4740	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741/* end confdefs.h.  */
4742#include <sys/types.h>
4743 /* Check that off_t can represent 2**63 - 1 correctly.
4744    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4745    since some C++ compilers masquerading as C compilers
4746    incorrectly reject 9223372036854775807.  */
4747#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4748  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4749		       && LARGE_OFF_T % 2147483647 == 1)
4750		      ? 1 : -1];
4751int
4752main ()
4753{
4754
4755  ;
4756  return 0;
4757}
4758_ACEOF
4759	 if ac_fn_c_try_compile "$LINENO"; then :
4760  break
4761fi
4762rm -f core conftest.err conftest.$ac_objext
4763	 CC="$CC -n32"
4764	 if ac_fn_c_try_compile "$LINENO"; then :
4765  ac_cv_sys_largefile_CC=' -n32'; break
4766fi
4767rm -f core conftest.err conftest.$ac_objext
4768	 break
4769       done
4770       CC=$ac_save_CC
4771       rm -f conftest.$ac_ext
4772    fi
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4775$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4776  if test "$ac_cv_sys_largefile_CC" != no; then
4777    CC=$CC$ac_cv_sys_largefile_CC
4778  fi
4779
4780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4781$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4782if ${ac_cv_sys_file_offset_bits+:} false; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785  while :; do
4786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h.  */
4788#include <sys/types.h>
4789 /* Check that off_t can represent 2**63 - 1 correctly.
4790    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4791    since some C++ compilers masquerading as C compilers
4792    incorrectly reject 9223372036854775807.  */
4793#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4794  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4795		       && LARGE_OFF_T % 2147483647 == 1)
4796		      ? 1 : -1];
4797int
4798main ()
4799{
4800
4801  ;
4802  return 0;
4803}
4804_ACEOF
4805if ac_fn_c_try_compile "$LINENO"; then :
4806  ac_cv_sys_file_offset_bits=no; break
4807fi
4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h.  */
4811#define _FILE_OFFSET_BITS 64
4812#include <sys/types.h>
4813 /* Check that off_t can represent 2**63 - 1 correctly.
4814    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4815    since some C++ compilers masquerading as C compilers
4816    incorrectly reject 9223372036854775807.  */
4817#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4818  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4819		       && LARGE_OFF_T % 2147483647 == 1)
4820		      ? 1 : -1];
4821int
4822main ()
4823{
4824
4825  ;
4826  return 0;
4827}
4828_ACEOF
4829if ac_fn_c_try_compile "$LINENO"; then :
4830  ac_cv_sys_file_offset_bits=64; break
4831fi
4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833  ac_cv_sys_file_offset_bits=unknown
4834  break
4835done
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4838$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4839case $ac_cv_sys_file_offset_bits in #(
4840  no | unknown) ;;
4841  *)
4842cat >>confdefs.h <<_ACEOF
4843#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4844_ACEOF
4845;;
4846esac
4847rm -rf conftest*
4848  if test $ac_cv_sys_file_offset_bits = unknown; then
4849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4850$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4851if ${ac_cv_sys_large_files+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  while :; do
4855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h.  */
4857#include <sys/types.h>
4858 /* Check that off_t can represent 2**63 - 1 correctly.
4859    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4860    since some C++ compilers masquerading as C compilers
4861    incorrectly reject 9223372036854775807.  */
4862#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4863  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4864		       && LARGE_OFF_T % 2147483647 == 1)
4865		      ? 1 : -1];
4866int
4867main ()
4868{
4869
4870  ;
4871  return 0;
4872}
4873_ACEOF
4874if ac_fn_c_try_compile "$LINENO"; then :
4875  ac_cv_sys_large_files=no; break
4876fi
4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879/* end confdefs.h.  */
4880#define _LARGE_FILES 1
4881#include <sys/types.h>
4882 /* Check that off_t can represent 2**63 - 1 correctly.
4883    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4884    since some C++ compilers masquerading as C compilers
4885    incorrectly reject 9223372036854775807.  */
4886#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4887  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4888		       && LARGE_OFF_T % 2147483647 == 1)
4889		      ? 1 : -1];
4890int
4891main ()
4892{
4893
4894  ;
4895  return 0;
4896}
4897_ACEOF
4898if ac_fn_c_try_compile "$LINENO"; then :
4899  ac_cv_sys_large_files=1; break
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902  ac_cv_sys_large_files=unknown
4903  break
4904done
4905fi
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4907$as_echo "$ac_cv_sys_large_files" >&6; }
4908case $ac_cv_sys_large_files in #(
4909  no | unknown) ;;
4910  *)
4911cat >>confdefs.h <<_ACEOF
4912#define _LARGE_FILES $ac_cv_sys_large_files
4913_ACEOF
4914;;
4915esac
4916rm -rf conftest*
4917  fi
4918
4919
4920fi
4921
4922
4923
4924# Check whether --enable-libcrypt was given.
4925if test "${enable_libcrypt+set}" = set; then :
4926  enableval=$enable_libcrypt;
4927fi
4928
4929
4930# Check whether --enable-emacs was given.
4931if test "${enable_emacs+set}" = set; then :
4932  enableval=$enable_emacs; if test "$enableval" = no; then
4933     EMACS=no
4934 fi
4935
4936fi
4937
4938
4939
4940if test "$enable_libcrypt" != no; then
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
4942$as_echo_n "checking for crypt in -lcrypt... " >&6; }
4943if ${ac_cv_lib_crypt_crypt+:} false; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  ac_check_lib_save_LIBS=$LIBS
4947LIBS="-lcrypt  $LIBS"
4948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949/* end confdefs.h.  */
4950
4951/* Override any GCC internal prototype to avoid an error.
4952   Use char because int might match the return type of a GCC
4953   builtin and then its argument prototype would still apply.  */
4954#ifdef __cplusplus
4955extern "C"
4956#endif
4957char crypt ();
4958int
4959main ()
4960{
4961return crypt ();
4962  ;
4963  return 0;
4964}
4965_ACEOF
4966if ac_fn_c_try_link "$LINENO"; then :
4967  ac_cv_lib_crypt_crypt=yes
4968else
4969  ac_cv_lib_crypt_crypt=no
4970fi
4971rm -f core conftest.err conftest.$ac_objext \
4972    conftest$ac_exeext conftest.$ac_ext
4973LIBS=$ac_check_lib_save_LIBS
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4976$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
4977if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
4978  cat >>confdefs.h <<_ACEOF
4979#define HAVE_LIBCRYPT 1
4980_ACEOF
4981
4982  LIBS="-lcrypt $LIBS"
4983
4984fi
4985
4986fi
4987
4988if test "$ac_cv_lib_crypt_crypt" != yes; then
4989   EXTRA_OBJS="$EXTRA_OBJS unixcrypt3.o"
4990fi
4991
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
4993$as_echo_n "checking for gethostname in -lsocket... " >&6; }
4994if ${ac_cv_lib_socket_gethostname+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997  ac_check_lib_save_LIBS=$LIBS
4998LIBS="-lsocket  $LIBS"
4999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001
5002/* Override any GCC internal prototype to avoid an error.
5003   Use char because int might match the return type of a GCC
5004   builtin and then its argument prototype would still apply.  */
5005#ifdef __cplusplus
5006extern "C"
5007#endif
5008char gethostname ();
5009int
5010main ()
5011{
5012return gethostname ();
5013  ;
5014  return 0;
5015}
5016_ACEOF
5017if ac_fn_c_try_link "$LINENO"; then :
5018  ac_cv_lib_socket_gethostname=yes
5019else
5020  ac_cv_lib_socket_gethostname=no
5021fi
5022rm -f core conftest.err conftest.$ac_objext \
5023    conftest$ac_exeext conftest.$ac_ext
5024LIBS=$ac_check_lib_save_LIBS
5025fi
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
5027$as_echo "$ac_cv_lib_socket_gethostname" >&6; }
5028if test "x$ac_cv_lib_socket_gethostname" = xyes; then :
5029  cat >>confdefs.h <<_ACEOF
5030#define HAVE_LIBSOCKET 1
5031_ACEOF
5032
5033  LIBS="-lsocket $LIBS"
5034
5035fi
5036
5037
5038for ac_header in stdint.h crypt.h
5039do :
5040  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5041ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5042if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5043  cat >>confdefs.h <<_ACEOF
5044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5045_ACEOF
5046
5047fi
5048
5049done
5050
5051
5052
5053ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5054if test "x$ac_cv_func_getopt_long" = xyes; then :
5055  have_getopt_long=yes
5056else
5057  have_getopt_long=no
5058fi
5059
5060if test "$have_getopt_long" = "yes"; then
5061      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt_long reorders its arguments" >&5
5062$as_echo_n "checking whether getopt_long reorders its arguments... " >&6; }
5063   if test "$cross_compiling" = yes; then :
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe (cross-compiling)" >&5
5065$as_echo "maybe (cross-compiling)" >&6; }
5066   have_getopt_long=no
5067else
5068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070 #include <getopt.h>
5071      static struct option longopts[] = {
5072        {"help", 0, 0, 'h'},
5073	{0, 0, 0, 0}
5074      };
5075
5076int
5077main ()
5078{
5079 int ac = 3;
5080      char *av[] = { "main", "file", "-h" };
5081      return 'h' == getopt_long(ac, av, "h", longopts, (int *)0) ? 0 : 1;
5082
5083  ;
5084  return 0;
5085}
5086_ACEOF
5087if ac_fn_c_try_run "$LINENO"; then :
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5089$as_echo "yes" >&6; }
5090else
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092$as_echo "no" >&6; }
5093   have_getopt_long=no
5094fi
5095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5096  conftest.$ac_objext conftest.beam conftest.$ac_ext
5097fi
5098
5099fi
5100
5101
5102# Check whether --with-included-getopt was given.
5103if test "${with_included_getopt+set}" = set; then :
5104  withval=$with_included_getopt;
5105fi
5106
5107
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included getopt" >&5
5109$as_echo_n "checking whether to use included getopt... " >&6; }
5110if test "$have_getopt_long" != "yes" || test "$with_included_getopt" = yes; then
5111   EXTRA_OBJS="$EXTRA_OBJS getopt.o getopt1.o"
5112   EXTRA_INCLUDES="$EXTRA_INCLUDES -I\$(srcdir)/include/getopt"
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5114$as_echo "yes" >&6; }
5115else
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117$as_echo "no" >&6; }
5118fi
5119
5120# The cast to long int works around a bug in the HP C Compiler
5121# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5122# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5123# This bug is HP SR number 8606223364.
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
5125$as_echo_n "checking size of unsigned int... " >&6; }
5126if ${ac_cv_sizeof_unsigned_int+:} false; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
5130
5131else
5132  if test "$ac_cv_type_unsigned_int" = yes; then
5133     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5135as_fn_error 77 "cannot compute sizeof (unsigned int)
5136See \`config.log' for more details" "$LINENO" 5; }
5137   else
5138     ac_cv_sizeof_unsigned_int=0
5139   fi
5140fi
5141
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
5144$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
5145
5146
5147
5148cat >>confdefs.h <<_ACEOF
5149#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
5150_ACEOF
5151
5152
5153# The cast to long int works around a bug in the HP C Compiler
5154# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5155# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5156# This bug is HP SR number 8606223364.
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5158$as_echo_n "checking size of unsigned long... " >&6; }
5159if ${ac_cv_sizeof_unsigned_long+:} false; then :
5160  $as_echo_n "(cached) " >&6
5161else
5162  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
5163
5164else
5165  if test "$ac_cv_type_unsigned_long" = yes; then
5166     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5168as_fn_error 77 "cannot compute sizeof (unsigned long)
5169See \`config.log' for more details" "$LINENO" 5; }
5170   else
5171     ac_cv_sizeof_unsigned_long=0
5172   fi
5173fi
5174
5175fi
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5177$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
5178
5179
5180
5181cat >>confdefs.h <<_ACEOF
5182#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5183_ACEOF
5184
5185
5186
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit unsigned integer type" >&5
5188$as_echo_n "checking for 32 bit unsigned integer type... " >&6; }
5189if test "$ac_cv_sizeof_unsigned_int" -eq 4; then
5190   UINT32_TYPE="unsigned int";
5191elif test "$ac_cv_sizeof_unsigned_long" -eq 4; then
5192   UINT32_TYPE="unsigned long";
5193else
5194as_fn_error $? "cannot find 32 bit integer type" "$LINENO" 5
5195fi
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_TYPE" >&5
5197$as_echo "$UINT32_TYPE" >&6; }
5198
5199cat >>confdefs.h <<_ACEOF
5200#define UINT32_TYPE $UINT32_TYPE
5201_ACEOF
5202
5203
5204
5205GETTEXT_PACKAGE=ccrypt
5206
5207
5208cat >>confdefs.h <<_ACEOF
5209#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5210_ACEOF
5211
5212
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5214$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5215if ${ac_cv_path_SED+:} false; then :
5216  $as_echo_n "(cached) " >&6
5217else
5218            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5219     for ac_i in 1 2 3 4 5 6 7; do
5220       ac_script="$ac_script$as_nl$ac_script"
5221     done
5222     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5223     { ac_script=; unset ac_script;}
5224     if test -z "$SED"; then
5225  ac_path_SED_found=false
5226  # Loop through the user's path and test for each of PROGNAME-LIST
5227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230  IFS=$as_save_IFS
5231  test -z "$as_dir" && as_dir=.
5232    for ac_prog in sed gsed; do
5233    for ac_exec_ext in '' $ac_executable_extensions; do
5234      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5235      as_fn_executable_p "$ac_path_SED" || continue
5236# Check for GNU ac_path_SED and select it if it is found.
5237  # Check for GNU $ac_path_SED
5238case `"$ac_path_SED" --version 2>&1` in
5239*GNU*)
5240  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5241*)
5242  ac_count=0
5243  $as_echo_n 0123456789 >"conftest.in"
5244  while :
5245  do
5246    cat "conftest.in" "conftest.in" >"conftest.tmp"
5247    mv "conftest.tmp" "conftest.in"
5248    cp "conftest.in" "conftest.nl"
5249    $as_echo '' >> "conftest.nl"
5250    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5251    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5252    as_fn_arith $ac_count + 1 && ac_count=$as_val
5253    if test $ac_count -gt ${ac_path_SED_max-0}; then
5254      # Best one so far, save it but keep looking for a better one
5255      ac_cv_path_SED="$ac_path_SED"
5256      ac_path_SED_max=$ac_count
5257    fi
5258    # 10*(2^10) chars as input seems more than enough
5259    test $ac_count -gt 10 && break
5260  done
5261  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262esac
5263
5264      $ac_path_SED_found && break 3
5265    done
5266  done
5267  done
5268IFS=$as_save_IFS
5269  if test -z "$ac_cv_path_SED"; then
5270    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5271  fi
5272else
5273  ac_cv_path_SED=$SED
5274fi
5275
5276fi
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5278$as_echo "$ac_cv_path_SED" >&6; }
5279 SED="$ac_cv_path_SED"
5280  rm -f conftest.sed
5281
5282
5283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5284$as_echo_n "checking whether NLS is requested... " >&6; }
5285    # Check whether --enable-nls was given.
5286if test "${enable_nls+set}" = set; then :
5287  enableval=$enable_nls; USE_NLS=$enableval
5288else
5289  USE_NLS=yes
5290fi
5291
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5293$as_echo "$USE_NLS" >&6; }
5294
5295
5296
5297
5298      GETTEXT_MACRO_VERSION=0.19
5299
5300
5301
5302
5303# Prepare PATH_SEPARATOR.
5304# The user is always right.
5305if test "${PATH_SEPARATOR+set}" != set; then
5306  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5307  # contains only /bin. Note that ksh looks also at the FPATH variable,
5308  # so we have to set that as well for the test.
5309  PATH_SEPARATOR=:
5310  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5311    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5312           || PATH_SEPARATOR=';'
5313       }
5314fi
5315
5316# Find out how to test for executable files. Don't use a zero-byte file,
5317# as systems may use methods other than mode bits to determine executability.
5318cat >conf$$.file <<_ASEOF
5319#! /bin/sh
5320exit 0
5321_ASEOF
5322chmod +x conf$$.file
5323if test -x conf$$.file >/dev/null 2>&1; then
5324  ac_executable_p="test -x"
5325else
5326  ac_executable_p="test -f"
5327fi
5328rm -f conf$$.file
5329
5330# Extract the first word of "msgfmt", so it can be a program name with args.
5331set dummy msgfmt; ac_word=$2
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333$as_echo_n "checking for $ac_word... " >&6; }
5334if ${ac_cv_path_MSGFMT+:} false; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337  case "$MSGFMT" in
5338  [\\/]* | ?:[\\/]*)
5339    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5340    ;;
5341  *)
5342    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5343    for ac_dir in $PATH; do
5344      IFS="$ac_save_IFS"
5345      test -z "$ac_dir" && ac_dir=.
5346      for ac_exec_ext in '' $ac_executable_extensions; do
5347        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5348          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5349          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5350     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5351            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5352            break 2
5353          fi
5354        fi
5355      done
5356    done
5357    IFS="$ac_save_IFS"
5358  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5359    ;;
5360esac
5361fi
5362MSGFMT="$ac_cv_path_MSGFMT"
5363if test "$MSGFMT" != ":"; then
5364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5365$as_echo "$MSGFMT" >&6; }
5366else
5367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368$as_echo "no" >&6; }
5369fi
5370
5371  # Extract the first word of "gmsgfmt", so it can be a program name with args.
5372set dummy gmsgfmt; ac_word=$2
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374$as_echo_n "checking for $ac_word... " >&6; }
5375if ${ac_cv_path_GMSGFMT+:} false; then :
5376  $as_echo_n "(cached) " >&6
5377else
5378  case $GMSGFMT in
5379  [\\/]* | ?:[\\/]*)
5380  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5381  ;;
5382  *)
5383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH
5385do
5386  IFS=$as_save_IFS
5387  test -z "$as_dir" && as_dir=.
5388    for ac_exec_ext in '' $ac_executable_extensions; do
5389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392    break 2
5393  fi
5394done
5395  done
5396IFS=$as_save_IFS
5397
5398  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5399  ;;
5400esac
5401fi
5402GMSGFMT=$ac_cv_path_GMSGFMT
5403if test -n "$GMSGFMT"; then
5404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5405$as_echo "$GMSGFMT" >&6; }
5406else
5407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408$as_echo "no" >&6; }
5409fi
5410
5411
5412
5413    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5414    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5415    *) MSGFMT_015=$MSGFMT ;;
5416  esac
5417
5418  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5419    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5420    *) GMSGFMT_015=$GMSGFMT ;;
5421  esac
5422
5423
5424
5425# Prepare PATH_SEPARATOR.
5426# The user is always right.
5427if test "${PATH_SEPARATOR+set}" != set; then
5428  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5429  # contains only /bin. Note that ksh looks also at the FPATH variable,
5430  # so we have to set that as well for the test.
5431  PATH_SEPARATOR=:
5432  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5433    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5434           || PATH_SEPARATOR=';'
5435       }
5436fi
5437
5438# Find out how to test for executable files. Don't use a zero-byte file,
5439# as systems may use methods other than mode bits to determine executability.
5440cat >conf$$.file <<_ASEOF
5441#! /bin/sh
5442exit 0
5443_ASEOF
5444chmod +x conf$$.file
5445if test -x conf$$.file >/dev/null 2>&1; then
5446  ac_executable_p="test -x"
5447else
5448  ac_executable_p="test -f"
5449fi
5450rm -f conf$$.file
5451
5452# Extract the first word of "xgettext", so it can be a program name with args.
5453set dummy xgettext; ac_word=$2
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455$as_echo_n "checking for $ac_word... " >&6; }
5456if ${ac_cv_path_XGETTEXT+:} false; then :
5457  $as_echo_n "(cached) " >&6
5458else
5459  case "$XGETTEXT" in
5460  [\\/]* | ?:[\\/]*)
5461    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5462    ;;
5463  *)
5464    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5465    for ac_dir in $PATH; do
5466      IFS="$ac_save_IFS"
5467      test -z "$ac_dir" && ac_dir=.
5468      for ac_exec_ext in '' $ac_executable_extensions; do
5469        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5470          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5471          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5472     (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
5473            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5474            break 2
5475          fi
5476        fi
5477      done
5478    done
5479    IFS="$ac_save_IFS"
5480  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5481    ;;
5482esac
5483fi
5484XGETTEXT="$ac_cv_path_XGETTEXT"
5485if test "$XGETTEXT" != ":"; then
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5487$as_echo "$XGETTEXT" >&6; }
5488else
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491fi
5492
5493    rm -f messages.po
5494
5495    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5496    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5497    *) XGETTEXT_015=$XGETTEXT ;;
5498  esac
5499
5500
5501
5502# Prepare PATH_SEPARATOR.
5503# The user is always right.
5504if test "${PATH_SEPARATOR+set}" != set; then
5505  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5506  # contains only /bin. Note that ksh looks also at the FPATH variable,
5507  # so we have to set that as well for the test.
5508  PATH_SEPARATOR=:
5509  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5510    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5511           || PATH_SEPARATOR=';'
5512       }
5513fi
5514
5515# Find out how to test for executable files. Don't use a zero-byte file,
5516# as systems may use methods other than mode bits to determine executability.
5517cat >conf$$.file <<_ASEOF
5518#! /bin/sh
5519exit 0
5520_ASEOF
5521chmod +x conf$$.file
5522if test -x conf$$.file >/dev/null 2>&1; then
5523  ac_executable_p="test -x"
5524else
5525  ac_executable_p="test -f"
5526fi
5527rm -f conf$$.file
5528
5529# Extract the first word of "msgmerge", so it can be a program name with args.
5530set dummy msgmerge; ac_word=$2
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532$as_echo_n "checking for $ac_word... " >&6; }
5533if ${ac_cv_path_MSGMERGE+:} false; then :
5534  $as_echo_n "(cached) " >&6
5535else
5536  case "$MSGMERGE" in
5537  [\\/]* | ?:[\\/]*)
5538    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5539    ;;
5540  *)
5541    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5542    for ac_dir in $PATH; do
5543      IFS="$ac_save_IFS"
5544      test -z "$ac_dir" && ac_dir=.
5545      for ac_exec_ext in '' $ac_executable_extensions; do
5546        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5547          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5548          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5549            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5550            break 2
5551          fi
5552        fi
5553      done
5554    done
5555    IFS="$ac_save_IFS"
5556  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5557    ;;
5558esac
5559fi
5560MSGMERGE="$ac_cv_path_MSGMERGE"
5561if test "$MSGMERGE" != ":"; then
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5563$as_echo "$MSGMERGE" >&6; }
5564else
5565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566$as_echo "no" >&6; }
5567fi
5568
5569
5570        test -n "$localedir" || localedir='${datadir}/locale'
5571
5572
5573    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5574
5575
5576  ac_config_commands="$ac_config_commands po-directories"
5577
5578
5579# Make sure we can run config.sub.
5580$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5581  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5582
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5584$as_echo_n "checking build system type... " >&6; }
5585if ${ac_cv_build+:} false; then :
5586  $as_echo_n "(cached) " >&6
5587else
5588  ac_build_alias=$build_alias
5589test "x$ac_build_alias" = x &&
5590  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5591test "x$ac_build_alias" = x &&
5592  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5593ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5594  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5595
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5598$as_echo "$ac_cv_build" >&6; }
5599case $ac_cv_build in
5600*-*-*) ;;
5601*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5602esac
5603build=$ac_cv_build
5604ac_save_IFS=$IFS; IFS='-'
5605set x $ac_cv_build
5606shift
5607build_cpu=$1
5608build_vendor=$2
5609shift; shift
5610# Remember, the first character of IFS is used to create $*,
5611# except with old shells:
5612build_os=$*
5613IFS=$ac_save_IFS
5614case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5615
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5618$as_echo_n "checking host system type... " >&6; }
5619if ${ac_cv_host+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  if test "x$host_alias" = x; then
5623  ac_cv_host=$ac_cv_build
5624else
5625  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5626    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5627fi
5628
5629fi
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5631$as_echo "$ac_cv_host" >&6; }
5632case $ac_cv_host in
5633*-*-*) ;;
5634*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5635esac
5636host=$ac_cv_host
5637ac_save_IFS=$IFS; IFS='-'
5638set x $ac_cv_host
5639shift
5640host_cpu=$1
5641host_vendor=$2
5642shift; shift
5643# Remember, the first character of IFS is used to create $*,
5644# except with old shells:
5645host_os=$*
5646IFS=$ac_save_IFS
5647case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5648
5649
5650
5651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
5652$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
5653if ${ac_cv_gnu_library_2+:} false; then :
5654  $as_echo_n "(cached) " >&6
5655else
5656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h.  */
5658
5659#include <features.h>
5660#ifdef __GNU_LIBRARY__
5661 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
5662  Lucky GNU user
5663 #endif
5664#endif
5665
5666_ACEOF
5667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5668  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5669  ac_cv_gnu_library_2=yes
5670else
5671  ac_cv_gnu_library_2=no
5672fi
5673rm -f conftest*
5674
5675
5676
5677fi
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
5679$as_echo "$ac_cv_gnu_library_2" >&6; }
5680
5681    GLIBC2="$ac_cv_gnu_library_2"
5682
5683
5684if test -n "$ac_tool_prefix"; then
5685  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5686set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_RANLIB+:} false; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  if test -n "$RANLIB"; then
5693  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698  IFS=$as_save_IFS
5699  test -z "$as_dir" && as_dir=.
5700    for ac_exec_ext in '' $ac_executable_extensions; do
5701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704    break 2
5705  fi
5706done
5707  done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712RANLIB=$ac_cv_prog_RANLIB
5713if test -n "$RANLIB"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5715$as_echo "$RANLIB" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722fi
5723if test -z "$ac_cv_prog_RANLIB"; then
5724  ac_ct_RANLIB=$RANLIB
5725  # Extract the first word of "ranlib", so it can be a program name with args.
5726set dummy ranlib; ac_word=$2
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728$as_echo_n "checking for $ac_word... " >&6; }
5729if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732  if test -n "$ac_ct_RANLIB"; then
5733  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738  IFS=$as_save_IFS
5739  test -z "$as_dir" && as_dir=.
5740    for ac_exec_ext in '' $ac_executable_extensions; do
5741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742    ac_cv_prog_ac_ct_RANLIB="ranlib"
5743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744    break 2
5745  fi
5746done
5747  done
5748IFS=$as_save_IFS
5749
5750fi
5751fi
5752ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5753if test -n "$ac_ct_RANLIB"; then
5754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5755$as_echo "$ac_ct_RANLIB" >&6; }
5756else
5757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }
5759fi
5760
5761  if test "x$ac_ct_RANLIB" = x; then
5762    RANLIB=":"
5763  else
5764    case $cross_compiling:$ac_tool_warned in
5765yes:)
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768ac_tool_warned=yes ;;
5769esac
5770    RANLIB=$ac_ct_RANLIB
5771  fi
5772else
5773  RANLIB="$ac_cv_prog_RANLIB"
5774fi
5775
5776
5777
5778  CFLAG_VISIBILITY=
5779  HAVE_VISIBILITY=0
5780  if test -n "$GCC"; then
5781                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
5782$as_echo_n "checking whether the -Werror option is usable... " >&6; }
5783    if ${gl_cv_cc_vis_werror+:} false; then :
5784  $as_echo_n "(cached) " >&6
5785else
5786
5787      gl_save_CFLAGS="$CFLAGS"
5788      CFLAGS="$CFLAGS -Werror"
5789      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790/* end confdefs.h.  */
5791
5792int
5793main ()
5794{
5795
5796  ;
5797  return 0;
5798}
5799_ACEOF
5800if ac_fn_c_try_compile "$LINENO"; then :
5801  gl_cv_cc_vis_werror=yes
5802else
5803  gl_cv_cc_vis_werror=no
5804fi
5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806      CFLAGS="$gl_save_CFLAGS"
5807fi
5808
5809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
5810$as_echo "$gl_cv_cc_vis_werror" >&6; }
5811        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
5812$as_echo_n "checking for simple visibility declarations... " >&6; }
5813    if ${gl_cv_cc_visibility+:} false; then :
5814  $as_echo_n "(cached) " >&6
5815else
5816
5817      gl_save_CFLAGS="$CFLAGS"
5818      CFLAGS="$CFLAGS -fvisibility=hidden"
5819                                    if test $gl_cv_cc_vis_werror = yes; then
5820        CFLAGS="$CFLAGS -Werror"
5821      fi
5822      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824extern __attribute__((__visibility__("hidden"))) int hiddenvar;
5825             extern __attribute__((__visibility__("default"))) int exportedvar;
5826             extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
5827             extern __attribute__((__visibility__("default"))) int exportedfunc (void);
5828             void dummyfunc (void) {}
5829
5830int
5831main ()
5832{
5833
5834  ;
5835  return 0;
5836}
5837_ACEOF
5838if ac_fn_c_try_compile "$LINENO"; then :
5839  gl_cv_cc_visibility=yes
5840else
5841  gl_cv_cc_visibility=no
5842fi
5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844      CFLAGS="$gl_save_CFLAGS"
5845fi
5846
5847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
5848$as_echo "$gl_cv_cc_visibility" >&6; }
5849    if test $gl_cv_cc_visibility = yes; then
5850      CFLAG_VISIBILITY="-fvisibility=hidden"
5851      HAVE_VISIBILITY=1
5852    fi
5853  fi
5854
5855
5856
5857cat >>confdefs.h <<_ACEOF
5858#define HAVE_VISIBILITY $HAVE_VISIBILITY
5859_ACEOF
5860
5861
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5863$as_echo_n "checking for inline... " >&6; }
5864if ${ac_cv_c_inline+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  ac_cv_c_inline=no
5868for ac_kw in inline __inline__ __inline; do
5869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h.  */
5871#ifndef __cplusplus
5872typedef int foo_t;
5873static $ac_kw foo_t static_foo () {return 0; }
5874$ac_kw foo_t foo () {return 0; }
5875#endif
5876
5877_ACEOF
5878if ac_fn_c_try_compile "$LINENO"; then :
5879  ac_cv_c_inline=$ac_kw
5880fi
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882  test "$ac_cv_c_inline" != no && break
5883done
5884
5885fi
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5887$as_echo "$ac_cv_c_inline" >&6; }
5888
5889case $ac_cv_c_inline in
5890  inline | yes) ;;
5891  *)
5892    case $ac_cv_c_inline in
5893      no) ac_val=;;
5894      *) ac_val=$ac_cv_c_inline;;
5895    esac
5896    cat >>confdefs.h <<_ACEOF
5897#ifndef __cplusplus
5898#define inline $ac_val
5899#endif
5900_ACEOF
5901    ;;
5902esac
5903
5904ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5905if test "x$ac_cv_type_size_t" = xyes; then :
5906
5907else
5908
5909cat >>confdefs.h <<_ACEOF
5910#define size_t unsigned int
5911_ACEOF
5912
5913fi
5914
5915
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5917$as_echo_n "checking for stdint.h... " >&6; }
5918if ${gl_cv_header_stdint_h+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h.  */
5923#include <sys/types.h>
5924            #include <stdint.h>
5925int
5926main ()
5927{
5928uintmax_t i = (uintmax_t) -1; return !i;
5929  ;
5930  return 0;
5931}
5932_ACEOF
5933if ac_fn_c_try_compile "$LINENO"; then :
5934  gl_cv_header_stdint_h=yes
5935else
5936  gl_cv_header_stdint_h=no
5937fi
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939fi
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5941$as_echo "$gl_cv_header_stdint_h" >&6; }
5942  if test $gl_cv_header_stdint_h = yes; then
5943
5944cat >>confdefs.h <<_ACEOF
5945#define HAVE_STDINT_H_WITH_UINTMAX 1
5946_ACEOF
5947
5948  fi
5949
5950# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5951# for constant arguments.  Useless!
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5953$as_echo_n "checking for working alloca.h... " >&6; }
5954if ${ac_cv_working_alloca_h+:} false; then :
5955  $as_echo_n "(cached) " >&6
5956else
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959#include <alloca.h>
5960int
5961main ()
5962{
5963char *p = (char *) alloca (2 * sizeof (int));
5964			  if (p) return 0;
5965  ;
5966  return 0;
5967}
5968_ACEOF
5969if ac_fn_c_try_link "$LINENO"; then :
5970  ac_cv_working_alloca_h=yes
5971else
5972  ac_cv_working_alloca_h=no
5973fi
5974rm -f core conftest.err conftest.$ac_objext \
5975    conftest$ac_exeext conftest.$ac_ext
5976fi
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5978$as_echo "$ac_cv_working_alloca_h" >&6; }
5979if test $ac_cv_working_alloca_h = yes; then
5980
5981$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5982
5983fi
5984
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5986$as_echo_n "checking for alloca... " >&6; }
5987if ${ac_cv_func_alloca_works+:} false; then :
5988  $as_echo_n "(cached) " >&6
5989else
5990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991/* end confdefs.h.  */
5992#ifdef __GNUC__
5993# define alloca __builtin_alloca
5994#else
5995# ifdef _MSC_VER
5996#  include <malloc.h>
5997#  define alloca _alloca
5998# else
5999#  ifdef HAVE_ALLOCA_H
6000#   include <alloca.h>
6001#  else
6002#   ifdef _AIX
6003 #pragma alloca
6004#   else
6005#    ifndef alloca /* predefined by HP cc +Olibcalls */
6006void *alloca (size_t);
6007#    endif
6008#   endif
6009#  endif
6010# endif
6011#endif
6012
6013int
6014main ()
6015{
6016char *p = (char *) alloca (1);
6017				    if (p) return 0;
6018  ;
6019  return 0;
6020}
6021_ACEOF
6022if ac_fn_c_try_link "$LINENO"; then :
6023  ac_cv_func_alloca_works=yes
6024else
6025  ac_cv_func_alloca_works=no
6026fi
6027rm -f core conftest.err conftest.$ac_objext \
6028    conftest$ac_exeext conftest.$ac_ext
6029fi
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6031$as_echo "$ac_cv_func_alloca_works" >&6; }
6032
6033if test $ac_cv_func_alloca_works = yes; then
6034
6035$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6036
6037else
6038  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6039# that cause trouble.  Some versions do not even contain alloca or
6040# contain a buggy version.  If you still want to use their alloca,
6041# use ar to extract alloca.o from them instead of compiling alloca.c.
6042
6043ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6044
6045$as_echo "#define C_ALLOCA 1" >>confdefs.h
6046
6047
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6049$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6050if ${ac_cv_os_cray+:} false; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h.  */
6055#if defined CRAY && ! defined CRAY2
6056webecray
6057#else
6058wenotbecray
6059#endif
6060
6061_ACEOF
6062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063  $EGREP "webecray" >/dev/null 2>&1; then :
6064  ac_cv_os_cray=yes
6065else
6066  ac_cv_os_cray=no
6067fi
6068rm -f conftest*
6069
6070fi
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6072$as_echo "$ac_cv_os_cray" >&6; }
6073if test $ac_cv_os_cray = yes; then
6074  for ac_func in _getb67 GETB67 getb67; do
6075    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6076ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6077if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6078
6079cat >>confdefs.h <<_ACEOF
6080#define CRAY_STACKSEG_END $ac_func
6081_ACEOF
6082
6083    break
6084fi
6085
6086  done
6087fi
6088
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6090$as_echo_n "checking stack direction for C alloca... " >&6; }
6091if ${ac_cv_c_stack_direction+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  if test "$cross_compiling" = yes; then :
6095  ac_cv_c_stack_direction=0
6096else
6097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h.  */
6099$ac_includes_default
6100int
6101find_stack_direction (int *addr, int depth)
6102{
6103  int dir, dummy = 0;
6104  if (! addr)
6105    addr = &dummy;
6106  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6107  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6108  return dir + dummy;
6109}
6110
6111int
6112main (int argc, char **argv)
6113{
6114  return find_stack_direction (0, argc + !argv + 20) < 0;
6115}
6116_ACEOF
6117if ac_fn_c_try_run "$LINENO"; then :
6118  ac_cv_c_stack_direction=1
6119else
6120  ac_cv_c_stack_direction=-1
6121fi
6122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6123  conftest.$ac_objext conftest.beam conftest.$ac_ext
6124fi
6125
6126fi
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6128$as_echo "$ac_cv_c_stack_direction" >&6; }
6129cat >>confdefs.h <<_ACEOF
6130#define STACK_DIRECTION $ac_cv_c_stack_direction
6131_ACEOF
6132
6133
6134fi
6135
6136
6137
6138
6139  for ac_header in $ac_header_list
6140do :
6141  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6142ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6143"
6144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6145  cat >>confdefs.h <<_ACEOF
6146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147_ACEOF
6148
6149fi
6150
6151done
6152
6153
6154
6155
6156
6157
6158
6159
6160for ac_func in getpagesize
6161do :
6162  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6163if test "x$ac_cv_func_getpagesize" = xyes; then :
6164  cat >>confdefs.h <<_ACEOF
6165#define HAVE_GETPAGESIZE 1
6166_ACEOF
6167
6168fi
6169done
6170
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6172$as_echo_n "checking for working mmap... " >&6; }
6173if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6174  $as_echo_n "(cached) " >&6
6175else
6176  if test "$cross_compiling" = yes; then :
6177  ac_cv_func_mmap_fixed_mapped=no
6178else
6179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h.  */
6181$ac_includes_default
6182/* malloc might have been renamed as rpl_malloc. */
6183#undef malloc
6184
6185/* Thanks to Mike Haertel and Jim Avera for this test.
6186   Here is a matrix of mmap possibilities:
6187	mmap private not fixed
6188	mmap private fixed at somewhere currently unmapped
6189	mmap private fixed at somewhere already mapped
6190	mmap shared not fixed
6191	mmap shared fixed at somewhere currently unmapped
6192	mmap shared fixed at somewhere already mapped
6193   For private mappings, we should verify that changes cannot be read()
6194   back from the file, nor mmap's back from the file at a different
6195   address.  (There have been systems where private was not correctly
6196   implemented like the infamous i386 svr4.0, and systems where the
6197   VM page cache was not coherent with the file system buffer cache
6198   like early versions of FreeBSD and possibly contemporary NetBSD.)
6199   For shared mappings, we should conversely verify that changes get
6200   propagated back to all the places they're supposed to be.
6201
6202   Grep wants private fixed already mapped.
6203   The main things grep needs to know about mmap are:
6204   * does it exist and is it safe to write into the mmap'd area
6205   * how to use it (BSD variants)  */
6206
6207#include <fcntl.h>
6208#include <sys/mman.h>
6209
6210#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6211char *malloc ();
6212#endif
6213
6214/* This mess was copied from the GNU getpagesize.h.  */
6215#ifndef HAVE_GETPAGESIZE
6216# ifdef _SC_PAGESIZE
6217#  define getpagesize() sysconf(_SC_PAGESIZE)
6218# else /* no _SC_PAGESIZE */
6219#  ifdef HAVE_SYS_PARAM_H
6220#   include <sys/param.h>
6221#   ifdef EXEC_PAGESIZE
6222#    define getpagesize() EXEC_PAGESIZE
6223#   else /* no EXEC_PAGESIZE */
6224#    ifdef NBPG
6225#     define getpagesize() NBPG * CLSIZE
6226#     ifndef CLSIZE
6227#      define CLSIZE 1
6228#     endif /* no CLSIZE */
6229#    else /* no NBPG */
6230#     ifdef NBPC
6231#      define getpagesize() NBPC
6232#     else /* no NBPC */
6233#      ifdef PAGESIZE
6234#       define getpagesize() PAGESIZE
6235#      endif /* PAGESIZE */
6236#     endif /* no NBPC */
6237#    endif /* no NBPG */
6238#   endif /* no EXEC_PAGESIZE */
6239#  else /* no HAVE_SYS_PARAM_H */
6240#   define getpagesize() 8192	/* punt totally */
6241#  endif /* no HAVE_SYS_PARAM_H */
6242# endif /* no _SC_PAGESIZE */
6243
6244#endif /* no HAVE_GETPAGESIZE */
6245
6246int
6247main ()
6248{
6249  char *data, *data2, *data3;
6250  const char *cdata2;
6251  int i, pagesize;
6252  int fd, fd2;
6253
6254  pagesize = getpagesize ();
6255
6256  /* First, make a file with some known garbage in it. */
6257  data = (char *) malloc (pagesize);
6258  if (!data)
6259    return 1;
6260  for (i = 0; i < pagesize; ++i)
6261    *(data + i) = rand ();
6262  umask (0);
6263  fd = creat ("conftest.mmap", 0600);
6264  if (fd < 0)
6265    return 2;
6266  if (write (fd, data, pagesize) != pagesize)
6267    return 3;
6268  close (fd);
6269
6270  /* Next, check that the tail of a page is zero-filled.  File must have
6271     non-zero length, otherwise we risk SIGBUS for entire page.  */
6272  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6273  if (fd2 < 0)
6274    return 4;
6275  cdata2 = "";
6276  if (write (fd2, cdata2, 1) != 1)
6277    return 5;
6278  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6279  if (data2 == MAP_FAILED)
6280    return 6;
6281  for (i = 0; i < pagesize; ++i)
6282    if (*(data2 + i))
6283      return 7;
6284  close (fd2);
6285  if (munmap (data2, pagesize))
6286    return 8;
6287
6288  /* Next, try to mmap the file at a fixed address which already has
6289     something else allocated at it.  If we can, also make sure that
6290     we see the same garbage.  */
6291  fd = open ("conftest.mmap", O_RDWR);
6292  if (fd < 0)
6293    return 9;
6294  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6295		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6296    return 10;
6297  for (i = 0; i < pagesize; ++i)
6298    if (*(data + i) != *(data2 + i))
6299      return 11;
6300
6301  /* Finally, make sure that changes to the mapped area do not
6302     percolate back to the file as seen by read().  (This is a bug on
6303     some variants of i386 svr4.0.)  */
6304  for (i = 0; i < pagesize; ++i)
6305    *(data2 + i) = *(data2 + i) + 1;
6306  data3 = (char *) malloc (pagesize);
6307  if (!data3)
6308    return 12;
6309  if (read (fd, data3, pagesize) != pagesize)
6310    return 13;
6311  for (i = 0; i < pagesize; ++i)
6312    if (*(data + i) != *(data3 + i))
6313      return 14;
6314  close (fd);
6315  free (data);
6316  free (data3);
6317  return 0;
6318}
6319_ACEOF
6320if ac_fn_c_try_run "$LINENO"; then :
6321  ac_cv_func_mmap_fixed_mapped=yes
6322else
6323  ac_cv_func_mmap_fixed_mapped=no
6324fi
6325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6326  conftest.$ac_objext conftest.beam conftest.$ac_ext
6327fi
6328
6329fi
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6331$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6332if test $ac_cv_func_mmap_fixed_mapped = yes; then
6333
6334$as_echo "#define HAVE_MMAP 1" >>confdefs.h
6335
6336fi
6337rm -f conftest.mmap conftest.txt
6338
6339
6340
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
6342$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
6343if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346
6347      gt_cv_int_divbyzero_sigfpe=
6348      case "$host_os" in
6349        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
6350          # On Mac OS X 10.2 or newer, just assume the same as when cross-
6351          # compiling. If we were to perform the real test, 1 Crash Report
6352          # dialog window would pop up.
6353          case "$host_cpu" in
6354            i[34567]86 | x86_64)
6355              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
6356          esac
6357          ;;
6358      esac
6359      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
6360        if test "$cross_compiling" = yes; then :
6361
6362            # Guess based on the CPU.
6363            case "$host_cpu" in
6364              alpha* | i[34567]86 | x86_64 | m68k | s390*)
6365                gt_cv_int_divbyzero_sigfpe="guessing yes";;
6366              *)
6367                gt_cv_int_divbyzero_sigfpe="guessing no";;
6368            esac
6369
6370else
6371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373
6374#include <stdlib.h>
6375#include <signal.h>
6376
6377static void
6378sigfpe_handler (int sig)
6379{
6380  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6381  _exit (sig != SIGFPE);
6382}
6383
6384int x = 1;
6385int y = 0;
6386int z;
6387int nan;
6388
6389int main ()
6390{
6391  signal (SIGFPE, sigfpe_handler);
6392/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6393#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6394  signal (SIGTRAP, sigfpe_handler);
6395#endif
6396/* Linux/SPARC yields signal SIGILL.  */
6397#if defined (__sparc__) && defined (__linux__)
6398  signal (SIGILL, sigfpe_handler);
6399#endif
6400
6401  z = x / y;
6402  nan = y / y;
6403  exit (2);
6404}
6405
6406_ACEOF
6407if ac_fn_c_try_run "$LINENO"; then :
6408  gt_cv_int_divbyzero_sigfpe=yes
6409else
6410  gt_cv_int_divbyzero_sigfpe=no
6411fi
6412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6413  conftest.$ac_objext conftest.beam conftest.$ac_ext
6414fi
6415
6416      fi
6417
6418fi
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
6420$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
6421  case "$gt_cv_int_divbyzero_sigfpe" in
6422    *yes) value=1;;
6423    *) value=0;;
6424  esac
6425
6426cat >>confdefs.h <<_ACEOF
6427#define INTDIV0_RAISES_SIGFPE $value
6428_ACEOF
6429
6430
6431
6432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6433$as_echo_n "checking for inttypes.h... " >&6; }
6434if ${gl_cv_header_inttypes_h+:} false; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438/* end confdefs.h.  */
6439
6440#include <sys/types.h>
6441#include <inttypes.h>
6442
6443int
6444main ()
6445{
6446uintmax_t i = (uintmax_t) -1; return !i;
6447  ;
6448  return 0;
6449}
6450_ACEOF
6451if ac_fn_c_try_compile "$LINENO"; then :
6452  gl_cv_header_inttypes_h=yes
6453else
6454  gl_cv_header_inttypes_h=no
6455fi
6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
6459$as_echo "$gl_cv_header_inttypes_h" >&6; }
6460  if test $gl_cv_header_inttypes_h = yes; then
6461
6462cat >>confdefs.h <<_ACEOF
6463#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6464_ACEOF
6465
6466  fi
6467
6468
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6470$as_echo_n "checking for unsigned long long int... " >&6; }
6471if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6472  $as_echo_n "(cached) " >&6
6473else
6474  ac_cv_type_unsigned_long_long_int=yes
6475     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6476       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478
6479  /* For now, do not test the preprocessor; as of 2007 there are too many
6480         implementations with broken preprocessors.  Perhaps this can
6481         be revisited in 2012.  In the meantime, code should not expect
6482         #if to work with literals wider than 32 bits.  */
6483      /* Test literals.  */
6484      long long int ll = 9223372036854775807ll;
6485      long long int nll = -9223372036854775807LL;
6486      unsigned long long int ull = 18446744073709551615ULL;
6487      /* Test constant expressions.   */
6488      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6489                     ? 1 : -1)];
6490      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6491                     ? 1 : -1)];
6492      int i = 63;
6493int
6494main ()
6495{
6496/* Test availability of runtime routines for shift and division.  */
6497      long long int llmax = 9223372036854775807ll;
6498      unsigned long long int ullmax = 18446744073709551615ull;
6499      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6500              | (llmax / ll) | (llmax % ll)
6501              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6502              | (ullmax / ull) | (ullmax % ull));
6503  ;
6504  return 0;
6505}
6506
6507_ACEOF
6508if ac_fn_c_try_link "$LINENO"; then :
6509
6510else
6511  ac_cv_type_unsigned_long_long_int=no
6512fi
6513rm -f core conftest.err conftest.$ac_objext \
6514    conftest$ac_exeext conftest.$ac_ext
6515     fi
6516fi
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6518$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6519  if test $ac_cv_type_unsigned_long_long_int = yes; then
6520
6521$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6522
6523  fi
6524
6525
6526
6527
6528  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
6529
6530    test $ac_cv_type_unsigned_long_long_int = yes \
6531      && ac_type='unsigned long long' \
6532      || ac_type='unsigned long'
6533
6534cat >>confdefs.h <<_ACEOF
6535#define uintmax_t $ac_type
6536_ACEOF
6537
6538  else
6539
6540$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6541
6542  fi
6543
6544
6545  for ac_header in inttypes.h
6546do :
6547  ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6548if test "x$ac_cv_header_inttypes_h" = xyes; then :
6549  cat >>confdefs.h <<_ACEOF
6550#define HAVE_INTTYPES_H 1
6551_ACEOF
6552
6553fi
6554
6555done
6556
6557  if test $ac_cv_header_inttypes_h = yes; then
6558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6559$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6560if ${gt_cv_inttypes_pri_broken+:} false; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563
6564        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566
6567#include <inttypes.h>
6568#ifdef PRId32
6569char *p = PRId32;
6570#endif
6571
6572int
6573main ()
6574{
6575
6576  ;
6577  return 0;
6578}
6579_ACEOF
6580if ac_fn_c_try_compile "$LINENO"; then :
6581  gt_cv_inttypes_pri_broken=no
6582else
6583  gt_cv_inttypes_pri_broken=yes
6584fi
6585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586
6587fi
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6589$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6590  fi
6591  if test "$gt_cv_inttypes_pri_broken" = yes; then
6592
6593cat >>confdefs.h <<_ACEOF
6594#define PRI_MACROS_BROKEN 1
6595_ACEOF
6596
6597    PRI_MACROS_BROKEN=1
6598  else
6599    PRI_MACROS_BROKEN=0
6600  fi
6601
6602
6603
6604
6605
6606
6607
6608  # Check whether --enable-threads was given.
6609if test "${enable_threads+set}" = set; then :
6610  enableval=$enable_threads; gl_use_threads=$enableval
6611else
6612  if test -n "$gl_use_threads_default"; then
6613       gl_use_threads="$gl_use_threads_default"
6614     else
6615       case "$host_os" in
6616                                                               osf*) gl_use_threads=no ;;
6617         cygwin*)
6618               case `uname -r` in
6619                 1.[0-5].*) gl_use_threads=no ;;
6620                 *)         gl_use_threads=yes ;;
6621               esac
6622               ;;
6623         *)    gl_use_threads=yes ;;
6624       esac
6625     fi
6626
6627fi
6628
6629  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6630    # For using <pthread.h>:
6631    case "$host_os" in
6632      osf*)
6633        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6634        # groks <pthread.h>. cc also understands the flag -pthread, but
6635        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6636        # 2. putting a flag into CPPFLAGS that has an effect on the linker
6637        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6638        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6639        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6640        ;;
6641    esac
6642    # Some systems optimize for single-threaded programs by default, and
6643    # need special flags to disable these optimizations. For example, the
6644    # definition of 'errno' in <errno.h>.
6645    case "$host_os" in
6646      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6647      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6648    esac
6649  fi
6650
6651
6652
6653
6654
6655      if test "X$prefix" = "XNONE"; then
6656    acl_final_prefix="$ac_default_prefix"
6657  else
6658    acl_final_prefix="$prefix"
6659  fi
6660  if test "X$exec_prefix" = "XNONE"; then
6661    acl_final_exec_prefix='${prefix}'
6662  else
6663    acl_final_exec_prefix="$exec_prefix"
6664  fi
6665  acl_save_prefix="$prefix"
6666  prefix="$acl_final_prefix"
6667  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6668  prefix="$acl_save_prefix"
6669
6670
6671
6672# Check whether --with-gnu-ld was given.
6673if test "${with_gnu_ld+set}" = set; then :
6674  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6675else
6676  with_gnu_ld=no
6677fi
6678
6679# Prepare PATH_SEPARATOR.
6680# The user is always right.
6681if test "${PATH_SEPARATOR+set}" != set; then
6682  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6683  # contains only /bin. Note that ksh looks also at the FPATH variable,
6684  # so we have to set that as well for the test.
6685  PATH_SEPARATOR=:
6686  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6687    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6688           || PATH_SEPARATOR=';'
6689       }
6690fi
6691
6692ac_prog=ld
6693if test "$GCC" = yes; then
6694  # Check if gcc -print-prog-name=ld gives a path.
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6696$as_echo_n "checking for ld used by $CC... " >&6; }
6697  case $host in
6698  *-*-mingw*)
6699    # gcc leaves a trailing carriage return which upsets mingw
6700    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6701  *)
6702    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6703  esac
6704  case $ac_prog in
6705    # Accept absolute paths.
6706    [\\/]* | ?:[\\/]*)
6707      re_direlt='/[^/][^/]*/\.\./'
6708      # Canonicalize the pathname of ld
6709      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
6710      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
6711        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6712      done
6713      test -z "$LD" && LD="$ac_prog"
6714      ;;
6715  "")
6716    # If it fails, then pretend we aren't using GCC.
6717    ac_prog=ld
6718    ;;
6719  *)
6720    # If it is relative, then search for the first ld in PATH.
6721    with_gnu_ld=unknown
6722    ;;
6723  esac
6724elif test "$with_gnu_ld" = yes; then
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6726$as_echo_n "checking for GNU ld... " >&6; }
6727else
6728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6729$as_echo_n "checking for non-GNU ld... " >&6; }
6730fi
6731if ${acl_cv_path_LD+:} false; then :
6732  $as_echo_n "(cached) " >&6
6733else
6734  if test -z "$LD"; then
6735  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6736  for ac_dir in $PATH; do
6737    IFS="$acl_save_ifs"
6738    test -z "$ac_dir" && ac_dir=.
6739    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6740      acl_cv_path_LD="$ac_dir/$ac_prog"
6741      # Check to see if the program is GNU ld.  I'd rather use --version,
6742      # but apparently some variants of GNU ld only accept -v.
6743      # Break only if it was the GNU/non-GNU ld that we prefer.
6744      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
6745      *GNU* | *'with BFD'*)
6746        test "$with_gnu_ld" != no && break
6747        ;;
6748      *)
6749        test "$with_gnu_ld" != yes && break
6750        ;;
6751      esac
6752    fi
6753  done
6754  IFS="$acl_save_ifs"
6755else
6756  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6757fi
6758fi
6759
6760LD="$acl_cv_path_LD"
6761if test -n "$LD"; then
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6763$as_echo "$LD" >&6; }
6764else
6765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
6767fi
6768test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6770$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6771if ${acl_cv_prog_gnu_ld+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6775case `$LD -v 2>&1 </dev/null` in
6776*GNU* | *'with BFD'*)
6777  acl_cv_prog_gnu_ld=yes
6778  ;;
6779*)
6780  acl_cv_prog_gnu_ld=no
6781  ;;
6782esac
6783fi
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6785$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6786with_gnu_ld=$acl_cv_prog_gnu_ld
6787
6788
6789
6790
6791                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6792$as_echo_n "checking for shared library run path origin... " >&6; }
6793if ${acl_cv_rpath+:} false; then :
6794  $as_echo_n "(cached) " >&6
6795else
6796
6797    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6798    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6799    . ./conftest.sh
6800    rm -f ./conftest.sh
6801    acl_cv_rpath=done
6802
6803fi
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6805$as_echo "$acl_cv_rpath" >&6; }
6806  wl="$acl_cv_wl"
6807  acl_libext="$acl_cv_libext"
6808  acl_shlibext="$acl_cv_shlibext"
6809  acl_libname_spec="$acl_cv_libname_spec"
6810  acl_library_names_spec="$acl_cv_library_names_spec"
6811  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6812  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6813  acl_hardcode_direct="$acl_cv_hardcode_direct"
6814  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6815    # Check whether --enable-rpath was given.
6816if test "${enable_rpath+set}" = set; then :
6817  enableval=$enable_rpath; :
6818else
6819  enable_rpath=yes
6820fi
6821
6822
6823
6824
6825  acl_libdirstem=lib
6826  acl_libdirstem2=
6827  case "$host_os" in
6828    solaris*)
6829                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6830$as_echo_n "checking for 64-bit host... " >&6; }
6831if ${gl_cv_solaris_64bit+:} false; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h.  */
6836
6837#ifdef _LP64
6838sixtyfour bits
6839#endif
6840
6841_ACEOF
6842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6844  gl_cv_solaris_64bit=yes
6845else
6846  gl_cv_solaris_64bit=no
6847fi
6848rm -f conftest*
6849
6850
6851fi
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6853$as_echo "$gl_cv_solaris_64bit" >&6; }
6854      if test $gl_cv_solaris_64bit = yes; then
6855        acl_libdirstem=lib/64
6856        case "$host_cpu" in
6857          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6858          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6859        esac
6860      fi
6861      ;;
6862    *)
6863      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6864      if test -n "$searchpath"; then
6865        acl_save_IFS="${IFS= 	}"; IFS=":"
6866        for searchdir in $searchpath; do
6867          if test -d "$searchdir"; then
6868            case "$searchdir" in
6869              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6870              */../ | */.. )
6871                # Better ignore directories of this form. They are misleading.
6872                ;;
6873              *) searchdir=`cd "$searchdir" && pwd`
6874                 case "$searchdir" in
6875                   */lib64 ) acl_libdirstem=lib64 ;;
6876                 esac ;;
6877            esac
6878          fi
6879        done
6880        IFS="$acl_save_IFS"
6881      fi
6882      ;;
6883  esac
6884  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6885
6886
6887
6888  gl_threads_api=none
6889  LIBTHREAD=
6890  LTLIBTHREAD=
6891  LIBMULTITHREAD=
6892  LTLIBMULTITHREAD=
6893  if test "$gl_use_threads" != no; then
6894        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
6895$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
6896if ${gl_cv_have_weak+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  gl_cv_have_weak=no
6900              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h.  */
6902extern void xyzzy ();
6903#pragma weak xyzzy
6904int
6905main ()
6906{
6907xyzzy();
6908  ;
6909  return 0;
6910}
6911_ACEOF
6912if ac_fn_c_try_link "$LINENO"; then :
6913  gl_cv_have_weak=maybe
6914fi
6915rm -f core conftest.err conftest.$ac_objext \
6916    conftest$ac_exeext conftest.$ac_ext
6917       if test $gl_cv_have_weak = maybe; then
6918                           if test "$cross_compiling" = yes; then :
6919                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920/* end confdefs.h.  */
6921#ifdef __ELF__
6922               Extensible Linking Format
6923               #endif
6924
6925_ACEOF
6926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6927  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
6928  gl_cv_have_weak="guessing yes"
6929else
6930  gl_cv_have_weak="guessing no"
6931fi
6932rm -f conftest*
6933
6934
6935else
6936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938
6939#include <stdio.h>
6940#pragma weak fputs
6941int main ()
6942{
6943  return (fputs == NULL);
6944}
6945_ACEOF
6946if ac_fn_c_try_run "$LINENO"; then :
6947  gl_cv_have_weak=yes
6948else
6949  gl_cv_have_weak=no
6950fi
6951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6952  conftest.$ac_objext conftest.beam conftest.$ac_ext
6953fi
6954
6955       fi
6956
6957fi
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
6959$as_echo "$gl_cv_have_weak" >&6; }
6960    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6961      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6962      # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
6963      ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6964if test "x$ac_cv_header_pthread_h" = xyes; then :
6965  gl_have_pthread_h=yes
6966else
6967  gl_have_pthread_h=no
6968fi
6969
6970
6971      if test "$gl_have_pthread_h" = yes; then
6972        # Other possible tests:
6973        #   -lpthreads (FSU threads, PCthreads)
6974        #   -lgthreads
6975        gl_have_pthread=
6976        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6977        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6978        # the second one only in libpthread, and lock.c needs it.
6979        #
6980        # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
6981        # needs -pthread for some reason.  See:
6982        # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
6983        save_LIBS=$LIBS
6984        for gl_pthread in '' '-pthread'; do
6985          LIBS="$LIBS $gl_pthread"
6986          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988#include <pthread.h>
6989                 pthread_mutex_t m;
6990                 pthread_mutexattr_t ma;
6991
6992int
6993main ()
6994{
6995pthread_mutex_lock (&m);
6996                 pthread_mutexattr_init (&ma);
6997  ;
6998  return 0;
6999}
7000_ACEOF
7001if ac_fn_c_try_link "$LINENO"; then :
7002  gl_have_pthread=yes
7003             LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
7004             LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
7005fi
7006rm -f core conftest.err conftest.$ac_objext \
7007    conftest$ac_exeext conftest.$ac_ext
7008          LIBS=$save_LIBS
7009          test -n "$gl_have_pthread" && break
7010        done
7011
7012        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7013        # since it is defined as a macro on OSF/1.)
7014        if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
7015          # The program links fine without libpthread. But it may actually
7016          # need to link with libpthread in order to create multiple threads.
7017          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7018$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7019if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7020  $as_echo_n "(cached) " >&6
7021else
7022  ac_check_lib_save_LIBS=$LIBS
7023LIBS="-lpthread  $LIBS"
7024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025/* end confdefs.h.  */
7026
7027/* Override any GCC internal prototype to avoid an error.
7028   Use char because int might match the return type of a GCC
7029   builtin and then its argument prototype would still apply.  */
7030#ifdef __cplusplus
7031extern "C"
7032#endif
7033char pthread_kill ();
7034int
7035main ()
7036{
7037return pthread_kill ();
7038  ;
7039  return 0;
7040}
7041_ACEOF
7042if ac_fn_c_try_link "$LINENO"; then :
7043  ac_cv_lib_pthread_pthread_kill=yes
7044else
7045  ac_cv_lib_pthread_pthread_kill=no
7046fi
7047rm -f core conftest.err conftest.$ac_objext \
7048    conftest$ac_exeext conftest.$ac_ext
7049LIBS=$ac_check_lib_save_LIBS
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7052$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7053if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7054  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7055             # On Solaris and HP-UX, most pthread functions exist also in libc.
7056             # Therefore pthread_in_use() needs to actually try to create a
7057             # thread: pthread_create from libc will fail, whereas
7058             # pthread_create will actually create a thread.
7059             case "$host_os" in
7060               solaris* | hpux*)
7061
7062$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7063
7064             esac
7065
7066fi
7067
7068        elif test -z "$gl_have_pthread"; then
7069          # Some library is needed. Try libpthread and libc_r.
7070          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7071$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7072if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7073  $as_echo_n "(cached) " >&6
7074else
7075  ac_check_lib_save_LIBS=$LIBS
7076LIBS="-lpthread  $LIBS"
7077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078/* end confdefs.h.  */
7079
7080/* Override any GCC internal prototype to avoid an error.
7081   Use char because int might match the return type of a GCC
7082   builtin and then its argument prototype would still apply.  */
7083#ifdef __cplusplus
7084extern "C"
7085#endif
7086char pthread_kill ();
7087int
7088main ()
7089{
7090return pthread_kill ();
7091  ;
7092  return 0;
7093}
7094_ACEOF
7095if ac_fn_c_try_link "$LINENO"; then :
7096  ac_cv_lib_pthread_pthread_kill=yes
7097else
7098  ac_cv_lib_pthread_pthread_kill=no
7099fi
7100rm -f core conftest.err conftest.$ac_objext \
7101    conftest$ac_exeext conftest.$ac_ext
7102LIBS=$ac_check_lib_save_LIBS
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7105$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7106if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7107  gl_have_pthread=yes
7108             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7109             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7110fi
7111
7112          if test -z "$gl_have_pthread"; then
7113            # For FreeBSD 4.
7114            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7115$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7116if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  ac_check_lib_save_LIBS=$LIBS
7120LIBS="-lc_r  $LIBS"
7121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123
7124/* Override any GCC internal prototype to avoid an error.
7125   Use char because int might match the return type of a GCC
7126   builtin and then its argument prototype would still apply.  */
7127#ifdef __cplusplus
7128extern "C"
7129#endif
7130char pthread_kill ();
7131int
7132main ()
7133{
7134return pthread_kill ();
7135  ;
7136  return 0;
7137}
7138_ACEOF
7139if ac_fn_c_try_link "$LINENO"; then :
7140  ac_cv_lib_c_r_pthread_kill=yes
7141else
7142  ac_cv_lib_c_r_pthread_kill=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext \
7145    conftest$ac_exeext conftest.$ac_ext
7146LIBS=$ac_check_lib_save_LIBS
7147fi
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
7149$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
7150if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
7151  gl_have_pthread=yes
7152               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7153               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
7154fi
7155
7156          fi
7157        fi
7158        if test -n "$gl_have_pthread"; then
7159          gl_threads_api=posix
7160
7161$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
7162
7163          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7164            if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
7165
7166$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
7167
7168              LIBTHREAD=
7169              LTLIBTHREAD=
7170            fi
7171          fi
7172        fi
7173      fi
7174    fi
7175    if test -z "$gl_have_pthread"; then
7176      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
7177        gl_have_solaristhread=
7178        gl_save_LIBS="$LIBS"
7179        LIBS="$LIBS -lthread"
7180        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182
7183#include <thread.h>
7184#include <synch.h>
7185
7186int
7187main ()
7188{
7189thr_self();
7190  ;
7191  return 0;
7192}
7193_ACEOF
7194if ac_fn_c_try_link "$LINENO"; then :
7195  gl_have_solaristhread=yes
7196fi
7197rm -f core conftest.err conftest.$ac_objext \
7198    conftest$ac_exeext conftest.$ac_ext
7199        LIBS="$gl_save_LIBS"
7200        if test -n "$gl_have_solaristhread"; then
7201          gl_threads_api=solaris
7202          LIBTHREAD=-lthread
7203          LTLIBTHREAD=-lthread
7204          LIBMULTITHREAD="$LIBTHREAD"
7205          LTLIBMULTITHREAD="$LTLIBTHREAD"
7206
7207$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
7208
7209          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
7210
7211$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
7212
7213            LIBTHREAD=
7214            LTLIBTHREAD=
7215          fi
7216        fi
7217      fi
7218    fi
7219    if test "$gl_use_threads" = pth; then
7220      gl_save_CPPFLAGS="$CPPFLAGS"
7221
7222
7223
7224
7225
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
7227$as_echo_n "checking how to link with libpth... " >&6; }
7228if ${ac_cv_libpth_libs+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231
7232
7233
7234
7235
7236
7237
7238
7239    use_additional=yes
7240
7241  acl_save_prefix="$prefix"
7242  prefix="$acl_final_prefix"
7243  acl_save_exec_prefix="$exec_prefix"
7244  exec_prefix="$acl_final_exec_prefix"
7245
7246    eval additional_includedir=\"$includedir\"
7247    eval additional_libdir=\"$libdir\"
7248
7249  exec_prefix="$acl_save_exec_prefix"
7250  prefix="$acl_save_prefix"
7251
7252
7253# Check whether --with-libpth-prefix was given.
7254if test "${with_libpth_prefix+set}" = set; then :
7255  withval=$with_libpth_prefix;
7256    if test "X$withval" = "Xno"; then
7257      use_additional=no
7258    else
7259      if test "X$withval" = "X"; then
7260
7261  acl_save_prefix="$prefix"
7262  prefix="$acl_final_prefix"
7263  acl_save_exec_prefix="$exec_prefix"
7264  exec_prefix="$acl_final_exec_prefix"
7265
7266          eval additional_includedir=\"$includedir\"
7267          eval additional_libdir=\"$libdir\"
7268
7269  exec_prefix="$acl_save_exec_prefix"
7270  prefix="$acl_save_prefix"
7271
7272      else
7273        additional_includedir="$withval/include"
7274        additional_libdir="$withval/$acl_libdirstem"
7275        if test "$acl_libdirstem2" != "$acl_libdirstem" \
7276           && ! test -d "$withval/$acl_libdirstem"; then
7277          additional_libdir="$withval/$acl_libdirstem2"
7278        fi
7279      fi
7280    fi
7281
7282fi
7283
7284      LIBPTH=
7285  LTLIBPTH=
7286  INCPTH=
7287  LIBPTH_PREFIX=
7288      HAVE_LIBPTH=
7289  rpathdirs=
7290  ltrpathdirs=
7291  names_already_handled=
7292  names_next_round='pth '
7293  while test -n "$names_next_round"; do
7294    names_this_round="$names_next_round"
7295    names_next_round=
7296    for name in $names_this_round; do
7297      already_handled=
7298      for n in $names_already_handled; do
7299        if test "$n" = "$name"; then
7300          already_handled=yes
7301          break
7302        fi
7303      done
7304      if test -z "$already_handled"; then
7305        names_already_handled="$names_already_handled $name"
7306                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7307        eval value=\"\$HAVE_LIB$uppername\"
7308        if test -n "$value"; then
7309          if test "$value" = yes; then
7310            eval value=\"\$LIB$uppername\"
7311            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
7312            eval value=\"\$LTLIB$uppername\"
7313            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
7314          else
7315                                    :
7316          fi
7317        else
7318                              found_dir=
7319          found_la=
7320          found_so=
7321          found_a=
7322          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7323          if test -n "$acl_shlibext"; then
7324            shrext=".$acl_shlibext"             # typically: shrext=.so
7325          else
7326            shrext=
7327          fi
7328          if test $use_additional = yes; then
7329            dir="$additional_libdir"
7330                                    if test -n "$acl_shlibext"; then
7331              if test -f "$dir/$libname$shrext"; then
7332                found_dir="$dir"
7333                found_so="$dir/$libname$shrext"
7334              else
7335                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7336                  ver=`(cd "$dir" && \
7337                        for f in "$libname$shrext".*; do echo "$f"; done \
7338                        | sed -e "s,^$libname$shrext\\\\.,," \
7339                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7340                        | sed 1q ) 2>/dev/null`
7341                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7342                    found_dir="$dir"
7343                    found_so="$dir/$libname$shrext.$ver"
7344                  fi
7345                else
7346                  eval library_names=\"$acl_library_names_spec\"
7347                  for f in $library_names; do
7348                    if test -f "$dir/$f"; then
7349                      found_dir="$dir"
7350                      found_so="$dir/$f"
7351                      break
7352                    fi
7353                  done
7354                fi
7355              fi
7356            fi
7357                        if test "X$found_dir" = "X"; then
7358              if test -f "$dir/$libname.$acl_libext"; then
7359                found_dir="$dir"
7360                found_a="$dir/$libname.$acl_libext"
7361              fi
7362            fi
7363            if test "X$found_dir" != "X"; then
7364              if test -f "$dir/$libname.la"; then
7365                found_la="$dir/$libname.la"
7366              fi
7367            fi
7368          fi
7369          if test "X$found_dir" = "X"; then
7370            for x in $LDFLAGS $LTLIBPTH; do
7371
7372  acl_save_prefix="$prefix"
7373  prefix="$acl_final_prefix"
7374  acl_save_exec_prefix="$exec_prefix"
7375  exec_prefix="$acl_final_exec_prefix"
7376  eval x=\"$x\"
7377  exec_prefix="$acl_save_exec_prefix"
7378  prefix="$acl_save_prefix"
7379
7380              case "$x" in
7381                -L*)
7382                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7383                                    if test -n "$acl_shlibext"; then
7384                    if test -f "$dir/$libname$shrext"; then
7385                      found_dir="$dir"
7386                      found_so="$dir/$libname$shrext"
7387                    else
7388                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7389                        ver=`(cd "$dir" && \
7390                              for f in "$libname$shrext".*; do echo "$f"; done \
7391                              | sed -e "s,^$libname$shrext\\\\.,," \
7392                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7393                              | sed 1q ) 2>/dev/null`
7394                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7395                          found_dir="$dir"
7396                          found_so="$dir/$libname$shrext.$ver"
7397                        fi
7398                      else
7399                        eval library_names=\"$acl_library_names_spec\"
7400                        for f in $library_names; do
7401                          if test -f "$dir/$f"; then
7402                            found_dir="$dir"
7403                            found_so="$dir/$f"
7404                            break
7405                          fi
7406                        done
7407                      fi
7408                    fi
7409                  fi
7410                                    if test "X$found_dir" = "X"; then
7411                    if test -f "$dir/$libname.$acl_libext"; then
7412                      found_dir="$dir"
7413                      found_a="$dir/$libname.$acl_libext"
7414                    fi
7415                  fi
7416                  if test "X$found_dir" != "X"; then
7417                    if test -f "$dir/$libname.la"; then
7418                      found_la="$dir/$libname.la"
7419                    fi
7420                  fi
7421                  ;;
7422              esac
7423              if test "X$found_dir" != "X"; then
7424                break
7425              fi
7426            done
7427          fi
7428          if test "X$found_dir" != "X"; then
7429                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
7430            if test "X$found_so" != "X"; then
7431                                                        if test "$enable_rpath" = no \
7432                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7433                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7434                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7435              else
7436                                                                                haveit=
7437                for x in $ltrpathdirs; do
7438                  if test "X$x" = "X$found_dir"; then
7439                    haveit=yes
7440                    break
7441                  fi
7442                done
7443                if test -z "$haveit"; then
7444                  ltrpathdirs="$ltrpathdirs $found_dir"
7445                fi
7446                                if test "$acl_hardcode_direct" = yes; then
7447                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7448                else
7449                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7450                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7451                                                            haveit=
7452                    for x in $rpathdirs; do
7453                      if test "X$x" = "X$found_dir"; then
7454                        haveit=yes
7455                        break
7456                      fi
7457                    done
7458                    if test -z "$haveit"; then
7459                      rpathdirs="$rpathdirs $found_dir"
7460                    fi
7461                  else
7462                                                                                haveit=
7463                    for x in $LDFLAGS $LIBPTH; do
7464
7465  acl_save_prefix="$prefix"
7466  prefix="$acl_final_prefix"
7467  acl_save_exec_prefix="$exec_prefix"
7468  exec_prefix="$acl_final_exec_prefix"
7469  eval x=\"$x\"
7470  exec_prefix="$acl_save_exec_prefix"
7471  prefix="$acl_save_prefix"
7472
7473                      if test "X$x" = "X-L$found_dir"; then
7474                        haveit=yes
7475                        break
7476                      fi
7477                    done
7478                    if test -z "$haveit"; then
7479                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
7480                    fi
7481                    if test "$acl_hardcode_minus_L" != no; then
7482                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
7483                    else
7484                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7485                    fi
7486                  fi
7487                fi
7488              fi
7489            else
7490              if test "X$found_a" != "X"; then
7491                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
7492              else
7493                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
7494              fi
7495            fi
7496                        additional_includedir=
7497            case "$found_dir" in
7498              */$acl_libdirstem | */$acl_libdirstem/)
7499                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7500                if test "$name" = 'pth'; then
7501                  LIBPTH_PREFIX="$basedir"
7502                fi
7503                additional_includedir="$basedir/include"
7504                ;;
7505              */$acl_libdirstem2 | */$acl_libdirstem2/)
7506                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7507                if test "$name" = 'pth'; then
7508                  LIBPTH_PREFIX="$basedir"
7509                fi
7510                additional_includedir="$basedir/include"
7511                ;;
7512            esac
7513            if test "X$additional_includedir" != "X"; then
7514                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7515                haveit=
7516                if test "X$additional_includedir" = "X/usr/local/include"; then
7517                  if test -n "$GCC"; then
7518                    case $host_os in
7519                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7520                    esac
7521                  fi
7522                fi
7523                if test -z "$haveit"; then
7524                  for x in $CPPFLAGS $INCPTH; do
7525
7526  acl_save_prefix="$prefix"
7527  prefix="$acl_final_prefix"
7528  acl_save_exec_prefix="$exec_prefix"
7529  exec_prefix="$acl_final_exec_prefix"
7530  eval x=\"$x\"
7531  exec_prefix="$acl_save_exec_prefix"
7532  prefix="$acl_save_prefix"
7533
7534                    if test "X$x" = "X-I$additional_includedir"; then
7535                      haveit=yes
7536                      break
7537                    fi
7538                  done
7539                  if test -z "$haveit"; then
7540                    if test -d "$additional_includedir"; then
7541                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
7542                    fi
7543                  fi
7544                fi
7545              fi
7546            fi
7547                        if test -n "$found_la"; then
7548                                                        save_libdir="$libdir"
7549              case "$found_la" in
7550                */* | *\\*) . "$found_la" ;;
7551                *) . "./$found_la" ;;
7552              esac
7553              libdir="$save_libdir"
7554                            for dep in $dependency_libs; do
7555                case "$dep" in
7556                  -L*)
7557                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7558                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7559                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7560                      haveit=
7561                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7562                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7563                        if test -n "$GCC"; then
7564                          case $host_os in
7565                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7566                          esac
7567                        fi
7568                      fi
7569                      if test -z "$haveit"; then
7570                        haveit=
7571                        for x in $LDFLAGS $LIBPTH; do
7572
7573  acl_save_prefix="$prefix"
7574  prefix="$acl_final_prefix"
7575  acl_save_exec_prefix="$exec_prefix"
7576  exec_prefix="$acl_final_exec_prefix"
7577  eval x=\"$x\"
7578  exec_prefix="$acl_save_exec_prefix"
7579  prefix="$acl_save_prefix"
7580
7581                          if test "X$x" = "X-L$additional_libdir"; then
7582                            haveit=yes
7583                            break
7584                          fi
7585                        done
7586                        if test -z "$haveit"; then
7587                          if test -d "$additional_libdir"; then
7588                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
7589                          fi
7590                        fi
7591                        haveit=
7592                        for x in $LDFLAGS $LTLIBPTH; do
7593
7594  acl_save_prefix="$prefix"
7595  prefix="$acl_final_prefix"
7596  acl_save_exec_prefix="$exec_prefix"
7597  exec_prefix="$acl_final_exec_prefix"
7598  eval x=\"$x\"
7599  exec_prefix="$acl_save_exec_prefix"
7600  prefix="$acl_save_prefix"
7601
7602                          if test "X$x" = "X-L$additional_libdir"; then
7603                            haveit=yes
7604                            break
7605                          fi
7606                        done
7607                        if test -z "$haveit"; then
7608                          if test -d "$additional_libdir"; then
7609                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
7610                          fi
7611                        fi
7612                      fi
7613                    fi
7614                    ;;
7615                  -R*)
7616                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7617                    if test "$enable_rpath" != no; then
7618                                                                  haveit=
7619                      for x in $rpathdirs; do
7620                        if test "X$x" = "X$dir"; then
7621                          haveit=yes
7622                          break
7623                        fi
7624                      done
7625                      if test -z "$haveit"; then
7626                        rpathdirs="$rpathdirs $dir"
7627                      fi
7628                                                                  haveit=
7629                      for x in $ltrpathdirs; do
7630                        if test "X$x" = "X$dir"; then
7631                          haveit=yes
7632                          break
7633                        fi
7634                      done
7635                      if test -z "$haveit"; then
7636                        ltrpathdirs="$ltrpathdirs $dir"
7637                      fi
7638                    fi
7639                    ;;
7640                  -l*)
7641                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7642                    ;;
7643                  *.la)
7644                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7645                    ;;
7646                  *)
7647                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
7648                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
7649                    ;;
7650                esac
7651              done
7652            fi
7653          else
7654                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
7655            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
7656          fi
7657        fi
7658      fi
7659    done
7660  done
7661  if test "X$rpathdirs" != "X"; then
7662    if test -n "$acl_hardcode_libdir_separator"; then
7663                        alldirs=
7664      for found_dir in $rpathdirs; do
7665        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7666      done
7667            acl_save_libdir="$libdir"
7668      libdir="$alldirs"
7669      eval flag=\"$acl_hardcode_libdir_flag_spec\"
7670      libdir="$acl_save_libdir"
7671      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7672    else
7673            for found_dir in $rpathdirs; do
7674        acl_save_libdir="$libdir"
7675        libdir="$found_dir"
7676        eval flag=\"$acl_hardcode_libdir_flag_spec\"
7677        libdir="$acl_save_libdir"
7678        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
7679      done
7680    fi
7681  fi
7682  if test "X$ltrpathdirs" != "X"; then
7683            for found_dir in $ltrpathdirs; do
7684      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
7685    done
7686  fi
7687
7688
7689
7690
7691
7692
7693    ac_cv_libpth_libs="$LIBPTH"
7694    ac_cv_libpth_ltlibs="$LTLIBPTH"
7695    ac_cv_libpth_cppflags="$INCPTH"
7696    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
7697
7698fi
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
7700$as_echo "$ac_cv_libpth_libs" >&6; }
7701  LIBPTH="$ac_cv_libpth_libs"
7702  LTLIBPTH="$ac_cv_libpth_ltlibs"
7703  INCPTH="$ac_cv_libpth_cppflags"
7704  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
7705
7706  for element in $INCPTH; do
7707    haveit=
7708    for x in $CPPFLAGS; do
7709
7710  acl_save_prefix="$prefix"
7711  prefix="$acl_final_prefix"
7712  acl_save_exec_prefix="$exec_prefix"
7713  exec_prefix="$acl_final_exec_prefix"
7714  eval x=\"$x\"
7715  exec_prefix="$acl_save_exec_prefix"
7716  prefix="$acl_save_prefix"
7717
7718      if test "X$x" = "X$element"; then
7719        haveit=yes
7720        break
7721      fi
7722    done
7723    if test -z "$haveit"; then
7724      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7725    fi
7726  done
7727
7728
7729
7730
7731      HAVE_LIBPTH=yes
7732
7733
7734
7735      gl_have_pth=
7736      gl_save_LIBS="$LIBS"
7737      LIBS="$LIBS $LIBPTH"
7738      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739/* end confdefs.h.  */
7740#include <pth.h>
7741int
7742main ()
7743{
7744pth_self();
7745  ;
7746  return 0;
7747}
7748_ACEOF
7749if ac_fn_c_try_link "$LINENO"; then :
7750  gl_have_pth=yes
7751fi
7752rm -f core conftest.err conftest.$ac_objext \
7753    conftest$ac_exeext conftest.$ac_ext
7754      LIBS="$gl_save_LIBS"
7755      if test -n "$gl_have_pth"; then
7756        gl_threads_api=pth
7757        LIBTHREAD="$LIBPTH"
7758        LTLIBTHREAD="$LTLIBPTH"
7759        LIBMULTITHREAD="$LIBTHREAD"
7760        LTLIBMULTITHREAD="$LTLIBTHREAD"
7761
7762$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
7763
7764        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
7765          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
7766
7767$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
7768
7769            LIBTHREAD=
7770            LTLIBTHREAD=
7771          fi
7772        fi
7773      else
7774        CPPFLAGS="$gl_save_CPPFLAGS"
7775      fi
7776    fi
7777    if test -z "$gl_have_pthread"; then
7778      case "$gl_use_threads" in
7779        yes | windows | win32) # The 'win32' is for backward compatibility.
7780          if { case "$host_os" in
7781                 mingw*) true;;
7782                 *) false;;
7783               esac
7784             }; then
7785            gl_threads_api=windows
7786
7787$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
7788
7789          fi
7790          ;;
7791      esac
7792    fi
7793  fi
7794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
7795$as_echo_n "checking for multithread API to use... " >&6; }
7796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
7797$as_echo "$gl_threads_api" >&6; }
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809  if test "$gl_threads_api" = posix; then
7810    # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
7811    # pthread_rwlock_* functions.
7812    ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
7813"
7814if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
7815
7816$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
7817
7818fi
7819
7820    # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
7821    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822/* end confdefs.h.  */
7823
7824      #include <pthread.h>
7825int
7826main ()
7827{
7828
7829#if __FreeBSD__ == 4
7830error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
7831#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
7832       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
7833error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
7834#else
7835int x = (int)PTHREAD_MUTEX_RECURSIVE;
7836return !x;
7837#endif
7838
7839  ;
7840  return 0;
7841}
7842_ACEOF
7843if ac_fn_c_try_compile "$LINENO"; then :
7844
7845$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
7846
7847fi
7848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849  fi
7850  :
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863    use_additional=yes
7864
7865  acl_save_prefix="$prefix"
7866  prefix="$acl_final_prefix"
7867  acl_save_exec_prefix="$exec_prefix"
7868  exec_prefix="$acl_final_exec_prefix"
7869
7870    eval additional_includedir=\"$includedir\"
7871    eval additional_libdir=\"$libdir\"
7872
7873  exec_prefix="$acl_save_exec_prefix"
7874  prefix="$acl_save_prefix"
7875
7876
7877# Check whether --with-libiconv-prefix was given.
7878if test "${with_libiconv_prefix+set}" = set; then :
7879  withval=$with_libiconv_prefix;
7880    if test "X$withval" = "Xno"; then
7881      use_additional=no
7882    else
7883      if test "X$withval" = "X"; then
7884
7885  acl_save_prefix="$prefix"
7886  prefix="$acl_final_prefix"
7887  acl_save_exec_prefix="$exec_prefix"
7888  exec_prefix="$acl_final_exec_prefix"
7889
7890          eval additional_includedir=\"$includedir\"
7891          eval additional_libdir=\"$libdir\"
7892
7893  exec_prefix="$acl_save_exec_prefix"
7894  prefix="$acl_save_prefix"
7895
7896      else
7897        additional_includedir="$withval/include"
7898        additional_libdir="$withval/$acl_libdirstem"
7899        if test "$acl_libdirstem2" != "$acl_libdirstem" \
7900           && ! test -d "$withval/$acl_libdirstem"; then
7901          additional_libdir="$withval/$acl_libdirstem2"
7902        fi
7903      fi
7904    fi
7905
7906fi
7907
7908      LIBICONV=
7909  LTLIBICONV=
7910  INCICONV=
7911  LIBICONV_PREFIX=
7912      HAVE_LIBICONV=
7913  rpathdirs=
7914  ltrpathdirs=
7915  names_already_handled=
7916  names_next_round='iconv '
7917  while test -n "$names_next_round"; do
7918    names_this_round="$names_next_round"
7919    names_next_round=
7920    for name in $names_this_round; do
7921      already_handled=
7922      for n in $names_already_handled; do
7923        if test "$n" = "$name"; then
7924          already_handled=yes
7925          break
7926        fi
7927      done
7928      if test -z "$already_handled"; then
7929        names_already_handled="$names_already_handled $name"
7930                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7931        eval value=\"\$HAVE_LIB$uppername\"
7932        if test -n "$value"; then
7933          if test "$value" = yes; then
7934            eval value=\"\$LIB$uppername\"
7935            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7936            eval value=\"\$LTLIB$uppername\"
7937            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7938          else
7939                                    :
7940          fi
7941        else
7942                              found_dir=
7943          found_la=
7944          found_so=
7945          found_a=
7946          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7947          if test -n "$acl_shlibext"; then
7948            shrext=".$acl_shlibext"             # typically: shrext=.so
7949          else
7950            shrext=
7951          fi
7952          if test $use_additional = yes; then
7953            dir="$additional_libdir"
7954                                    if test -n "$acl_shlibext"; then
7955              if test -f "$dir/$libname$shrext"; then
7956                found_dir="$dir"
7957                found_so="$dir/$libname$shrext"
7958              else
7959                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7960                  ver=`(cd "$dir" && \
7961                        for f in "$libname$shrext".*; do echo "$f"; done \
7962                        | sed -e "s,^$libname$shrext\\\\.,," \
7963                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7964                        | sed 1q ) 2>/dev/null`
7965                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7966                    found_dir="$dir"
7967                    found_so="$dir/$libname$shrext.$ver"
7968                  fi
7969                else
7970                  eval library_names=\"$acl_library_names_spec\"
7971                  for f in $library_names; do
7972                    if test -f "$dir/$f"; then
7973                      found_dir="$dir"
7974                      found_so="$dir/$f"
7975                      break
7976                    fi
7977                  done
7978                fi
7979              fi
7980            fi
7981                        if test "X$found_dir" = "X"; then
7982              if test -f "$dir/$libname.$acl_libext"; then
7983                found_dir="$dir"
7984                found_a="$dir/$libname.$acl_libext"
7985              fi
7986            fi
7987            if test "X$found_dir" != "X"; then
7988              if test -f "$dir/$libname.la"; then
7989                found_la="$dir/$libname.la"
7990              fi
7991            fi
7992          fi
7993          if test "X$found_dir" = "X"; then
7994            for x in $LDFLAGS $LTLIBICONV; do
7995
7996  acl_save_prefix="$prefix"
7997  prefix="$acl_final_prefix"
7998  acl_save_exec_prefix="$exec_prefix"
7999  exec_prefix="$acl_final_exec_prefix"
8000  eval x=\"$x\"
8001  exec_prefix="$acl_save_exec_prefix"
8002  prefix="$acl_save_prefix"
8003
8004              case "$x" in
8005                -L*)
8006                  dir=`echo "X$x" | sed -e 's/^X-L//'`
8007                                    if test -n "$acl_shlibext"; then
8008                    if test -f "$dir/$libname$shrext"; then
8009                      found_dir="$dir"
8010                      found_so="$dir/$libname$shrext"
8011                    else
8012                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8013                        ver=`(cd "$dir" && \
8014                              for f in "$libname$shrext".*; do echo "$f"; done \
8015                              | sed -e "s,^$libname$shrext\\\\.,," \
8016                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8017                              | sed 1q ) 2>/dev/null`
8018                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8019                          found_dir="$dir"
8020                          found_so="$dir/$libname$shrext.$ver"
8021                        fi
8022                      else
8023                        eval library_names=\"$acl_library_names_spec\"
8024                        for f in $library_names; do
8025                          if test -f "$dir/$f"; then
8026                            found_dir="$dir"
8027                            found_so="$dir/$f"
8028                            break
8029                          fi
8030                        done
8031                      fi
8032                    fi
8033                  fi
8034                                    if test "X$found_dir" = "X"; then
8035                    if test -f "$dir/$libname.$acl_libext"; then
8036                      found_dir="$dir"
8037                      found_a="$dir/$libname.$acl_libext"
8038                    fi
8039                  fi
8040                  if test "X$found_dir" != "X"; then
8041                    if test -f "$dir/$libname.la"; then
8042                      found_la="$dir/$libname.la"
8043                    fi
8044                  fi
8045                  ;;
8046              esac
8047              if test "X$found_dir" != "X"; then
8048                break
8049              fi
8050            done
8051          fi
8052          if test "X$found_dir" != "X"; then
8053                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8054            if test "X$found_so" != "X"; then
8055                                                        if test "$enable_rpath" = no \
8056                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8057                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8058                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8059              else
8060                                                                                haveit=
8061                for x in $ltrpathdirs; do
8062                  if test "X$x" = "X$found_dir"; then
8063                    haveit=yes
8064                    break
8065                  fi
8066                done
8067                if test -z "$haveit"; then
8068                  ltrpathdirs="$ltrpathdirs $found_dir"
8069                fi
8070                                if test "$acl_hardcode_direct" = yes; then
8071                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8072                else
8073                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8074                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8075                                                            haveit=
8076                    for x in $rpathdirs; do
8077                      if test "X$x" = "X$found_dir"; then
8078                        haveit=yes
8079                        break
8080                      fi
8081                    done
8082                    if test -z "$haveit"; then
8083                      rpathdirs="$rpathdirs $found_dir"
8084                    fi
8085                  else
8086                                                                                haveit=
8087                    for x in $LDFLAGS $LIBICONV; do
8088
8089  acl_save_prefix="$prefix"
8090  prefix="$acl_final_prefix"
8091  acl_save_exec_prefix="$exec_prefix"
8092  exec_prefix="$acl_final_exec_prefix"
8093  eval x=\"$x\"
8094  exec_prefix="$acl_save_exec_prefix"
8095  prefix="$acl_save_prefix"
8096
8097                      if test "X$x" = "X-L$found_dir"; then
8098                        haveit=yes
8099                        break
8100                      fi
8101                    done
8102                    if test -z "$haveit"; then
8103                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8104                    fi
8105                    if test "$acl_hardcode_minus_L" != no; then
8106                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8107                    else
8108                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8109                    fi
8110                  fi
8111                fi
8112              fi
8113            else
8114              if test "X$found_a" != "X"; then
8115                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8116              else
8117                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8118              fi
8119            fi
8120                        additional_includedir=
8121            case "$found_dir" in
8122              */$acl_libdirstem | */$acl_libdirstem/)
8123                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8124                if test "$name" = 'iconv'; then
8125                  LIBICONV_PREFIX="$basedir"
8126                fi
8127                additional_includedir="$basedir/include"
8128                ;;
8129              */$acl_libdirstem2 | */$acl_libdirstem2/)
8130                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8131                if test "$name" = 'iconv'; then
8132                  LIBICONV_PREFIX="$basedir"
8133                fi
8134                additional_includedir="$basedir/include"
8135                ;;
8136            esac
8137            if test "X$additional_includedir" != "X"; then
8138                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
8139                haveit=
8140                if test "X$additional_includedir" = "X/usr/local/include"; then
8141                  if test -n "$GCC"; then
8142                    case $host_os in
8143                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8144                    esac
8145                  fi
8146                fi
8147                if test -z "$haveit"; then
8148                  for x in $CPPFLAGS $INCICONV; do
8149
8150  acl_save_prefix="$prefix"
8151  prefix="$acl_final_prefix"
8152  acl_save_exec_prefix="$exec_prefix"
8153  exec_prefix="$acl_final_exec_prefix"
8154  eval x=\"$x\"
8155  exec_prefix="$acl_save_exec_prefix"
8156  prefix="$acl_save_prefix"
8157
8158                    if test "X$x" = "X-I$additional_includedir"; then
8159                      haveit=yes
8160                      break
8161                    fi
8162                  done
8163                  if test -z "$haveit"; then
8164                    if test -d "$additional_includedir"; then
8165                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8166                    fi
8167                  fi
8168                fi
8169              fi
8170            fi
8171                        if test -n "$found_la"; then
8172                                                        save_libdir="$libdir"
8173              case "$found_la" in
8174                */* | *\\*) . "$found_la" ;;
8175                *) . "./$found_la" ;;
8176              esac
8177              libdir="$save_libdir"
8178                            for dep in $dependency_libs; do
8179                case "$dep" in
8180                  -L*)
8181                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8182                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8183                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8184                      haveit=
8185                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8186                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8187                        if test -n "$GCC"; then
8188                          case $host_os in
8189                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8190                          esac
8191                        fi
8192                      fi
8193                      if test -z "$haveit"; then
8194                        haveit=
8195                        for x in $LDFLAGS $LIBICONV; do
8196
8197  acl_save_prefix="$prefix"
8198  prefix="$acl_final_prefix"
8199  acl_save_exec_prefix="$exec_prefix"
8200  exec_prefix="$acl_final_exec_prefix"
8201  eval x=\"$x\"
8202  exec_prefix="$acl_save_exec_prefix"
8203  prefix="$acl_save_prefix"
8204
8205                          if test "X$x" = "X-L$additional_libdir"; then
8206                            haveit=yes
8207                            break
8208                          fi
8209                        done
8210                        if test -z "$haveit"; then
8211                          if test -d "$additional_libdir"; then
8212                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8213                          fi
8214                        fi
8215                        haveit=
8216                        for x in $LDFLAGS $LTLIBICONV; do
8217
8218  acl_save_prefix="$prefix"
8219  prefix="$acl_final_prefix"
8220  acl_save_exec_prefix="$exec_prefix"
8221  exec_prefix="$acl_final_exec_prefix"
8222  eval x=\"$x\"
8223  exec_prefix="$acl_save_exec_prefix"
8224  prefix="$acl_save_prefix"
8225
8226                          if test "X$x" = "X-L$additional_libdir"; then
8227                            haveit=yes
8228                            break
8229                          fi
8230                        done
8231                        if test -z "$haveit"; then
8232                          if test -d "$additional_libdir"; then
8233                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8234                          fi
8235                        fi
8236                      fi
8237                    fi
8238                    ;;
8239                  -R*)
8240                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8241                    if test "$enable_rpath" != no; then
8242                                                                  haveit=
8243                      for x in $rpathdirs; do
8244                        if test "X$x" = "X$dir"; then
8245                          haveit=yes
8246                          break
8247                        fi
8248                      done
8249                      if test -z "$haveit"; then
8250                        rpathdirs="$rpathdirs $dir"
8251                      fi
8252                                                                  haveit=
8253                      for x in $ltrpathdirs; do
8254                        if test "X$x" = "X$dir"; then
8255                          haveit=yes
8256                          break
8257                        fi
8258                      done
8259                      if test -z "$haveit"; then
8260                        ltrpathdirs="$ltrpathdirs $dir"
8261                      fi
8262                    fi
8263                    ;;
8264                  -l*)
8265                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8266                    ;;
8267                  *.la)
8268                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8269                    ;;
8270                  *)
8271                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8272                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8273                    ;;
8274                esac
8275              done
8276            fi
8277          else
8278                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8279            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8280          fi
8281        fi
8282      fi
8283    done
8284  done
8285  if test "X$rpathdirs" != "X"; then
8286    if test -n "$acl_hardcode_libdir_separator"; then
8287                        alldirs=
8288      for found_dir in $rpathdirs; do
8289        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8290      done
8291            acl_save_libdir="$libdir"
8292      libdir="$alldirs"
8293      eval flag=\"$acl_hardcode_libdir_flag_spec\"
8294      libdir="$acl_save_libdir"
8295      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8296    else
8297            for found_dir in $rpathdirs; do
8298        acl_save_libdir="$libdir"
8299        libdir="$found_dir"
8300        eval flag=\"$acl_hardcode_libdir_flag_spec\"
8301        libdir="$acl_save_libdir"
8302        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8303      done
8304    fi
8305  fi
8306  if test "X$ltrpathdirs" != "X"; then
8307            for found_dir in $ltrpathdirs; do
8308      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8309    done
8310  fi
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323          am_save_CPPFLAGS="$CPPFLAGS"
8324
8325  for element in $INCICONV; do
8326    haveit=
8327    for x in $CPPFLAGS; do
8328
8329  acl_save_prefix="$prefix"
8330  prefix="$acl_final_prefix"
8331  acl_save_exec_prefix="$exec_prefix"
8332  exec_prefix="$acl_final_exec_prefix"
8333  eval x=\"$x\"
8334  exec_prefix="$acl_save_exec_prefix"
8335  prefix="$acl_save_prefix"
8336
8337      if test "X$x" = "X$element"; then
8338        haveit=yes
8339        break
8340      fi
8341    done
8342    if test -z "$haveit"; then
8343      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8344    fi
8345  done
8346
8347
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8349$as_echo_n "checking for iconv... " >&6; }
8350if ${am_cv_func_iconv+:} false; then :
8351  $as_echo_n "(cached) " >&6
8352else
8353
8354    am_cv_func_iconv="no, consider installing GNU libiconv"
8355    am_cv_lib_iconv=no
8356    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357/* end confdefs.h.  */
8358
8359#include <stdlib.h>
8360#include <iconv.h>
8361
8362int
8363main ()
8364{
8365iconv_t cd = iconv_open("","");
8366           iconv(cd,NULL,NULL,NULL,NULL);
8367           iconv_close(cd);
8368  ;
8369  return 0;
8370}
8371_ACEOF
8372if ac_fn_c_try_link "$LINENO"; then :
8373  am_cv_func_iconv=yes
8374fi
8375rm -f core conftest.err conftest.$ac_objext \
8376    conftest$ac_exeext conftest.$ac_ext
8377    if test "$am_cv_func_iconv" != yes; then
8378      am_save_LIBS="$LIBS"
8379      LIBS="$LIBS $LIBICONV"
8380      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h.  */
8382
8383#include <stdlib.h>
8384#include <iconv.h>
8385
8386int
8387main ()
8388{
8389iconv_t cd = iconv_open("","");
8390             iconv(cd,NULL,NULL,NULL,NULL);
8391             iconv_close(cd);
8392  ;
8393  return 0;
8394}
8395_ACEOF
8396if ac_fn_c_try_link "$LINENO"; then :
8397  am_cv_lib_iconv=yes
8398        am_cv_func_iconv=yes
8399fi
8400rm -f core conftest.err conftest.$ac_objext \
8401    conftest$ac_exeext conftest.$ac_ext
8402      LIBS="$am_save_LIBS"
8403    fi
8404
8405fi
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8407$as_echo "$am_cv_func_iconv" >&6; }
8408  if test "$am_cv_func_iconv" = yes; then
8409    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8410$as_echo_n "checking for working iconv... " >&6; }
8411if ${am_cv_func_iconv_works+:} false; then :
8412  $as_echo_n "(cached) " >&6
8413else
8414
8415                  am_save_LIBS="$LIBS"
8416      if test $am_cv_lib_iconv = yes; then
8417        LIBS="$LIBS $LIBICONV"
8418      fi
8419      am_cv_func_iconv_works=no
8420      for ac_iconv_const in '' 'const'; do
8421        if test "$cross_compiling" = yes; then :
8422  case "$host_os" in
8423             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8424             *)            am_cv_func_iconv_works="guessing yes" ;;
8425           esac
8426else
8427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428/* end confdefs.h.  */
8429
8430#include <iconv.h>
8431#include <string.h>
8432
8433#ifndef ICONV_CONST
8434# define ICONV_CONST $ac_iconv_const
8435#endif
8436
8437int
8438main ()
8439{
8440int result = 0;
8441  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8442     returns.  */
8443  {
8444    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8445    if (cd_utf8_to_88591 != (iconv_t)(-1))
8446      {
8447        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8448        char buf[10];
8449        ICONV_CONST char *inptr = input;
8450        size_t inbytesleft = strlen (input);
8451        char *outptr = buf;
8452        size_t outbytesleft = sizeof (buf);
8453        size_t res = iconv (cd_utf8_to_88591,
8454                            &inptr, &inbytesleft,
8455                            &outptr, &outbytesleft);
8456        if (res == 0)
8457          result |= 1;
8458        iconv_close (cd_utf8_to_88591);
8459      }
8460  }
8461  /* Test against Solaris 10 bug: Failures are not distinguishable from
8462     successful returns.  */
8463  {
8464    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8465    if (cd_ascii_to_88591 != (iconv_t)(-1))
8466      {
8467        static ICONV_CONST char input[] = "\263";
8468        char buf[10];
8469        ICONV_CONST char *inptr = input;
8470        size_t inbytesleft = strlen (input);
8471        char *outptr = buf;
8472        size_t outbytesleft = sizeof (buf);
8473        size_t res = iconv (cd_ascii_to_88591,
8474                            &inptr, &inbytesleft,
8475                            &outptr, &outbytesleft);
8476        if (res == 0)
8477          result |= 2;
8478        iconv_close (cd_ascii_to_88591);
8479      }
8480  }
8481  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
8482  {
8483    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8484    if (cd_88591_to_utf8 != (iconv_t)(-1))
8485      {
8486        static ICONV_CONST char input[] = "\304";
8487        static char buf[2] = { (char)0xDE, (char)0xAD };
8488        ICONV_CONST char *inptr = input;
8489        size_t inbytesleft = 1;
8490        char *outptr = buf;
8491        size_t outbytesleft = 1;
8492        size_t res = iconv (cd_88591_to_utf8,
8493                            &inptr, &inbytesleft,
8494                            &outptr, &outbytesleft);
8495        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8496          result |= 4;
8497        iconv_close (cd_88591_to_utf8);
8498      }
8499  }
8500#if 0 /* This bug could be worked around by the caller.  */
8501  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
8502  {
8503    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8504    if (cd_88591_to_utf8 != (iconv_t)(-1))
8505      {
8506        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8507        char buf[50];
8508        ICONV_CONST char *inptr = input;
8509        size_t inbytesleft = strlen (input);
8510        char *outptr = buf;
8511        size_t outbytesleft = sizeof (buf);
8512        size_t res = iconv (cd_88591_to_utf8,
8513                            &inptr, &inbytesleft,
8514                            &outptr, &outbytesleft);
8515        if ((int)res > 0)
8516          result |= 8;
8517        iconv_close (cd_88591_to_utf8);
8518      }
8519  }
8520#endif
8521  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8522     provided.  */
8523  if (/* Try standardized names.  */
8524      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8525      /* Try IRIX, OSF/1 names.  */
8526      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8527      /* Try AIX names.  */
8528      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8529      /* Try HP-UX names.  */
8530      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8531    result |= 16;
8532  return result;
8533
8534  ;
8535  return 0;
8536}
8537_ACEOF
8538if ac_fn_c_try_run "$LINENO"; then :
8539  am_cv_func_iconv_works=yes
8540fi
8541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8542  conftest.$ac_objext conftest.beam conftest.$ac_ext
8543fi
8544
8545        test "$am_cv_func_iconv_works" = no || break
8546      done
8547      LIBS="$am_save_LIBS"
8548
8549fi
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8551$as_echo "$am_cv_func_iconv_works" >&6; }
8552    case "$am_cv_func_iconv_works" in
8553      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8554      *)   am_func_iconv=yes ;;
8555    esac
8556  else
8557    am_func_iconv=no am_cv_lib_iconv=no
8558  fi
8559  if test "$am_func_iconv" = yes; then
8560
8561$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8562
8563  fi
8564  if test "$am_cv_lib_iconv" = yes; then
8565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8566$as_echo_n "checking how to link with libiconv... " >&6; }
8567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8568$as_echo "$LIBICONV" >&6; }
8569  else
8570            CPPFLAGS="$am_save_CPPFLAGS"
8571    LIBICONV=
8572    LTLIBICONV=
8573  fi
8574
8575
8576
8577  if test "$am_cv_func_iconv" = yes; then
8578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8579$as_echo_n "checking for iconv declaration... " >&6; }
8580    if ${am_cv_proto_iconv+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583
8584      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585/* end confdefs.h.  */
8586
8587#include <stdlib.h>
8588#include <iconv.h>
8589extern
8590#ifdef __cplusplus
8591"C"
8592#endif
8593#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
8594size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8595#else
8596size_t iconv();
8597#endif
8598
8599int
8600main ()
8601{
8602
8603  ;
8604  return 0;
8605}
8606_ACEOF
8607if ac_fn_c_try_compile "$LINENO"; then :
8608  am_cv_proto_iconv_arg1=""
8609else
8610  am_cv_proto_iconv_arg1="const"
8611fi
8612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8614fi
8615
8616    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8617    { $as_echo "$as_me:${as_lineno-$LINENO}: result:
8618         $am_cv_proto_iconv" >&5
8619$as_echo "
8620         $am_cv_proto_iconv" >&6; }
8621
8622cat >>confdefs.h <<_ACEOF
8623#define ICONV_CONST $am_cv_proto_iconv_arg1
8624_ACEOF
8625
8626
8627  fi
8628
8629
8630
8631
8632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h.  */
8634int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
8635int
8636main ()
8637{
8638
8639  ;
8640  return 0;
8641}
8642_ACEOF
8643if ac_fn_c_try_link "$LINENO"; then :
8644
8645$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
8646
8647fi
8648rm -f core conftest.err conftest.$ac_objext \
8649    conftest$ac_exeext conftest.$ac_ext
8650
8651  for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
8652do :
8653  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8654ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8655if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8656  cat >>confdefs.h <<_ACEOF
8657#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8658_ACEOF
8659
8660fi
8661
8662done
8663
8664  for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
8665    stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
8666    argz_stringify argz_next __fsetlocking
8667do :
8668  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8669ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8670if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8671  cat >>confdefs.h <<_ACEOF
8672#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8673_ACEOF
8674
8675fi
8676done
8677
8678
8679      if test $ac_cv_func_uselocale = yes; then
8680    for ac_func in getlocalename_l
8681do :
8682  ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
8683if test "x$ac_cv_func_getlocalename_l" = xyes; then :
8684  cat >>confdefs.h <<_ACEOF
8685#define HAVE_GETLOCALENAME_L 1
8686_ACEOF
8687
8688fi
8689done
8690
8691  fi
8692
8693          ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
8694"
8695if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
8696  ac_have_decl=1
8697else
8698  ac_have_decl=0
8699fi
8700
8701cat >>confdefs.h <<_ACEOF
8702#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
8703_ACEOF
8704ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
8705"
8706if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
8707  ac_have_decl=1
8708else
8709  ac_have_decl=0
8710fi
8711
8712cat >>confdefs.h <<_ACEOF
8713#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
8714_ACEOF
8715
8716
8717
8718
8719                    for ac_prog in bison
8720do
8721  # Extract the first word of "$ac_prog", so it can be a program name with args.
8722set dummy $ac_prog; ac_word=$2
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724$as_echo_n "checking for $ac_word... " >&6; }
8725if ${ac_cv_prog_INTLBISON+:} false; then :
8726  $as_echo_n "(cached) " >&6
8727else
8728  if test -n "$INTLBISON"; then
8729  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8730else
8731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734  IFS=$as_save_IFS
8735  test -z "$as_dir" && as_dir=.
8736    for ac_exec_ext in '' $ac_executable_extensions; do
8737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738    ac_cv_prog_INTLBISON="$ac_prog"
8739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740    break 2
8741  fi
8742done
8743  done
8744IFS=$as_save_IFS
8745
8746fi
8747fi
8748INTLBISON=$ac_cv_prog_INTLBISON
8749if test -n "$INTLBISON"; then
8750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8751$as_echo "$INTLBISON" >&6; }
8752else
8753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754$as_echo "no" >&6; }
8755fi
8756
8757
8758  test -n "$INTLBISON" && break
8759done
8760
8761  if test -z "$INTLBISON"; then
8762    ac_verc_fail=yes
8763  else
8764        { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8765$as_echo_n "checking version of bison... " >&6; }
8766    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8767    case $ac_prog_version in
8768      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8769      2.[7-9]* | [3-9].*)
8770         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8771      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8772    esac
8773    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8774$as_echo "$ac_prog_version" >&6; }
8775  fi
8776  if test $ac_verc_fail = yes; then
8777    INTLBISON=:
8778  fi
8779
8780
8781
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8783$as_echo_n "checking for long long int... " >&6; }
8784if ${ac_cv_type_long_long_int+:} false; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  ac_cv_type_long_long_int=yes
8788      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8789        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
8790        if test $ac_cv_type_long_long_int = yes; then
8791                                        if test "$cross_compiling" = yes; then :
8792  :
8793else
8794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795/* end confdefs.h.  */
8796#include <limits.h>
8797                 #ifndef LLONG_MAX
8798                 # define HALF \
8799                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8800                 # define LLONG_MAX (HALF - 1 + HALF)
8801                 #endif
8802int
8803main ()
8804{
8805long long int n = 1;
8806                 int i;
8807                 for (i = 0; ; i++)
8808                   {
8809                     long long int m = n << i;
8810                     if (m >> i != n)
8811                       return 1;
8812                     if (LLONG_MAX / 2 < m)
8813                       break;
8814                   }
8815                 return 0;
8816  ;
8817  return 0;
8818}
8819_ACEOF
8820if ac_fn_c_try_run "$LINENO"; then :
8821
8822else
8823  ac_cv_type_long_long_int=no
8824fi
8825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8826  conftest.$ac_objext conftest.beam conftest.$ac_ext
8827fi
8828
8829        fi
8830      fi
8831fi
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8833$as_echo "$ac_cv_type_long_long_int" >&6; }
8834  if test $ac_cv_type_long_long_int = yes; then
8835
8836$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8837
8838  fi
8839
8840
8841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8842$as_echo_n "checking for wchar_t... " >&6; }
8843if ${gt_cv_c_wchar_t+:} false; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h.  */
8848#include <stddef.h>
8849            wchar_t foo = (wchar_t)'\0';
8850int
8851main ()
8852{
8853
8854  ;
8855  return 0;
8856}
8857_ACEOF
8858if ac_fn_c_try_compile "$LINENO"; then :
8859  gt_cv_c_wchar_t=yes
8860else
8861  gt_cv_c_wchar_t=no
8862fi
8863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8866$as_echo "$gt_cv_c_wchar_t" >&6; }
8867  if test $gt_cv_c_wchar_t = yes; then
8868
8869$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8870
8871  fi
8872
8873
8874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8875$as_echo_n "checking for wint_t... " >&6; }
8876if ${gt_cv_c_wint_t+:} false; then :
8877  $as_echo_n "(cached) " >&6
8878else
8879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h.  */
8881
8882/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8883   <wchar.h>.
8884   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8885   before <wchar.h>.  */
8886#include <stddef.h>
8887#include <stdio.h>
8888#include <time.h>
8889#include <wchar.h>
8890            wint_t foo = (wchar_t)'\0';
8891int
8892main ()
8893{
8894
8895  ;
8896  return 0;
8897}
8898_ACEOF
8899if ac_fn_c_try_compile "$LINENO"; then :
8900  gt_cv_c_wint_t=yes
8901else
8902  gt_cv_c_wint_t=no
8903fi
8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8907$as_echo "$gt_cv_c_wint_t" >&6; }
8908  if test $gt_cv_c_wint_t = yes; then
8909
8910$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8911
8912  fi
8913
8914
8915
8916
8917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
8918$as_echo_n "checking for intmax_t... " >&6; }
8919if ${gt_cv_c_intmax_t+:} false; then :
8920  $as_echo_n "(cached) " >&6
8921else
8922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923/* end confdefs.h.  */
8924
8925#include <stddef.h>
8926#include <stdlib.h>
8927#if HAVE_STDINT_H_WITH_UINTMAX
8928#include <stdint.h>
8929#endif
8930#if HAVE_INTTYPES_H_WITH_UINTMAX
8931#include <inttypes.h>
8932#endif
8933
8934int
8935main ()
8936{
8937intmax_t x = -1;
8938            return !x;
8939  ;
8940  return 0;
8941}
8942_ACEOF
8943if ac_fn_c_try_compile "$LINENO"; then :
8944  gt_cv_c_intmax_t=yes
8945else
8946  gt_cv_c_intmax_t=no
8947fi
8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949fi
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
8951$as_echo "$gt_cv_c_intmax_t" >&6; }
8952  if test $gt_cv_c_intmax_t = yes; then
8953
8954$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8955
8956  fi
8957
8958
8959
8960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
8961$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
8962if ${gt_cv_func_printf_posix+:} false; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965
8966      if test "$cross_compiling" = yes; then :
8967
8968          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970
8971#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8972  notposix
8973#endif
8974
8975_ACEOF
8976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8977  $EGREP "notposix" >/dev/null 2>&1; then :
8978  gt_cv_func_printf_posix="guessing no"
8979else
8980  gt_cv_func_printf_posix="guessing yes"
8981fi
8982rm -f conftest*
8983
8984
8985else
8986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h.  */
8988
8989#include <stdio.h>
8990#include <string.h>
8991/* The string "%2$d %1$d", with dollar characters protected from the shell's
8992   dollar expansion (possibly an autoconf bug).  */
8993static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8994static char buf[100];
8995int main ()
8996{
8997  sprintf (buf, format, 33, 55);
8998  return (strcmp (buf, "55 33") != 0);
8999}
9000_ACEOF
9001if ac_fn_c_try_run "$LINENO"; then :
9002  gt_cv_func_printf_posix=yes
9003else
9004  gt_cv_func_printf_posix=no
9005fi
9006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9007  conftest.$ac_objext conftest.beam conftest.$ac_ext
9008fi
9009
9010
9011fi
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9013$as_echo "$gt_cv_func_printf_posix" >&6; }
9014  case $gt_cv_func_printf_posix in
9015    *yes)
9016
9017$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9018
9019      ;;
9020  esac
9021
9022
9023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9024$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9025if ${ac_cv_gnu_library_2_1+:} false; then :
9026  $as_echo_n "(cached) " >&6
9027else
9028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029/* end confdefs.h.  */
9030
9031#include <features.h>
9032#ifdef __GNU_LIBRARY__
9033 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9034  Lucky GNU user
9035 #endif
9036#endif
9037#ifdef __UCLIBC__
9038 Lucky user
9039#endif
9040
9041_ACEOF
9042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9043  $EGREP "Lucky" >/dev/null 2>&1; then :
9044  ac_cv_gnu_library_2_1=yes
9045else
9046  ac_cv_gnu_library_2_1=no
9047fi
9048rm -f conftest*
9049
9050
9051
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9054$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9055
9056    GLIBC21="$ac_cv_gnu_library_2_1"
9057
9058
9059
9060  for ac_header in stdint.h
9061do :
9062  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9063if test "x$ac_cv_header_stdint_h" = xyes; then :
9064  cat >>confdefs.h <<_ACEOF
9065#define HAVE_STDINT_H 1
9066_ACEOF
9067
9068fi
9069
9070done
9071
9072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9073$as_echo_n "checking for SIZE_MAX... " >&6; }
9074if ${gl_cv_size_max+:} false; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077
9078    gl_cv_size_max=
9079    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080/* end confdefs.h.  */
9081
9082#include <limits.h>
9083#if HAVE_STDINT_H
9084#include <stdint.h>
9085#endif
9086#ifdef SIZE_MAX
9087Found it
9088#endif
9089
9090_ACEOF
9091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9092  $EGREP "Found it" >/dev/null 2>&1; then :
9093  gl_cv_size_max=yes
9094fi
9095rm -f conftest*
9096
9097    if test -z "$gl_cv_size_max"; then
9098                        if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
9099#include <limits.h>"; then :
9100
9101else
9102  size_t_bits_minus_1=
9103fi
9104
9105      if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
9106
9107else
9108  fits_in_uint=
9109fi
9110
9111      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9112        if test $fits_in_uint = 1; then
9113                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114/* end confdefs.h.  */
9115#include <stddef.h>
9116                 extern size_t foo;
9117                 extern unsigned long foo;
9118
9119int
9120main ()
9121{
9122
9123  ;
9124  return 0;
9125}
9126_ACEOF
9127if ac_fn_c_try_compile "$LINENO"; then :
9128  fits_in_uint=0
9129fi
9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131        fi
9132                                if test $fits_in_uint = 1; then
9133          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9134        else
9135          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9136        fi
9137      else
9138                gl_cv_size_max='((size_t)~(size_t)0)'
9139      fi
9140    fi
9141
9142fi
9143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9144$as_echo "$gl_cv_size_max" >&6; }
9145  if test "$gl_cv_size_max" != yes; then
9146
9147cat >>confdefs.h <<_ACEOF
9148#define SIZE_MAX $gl_cv_size_max
9149_ACEOF
9150
9151  fi
9152
9153
9154
9155
9156  for ac_header in stdint.h
9157do :
9158  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9159if test "x$ac_cv_header_stdint_h" = xyes; then :
9160  cat >>confdefs.h <<_ACEOF
9161#define HAVE_STDINT_H 1
9162_ACEOF
9163
9164fi
9165
9166done
9167
9168
9169
9170
9171
9172  for ac_func in $ac_func_list
9173do :
9174  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9175ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9176if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9177  cat >>confdefs.h <<_ACEOF
9178#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9179_ACEOF
9180
9181fi
9182done
9183
9184
9185
9186
9187
9188
9189
9190
9191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9192$as_echo_n "checking for working fcntl.h... " >&6; }
9193if ${gl_cv_header_working_fcntl_h+:} false; then :
9194  $as_echo_n "(cached) " >&6
9195else
9196  if test "$cross_compiling" = yes; then :
9197  gl_cv_header_working_fcntl_h=cross-compiling
9198else
9199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200/* end confdefs.h.  */
9201#include <sys/types.h>
9202           #include <sys/stat.h>
9203           #if HAVE_UNISTD_H
9204           # include <unistd.h>
9205           #else /* on Windows with MSVC */
9206           # include <io.h>
9207           # include <stdlib.h>
9208           # defined sleep(n) _sleep ((n) * 1000)
9209           #endif
9210           #include <fcntl.h>
9211           #ifndef O_NOATIME
9212            #define O_NOATIME 0
9213           #endif
9214           #ifndef O_NOFOLLOW
9215            #define O_NOFOLLOW 0
9216           #endif
9217           static int const constants[] =
9218            {
9219              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9220              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9221            };
9222
9223int
9224main ()
9225{
9226
9227            int result = !constants;
9228            #if HAVE_SYMLINK
9229            {
9230              static char const sym[] = "conftest.sym";
9231              if (symlink ("/dev/null", sym) != 0)
9232                result |= 2;
9233              else
9234                {
9235                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9236                  if (fd >= 0)
9237                    {
9238                      close (fd);
9239                      result |= 4;
9240                    }
9241                }
9242              if (unlink (sym) != 0 || symlink (".", sym) != 0)
9243                result |= 2;
9244              else
9245                {
9246                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9247                  if (fd >= 0)
9248                    {
9249                      close (fd);
9250                      result |= 4;
9251                    }
9252                }
9253              unlink (sym);
9254            }
9255            #endif
9256            {
9257              static char const file[] = "confdefs.h";
9258              int fd = open (file, O_RDONLY | O_NOATIME);
9259              if (fd < 0)
9260                result |= 8;
9261              else
9262                {
9263                  struct stat st0;
9264                  if (fstat (fd, &st0) != 0)
9265                    result |= 16;
9266                  else
9267                    {
9268                      char c;
9269                      sleep (1);
9270                      if (read (fd, &c, 1) != 1)
9271                        result |= 24;
9272                      else
9273                        {
9274                          if (close (fd) != 0)
9275                            result |= 32;
9276                          else
9277                            {
9278                              struct stat st1;
9279                              if (stat (file, &st1) != 0)
9280                                result |= 40;
9281                              else
9282                                if (st0.st_atime != st1.st_atime)
9283                                  result |= 64;
9284                            }
9285                        }
9286                    }
9287                }
9288            }
9289            return result;
9290  ;
9291  return 0;
9292}
9293_ACEOF
9294if ac_fn_c_try_run "$LINENO"; then :
9295  gl_cv_header_working_fcntl_h=yes
9296else
9297  case $? in #(
9298        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9299        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9300        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9301         *) gl_cv_header_working_fcntl_h='no';;
9302        esac
9303fi
9304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9305  conftest.$ac_objext conftest.beam conftest.$ac_ext
9306fi
9307
9308fi
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9310$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9311
9312  case $gl_cv_header_working_fcntl_h in #(
9313  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9314  *) ac_val=1;;
9315  esac
9316
9317cat >>confdefs.h <<_ACEOF
9318#define HAVE_WORKING_O_NOATIME $ac_val
9319_ACEOF
9320
9321
9322  case $gl_cv_header_working_fcntl_h in #(
9323  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9324  *) ac_val=1;;
9325  esac
9326
9327cat >>confdefs.h <<_ACEOF
9328#define HAVE_WORKING_O_NOFOLLOW $ac_val
9329_ACEOF
9330
9331
9332
9333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9334$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
9335if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
9336  $as_echo_n "(cached) " >&6
9337else
9338  gt_save_LIBS="$LIBS"
9339     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341/* end confdefs.h.  */
9342#include <CoreFoundation/CFPreferences.h>
9343int
9344main ()
9345{
9346CFPreferencesCopyAppValue(NULL, NULL)
9347  ;
9348  return 0;
9349}
9350_ACEOF
9351if ac_fn_c_try_link "$LINENO"; then :
9352  gt_cv_func_CFPreferencesCopyAppValue=yes
9353else
9354  gt_cv_func_CFPreferencesCopyAppValue=no
9355fi
9356rm -f core conftest.err conftest.$ac_objext \
9357    conftest$ac_exeext conftest.$ac_ext
9358     LIBS="$gt_save_LIBS"
9359fi
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9361$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9362  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9363
9364$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9365
9366  fi
9367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
9368$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
9369if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
9370  $as_echo_n "(cached) " >&6
9371else
9372  gt_save_LIBS="$LIBS"
9373     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375/* end confdefs.h.  */
9376#include <CoreFoundation/CFLocale.h>
9377int
9378main ()
9379{
9380CFLocaleCopyCurrent();
9381  ;
9382  return 0;
9383}
9384_ACEOF
9385if ac_fn_c_try_link "$LINENO"; then :
9386  gt_cv_func_CFLocaleCopyCurrent=yes
9387else
9388  gt_cv_func_CFLocaleCopyCurrent=no
9389fi
9390rm -f core conftest.err conftest.$ac_objext \
9391    conftest$ac_exeext conftest.$ac_ext
9392     LIBS="$gt_save_LIBS"
9393fi
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9395$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9396  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9397
9398$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
9399
9400  fi
9401  INTL_MACOSX_LIBS=
9402  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9403    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9404  fi
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417    case "$enable_silent_rules" in
9418    yes) INTL_DEFAULT_VERBOSITY=0;;
9419    no)  INTL_DEFAULT_VERBOSITY=1;;
9420    *)   INTL_DEFAULT_VERBOSITY=1;;
9421  esac
9422
9423
9424  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
9425if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
9426
9427else
9428
9429$as_echo "#define ptrdiff_t long" >>confdefs.h
9430
9431
9432fi
9433
9434  for ac_header in features.h stddef.h stdlib.h string.h
9435do :
9436  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9437ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9439  cat >>confdefs.h <<_ACEOF
9440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9441_ACEOF
9442
9443fi
9444
9445done
9446
9447  for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
9448    snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
9449do :
9450  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9451ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9452if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9453  cat >>confdefs.h <<_ACEOF
9454#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9455_ACEOF
9456
9457fi
9458done
9459
9460
9461      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
9462"
9463if test "x$ac_cv_have_decl__snprintf" = xyes; then :
9464  ac_have_decl=1
9465else
9466  ac_have_decl=0
9467fi
9468
9469cat >>confdefs.h <<_ACEOF
9470#define HAVE_DECL__SNPRINTF $ac_have_decl
9471_ACEOF
9472ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
9473"
9474if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
9475  ac_have_decl=1
9476else
9477  ac_have_decl=0
9478fi
9479
9480cat >>confdefs.h <<_ACEOF
9481#define HAVE_DECL__SNWPRINTF $ac_have_decl
9482_ACEOF
9483
9484
9485          ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
9486"
9487if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9488  ac_have_decl=1
9489else
9490  ac_have_decl=0
9491fi
9492
9493cat >>confdefs.h <<_ACEOF
9494#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9495_ACEOF
9496
9497
9498  case $gt_cv_func_printf_posix in
9499    *yes) HAVE_POSIX_PRINTF=1 ;;
9500    *) HAVE_POSIX_PRINTF=0 ;;
9501  esac
9502
9503  if test "$ac_cv_func_asprintf" = yes; then
9504    HAVE_ASPRINTF=1
9505  else
9506    HAVE_ASPRINTF=0
9507  fi
9508
9509  if test "$ac_cv_func_snprintf" = yes; then
9510    HAVE_SNPRINTF=1
9511  else
9512    HAVE_SNPRINTF=0
9513  fi
9514
9515  if test "$ac_cv_func_newlocale" = yes; then
9516    HAVE_NEWLOCALE=1
9517  else
9518    HAVE_NEWLOCALE=0
9519  fi
9520
9521  if test "$ac_cv_func_wprintf" = yes; then
9522    HAVE_WPRINTF=1
9523  else
9524    HAVE_WPRINTF=0
9525  fi
9526
9527
9528
9529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9530$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9531if ${am_cv_langinfo_codeset+:} false; then :
9532  $as_echo_n "(cached) " >&6
9533else
9534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h.  */
9536#include <langinfo.h>
9537int
9538main ()
9539{
9540char* cs = nl_langinfo(CODESET); return !cs;
9541  ;
9542  return 0;
9543}
9544_ACEOF
9545if ac_fn_c_try_link "$LINENO"; then :
9546  am_cv_langinfo_codeset=yes
9547else
9548  am_cv_langinfo_codeset=no
9549fi
9550rm -f core conftest.err conftest.$ac_objext \
9551    conftest$ac_exeext conftest.$ac_ext
9552
9553fi
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9555$as_echo "$am_cv_langinfo_codeset" >&6; }
9556  if test $am_cv_langinfo_codeset = yes; then
9557
9558$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9559
9560  fi
9561
9562
9563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9564$as_echo_n "checking for LC_MESSAGES... " >&6; }
9565if ${gt_cv_val_LC_MESSAGES+:} false; then :
9566  $as_echo_n "(cached) " >&6
9567else
9568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h.  */
9570#include <locale.h>
9571int
9572main ()
9573{
9574return LC_MESSAGES
9575  ;
9576  return 0;
9577}
9578_ACEOF
9579if ac_fn_c_try_link "$LINENO"; then :
9580  gt_cv_val_LC_MESSAGES=yes
9581else
9582  gt_cv_val_LC_MESSAGES=no
9583fi
9584rm -f core conftest.err conftest.$ac_objext \
9585    conftest$ac_exeext conftest.$ac_ext
9586fi
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
9588$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
9589  if test $gt_cv_val_LC_MESSAGES = yes; then
9590
9591$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9592
9593  fi
9594
9595
9596                if test "$enable_shared" = yes; then
9597    case "$host_os" in
9598      mingw* | cygwin*) is_woe32dll=yes ;;
9599      *) is_woe32dll=no ;;
9600    esac
9601  else
9602    is_woe32dll=no
9603  fi
9604  WOE32DLL=$is_woe32dll
9605
9606
9607      case "$host_os" in
9608    mingw* | cygwin*) is_woe32=yes ;;
9609    *) is_woe32=no ;;
9610  esac
9611  WOE32=$is_woe32
9612
9613  if test $WOE32 = yes; then
9614        if test -n "$ac_tool_prefix"; then
9615  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9616set dummy ${ac_tool_prefix}windres; ac_word=$2
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618$as_echo_n "checking for $ac_word... " >&6; }
9619if ${ac_cv_prog_WINDRES+:} false; then :
9620  $as_echo_n "(cached) " >&6
9621else
9622  if test -n "$WINDRES"; then
9623  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9624else
9625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628  IFS=$as_save_IFS
9629  test -z "$as_dir" && as_dir=.
9630    for ac_exec_ext in '' $ac_executable_extensions; do
9631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634    break 2
9635  fi
9636done
9637  done
9638IFS=$as_save_IFS
9639
9640fi
9641fi
9642WINDRES=$ac_cv_prog_WINDRES
9643if test -n "$WINDRES"; then
9644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9645$as_echo "$WINDRES" >&6; }
9646else
9647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648$as_echo "no" >&6; }
9649fi
9650
9651
9652fi
9653if test -z "$ac_cv_prog_WINDRES"; then
9654  ac_ct_WINDRES=$WINDRES
9655  # Extract the first word of "windres", so it can be a program name with args.
9656set dummy windres; ac_word=$2
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658$as_echo_n "checking for $ac_word... " >&6; }
9659if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
9660  $as_echo_n "(cached) " >&6
9661else
9662  if test -n "$ac_ct_WINDRES"; then
9663  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9664else
9665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666for as_dir in $PATH
9667do
9668  IFS=$as_save_IFS
9669  test -z "$as_dir" && as_dir=.
9670    for ac_exec_ext in '' $ac_executable_extensions; do
9671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9672    ac_cv_prog_ac_ct_WINDRES="windres"
9673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9674    break 2
9675  fi
9676done
9677  done
9678IFS=$as_save_IFS
9679
9680fi
9681fi
9682ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9683if test -n "$ac_ct_WINDRES"; then
9684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9685$as_echo "$ac_ct_WINDRES" >&6; }
9686else
9687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688$as_echo "no" >&6; }
9689fi
9690
9691  if test "x$ac_ct_WINDRES" = x; then
9692    WINDRES=""
9693  else
9694    case $cross_compiling:$ac_tool_warned in
9695yes:)
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9698ac_tool_warned=yes ;;
9699esac
9700    WINDRES=$ac_ct_WINDRES
9701  fi
9702else
9703  WINDRES="$ac_cv_prog_WINDRES"
9704fi
9705
9706  fi
9707
9708              case "$host_os" in
9709    hpux*) LTLIBC="" ;;
9710    *)     LTLIBC="-lc" ;;
9711  esac
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9740$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
9741if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
9742  $as_echo_n "(cached) " >&6
9743else
9744  gt_save_LIBS="$LIBS"
9745     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9746     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h.  */
9748#include <CoreFoundation/CFPreferences.h>
9749int
9750main ()
9751{
9752CFPreferencesCopyAppValue(NULL, NULL)
9753  ;
9754  return 0;
9755}
9756_ACEOF
9757if ac_fn_c_try_link "$LINENO"; then :
9758  gt_cv_func_CFPreferencesCopyAppValue=yes
9759else
9760  gt_cv_func_CFPreferencesCopyAppValue=no
9761fi
9762rm -f core conftest.err conftest.$ac_objext \
9763    conftest$ac_exeext conftest.$ac_ext
9764     LIBS="$gt_save_LIBS"
9765fi
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9767$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9768  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9769
9770$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9771
9772  fi
9773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
9774$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
9775if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
9776  $as_echo_n "(cached) " >&6
9777else
9778  gt_save_LIBS="$LIBS"
9779     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9780     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781/* end confdefs.h.  */
9782#include <CoreFoundation/CFLocale.h>
9783int
9784main ()
9785{
9786CFLocaleCopyCurrent();
9787  ;
9788  return 0;
9789}
9790_ACEOF
9791if ac_fn_c_try_link "$LINENO"; then :
9792  gt_cv_func_CFLocaleCopyCurrent=yes
9793else
9794  gt_cv_func_CFLocaleCopyCurrent=no
9795fi
9796rm -f core conftest.err conftest.$ac_objext \
9797    conftest$ac_exeext conftest.$ac_ext
9798     LIBS="$gt_save_LIBS"
9799fi
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9801$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9802  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9803
9804$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
9805
9806  fi
9807  INTL_MACOSX_LIBS=
9808  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9809    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9810  fi
9811
9812
9813
9814
9815
9816
9817    BUILD_INCLUDED_LIBINTL=no
9818    USE_INCLUDED_LIBINTL=no
9819
9820  LIBINTL=
9821  LTLIBINTL=
9822  POSUB=
9823
9824    case " $gt_needs " in
9825    *" need-formatstring-macros "*) gt_api_version=3 ;;
9826    *" need-ngettext "*) gt_api_version=2 ;;
9827    *) gt_api_version=1 ;;
9828  esac
9829  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9830  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9831
9832    if test "$USE_NLS" = "yes"; then
9833    gt_use_preinstalled_gnugettext=no
9834
9835      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9836$as_echo_n "checking whether included gettext is requested... " >&6; }
9837
9838# Check whether --with-included-gettext was given.
9839if test "${with_included_gettext+set}" = set; then :
9840  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9841else
9842  nls_cv_force_use_gnu_gettext=no
9843fi
9844
9845      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9846$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
9847
9848      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9849      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9850
9851
9852        if test $gt_api_version -ge 3; then
9853          gt_revision_test_code='
9854#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9855#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9856#endif
9857typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9858'
9859        else
9860          gt_revision_test_code=
9861        fi
9862        if test $gt_api_version -ge 2; then
9863          gt_expression_test_code=' + * ngettext ("", "", 0)'
9864        else
9865          gt_expression_test_code=
9866        fi
9867
9868        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9869$as_echo_n "checking for GNU gettext in libc... " >&6; }
9870if eval \${$gt_func_gnugettext_libc+:} false; then :
9871  $as_echo_n "(cached) " >&6
9872else
9873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h.  */
9875
9876#include <libintl.h>
9877#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9878extern int _nl_msg_cat_cntr;
9879extern int *_nl_domain_bindings;
9880#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9881#else
9882#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9883#endif
9884$gt_revision_test_code
9885
9886int
9887main ()
9888{
9889
9890bindtextdomain ("", "");
9891return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9892
9893  ;
9894  return 0;
9895}
9896_ACEOF
9897if ac_fn_c_try_link "$LINENO"; then :
9898  eval "$gt_func_gnugettext_libc=yes"
9899else
9900  eval "$gt_func_gnugettext_libc=no"
9901fi
9902rm -f core conftest.err conftest.$ac_objext \
9903    conftest$ac_exeext conftest.$ac_ext
9904fi
9905eval ac_res=\$$gt_func_gnugettext_libc
9906	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9907$as_echo "$ac_res" >&6; }
9908
9909        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9910
9911
9912
9913
9914
9915
9916
9917
9918    use_additional=yes
9919
9920  acl_save_prefix="$prefix"
9921  prefix="$acl_final_prefix"
9922  acl_save_exec_prefix="$exec_prefix"
9923  exec_prefix="$acl_final_exec_prefix"
9924
9925    eval additional_includedir=\"$includedir\"
9926    eval additional_libdir=\"$libdir\"
9927
9928  exec_prefix="$acl_save_exec_prefix"
9929  prefix="$acl_save_prefix"
9930
9931
9932# Check whether --with-libintl-prefix was given.
9933if test "${with_libintl_prefix+set}" = set; then :
9934  withval=$with_libintl_prefix;
9935    if test "X$withval" = "Xno"; then
9936      use_additional=no
9937    else
9938      if test "X$withval" = "X"; then
9939
9940  acl_save_prefix="$prefix"
9941  prefix="$acl_final_prefix"
9942  acl_save_exec_prefix="$exec_prefix"
9943  exec_prefix="$acl_final_exec_prefix"
9944
9945          eval additional_includedir=\"$includedir\"
9946          eval additional_libdir=\"$libdir\"
9947
9948  exec_prefix="$acl_save_exec_prefix"
9949  prefix="$acl_save_prefix"
9950
9951      else
9952        additional_includedir="$withval/include"
9953        additional_libdir="$withval/$acl_libdirstem"
9954        if test "$acl_libdirstem2" != "$acl_libdirstem" \
9955           && ! test -d "$withval/$acl_libdirstem"; then
9956          additional_libdir="$withval/$acl_libdirstem2"
9957        fi
9958      fi
9959    fi
9960
9961fi
9962
9963      LIBINTL=
9964  LTLIBINTL=
9965  INCINTL=
9966  LIBINTL_PREFIX=
9967      HAVE_LIBINTL=
9968  rpathdirs=
9969  ltrpathdirs=
9970  names_already_handled=
9971  names_next_round='intl '
9972  while test -n "$names_next_round"; do
9973    names_this_round="$names_next_round"
9974    names_next_round=
9975    for name in $names_this_round; do
9976      already_handled=
9977      for n in $names_already_handled; do
9978        if test "$n" = "$name"; then
9979          already_handled=yes
9980          break
9981        fi
9982      done
9983      if test -z "$already_handled"; then
9984        names_already_handled="$names_already_handled $name"
9985                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9986        eval value=\"\$HAVE_LIB$uppername\"
9987        if test -n "$value"; then
9988          if test "$value" = yes; then
9989            eval value=\"\$LIB$uppername\"
9990            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9991            eval value=\"\$LTLIB$uppername\"
9992            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9993          else
9994                                    :
9995          fi
9996        else
9997                              found_dir=
9998          found_la=
9999          found_so=
10000          found_a=
10001          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10002          if test -n "$acl_shlibext"; then
10003            shrext=".$acl_shlibext"             # typically: shrext=.so
10004          else
10005            shrext=
10006          fi
10007          if test $use_additional = yes; then
10008            dir="$additional_libdir"
10009                                    if test -n "$acl_shlibext"; then
10010              if test -f "$dir/$libname$shrext"; then
10011                found_dir="$dir"
10012                found_so="$dir/$libname$shrext"
10013              else
10014                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10015                  ver=`(cd "$dir" && \
10016                        for f in "$libname$shrext".*; do echo "$f"; done \
10017                        | sed -e "s,^$libname$shrext\\\\.,," \
10018                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10019                        | sed 1q ) 2>/dev/null`
10020                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10021                    found_dir="$dir"
10022                    found_so="$dir/$libname$shrext.$ver"
10023                  fi
10024                else
10025                  eval library_names=\"$acl_library_names_spec\"
10026                  for f in $library_names; do
10027                    if test -f "$dir/$f"; then
10028                      found_dir="$dir"
10029                      found_so="$dir/$f"
10030                      break
10031                    fi
10032                  done
10033                fi
10034              fi
10035            fi
10036                        if test "X$found_dir" = "X"; then
10037              if test -f "$dir/$libname.$acl_libext"; then
10038                found_dir="$dir"
10039                found_a="$dir/$libname.$acl_libext"
10040              fi
10041            fi
10042            if test "X$found_dir" != "X"; then
10043              if test -f "$dir/$libname.la"; then
10044                found_la="$dir/$libname.la"
10045              fi
10046            fi
10047          fi
10048          if test "X$found_dir" = "X"; then
10049            for x in $LDFLAGS $LTLIBINTL; do
10050
10051  acl_save_prefix="$prefix"
10052  prefix="$acl_final_prefix"
10053  acl_save_exec_prefix="$exec_prefix"
10054  exec_prefix="$acl_final_exec_prefix"
10055  eval x=\"$x\"
10056  exec_prefix="$acl_save_exec_prefix"
10057  prefix="$acl_save_prefix"
10058
10059              case "$x" in
10060                -L*)
10061                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10062                                    if test -n "$acl_shlibext"; then
10063                    if test -f "$dir/$libname$shrext"; then
10064                      found_dir="$dir"
10065                      found_so="$dir/$libname$shrext"
10066                    else
10067                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10068                        ver=`(cd "$dir" && \
10069                              for f in "$libname$shrext".*; do echo "$f"; done \
10070                              | sed -e "s,^$libname$shrext\\\\.,," \
10071                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10072                              | sed 1q ) 2>/dev/null`
10073                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10074                          found_dir="$dir"
10075                          found_so="$dir/$libname$shrext.$ver"
10076                        fi
10077                      else
10078                        eval library_names=\"$acl_library_names_spec\"
10079                        for f in $library_names; do
10080                          if test -f "$dir/$f"; then
10081                            found_dir="$dir"
10082                            found_so="$dir/$f"
10083                            break
10084                          fi
10085                        done
10086                      fi
10087                    fi
10088                  fi
10089                                    if test "X$found_dir" = "X"; then
10090                    if test -f "$dir/$libname.$acl_libext"; then
10091                      found_dir="$dir"
10092                      found_a="$dir/$libname.$acl_libext"
10093                    fi
10094                  fi
10095                  if test "X$found_dir" != "X"; then
10096                    if test -f "$dir/$libname.la"; then
10097                      found_la="$dir/$libname.la"
10098                    fi
10099                  fi
10100                  ;;
10101              esac
10102              if test "X$found_dir" != "X"; then
10103                break
10104              fi
10105            done
10106          fi
10107          if test "X$found_dir" != "X"; then
10108                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10109            if test "X$found_so" != "X"; then
10110                                                        if test "$enable_rpath" = no \
10111                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10112                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10113                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10114              else
10115                                                                                haveit=
10116                for x in $ltrpathdirs; do
10117                  if test "X$x" = "X$found_dir"; then
10118                    haveit=yes
10119                    break
10120                  fi
10121                done
10122                if test -z "$haveit"; then
10123                  ltrpathdirs="$ltrpathdirs $found_dir"
10124                fi
10125                                if test "$acl_hardcode_direct" = yes; then
10126                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10127                else
10128                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10129                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10130                                                            haveit=
10131                    for x in $rpathdirs; do
10132                      if test "X$x" = "X$found_dir"; then
10133                        haveit=yes
10134                        break
10135                      fi
10136                    done
10137                    if test -z "$haveit"; then
10138                      rpathdirs="$rpathdirs $found_dir"
10139                    fi
10140                  else
10141                                                                                haveit=
10142                    for x in $LDFLAGS $LIBINTL; do
10143
10144  acl_save_prefix="$prefix"
10145  prefix="$acl_final_prefix"
10146  acl_save_exec_prefix="$exec_prefix"
10147  exec_prefix="$acl_final_exec_prefix"
10148  eval x=\"$x\"
10149  exec_prefix="$acl_save_exec_prefix"
10150  prefix="$acl_save_prefix"
10151
10152                      if test "X$x" = "X-L$found_dir"; then
10153                        haveit=yes
10154                        break
10155                      fi
10156                    done
10157                    if test -z "$haveit"; then
10158                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10159                    fi
10160                    if test "$acl_hardcode_minus_L" != no; then
10161                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10162                    else
10163                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10164                    fi
10165                  fi
10166                fi
10167              fi
10168            else
10169              if test "X$found_a" != "X"; then
10170                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10171              else
10172                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10173              fi
10174            fi
10175                        additional_includedir=
10176            case "$found_dir" in
10177              */$acl_libdirstem | */$acl_libdirstem/)
10178                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10179                if test "$name" = 'intl'; then
10180                  LIBINTL_PREFIX="$basedir"
10181                fi
10182                additional_includedir="$basedir/include"
10183                ;;
10184              */$acl_libdirstem2 | */$acl_libdirstem2/)
10185                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10186                if test "$name" = 'intl'; then
10187                  LIBINTL_PREFIX="$basedir"
10188                fi
10189                additional_includedir="$basedir/include"
10190                ;;
10191            esac
10192            if test "X$additional_includedir" != "X"; then
10193                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10194                haveit=
10195                if test "X$additional_includedir" = "X/usr/local/include"; then
10196                  if test -n "$GCC"; then
10197                    case $host_os in
10198                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10199                    esac
10200                  fi
10201                fi
10202                if test -z "$haveit"; then
10203                  for x in $CPPFLAGS $INCINTL; do
10204
10205  acl_save_prefix="$prefix"
10206  prefix="$acl_final_prefix"
10207  acl_save_exec_prefix="$exec_prefix"
10208  exec_prefix="$acl_final_exec_prefix"
10209  eval x=\"$x\"
10210  exec_prefix="$acl_save_exec_prefix"
10211  prefix="$acl_save_prefix"
10212
10213                    if test "X$x" = "X-I$additional_includedir"; then
10214                      haveit=yes
10215                      break
10216                    fi
10217                  done
10218                  if test -z "$haveit"; then
10219                    if test -d "$additional_includedir"; then
10220                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10221                    fi
10222                  fi
10223                fi
10224              fi
10225            fi
10226                        if test -n "$found_la"; then
10227                                                        save_libdir="$libdir"
10228              case "$found_la" in
10229                */* | *\\*) . "$found_la" ;;
10230                *) . "./$found_la" ;;
10231              esac
10232              libdir="$save_libdir"
10233                            for dep in $dependency_libs; do
10234                case "$dep" in
10235                  -L*)
10236                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10237                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10238                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10239                      haveit=
10240                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10241                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10242                        if test -n "$GCC"; then
10243                          case $host_os in
10244                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10245                          esac
10246                        fi
10247                      fi
10248                      if test -z "$haveit"; then
10249                        haveit=
10250                        for x in $LDFLAGS $LIBINTL; do
10251
10252  acl_save_prefix="$prefix"
10253  prefix="$acl_final_prefix"
10254  acl_save_exec_prefix="$exec_prefix"
10255  exec_prefix="$acl_final_exec_prefix"
10256  eval x=\"$x\"
10257  exec_prefix="$acl_save_exec_prefix"
10258  prefix="$acl_save_prefix"
10259
10260                          if test "X$x" = "X-L$additional_libdir"; then
10261                            haveit=yes
10262                            break
10263                          fi
10264                        done
10265                        if test -z "$haveit"; then
10266                          if test -d "$additional_libdir"; then
10267                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10268                          fi
10269                        fi
10270                        haveit=
10271                        for x in $LDFLAGS $LTLIBINTL; do
10272
10273  acl_save_prefix="$prefix"
10274  prefix="$acl_final_prefix"
10275  acl_save_exec_prefix="$exec_prefix"
10276  exec_prefix="$acl_final_exec_prefix"
10277  eval x=\"$x\"
10278  exec_prefix="$acl_save_exec_prefix"
10279  prefix="$acl_save_prefix"
10280
10281                          if test "X$x" = "X-L$additional_libdir"; then
10282                            haveit=yes
10283                            break
10284                          fi
10285                        done
10286                        if test -z "$haveit"; then
10287                          if test -d "$additional_libdir"; then
10288                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10289                          fi
10290                        fi
10291                      fi
10292                    fi
10293                    ;;
10294                  -R*)
10295                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10296                    if test "$enable_rpath" != no; then
10297                                                                  haveit=
10298                      for x in $rpathdirs; do
10299                        if test "X$x" = "X$dir"; then
10300                          haveit=yes
10301                          break
10302                        fi
10303                      done
10304                      if test -z "$haveit"; then
10305                        rpathdirs="$rpathdirs $dir"
10306                      fi
10307                                                                  haveit=
10308                      for x in $ltrpathdirs; do
10309                        if test "X$x" = "X$dir"; then
10310                          haveit=yes
10311                          break
10312                        fi
10313                      done
10314                      if test -z "$haveit"; then
10315                        ltrpathdirs="$ltrpathdirs $dir"
10316                      fi
10317                    fi
10318                    ;;
10319                  -l*)
10320                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10321                    ;;
10322                  *.la)
10323                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10324                    ;;
10325                  *)
10326                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10327                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10328                    ;;
10329                esac
10330              done
10331            fi
10332          else
10333                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10334            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10335          fi
10336        fi
10337      fi
10338    done
10339  done
10340  if test "X$rpathdirs" != "X"; then
10341    if test -n "$acl_hardcode_libdir_separator"; then
10342                        alldirs=
10343      for found_dir in $rpathdirs; do
10344        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10345      done
10346            acl_save_libdir="$libdir"
10347      libdir="$alldirs"
10348      eval flag=\"$acl_hardcode_libdir_flag_spec\"
10349      libdir="$acl_save_libdir"
10350      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10351    else
10352            for found_dir in $rpathdirs; do
10353        acl_save_libdir="$libdir"
10354        libdir="$found_dir"
10355        eval flag=\"$acl_hardcode_libdir_flag_spec\"
10356        libdir="$acl_save_libdir"
10357        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10358      done
10359    fi
10360  fi
10361  if test "X$ltrpathdirs" != "X"; then
10362            for found_dir in $ltrpathdirs; do
10363      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10364    done
10365  fi
10366
10367
10368
10369
10370
10371
10372          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10373$as_echo_n "checking for GNU gettext in libintl... " >&6; }
10374if eval \${$gt_func_gnugettext_libintl+:} false; then :
10375  $as_echo_n "(cached) " >&6
10376else
10377  gt_save_CPPFLAGS="$CPPFLAGS"
10378            CPPFLAGS="$CPPFLAGS $INCINTL"
10379            gt_save_LIBS="$LIBS"
10380            LIBS="$LIBS $LIBINTL"
10381                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382/* end confdefs.h.  */
10383
10384#include <libintl.h>
10385#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10386extern int _nl_msg_cat_cntr;
10387extern
10388#ifdef __cplusplus
10389"C"
10390#endif
10391const char *_nl_expand_alias (const char *);
10392#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10393#else
10394#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10395#endif
10396$gt_revision_test_code
10397
10398int
10399main ()
10400{
10401
10402bindtextdomain ("", "");
10403return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10404
10405  ;
10406  return 0;
10407}
10408_ACEOF
10409if ac_fn_c_try_link "$LINENO"; then :
10410  eval "$gt_func_gnugettext_libintl=yes"
10411else
10412  eval "$gt_func_gnugettext_libintl=no"
10413fi
10414rm -f core conftest.err conftest.$ac_objext \
10415    conftest$ac_exeext conftest.$ac_ext
10416                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10417              LIBS="$LIBS $LIBICONV"
10418              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h.  */
10420
10421#include <libintl.h>
10422#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10423extern int _nl_msg_cat_cntr;
10424extern
10425#ifdef __cplusplus
10426"C"
10427#endif
10428const char *_nl_expand_alias (const char *);
10429#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10430#else
10431#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10432#endif
10433$gt_revision_test_code
10434
10435int
10436main ()
10437{
10438
10439bindtextdomain ("", "");
10440return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10441
10442  ;
10443  return 0;
10444}
10445_ACEOF
10446if ac_fn_c_try_link "$LINENO"; then :
10447  LIBINTL="$LIBINTL $LIBICONV"
10448                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10449                 eval "$gt_func_gnugettext_libintl=yes"
10450
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453    conftest$ac_exeext conftest.$ac_ext
10454            fi
10455            CPPFLAGS="$gt_save_CPPFLAGS"
10456            LIBS="$gt_save_LIBS"
10457fi
10458eval ac_res=\$$gt_func_gnugettext_libintl
10459	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10460$as_echo "$ac_res" >&6; }
10461        fi
10462
10463                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10464           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10465                && test "$PACKAGE" != gettext-runtime \
10466                && test "$PACKAGE" != gettext-tools; }; then
10467          gt_use_preinstalled_gnugettext=yes
10468        else
10469                    LIBINTL=
10470          LTLIBINTL=
10471          INCINTL=
10472        fi
10473
10474
10475        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10476                              nls_cv_use_gnu_gettext=yes
10477        fi
10478      fi
10479
10480      if test "$nls_cv_use_gnu_gettext" = "yes"; then
10481                BUILD_INCLUDED_LIBINTL=yes
10482        USE_INCLUDED_LIBINTL=yes
10483        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
10484        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
10485        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10486      fi
10487
10488      CATOBJEXT=
10489      if test "$gt_use_preinstalled_gnugettext" = "yes" \
10490         || test "$nls_cv_use_gnu_gettext" = "yes"; then
10491                CATOBJEXT=.gmo
10492      fi
10493
10494
10495    if test -n "$INTL_MACOSX_LIBS"; then
10496      if test "$gt_use_preinstalled_gnugettext" = "yes" \
10497         || test "$nls_cv_use_gnu_gettext" = "yes"; then
10498                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10499        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10500      fi
10501    fi
10502
10503    if test "$gt_use_preinstalled_gnugettext" = "yes" \
10504       || test "$nls_cv_use_gnu_gettext" = "yes"; then
10505
10506$as_echo "#define ENABLE_NLS 1" >>confdefs.h
10507
10508    else
10509      USE_NLS=no
10510    fi
10511  fi
10512
10513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10514$as_echo_n "checking whether to use NLS... " >&6; }
10515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10516$as_echo "$USE_NLS" >&6; }
10517  if test "$USE_NLS" = "yes"; then
10518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10519$as_echo_n "checking where the gettext function comes from... " >&6; }
10520    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10521      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10522        gt_source="external libintl"
10523      else
10524        gt_source="libc"
10525      fi
10526    else
10527      gt_source="included intl directory"
10528    fi
10529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10530$as_echo "$gt_source" >&6; }
10531  fi
10532
10533  if test "$USE_NLS" = "yes"; then
10534
10535    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10536      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10537        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10538$as_echo_n "checking how to link with libintl... " >&6; }
10539        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10540$as_echo "$LIBINTL" >&6; }
10541
10542  for element in $INCINTL; do
10543    haveit=
10544    for x in $CPPFLAGS; do
10545
10546  acl_save_prefix="$prefix"
10547  prefix="$acl_final_prefix"
10548  acl_save_exec_prefix="$exec_prefix"
10549  exec_prefix="$acl_final_exec_prefix"
10550  eval x=\"$x\"
10551  exec_prefix="$acl_save_exec_prefix"
10552  prefix="$acl_save_prefix"
10553
10554      if test "X$x" = "X$element"; then
10555        haveit=yes
10556        break
10557      fi
10558    done
10559    if test -z "$haveit"; then
10560      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10561    fi
10562  done
10563
10564      fi
10565
10566
10567$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
10568
10569
10570$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
10571
10572    fi
10573
10574        POSUB=po
10575  fi
10576
10577
10578            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10579      BUILD_INCLUDED_LIBINTL=yes
10580    fi
10581
10582
10583
10584
10585
10586        nls_cv_header_intl=
10587    nls_cv_header_libgt=
10588
10589        DATADIRNAME=share
10590
10591
10592        INSTOBJEXT=.mo
10593
10594
10595        GENCAT=gencat
10596
10597
10598        INTLOBJS=
10599    if test "$USE_INCLUDED_LIBINTL" = yes; then
10600      INTLOBJS="\$(GETTOBJS)"
10601    fi
10602
10603
10604        INTL_LIBTOOL_SUFFIX_PREFIX=
10605
10606
10607
10608    INTLLIBS="$LIBINTL"
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618case `pwd` in
10619  *\ * | *\	*)
10620    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10621$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10622esac
10623
10624
10625
10626macro_version='2.4.6'
10627macro_revision='2.4.6'
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641ltmain=$ac_aux_dir/ltmain.sh
10642
10643# Backslashify metacharacters that are still active within
10644# double-quoted strings.
10645sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10646
10647# Same as above, but do not quote variable references.
10648double_quote_subst='s/\(["`\\]\)/\\\1/g'
10649
10650# Sed substitution to delay expansion of an escaped shell variable in a
10651# double_quote_subst'ed string.
10652delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10653
10654# Sed substitution to delay expansion of an escaped single quote.
10655delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10656
10657# Sed substitution to avoid accidental globbing in evaled expressions
10658no_glob_subst='s/\*/\\\*/g'
10659
10660ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10661ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10662ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10663
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10665$as_echo_n "checking how to print strings... " >&6; }
10666# Test print first, because it will be a builtin if present.
10667if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10668   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10669  ECHO='print -r --'
10670elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10671  ECHO='printf %s\n'
10672else
10673  # Use this function as a fallback that always works.
10674  func_fallback_echo ()
10675  {
10676    eval 'cat <<_LTECHO_EOF
10677$1
10678_LTECHO_EOF'
10679  }
10680  ECHO='func_fallback_echo'
10681fi
10682
10683# func_echo_all arg...
10684# Invoke $ECHO with all args, space-separated.
10685func_echo_all ()
10686{
10687    $ECHO ""
10688}
10689
10690case $ECHO in
10691  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10692$as_echo "printf" >&6; } ;;
10693  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10694$as_echo "print -r" >&6; } ;;
10695  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10696$as_echo "cat" >&6; } ;;
10697esac
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10713$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10714if ${ac_cv_path_SED+:} false; then :
10715  $as_echo_n "(cached) " >&6
10716else
10717            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10718     for ac_i in 1 2 3 4 5 6 7; do
10719       ac_script="$ac_script$as_nl$ac_script"
10720     done
10721     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10722     { ac_script=; unset ac_script;}
10723     if test -z "$SED"; then
10724  ac_path_SED_found=false
10725  # Loop through the user's path and test for each of PROGNAME-LIST
10726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727for as_dir in $PATH
10728do
10729  IFS=$as_save_IFS
10730  test -z "$as_dir" && as_dir=.
10731    for ac_prog in sed gsed; do
10732    for ac_exec_ext in '' $ac_executable_extensions; do
10733      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10734      as_fn_executable_p "$ac_path_SED" || continue
10735# Check for GNU ac_path_SED and select it if it is found.
10736  # Check for GNU $ac_path_SED
10737case `"$ac_path_SED" --version 2>&1` in
10738*GNU*)
10739  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10740*)
10741  ac_count=0
10742  $as_echo_n 0123456789 >"conftest.in"
10743  while :
10744  do
10745    cat "conftest.in" "conftest.in" >"conftest.tmp"
10746    mv "conftest.tmp" "conftest.in"
10747    cp "conftest.in" "conftest.nl"
10748    $as_echo '' >> "conftest.nl"
10749    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10750    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10751    as_fn_arith $ac_count + 1 && ac_count=$as_val
10752    if test $ac_count -gt ${ac_path_SED_max-0}; then
10753      # Best one so far, save it but keep looking for a better one
10754      ac_cv_path_SED="$ac_path_SED"
10755      ac_path_SED_max=$ac_count
10756    fi
10757    # 10*(2^10) chars as input seems more than enough
10758    test $ac_count -gt 10 && break
10759  done
10760  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10761esac
10762
10763      $ac_path_SED_found && break 3
10764    done
10765  done
10766  done
10767IFS=$as_save_IFS
10768  if test -z "$ac_cv_path_SED"; then
10769    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10770  fi
10771else
10772  ac_cv_path_SED=$SED
10773fi
10774
10775fi
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10777$as_echo "$ac_cv_path_SED" >&6; }
10778 SED="$ac_cv_path_SED"
10779  rm -f conftest.sed
10780
10781test -z "$SED" && SED=sed
10782Xsed="$SED -e 1s/^X//"
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10795$as_echo_n "checking for fgrep... " >&6; }
10796if ${ac_cv_path_FGREP+:} false; then :
10797  $as_echo_n "(cached) " >&6
10798else
10799  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10800   then ac_cv_path_FGREP="$GREP -F"
10801   else
10802     if test -z "$FGREP"; then
10803  ac_path_FGREP_found=false
10804  # Loop through the user's path and test for each of PROGNAME-LIST
10805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10807do
10808  IFS=$as_save_IFS
10809  test -z "$as_dir" && as_dir=.
10810    for ac_prog in fgrep; do
10811    for ac_exec_ext in '' $ac_executable_extensions; do
10812      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10813      as_fn_executable_p "$ac_path_FGREP" || continue
10814# Check for GNU ac_path_FGREP and select it if it is found.
10815  # Check for GNU $ac_path_FGREP
10816case `"$ac_path_FGREP" --version 2>&1` in
10817*GNU*)
10818  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10819*)
10820  ac_count=0
10821  $as_echo_n 0123456789 >"conftest.in"
10822  while :
10823  do
10824    cat "conftest.in" "conftest.in" >"conftest.tmp"
10825    mv "conftest.tmp" "conftest.in"
10826    cp "conftest.in" "conftest.nl"
10827    $as_echo 'FGREP' >> "conftest.nl"
10828    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10829    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10830    as_fn_arith $ac_count + 1 && ac_count=$as_val
10831    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10832      # Best one so far, save it but keep looking for a better one
10833      ac_cv_path_FGREP="$ac_path_FGREP"
10834      ac_path_FGREP_max=$ac_count
10835    fi
10836    # 10*(2^10) chars as input seems more than enough
10837    test $ac_count -gt 10 && break
10838  done
10839  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10840esac
10841
10842      $ac_path_FGREP_found && break 3
10843    done
10844  done
10845  done
10846IFS=$as_save_IFS
10847  if test -z "$ac_cv_path_FGREP"; then
10848    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10849  fi
10850else
10851  ac_cv_path_FGREP=$FGREP
10852fi
10853
10854   fi
10855fi
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10857$as_echo "$ac_cv_path_FGREP" >&6; }
10858 FGREP="$ac_cv_path_FGREP"
10859
10860
10861test -z "$GREP" && GREP=grep
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881# Check whether --with-gnu-ld was given.
10882if test "${with_gnu_ld+set}" = set; then :
10883  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
10884else
10885  with_gnu_ld=no
10886fi
10887
10888ac_prog=ld
10889if test yes = "$GCC"; then
10890  # Check if gcc -print-prog-name=ld gives a path.
10891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10892$as_echo_n "checking for ld used by $CC... " >&6; }
10893  case $host in
10894  *-*-mingw*)
10895    # gcc leaves a trailing carriage return, which upsets mingw
10896    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10897  *)
10898    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10899  esac
10900  case $ac_prog in
10901    # Accept absolute paths.
10902    [\\/]* | ?:[\\/]*)
10903      re_direlt='/[^/][^/]*/\.\./'
10904      # Canonicalize the pathname of ld
10905      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10906      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10907	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10908      done
10909      test -z "$LD" && LD=$ac_prog
10910      ;;
10911  "")
10912    # If it fails, then pretend we aren't using GCC.
10913    ac_prog=ld
10914    ;;
10915  *)
10916    # If it is relative, then search for the first ld in PATH.
10917    with_gnu_ld=unknown
10918    ;;
10919  esac
10920elif test yes = "$with_gnu_ld"; then
10921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10922$as_echo_n "checking for GNU ld... " >&6; }
10923else
10924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10925$as_echo_n "checking for non-GNU ld... " >&6; }
10926fi
10927if ${lt_cv_path_LD+:} false; then :
10928  $as_echo_n "(cached) " >&6
10929else
10930  if test -z "$LD"; then
10931  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10932  for ac_dir in $PATH; do
10933    IFS=$lt_save_ifs
10934    test -z "$ac_dir" && ac_dir=.
10935    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10936      lt_cv_path_LD=$ac_dir/$ac_prog
10937      # Check to see if the program is GNU ld.  I'd rather use --version,
10938      # but apparently some variants of GNU ld only accept -v.
10939      # Break only if it was the GNU/non-GNU ld that we prefer.
10940      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10941      *GNU* | *'with BFD'*)
10942	test no != "$with_gnu_ld" && break
10943	;;
10944      *)
10945	test yes != "$with_gnu_ld" && break
10946	;;
10947      esac
10948    fi
10949  done
10950  IFS=$lt_save_ifs
10951else
10952  lt_cv_path_LD=$LD # Let the user override the test with a path.
10953fi
10954fi
10955
10956LD=$lt_cv_path_LD
10957if test -n "$LD"; then
10958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10959$as_echo "$LD" >&6; }
10960else
10961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962$as_echo "no" >&6; }
10963fi
10964test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10966$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10967if ${lt_cv_prog_gnu_ld+:} false; then :
10968  $as_echo_n "(cached) " >&6
10969else
10970  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10971case `$LD -v 2>&1 </dev/null` in
10972*GNU* | *'with BFD'*)
10973  lt_cv_prog_gnu_ld=yes
10974  ;;
10975*)
10976  lt_cv_prog_gnu_ld=no
10977  ;;
10978esac
10979fi
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10981$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10982with_gnu_ld=$lt_cv_prog_gnu_ld
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10993$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10994if ${lt_cv_path_NM+:} false; then :
10995  $as_echo_n "(cached) " >&6
10996else
10997  if test -n "$NM"; then
10998  # Let the user override the test.
10999  lt_cv_path_NM=$NM
11000else
11001  lt_nm_to_check=${ac_tool_prefix}nm
11002  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11003    lt_nm_to_check="$lt_nm_to_check nm"
11004  fi
11005  for lt_tmp_nm in $lt_nm_to_check; do
11006    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11007    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11008      IFS=$lt_save_ifs
11009      test -z "$ac_dir" && ac_dir=.
11010      tmp_nm=$ac_dir/$lt_tmp_nm
11011      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11012	# Check to see if the nm accepts a BSD-compat flag.
11013	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11014	#   nm: unknown option "B" ignored
11015	# Tru64's nm complains that /dev/null is an invalid object file
11016	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11017	case $build_os in
11018	mingw*) lt_bad_file=conftest.nm/nofile ;;
11019	*) lt_bad_file=/dev/null ;;
11020	esac
11021	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11022	*$lt_bad_file* | *'Invalid file or object type'*)
11023	  lt_cv_path_NM="$tmp_nm -B"
11024	  break 2
11025	  ;;
11026	*)
11027	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11028	  */dev/null*)
11029	    lt_cv_path_NM="$tmp_nm -p"
11030	    break 2
11031	    ;;
11032	  *)
11033	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11034	    continue # so that we can try to find one that supports BSD flags
11035	    ;;
11036	  esac
11037	  ;;
11038	esac
11039      fi
11040    done
11041    IFS=$lt_save_ifs
11042  done
11043  : ${lt_cv_path_NM=no}
11044fi
11045fi
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11047$as_echo "$lt_cv_path_NM" >&6; }
11048if test no != "$lt_cv_path_NM"; then
11049  NM=$lt_cv_path_NM
11050else
11051  # Didn't find any BSD compatible name lister, look for dumpbin.
11052  if test -n "$DUMPBIN"; then :
11053    # Let the user override the test.
11054  else
11055    if test -n "$ac_tool_prefix"; then
11056  for ac_prog in dumpbin "link -dump"
11057  do
11058    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061$as_echo_n "checking for $ac_word... " >&6; }
11062if ${ac_cv_prog_DUMPBIN+:} false; then :
11063  $as_echo_n "(cached) " >&6
11064else
11065  if test -n "$DUMPBIN"; then
11066  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11067else
11068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $PATH
11070do
11071  IFS=$as_save_IFS
11072  test -z "$as_dir" && as_dir=.
11073    for ac_exec_ext in '' $ac_executable_extensions; do
11074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11075    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077    break 2
11078  fi
11079done
11080  done
11081IFS=$as_save_IFS
11082
11083fi
11084fi
11085DUMPBIN=$ac_cv_prog_DUMPBIN
11086if test -n "$DUMPBIN"; then
11087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11088$as_echo "$DUMPBIN" >&6; }
11089else
11090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091$as_echo "no" >&6; }
11092fi
11093
11094
11095    test -n "$DUMPBIN" && break
11096  done
11097fi
11098if test -z "$DUMPBIN"; then
11099  ac_ct_DUMPBIN=$DUMPBIN
11100  for ac_prog in dumpbin "link -dump"
11101do
11102  # Extract the first word of "$ac_prog", so it can be a program name with args.
11103set dummy $ac_prog; ac_word=$2
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11105$as_echo_n "checking for $ac_word... " >&6; }
11106if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11107  $as_echo_n "(cached) " >&6
11108else
11109  if test -n "$ac_ct_DUMPBIN"; then
11110  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11111else
11112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113for as_dir in $PATH
11114do
11115  IFS=$as_save_IFS
11116  test -z "$as_dir" && as_dir=.
11117    for ac_exec_ext in '' $ac_executable_extensions; do
11118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11119    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121    break 2
11122  fi
11123done
11124  done
11125IFS=$as_save_IFS
11126
11127fi
11128fi
11129ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11130if test -n "$ac_ct_DUMPBIN"; then
11131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11132$as_echo "$ac_ct_DUMPBIN" >&6; }
11133else
11134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135$as_echo "no" >&6; }
11136fi
11137
11138
11139  test -n "$ac_ct_DUMPBIN" && break
11140done
11141
11142  if test "x$ac_ct_DUMPBIN" = x; then
11143    DUMPBIN=":"
11144  else
11145    case $cross_compiling:$ac_tool_warned in
11146yes:)
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11149ac_tool_warned=yes ;;
11150esac
11151    DUMPBIN=$ac_ct_DUMPBIN
11152  fi
11153fi
11154
11155    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11156    *COFF*)
11157      DUMPBIN="$DUMPBIN -symbols -headers"
11158      ;;
11159    *)
11160      DUMPBIN=:
11161      ;;
11162    esac
11163  fi
11164
11165  if test : != "$DUMPBIN"; then
11166    NM=$DUMPBIN
11167  fi
11168fi
11169test -z "$NM" && NM=nm
11170
11171
11172
11173
11174
11175
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11177$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11178if ${lt_cv_nm_interface+:} false; then :
11179  $as_echo_n "(cached) " >&6
11180else
11181  lt_cv_nm_interface="BSD nm"
11182  echo "int some_variable = 0;" > conftest.$ac_ext
11183  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11184  (eval "$ac_compile" 2>conftest.err)
11185  cat conftest.err >&5
11186  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11187  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11188  cat conftest.err >&5
11189  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11190  cat conftest.out >&5
11191  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11192    lt_cv_nm_interface="MS dumpbin"
11193  fi
11194  rm -f conftest*
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11197$as_echo "$lt_cv_nm_interface" >&6; }
11198
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11200$as_echo_n "checking whether ln -s works... " >&6; }
11201LN_S=$as_ln_s
11202if test "$LN_S" = "ln -s"; then
11203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11204$as_echo "yes" >&6; }
11205else
11206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11207$as_echo "no, using $LN_S" >&6; }
11208fi
11209
11210# find the maximum length of command line arguments
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11212$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11213if ${lt_cv_sys_max_cmd_len+:} false; then :
11214  $as_echo_n "(cached) " >&6
11215else
11216    i=0
11217  teststring=ABCD
11218
11219  case $build_os in
11220  msdosdjgpp*)
11221    # On DJGPP, this test can blow up pretty badly due to problems in libc
11222    # (any single argument exceeding 2000 bytes causes a buffer overrun
11223    # during glob expansion).  Even if it were fixed, the result of this
11224    # check would be larger than it should be.
11225    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11226    ;;
11227
11228  gnu*)
11229    # Under GNU Hurd, this test is not required because there is
11230    # no limit to the length of command line arguments.
11231    # Libtool will interpret -1 as no limit whatsoever
11232    lt_cv_sys_max_cmd_len=-1;
11233    ;;
11234
11235  cygwin* | mingw* | cegcc*)
11236    # On Win9x/ME, this test blows up -- it succeeds, but takes
11237    # about 5 minutes as the teststring grows exponentially.
11238    # Worse, since 9x/ME are not pre-emptively multitasking,
11239    # you end up with a "frozen" computer, even though with patience
11240    # the test eventually succeeds (with a max line length of 256k).
11241    # Instead, let's just punt: use the minimum linelength reported by
11242    # all of the supported platforms: 8192 (on NT/2K/XP).
11243    lt_cv_sys_max_cmd_len=8192;
11244    ;;
11245
11246  mint*)
11247    # On MiNT this can take a long time and run out of memory.
11248    lt_cv_sys_max_cmd_len=8192;
11249    ;;
11250
11251  amigaos*)
11252    # On AmigaOS with pdksh, this test takes hours, literally.
11253    # So we just punt and use a minimum line length of 8192.
11254    lt_cv_sys_max_cmd_len=8192;
11255    ;;
11256
11257  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11258    # This has been around since 386BSD, at least.  Likely further.
11259    if test -x /sbin/sysctl; then
11260      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11261    elif test -x /usr/sbin/sysctl; then
11262      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11263    else
11264      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11265    fi
11266    # And add a safety zone
11267    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11268    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11269    ;;
11270
11271  interix*)
11272    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11273    lt_cv_sys_max_cmd_len=196608
11274    ;;
11275
11276  os2*)
11277    # The test takes a long time on OS/2.
11278    lt_cv_sys_max_cmd_len=8192
11279    ;;
11280
11281  osf*)
11282    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11283    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11284    # nice to cause kernel panics so lets avoid the loop below.
11285    # First set a reasonable default.
11286    lt_cv_sys_max_cmd_len=16384
11287    #
11288    if test -x /sbin/sysconfig; then
11289      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11290        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11291      esac
11292    fi
11293    ;;
11294  sco3.2v5*)
11295    lt_cv_sys_max_cmd_len=102400
11296    ;;
11297  sysv5* | sco5v6* | sysv4.2uw2*)
11298    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11299    if test -n "$kargmax"; then
11300      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11301    else
11302      lt_cv_sys_max_cmd_len=32768
11303    fi
11304    ;;
11305  *)
11306    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11307    if test -n "$lt_cv_sys_max_cmd_len" && \
11308       test undefined != "$lt_cv_sys_max_cmd_len"; then
11309      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11310      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11311    else
11312      # Make teststring a little bigger before we do anything with it.
11313      # a 1K string should be a reasonable start.
11314      for i in 1 2 3 4 5 6 7 8; do
11315        teststring=$teststring$teststring
11316      done
11317      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11318      # If test is not a shell built-in, we'll probably end up computing a
11319      # maximum length that is only half of the actual maximum length, but
11320      # we can't tell.
11321      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11322	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11323	      test 17 != "$i" # 1/2 MB should be enough
11324      do
11325        i=`expr $i + 1`
11326        teststring=$teststring$teststring
11327      done
11328      # Only check the string length outside the loop.
11329      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11330      teststring=
11331      # Add a significant safety factor because C++ compilers can tack on
11332      # massive amounts of additional arguments before passing them to the
11333      # linker.  It appears as though 1/2 is a usable value.
11334      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11335    fi
11336    ;;
11337  esac
11338
11339fi
11340
11341if test -n "$lt_cv_sys_max_cmd_len"; then
11342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11343$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11344else
11345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11346$as_echo "none" >&6; }
11347fi
11348max_cmd_len=$lt_cv_sys_max_cmd_len
11349
11350
11351
11352
11353
11354
11355: ${CP="cp -f"}
11356: ${MV="mv -f"}
11357: ${RM="rm -f"}
11358
11359if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11360  lt_unset=unset
11361else
11362  lt_unset=false
11363fi
11364
11365
11366
11367
11368
11369# test EBCDIC or ASCII
11370case `echo X|tr X '\101'` in
11371 A) # ASCII based system
11372    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11373  lt_SP2NL='tr \040 \012'
11374  lt_NL2SP='tr \015\012 \040\040'
11375  ;;
11376 *) # EBCDIC based system
11377  lt_SP2NL='tr \100 \n'
11378  lt_NL2SP='tr \r\n \100\100'
11379  ;;
11380esac
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11391$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11392if ${lt_cv_to_host_file_cmd+:} false; then :
11393  $as_echo_n "(cached) " >&6
11394else
11395  case $host in
11396  *-*-mingw* )
11397    case $build in
11398      *-*-mingw* ) # actually msys
11399        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11400        ;;
11401      *-*-cygwin* )
11402        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11403        ;;
11404      * ) # otherwise, assume *nix
11405        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11406        ;;
11407    esac
11408    ;;
11409  *-*-cygwin* )
11410    case $build in
11411      *-*-mingw* ) # actually msys
11412        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11413        ;;
11414      *-*-cygwin* )
11415        lt_cv_to_host_file_cmd=func_convert_file_noop
11416        ;;
11417      * ) # otherwise, assume *nix
11418        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11419        ;;
11420    esac
11421    ;;
11422  * ) # unhandled hosts (and "normal" native builds)
11423    lt_cv_to_host_file_cmd=func_convert_file_noop
11424    ;;
11425esac
11426
11427fi
11428
11429to_host_file_cmd=$lt_cv_to_host_file_cmd
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11431$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11432
11433
11434
11435
11436
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11438$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11439if ${lt_cv_to_tool_file_cmd+:} false; then :
11440  $as_echo_n "(cached) " >&6
11441else
11442  #assume ordinary cross tools, or native build.
11443lt_cv_to_tool_file_cmd=func_convert_file_noop
11444case $host in
11445  *-*-mingw* )
11446    case $build in
11447      *-*-mingw* ) # actually msys
11448        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11449        ;;
11450    esac
11451    ;;
11452esac
11453
11454fi
11455
11456to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11458$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11459
11460
11461
11462
11463
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11465$as_echo_n "checking for $LD option to reload object files... " >&6; }
11466if ${lt_cv_ld_reload_flag+:} false; then :
11467  $as_echo_n "(cached) " >&6
11468else
11469  lt_cv_ld_reload_flag='-r'
11470fi
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11472$as_echo "$lt_cv_ld_reload_flag" >&6; }
11473reload_flag=$lt_cv_ld_reload_flag
11474case $reload_flag in
11475"" | " "*) ;;
11476*) reload_flag=" $reload_flag" ;;
11477esac
11478reload_cmds='$LD$reload_flag -o $output$reload_objs'
11479case $host_os in
11480  cygwin* | mingw* | pw32* | cegcc*)
11481    if test yes != "$GCC"; then
11482      reload_cmds=false
11483    fi
11484    ;;
11485  darwin*)
11486    if test yes = "$GCC"; then
11487      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11488    else
11489      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11490    fi
11491    ;;
11492esac
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502if test -n "$ac_tool_prefix"; then
11503  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11504set dummy ${ac_tool_prefix}objdump; ac_word=$2
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506$as_echo_n "checking for $ac_word... " >&6; }
11507if ${ac_cv_prog_OBJDUMP+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  if test -n "$OBJDUMP"; then
11511  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11512else
11513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514for as_dir in $PATH
11515do
11516  IFS=$as_save_IFS
11517  test -z "$as_dir" && as_dir=.
11518    for ac_exec_ext in '' $ac_executable_extensions; do
11519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522    break 2
11523  fi
11524done
11525  done
11526IFS=$as_save_IFS
11527
11528fi
11529fi
11530OBJDUMP=$ac_cv_prog_OBJDUMP
11531if test -n "$OBJDUMP"; then
11532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11533$as_echo "$OBJDUMP" >&6; }
11534else
11535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536$as_echo "no" >&6; }
11537fi
11538
11539
11540fi
11541if test -z "$ac_cv_prog_OBJDUMP"; then
11542  ac_ct_OBJDUMP=$OBJDUMP
11543  # Extract the first word of "objdump", so it can be a program name with args.
11544set dummy objdump; ac_word=$2
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546$as_echo_n "checking for $ac_word... " >&6; }
11547if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11548  $as_echo_n "(cached) " >&6
11549else
11550  if test -n "$ac_ct_OBJDUMP"; then
11551  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11552else
11553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554for as_dir in $PATH
11555do
11556  IFS=$as_save_IFS
11557  test -z "$as_dir" && as_dir=.
11558    for ac_exec_ext in '' $ac_executable_extensions; do
11559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562    break 2
11563  fi
11564done
11565  done
11566IFS=$as_save_IFS
11567
11568fi
11569fi
11570ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11571if test -n "$ac_ct_OBJDUMP"; then
11572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11573$as_echo "$ac_ct_OBJDUMP" >&6; }
11574else
11575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576$as_echo "no" >&6; }
11577fi
11578
11579  if test "x$ac_ct_OBJDUMP" = x; then
11580    OBJDUMP="false"
11581  else
11582    case $cross_compiling:$ac_tool_warned in
11583yes:)
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11586ac_tool_warned=yes ;;
11587esac
11588    OBJDUMP=$ac_ct_OBJDUMP
11589  fi
11590else
11591  OBJDUMP="$ac_cv_prog_OBJDUMP"
11592fi
11593
11594test -z "$OBJDUMP" && OBJDUMP=objdump
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11605$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11606if ${lt_cv_deplibs_check_method+:} false; then :
11607  $as_echo_n "(cached) " >&6
11608else
11609  lt_cv_file_magic_cmd='$MAGIC_CMD'
11610lt_cv_file_magic_test_file=
11611lt_cv_deplibs_check_method='unknown'
11612# Need to set the preceding variable on all platforms that support
11613# interlibrary dependencies.
11614# 'none' -- dependencies not supported.
11615# 'unknown' -- same as none, but documents that we really don't know.
11616# 'pass_all' -- all dependencies passed with no checks.
11617# 'test_compile' -- check by making test program.
11618# 'file_magic [[regex]]' -- check by looking for files in library path
11619# that responds to the $file_magic_cmd with a given extended regex.
11620# If you have 'file' or equivalent on your system and you're not sure
11621# whether 'pass_all' will *always* work, you probably want this one.
11622
11623case $host_os in
11624aix[4-9]*)
11625  lt_cv_deplibs_check_method=pass_all
11626  ;;
11627
11628beos*)
11629  lt_cv_deplibs_check_method=pass_all
11630  ;;
11631
11632bsdi[45]*)
11633  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11634  lt_cv_file_magic_cmd='/usr/bin/file -L'
11635  lt_cv_file_magic_test_file=/shlib/libc.so
11636  ;;
11637
11638cygwin*)
11639  # func_win32_libid is a shell function defined in ltmain.sh
11640  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11641  lt_cv_file_magic_cmd='func_win32_libid'
11642  ;;
11643
11644mingw* | pw32*)
11645  # Base MSYS/MinGW do not provide the 'file' command needed by
11646  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11647  # unless we find 'file', for example because we are cross-compiling.
11648  if ( file / ) >/dev/null 2>&1; then
11649    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11650    lt_cv_file_magic_cmd='func_win32_libid'
11651  else
11652    # Keep this pattern in sync with the one in func_win32_libid.
11653    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11654    lt_cv_file_magic_cmd='$OBJDUMP -f'
11655  fi
11656  ;;
11657
11658cegcc*)
11659  # use the weaker test based on 'objdump'. See mingw*.
11660  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11661  lt_cv_file_magic_cmd='$OBJDUMP -f'
11662  ;;
11663
11664darwin* | rhapsody*)
11665  lt_cv_deplibs_check_method=pass_all
11666  ;;
11667
11668freebsd* | dragonfly*)
11669  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11670    case $host_cpu in
11671    i*86 )
11672      # Not sure whether the presence of OpenBSD here was a mistake.
11673      # Let's accept both of them until this is cleared up.
11674      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11675      lt_cv_file_magic_cmd=/usr/bin/file
11676      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11677      ;;
11678    esac
11679  else
11680    lt_cv_deplibs_check_method=pass_all
11681  fi
11682  ;;
11683
11684haiku*)
11685  lt_cv_deplibs_check_method=pass_all
11686  ;;
11687
11688hpux10.20* | hpux11*)
11689  lt_cv_file_magic_cmd=/usr/bin/file
11690  case $host_cpu in
11691  ia64*)
11692    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11693    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11694    ;;
11695  hppa*64*)
11696    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]'
11697    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11698    ;;
11699  *)
11700    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11701    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11702    ;;
11703  esac
11704  ;;
11705
11706interix[3-9]*)
11707  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11708  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11709  ;;
11710
11711irix5* | irix6* | nonstopux*)
11712  case $LD in
11713  *-32|*"-32 ") libmagic=32-bit;;
11714  *-n32|*"-n32 ") libmagic=N32;;
11715  *-64|*"-64 ") libmagic=64-bit;;
11716  *) libmagic=never-match;;
11717  esac
11718  lt_cv_deplibs_check_method=pass_all
11719  ;;
11720
11721# This must be glibc/ELF.
11722linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11723  lt_cv_deplibs_check_method=pass_all
11724  ;;
11725
11726netbsd* | netbsdelf*-gnu)
11727  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11728    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11729  else
11730    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11731  fi
11732  ;;
11733
11734newos6*)
11735  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11736  lt_cv_file_magic_cmd=/usr/bin/file
11737  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11738  ;;
11739
11740*nto* | *qnx*)
11741  lt_cv_deplibs_check_method=pass_all
11742  ;;
11743
11744openbsd* | bitrig*)
11745  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11746    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11747  else
11748    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11749  fi
11750  ;;
11751
11752osf3* | osf4* | osf5*)
11753  lt_cv_deplibs_check_method=pass_all
11754  ;;
11755
11756rdos*)
11757  lt_cv_deplibs_check_method=pass_all
11758  ;;
11759
11760solaris*)
11761  lt_cv_deplibs_check_method=pass_all
11762  ;;
11763
11764sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11765  lt_cv_deplibs_check_method=pass_all
11766  ;;
11767
11768sysv4 | sysv4.3*)
11769  case $host_vendor in
11770  motorola)
11771    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]'
11772    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11773    ;;
11774  ncr)
11775    lt_cv_deplibs_check_method=pass_all
11776    ;;
11777  sequent)
11778    lt_cv_file_magic_cmd='/bin/file'
11779    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11780    ;;
11781  sni)
11782    lt_cv_file_magic_cmd='/bin/file'
11783    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11784    lt_cv_file_magic_test_file=/lib/libc.so
11785    ;;
11786  siemens)
11787    lt_cv_deplibs_check_method=pass_all
11788    ;;
11789  pc)
11790    lt_cv_deplibs_check_method=pass_all
11791    ;;
11792  esac
11793  ;;
11794
11795tpf*)
11796  lt_cv_deplibs_check_method=pass_all
11797  ;;
11798os2*)
11799  lt_cv_deplibs_check_method=pass_all
11800  ;;
11801esac
11802
11803fi
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11805$as_echo "$lt_cv_deplibs_check_method" >&6; }
11806
11807file_magic_glob=
11808want_nocaseglob=no
11809if test "$build" = "$host"; then
11810  case $host_os in
11811  mingw* | pw32*)
11812    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11813      want_nocaseglob=yes
11814    else
11815      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11816    fi
11817    ;;
11818  esac
11819fi
11820
11821file_magic_cmd=$lt_cv_file_magic_cmd
11822deplibs_check_method=$lt_cv_deplibs_check_method
11823test -z "$deplibs_check_method" && deplibs_check_method=unknown
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846if test -n "$ac_tool_prefix"; then
11847  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11848set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850$as_echo_n "checking for $ac_word... " >&6; }
11851if ${ac_cv_prog_DLLTOOL+:} false; then :
11852  $as_echo_n "(cached) " >&6
11853else
11854  if test -n "$DLLTOOL"; then
11855  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11856else
11857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858for as_dir in $PATH
11859do
11860  IFS=$as_save_IFS
11861  test -z "$as_dir" && as_dir=.
11862    for ac_exec_ext in '' $ac_executable_extensions; do
11863  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11864    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11865    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866    break 2
11867  fi
11868done
11869  done
11870IFS=$as_save_IFS
11871
11872fi
11873fi
11874DLLTOOL=$ac_cv_prog_DLLTOOL
11875if test -n "$DLLTOOL"; then
11876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11877$as_echo "$DLLTOOL" >&6; }
11878else
11879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880$as_echo "no" >&6; }
11881fi
11882
11883
11884fi
11885if test -z "$ac_cv_prog_DLLTOOL"; then
11886  ac_ct_DLLTOOL=$DLLTOOL
11887  # Extract the first word of "dlltool", so it can be a program name with args.
11888set dummy dlltool; ac_word=$2
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890$as_echo_n "checking for $ac_word... " >&6; }
11891if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11892  $as_echo_n "(cached) " >&6
11893else
11894  if test -n "$ac_ct_DLLTOOL"; then
11895  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11896else
11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $PATH
11899do
11900  IFS=$as_save_IFS
11901  test -z "$as_dir" && as_dir=.
11902    for ac_exec_ext in '' $ac_executable_extensions; do
11903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906    break 2
11907  fi
11908done
11909  done
11910IFS=$as_save_IFS
11911
11912fi
11913fi
11914ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11915if test -n "$ac_ct_DLLTOOL"; then
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11917$as_echo "$ac_ct_DLLTOOL" >&6; }
11918else
11919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
11921fi
11922
11923  if test "x$ac_ct_DLLTOOL" = x; then
11924    DLLTOOL="false"
11925  else
11926    case $cross_compiling:$ac_tool_warned in
11927yes:)
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11930ac_tool_warned=yes ;;
11931esac
11932    DLLTOOL=$ac_ct_DLLTOOL
11933  fi
11934else
11935  DLLTOOL="$ac_cv_prog_DLLTOOL"
11936fi
11937
11938test -z "$DLLTOOL" && DLLTOOL=dlltool
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11950$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11951if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11952  $as_echo_n "(cached) " >&6
11953else
11954  lt_cv_sharedlib_from_linklib_cmd='unknown'
11955
11956case $host_os in
11957cygwin* | mingw* | pw32* | cegcc*)
11958  # two different shell functions defined in ltmain.sh;
11959  # decide which one to use based on capabilities of $DLLTOOL
11960  case `$DLLTOOL --help 2>&1` in
11961  *--identify-strict*)
11962    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11963    ;;
11964  *)
11965    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11966    ;;
11967  esac
11968  ;;
11969*)
11970  # fallback: assume linklib IS sharedlib
11971  lt_cv_sharedlib_from_linklib_cmd=$ECHO
11972  ;;
11973esac
11974
11975fi
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11977$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11978sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11979test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11980
11981
11982
11983
11984
11985
11986
11987if test -n "$ac_tool_prefix"; then
11988  for ac_prog in ar
11989  do
11990    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11991set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993$as_echo_n "checking for $ac_word... " >&6; }
11994if ${ac_cv_prog_AR+:} false; then :
11995  $as_echo_n "(cached) " >&6
11996else
11997  if test -n "$AR"; then
11998  ac_cv_prog_AR="$AR" # Let the user override the test.
11999else
12000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001for as_dir in $PATH
12002do
12003  IFS=$as_save_IFS
12004  test -z "$as_dir" && as_dir=.
12005    for ac_exec_ext in '' $ac_executable_extensions; do
12006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009    break 2
12010  fi
12011done
12012  done
12013IFS=$as_save_IFS
12014
12015fi
12016fi
12017AR=$ac_cv_prog_AR
12018if test -n "$AR"; then
12019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12020$as_echo "$AR" >&6; }
12021else
12022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023$as_echo "no" >&6; }
12024fi
12025
12026
12027    test -n "$AR" && break
12028  done
12029fi
12030if test -z "$AR"; then
12031  ac_ct_AR=$AR
12032  for ac_prog in ar
12033do
12034  # Extract the first word of "$ac_prog", so it can be a program name with args.
12035set dummy $ac_prog; ac_word=$2
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037$as_echo_n "checking for $ac_word... " >&6; }
12038if ${ac_cv_prog_ac_ct_AR+:} false; then :
12039  $as_echo_n "(cached) " >&6
12040else
12041  if test -n "$ac_ct_AR"; then
12042  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12043else
12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047  IFS=$as_save_IFS
12048  test -z "$as_dir" && as_dir=.
12049    for ac_exec_ext in '' $ac_executable_extensions; do
12050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051    ac_cv_prog_ac_ct_AR="$ac_prog"
12052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053    break 2
12054  fi
12055done
12056  done
12057IFS=$as_save_IFS
12058
12059fi
12060fi
12061ac_ct_AR=$ac_cv_prog_ac_ct_AR
12062if test -n "$ac_ct_AR"; then
12063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12064$as_echo "$ac_ct_AR" >&6; }
12065else
12066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
12068fi
12069
12070
12071  test -n "$ac_ct_AR" && break
12072done
12073
12074  if test "x$ac_ct_AR" = x; then
12075    AR="false"
12076  else
12077    case $cross_compiling:$ac_tool_warned in
12078yes:)
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12081ac_tool_warned=yes ;;
12082esac
12083    AR=$ac_ct_AR
12084  fi
12085fi
12086
12087: ${AR=ar}
12088: ${AR_FLAGS=cru}
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12101$as_echo_n "checking for archiver @FILE support... " >&6; }
12102if ${lt_cv_ar_at_file+:} false; then :
12103  $as_echo_n "(cached) " >&6
12104else
12105  lt_cv_ar_at_file=no
12106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107/* end confdefs.h.  */
12108
12109int
12110main ()
12111{
12112
12113  ;
12114  return 0;
12115}
12116_ACEOF
12117if ac_fn_c_try_compile "$LINENO"; then :
12118  echo conftest.$ac_objext > conftest.lst
12119      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12120      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12121  (eval $lt_ar_try) 2>&5
12122  ac_status=$?
12123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12124  test $ac_status = 0; }
12125      if test 0 -eq "$ac_status"; then
12126	# Ensure the archiver fails upon bogus file names.
12127	rm -f conftest.$ac_objext libconftest.a
12128	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12129  (eval $lt_ar_try) 2>&5
12130  ac_status=$?
12131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12132  test $ac_status = 0; }
12133	if test 0 -ne "$ac_status"; then
12134          lt_cv_ar_at_file=@
12135        fi
12136      fi
12137      rm -f conftest.* libconftest.a
12138
12139fi
12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141
12142fi
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12144$as_echo "$lt_cv_ar_at_file" >&6; }
12145
12146if test no = "$lt_cv_ar_at_file"; then
12147  archiver_list_spec=
12148else
12149  archiver_list_spec=$lt_cv_ar_at_file
12150fi
12151
12152
12153
12154
12155
12156
12157
12158if test -n "$ac_tool_prefix"; then
12159  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12160set dummy ${ac_tool_prefix}strip; ac_word=$2
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162$as_echo_n "checking for $ac_word... " >&6; }
12163if ${ac_cv_prog_STRIP+:} false; then :
12164  $as_echo_n "(cached) " >&6
12165else
12166  if test -n "$STRIP"; then
12167  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12168else
12169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170for as_dir in $PATH
12171do
12172  IFS=$as_save_IFS
12173  test -z "$as_dir" && as_dir=.
12174    for ac_exec_ext in '' $ac_executable_extensions; do
12175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12176    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178    break 2
12179  fi
12180done
12181  done
12182IFS=$as_save_IFS
12183
12184fi
12185fi
12186STRIP=$ac_cv_prog_STRIP
12187if test -n "$STRIP"; then
12188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12189$as_echo "$STRIP" >&6; }
12190else
12191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
12193fi
12194
12195
12196fi
12197if test -z "$ac_cv_prog_STRIP"; then
12198  ac_ct_STRIP=$STRIP
12199  # Extract the first word of "strip", so it can be a program name with args.
12200set dummy strip; ac_word=$2
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12202$as_echo_n "checking for $ac_word... " >&6; }
12203if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12204  $as_echo_n "(cached) " >&6
12205else
12206  if test -n "$ac_ct_STRIP"; then
12207  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12208else
12209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210for as_dir in $PATH
12211do
12212  IFS=$as_save_IFS
12213  test -z "$as_dir" && as_dir=.
12214    for ac_exec_ext in '' $ac_executable_extensions; do
12215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216    ac_cv_prog_ac_ct_STRIP="strip"
12217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218    break 2
12219  fi
12220done
12221  done
12222IFS=$as_save_IFS
12223
12224fi
12225fi
12226ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12227if test -n "$ac_ct_STRIP"; then
12228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12229$as_echo "$ac_ct_STRIP" >&6; }
12230else
12231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232$as_echo "no" >&6; }
12233fi
12234
12235  if test "x$ac_ct_STRIP" = x; then
12236    STRIP=":"
12237  else
12238    case $cross_compiling:$ac_tool_warned in
12239yes:)
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12242ac_tool_warned=yes ;;
12243esac
12244    STRIP=$ac_ct_STRIP
12245  fi
12246else
12247  STRIP="$ac_cv_prog_STRIP"
12248fi
12249
12250test -z "$STRIP" && STRIP=:
12251
12252
12253
12254
12255
12256
12257if test -n "$ac_tool_prefix"; then
12258  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12259set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12261$as_echo_n "checking for $ac_word... " >&6; }
12262if ${ac_cv_prog_RANLIB+:} false; then :
12263  $as_echo_n "(cached) " >&6
12264else
12265  if test -n "$RANLIB"; then
12266  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12267else
12268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269for as_dir in $PATH
12270do
12271  IFS=$as_save_IFS
12272  test -z "$as_dir" && as_dir=.
12273    for ac_exec_ext in '' $ac_executable_extensions; do
12274  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12275    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277    break 2
12278  fi
12279done
12280  done
12281IFS=$as_save_IFS
12282
12283fi
12284fi
12285RANLIB=$ac_cv_prog_RANLIB
12286if test -n "$RANLIB"; then
12287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12288$as_echo "$RANLIB" >&6; }
12289else
12290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291$as_echo "no" >&6; }
12292fi
12293
12294
12295fi
12296if test -z "$ac_cv_prog_RANLIB"; then
12297  ac_ct_RANLIB=$RANLIB
12298  # Extract the first word of "ranlib", so it can be a program name with args.
12299set dummy ranlib; ac_word=$2
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12301$as_echo_n "checking for $ac_word... " >&6; }
12302if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12303  $as_echo_n "(cached) " >&6
12304else
12305  if test -n "$ac_ct_RANLIB"; then
12306  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12307else
12308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309for as_dir in $PATH
12310do
12311  IFS=$as_save_IFS
12312  test -z "$as_dir" && as_dir=.
12313    for ac_exec_ext in '' $ac_executable_extensions; do
12314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12315    ac_cv_prog_ac_ct_RANLIB="ranlib"
12316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12317    break 2
12318  fi
12319done
12320  done
12321IFS=$as_save_IFS
12322
12323fi
12324fi
12325ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12326if test -n "$ac_ct_RANLIB"; then
12327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12328$as_echo "$ac_ct_RANLIB" >&6; }
12329else
12330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331$as_echo "no" >&6; }
12332fi
12333
12334  if test "x$ac_ct_RANLIB" = x; then
12335    RANLIB=":"
12336  else
12337    case $cross_compiling:$ac_tool_warned in
12338yes:)
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12341ac_tool_warned=yes ;;
12342esac
12343    RANLIB=$ac_ct_RANLIB
12344  fi
12345else
12346  RANLIB="$ac_cv_prog_RANLIB"
12347fi
12348
12349test -z "$RANLIB" && RANLIB=:
12350
12351
12352
12353
12354
12355
12356# Determine commands to create old-style static archives.
12357old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12358old_postinstall_cmds='chmod 644 $oldlib'
12359old_postuninstall_cmds=
12360
12361if test -n "$RANLIB"; then
12362  case $host_os in
12363  bitrig* | openbsd*)
12364    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12365    ;;
12366  *)
12367    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12368    ;;
12369  esac
12370  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12371fi
12372
12373case $host_os in
12374  darwin*)
12375    lock_old_archive_extraction=yes ;;
12376  *)
12377    lock_old_archive_extraction=no ;;
12378esac
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418# If no C compiler was specified, use CC.
12419LTCC=${LTCC-"$CC"}
12420
12421# If no C compiler flags were specified, use CFLAGS.
12422LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12423
12424# Allow CC to be a program name with arguments.
12425compiler=$CC
12426
12427
12428# Check for command to grab the raw symbol name followed by C symbol from nm.
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12430$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12431if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12432  $as_echo_n "(cached) " >&6
12433else
12434
12435# These are sane defaults that work on at least a few old systems.
12436# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12437
12438# Character class describing NM global symbol codes.
12439symcode='[BCDEGRST]'
12440
12441# Regexp to match symbols that can be accessed directly from C.
12442sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12443
12444# Define system-specific variables.
12445case $host_os in
12446aix*)
12447  symcode='[BCDT]'
12448  ;;
12449cygwin* | mingw* | pw32* | cegcc*)
12450  symcode='[ABCDGISTW]'
12451  ;;
12452hpux*)
12453  if test ia64 = "$host_cpu"; then
12454    symcode='[ABCDEGRST]'
12455  fi
12456  ;;
12457irix* | nonstopux*)
12458  symcode='[BCDEGRST]'
12459  ;;
12460osf*)
12461  symcode='[BCDEGQRST]'
12462  ;;
12463solaris*)
12464  symcode='[BDRT]'
12465  ;;
12466sco3.2v5*)
12467  symcode='[DT]'
12468  ;;
12469sysv4.2uw2*)
12470  symcode='[DT]'
12471  ;;
12472sysv5* | sco5v6* | unixware* | OpenUNIX*)
12473  symcode='[ABDT]'
12474  ;;
12475sysv4)
12476  symcode='[DFNSTU]'
12477  ;;
12478esac
12479
12480# If we're using GNU nm, then use its standard symbol codes.
12481case `$NM -V 2>&1` in
12482*GNU* | *'with BFD'*)
12483  symcode='[ABCDGIRSTW]' ;;
12484esac
12485
12486if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12487  # Gets list of data symbols to import.
12488  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12489  # Adjust the below global symbol transforms to fixup imported variables.
12490  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12491  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12492  lt_c_name_lib_hook="\
12493  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12494  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12495else
12496  # Disable hooks by default.
12497  lt_cv_sys_global_symbol_to_import=
12498  lt_cdecl_hook=
12499  lt_c_name_hook=
12500  lt_c_name_lib_hook=
12501fi
12502
12503# Transform an extracted symbol line into a proper C declaration.
12504# Some systems (esp. on ia64) link data and code symbols differently,
12505# so use this general approach.
12506lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12507$lt_cdecl_hook\
12508" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12509" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12510
12511# Transform an extracted symbol line into symbol name and symbol address
12512lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12513$lt_c_name_hook\
12514" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12515" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12516
12517# Transform an extracted symbol line into symbol name with lib prefix and
12518# symbol address.
12519lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12520$lt_c_name_lib_hook\
12521" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12522" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12523" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12524
12525# Handle CRLF in mingw tool chain
12526opt_cr=
12527case $build_os in
12528mingw*)
12529  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12530  ;;
12531esac
12532
12533# Try without a prefix underscore, then with it.
12534for ac_symprfx in "" "_"; do
12535
12536  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12537  symxfrm="\\1 $ac_symprfx\\2 \\2"
12538
12539  # Write the raw and C identifiers.
12540  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12541    # Fake it for dumpbin and say T for any non-static function,
12542    # D for any global variable and I for any imported variable.
12543    # Also find C++ and __fastcall symbols from MSVC++,
12544    # which start with @ or ?.
12545    lt_cv_sys_global_symbol_pipe="$AWK '"\
12546"     {last_section=section; section=\$ 3};"\
12547"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12548"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12549"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12550"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12551"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12552"     \$ 0!~/External *\|/{next};"\
12553"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12554"     {if(hide[section]) next};"\
12555"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12556"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12557"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12558"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12559"     ' prfx=^$ac_symprfx"
12560  else
12561    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12562  fi
12563  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12564
12565  # Check to see that the pipe works correctly.
12566  pipe_works=no
12567
12568  rm -f conftest*
12569  cat > conftest.$ac_ext <<_LT_EOF
12570#ifdef __cplusplus
12571extern "C" {
12572#endif
12573char nm_test_var;
12574void nm_test_func(void);
12575void nm_test_func(void){}
12576#ifdef __cplusplus
12577}
12578#endif
12579int main(){nm_test_var='a';nm_test_func();return(0);}
12580_LT_EOF
12581
12582  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12583  (eval $ac_compile) 2>&5
12584  ac_status=$?
12585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12586  test $ac_status = 0; }; then
12587    # Now try to grab the symbols.
12588    nlist=conftest.nm
12589    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12590  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12591  ac_status=$?
12592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593  test $ac_status = 0; } && test -s "$nlist"; then
12594      # Try sorting and uniquifying the output.
12595      if sort "$nlist" | uniq > "$nlist"T; then
12596	mv -f "$nlist"T "$nlist"
12597      else
12598	rm -f "$nlist"T
12599      fi
12600
12601      # Make sure that we snagged all the symbols we need.
12602      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12603	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12604	  cat <<_LT_EOF > conftest.$ac_ext
12605/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12606#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12607/* DATA imports from DLLs on WIN32 can't be const, because runtime
12608   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12609# define LT_DLSYM_CONST
12610#elif defined __osf__
12611/* This system does not cope well with relocations in const data.  */
12612# define LT_DLSYM_CONST
12613#else
12614# define LT_DLSYM_CONST const
12615#endif
12616
12617#ifdef __cplusplus
12618extern "C" {
12619#endif
12620
12621_LT_EOF
12622	  # Now generate the symbol file.
12623	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12624
12625	  cat <<_LT_EOF >> conftest.$ac_ext
12626
12627/* The mapping between symbol names and symbols.  */
12628LT_DLSYM_CONST struct {
12629  const char *name;
12630  void       *address;
12631}
12632lt__PROGRAM__LTX_preloaded_symbols[] =
12633{
12634  { "@PROGRAM@", (void *) 0 },
12635_LT_EOF
12636	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12637	  cat <<\_LT_EOF >> conftest.$ac_ext
12638  {0, (void *) 0}
12639};
12640
12641/* This works around a problem in FreeBSD linker */
12642#ifdef FREEBSD_WORKAROUND
12643static const void *lt_preloaded_setup() {
12644  return lt__PROGRAM__LTX_preloaded_symbols;
12645}
12646#endif
12647
12648#ifdef __cplusplus
12649}
12650#endif
12651_LT_EOF
12652	  # Now try linking the two files.
12653	  mv conftest.$ac_objext conftstm.$ac_objext
12654	  lt_globsym_save_LIBS=$LIBS
12655	  lt_globsym_save_CFLAGS=$CFLAGS
12656	  LIBS=conftstm.$ac_objext
12657	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12658	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12659  (eval $ac_link) 2>&5
12660  ac_status=$?
12661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12662  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12663	    pipe_works=yes
12664	  fi
12665	  LIBS=$lt_globsym_save_LIBS
12666	  CFLAGS=$lt_globsym_save_CFLAGS
12667	else
12668	  echo "cannot find nm_test_func in $nlist" >&5
12669	fi
12670      else
12671	echo "cannot find nm_test_var in $nlist" >&5
12672      fi
12673    else
12674      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12675    fi
12676  else
12677    echo "$progname: failed program was:" >&5
12678    cat conftest.$ac_ext >&5
12679  fi
12680  rm -rf conftest* conftst*
12681
12682  # Do not use the global_symbol_pipe unless it works.
12683  if test yes = "$pipe_works"; then
12684    break
12685  else
12686    lt_cv_sys_global_symbol_pipe=
12687  fi
12688done
12689
12690fi
12691
12692if test -z "$lt_cv_sys_global_symbol_pipe"; then
12693  lt_cv_sys_global_symbol_to_cdecl=
12694fi
12695if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12697$as_echo "failed" >&6; }
12698else
12699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12700$as_echo "ok" >&6; }
12701fi
12702
12703# Response file support.
12704if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12705  nm_file_list_spec='@'
12706elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12707  nm_file_list_spec='@'
12708fi
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12747$as_echo_n "checking for sysroot... " >&6; }
12748
12749# Check whether --with-sysroot was given.
12750if test "${with_sysroot+set}" = set; then :
12751  withval=$with_sysroot;
12752else
12753  with_sysroot=no
12754fi
12755
12756
12757lt_sysroot=
12758case $with_sysroot in #(
12759 yes)
12760   if test yes = "$GCC"; then
12761     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12762   fi
12763   ;; #(
12764 /*)
12765   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12766   ;; #(
12767 no|'')
12768   ;; #(
12769 *)
12770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12771$as_echo "$with_sysroot" >&6; }
12772   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12773   ;;
12774esac
12775
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12777$as_echo "${lt_sysroot:-no}" >&6; }
12778
12779
12780
12781
12782
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12784$as_echo_n "checking for a working dd... " >&6; }
12785if ${ac_cv_path_lt_DD+:} false; then :
12786  $as_echo_n "(cached) " >&6
12787else
12788  printf 0123456789abcdef0123456789abcdef >conftest.i
12789cat conftest.i conftest.i >conftest2.i
12790: ${lt_DD:=$DD}
12791if test -z "$lt_DD"; then
12792  ac_path_lt_DD_found=false
12793  # Loop through the user's path and test for each of PROGNAME-LIST
12794  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795for as_dir in $PATH
12796do
12797  IFS=$as_save_IFS
12798  test -z "$as_dir" && as_dir=.
12799    for ac_prog in dd; do
12800    for ac_exec_ext in '' $ac_executable_extensions; do
12801      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12802      as_fn_executable_p "$ac_path_lt_DD" || continue
12803if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12804  cmp -s conftest.i conftest.out \
12805  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12806fi
12807      $ac_path_lt_DD_found && break 3
12808    done
12809  done
12810  done
12811IFS=$as_save_IFS
12812  if test -z "$ac_cv_path_lt_DD"; then
12813    :
12814  fi
12815else
12816  ac_cv_path_lt_DD=$lt_DD
12817fi
12818
12819rm -f conftest.i conftest2.i conftest.out
12820fi
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12822$as_echo "$ac_cv_path_lt_DD" >&6; }
12823
12824
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12826$as_echo_n "checking how to truncate binary pipes... " >&6; }
12827if ${lt_cv_truncate_bin+:} false; then :
12828  $as_echo_n "(cached) " >&6
12829else
12830  printf 0123456789abcdef0123456789abcdef >conftest.i
12831cat conftest.i conftest.i >conftest2.i
12832lt_cv_truncate_bin=
12833if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12834  cmp -s conftest.i conftest.out \
12835  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12836fi
12837rm -f conftest.i conftest2.i conftest.out
12838test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
12839fi
12840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12841$as_echo "$lt_cv_truncate_bin" >&6; }
12842
12843
12844
12845
12846
12847
12848
12849# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
12850func_cc_basename ()
12851{
12852    for cc_temp in $*""; do
12853      case $cc_temp in
12854        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12855        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12856        \-*) ;;
12857        *) break;;
12858      esac
12859    done
12860    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12861}
12862
12863# Check whether --enable-libtool-lock was given.
12864if test "${enable_libtool_lock+set}" = set; then :
12865  enableval=$enable_libtool_lock;
12866fi
12867
12868test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12869
12870# Some flags need to be propagated to the compiler or linker for good
12871# libtool support.
12872case $host in
12873ia64-*-hpux*)
12874  # Find out what ABI is being produced by ac_compile, and set mode
12875  # options accordingly.
12876  echo 'int i;' > conftest.$ac_ext
12877  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12878  (eval $ac_compile) 2>&5
12879  ac_status=$?
12880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881  test $ac_status = 0; }; then
12882    case `/usr/bin/file conftest.$ac_objext` in
12883      *ELF-32*)
12884	HPUX_IA64_MODE=32
12885	;;
12886      *ELF-64*)
12887	HPUX_IA64_MODE=64
12888	;;
12889    esac
12890  fi
12891  rm -rf conftest*
12892  ;;
12893*-*-irix6*)
12894  # Find out what ABI is being produced by ac_compile, and set linker
12895  # options accordingly.
12896  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12897  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12898  (eval $ac_compile) 2>&5
12899  ac_status=$?
12900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12901  test $ac_status = 0; }; then
12902    if test yes = "$lt_cv_prog_gnu_ld"; then
12903      case `/usr/bin/file conftest.$ac_objext` in
12904	*32-bit*)
12905	  LD="${LD-ld} -melf32bsmip"
12906	  ;;
12907	*N32*)
12908	  LD="${LD-ld} -melf32bmipn32"
12909	  ;;
12910	*64-bit*)
12911	  LD="${LD-ld} -melf64bmip"
12912	;;
12913      esac
12914    else
12915      case `/usr/bin/file conftest.$ac_objext` in
12916	*32-bit*)
12917	  LD="${LD-ld} -32"
12918	  ;;
12919	*N32*)
12920	  LD="${LD-ld} -n32"
12921	  ;;
12922	*64-bit*)
12923	  LD="${LD-ld} -64"
12924	  ;;
12925      esac
12926    fi
12927  fi
12928  rm -rf conftest*
12929  ;;
12930
12931mips64*-*linux*)
12932  # Find out what ABI is being produced by ac_compile, and set linker
12933  # options accordingly.
12934  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12935  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12936  (eval $ac_compile) 2>&5
12937  ac_status=$?
12938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12939  test $ac_status = 0; }; then
12940    emul=elf
12941    case `/usr/bin/file conftest.$ac_objext` in
12942      *32-bit*)
12943	emul="${emul}32"
12944	;;
12945      *64-bit*)
12946	emul="${emul}64"
12947	;;
12948    esac
12949    case `/usr/bin/file conftest.$ac_objext` in
12950      *MSB*)
12951	emul="${emul}btsmip"
12952	;;
12953      *LSB*)
12954	emul="${emul}ltsmip"
12955	;;
12956    esac
12957    case `/usr/bin/file conftest.$ac_objext` in
12958      *N32*)
12959	emul="${emul}n32"
12960	;;
12961    esac
12962    LD="${LD-ld} -m $emul"
12963  fi
12964  rm -rf conftest*
12965  ;;
12966
12967x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12968s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12969  # Find out what ABI is being produced by ac_compile, and set linker
12970  # options accordingly.  Note that the listed cases only cover the
12971  # situations where additional linker options are needed (such as when
12972  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
12973  # vice versa); the common cases where no linker options are needed do
12974  # not appear in the list.
12975  echo 'int i;' > conftest.$ac_ext
12976  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12977  (eval $ac_compile) 2>&5
12978  ac_status=$?
12979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12980  test $ac_status = 0; }; then
12981    case `/usr/bin/file conftest.o` in
12982      *32-bit*)
12983	case $host in
12984	  x86_64-*kfreebsd*-gnu)
12985	    LD="${LD-ld} -m elf_i386_fbsd"
12986	    ;;
12987	  x86_64-*linux*)
12988	    case `/usr/bin/file conftest.o` in
12989	      *x86-64*)
12990		LD="${LD-ld} -m elf32_x86_64"
12991		;;
12992	      *)
12993		LD="${LD-ld} -m elf_i386"
12994		;;
12995	    esac
12996	    ;;
12997	  powerpc64le-*linux*)
12998	    LD="${LD-ld} -m elf32lppclinux"
12999	    ;;
13000	  powerpc64-*linux*)
13001	    LD="${LD-ld} -m elf32ppclinux"
13002	    ;;
13003	  s390x-*linux*)
13004	    LD="${LD-ld} -m elf_s390"
13005	    ;;
13006	  sparc64-*linux*)
13007	    LD="${LD-ld} -m elf32_sparc"
13008	    ;;
13009	esac
13010	;;
13011      *64-bit*)
13012	case $host in
13013	  x86_64-*kfreebsd*-gnu)
13014	    LD="${LD-ld} -m elf_x86_64_fbsd"
13015	    ;;
13016	  x86_64-*linux*)
13017	    LD="${LD-ld} -m elf_x86_64"
13018	    ;;
13019	  powerpcle-*linux*)
13020	    LD="${LD-ld} -m elf64lppc"
13021	    ;;
13022	  powerpc-*linux*)
13023	    LD="${LD-ld} -m elf64ppc"
13024	    ;;
13025	  s390*-*linux*|s390*-*tpf*)
13026	    LD="${LD-ld} -m elf64_s390"
13027	    ;;
13028	  sparc*-*linux*)
13029	    LD="${LD-ld} -m elf64_sparc"
13030	    ;;
13031	esac
13032	;;
13033    esac
13034  fi
13035  rm -rf conftest*
13036  ;;
13037
13038*-*-sco3.2v5*)
13039  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13040  SAVE_CFLAGS=$CFLAGS
13041  CFLAGS="$CFLAGS -belf"
13042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13043$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13044if ${lt_cv_cc_needs_belf+:} false; then :
13045  $as_echo_n "(cached) " >&6
13046else
13047  ac_ext=c
13048ac_cpp='$CPP $CPPFLAGS'
13049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13051ac_compiler_gnu=$ac_cv_c_compiler_gnu
13052
13053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054/* end confdefs.h.  */
13055
13056int
13057main ()
13058{
13059
13060  ;
13061  return 0;
13062}
13063_ACEOF
13064if ac_fn_c_try_link "$LINENO"; then :
13065  lt_cv_cc_needs_belf=yes
13066else
13067  lt_cv_cc_needs_belf=no
13068fi
13069rm -f core conftest.err conftest.$ac_objext \
13070    conftest$ac_exeext conftest.$ac_ext
13071     ac_ext=c
13072ac_cpp='$CPP $CPPFLAGS'
13073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13075ac_compiler_gnu=$ac_cv_c_compiler_gnu
13076
13077fi
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13079$as_echo "$lt_cv_cc_needs_belf" >&6; }
13080  if test yes != "$lt_cv_cc_needs_belf"; then
13081    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13082    CFLAGS=$SAVE_CFLAGS
13083  fi
13084  ;;
13085*-*solaris*)
13086  # Find out what ABI is being produced by ac_compile, and set linker
13087  # options accordingly.
13088  echo 'int i;' > conftest.$ac_ext
13089  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13090  (eval $ac_compile) 2>&5
13091  ac_status=$?
13092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13093  test $ac_status = 0; }; then
13094    case `/usr/bin/file conftest.o` in
13095    *64-bit*)
13096      case $lt_cv_prog_gnu_ld in
13097      yes*)
13098        case $host in
13099        i?86-*-solaris*|x86_64-*-solaris*)
13100          LD="${LD-ld} -m elf_x86_64"
13101          ;;
13102        sparc*-*-solaris*)
13103          LD="${LD-ld} -m elf64_sparc"
13104          ;;
13105        esac
13106        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13107        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13108          LD=${LD-ld}_sol2
13109        fi
13110        ;;
13111      *)
13112	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13113	  LD="${LD-ld} -64"
13114	fi
13115	;;
13116      esac
13117      ;;
13118    esac
13119  fi
13120  rm -rf conftest*
13121  ;;
13122esac
13123
13124need_locks=$enable_libtool_lock
13125
13126if test -n "$ac_tool_prefix"; then
13127  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13128set dummy ${ac_tool_prefix}mt; ac_word=$2
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13130$as_echo_n "checking for $ac_word... " >&6; }
13131if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13132  $as_echo_n "(cached) " >&6
13133else
13134  if test -n "$MANIFEST_TOOL"; then
13135  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13136else
13137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138for as_dir in $PATH
13139do
13140  IFS=$as_save_IFS
13141  test -z "$as_dir" && as_dir=.
13142    for ac_exec_ext in '' $ac_executable_extensions; do
13143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13144    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146    break 2
13147  fi
13148done
13149  done
13150IFS=$as_save_IFS
13151
13152fi
13153fi
13154MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13155if test -n "$MANIFEST_TOOL"; then
13156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13157$as_echo "$MANIFEST_TOOL" >&6; }
13158else
13159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160$as_echo "no" >&6; }
13161fi
13162
13163
13164fi
13165if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13166  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13167  # Extract the first word of "mt", so it can be a program name with args.
13168set dummy mt; ac_word=$2
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13170$as_echo_n "checking for $ac_word... " >&6; }
13171if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13172  $as_echo_n "(cached) " >&6
13173else
13174  if test -n "$ac_ct_MANIFEST_TOOL"; then
13175  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13176else
13177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178for as_dir in $PATH
13179do
13180  IFS=$as_save_IFS
13181  test -z "$as_dir" && as_dir=.
13182    for ac_exec_ext in '' $ac_executable_extensions; do
13183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13184    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13186    break 2
13187  fi
13188done
13189  done
13190IFS=$as_save_IFS
13191
13192fi
13193fi
13194ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13195if test -n "$ac_ct_MANIFEST_TOOL"; then
13196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13197$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13198else
13199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13200$as_echo "no" >&6; }
13201fi
13202
13203  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13204    MANIFEST_TOOL=":"
13205  else
13206    case $cross_compiling:$ac_tool_warned in
13207yes:)
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13210ac_tool_warned=yes ;;
13211esac
13212    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13213  fi
13214else
13215  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13216fi
13217
13218test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13220$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13221if ${lt_cv_path_mainfest_tool+:} false; then :
13222  $as_echo_n "(cached) " >&6
13223else
13224  lt_cv_path_mainfest_tool=no
13225  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13226  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13227  cat conftest.err >&5
13228  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13229    lt_cv_path_mainfest_tool=yes
13230  fi
13231  rm -f conftest*
13232fi
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13234$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13235if test yes != "$lt_cv_path_mainfest_tool"; then
13236  MANIFEST_TOOL=:
13237fi
13238
13239
13240
13241
13242
13243
13244  case $host_os in
13245    rhapsody* | darwin*)
13246    if test -n "$ac_tool_prefix"; then
13247  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13248set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250$as_echo_n "checking for $ac_word... " >&6; }
13251if ${ac_cv_prog_DSYMUTIL+:} false; then :
13252  $as_echo_n "(cached) " >&6
13253else
13254  if test -n "$DSYMUTIL"; then
13255  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260  IFS=$as_save_IFS
13261  test -z "$as_dir" && as_dir=.
13262    for ac_exec_ext in '' $ac_executable_extensions; do
13263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13264    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266    break 2
13267  fi
13268done
13269  done
13270IFS=$as_save_IFS
13271
13272fi
13273fi
13274DSYMUTIL=$ac_cv_prog_DSYMUTIL
13275if test -n "$DSYMUTIL"; then
13276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13277$as_echo "$DSYMUTIL" >&6; }
13278else
13279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13280$as_echo "no" >&6; }
13281fi
13282
13283
13284fi
13285if test -z "$ac_cv_prog_DSYMUTIL"; then
13286  ac_ct_DSYMUTIL=$DSYMUTIL
13287  # Extract the first word of "dsymutil", so it can be a program name with args.
13288set dummy dsymutil; ac_word=$2
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290$as_echo_n "checking for $ac_word... " >&6; }
13291if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13292  $as_echo_n "(cached) " >&6
13293else
13294  if test -n "$ac_ct_DSYMUTIL"; then
13295  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13296else
13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298for as_dir in $PATH
13299do
13300  IFS=$as_save_IFS
13301  test -z "$as_dir" && as_dir=.
13302    for ac_exec_ext in '' $ac_executable_extensions; do
13303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13304    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13306    break 2
13307  fi
13308done
13309  done
13310IFS=$as_save_IFS
13311
13312fi
13313fi
13314ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13315if test -n "$ac_ct_DSYMUTIL"; then
13316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13317$as_echo "$ac_ct_DSYMUTIL" >&6; }
13318else
13319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
13321fi
13322
13323  if test "x$ac_ct_DSYMUTIL" = x; then
13324    DSYMUTIL=":"
13325  else
13326    case $cross_compiling:$ac_tool_warned in
13327yes:)
13328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13330ac_tool_warned=yes ;;
13331esac
13332    DSYMUTIL=$ac_ct_DSYMUTIL
13333  fi
13334else
13335  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13336fi
13337
13338    if test -n "$ac_tool_prefix"; then
13339  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13340set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
13343if ${ac_cv_prog_NMEDIT+:} false; then :
13344  $as_echo_n "(cached) " >&6
13345else
13346  if test -n "$NMEDIT"; then
13347  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13348else
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352  IFS=$as_save_IFS
13353  test -z "$as_dir" && as_dir=.
13354    for ac_exec_ext in '' $ac_executable_extensions; do
13355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358    break 2
13359  fi
13360done
13361  done
13362IFS=$as_save_IFS
13363
13364fi
13365fi
13366NMEDIT=$ac_cv_prog_NMEDIT
13367if test -n "$NMEDIT"; then
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13369$as_echo "$NMEDIT" >&6; }
13370else
13371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373fi
13374
13375
13376fi
13377if test -z "$ac_cv_prog_NMEDIT"; then
13378  ac_ct_NMEDIT=$NMEDIT
13379  # Extract the first word of "nmedit", so it can be a program name with args.
13380set dummy nmedit; ac_word=$2
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382$as_echo_n "checking for $ac_word... " >&6; }
13383if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13384  $as_echo_n "(cached) " >&6
13385else
13386  if test -n "$ac_ct_NMEDIT"; then
13387  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13388else
13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390for as_dir in $PATH
13391do
13392  IFS=$as_save_IFS
13393  test -z "$as_dir" && as_dir=.
13394    for ac_exec_ext in '' $ac_executable_extensions; do
13395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13396    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398    break 2
13399  fi
13400done
13401  done
13402IFS=$as_save_IFS
13403
13404fi
13405fi
13406ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13407if test -n "$ac_ct_NMEDIT"; then
13408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13409$as_echo "$ac_ct_NMEDIT" >&6; }
13410else
13411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412$as_echo "no" >&6; }
13413fi
13414
13415  if test "x$ac_ct_NMEDIT" = x; then
13416    NMEDIT=":"
13417  else
13418    case $cross_compiling:$ac_tool_warned in
13419yes:)
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13422ac_tool_warned=yes ;;
13423esac
13424    NMEDIT=$ac_ct_NMEDIT
13425  fi
13426else
13427  NMEDIT="$ac_cv_prog_NMEDIT"
13428fi
13429
13430    if test -n "$ac_tool_prefix"; then
13431  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13432set dummy ${ac_tool_prefix}lipo; ac_word=$2
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434$as_echo_n "checking for $ac_word... " >&6; }
13435if ${ac_cv_prog_LIPO+:} false; then :
13436  $as_echo_n "(cached) " >&6
13437else
13438  if test -n "$LIPO"; then
13439  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13440else
13441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442for as_dir in $PATH
13443do
13444  IFS=$as_save_IFS
13445  test -z "$as_dir" && as_dir=.
13446    for ac_exec_ext in '' $ac_executable_extensions; do
13447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13450    break 2
13451  fi
13452done
13453  done
13454IFS=$as_save_IFS
13455
13456fi
13457fi
13458LIPO=$ac_cv_prog_LIPO
13459if test -n "$LIPO"; then
13460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13461$as_echo "$LIPO" >&6; }
13462else
13463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464$as_echo "no" >&6; }
13465fi
13466
13467
13468fi
13469if test -z "$ac_cv_prog_LIPO"; then
13470  ac_ct_LIPO=$LIPO
13471  # Extract the first word of "lipo", so it can be a program name with args.
13472set dummy lipo; ac_word=$2
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13474$as_echo_n "checking for $ac_word... " >&6; }
13475if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13476  $as_echo_n "(cached) " >&6
13477else
13478  if test -n "$ac_ct_LIPO"; then
13479  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13480else
13481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13482for as_dir in $PATH
13483do
13484  IFS=$as_save_IFS
13485  test -z "$as_dir" && as_dir=.
13486    for ac_exec_ext in '' $ac_executable_extensions; do
13487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13488    ac_cv_prog_ac_ct_LIPO="lipo"
13489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13490    break 2
13491  fi
13492done
13493  done
13494IFS=$as_save_IFS
13495
13496fi
13497fi
13498ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13499if test -n "$ac_ct_LIPO"; then
13500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13501$as_echo "$ac_ct_LIPO" >&6; }
13502else
13503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504$as_echo "no" >&6; }
13505fi
13506
13507  if test "x$ac_ct_LIPO" = x; then
13508    LIPO=":"
13509  else
13510    case $cross_compiling:$ac_tool_warned in
13511yes:)
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13514ac_tool_warned=yes ;;
13515esac
13516    LIPO=$ac_ct_LIPO
13517  fi
13518else
13519  LIPO="$ac_cv_prog_LIPO"
13520fi
13521
13522    if test -n "$ac_tool_prefix"; then
13523  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13524set dummy ${ac_tool_prefix}otool; ac_word=$2
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13526$as_echo_n "checking for $ac_word... " >&6; }
13527if ${ac_cv_prog_OTOOL+:} false; then :
13528  $as_echo_n "(cached) " >&6
13529else
13530  if test -n "$OTOOL"; then
13531  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13532else
13533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534for as_dir in $PATH
13535do
13536  IFS=$as_save_IFS
13537  test -z "$as_dir" && as_dir=.
13538    for ac_exec_ext in '' $ac_executable_extensions; do
13539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13540    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542    break 2
13543  fi
13544done
13545  done
13546IFS=$as_save_IFS
13547
13548fi
13549fi
13550OTOOL=$ac_cv_prog_OTOOL
13551if test -n "$OTOOL"; then
13552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13553$as_echo "$OTOOL" >&6; }
13554else
13555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556$as_echo "no" >&6; }
13557fi
13558
13559
13560fi
13561if test -z "$ac_cv_prog_OTOOL"; then
13562  ac_ct_OTOOL=$OTOOL
13563  # Extract the first word of "otool", so it can be a program name with args.
13564set dummy otool; ac_word=$2
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566$as_echo_n "checking for $ac_word... " >&6; }
13567if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13568  $as_echo_n "(cached) " >&6
13569else
13570  if test -n "$ac_ct_OTOOL"; then
13571  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13572else
13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574for as_dir in $PATH
13575do
13576  IFS=$as_save_IFS
13577  test -z "$as_dir" && as_dir=.
13578    for ac_exec_ext in '' $ac_executable_extensions; do
13579  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580    ac_cv_prog_ac_ct_OTOOL="otool"
13581    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582    break 2
13583  fi
13584done
13585  done
13586IFS=$as_save_IFS
13587
13588fi
13589fi
13590ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13591if test -n "$ac_ct_OTOOL"; then
13592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13593$as_echo "$ac_ct_OTOOL" >&6; }
13594else
13595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596$as_echo "no" >&6; }
13597fi
13598
13599  if test "x$ac_ct_OTOOL" = x; then
13600    OTOOL=":"
13601  else
13602    case $cross_compiling:$ac_tool_warned in
13603yes:)
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13606ac_tool_warned=yes ;;
13607esac
13608    OTOOL=$ac_ct_OTOOL
13609  fi
13610else
13611  OTOOL="$ac_cv_prog_OTOOL"
13612fi
13613
13614    if test -n "$ac_tool_prefix"; then
13615  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13616set dummy ${ac_tool_prefix}otool64; ac_word=$2
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618$as_echo_n "checking for $ac_word... " >&6; }
13619if ${ac_cv_prog_OTOOL64+:} false; then :
13620  $as_echo_n "(cached) " >&6
13621else
13622  if test -n "$OTOOL64"; then
13623  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13624else
13625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626for as_dir in $PATH
13627do
13628  IFS=$as_save_IFS
13629  test -z "$as_dir" && as_dir=.
13630    for ac_exec_ext in '' $ac_executable_extensions; do
13631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13632    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634    break 2
13635  fi
13636done
13637  done
13638IFS=$as_save_IFS
13639
13640fi
13641fi
13642OTOOL64=$ac_cv_prog_OTOOL64
13643if test -n "$OTOOL64"; then
13644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13645$as_echo "$OTOOL64" >&6; }
13646else
13647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648$as_echo "no" >&6; }
13649fi
13650
13651
13652fi
13653if test -z "$ac_cv_prog_OTOOL64"; then
13654  ac_ct_OTOOL64=$OTOOL64
13655  # Extract the first word of "otool64", so it can be a program name with args.
13656set dummy otool64; ac_word=$2
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13658$as_echo_n "checking for $ac_word... " >&6; }
13659if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13660  $as_echo_n "(cached) " >&6
13661else
13662  if test -n "$ac_ct_OTOOL64"; then
13663  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13664else
13665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666for as_dir in $PATH
13667do
13668  IFS=$as_save_IFS
13669  test -z "$as_dir" && as_dir=.
13670    for ac_exec_ext in '' $ac_executable_extensions; do
13671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672    ac_cv_prog_ac_ct_OTOOL64="otool64"
13673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674    break 2
13675  fi
13676done
13677  done
13678IFS=$as_save_IFS
13679
13680fi
13681fi
13682ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13683if test -n "$ac_ct_OTOOL64"; then
13684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13685$as_echo "$ac_ct_OTOOL64" >&6; }
13686else
13687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688$as_echo "no" >&6; }
13689fi
13690
13691  if test "x$ac_ct_OTOOL64" = x; then
13692    OTOOL64=":"
13693  else
13694    case $cross_compiling:$ac_tool_warned in
13695yes:)
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13698ac_tool_warned=yes ;;
13699esac
13700    OTOOL64=$ac_ct_OTOOL64
13701  fi
13702else
13703  OTOOL64="$ac_cv_prog_OTOOL64"
13704fi
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13733$as_echo_n "checking for -single_module linker flag... " >&6; }
13734if ${lt_cv_apple_cc_single_mod+:} false; then :
13735  $as_echo_n "(cached) " >&6
13736else
13737  lt_cv_apple_cc_single_mod=no
13738      if test -z "$LT_MULTI_MODULE"; then
13739	# By default we will add the -single_module flag. You can override
13740	# by either setting the environment variable LT_MULTI_MODULE
13741	# non-empty at configure time, or by adding -multi_module to the
13742	# link flags.
13743	rm -rf libconftest.dylib*
13744	echo "int foo(void){return 1;}" > conftest.c
13745	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13746-dynamiclib -Wl,-single_module conftest.c" >&5
13747	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13748	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13749        _lt_result=$?
13750	# If there is a non-empty error log, and "single_module"
13751	# appears in it, assume the flag caused a linker warning
13752        if test -s conftest.err && $GREP single_module conftest.err; then
13753	  cat conftest.err >&5
13754	# Otherwise, if the output was created with a 0 exit code from
13755	# the compiler, it worked.
13756	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13757	  lt_cv_apple_cc_single_mod=yes
13758	else
13759	  cat conftest.err >&5
13760	fi
13761	rm -rf libconftest.dylib*
13762	rm -f conftest.*
13763      fi
13764fi
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13766$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13767
13768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13769$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13770if ${lt_cv_ld_exported_symbols_list+:} false; then :
13771  $as_echo_n "(cached) " >&6
13772else
13773  lt_cv_ld_exported_symbols_list=no
13774      save_LDFLAGS=$LDFLAGS
13775      echo "_main" > conftest.sym
13776      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13777      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778/* end confdefs.h.  */
13779
13780int
13781main ()
13782{
13783
13784  ;
13785  return 0;
13786}
13787_ACEOF
13788if ac_fn_c_try_link "$LINENO"; then :
13789  lt_cv_ld_exported_symbols_list=yes
13790else
13791  lt_cv_ld_exported_symbols_list=no
13792fi
13793rm -f core conftest.err conftest.$ac_objext \
13794    conftest$ac_exeext conftest.$ac_ext
13795	LDFLAGS=$save_LDFLAGS
13796
13797fi
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13799$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13800
13801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13802$as_echo_n "checking for -force_load linker flag... " >&6; }
13803if ${lt_cv_ld_force_load+:} false; then :
13804  $as_echo_n "(cached) " >&6
13805else
13806  lt_cv_ld_force_load=no
13807      cat > conftest.c << _LT_EOF
13808int forced_loaded() { return 2;}
13809_LT_EOF
13810      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13811      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13812      echo "$AR cru libconftest.a conftest.o" >&5
13813      $AR cru libconftest.a conftest.o 2>&5
13814      echo "$RANLIB libconftest.a" >&5
13815      $RANLIB libconftest.a 2>&5
13816      cat > conftest.c << _LT_EOF
13817int main() { return 0;}
13818_LT_EOF
13819      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13820      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13821      _lt_result=$?
13822      if test -s conftest.err && $GREP force_load conftest.err; then
13823	cat conftest.err >&5
13824      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13825	lt_cv_ld_force_load=yes
13826      else
13827	cat conftest.err >&5
13828      fi
13829        rm -f conftest.err libconftest.a conftest conftest.c
13830        rm -rf conftest.dSYM
13831
13832fi
13833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13834$as_echo "$lt_cv_ld_force_load" >&6; }
13835    case $host_os in
13836    rhapsody* | darwin1.[012])
13837      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13838    darwin1.*)
13839      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13840    darwin*) # darwin 5.x on
13841      # if running on 10.5 or later, the deployment target defaults
13842      # to the OS version, if on x86, and 10.4, the deployment
13843      # target defaults to 10.4. Don't you love it?
13844      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13845	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13846	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13847	10.[012][,.]*)
13848	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13849	10.*)
13850	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13851      esac
13852    ;;
13853  esac
13854    if test yes = "$lt_cv_apple_cc_single_mod"; then
13855      _lt_dar_single_mod='$single_module'
13856    fi
13857    if test yes = "$lt_cv_ld_exported_symbols_list"; then
13858      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13859    else
13860      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13861    fi
13862    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13863      _lt_dsymutil='~$DSYMUTIL $lib || :'
13864    else
13865      _lt_dsymutil=
13866    fi
13867    ;;
13868  esac
13869
13870# func_munge_path_list VARIABLE PATH
13871# -----------------------------------
13872# VARIABLE is name of variable containing _space_ separated list of
13873# directories to be munged by the contents of PATH, which is string
13874# having a format:
13875# "DIR[:DIR]:"
13876#       string "DIR[ DIR]" will be prepended to VARIABLE
13877# ":DIR[:DIR]"
13878#       string "DIR[ DIR]" will be appended to VARIABLE
13879# "DIRP[:DIRP]::[DIRA:]DIRA"
13880#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13881#       "DIRA[ DIRA]" will be appended to VARIABLE
13882# "DIR[:DIR]"
13883#       VARIABLE will be replaced by "DIR[ DIR]"
13884func_munge_path_list ()
13885{
13886    case x$2 in
13887    x)
13888        ;;
13889    *:)
13890        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
13891        ;;
13892    x:*)
13893        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
13894        ;;
13895    *::*)
13896        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
13897        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
13898        ;;
13899    *)
13900        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
13901        ;;
13902    esac
13903}
13904
13905for ac_header in dlfcn.h
13906do :
13907  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13908"
13909if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13910  cat >>confdefs.h <<_ACEOF
13911#define HAVE_DLFCN_H 1
13912_ACEOF
13913
13914fi
13915
13916done
13917
13918
13919
13920
13921
13922# Set options
13923
13924
13925
13926        enable_dlopen=no
13927
13928
13929  enable_win32_dll=no
13930
13931
13932            # Check whether --enable-shared was given.
13933if test "${enable_shared+set}" = set; then :
13934  enableval=$enable_shared; p=${PACKAGE-default}
13935    case $enableval in
13936    yes) enable_shared=yes ;;
13937    no) enable_shared=no ;;
13938    *)
13939      enable_shared=no
13940      # Look at the argument we got.  We use all the common list separators.
13941      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13942      for pkg in $enableval; do
13943	IFS=$lt_save_ifs
13944	if test "X$pkg" = "X$p"; then
13945	  enable_shared=yes
13946	fi
13947      done
13948      IFS=$lt_save_ifs
13949      ;;
13950    esac
13951else
13952  enable_shared=yes
13953fi
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963  # Check whether --enable-static was given.
13964if test "${enable_static+set}" = set; then :
13965  enableval=$enable_static; p=${PACKAGE-default}
13966    case $enableval in
13967    yes) enable_static=yes ;;
13968    no) enable_static=no ;;
13969    *)
13970     enable_static=no
13971      # Look at the argument we got.  We use all the common list separators.
13972      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13973      for pkg in $enableval; do
13974	IFS=$lt_save_ifs
13975	if test "X$pkg" = "X$p"; then
13976	  enable_static=yes
13977	fi
13978      done
13979      IFS=$lt_save_ifs
13980      ;;
13981    esac
13982else
13983  enable_static=yes
13984fi
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995# Check whether --with-pic was given.
13996if test "${with_pic+set}" = set; then :
13997  withval=$with_pic; lt_p=${PACKAGE-default}
13998    case $withval in
13999    yes|no) pic_mode=$withval ;;
14000    *)
14001      pic_mode=default
14002      # Look at the argument we got.  We use all the common list separators.
14003      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14004      for lt_pkg in $withval; do
14005	IFS=$lt_save_ifs
14006	if test "X$lt_pkg" = "X$lt_p"; then
14007	  pic_mode=yes
14008	fi
14009      done
14010      IFS=$lt_save_ifs
14011      ;;
14012    esac
14013else
14014  pic_mode=default
14015fi
14016
14017
14018
14019
14020
14021
14022
14023
14024  # Check whether --enable-fast-install was given.
14025if test "${enable_fast_install+set}" = set; then :
14026  enableval=$enable_fast_install; p=${PACKAGE-default}
14027    case $enableval in
14028    yes) enable_fast_install=yes ;;
14029    no) enable_fast_install=no ;;
14030    *)
14031      enable_fast_install=no
14032      # Look at the argument we got.  We use all the common list separators.
14033      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14034      for pkg in $enableval; do
14035	IFS=$lt_save_ifs
14036	if test "X$pkg" = "X$p"; then
14037	  enable_fast_install=yes
14038	fi
14039      done
14040      IFS=$lt_save_ifs
14041      ;;
14042    esac
14043else
14044  enable_fast_install=yes
14045fi
14046
14047
14048
14049
14050
14051
14052
14053
14054  shared_archive_member_spec=
14055case $host,$enable_shared in
14056power*-*-aix[5-9]*,yes)
14057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14058$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14059
14060# Check whether --with-aix-soname was given.
14061if test "${with_aix_soname+set}" = set; then :
14062  withval=$with_aix_soname; case $withval in
14063    aix|svr4|both)
14064      ;;
14065    *)
14066      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14067      ;;
14068    esac
14069    lt_cv_with_aix_soname=$with_aix_soname
14070else
14071  if ${lt_cv_with_aix_soname+:} false; then :
14072  $as_echo_n "(cached) " >&6
14073else
14074  lt_cv_with_aix_soname=aix
14075fi
14076
14077    with_aix_soname=$lt_cv_with_aix_soname
14078fi
14079
14080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14081$as_echo "$with_aix_soname" >&6; }
14082  if test aix != "$with_aix_soname"; then
14083    # For the AIX way of multilib, we name the shared archive member
14084    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14085    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14086    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14087    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14088    if test 64 = "${OBJECT_MODE-32}"; then
14089      shared_archive_member_spec=shr_64
14090    else
14091      shared_archive_member_spec=shr
14092    fi
14093  fi
14094  ;;
14095*)
14096  with_aix_soname=aix
14097  ;;
14098esac
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109# This can be used to rebuild libtool when needed
14110LIBTOOL_DEPS=$ltmain
14111
14112# Always use our own libtool.
14113LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144test -z "$LN_S" && LN_S="ln -s"
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159if test -n "${ZSH_VERSION+set}"; then
14160   setopt NO_GLOB_SUBST
14161fi
14162
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14164$as_echo_n "checking for objdir... " >&6; }
14165if ${lt_cv_objdir+:} false; then :
14166  $as_echo_n "(cached) " >&6
14167else
14168  rm -f .libs 2>/dev/null
14169mkdir .libs 2>/dev/null
14170if test -d .libs; then
14171  lt_cv_objdir=.libs
14172else
14173  # MS-DOS does not allow filenames that begin with a dot.
14174  lt_cv_objdir=_libs
14175fi
14176rmdir .libs 2>/dev/null
14177fi
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14179$as_echo "$lt_cv_objdir" >&6; }
14180objdir=$lt_cv_objdir
14181
14182
14183
14184
14185
14186cat >>confdefs.h <<_ACEOF
14187#define LT_OBJDIR "$lt_cv_objdir/"
14188_ACEOF
14189
14190
14191
14192
14193case $host_os in
14194aix3*)
14195  # AIX sometimes has problems with the GCC collect2 program.  For some
14196  # reason, if we set the COLLECT_NAMES environment variable, the problems
14197  # vanish in a puff of smoke.
14198  if test set != "${COLLECT_NAMES+set}"; then
14199    COLLECT_NAMES=
14200    export COLLECT_NAMES
14201  fi
14202  ;;
14203esac
14204
14205# Global variables:
14206ofile=libtool
14207can_build_shared=yes
14208
14209# All known linkers require a '.a' archive for static linking (except MSVC,
14210# which needs '.lib').
14211libext=a
14212
14213with_gnu_ld=$lt_cv_prog_gnu_ld
14214
14215old_CC=$CC
14216old_CFLAGS=$CFLAGS
14217
14218# Set sane defaults for various variables
14219test -z "$CC" && CC=cc
14220test -z "$LTCC" && LTCC=$CC
14221test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14222test -z "$LD" && LD=ld
14223test -z "$ac_objext" && ac_objext=o
14224
14225func_cc_basename $compiler
14226cc_basename=$func_cc_basename_result
14227
14228
14229# Only perform the check for file, if the check method requires it
14230test -z "$MAGIC_CMD" && MAGIC_CMD=file
14231case $deplibs_check_method in
14232file_magic*)
14233  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14235$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14236if ${lt_cv_path_MAGIC_CMD+:} false; then :
14237  $as_echo_n "(cached) " >&6
14238else
14239  case $MAGIC_CMD in
14240[\\/*] |  ?:[\\/]*)
14241  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14242  ;;
14243*)
14244  lt_save_MAGIC_CMD=$MAGIC_CMD
14245  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14246  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14247  for ac_dir in $ac_dummy; do
14248    IFS=$lt_save_ifs
14249    test -z "$ac_dir" && ac_dir=.
14250    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14251      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14252      if test -n "$file_magic_test_file"; then
14253	case $deplibs_check_method in
14254	"file_magic "*)
14255	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14256	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14257	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14258	    $EGREP "$file_magic_regex" > /dev/null; then
14259	    :
14260	  else
14261	    cat <<_LT_EOF 1>&2
14262
14263*** Warning: the command libtool uses to detect shared libraries,
14264*** $file_magic_cmd, produces output that libtool cannot recognize.
14265*** The result is that libtool may fail to recognize shared libraries
14266*** as such.  This will affect the creation of libtool libraries that
14267*** depend on shared libraries, but programs linked with such libtool
14268*** libraries will work regardless of this problem.  Nevertheless, you
14269*** may want to report the problem to your system manager and/or to
14270*** bug-libtool@gnu.org
14271
14272_LT_EOF
14273	  fi ;;
14274	esac
14275      fi
14276      break
14277    fi
14278  done
14279  IFS=$lt_save_ifs
14280  MAGIC_CMD=$lt_save_MAGIC_CMD
14281  ;;
14282esac
14283fi
14284
14285MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14286if test -n "$MAGIC_CMD"; then
14287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14288$as_echo "$MAGIC_CMD" >&6; }
14289else
14290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291$as_echo "no" >&6; }
14292fi
14293
14294
14295
14296
14297
14298if test -z "$lt_cv_path_MAGIC_CMD"; then
14299  if test -n "$ac_tool_prefix"; then
14300    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14301$as_echo_n "checking for file... " >&6; }
14302if ${lt_cv_path_MAGIC_CMD+:} false; then :
14303  $as_echo_n "(cached) " >&6
14304else
14305  case $MAGIC_CMD in
14306[\\/*] |  ?:[\\/]*)
14307  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14308  ;;
14309*)
14310  lt_save_MAGIC_CMD=$MAGIC_CMD
14311  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14312  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14313  for ac_dir in $ac_dummy; do
14314    IFS=$lt_save_ifs
14315    test -z "$ac_dir" && ac_dir=.
14316    if test -f "$ac_dir/file"; then
14317      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14318      if test -n "$file_magic_test_file"; then
14319	case $deplibs_check_method in
14320	"file_magic "*)
14321	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14322	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14323	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14324	    $EGREP "$file_magic_regex" > /dev/null; then
14325	    :
14326	  else
14327	    cat <<_LT_EOF 1>&2
14328
14329*** Warning: the command libtool uses to detect shared libraries,
14330*** $file_magic_cmd, produces output that libtool cannot recognize.
14331*** The result is that libtool may fail to recognize shared libraries
14332*** as such.  This will affect the creation of libtool libraries that
14333*** depend on shared libraries, but programs linked with such libtool
14334*** libraries will work regardless of this problem.  Nevertheless, you
14335*** may want to report the problem to your system manager and/or to
14336*** bug-libtool@gnu.org
14337
14338_LT_EOF
14339	  fi ;;
14340	esac
14341      fi
14342      break
14343    fi
14344  done
14345  IFS=$lt_save_ifs
14346  MAGIC_CMD=$lt_save_MAGIC_CMD
14347  ;;
14348esac
14349fi
14350
14351MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14352if test -n "$MAGIC_CMD"; then
14353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14354$as_echo "$MAGIC_CMD" >&6; }
14355else
14356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357$as_echo "no" >&6; }
14358fi
14359
14360
14361  else
14362    MAGIC_CMD=:
14363  fi
14364fi
14365
14366  fi
14367  ;;
14368esac
14369
14370# Use C for the default configuration in the libtool script
14371
14372lt_save_CC=$CC
14373ac_ext=c
14374ac_cpp='$CPP $CPPFLAGS'
14375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377ac_compiler_gnu=$ac_cv_c_compiler_gnu
14378
14379
14380# Source file extension for C test sources.
14381ac_ext=c
14382
14383# Object file extension for compiled C test sources.
14384objext=o
14385objext=$objext
14386
14387# Code to be used in simple compile tests
14388lt_simple_compile_test_code="int some_variable = 0;"
14389
14390# Code to be used in simple link tests
14391lt_simple_link_test_code='int main(){return(0);}'
14392
14393
14394
14395
14396
14397
14398
14399# If no C compiler was specified, use CC.
14400LTCC=${LTCC-"$CC"}
14401
14402# If no C compiler flags were specified, use CFLAGS.
14403LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14404
14405# Allow CC to be a program name with arguments.
14406compiler=$CC
14407
14408# Save the default compiler, since it gets overwritten when the other
14409# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14410compiler_DEFAULT=$CC
14411
14412# save warnings/boilerplate of simple test code
14413ac_outfile=conftest.$ac_objext
14414echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14415eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14416_lt_compiler_boilerplate=`cat conftest.err`
14417$RM conftest*
14418
14419ac_outfile=conftest.$ac_objext
14420echo "$lt_simple_link_test_code" >conftest.$ac_ext
14421eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14422_lt_linker_boilerplate=`cat conftest.err`
14423$RM -r conftest*
14424
14425
14426## CAVEAT EMPTOR:
14427## There is no encapsulation within the following macros, do not change
14428## the running order or otherwise move them around unless you know exactly
14429## what you are doing...
14430if test -n "$compiler"; then
14431
14432lt_prog_compiler_no_builtin_flag=
14433
14434if test yes = "$GCC"; then
14435  case $cc_basename in
14436  nvcc*)
14437    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14438  *)
14439    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14440  esac
14441
14442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14443$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14444if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14445  $as_echo_n "(cached) " >&6
14446else
14447  lt_cv_prog_compiler_rtti_exceptions=no
14448   ac_outfile=conftest.$ac_objext
14449   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14450   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14451   # Insert the option either (1) after the last *FLAGS variable, or
14452   # (2) before a word containing "conftest.", or (3) at the end.
14453   # Note that $ac_compile itself does not contain backslashes and begins
14454   # with a dollar sign (not a hyphen), so the echo should work correctly.
14455   # The option is referenced via a variable to avoid confusing sed.
14456   lt_compile=`echo "$ac_compile" | $SED \
14457   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14458   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14459   -e 's:$: $lt_compiler_flag:'`
14460   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14461   (eval "$lt_compile" 2>conftest.err)
14462   ac_status=$?
14463   cat conftest.err >&5
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   if (exit $ac_status) && test -s "$ac_outfile"; then
14466     # The compiler can only warn and ignore the option if not recognized
14467     # So say no if there are warnings other than the usual output.
14468     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14469     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14470     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14471       lt_cv_prog_compiler_rtti_exceptions=yes
14472     fi
14473   fi
14474   $RM conftest*
14475
14476fi
14477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14478$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14479
14480if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14481    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14482else
14483    :
14484fi
14485
14486fi
14487
14488
14489
14490
14491
14492
14493  lt_prog_compiler_wl=
14494lt_prog_compiler_pic=
14495lt_prog_compiler_static=
14496
14497
14498  if test yes = "$GCC"; then
14499    lt_prog_compiler_wl='-Wl,'
14500    lt_prog_compiler_static='-static'
14501
14502    case $host_os in
14503      aix*)
14504      # All AIX code is PIC.
14505      if test ia64 = "$host_cpu"; then
14506	# AIX 5 now supports IA64 processor
14507	lt_prog_compiler_static='-Bstatic'
14508      fi
14509      lt_prog_compiler_pic='-fPIC'
14510      ;;
14511
14512    amigaos*)
14513      case $host_cpu in
14514      powerpc)
14515            # see comment about AmigaOS4 .so support
14516            lt_prog_compiler_pic='-fPIC'
14517        ;;
14518      m68k)
14519            # FIXME: we need at least 68020 code to build shared libraries, but
14520            # adding the '-m68020' flag to GCC prevents building anything better,
14521            # like '-m68040'.
14522            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14523        ;;
14524      esac
14525      ;;
14526
14527    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14528      # PIC is the default for these OSes.
14529      ;;
14530
14531    mingw* | cygwin* | pw32* | os2* | cegcc*)
14532      # This hack is so that the source file can tell whether it is being
14533      # built for inclusion in a dll (and should export symbols for example).
14534      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14535      # (--disable-auto-import) libraries
14536      lt_prog_compiler_pic='-DDLL_EXPORT'
14537      case $host_os in
14538      os2*)
14539	lt_prog_compiler_static='$wl-static'
14540	;;
14541      esac
14542      ;;
14543
14544    darwin* | rhapsody*)
14545      # PIC is the default on this platform
14546      # Common symbols not allowed in MH_DYLIB files
14547      lt_prog_compiler_pic='-fno-common'
14548      ;;
14549
14550    haiku*)
14551      # PIC is the default for Haiku.
14552      # The "-static" flag exists, but is broken.
14553      lt_prog_compiler_static=
14554      ;;
14555
14556    hpux*)
14557      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14558      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14559      # sets the default TLS model and affects inlining.
14560      case $host_cpu in
14561      hppa*64*)
14562	# +Z the default
14563	;;
14564      *)
14565	lt_prog_compiler_pic='-fPIC'
14566	;;
14567      esac
14568      ;;
14569
14570    interix[3-9]*)
14571      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14572      # Instead, we relocate shared libraries at runtime.
14573      ;;
14574
14575    msdosdjgpp*)
14576      # Just because we use GCC doesn't mean we suddenly get shared libraries
14577      # on systems that don't support them.
14578      lt_prog_compiler_can_build_shared=no
14579      enable_shared=no
14580      ;;
14581
14582    *nto* | *qnx*)
14583      # QNX uses GNU C++, but need to define -shared option too, otherwise
14584      # it will coredump.
14585      lt_prog_compiler_pic='-fPIC -shared'
14586      ;;
14587
14588    sysv4*MP*)
14589      if test -d /usr/nec; then
14590	lt_prog_compiler_pic=-Kconform_pic
14591      fi
14592      ;;
14593
14594    *)
14595      lt_prog_compiler_pic='-fPIC'
14596      ;;
14597    esac
14598
14599    case $cc_basename in
14600    nvcc*) # Cuda Compiler Driver 2.2
14601      lt_prog_compiler_wl='-Xlinker '
14602      if test -n "$lt_prog_compiler_pic"; then
14603        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14604      fi
14605      ;;
14606    esac
14607  else
14608    # PORTME Check for flag to pass linker flags through the system compiler.
14609    case $host_os in
14610    aix*)
14611      lt_prog_compiler_wl='-Wl,'
14612      if test ia64 = "$host_cpu"; then
14613	# AIX 5 now supports IA64 processor
14614	lt_prog_compiler_static='-Bstatic'
14615      else
14616	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14617      fi
14618      ;;
14619
14620    darwin* | rhapsody*)
14621      # PIC is the default on this platform
14622      # Common symbols not allowed in MH_DYLIB files
14623      lt_prog_compiler_pic='-fno-common'
14624      case $cc_basename in
14625      nagfor*)
14626        # NAG Fortran compiler
14627        lt_prog_compiler_wl='-Wl,-Wl,,'
14628        lt_prog_compiler_pic='-PIC'
14629        lt_prog_compiler_static='-Bstatic'
14630        ;;
14631      esac
14632      ;;
14633
14634    mingw* | cygwin* | pw32* | os2* | cegcc*)
14635      # This hack is so that the source file can tell whether it is being
14636      # built for inclusion in a dll (and should export symbols for example).
14637      lt_prog_compiler_pic='-DDLL_EXPORT'
14638      case $host_os in
14639      os2*)
14640	lt_prog_compiler_static='$wl-static'
14641	;;
14642      esac
14643      ;;
14644
14645    hpux9* | hpux10* | hpux11*)
14646      lt_prog_compiler_wl='-Wl,'
14647      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14648      # not for PA HP-UX.
14649      case $host_cpu in
14650      hppa*64*|ia64*)
14651	# +Z the default
14652	;;
14653      *)
14654	lt_prog_compiler_pic='+Z'
14655	;;
14656      esac
14657      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14658      lt_prog_compiler_static='$wl-a ${wl}archive'
14659      ;;
14660
14661    irix5* | irix6* | nonstopux*)
14662      lt_prog_compiler_wl='-Wl,'
14663      # PIC (with -KPIC) is the default.
14664      lt_prog_compiler_static='-non_shared'
14665      ;;
14666
14667    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14668      case $cc_basename in
14669      # old Intel for x86_64, which still supported -KPIC.
14670      ecc*)
14671	lt_prog_compiler_wl='-Wl,'
14672	lt_prog_compiler_pic='-KPIC'
14673	lt_prog_compiler_static='-static'
14674        ;;
14675      # icc used to be incompatible with GCC.
14676      # ICC 10 doesn't accept -KPIC any more.
14677      icc* | ifort*)
14678	lt_prog_compiler_wl='-Wl,'
14679	lt_prog_compiler_pic='-fPIC'
14680	lt_prog_compiler_static='-static'
14681        ;;
14682      # Lahey Fortran 8.1.
14683      lf95*)
14684	lt_prog_compiler_wl='-Wl,'
14685	lt_prog_compiler_pic='--shared'
14686	lt_prog_compiler_static='--static'
14687	;;
14688      nagfor*)
14689	# NAG Fortran compiler
14690	lt_prog_compiler_wl='-Wl,-Wl,,'
14691	lt_prog_compiler_pic='-PIC'
14692	lt_prog_compiler_static='-Bstatic'
14693	;;
14694      tcc*)
14695	# Fabrice Bellard et al's Tiny C Compiler
14696	lt_prog_compiler_wl='-Wl,'
14697	lt_prog_compiler_pic='-fPIC'
14698	lt_prog_compiler_static='-static'
14699	;;
14700      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14701        # Portland Group compilers (*not* the Pentium gcc compiler,
14702	# which looks to be a dead project)
14703	lt_prog_compiler_wl='-Wl,'
14704	lt_prog_compiler_pic='-fpic'
14705	lt_prog_compiler_static='-Bstatic'
14706        ;;
14707      ccc*)
14708        lt_prog_compiler_wl='-Wl,'
14709        # All Alpha code is PIC.
14710        lt_prog_compiler_static='-non_shared'
14711        ;;
14712      xl* | bgxl* | bgf* | mpixl*)
14713	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14714	lt_prog_compiler_wl='-Wl,'
14715	lt_prog_compiler_pic='-qpic'
14716	lt_prog_compiler_static='-qstaticlink'
14717	;;
14718      *)
14719	case `$CC -V 2>&1 | sed 5q` in
14720	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14721	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14722	  lt_prog_compiler_pic='-KPIC'
14723	  lt_prog_compiler_static='-Bstatic'
14724	  lt_prog_compiler_wl=''
14725	  ;;
14726	*Sun\ F* | *Sun*Fortran*)
14727	  lt_prog_compiler_pic='-KPIC'
14728	  lt_prog_compiler_static='-Bstatic'
14729	  lt_prog_compiler_wl='-Qoption ld '
14730	  ;;
14731	*Sun\ C*)
14732	  # Sun C 5.9
14733	  lt_prog_compiler_pic='-KPIC'
14734	  lt_prog_compiler_static='-Bstatic'
14735	  lt_prog_compiler_wl='-Wl,'
14736	  ;;
14737        *Intel*\ [CF]*Compiler*)
14738	  lt_prog_compiler_wl='-Wl,'
14739	  lt_prog_compiler_pic='-fPIC'
14740	  lt_prog_compiler_static='-static'
14741	  ;;
14742	*Portland\ Group*)
14743	  lt_prog_compiler_wl='-Wl,'
14744	  lt_prog_compiler_pic='-fpic'
14745	  lt_prog_compiler_static='-Bstatic'
14746	  ;;
14747	esac
14748	;;
14749      esac
14750      ;;
14751
14752    newsos6)
14753      lt_prog_compiler_pic='-KPIC'
14754      lt_prog_compiler_static='-Bstatic'
14755      ;;
14756
14757    *nto* | *qnx*)
14758      # QNX uses GNU C++, but need to define -shared option too, otherwise
14759      # it will coredump.
14760      lt_prog_compiler_pic='-fPIC -shared'
14761      ;;
14762
14763    osf3* | osf4* | osf5*)
14764      lt_prog_compiler_wl='-Wl,'
14765      # All OSF/1 code is PIC.
14766      lt_prog_compiler_static='-non_shared'
14767      ;;
14768
14769    rdos*)
14770      lt_prog_compiler_static='-non_shared'
14771      ;;
14772
14773    solaris*)
14774      lt_prog_compiler_pic='-KPIC'
14775      lt_prog_compiler_static='-Bstatic'
14776      case $cc_basename in
14777      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14778	lt_prog_compiler_wl='-Qoption ld ';;
14779      *)
14780	lt_prog_compiler_wl='-Wl,';;
14781      esac
14782      ;;
14783
14784    sunos4*)
14785      lt_prog_compiler_wl='-Qoption ld '
14786      lt_prog_compiler_pic='-PIC'
14787      lt_prog_compiler_static='-Bstatic'
14788      ;;
14789
14790    sysv4 | sysv4.2uw2* | sysv4.3*)
14791      lt_prog_compiler_wl='-Wl,'
14792      lt_prog_compiler_pic='-KPIC'
14793      lt_prog_compiler_static='-Bstatic'
14794      ;;
14795
14796    sysv4*MP*)
14797      if test -d /usr/nec; then
14798	lt_prog_compiler_pic='-Kconform_pic'
14799	lt_prog_compiler_static='-Bstatic'
14800      fi
14801      ;;
14802
14803    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14804      lt_prog_compiler_wl='-Wl,'
14805      lt_prog_compiler_pic='-KPIC'
14806      lt_prog_compiler_static='-Bstatic'
14807      ;;
14808
14809    unicos*)
14810      lt_prog_compiler_wl='-Wl,'
14811      lt_prog_compiler_can_build_shared=no
14812      ;;
14813
14814    uts4*)
14815      lt_prog_compiler_pic='-pic'
14816      lt_prog_compiler_static='-Bstatic'
14817      ;;
14818
14819    *)
14820      lt_prog_compiler_can_build_shared=no
14821      ;;
14822    esac
14823  fi
14824
14825case $host_os in
14826  # For platforms that do not support PIC, -DPIC is meaningless:
14827  *djgpp*)
14828    lt_prog_compiler_pic=
14829    ;;
14830  *)
14831    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14832    ;;
14833esac
14834
14835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14836$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14837if ${lt_cv_prog_compiler_pic+:} false; then :
14838  $as_echo_n "(cached) " >&6
14839else
14840  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14841fi
14842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14843$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14844lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14845
14846#
14847# Check to make sure the PIC flag actually works.
14848#
14849if test -n "$lt_prog_compiler_pic"; then
14850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14851$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14852if ${lt_cv_prog_compiler_pic_works+:} false; then :
14853  $as_echo_n "(cached) " >&6
14854else
14855  lt_cv_prog_compiler_pic_works=no
14856   ac_outfile=conftest.$ac_objext
14857   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14858   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14859   # Insert the option either (1) after the last *FLAGS variable, or
14860   # (2) before a word containing "conftest.", or (3) at the end.
14861   # Note that $ac_compile itself does not contain backslashes and begins
14862   # with a dollar sign (not a hyphen), so the echo should work correctly.
14863   # The option is referenced via a variable to avoid confusing sed.
14864   lt_compile=`echo "$ac_compile" | $SED \
14865   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14866   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14867   -e 's:$: $lt_compiler_flag:'`
14868   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14869   (eval "$lt_compile" 2>conftest.err)
14870   ac_status=$?
14871   cat conftest.err >&5
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   if (exit $ac_status) && test -s "$ac_outfile"; then
14874     # The compiler can only warn and ignore the option if not recognized
14875     # So say no if there are warnings other than the usual output.
14876     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14877     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14878     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14879       lt_cv_prog_compiler_pic_works=yes
14880     fi
14881   fi
14882   $RM conftest*
14883
14884fi
14885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14886$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14887
14888if test yes = "$lt_cv_prog_compiler_pic_works"; then
14889    case $lt_prog_compiler_pic in
14890     "" | " "*) ;;
14891     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14892     esac
14893else
14894    lt_prog_compiler_pic=
14895     lt_prog_compiler_can_build_shared=no
14896fi
14897
14898fi
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910#
14911# Check to make sure the static flag actually works.
14912#
14913wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14915$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14916if ${lt_cv_prog_compiler_static_works+:} false; then :
14917  $as_echo_n "(cached) " >&6
14918else
14919  lt_cv_prog_compiler_static_works=no
14920   save_LDFLAGS=$LDFLAGS
14921   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14922   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14923   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14924     # The linker can only warn and ignore the option if not recognized
14925     # So say no if there are warnings
14926     if test -s conftest.err; then
14927       # Append any errors to the config.log.
14928       cat conftest.err 1>&5
14929       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14930       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14931       if diff conftest.exp conftest.er2 >/dev/null; then
14932         lt_cv_prog_compiler_static_works=yes
14933       fi
14934     else
14935       lt_cv_prog_compiler_static_works=yes
14936     fi
14937   fi
14938   $RM -r conftest*
14939   LDFLAGS=$save_LDFLAGS
14940
14941fi
14942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14943$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14944
14945if test yes = "$lt_cv_prog_compiler_static_works"; then
14946    :
14947else
14948    lt_prog_compiler_static=
14949fi
14950
14951
14952
14953
14954
14955
14956
14957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14958$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14959if ${lt_cv_prog_compiler_c_o+:} false; then :
14960  $as_echo_n "(cached) " >&6
14961else
14962  lt_cv_prog_compiler_c_o=no
14963   $RM -r conftest 2>/dev/null
14964   mkdir conftest
14965   cd conftest
14966   mkdir out
14967   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14968
14969   lt_compiler_flag="-o out/conftest2.$ac_objext"
14970   # Insert the option either (1) after the last *FLAGS variable, or
14971   # (2) before a word containing "conftest.", or (3) at the end.
14972   # Note that $ac_compile itself does not contain backslashes and begins
14973   # with a dollar sign (not a hyphen), so the echo should work correctly.
14974   lt_compile=`echo "$ac_compile" | $SED \
14975   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14976   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14977   -e 's:$: $lt_compiler_flag:'`
14978   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14979   (eval "$lt_compile" 2>out/conftest.err)
14980   ac_status=$?
14981   cat out/conftest.err >&5
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14984   then
14985     # The compiler can only warn and ignore the option if not recognized
14986     # So say no if there are warnings
14987     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14988     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14989     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14990       lt_cv_prog_compiler_c_o=yes
14991     fi
14992   fi
14993   chmod u+w . 2>&5
14994   $RM conftest*
14995   # SGI C++ compiler will create directory out/ii_files/ for
14996   # template instantiation
14997   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14998   $RM out/* && rmdir out
14999   cd ..
15000   $RM -r conftest
15001   $RM conftest*
15002
15003fi
15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15005$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15006
15007
15008
15009
15010
15011
15012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15014if ${lt_cv_prog_compiler_c_o+:} false; then :
15015  $as_echo_n "(cached) " >&6
15016else
15017  lt_cv_prog_compiler_c_o=no
15018   $RM -r conftest 2>/dev/null
15019   mkdir conftest
15020   cd conftest
15021   mkdir out
15022   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15023
15024   lt_compiler_flag="-o out/conftest2.$ac_objext"
15025   # Insert the option either (1) after the last *FLAGS variable, or
15026   # (2) before a word containing "conftest.", or (3) at the end.
15027   # Note that $ac_compile itself does not contain backslashes and begins
15028   # with a dollar sign (not a hyphen), so the echo should work correctly.
15029   lt_compile=`echo "$ac_compile" | $SED \
15030   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15031   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15032   -e 's:$: $lt_compiler_flag:'`
15033   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15034   (eval "$lt_compile" 2>out/conftest.err)
15035   ac_status=$?
15036   cat out/conftest.err >&5
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15039   then
15040     # The compiler can only warn and ignore the option if not recognized
15041     # So say no if there are warnings
15042     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15043     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15044     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15045       lt_cv_prog_compiler_c_o=yes
15046     fi
15047   fi
15048   chmod u+w . 2>&5
15049   $RM conftest*
15050   # SGI C++ compiler will create directory out/ii_files/ for
15051   # template instantiation
15052   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15053   $RM out/* && rmdir out
15054   cd ..
15055   $RM -r conftest
15056   $RM conftest*
15057
15058fi
15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15060$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15061
15062
15063
15064
15065hard_links=nottested
15066if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15067  # do not overwrite the value of need_locks provided by the user
15068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15069$as_echo_n "checking if we can lock with hard links... " >&6; }
15070  hard_links=yes
15071  $RM conftest*
15072  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15073  touch conftest.a
15074  ln conftest.a conftest.b 2>&5 || hard_links=no
15075  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15077$as_echo "$hard_links" >&6; }
15078  if test no = "$hard_links"; then
15079    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15080$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15081    need_locks=warn
15082  fi
15083else
15084  need_locks=no
15085fi
15086
15087
15088
15089
15090
15091
15092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15093$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15094
15095  runpath_var=
15096  allow_undefined_flag=
15097  always_export_symbols=no
15098  archive_cmds=
15099  archive_expsym_cmds=
15100  compiler_needs_object=no
15101  enable_shared_with_static_runtimes=no
15102  export_dynamic_flag_spec=
15103  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15104  hardcode_automatic=no
15105  hardcode_direct=no
15106  hardcode_direct_absolute=no
15107  hardcode_libdir_flag_spec=
15108  hardcode_libdir_separator=
15109  hardcode_minus_L=no
15110  hardcode_shlibpath_var=unsupported
15111  inherit_rpath=no
15112  link_all_deplibs=unknown
15113  module_cmds=
15114  module_expsym_cmds=
15115  old_archive_from_new_cmds=
15116  old_archive_from_expsyms_cmds=
15117  thread_safe_flag_spec=
15118  whole_archive_flag_spec=
15119  # include_expsyms should be a list of space-separated symbols to be *always*
15120  # included in the symbol list
15121  include_expsyms=
15122  # exclude_expsyms can be an extended regexp of symbols to exclude
15123  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15124  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15125  # as well as any symbol that contains 'd'.
15126  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15127  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15128  # platforms (ab)use it in PIC code, but their linkers get confused if
15129  # the symbol is explicitly referenced.  Since portable code cannot
15130  # rely on this symbol name, it's probably fine to never include it in
15131  # preloaded symbol tables.
15132  # Exclude shared library initialization/finalization symbols.
15133  extract_expsyms_cmds=
15134
15135  case $host_os in
15136  cygwin* | mingw* | pw32* | cegcc*)
15137    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15138    # When not using gcc, we currently assume that we are using
15139    # Microsoft Visual C++.
15140    if test yes != "$GCC"; then
15141      with_gnu_ld=no
15142    fi
15143    ;;
15144  interix*)
15145    # we just hope/assume this is gcc and not c89 (= MSVC++)
15146    with_gnu_ld=yes
15147    ;;
15148  openbsd* | bitrig*)
15149    with_gnu_ld=no
15150    ;;
15151  linux* | k*bsd*-gnu | gnu*)
15152    link_all_deplibs=no
15153    ;;
15154  esac
15155
15156  ld_shlibs=yes
15157
15158  # On some targets, GNU ld is compatible enough with the native linker
15159  # that we're better off using the native interface for both.
15160  lt_use_gnu_ld_interface=no
15161  if test yes = "$with_gnu_ld"; then
15162    case $host_os in
15163      aix*)
15164	# The AIX port of GNU ld has always aspired to compatibility
15165	# with the native linker.  However, as the warning in the GNU ld
15166	# block says, versions before 2.19.5* couldn't really create working
15167	# shared libraries, regardless of the interface used.
15168	case `$LD -v 2>&1` in
15169	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15170	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15171	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15172	  *)
15173	    lt_use_gnu_ld_interface=yes
15174	    ;;
15175	esac
15176	;;
15177      *)
15178	lt_use_gnu_ld_interface=yes
15179	;;
15180    esac
15181  fi
15182
15183  if test yes = "$lt_use_gnu_ld_interface"; then
15184    # If archive_cmds runs LD, not CC, wlarc should be empty
15185    wlarc='$wl'
15186
15187    # Set some defaults for GNU ld with shared library support. These
15188    # are reset later if shared libraries are not supported. Putting them
15189    # here allows them to be overridden if necessary.
15190    runpath_var=LD_RUN_PATH
15191    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15192    export_dynamic_flag_spec='$wl--export-dynamic'
15193    # ancient GNU ld didn't support --whole-archive et. al.
15194    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15195      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15196    else
15197      whole_archive_flag_spec=
15198    fi
15199    supports_anon_versioning=no
15200    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15201      *GNU\ gold*) supports_anon_versioning=yes ;;
15202      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15203      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15204      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15205      *\ 2.11.*) ;; # other 2.11 versions
15206      *) supports_anon_versioning=yes ;;
15207    esac
15208
15209    # See if GNU ld supports shared libraries.
15210    case $host_os in
15211    aix[3-9]*)
15212      # On AIX/PPC, the GNU linker is very broken
15213      if test ia64 != "$host_cpu"; then
15214	ld_shlibs=no
15215	cat <<_LT_EOF 1>&2
15216
15217*** Warning: the GNU linker, at least up to release 2.19, is reported
15218*** to be unable to reliably create shared libraries on AIX.
15219*** Therefore, libtool is disabling shared libraries support.  If you
15220*** really care for shared libraries, you may want to install binutils
15221*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15222*** You will then need to restart the configuration process.
15223
15224_LT_EOF
15225      fi
15226      ;;
15227
15228    amigaos*)
15229      case $host_cpu in
15230      powerpc)
15231            # see comment about AmigaOS4 .so support
15232            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15233            archive_expsym_cmds=''
15234        ;;
15235      m68k)
15236            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)'
15237            hardcode_libdir_flag_spec='-L$libdir'
15238            hardcode_minus_L=yes
15239        ;;
15240      esac
15241      ;;
15242
15243    beos*)
15244      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15245	allow_undefined_flag=unsupported
15246	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15247	# support --undefined.  This deserves some investigation.  FIXME
15248	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15249      else
15250	ld_shlibs=no
15251      fi
15252      ;;
15253
15254    cygwin* | mingw* | pw32* | cegcc*)
15255      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15256      # as there is no search path for DLLs.
15257      hardcode_libdir_flag_spec='-L$libdir'
15258      export_dynamic_flag_spec='$wl--export-all-symbols'
15259      allow_undefined_flag=unsupported
15260      always_export_symbols=no
15261      enable_shared_with_static_runtimes=yes
15262      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'
15263      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15264
15265      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15266        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15267	# If the export-symbols file already is a .def file, use it as
15268	# is; otherwise, prepend EXPORTS...
15269	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15270          cp $export_symbols $output_objdir/$soname.def;
15271        else
15272          echo EXPORTS > $output_objdir/$soname.def;
15273          cat $export_symbols >> $output_objdir/$soname.def;
15274        fi~
15275        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15276      else
15277	ld_shlibs=no
15278      fi
15279      ;;
15280
15281    haiku*)
15282      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15283      link_all_deplibs=yes
15284      ;;
15285
15286    os2*)
15287      hardcode_libdir_flag_spec='-L$libdir'
15288      hardcode_minus_L=yes
15289      allow_undefined_flag=unsupported
15290      shrext_cmds=.dll
15291      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15292	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15293	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15294	$ECHO EXPORTS >> $output_objdir/$libname.def~
15295	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15296	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15297	emximp -o $lib $output_objdir/$libname.def'
15298      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15299	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15300	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15301	$ECHO EXPORTS >> $output_objdir/$libname.def~
15302	prefix_cmds="$SED"~
15303	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15304	  prefix_cmds="$prefix_cmds -e 1d";
15305	fi~
15306	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15307	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15308	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15309	emximp -o $lib $output_objdir/$libname.def'
15310      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15311      enable_shared_with_static_runtimes=yes
15312      ;;
15313
15314    interix[3-9]*)
15315      hardcode_direct=no
15316      hardcode_shlibpath_var=no
15317      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15318      export_dynamic_flag_spec='$wl-E'
15319      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15320      # Instead, shared libraries are loaded at an image base (0x10000000 by
15321      # default) and relocated if they conflict, which is a slow very memory
15322      # consuming and fragmenting process.  To avoid this, we pick a random,
15323      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15324      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15325      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15326      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'
15327      ;;
15328
15329    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15330      tmp_diet=no
15331      if test linux-dietlibc = "$host_os"; then
15332	case $cc_basename in
15333	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15334	esac
15335      fi
15336      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15337	 && test no = "$tmp_diet"
15338      then
15339	tmp_addflag=' $pic_flag'
15340	tmp_sharedflag='-shared'
15341	case $cc_basename,$host_cpu in
15342        pgcc*)				# Portland Group C compiler
15343	  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'
15344	  tmp_addflag=' $pic_flag'
15345	  ;;
15346	pgf77* | pgf90* | pgf95* | pgfortran*)
15347					# Portland Group f77 and f90 compilers
15348	  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'
15349	  tmp_addflag=' $pic_flag -Mnomain' ;;
15350	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15351	  tmp_addflag=' -i_dynamic' ;;
15352	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15353	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15354	ifc* | ifort*)			# Intel Fortran compiler
15355	  tmp_addflag=' -nofor_main' ;;
15356	lf95*)				# Lahey Fortran 8.1
15357	  whole_archive_flag_spec=
15358	  tmp_sharedflag='--shared' ;;
15359        nagfor*)                        # NAGFOR 5.3
15360          tmp_sharedflag='-Wl,-shared' ;;
15361	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15362	  tmp_sharedflag='-qmkshrobj'
15363	  tmp_addflag= ;;
15364	nvcc*)	# Cuda Compiler Driver 2.2
15365	  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'
15366	  compiler_needs_object=yes
15367	  ;;
15368	esac
15369	case `$CC -V 2>&1 | sed 5q` in
15370	*Sun\ C*)			# Sun C 5.9
15371	  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'
15372	  compiler_needs_object=yes
15373	  tmp_sharedflag='-G' ;;
15374	*Sun\ F*)			# Sun Fortran 8.3
15375	  tmp_sharedflag='-G' ;;
15376	esac
15377	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15378
15379        if test yes = "$supports_anon_versioning"; then
15380          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15381            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15382            echo "local: *; };" >> $output_objdir/$libname.ver~
15383            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15384        fi
15385
15386	case $cc_basename in
15387	tcc*)
15388	  export_dynamic_flag_spec='-rdynamic'
15389	  ;;
15390	xlf* | bgf* | bgxlf* | mpixlf*)
15391	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15392	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15393	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15394	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15395	  if test yes = "$supports_anon_versioning"; then
15396	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15397              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15398              echo "local: *; };" >> $output_objdir/$libname.ver~
15399              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15400	  fi
15401	  ;;
15402	esac
15403      else
15404        ld_shlibs=no
15405      fi
15406      ;;
15407
15408    netbsd* | netbsdelf*-gnu)
15409      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15410	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15411	wlarc=
15412      else
15413	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15414	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15415      fi
15416      ;;
15417
15418    solaris*)
15419      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15420	ld_shlibs=no
15421	cat <<_LT_EOF 1>&2
15422
15423*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15424*** create shared libraries on Solaris systems.  Therefore, libtool
15425*** is disabling shared libraries support.  We urge you to upgrade GNU
15426*** binutils to release 2.9.1 or newer.  Another option is to modify
15427*** your PATH or compiler configuration so that the native linker is
15428*** used, and then restart.
15429
15430_LT_EOF
15431      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15432	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15433	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15434      else
15435	ld_shlibs=no
15436      fi
15437      ;;
15438
15439    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15440      case `$LD -v 2>&1` in
15441        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15442	ld_shlibs=no
15443	cat <<_LT_EOF 1>&2
15444
15445*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15446*** reliably create shared libraries on SCO systems.  Therefore, libtool
15447*** is disabling shared libraries support.  We urge you to upgrade GNU
15448*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15449*** your PATH or compiler configuration so that the native linker is
15450*** used, and then restart.
15451
15452_LT_EOF
15453	;;
15454	*)
15455	  # For security reasons, it is highly recommended that you always
15456	  # use absolute paths for naming shared libraries, and exclude the
15457	  # DT_RUNPATH tag from executables and libraries.  But doing so
15458	  # requires that you compile everything twice, which is a pain.
15459	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15460	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15461	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15462	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15463	  else
15464	    ld_shlibs=no
15465	  fi
15466	;;
15467      esac
15468      ;;
15469
15470    sunos4*)
15471      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15472      wlarc=
15473      hardcode_direct=yes
15474      hardcode_shlibpath_var=no
15475      ;;
15476
15477    *)
15478      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15479	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15480	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15481      else
15482	ld_shlibs=no
15483      fi
15484      ;;
15485    esac
15486
15487    if test no = "$ld_shlibs"; then
15488      runpath_var=
15489      hardcode_libdir_flag_spec=
15490      export_dynamic_flag_spec=
15491      whole_archive_flag_spec=
15492    fi
15493  else
15494    # PORTME fill in a description of your system's linker (not GNU ld)
15495    case $host_os in
15496    aix3*)
15497      allow_undefined_flag=unsupported
15498      always_export_symbols=yes
15499      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'
15500      # Note: this linker hardcodes the directories in LIBPATH if there
15501      # are no directories specified by -L.
15502      hardcode_minus_L=yes
15503      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15504	# Neither direct hardcoding nor static linking is supported with a
15505	# broken collect2.
15506	hardcode_direct=unsupported
15507      fi
15508      ;;
15509
15510    aix[4-9]*)
15511      if test ia64 = "$host_cpu"; then
15512	# On IA64, the linker does run time linking by default, so we don't
15513	# have to do anything special.
15514	aix_use_runtimelinking=no
15515	exp_sym_flag='-Bexport'
15516	no_entry_flag=
15517      else
15518	# If we're using GNU nm, then we don't want the "-C" option.
15519	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15520	# Without the "-l" option, or with the "-B" option, AIX nm treats
15521	# weak defined symbols like other global defined symbols, whereas
15522	# GNU nm marks them as "W".
15523	# While the 'weak' keyword is ignored in the Export File, we need
15524	# it in the Import File for the 'aix-soname' feature, so we have
15525	# to replace the "-B" option with "-P" for AIX nm.
15526	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15527	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15528	else
15529	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15530	fi
15531	aix_use_runtimelinking=no
15532
15533	# Test if we are trying to use run time linking or normal
15534	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15535	# have runtime linking enabled, and use it for executables.
15536	# For shared libraries, we enable/disable runtime linking
15537	# depending on the kind of the shared library created -
15538	# when "with_aix_soname,aix_use_runtimelinking" is:
15539	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15540	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15541	#            lib.a           static archive
15542	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15543	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15544	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15545	#            lib.a(lib.so.V) shared, rtl:no
15546	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15547	#            lib.a           static archive
15548	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15549	  for ld_flag in $LDFLAGS; do
15550	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15551	    aix_use_runtimelinking=yes
15552	    break
15553	  fi
15554	  done
15555	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15556	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15557	    # so we don't have lib.a shared libs to link our executables.
15558	    # We have to force runtime linking in this case.
15559	    aix_use_runtimelinking=yes
15560	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15561	  fi
15562	  ;;
15563	esac
15564
15565	exp_sym_flag='-bexport'
15566	no_entry_flag='-bnoentry'
15567      fi
15568
15569      # When large executables or shared objects are built, AIX ld can
15570      # have problems creating the table of contents.  If linking a library
15571      # or program results in "error TOC overflow" add -mminimal-toc to
15572      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15573      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15574
15575      archive_cmds=''
15576      hardcode_direct=yes
15577      hardcode_direct_absolute=yes
15578      hardcode_libdir_separator=':'
15579      link_all_deplibs=yes
15580      file_list_spec='$wl-f,'
15581      case $with_aix_soname,$aix_use_runtimelinking in
15582      aix,*) ;; # traditional, no import file
15583      svr4,* | *,yes) # use import file
15584	# The Import File defines what to hardcode.
15585	hardcode_direct=no
15586	hardcode_direct_absolute=no
15587	;;
15588      esac
15589
15590      if test yes = "$GCC"; then
15591	case $host_os in aix4.[012]|aix4.[012].*)
15592	# We only want to do this on AIX 4.2 and lower, the check
15593	# below for broken collect2 doesn't work under 4.3+
15594	  collect2name=`$CC -print-prog-name=collect2`
15595	  if test -f "$collect2name" &&
15596	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15597	  then
15598	  # We have reworked collect2
15599	  :
15600	  else
15601	  # We have old collect2
15602	  hardcode_direct=unsupported
15603	  # It fails to find uninstalled libraries when the uninstalled
15604	  # path is not listed in the libpath.  Setting hardcode_minus_L
15605	  # to unsupported forces relinking
15606	  hardcode_minus_L=yes
15607	  hardcode_libdir_flag_spec='-L$libdir'
15608	  hardcode_libdir_separator=
15609	  fi
15610	  ;;
15611	esac
15612	shared_flag='-shared'
15613	if test yes = "$aix_use_runtimelinking"; then
15614	  shared_flag="$shared_flag "'$wl-G'
15615	fi
15616	# Need to ensure runtime linking is disabled for the traditional
15617	# shared library, or the linker may eventually find shared libraries
15618	# /with/ Import File - we do not want to mix them.
15619	shared_flag_aix='-shared'
15620	shared_flag_svr4='-shared $wl-G'
15621      else
15622	# not using gcc
15623	if test ia64 = "$host_cpu"; then
15624	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15625	# chokes on -Wl,-G. The following line is correct:
15626	  shared_flag='-G'
15627	else
15628	  if test yes = "$aix_use_runtimelinking"; then
15629	    shared_flag='$wl-G'
15630	  else
15631	    shared_flag='$wl-bM:SRE'
15632	  fi
15633	  shared_flag_aix='$wl-bM:SRE'
15634	  shared_flag_svr4='$wl-G'
15635	fi
15636      fi
15637
15638      export_dynamic_flag_spec='$wl-bexpall'
15639      # It seems that -bexpall does not export symbols beginning with
15640      # underscore (_), so it is better to generate a list of symbols to export.
15641      always_export_symbols=yes
15642      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15643	# Warning - without using the other runtime loading flags (-brtl),
15644	# -berok will link without error, but may produce a broken library.
15645	allow_undefined_flag='-berok'
15646        # Determine the default libpath from the value encoded in an
15647        # empty executable.
15648        if test set = "${lt_cv_aix_libpath+set}"; then
15649  aix_libpath=$lt_cv_aix_libpath
15650else
15651  if ${lt_cv_aix_libpath_+:} false; then :
15652  $as_echo_n "(cached) " >&6
15653else
15654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655/* end confdefs.h.  */
15656
15657int
15658main ()
15659{
15660
15661  ;
15662  return 0;
15663}
15664_ACEOF
15665if ac_fn_c_try_link "$LINENO"; then :
15666
15667  lt_aix_libpath_sed='
15668      /Import File Strings/,/^$/ {
15669	  /^0/ {
15670	      s/^0  *\([^ ]*\) *$/\1/
15671	      p
15672	  }
15673      }'
15674  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15675  # Check for a 64-bit object if we didn't find anything.
15676  if test -z "$lt_cv_aix_libpath_"; then
15677    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15678  fi
15679fi
15680rm -f core conftest.err conftest.$ac_objext \
15681    conftest$ac_exeext conftest.$ac_ext
15682  if test -z "$lt_cv_aix_libpath_"; then
15683    lt_cv_aix_libpath_=/usr/lib:/lib
15684  fi
15685
15686fi
15687
15688  aix_libpath=$lt_cv_aix_libpath_
15689fi
15690
15691        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15692        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15693      else
15694	if test ia64 = "$host_cpu"; then
15695	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15696	  allow_undefined_flag="-z nodefs"
15697	  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"
15698	else
15699	 # Determine the default libpath from the value encoded in an
15700	 # empty executable.
15701	 if test set = "${lt_cv_aix_libpath+set}"; then
15702  aix_libpath=$lt_cv_aix_libpath
15703else
15704  if ${lt_cv_aix_libpath_+:} false; then :
15705  $as_echo_n "(cached) " >&6
15706else
15707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708/* end confdefs.h.  */
15709
15710int
15711main ()
15712{
15713
15714  ;
15715  return 0;
15716}
15717_ACEOF
15718if ac_fn_c_try_link "$LINENO"; then :
15719
15720  lt_aix_libpath_sed='
15721      /Import File Strings/,/^$/ {
15722	  /^0/ {
15723	      s/^0  *\([^ ]*\) *$/\1/
15724	      p
15725	  }
15726      }'
15727  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15728  # Check for a 64-bit object if we didn't find anything.
15729  if test -z "$lt_cv_aix_libpath_"; then
15730    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15731  fi
15732fi
15733rm -f core conftest.err conftest.$ac_objext \
15734    conftest$ac_exeext conftest.$ac_ext
15735  if test -z "$lt_cv_aix_libpath_"; then
15736    lt_cv_aix_libpath_=/usr/lib:/lib
15737  fi
15738
15739fi
15740
15741  aix_libpath=$lt_cv_aix_libpath_
15742fi
15743
15744	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15745	  # Warning - without using the other run time loading flags,
15746	  # -berok will link without error, but may produce a broken library.
15747	  no_undefined_flag=' $wl-bernotok'
15748	  allow_undefined_flag=' $wl-berok'
15749	  if test yes = "$with_gnu_ld"; then
15750	    # We only use this code for GNU lds that support --whole-archive.
15751	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15752	  else
15753	    # Exported symbols can be pulled into shared objects from archives
15754	    whole_archive_flag_spec='$convenience'
15755	  fi
15756	  archive_cmds_need_lc=yes
15757	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15758	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15759	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15760	  if test svr4 != "$with_aix_soname"; then
15761	    # This is similar to how AIX traditionally builds its shared libraries.
15762	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15763	  fi
15764	  if test aix != "$with_aix_soname"; then
15765	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15766	  else
15767	    # used by -dlpreopen to get the symbols
15768	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15769	  fi
15770	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15771	fi
15772      fi
15773      ;;
15774
15775    amigaos*)
15776      case $host_cpu in
15777      powerpc)
15778            # see comment about AmigaOS4 .so support
15779            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15780            archive_expsym_cmds=''
15781        ;;
15782      m68k)
15783            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)'
15784            hardcode_libdir_flag_spec='-L$libdir'
15785            hardcode_minus_L=yes
15786        ;;
15787      esac
15788      ;;
15789
15790    bsdi[45]*)
15791      export_dynamic_flag_spec=-rdynamic
15792      ;;
15793
15794    cygwin* | mingw* | pw32* | cegcc*)
15795      # When not using gcc, we currently assume that we are using
15796      # Microsoft Visual C++.
15797      # hardcode_libdir_flag_spec is actually meaningless, as there is
15798      # no search path for DLLs.
15799      case $cc_basename in
15800      cl*)
15801	# Native MSVC
15802	hardcode_libdir_flag_spec=' '
15803	allow_undefined_flag=unsupported
15804	always_export_symbols=yes
15805	file_list_spec='@'
15806	# Tell ltmain to make .lib files, not .a files.
15807	libext=lib
15808	# Tell ltmain to make .dll files, not .so files.
15809	shrext_cmds=.dll
15810	# FIXME: Setting linknames here is a bad hack.
15811	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15812	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15813            cp "$export_symbols" "$output_objdir/$soname.def";
15814            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15815          else
15816            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15817          fi~
15818          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15819          linknames='
15820	# The linker will not automatically build a static lib if we build a DLL.
15821	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15822	enable_shared_with_static_runtimes=yes
15823	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15824	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15825	# Don't use ranlib
15826	old_postinstall_cmds='chmod 644 $oldlib'
15827	postlink_cmds='lt_outputfile="@OUTPUT@"~
15828          lt_tool_outputfile="@TOOL_OUTPUT@"~
15829          case $lt_outputfile in
15830            *.exe|*.EXE) ;;
15831            *)
15832              lt_outputfile=$lt_outputfile.exe
15833              lt_tool_outputfile=$lt_tool_outputfile.exe
15834              ;;
15835          esac~
15836          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15837            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15838            $RM "$lt_outputfile.manifest";
15839          fi'
15840	;;
15841      *)
15842	# Assume MSVC wrapper
15843	hardcode_libdir_flag_spec=' '
15844	allow_undefined_flag=unsupported
15845	# Tell ltmain to make .lib files, not .a files.
15846	libext=lib
15847	# Tell ltmain to make .dll files, not .so files.
15848	shrext_cmds=.dll
15849	# FIXME: Setting linknames here is a bad hack.
15850	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15851	# The linker will automatically build a .lib file if we build a DLL.
15852	old_archive_from_new_cmds='true'
15853	# FIXME: Should let the user specify the lib program.
15854	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15855	enable_shared_with_static_runtimes=yes
15856	;;
15857      esac
15858      ;;
15859
15860    darwin* | rhapsody*)
15861
15862
15863  archive_cmds_need_lc=no
15864  hardcode_direct=no
15865  hardcode_automatic=yes
15866  hardcode_shlibpath_var=unsupported
15867  if test yes = "$lt_cv_ld_force_load"; then
15868    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\"`'
15869
15870  else
15871    whole_archive_flag_spec=''
15872  fi
15873  link_all_deplibs=yes
15874  allow_undefined_flag=$_lt_dar_allow_undefined
15875  case $cc_basename in
15876     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15877     *) _lt_dar_can_shared=$GCC ;;
15878  esac
15879  if test yes = "$_lt_dar_can_shared"; then
15880    output_verbose_link_cmd=func_echo_all
15881    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15882    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15883    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"
15884    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"
15885
15886  else
15887  ld_shlibs=no
15888  fi
15889
15890      ;;
15891
15892    dgux*)
15893      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15894      hardcode_libdir_flag_spec='-L$libdir'
15895      hardcode_shlibpath_var=no
15896      ;;
15897
15898    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15899    # support.  Future versions do this automatically, but an explicit c++rt0.o
15900    # does not break anything, and helps significantly (at the cost of a little
15901    # extra space).
15902    freebsd2.2*)
15903      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15904      hardcode_libdir_flag_spec='-R$libdir'
15905      hardcode_direct=yes
15906      hardcode_shlibpath_var=no
15907      ;;
15908
15909    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15910    freebsd2.*)
15911      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15912      hardcode_direct=yes
15913      hardcode_minus_L=yes
15914      hardcode_shlibpath_var=no
15915      ;;
15916
15917    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15918    freebsd* | dragonfly*)
15919      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15920      hardcode_libdir_flag_spec='-R$libdir'
15921      hardcode_direct=yes
15922      hardcode_shlibpath_var=no
15923      ;;
15924
15925    hpux9*)
15926      if test yes = "$GCC"; then
15927	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15928      else
15929	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15930      fi
15931      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15932      hardcode_libdir_separator=:
15933      hardcode_direct=yes
15934
15935      # hardcode_minus_L: Not really in the search PATH,
15936      # but as the default location of the library.
15937      hardcode_minus_L=yes
15938      export_dynamic_flag_spec='$wl-E'
15939      ;;
15940
15941    hpux10*)
15942      if test yes,no = "$GCC,$with_gnu_ld"; then
15943	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15944      else
15945	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15946      fi
15947      if test no = "$with_gnu_ld"; then
15948	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15949	hardcode_libdir_separator=:
15950	hardcode_direct=yes
15951	hardcode_direct_absolute=yes
15952	export_dynamic_flag_spec='$wl-E'
15953	# hardcode_minus_L: Not really in the search PATH,
15954	# but as the default location of the library.
15955	hardcode_minus_L=yes
15956      fi
15957      ;;
15958
15959    hpux11*)
15960      if test yes,no = "$GCC,$with_gnu_ld"; then
15961	case $host_cpu in
15962	hppa*64*)
15963	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15964	  ;;
15965	ia64*)
15966	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15967	  ;;
15968	*)
15969	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15970	  ;;
15971	esac
15972      else
15973	case $host_cpu in
15974	hppa*64*)
15975	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15976	  ;;
15977	ia64*)
15978	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15979	  ;;
15980	*)
15981
15982	  # Older versions of the 11.00 compiler do not understand -b yet
15983	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15984	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15985$as_echo_n "checking if $CC understands -b... " >&6; }
15986if ${lt_cv_prog_compiler__b+:} false; then :
15987  $as_echo_n "(cached) " >&6
15988else
15989  lt_cv_prog_compiler__b=no
15990   save_LDFLAGS=$LDFLAGS
15991   LDFLAGS="$LDFLAGS -b"
15992   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15993   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15994     # The linker can only warn and ignore the option if not recognized
15995     # So say no if there are warnings
15996     if test -s conftest.err; then
15997       # Append any errors to the config.log.
15998       cat conftest.err 1>&5
15999       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16000       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16001       if diff conftest.exp conftest.er2 >/dev/null; then
16002         lt_cv_prog_compiler__b=yes
16003       fi
16004     else
16005       lt_cv_prog_compiler__b=yes
16006     fi
16007   fi
16008   $RM -r conftest*
16009   LDFLAGS=$save_LDFLAGS
16010
16011fi
16012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16013$as_echo "$lt_cv_prog_compiler__b" >&6; }
16014
16015if test yes = "$lt_cv_prog_compiler__b"; then
16016    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16017else
16018    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16019fi
16020
16021	  ;;
16022	esac
16023      fi
16024      if test no = "$with_gnu_ld"; then
16025	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16026	hardcode_libdir_separator=:
16027
16028	case $host_cpu in
16029	hppa*64*|ia64*)
16030	  hardcode_direct=no
16031	  hardcode_shlibpath_var=no
16032	  ;;
16033	*)
16034	  hardcode_direct=yes
16035	  hardcode_direct_absolute=yes
16036	  export_dynamic_flag_spec='$wl-E'
16037
16038	  # hardcode_minus_L: Not really in the search PATH,
16039	  # but as the default location of the library.
16040	  hardcode_minus_L=yes
16041	  ;;
16042	esac
16043      fi
16044      ;;
16045
16046    irix5* | irix6* | nonstopux*)
16047      if test yes = "$GCC"; then
16048	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'
16049	# Try to use the -exported_symbol ld option, if it does not
16050	# work, assume that -exports_file does not work either and
16051	# implicitly export all symbols.
16052	# This should be the same for all languages, so no per-tag cache variable.
16053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16054$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16055if ${lt_cv_irix_exported_symbol+:} false; then :
16056  $as_echo_n "(cached) " >&6
16057else
16058  save_LDFLAGS=$LDFLAGS
16059	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16060	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061/* end confdefs.h.  */
16062int foo (void) { return 0; }
16063_ACEOF
16064if ac_fn_c_try_link "$LINENO"; then :
16065  lt_cv_irix_exported_symbol=yes
16066else
16067  lt_cv_irix_exported_symbol=no
16068fi
16069rm -f core conftest.err conftest.$ac_objext \
16070    conftest$ac_exeext conftest.$ac_ext
16071           LDFLAGS=$save_LDFLAGS
16072fi
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16074$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16075	if test yes = "$lt_cv_irix_exported_symbol"; then
16076          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'
16077	fi
16078	link_all_deplibs=no
16079      else
16080	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'
16081	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'
16082      fi
16083      archive_cmds_need_lc='no'
16084      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16085      hardcode_libdir_separator=:
16086      inherit_rpath=yes
16087      link_all_deplibs=yes
16088      ;;
16089
16090    linux*)
16091      case $cc_basename in
16092      tcc*)
16093	# Fabrice Bellard et al's Tiny C Compiler
16094	ld_shlibs=yes
16095	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16096	;;
16097      esac
16098      ;;
16099
16100    netbsd* | netbsdelf*-gnu)
16101      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16102	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16103      else
16104	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16105      fi
16106      hardcode_libdir_flag_spec='-R$libdir'
16107      hardcode_direct=yes
16108      hardcode_shlibpath_var=no
16109      ;;
16110
16111    newsos6)
16112      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16113      hardcode_direct=yes
16114      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16115      hardcode_libdir_separator=:
16116      hardcode_shlibpath_var=no
16117      ;;
16118
16119    *nto* | *qnx*)
16120      ;;
16121
16122    openbsd* | bitrig*)
16123      if test -f /usr/libexec/ld.so; then
16124	hardcode_direct=yes
16125	hardcode_shlibpath_var=no
16126	hardcode_direct_absolute=yes
16127	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16128	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16129	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16130	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16131	  export_dynamic_flag_spec='$wl-E'
16132	else
16133	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16134	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16135	fi
16136      else
16137	ld_shlibs=no
16138      fi
16139      ;;
16140
16141    os2*)
16142      hardcode_libdir_flag_spec='-L$libdir'
16143      hardcode_minus_L=yes
16144      allow_undefined_flag=unsupported
16145      shrext_cmds=.dll
16146      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16147	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16148	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16149	$ECHO EXPORTS >> $output_objdir/$libname.def~
16150	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16151	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16152	emximp -o $lib $output_objdir/$libname.def'
16153      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16154	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16155	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16156	$ECHO EXPORTS >> $output_objdir/$libname.def~
16157	prefix_cmds="$SED"~
16158	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16159	  prefix_cmds="$prefix_cmds -e 1d";
16160	fi~
16161	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16162	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16163	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16164	emximp -o $lib $output_objdir/$libname.def'
16165      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16166      enable_shared_with_static_runtimes=yes
16167      ;;
16168
16169    osf3*)
16170      if test yes = "$GCC"; then
16171	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16172	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'
16173      else
16174	allow_undefined_flag=' -expect_unresolved \*'
16175	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'
16176      fi
16177      archive_cmds_need_lc='no'
16178      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16179      hardcode_libdir_separator=:
16180      ;;
16181
16182    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16183      if test yes = "$GCC"; then
16184	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16185	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'
16186	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16187      else
16188	allow_undefined_flag=' -expect_unresolved \*'
16189	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'
16190	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~
16191          $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'
16192
16193	# Both c and cxx compiler support -rpath directly
16194	hardcode_libdir_flag_spec='-rpath $libdir'
16195      fi
16196      archive_cmds_need_lc='no'
16197      hardcode_libdir_separator=:
16198      ;;
16199
16200    solaris*)
16201      no_undefined_flag=' -z defs'
16202      if test yes = "$GCC"; then
16203	wlarc='$wl'
16204	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16205	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16206          $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'
16207      else
16208	case `$CC -V 2>&1` in
16209	*"Compilers 5.0"*)
16210	  wlarc=''
16211	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16212	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16213            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16214	  ;;
16215	*)
16216	  wlarc='$wl'
16217	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16218	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16219            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16220	  ;;
16221	esac
16222      fi
16223      hardcode_libdir_flag_spec='-R$libdir'
16224      hardcode_shlibpath_var=no
16225      case $host_os in
16226      solaris2.[0-5] | solaris2.[0-5].*) ;;
16227      *)
16228	# The compiler driver will combine and reorder linker options,
16229	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16230	# but is careful enough not to reorder.
16231	# Supported since Solaris 2.6 (maybe 2.5.1?)
16232	if test yes = "$GCC"; then
16233	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16234	else
16235	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16236	fi
16237	;;
16238      esac
16239      link_all_deplibs=yes
16240      ;;
16241
16242    sunos4*)
16243      if test sequent = "$host_vendor"; then
16244	# Use $CC to link under sequent, because it throws in some extra .o
16245	# files that make .init and .fini sections work.
16246	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16247      else
16248	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16249      fi
16250      hardcode_libdir_flag_spec='-L$libdir'
16251      hardcode_direct=yes
16252      hardcode_minus_L=yes
16253      hardcode_shlibpath_var=no
16254      ;;
16255
16256    sysv4)
16257      case $host_vendor in
16258	sni)
16259	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16260	  hardcode_direct=yes # is this really true???
16261	;;
16262	siemens)
16263	  ## LD is ld it makes a PLAMLIB
16264	  ## CC just makes a GrossModule.
16265	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16266	  reload_cmds='$CC -r -o $output$reload_objs'
16267	  hardcode_direct=no
16268        ;;
16269	motorola)
16270	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16271	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16272	;;
16273      esac
16274      runpath_var='LD_RUN_PATH'
16275      hardcode_shlibpath_var=no
16276      ;;
16277
16278    sysv4.3*)
16279      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16280      hardcode_shlibpath_var=no
16281      export_dynamic_flag_spec='-Bexport'
16282      ;;
16283
16284    sysv4*MP*)
16285      if test -d /usr/nec; then
16286	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16287	hardcode_shlibpath_var=no
16288	runpath_var=LD_RUN_PATH
16289	hardcode_runpath_var=yes
16290	ld_shlibs=yes
16291      fi
16292      ;;
16293
16294    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16295      no_undefined_flag='$wl-z,text'
16296      archive_cmds_need_lc=no
16297      hardcode_shlibpath_var=no
16298      runpath_var='LD_RUN_PATH'
16299
16300      if test yes = "$GCC"; then
16301	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16302	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16303      else
16304	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16305	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16306      fi
16307      ;;
16308
16309    sysv5* | sco3.2v5* | sco5v6*)
16310      # Note: We CANNOT use -z defs as we might desire, because we do not
16311      # link with -lc, and that would cause any symbols used from libc to
16312      # always be unresolved, which means just about no library would
16313      # ever link correctly.  If we're not using GNU ld we use -z text
16314      # though, which does catch some bad symbols but isn't as heavy-handed
16315      # as -z defs.
16316      no_undefined_flag='$wl-z,text'
16317      allow_undefined_flag='$wl-z,nodefs'
16318      archive_cmds_need_lc=no
16319      hardcode_shlibpath_var=no
16320      hardcode_libdir_flag_spec='$wl-R,$libdir'
16321      hardcode_libdir_separator=':'
16322      link_all_deplibs=yes
16323      export_dynamic_flag_spec='$wl-Bexport'
16324      runpath_var='LD_RUN_PATH'
16325
16326      if test yes = "$GCC"; then
16327	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16328	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16329      else
16330	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16331	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16332      fi
16333      ;;
16334
16335    uts4*)
16336      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16337      hardcode_libdir_flag_spec='-L$libdir'
16338      hardcode_shlibpath_var=no
16339      ;;
16340
16341    *)
16342      ld_shlibs=no
16343      ;;
16344    esac
16345
16346    if test sni = "$host_vendor"; then
16347      case $host in
16348      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16349	export_dynamic_flag_spec='$wl-Blargedynsym'
16350	;;
16351      esac
16352    fi
16353  fi
16354
16355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16356$as_echo "$ld_shlibs" >&6; }
16357test no = "$ld_shlibs" && can_build_shared=no
16358
16359with_gnu_ld=$with_gnu_ld
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375#
16376# Do we need to explicitly link libc?
16377#
16378case "x$archive_cmds_need_lc" in
16379x|xyes)
16380  # Assume -lc should be added
16381  archive_cmds_need_lc=yes
16382
16383  if test yes,yes = "$GCC,$enable_shared"; then
16384    case $archive_cmds in
16385    *'~'*)
16386      # FIXME: we may have to deal with multi-command sequences.
16387      ;;
16388    '$CC '*)
16389      # Test whether the compiler implicitly links with -lc since on some
16390      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16391      # to ld, don't add -lc before -lgcc.
16392      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16393$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16394if ${lt_cv_archive_cmds_need_lc+:} false; then :
16395  $as_echo_n "(cached) " >&6
16396else
16397  $RM conftest*
16398	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16399
16400	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16401  (eval $ac_compile) 2>&5
16402  ac_status=$?
16403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16404  test $ac_status = 0; } 2>conftest.err; then
16405	  soname=conftest
16406	  lib=conftest
16407	  libobjs=conftest.$ac_objext
16408	  deplibs=
16409	  wl=$lt_prog_compiler_wl
16410	  pic_flag=$lt_prog_compiler_pic
16411	  compiler_flags=-v
16412	  linker_flags=-v
16413	  verstring=
16414	  output_objdir=.
16415	  libname=conftest
16416	  lt_save_allow_undefined_flag=$allow_undefined_flag
16417	  allow_undefined_flag=
16418	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16419  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16420  ac_status=$?
16421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16422  test $ac_status = 0; }
16423	  then
16424	    lt_cv_archive_cmds_need_lc=no
16425	  else
16426	    lt_cv_archive_cmds_need_lc=yes
16427	  fi
16428	  allow_undefined_flag=$lt_save_allow_undefined_flag
16429	else
16430	  cat conftest.err 1>&5
16431	fi
16432	$RM conftest*
16433
16434fi
16435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16436$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16437      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16438      ;;
16439    esac
16440  fi
16441  ;;
16442esac
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16596$as_echo_n "checking dynamic linker characteristics... " >&6; }
16597
16598if test yes = "$GCC"; then
16599  case $host_os in
16600    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16601    *) lt_awk_arg='/^libraries:/' ;;
16602  esac
16603  case $host_os in
16604    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16605    *) lt_sed_strip_eq='s|=/|/|g' ;;
16606  esac
16607  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16608  case $lt_search_path_spec in
16609  *\;*)
16610    # if the path contains ";" then we assume it to be the separator
16611    # otherwise default to the standard path separator (i.e. ":") - it is
16612    # assumed that no part of a normal pathname contains ";" but that should
16613    # okay in the real world where ";" in dirpaths is itself problematic.
16614    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16615    ;;
16616  *)
16617    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16618    ;;
16619  esac
16620  # Ok, now we have the path, separated by spaces, we can step through it
16621  # and add multilib dir if necessary...
16622  lt_tmp_lt_search_path_spec=
16623  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16624  # ...but if some path component already ends with the multilib dir we assume
16625  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16626  case "$lt_multi_os_dir; $lt_search_path_spec " in
16627  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16628    lt_multi_os_dir=
16629    ;;
16630  esac
16631  for lt_sys_path in $lt_search_path_spec; do
16632    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16633      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16634    elif test -n "$lt_multi_os_dir"; then
16635      test -d "$lt_sys_path" && \
16636	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16637    fi
16638  done
16639  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16640BEGIN {RS = " "; FS = "/|\n";} {
16641  lt_foo = "";
16642  lt_count = 0;
16643  for (lt_i = NF; lt_i > 0; lt_i--) {
16644    if ($lt_i != "" && $lt_i != ".") {
16645      if ($lt_i == "..") {
16646        lt_count++;
16647      } else {
16648        if (lt_count == 0) {
16649          lt_foo = "/" $lt_i lt_foo;
16650        } else {
16651          lt_count--;
16652        }
16653      }
16654    }
16655  }
16656  if (lt_foo != "") { lt_freq[lt_foo]++; }
16657  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16658}'`
16659  # AWK program above erroneously prepends '/' to C:/dos/paths
16660  # for these hosts.
16661  case $host_os in
16662    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16663      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16664  esac
16665  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16666else
16667  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16668fi
16669library_names_spec=
16670libname_spec='lib$name'
16671soname_spec=
16672shrext_cmds=.so
16673postinstall_cmds=
16674postuninstall_cmds=
16675finish_cmds=
16676finish_eval=
16677shlibpath_var=
16678shlibpath_overrides_runpath=unknown
16679version_type=none
16680dynamic_linker="$host_os ld.so"
16681sys_lib_dlsearch_path_spec="/lib /usr/lib"
16682need_lib_prefix=unknown
16683hardcode_into_libs=no
16684
16685# when you set need_version to no, make sure it does not cause -set_version
16686# flags to be left without arguments
16687need_version=unknown
16688
16689
16690
16691case $host_os in
16692aix3*)
16693  version_type=linux # correct to gnu/linux during the next big refactor
16694  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16695  shlibpath_var=LIBPATH
16696
16697  # AIX 3 has no versioning support, so we append a major version to the name.
16698  soname_spec='$libname$release$shared_ext$major'
16699  ;;
16700
16701aix[4-9]*)
16702  version_type=linux # correct to gnu/linux during the next big refactor
16703  need_lib_prefix=no
16704  need_version=no
16705  hardcode_into_libs=yes
16706  if test ia64 = "$host_cpu"; then
16707    # AIX 5 supports IA64
16708    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16709    shlibpath_var=LD_LIBRARY_PATH
16710  else
16711    # With GCC up to 2.95.x, collect2 would create an import file
16712    # for dependence libraries.  The import file would start with
16713    # the line '#! .'.  This would cause the generated library to
16714    # depend on '.', always an invalid library.  This was fixed in
16715    # development snapshots of GCC prior to 3.0.
16716    case $host_os in
16717      aix4 | aix4.[01] | aix4.[01].*)
16718      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16719	   echo ' yes '
16720	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16721	:
16722      else
16723	can_build_shared=no
16724      fi
16725      ;;
16726    esac
16727    # Using Import Files as archive members, it is possible to support
16728    # filename-based versioning of shared library archives on AIX. While
16729    # this would work for both with and without runtime linking, it will
16730    # prevent static linking of such archives. So we do filename-based
16731    # shared library versioning with .so extension only, which is used
16732    # when both runtime linking and shared linking is enabled.
16733    # Unfortunately, runtime linking may impact performance, so we do
16734    # not want this to be the default eventually. Also, we use the
16735    # versioned .so libs for executables only if there is the -brtl
16736    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16737    # To allow for filename-based versioning support, we need to create
16738    # libNAME.so.V as an archive file, containing:
16739    # *) an Import File, referring to the versioned filename of the
16740    #    archive as well as the shared archive member, telling the
16741    #    bitwidth (32 or 64) of that shared object, and providing the
16742    #    list of exported symbols of that shared object, eventually
16743    #    decorated with the 'weak' keyword
16744    # *) the shared object with the F_LOADONLY flag set, to really avoid
16745    #    it being seen by the linker.
16746    # At run time we better use the real file rather than another symlink,
16747    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16748
16749    case $with_aix_soname,$aix_use_runtimelinking in
16750    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16751    # soname into executable. Probably we can add versioning support to
16752    # collect2, so additional links can be useful in future.
16753    aix,yes) # traditional libtool
16754      dynamic_linker='AIX unversionable lib.so'
16755      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16756      # instead of lib<name>.a to let people know that these are not
16757      # typical AIX shared libraries.
16758      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16759      ;;
16760    aix,no) # traditional AIX only
16761      dynamic_linker='AIX lib.a(lib.so.V)'
16762      # We preserve .a as extension for shared libraries through AIX4.2
16763      # and later when we are not doing run time linking.
16764      library_names_spec='$libname$release.a $libname.a'
16765      soname_spec='$libname$release$shared_ext$major'
16766      ;;
16767    svr4,*) # full svr4 only
16768      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16769      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16770      # We do not specify a path in Import Files, so LIBPATH fires.
16771      shlibpath_overrides_runpath=yes
16772      ;;
16773    *,yes) # both, prefer svr4
16774      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16775      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16776      # unpreferred sharedlib libNAME.a needs extra handling
16777      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16778      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16779      # We do not specify a path in Import Files, so LIBPATH fires.
16780      shlibpath_overrides_runpath=yes
16781      ;;
16782    *,no) # both, prefer aix
16783      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16784      library_names_spec='$libname$release.a $libname.a'
16785      soname_spec='$libname$release$shared_ext$major'
16786      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16787      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16788      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16789      ;;
16790    esac
16791    shlibpath_var=LIBPATH
16792  fi
16793  ;;
16794
16795amigaos*)
16796  case $host_cpu in
16797  powerpc)
16798    # Since July 2007 AmigaOS4 officially supports .so libraries.
16799    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16800    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16801    ;;
16802  m68k)
16803    library_names_spec='$libname.ixlibrary $libname.a'
16804    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16805    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16806    ;;
16807  esac
16808  ;;
16809
16810beos*)
16811  library_names_spec='$libname$shared_ext'
16812  dynamic_linker="$host_os ld.so"
16813  shlibpath_var=LIBRARY_PATH
16814  ;;
16815
16816bsdi[45]*)
16817  version_type=linux # correct to gnu/linux during the next big refactor
16818  need_version=no
16819  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16820  soname_spec='$libname$release$shared_ext$major'
16821  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16822  shlibpath_var=LD_LIBRARY_PATH
16823  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16824  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16825  # the default ld.so.conf also contains /usr/contrib/lib and
16826  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16827  # libtool to hard-code these into programs
16828  ;;
16829
16830cygwin* | mingw* | pw32* | cegcc*)
16831  version_type=windows
16832  shrext_cmds=.dll
16833  need_version=no
16834  need_lib_prefix=no
16835
16836  case $GCC,$cc_basename in
16837  yes,*)
16838    # gcc
16839    library_names_spec='$libname.dll.a'
16840    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16841    postinstall_cmds='base_file=`basename \$file`~
16842      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16843      dldir=$destdir/`dirname \$dlpath`~
16844      test -d \$dldir || mkdir -p \$dldir~
16845      $install_prog $dir/$dlname \$dldir/$dlname~
16846      chmod a+x \$dldir/$dlname~
16847      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16848        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16849      fi'
16850    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16851      dlpath=$dir/\$dldll~
16852       $RM \$dlpath'
16853    shlibpath_overrides_runpath=yes
16854
16855    case $host_os in
16856    cygwin*)
16857      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16858      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16859
16860      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16861      ;;
16862    mingw* | cegcc*)
16863      # MinGW DLLs use traditional 'lib' prefix
16864      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16865      ;;
16866    pw32*)
16867      # pw32 DLLs use 'pw' prefix rather than 'lib'
16868      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16869      ;;
16870    esac
16871    dynamic_linker='Win32 ld.exe'
16872    ;;
16873
16874  *,cl*)
16875    # Native MSVC
16876    libname_spec='$name'
16877    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16878    library_names_spec='$libname.dll.lib'
16879
16880    case $build_os in
16881    mingw*)
16882      sys_lib_search_path_spec=
16883      lt_save_ifs=$IFS
16884      IFS=';'
16885      for lt_path in $LIB
16886      do
16887        IFS=$lt_save_ifs
16888        # Let DOS variable expansion print the short 8.3 style file name.
16889        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16890        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16891      done
16892      IFS=$lt_save_ifs
16893      # Convert to MSYS style.
16894      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16895      ;;
16896    cygwin*)
16897      # Convert to unix form, then to dos form, then back to unix form
16898      # but this time dos style (no spaces!) so that the unix form looks
16899      # like /cygdrive/c/PROGRA~1:/cygdr...
16900      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16901      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16902      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16903      ;;
16904    *)
16905      sys_lib_search_path_spec=$LIB
16906      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16907        # It is most probably a Windows format PATH.
16908        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16909      else
16910        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16911      fi
16912      # FIXME: find the short name or the path components, as spaces are
16913      # common. (e.g. "Program Files" -> "PROGRA~1")
16914      ;;
16915    esac
16916
16917    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16918    postinstall_cmds='base_file=`basename \$file`~
16919      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16920      dldir=$destdir/`dirname \$dlpath`~
16921      test -d \$dldir || mkdir -p \$dldir~
16922      $install_prog $dir/$dlname \$dldir/$dlname'
16923    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16924      dlpath=$dir/\$dldll~
16925       $RM \$dlpath'
16926    shlibpath_overrides_runpath=yes
16927    dynamic_linker='Win32 link.exe'
16928    ;;
16929
16930  *)
16931    # Assume MSVC wrapper
16932    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16933    dynamic_linker='Win32 ld.exe'
16934    ;;
16935  esac
16936  # FIXME: first we should search . and the directory the executable is in
16937  shlibpath_var=PATH
16938  ;;
16939
16940darwin* | rhapsody*)
16941  dynamic_linker="$host_os dyld"
16942  version_type=darwin
16943  need_lib_prefix=no
16944  need_version=no
16945  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16946  soname_spec='$libname$release$major$shared_ext'
16947  shlibpath_overrides_runpath=yes
16948  shlibpath_var=DYLD_LIBRARY_PATH
16949  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16950
16951  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16952  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16953  ;;
16954
16955dgux*)
16956  version_type=linux # correct to gnu/linux during the next big refactor
16957  need_lib_prefix=no
16958  need_version=no
16959  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16960  soname_spec='$libname$release$shared_ext$major'
16961  shlibpath_var=LD_LIBRARY_PATH
16962  ;;
16963
16964freebsd* | dragonfly*)
16965  # DragonFly does not have aout.  When/if they implement a new
16966  # versioning mechanism, adjust this.
16967  if test -x /usr/bin/objformat; then
16968    objformat=`/usr/bin/objformat`
16969  else
16970    case $host_os in
16971    freebsd[23].*) objformat=aout ;;
16972    *) objformat=elf ;;
16973    esac
16974  fi
16975  version_type=freebsd-$objformat
16976  case $version_type in
16977    freebsd-elf*)
16978      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16979      soname_spec='$libname$release$shared_ext$major'
16980      need_version=no
16981      need_lib_prefix=no
16982      ;;
16983    freebsd-*)
16984      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16985      need_version=yes
16986      ;;
16987  esac
16988  shlibpath_var=LD_LIBRARY_PATH
16989  case $host_os in
16990  freebsd2.*)
16991    shlibpath_overrides_runpath=yes
16992    ;;
16993  freebsd3.[01]* | freebsdelf3.[01]*)
16994    shlibpath_overrides_runpath=yes
16995    hardcode_into_libs=yes
16996    ;;
16997  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16998  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16999    shlibpath_overrides_runpath=no
17000    hardcode_into_libs=yes
17001    ;;
17002  *) # from 4.6 on, and DragonFly
17003    shlibpath_overrides_runpath=yes
17004    hardcode_into_libs=yes
17005    ;;
17006  esac
17007  ;;
17008
17009haiku*)
17010  version_type=linux # correct to gnu/linux during the next big refactor
17011  need_lib_prefix=no
17012  need_version=no
17013  dynamic_linker="$host_os runtime_loader"
17014  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17015  soname_spec='$libname$release$shared_ext$major'
17016  shlibpath_var=LIBRARY_PATH
17017  shlibpath_overrides_runpath=no
17018  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17019  hardcode_into_libs=yes
17020  ;;
17021
17022hpux9* | hpux10* | hpux11*)
17023  # Give a soname corresponding to the major version so that dld.sl refuses to
17024  # link against other versions.
17025  version_type=sunos
17026  need_lib_prefix=no
17027  need_version=no
17028  case $host_cpu in
17029  ia64*)
17030    shrext_cmds='.so'
17031    hardcode_into_libs=yes
17032    dynamic_linker="$host_os dld.so"
17033    shlibpath_var=LD_LIBRARY_PATH
17034    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17035    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17036    soname_spec='$libname$release$shared_ext$major'
17037    if test 32 = "$HPUX_IA64_MODE"; then
17038      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17039      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17040    else
17041      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17042      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17043    fi
17044    ;;
17045  hppa*64*)
17046    shrext_cmds='.sl'
17047    hardcode_into_libs=yes
17048    dynamic_linker="$host_os dld.sl"
17049    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17050    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17051    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17052    soname_spec='$libname$release$shared_ext$major'
17053    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17054    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17055    ;;
17056  *)
17057    shrext_cmds='.sl'
17058    dynamic_linker="$host_os dld.sl"
17059    shlibpath_var=SHLIB_PATH
17060    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17061    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17062    soname_spec='$libname$release$shared_ext$major'
17063    ;;
17064  esac
17065  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17066  postinstall_cmds='chmod 555 $lib'
17067  # or fails outright, so override atomically:
17068  install_override_mode=555
17069  ;;
17070
17071interix[3-9]*)
17072  version_type=linux # correct to gnu/linux during the next big refactor
17073  need_lib_prefix=no
17074  need_version=no
17075  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17076  soname_spec='$libname$release$shared_ext$major'
17077  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17078  shlibpath_var=LD_LIBRARY_PATH
17079  shlibpath_overrides_runpath=no
17080  hardcode_into_libs=yes
17081  ;;
17082
17083irix5* | irix6* | nonstopux*)
17084  case $host_os in
17085    nonstopux*) version_type=nonstopux ;;
17086    *)
17087	if test yes = "$lt_cv_prog_gnu_ld"; then
17088		version_type=linux # correct to gnu/linux during the next big refactor
17089	else
17090		version_type=irix
17091	fi ;;
17092  esac
17093  need_lib_prefix=no
17094  need_version=no
17095  soname_spec='$libname$release$shared_ext$major'
17096  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17097  case $host_os in
17098  irix5* | nonstopux*)
17099    libsuff= shlibsuff=
17100    ;;
17101  *)
17102    case $LD in # libtool.m4 will add one of these switches to LD
17103    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17104      libsuff= shlibsuff= libmagic=32-bit;;
17105    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17106      libsuff=32 shlibsuff=N32 libmagic=N32;;
17107    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17108      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17109    *) libsuff= shlibsuff= libmagic=never-match;;
17110    esac
17111    ;;
17112  esac
17113  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17114  shlibpath_overrides_runpath=no
17115  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17116  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17117  hardcode_into_libs=yes
17118  ;;
17119
17120# No shared lib support for Linux oldld, aout, or coff.
17121linux*oldld* | linux*aout* | linux*coff*)
17122  dynamic_linker=no
17123  ;;
17124
17125linux*android*)
17126  version_type=none # Android doesn't support versioned libraries.
17127  need_lib_prefix=no
17128  need_version=no
17129  library_names_spec='$libname$release$shared_ext'
17130  soname_spec='$libname$release$shared_ext'
17131  finish_cmds=
17132  shlibpath_var=LD_LIBRARY_PATH
17133  shlibpath_overrides_runpath=yes
17134
17135  # This implies no fast_install, which is unacceptable.
17136  # Some rework will be needed to allow for fast_install
17137  # before this can be enabled.
17138  hardcode_into_libs=yes
17139
17140  dynamic_linker='Android linker'
17141  # Don't embed -rpath directories since the linker doesn't support them.
17142  hardcode_libdir_flag_spec='-L$libdir'
17143  ;;
17144
17145# This must be glibc/ELF.
17146linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17147  version_type=linux # correct to gnu/linux during the next big refactor
17148  need_lib_prefix=no
17149  need_version=no
17150  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17151  soname_spec='$libname$release$shared_ext$major'
17152  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17153  shlibpath_var=LD_LIBRARY_PATH
17154  shlibpath_overrides_runpath=no
17155
17156  # Some binutils ld are patched to set DT_RUNPATH
17157  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17158  $as_echo_n "(cached) " >&6
17159else
17160  lt_cv_shlibpath_overrides_runpath=no
17161    save_LDFLAGS=$LDFLAGS
17162    save_libdir=$libdir
17163    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17164	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166/* end confdefs.h.  */
17167
17168int
17169main ()
17170{
17171
17172  ;
17173  return 0;
17174}
17175_ACEOF
17176if ac_fn_c_try_link "$LINENO"; then :
17177  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17178  lt_cv_shlibpath_overrides_runpath=yes
17179fi
17180fi
17181rm -f core conftest.err conftest.$ac_objext \
17182    conftest$ac_exeext conftest.$ac_ext
17183    LDFLAGS=$save_LDFLAGS
17184    libdir=$save_libdir
17185
17186fi
17187
17188  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17189
17190  # This implies no fast_install, which is unacceptable.
17191  # Some rework will be needed to allow for fast_install
17192  # before this can be enabled.
17193  hardcode_into_libs=yes
17194
17195  # Ideally, we could use ldconfig to report *all* directores which are
17196  # searched for libraries, however this is still not possible.  Aside from not
17197  # being certain /sbin/ldconfig is available, command
17198  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17199  # even though it is searched at run-time.  Try to do the best guess by
17200  # appending ld.so.conf contents (and includes) to the search path.
17201  if test -f /etc/ld.so.conf; then
17202    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' ' '`
17203    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17204  fi
17205
17206  # We used to test for /lib/ld.so.1 and disable shared libraries on
17207  # powerpc, because MkLinux only supported shared libraries with the
17208  # GNU dynamic linker.  Since this was broken with cross compilers,
17209  # most powerpc-linux boxes support dynamic linking these days and
17210  # people can always --disable-shared, the test was removed, and we
17211  # assume the GNU/Linux dynamic linker is in use.
17212  dynamic_linker='GNU/Linux ld.so'
17213  ;;
17214
17215netbsdelf*-gnu)
17216  version_type=linux
17217  need_lib_prefix=no
17218  need_version=no
17219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17220  soname_spec='${libname}${release}${shared_ext}$major'
17221  shlibpath_var=LD_LIBRARY_PATH
17222  shlibpath_overrides_runpath=no
17223  hardcode_into_libs=yes
17224  dynamic_linker='NetBSD ld.elf_so'
17225  ;;
17226
17227netbsd*)
17228  version_type=sunos
17229  need_lib_prefix=no
17230  need_version=no
17231  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17232    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17233    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17234    dynamic_linker='NetBSD (a.out) ld.so'
17235  else
17236    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17237    soname_spec='$libname$release$shared_ext$major'
17238    dynamic_linker='NetBSD ld.elf_so'
17239  fi
17240  shlibpath_var=LD_LIBRARY_PATH
17241  shlibpath_overrides_runpath=yes
17242  hardcode_into_libs=yes
17243  ;;
17244
17245newsos6)
17246  version_type=linux # correct to gnu/linux during the next big refactor
17247  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17248  shlibpath_var=LD_LIBRARY_PATH
17249  shlibpath_overrides_runpath=yes
17250  ;;
17251
17252*nto* | *qnx*)
17253  version_type=qnx
17254  need_lib_prefix=no
17255  need_version=no
17256  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17257  soname_spec='$libname$release$shared_ext$major'
17258  shlibpath_var=LD_LIBRARY_PATH
17259  shlibpath_overrides_runpath=no
17260  hardcode_into_libs=yes
17261  dynamic_linker='ldqnx.so'
17262  ;;
17263
17264openbsd* | bitrig*)
17265  version_type=sunos
17266  sys_lib_dlsearch_path_spec=/usr/lib
17267  need_lib_prefix=no
17268  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17269    need_version=no
17270  else
17271    need_version=yes
17272  fi
17273  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17274  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17275  shlibpath_var=LD_LIBRARY_PATH
17276  shlibpath_overrides_runpath=yes
17277  ;;
17278
17279os2*)
17280  libname_spec='$name'
17281  version_type=windows
17282  shrext_cmds=.dll
17283  need_version=no
17284  need_lib_prefix=no
17285  # OS/2 can only load a DLL with a base name of 8 characters or less.
17286  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17287    v=$($ECHO $release$versuffix | tr -d .-);
17288    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17289    $ECHO $n$v`$shared_ext'
17290  library_names_spec='${libname}_dll.$libext'
17291  dynamic_linker='OS/2 ld.exe'
17292  shlibpath_var=BEGINLIBPATH
17293  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17294  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17295  postinstall_cmds='base_file=`basename \$file`~
17296    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17297    dldir=$destdir/`dirname \$dlpath`~
17298    test -d \$dldir || mkdir -p \$dldir~
17299    $install_prog $dir/$dlname \$dldir/$dlname~
17300    chmod a+x \$dldir/$dlname~
17301    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17302      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17303    fi'
17304  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17305    dlpath=$dir/\$dldll~
17306    $RM \$dlpath'
17307  ;;
17308
17309osf3* | osf4* | osf5*)
17310  version_type=osf
17311  need_lib_prefix=no
17312  need_version=no
17313  soname_spec='$libname$release$shared_ext$major'
17314  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17315  shlibpath_var=LD_LIBRARY_PATH
17316  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17317  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17318  ;;
17319
17320rdos*)
17321  dynamic_linker=no
17322  ;;
17323
17324solaris*)
17325  version_type=linux # correct to gnu/linux during the next big refactor
17326  need_lib_prefix=no
17327  need_version=no
17328  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17329  soname_spec='$libname$release$shared_ext$major'
17330  shlibpath_var=LD_LIBRARY_PATH
17331  shlibpath_overrides_runpath=yes
17332  hardcode_into_libs=yes
17333  # ldd complains unless libraries are executable
17334  postinstall_cmds='chmod +x $lib'
17335  ;;
17336
17337sunos4*)
17338  version_type=sunos
17339  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17340  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17341  shlibpath_var=LD_LIBRARY_PATH
17342  shlibpath_overrides_runpath=yes
17343  if test yes = "$with_gnu_ld"; then
17344    need_lib_prefix=no
17345  fi
17346  need_version=yes
17347  ;;
17348
17349sysv4 | sysv4.3*)
17350  version_type=linux # correct to gnu/linux during the next big refactor
17351  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17352  soname_spec='$libname$release$shared_ext$major'
17353  shlibpath_var=LD_LIBRARY_PATH
17354  case $host_vendor in
17355    sni)
17356      shlibpath_overrides_runpath=no
17357      need_lib_prefix=no
17358      runpath_var=LD_RUN_PATH
17359      ;;
17360    siemens)
17361      need_lib_prefix=no
17362      ;;
17363    motorola)
17364      need_lib_prefix=no
17365      need_version=no
17366      shlibpath_overrides_runpath=no
17367      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17368      ;;
17369  esac
17370  ;;
17371
17372sysv4*MP*)
17373  if test -d /usr/nec; then
17374    version_type=linux # correct to gnu/linux during the next big refactor
17375    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17376    soname_spec='$libname$shared_ext.$major'
17377    shlibpath_var=LD_LIBRARY_PATH
17378  fi
17379  ;;
17380
17381sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17382  version_type=sco
17383  need_lib_prefix=no
17384  need_version=no
17385  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17386  soname_spec='$libname$release$shared_ext$major'
17387  shlibpath_var=LD_LIBRARY_PATH
17388  shlibpath_overrides_runpath=yes
17389  hardcode_into_libs=yes
17390  if test yes = "$with_gnu_ld"; then
17391    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17392  else
17393    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17394    case $host_os in
17395      sco3.2v5*)
17396        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17397	;;
17398    esac
17399  fi
17400  sys_lib_dlsearch_path_spec='/usr/lib'
17401  ;;
17402
17403tpf*)
17404  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17405  version_type=linux # correct to gnu/linux during the next big refactor
17406  need_lib_prefix=no
17407  need_version=no
17408  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17409  shlibpath_var=LD_LIBRARY_PATH
17410  shlibpath_overrides_runpath=no
17411  hardcode_into_libs=yes
17412  ;;
17413
17414uts4*)
17415  version_type=linux # correct to gnu/linux during the next big refactor
17416  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17417  soname_spec='$libname$release$shared_ext$major'
17418  shlibpath_var=LD_LIBRARY_PATH
17419  ;;
17420
17421*)
17422  dynamic_linker=no
17423  ;;
17424esac
17425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17426$as_echo "$dynamic_linker" >&6; }
17427test no = "$dynamic_linker" && can_build_shared=no
17428
17429variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17430if test yes = "$GCC"; then
17431  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17432fi
17433
17434if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17435  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17436fi
17437
17438if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17439  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17440fi
17441
17442# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17443configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17444
17445# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17446func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17447
17448# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17449configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17548$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17549hardcode_action=
17550if test -n "$hardcode_libdir_flag_spec" ||
17551   test -n "$runpath_var" ||
17552   test yes = "$hardcode_automatic"; then
17553
17554  # We can hardcode non-existent directories.
17555  if test no != "$hardcode_direct" &&
17556     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17557     # have to relink, otherwise we might link with an installed library
17558     # when we should be linking with a yet-to-be-installed one
17559     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17560     test no != "$hardcode_minus_L"; then
17561    # Linking always hardcodes the temporary library directory.
17562    hardcode_action=relink
17563  else
17564    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17565    hardcode_action=immediate
17566  fi
17567else
17568  # We cannot hardcode anything, or else we can only hardcode existing
17569  # directories.
17570  hardcode_action=unsupported
17571fi
17572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17573$as_echo "$hardcode_action" >&6; }
17574
17575if test relink = "$hardcode_action" ||
17576   test yes = "$inherit_rpath"; then
17577  # Fast installation is not supported
17578  enable_fast_install=no
17579elif test yes = "$shlibpath_overrides_runpath" ||
17580     test no = "$enable_shared"; then
17581  # Fast installation is not necessary
17582  enable_fast_install=needless
17583fi
17584
17585
17586
17587
17588
17589
17590  if test yes != "$enable_dlopen"; then
17591  enable_dlopen=unknown
17592  enable_dlopen_self=unknown
17593  enable_dlopen_self_static=unknown
17594else
17595  lt_cv_dlopen=no
17596  lt_cv_dlopen_libs=
17597
17598  case $host_os in
17599  beos*)
17600    lt_cv_dlopen=load_add_on
17601    lt_cv_dlopen_libs=
17602    lt_cv_dlopen_self=yes
17603    ;;
17604
17605  mingw* | pw32* | cegcc*)
17606    lt_cv_dlopen=LoadLibrary
17607    lt_cv_dlopen_libs=
17608    ;;
17609
17610  cygwin*)
17611    lt_cv_dlopen=dlopen
17612    lt_cv_dlopen_libs=
17613    ;;
17614
17615  darwin*)
17616    # if libdl is installed we need to link against it
17617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17618$as_echo_n "checking for dlopen in -ldl... " >&6; }
17619if ${ac_cv_lib_dl_dlopen+:} false; then :
17620  $as_echo_n "(cached) " >&6
17621else
17622  ac_check_lib_save_LIBS=$LIBS
17623LIBS="-ldl  $LIBS"
17624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625/* end confdefs.h.  */
17626
17627/* Override any GCC internal prototype to avoid an error.
17628   Use char because int might match the return type of a GCC
17629   builtin and then its argument prototype would still apply.  */
17630#ifdef __cplusplus
17631extern "C"
17632#endif
17633char dlopen ();
17634int
17635main ()
17636{
17637return dlopen ();
17638  ;
17639  return 0;
17640}
17641_ACEOF
17642if ac_fn_c_try_link "$LINENO"; then :
17643  ac_cv_lib_dl_dlopen=yes
17644else
17645  ac_cv_lib_dl_dlopen=no
17646fi
17647rm -f core conftest.err conftest.$ac_objext \
17648    conftest$ac_exeext conftest.$ac_ext
17649LIBS=$ac_check_lib_save_LIBS
17650fi
17651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17652$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17653if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17654  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17655else
17656
17657    lt_cv_dlopen=dyld
17658    lt_cv_dlopen_libs=
17659    lt_cv_dlopen_self=yes
17660
17661fi
17662
17663    ;;
17664
17665  tpf*)
17666    # Don't try to run any link tests for TPF.  We know it's impossible
17667    # because TPF is a cross-compiler, and we know how we open DSOs.
17668    lt_cv_dlopen=dlopen
17669    lt_cv_dlopen_libs=
17670    lt_cv_dlopen_self=no
17671    ;;
17672
17673  *)
17674    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17675if test "x$ac_cv_func_shl_load" = xyes; then :
17676  lt_cv_dlopen=shl_load
17677else
17678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17679$as_echo_n "checking for shl_load in -ldld... " >&6; }
17680if ${ac_cv_lib_dld_shl_load+:} false; then :
17681  $as_echo_n "(cached) " >&6
17682else
17683  ac_check_lib_save_LIBS=$LIBS
17684LIBS="-ldld  $LIBS"
17685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686/* end confdefs.h.  */
17687
17688/* Override any GCC internal prototype to avoid an error.
17689   Use char because int might match the return type of a GCC
17690   builtin and then its argument prototype would still apply.  */
17691#ifdef __cplusplus
17692extern "C"
17693#endif
17694char shl_load ();
17695int
17696main ()
17697{
17698return shl_load ();
17699  ;
17700  return 0;
17701}
17702_ACEOF
17703if ac_fn_c_try_link "$LINENO"; then :
17704  ac_cv_lib_dld_shl_load=yes
17705else
17706  ac_cv_lib_dld_shl_load=no
17707fi
17708rm -f core conftest.err conftest.$ac_objext \
17709    conftest$ac_exeext conftest.$ac_ext
17710LIBS=$ac_check_lib_save_LIBS
17711fi
17712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17713$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17714if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17715  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17716else
17717  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17718if test "x$ac_cv_func_dlopen" = xyes; then :
17719  lt_cv_dlopen=dlopen
17720else
17721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17722$as_echo_n "checking for dlopen in -ldl... " >&6; }
17723if ${ac_cv_lib_dl_dlopen+:} false; then :
17724  $as_echo_n "(cached) " >&6
17725else
17726  ac_check_lib_save_LIBS=$LIBS
17727LIBS="-ldl  $LIBS"
17728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729/* end confdefs.h.  */
17730
17731/* Override any GCC internal prototype to avoid an error.
17732   Use char because int might match the return type of a GCC
17733   builtin and then its argument prototype would still apply.  */
17734#ifdef __cplusplus
17735extern "C"
17736#endif
17737char dlopen ();
17738int
17739main ()
17740{
17741return dlopen ();
17742  ;
17743  return 0;
17744}
17745_ACEOF
17746if ac_fn_c_try_link "$LINENO"; then :
17747  ac_cv_lib_dl_dlopen=yes
17748else
17749  ac_cv_lib_dl_dlopen=no
17750fi
17751rm -f core conftest.err conftest.$ac_objext \
17752    conftest$ac_exeext conftest.$ac_ext
17753LIBS=$ac_check_lib_save_LIBS
17754fi
17755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17756$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17757if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17758  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17759else
17760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17761$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17762if ${ac_cv_lib_svld_dlopen+:} false; then :
17763  $as_echo_n "(cached) " >&6
17764else
17765  ac_check_lib_save_LIBS=$LIBS
17766LIBS="-lsvld  $LIBS"
17767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768/* end confdefs.h.  */
17769
17770/* Override any GCC internal prototype to avoid an error.
17771   Use char because int might match the return type of a GCC
17772   builtin and then its argument prototype would still apply.  */
17773#ifdef __cplusplus
17774extern "C"
17775#endif
17776char dlopen ();
17777int
17778main ()
17779{
17780return dlopen ();
17781  ;
17782  return 0;
17783}
17784_ACEOF
17785if ac_fn_c_try_link "$LINENO"; then :
17786  ac_cv_lib_svld_dlopen=yes
17787else
17788  ac_cv_lib_svld_dlopen=no
17789fi
17790rm -f core conftest.err conftest.$ac_objext \
17791    conftest$ac_exeext conftest.$ac_ext
17792LIBS=$ac_check_lib_save_LIBS
17793fi
17794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17795$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17796if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17797  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17798else
17799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17800$as_echo_n "checking for dld_link in -ldld... " >&6; }
17801if ${ac_cv_lib_dld_dld_link+:} false; then :
17802  $as_echo_n "(cached) " >&6
17803else
17804  ac_check_lib_save_LIBS=$LIBS
17805LIBS="-ldld  $LIBS"
17806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807/* end confdefs.h.  */
17808
17809/* Override any GCC internal prototype to avoid an error.
17810   Use char because int might match the return type of a GCC
17811   builtin and then its argument prototype would still apply.  */
17812#ifdef __cplusplus
17813extern "C"
17814#endif
17815char dld_link ();
17816int
17817main ()
17818{
17819return dld_link ();
17820  ;
17821  return 0;
17822}
17823_ACEOF
17824if ac_fn_c_try_link "$LINENO"; then :
17825  ac_cv_lib_dld_dld_link=yes
17826else
17827  ac_cv_lib_dld_dld_link=no
17828fi
17829rm -f core conftest.err conftest.$ac_objext \
17830    conftest$ac_exeext conftest.$ac_ext
17831LIBS=$ac_check_lib_save_LIBS
17832fi
17833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17834$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17835if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17836  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17837fi
17838
17839
17840fi
17841
17842
17843fi
17844
17845
17846fi
17847
17848
17849fi
17850
17851
17852fi
17853
17854    ;;
17855  esac
17856
17857  if test no = "$lt_cv_dlopen"; then
17858    enable_dlopen=no
17859  else
17860    enable_dlopen=yes
17861  fi
17862
17863  case $lt_cv_dlopen in
17864  dlopen)
17865    save_CPPFLAGS=$CPPFLAGS
17866    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17867
17868    save_LDFLAGS=$LDFLAGS
17869    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17870
17871    save_LIBS=$LIBS
17872    LIBS="$lt_cv_dlopen_libs $LIBS"
17873
17874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17875$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17876if ${lt_cv_dlopen_self+:} false; then :
17877  $as_echo_n "(cached) " >&6
17878else
17879  	  if test yes = "$cross_compiling"; then :
17880  lt_cv_dlopen_self=cross
17881else
17882  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17883  lt_status=$lt_dlunknown
17884  cat > conftest.$ac_ext <<_LT_EOF
17885#line $LINENO "configure"
17886#include "confdefs.h"
17887
17888#if HAVE_DLFCN_H
17889#include <dlfcn.h>
17890#endif
17891
17892#include <stdio.h>
17893
17894#ifdef RTLD_GLOBAL
17895#  define LT_DLGLOBAL		RTLD_GLOBAL
17896#else
17897#  ifdef DL_GLOBAL
17898#    define LT_DLGLOBAL		DL_GLOBAL
17899#  else
17900#    define LT_DLGLOBAL		0
17901#  endif
17902#endif
17903
17904/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17905   find out it does not work in some platform. */
17906#ifndef LT_DLLAZY_OR_NOW
17907#  ifdef RTLD_LAZY
17908#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17909#  else
17910#    ifdef DL_LAZY
17911#      define LT_DLLAZY_OR_NOW		DL_LAZY
17912#    else
17913#      ifdef RTLD_NOW
17914#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17915#      else
17916#        ifdef DL_NOW
17917#          define LT_DLLAZY_OR_NOW	DL_NOW
17918#        else
17919#          define LT_DLLAZY_OR_NOW	0
17920#        endif
17921#      endif
17922#    endif
17923#  endif
17924#endif
17925
17926/* When -fvisibility=hidden is used, assume the code has been annotated
17927   correspondingly for the symbols needed.  */
17928#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17929int fnord () __attribute__((visibility("default")));
17930#endif
17931
17932int fnord () { return 42; }
17933int main ()
17934{
17935  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17936  int status = $lt_dlunknown;
17937
17938  if (self)
17939    {
17940      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17941      else
17942        {
17943	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17944          else puts (dlerror ());
17945	}
17946      /* dlclose (self); */
17947    }
17948  else
17949    puts (dlerror ());
17950
17951  return status;
17952}
17953_LT_EOF
17954  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17955  (eval $ac_link) 2>&5
17956  ac_status=$?
17957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17958  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17959    (./conftest; exit; ) >&5 2>/dev/null
17960    lt_status=$?
17961    case x$lt_status in
17962      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17963      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17964      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17965    esac
17966  else :
17967    # compilation failed
17968    lt_cv_dlopen_self=no
17969  fi
17970fi
17971rm -fr conftest*
17972
17973
17974fi
17975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17976$as_echo "$lt_cv_dlopen_self" >&6; }
17977
17978    if test yes = "$lt_cv_dlopen_self"; then
17979      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17980      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17981$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17982if ${lt_cv_dlopen_self_static+:} false; then :
17983  $as_echo_n "(cached) " >&6
17984else
17985  	  if test yes = "$cross_compiling"; then :
17986  lt_cv_dlopen_self_static=cross
17987else
17988  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17989  lt_status=$lt_dlunknown
17990  cat > conftest.$ac_ext <<_LT_EOF
17991#line $LINENO "configure"
17992#include "confdefs.h"
17993
17994#if HAVE_DLFCN_H
17995#include <dlfcn.h>
17996#endif
17997
17998#include <stdio.h>
17999
18000#ifdef RTLD_GLOBAL
18001#  define LT_DLGLOBAL		RTLD_GLOBAL
18002#else
18003#  ifdef DL_GLOBAL
18004#    define LT_DLGLOBAL		DL_GLOBAL
18005#  else
18006#    define LT_DLGLOBAL		0
18007#  endif
18008#endif
18009
18010/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18011   find out it does not work in some platform. */
18012#ifndef LT_DLLAZY_OR_NOW
18013#  ifdef RTLD_LAZY
18014#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18015#  else
18016#    ifdef DL_LAZY
18017#      define LT_DLLAZY_OR_NOW		DL_LAZY
18018#    else
18019#      ifdef RTLD_NOW
18020#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18021#      else
18022#        ifdef DL_NOW
18023#          define LT_DLLAZY_OR_NOW	DL_NOW
18024#        else
18025#          define LT_DLLAZY_OR_NOW	0
18026#        endif
18027#      endif
18028#    endif
18029#  endif
18030#endif
18031
18032/* When -fvisibility=hidden is used, assume the code has been annotated
18033   correspondingly for the symbols needed.  */
18034#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18035int fnord () __attribute__((visibility("default")));
18036#endif
18037
18038int fnord () { return 42; }
18039int main ()
18040{
18041  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18042  int status = $lt_dlunknown;
18043
18044  if (self)
18045    {
18046      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18047      else
18048        {
18049	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18050          else puts (dlerror ());
18051	}
18052      /* dlclose (self); */
18053    }
18054  else
18055    puts (dlerror ());
18056
18057  return status;
18058}
18059_LT_EOF
18060  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18061  (eval $ac_link) 2>&5
18062  ac_status=$?
18063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18064  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18065    (./conftest; exit; ) >&5 2>/dev/null
18066    lt_status=$?
18067    case x$lt_status in
18068      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18069      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18070      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18071    esac
18072  else :
18073    # compilation failed
18074    lt_cv_dlopen_self_static=no
18075  fi
18076fi
18077rm -fr conftest*
18078
18079
18080fi
18081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18082$as_echo "$lt_cv_dlopen_self_static" >&6; }
18083    fi
18084
18085    CPPFLAGS=$save_CPPFLAGS
18086    LDFLAGS=$save_LDFLAGS
18087    LIBS=$save_LIBS
18088    ;;
18089  esac
18090
18091  case $lt_cv_dlopen_self in
18092  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18093  *) enable_dlopen_self=unknown ;;
18094  esac
18095
18096  case $lt_cv_dlopen_self_static in
18097  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18098  *) enable_dlopen_self_static=unknown ;;
18099  esac
18100fi
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118striplib=
18119old_striplib=
18120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18121$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18122if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18123  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18124  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18126$as_echo "yes" >&6; }
18127else
18128# FIXME - insert some real tests, host_os isn't really good enough
18129  case $host_os in
18130  darwin*)
18131    if test -n "$STRIP"; then
18132      striplib="$STRIP -x"
18133      old_striplib="$STRIP -S"
18134      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18135$as_echo "yes" >&6; }
18136    else
18137      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138$as_echo "no" >&6; }
18139    fi
18140    ;;
18141  *)
18142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18143$as_echo "no" >&6; }
18144    ;;
18145  esac
18146fi
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159  # Report what library types will actually be built
18160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18161$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18163$as_echo "$can_build_shared" >&6; }
18164
18165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18166$as_echo_n "checking whether to build shared libraries... " >&6; }
18167  test no = "$can_build_shared" && enable_shared=no
18168
18169  # On AIX, shared libraries and static libraries use the same namespace, and
18170  # are all built from PIC.
18171  case $host_os in
18172  aix3*)
18173    test yes = "$enable_shared" && enable_static=no
18174    if test -n "$RANLIB"; then
18175      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18176      postinstall_cmds='$RANLIB $lib'
18177    fi
18178    ;;
18179
18180  aix[4-9]*)
18181    if test ia64 != "$host_cpu"; then
18182      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18183      yes,aix,yes) ;;			# shared object as lib.so file only
18184      yes,svr4,*) ;;			# shared object as lib.so archive member only
18185      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18186      esac
18187    fi
18188    ;;
18189  esac
18190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18191$as_echo "$enable_shared" >&6; }
18192
18193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18194$as_echo_n "checking whether to build static libraries... " >&6; }
18195  # Make sure either enable_shared or enable_static is yes.
18196  test yes = "$enable_shared" || enable_static=yes
18197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18198$as_echo "$enable_static" >&6; }
18199
18200
18201
18202
18203fi
18204ac_ext=c
18205ac_cpp='$CPP $CPPFLAGS'
18206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18208ac_compiler_gnu=$ac_cv_c_compiler_gnu
18209
18210CC=$lt_save_CC
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226        ac_config_commands="$ac_config_commands libtool"
18227
18228
18229
18230
18231# Only expand once:
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246ac_config_files="$ac_config_files doc/ccrypt.1 doc/ccguess.1 po/Makefile.in m4/Makefile intl/Makefile Makefile src/Makefile emacs/Makefile check/Makefile doc/Makefile"
18247
18248cat >confcache <<\_ACEOF
18249# This file is a shell script that caches the results of configure
18250# tests run on this system so they can be shared between configure
18251# scripts and configure runs, see configure's option --config-cache.
18252# It is not useful on other systems.  If it contains results you don't
18253# want to keep, you may remove or edit it.
18254#
18255# config.status only pays attention to the cache file if you give it
18256# the --recheck option to rerun configure.
18257#
18258# `ac_cv_env_foo' variables (set or unset) will be overridden when
18259# loading this file, other *unset* `ac_cv_foo' will be assigned the
18260# following values.
18261
18262_ACEOF
18263
18264# The following way of writing the cache mishandles newlines in values,
18265# but we know of no workaround that is simple, portable, and efficient.
18266# So, we kill variables containing newlines.
18267# Ultrix sh set writes to stderr and can't be redirected directly,
18268# and sets the high bit in the cache file unless we assign to the vars.
18269(
18270  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18271    eval ac_val=\$$ac_var
18272    case $ac_val in #(
18273    *${as_nl}*)
18274      case $ac_var in #(
18275      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18276$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18277      esac
18278      case $ac_var in #(
18279      _ | IFS | as_nl) ;; #(
18280      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18281      *) { eval $ac_var=; unset $ac_var;} ;;
18282      esac ;;
18283    esac
18284  done
18285
18286  (set) 2>&1 |
18287    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18288    *${as_nl}ac_space=\ *)
18289      # `set' does not quote correctly, so add quotes: double-quote
18290      # substitution turns \\\\ into \\, and sed turns \\ into \.
18291      sed -n \
18292	"s/'/'\\\\''/g;
18293	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18294      ;; #(
18295    *)
18296      # `set' quotes correctly as required by POSIX, so do not add quotes.
18297      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18298      ;;
18299    esac |
18300    sort
18301) |
18302  sed '
18303     /^ac_cv_env_/b end
18304     t clear
18305     :clear
18306     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18307     t end
18308     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18309     :end' >>confcache
18310if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18311  if test -w "$cache_file"; then
18312    if test "x$cache_file" != "x/dev/null"; then
18313      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18314$as_echo "$as_me: updating cache $cache_file" >&6;}
18315      if test ! -f "$cache_file" || test -h "$cache_file"; then
18316	cat confcache >"$cache_file"
18317      else
18318        case $cache_file in #(
18319        */* | ?:*)
18320	  mv -f confcache "$cache_file"$$ &&
18321	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18322        *)
18323	  mv -f confcache "$cache_file" ;;
18324	esac
18325      fi
18326    fi
18327  else
18328    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18329$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18330  fi
18331fi
18332rm -f confcache
18333
18334test "x$prefix" = xNONE && prefix=$ac_default_prefix
18335# Let make expand exec_prefix.
18336test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18337
18338DEFS=-DHAVE_CONFIG_H
18339
18340ac_libobjs=
18341ac_ltlibobjs=
18342U=
18343for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18344  # 1. Remove the extension, and $U if already installed.
18345  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18346  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18347  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18348  #    will be set to the directory where LIBOBJS objects are built.
18349  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18350  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18351done
18352LIBOBJS=$ac_libobjs
18353
18354LTLIBOBJS=$ac_ltlibobjs
18355
18356
18357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18358$as_echo_n "checking that generated files are newer than configure... " >&6; }
18359   if test -n "$am_sleep_pid"; then
18360     # Hide warnings about reused PIDs.
18361     wait $am_sleep_pid 2>/dev/null
18362   fi
18363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18364$as_echo "done" >&6; }
18365 if test -n "$EXEEXT"; then
18366  am__EXEEXT_TRUE=
18367  am__EXEEXT_FALSE='#'
18368else
18369  am__EXEEXT_TRUE='#'
18370  am__EXEEXT_FALSE=
18371fi
18372
18373if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18374  as_fn_error $? "conditional \"AMDEP\" was never defined.
18375Usually this means the macro was only invoked conditionally." "$LINENO" 5
18376fi
18377if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18378  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18379Usually this means the macro was only invoked conditionally." "$LINENO" 5
18380fi
18381
18382: "${CONFIG_STATUS=./config.status}"
18383ac_write_fail=0
18384ac_clean_files_save=$ac_clean_files
18385ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18386{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18387$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18388as_write_fail=0
18389cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18390#! $SHELL
18391# Generated by $as_me.
18392# Run this file to recreate the current configuration.
18393# Compiler output produced by configure, useful for debugging
18394# configure, is in config.log if it exists.
18395
18396debug=false
18397ac_cs_recheck=false
18398ac_cs_silent=false
18399
18400SHELL=\${CONFIG_SHELL-$SHELL}
18401export SHELL
18402_ASEOF
18403cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18404## -------------------- ##
18405## M4sh Initialization. ##
18406## -------------------- ##
18407
18408# Be more Bourne compatible
18409DUALCASE=1; export DUALCASE # for MKS sh
18410if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18411  emulate sh
18412  NULLCMD=:
18413  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18414  # is contrary to our usage.  Disable this feature.
18415  alias -g '${1+"$@"}'='"$@"'
18416  setopt NO_GLOB_SUBST
18417else
18418  case `(set -o) 2>/dev/null` in #(
18419  *posix*) :
18420    set -o posix ;; #(
18421  *) :
18422     ;;
18423esac
18424fi
18425
18426
18427as_nl='
18428'
18429export as_nl
18430# Printing a long string crashes Solaris 7 /usr/bin/printf.
18431as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18432as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18433as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18434# Prefer a ksh shell builtin over an external printf program on Solaris,
18435# but without wasting forks for bash or zsh.
18436if test -z "$BASH_VERSION$ZSH_VERSION" \
18437    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18438  as_echo='print -r --'
18439  as_echo_n='print -rn --'
18440elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18441  as_echo='printf %s\n'
18442  as_echo_n='printf %s'
18443else
18444  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18445    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18446    as_echo_n='/usr/ucb/echo -n'
18447  else
18448    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18449    as_echo_n_body='eval
18450      arg=$1;
18451      case $arg in #(
18452      *"$as_nl"*)
18453	expr "X$arg" : "X\\(.*\\)$as_nl";
18454	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18455      esac;
18456      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18457    '
18458    export as_echo_n_body
18459    as_echo_n='sh -c $as_echo_n_body as_echo'
18460  fi
18461  export as_echo_body
18462  as_echo='sh -c $as_echo_body as_echo'
18463fi
18464
18465# The user is always right.
18466if test "${PATH_SEPARATOR+set}" != set; then
18467  PATH_SEPARATOR=:
18468  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18469    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18470      PATH_SEPARATOR=';'
18471  }
18472fi
18473
18474
18475# IFS
18476# We need space, tab and new line, in precisely that order.  Quoting is
18477# there to prevent editors from complaining about space-tab.
18478# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18479# splitting by setting IFS to empty value.)
18480IFS=" ""	$as_nl"
18481
18482# Find who we are.  Look in the path if we contain no directory separator.
18483as_myself=
18484case $0 in #((
18485  *[\\/]* ) as_myself=$0 ;;
18486  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18487for as_dir in $PATH
18488do
18489  IFS=$as_save_IFS
18490  test -z "$as_dir" && as_dir=.
18491    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18492  done
18493IFS=$as_save_IFS
18494
18495     ;;
18496esac
18497# We did not find ourselves, most probably we were run as `sh COMMAND'
18498# in which case we are not to be found in the path.
18499if test "x$as_myself" = x; then
18500  as_myself=$0
18501fi
18502if test ! -f "$as_myself"; then
18503  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18504  exit 1
18505fi
18506
18507# Unset variables that we do not need and which cause bugs (e.g. in
18508# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18509# suppresses any "Segmentation fault" message there.  '((' could
18510# trigger a bug in pdksh 5.2.14.
18511for as_var in BASH_ENV ENV MAIL MAILPATH
18512do eval test x\${$as_var+set} = xset \
18513  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18514done
18515PS1='$ '
18516PS2='> '
18517PS4='+ '
18518
18519# NLS nuisances.
18520LC_ALL=C
18521export LC_ALL
18522LANGUAGE=C
18523export LANGUAGE
18524
18525# CDPATH.
18526(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18527
18528
18529# as_fn_error STATUS ERROR [LINENO LOG_FD]
18530# ----------------------------------------
18531# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18532# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18533# script with STATUS, using 1 if that was 0.
18534as_fn_error ()
18535{
18536  as_status=$1; test $as_status -eq 0 && as_status=1
18537  if test "$4"; then
18538    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18539    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18540  fi
18541  $as_echo "$as_me: error: $2" >&2
18542  as_fn_exit $as_status
18543} # as_fn_error
18544
18545
18546# as_fn_set_status STATUS
18547# -----------------------
18548# Set $? to STATUS, without forking.
18549as_fn_set_status ()
18550{
18551  return $1
18552} # as_fn_set_status
18553
18554# as_fn_exit STATUS
18555# -----------------
18556# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18557as_fn_exit ()
18558{
18559  set +e
18560  as_fn_set_status $1
18561  exit $1
18562} # as_fn_exit
18563
18564# as_fn_unset VAR
18565# ---------------
18566# Portably unset VAR.
18567as_fn_unset ()
18568{
18569  { eval $1=; unset $1;}
18570}
18571as_unset=as_fn_unset
18572# as_fn_append VAR VALUE
18573# ----------------------
18574# Append the text in VALUE to the end of the definition contained in VAR. Take
18575# advantage of any shell optimizations that allow amortized linear growth over
18576# repeated appends, instead of the typical quadratic growth present in naive
18577# implementations.
18578if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18579  eval 'as_fn_append ()
18580  {
18581    eval $1+=\$2
18582  }'
18583else
18584  as_fn_append ()
18585  {
18586    eval $1=\$$1\$2
18587  }
18588fi # as_fn_append
18589
18590# as_fn_arith ARG...
18591# ------------------
18592# Perform arithmetic evaluation on the ARGs, and store the result in the
18593# global $as_val. Take advantage of shells that can avoid forks. The arguments
18594# must be portable across $(()) and expr.
18595if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18596  eval 'as_fn_arith ()
18597  {
18598    as_val=$(( $* ))
18599  }'
18600else
18601  as_fn_arith ()
18602  {
18603    as_val=`expr "$@" || test $? -eq 1`
18604  }
18605fi # as_fn_arith
18606
18607
18608if expr a : '\(a\)' >/dev/null 2>&1 &&
18609   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18610  as_expr=expr
18611else
18612  as_expr=false
18613fi
18614
18615if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18616  as_basename=basename
18617else
18618  as_basename=false
18619fi
18620
18621if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18622  as_dirname=dirname
18623else
18624  as_dirname=false
18625fi
18626
18627as_me=`$as_basename -- "$0" ||
18628$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18629	 X"$0" : 'X\(//\)$' \| \
18630	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18631$as_echo X/"$0" |
18632    sed '/^.*\/\([^/][^/]*\)\/*$/{
18633	    s//\1/
18634	    q
18635	  }
18636	  /^X\/\(\/\/\)$/{
18637	    s//\1/
18638	    q
18639	  }
18640	  /^X\/\(\/\).*/{
18641	    s//\1/
18642	    q
18643	  }
18644	  s/.*/./; q'`
18645
18646# Avoid depending upon Character Ranges.
18647as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18648as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18649as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18650as_cr_digits='0123456789'
18651as_cr_alnum=$as_cr_Letters$as_cr_digits
18652
18653ECHO_C= ECHO_N= ECHO_T=
18654case `echo -n x` in #(((((
18655-n*)
18656  case `echo 'xy\c'` in
18657  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18658  xy)  ECHO_C='\c';;
18659  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18660       ECHO_T='	';;
18661  esac;;
18662*)
18663  ECHO_N='-n';;
18664esac
18665
18666rm -f conf$$ conf$$.exe conf$$.file
18667if test -d conf$$.dir; then
18668  rm -f conf$$.dir/conf$$.file
18669else
18670  rm -f conf$$.dir
18671  mkdir conf$$.dir 2>/dev/null
18672fi
18673if (echo >conf$$.file) 2>/dev/null; then
18674  if ln -s conf$$.file conf$$ 2>/dev/null; then
18675    as_ln_s='ln -s'
18676    # ... but there are two gotchas:
18677    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18678    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18679    # In both cases, we have to default to `cp -pR'.
18680    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18681      as_ln_s='cp -pR'
18682  elif ln conf$$.file conf$$ 2>/dev/null; then
18683    as_ln_s=ln
18684  else
18685    as_ln_s='cp -pR'
18686  fi
18687else
18688  as_ln_s='cp -pR'
18689fi
18690rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18691rmdir conf$$.dir 2>/dev/null
18692
18693
18694# as_fn_mkdir_p
18695# -------------
18696# Create "$as_dir" as a directory, including parents if necessary.
18697as_fn_mkdir_p ()
18698{
18699
18700  case $as_dir in #(
18701  -*) as_dir=./$as_dir;;
18702  esac
18703  test -d "$as_dir" || eval $as_mkdir_p || {
18704    as_dirs=
18705    while :; do
18706      case $as_dir in #(
18707      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18708      *) as_qdir=$as_dir;;
18709      esac
18710      as_dirs="'$as_qdir' $as_dirs"
18711      as_dir=`$as_dirname -- "$as_dir" ||
18712$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18713	 X"$as_dir" : 'X\(//\)[^/]' \| \
18714	 X"$as_dir" : 'X\(//\)$' \| \
18715	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18716$as_echo X"$as_dir" |
18717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18718	    s//\1/
18719	    q
18720	  }
18721	  /^X\(\/\/\)[^/].*/{
18722	    s//\1/
18723	    q
18724	  }
18725	  /^X\(\/\/\)$/{
18726	    s//\1/
18727	    q
18728	  }
18729	  /^X\(\/\).*/{
18730	    s//\1/
18731	    q
18732	  }
18733	  s/.*/./; q'`
18734      test -d "$as_dir" && break
18735    done
18736    test -z "$as_dirs" || eval "mkdir $as_dirs"
18737  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18738
18739
18740} # as_fn_mkdir_p
18741if mkdir -p . 2>/dev/null; then
18742  as_mkdir_p='mkdir -p "$as_dir"'
18743else
18744  test -d ./-p && rmdir ./-p
18745  as_mkdir_p=false
18746fi
18747
18748
18749# as_fn_executable_p FILE
18750# -----------------------
18751# Test if FILE is an executable regular file.
18752as_fn_executable_p ()
18753{
18754  test -f "$1" && test -x "$1"
18755} # as_fn_executable_p
18756as_test_x='test -x'
18757as_executable_p=as_fn_executable_p
18758
18759# Sed expression to map a string onto a valid CPP name.
18760as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18761
18762# Sed expression to map a string onto a valid variable name.
18763as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18764
18765
18766exec 6>&1
18767## ----------------------------------- ##
18768## Main body of $CONFIG_STATUS script. ##
18769## ----------------------------------- ##
18770_ASEOF
18771test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18772
18773cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18774# Save the log message, to keep $0 and so on meaningful, and to
18775# report actual input values of CONFIG_FILES etc. instead of their
18776# values after options handling.
18777ac_log="
18778This file was extended by ccrypt $as_me 1.11, which was
18779generated by GNU Autoconf 2.69.  Invocation command line was
18780
18781  CONFIG_FILES    = $CONFIG_FILES
18782  CONFIG_HEADERS  = $CONFIG_HEADERS
18783  CONFIG_LINKS    = $CONFIG_LINKS
18784  CONFIG_COMMANDS = $CONFIG_COMMANDS
18785  $ $0 $@
18786
18787on `(hostname || uname -n) 2>/dev/null | sed 1q`
18788"
18789
18790_ACEOF
18791
18792case $ac_config_files in *"
18793"*) set x $ac_config_files; shift; ac_config_files=$*;;
18794esac
18795
18796case $ac_config_headers in *"
18797"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18798esac
18799
18800
18801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18802# Files that config.status was made for.
18803config_files="$ac_config_files"
18804config_headers="$ac_config_headers"
18805config_commands="$ac_config_commands"
18806
18807_ACEOF
18808
18809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18810ac_cs_usage="\
18811\`$as_me' instantiates files and other configuration actions
18812from templates according to the current configuration.  Unless the files
18813and actions are specified as TAGs, all are instantiated by default.
18814
18815Usage: $0 [OPTION]... [TAG]...
18816
18817  -h, --help       print this help, then exit
18818  -V, --version    print version number and configuration settings, then exit
18819      --config     print configuration, then exit
18820  -q, --quiet, --silent
18821                   do not print progress messages
18822  -d, --debug      don't remove temporary files
18823      --recheck    update $as_me by reconfiguring in the same conditions
18824      --file=FILE[:TEMPLATE]
18825                   instantiate the configuration file FILE
18826      --header=FILE[:TEMPLATE]
18827                   instantiate the configuration header FILE
18828
18829Configuration files:
18830$config_files
18831
18832Configuration headers:
18833$config_headers
18834
18835Configuration commands:
18836$config_commands
18837
18838Report bugs to <selinger at users.sourceforge.net>."
18839
18840_ACEOF
18841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18842ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18843ac_cs_version="\\
18844ccrypt config.status 1.11
18845configured by $0, generated by GNU Autoconf 2.69,
18846  with options \\"\$ac_cs_config\\"
18847
18848Copyright (C) 2012 Free Software Foundation, Inc.
18849This config.status script is free software; the Free Software Foundation
18850gives unlimited permission to copy, distribute and modify it."
18851
18852ac_pwd='$ac_pwd'
18853srcdir='$srcdir'
18854INSTALL='$INSTALL'
18855MKDIR_P='$MKDIR_P'
18856AWK='$AWK'
18857test -n "\$AWK" || AWK=awk
18858_ACEOF
18859
18860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18861# The default lists apply if the user does not specify any file.
18862ac_need_defaults=:
18863while test $# != 0
18864do
18865  case $1 in
18866  --*=?*)
18867    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18868    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18869    ac_shift=:
18870    ;;
18871  --*=)
18872    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18873    ac_optarg=
18874    ac_shift=:
18875    ;;
18876  *)
18877    ac_option=$1
18878    ac_optarg=$2
18879    ac_shift=shift
18880    ;;
18881  esac
18882
18883  case $ac_option in
18884  # Handling of the options.
18885  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18886    ac_cs_recheck=: ;;
18887  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18888    $as_echo "$ac_cs_version"; exit ;;
18889  --config | --confi | --conf | --con | --co | --c )
18890    $as_echo "$ac_cs_config"; exit ;;
18891  --debug | --debu | --deb | --de | --d | -d )
18892    debug=: ;;
18893  --file | --fil | --fi | --f )
18894    $ac_shift
18895    case $ac_optarg in
18896    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18897    '') as_fn_error $? "missing file argument" ;;
18898    esac
18899    as_fn_append CONFIG_FILES " '$ac_optarg'"
18900    ac_need_defaults=false;;
18901  --header | --heade | --head | --hea )
18902    $ac_shift
18903    case $ac_optarg in
18904    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18905    esac
18906    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18907    ac_need_defaults=false;;
18908  --he | --h)
18909    # Conflict between --help and --header
18910    as_fn_error $? "ambiguous option: \`$1'
18911Try \`$0 --help' for more information.";;
18912  --help | --hel | -h )
18913    $as_echo "$ac_cs_usage"; exit ;;
18914  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18915  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18916    ac_cs_silent=: ;;
18917
18918  # This is an error.
18919  -*) as_fn_error $? "unrecognized option: \`$1'
18920Try \`$0 --help' for more information." ;;
18921
18922  *) as_fn_append ac_config_targets " $1"
18923     ac_need_defaults=false ;;
18924
18925  esac
18926  shift
18927done
18928
18929ac_configure_extra_args=
18930
18931if $ac_cs_silent; then
18932  exec 6>/dev/null
18933  ac_configure_extra_args="$ac_configure_extra_args --silent"
18934fi
18935
18936_ACEOF
18937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18938if \$ac_cs_recheck; then
18939  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18940  shift
18941  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18942  CONFIG_SHELL='$SHELL'
18943  export CONFIG_SHELL
18944  exec "\$@"
18945fi
18946
18947_ACEOF
18948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18949exec 5>>config.log
18950{
18951  echo
18952  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18953## Running $as_me. ##
18954_ASBOX
18955  $as_echo "$ac_log"
18956} >&5
18957
18958_ACEOF
18959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18960#
18961# INIT-COMMANDS
18962#
18963AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18964# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18965    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18966    # from automake < 1.5.
18967    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18968    # Capture the value of LINGUAS because we need it to compute CATALOGS.
18969    LINGUAS="${LINGUAS-%UNSET%}"
18970
18971
18972
18973# The HP-UX ksh and POSIX shell print the target directory to stdout
18974# if CDPATH is set.
18975(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18976
18977sed_quote_subst='$sed_quote_subst'
18978double_quote_subst='$double_quote_subst'
18979delay_variable_subst='$delay_variable_subst'
18980macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18981macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18982enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18983enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18984pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18985enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18986shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18987SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18988ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18989PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18990host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18991host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18992host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18993build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18994build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18995build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18996SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18997Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18998GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18999EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19000FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19001LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19002NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19003LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19004max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19005ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19006exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19007lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19008lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19009lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19010lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19011lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19012reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19013reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19014OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19015deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19016file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19017file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19018want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19019DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19020sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19021AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19022AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19023archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19024STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19025RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19026old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19027old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19028old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19029lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19030CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19031CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19032compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19033GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19034lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19035lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19036lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19037lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19038lt_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"`'
19039lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19040nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19041lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19042lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19043objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19044MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19045lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19046lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19047lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19048lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19049lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19050need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19051MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19052DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19053NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19054LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19055OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19056OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19057libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19058shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19059extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19060archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19061enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19062export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19063whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19064compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19065old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19066old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19067archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19068archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19069module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19070module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19071with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19072allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19073no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19074hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19075hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19076hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19077hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19078hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19079hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19080hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19081inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19082link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19083always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19084export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19085exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19086include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19087prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19088postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19089file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19090variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19091need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19092need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19093version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19094runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19095shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19096shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19097libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19098library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19099soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19100install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19101postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19102postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19103finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19104finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19105hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19106sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19107configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19108configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19109hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19110enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19111enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19112enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19113old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19114striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19115
19116LTCC='$LTCC'
19117LTCFLAGS='$LTCFLAGS'
19118compiler='$compiler_DEFAULT'
19119
19120# A function that is used when there is no print builtin or printf.
19121func_fallback_echo ()
19122{
19123  eval 'cat <<_LTECHO_EOF
19124\$1
19125_LTECHO_EOF'
19126}
19127
19128# Quote evaled strings.
19129for var in SHELL \
19130ECHO \
19131PATH_SEPARATOR \
19132SED \
19133GREP \
19134EGREP \
19135FGREP \
19136LD \
19137NM \
19138LN_S \
19139lt_SP2NL \
19140lt_NL2SP \
19141reload_flag \
19142OBJDUMP \
19143deplibs_check_method \
19144file_magic_cmd \
19145file_magic_glob \
19146want_nocaseglob \
19147DLLTOOL \
19148sharedlib_from_linklib_cmd \
19149AR \
19150AR_FLAGS \
19151archiver_list_spec \
19152STRIP \
19153RANLIB \
19154CC \
19155CFLAGS \
19156compiler \
19157lt_cv_sys_global_symbol_pipe \
19158lt_cv_sys_global_symbol_to_cdecl \
19159lt_cv_sys_global_symbol_to_import \
19160lt_cv_sys_global_symbol_to_c_name_address \
19161lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19162lt_cv_nm_interface \
19163nm_file_list_spec \
19164lt_cv_truncate_bin \
19165lt_prog_compiler_no_builtin_flag \
19166lt_prog_compiler_pic \
19167lt_prog_compiler_wl \
19168lt_prog_compiler_static \
19169lt_cv_prog_compiler_c_o \
19170need_locks \
19171MANIFEST_TOOL \
19172DSYMUTIL \
19173NMEDIT \
19174LIPO \
19175OTOOL \
19176OTOOL64 \
19177shrext_cmds \
19178export_dynamic_flag_spec \
19179whole_archive_flag_spec \
19180compiler_needs_object \
19181with_gnu_ld \
19182allow_undefined_flag \
19183no_undefined_flag \
19184hardcode_libdir_flag_spec \
19185hardcode_libdir_separator \
19186exclude_expsyms \
19187include_expsyms \
19188file_list_spec \
19189variables_saved_for_relink \
19190libname_spec \
19191library_names_spec \
19192soname_spec \
19193install_override_mode \
19194finish_eval \
19195old_striplib \
19196striplib; do
19197    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19198    *[\\\\\\\`\\"\\\$]*)
19199      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19200      ;;
19201    *)
19202      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19203      ;;
19204    esac
19205done
19206
19207# Double-quote double-evaled strings.
19208for var in reload_cmds \
19209old_postinstall_cmds \
19210old_postuninstall_cmds \
19211old_archive_cmds \
19212extract_expsyms_cmds \
19213old_archive_from_new_cmds \
19214old_archive_from_expsyms_cmds \
19215archive_cmds \
19216archive_expsym_cmds \
19217module_cmds \
19218module_expsym_cmds \
19219export_symbols_cmds \
19220prelink_cmds \
19221postlink_cmds \
19222postinstall_cmds \
19223postuninstall_cmds \
19224finish_cmds \
19225sys_lib_search_path_spec \
19226configure_time_dlsearch_path \
19227configure_time_lt_sys_library_path; do
19228    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19229    *[\\\\\\\`\\"\\\$]*)
19230      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19231      ;;
19232    *)
19233      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19234      ;;
19235    esac
19236done
19237
19238ac_aux_dir='$ac_aux_dir'
19239
19240# See if we are running on zsh, and set the options that allow our
19241# commands through without removal of \ escapes INIT.
19242if test -n "\${ZSH_VERSION+set}"; then
19243   setopt NO_GLOB_SUBST
19244fi
19245
19246
19247    PACKAGE='$PACKAGE'
19248    VERSION='$VERSION'
19249    RM='$RM'
19250    ofile='$ofile'
19251
19252
19253
19254
19255_ACEOF
19256
19257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19258
19259# Handling of arguments.
19260for ac_config_target in $ac_config_targets
19261do
19262  case $ac_config_target in
19263    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19264    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19265    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19266    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19267    "doc/ccrypt.1") CONFIG_FILES="$CONFIG_FILES doc/ccrypt.1" ;;
19268    "doc/ccguess.1") CONFIG_FILES="$CONFIG_FILES doc/ccguess.1" ;;
19269    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19270    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
19271    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
19272    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19273    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19274    "emacs/Makefile") CONFIG_FILES="$CONFIG_FILES emacs/Makefile" ;;
19275    "check/Makefile") CONFIG_FILES="$CONFIG_FILES check/Makefile" ;;
19276    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19277
19278  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19279  esac
19280done
19281
19282
19283# If the user did not use the arguments to specify the items to instantiate,
19284# then the envvar interface is used.  Set only those that are not.
19285# We use the long form for the default assignment because of an extremely
19286# bizarre bug on SunOS 4.1.3.
19287if $ac_need_defaults; then
19288  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19289  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19290  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19291fi
19292
19293# Have a temporary directory for convenience.  Make it in the build tree
19294# simply because there is no reason against having it here, and in addition,
19295# creating and moving files from /tmp can sometimes cause problems.
19296# Hook for its removal unless debugging.
19297# Note that there is a small window in which the directory will not be cleaned:
19298# after its creation but before its name has been assigned to `$tmp'.
19299$debug ||
19300{
19301  tmp= ac_tmp=
19302  trap 'exit_status=$?
19303  : "${ac_tmp:=$tmp}"
19304  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19305' 0
19306  trap 'as_fn_exit 1' 1 2 13 15
19307}
19308# Create a (secure) tmp directory for tmp files.
19309
19310{
19311  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19312  test -d "$tmp"
19313}  ||
19314{
19315  tmp=./conf$$-$RANDOM
19316  (umask 077 && mkdir "$tmp")
19317} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19318ac_tmp=$tmp
19319
19320# Set up the scripts for CONFIG_FILES section.
19321# No need to generate them if there are no CONFIG_FILES.
19322# This happens for instance with `./config.status config.h'.
19323if test -n "$CONFIG_FILES"; then
19324
19325
19326ac_cr=`echo X | tr X '\015'`
19327# On cygwin, bash can eat \r inside `` if the user requested igncr.
19328# But we know of no other shell where ac_cr would be empty at this
19329# point, so we can use a bashism as a fallback.
19330if test "x$ac_cr" = x; then
19331  eval ac_cr=\$\'\\r\'
19332fi
19333ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19334if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19335  ac_cs_awk_cr='\\r'
19336else
19337  ac_cs_awk_cr=$ac_cr
19338fi
19339
19340echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19341_ACEOF
19342
19343
19344{
19345  echo "cat >conf$$subs.awk <<_ACEOF" &&
19346  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19347  echo "_ACEOF"
19348} >conf$$subs.sh ||
19349  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19350ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19351ac_delim='%!_!# '
19352for ac_last_try in false false false false false :; do
19353  . ./conf$$subs.sh ||
19354    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19355
19356  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19357  if test $ac_delim_n = $ac_delim_num; then
19358    break
19359  elif $ac_last_try; then
19360    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19361  else
19362    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19363  fi
19364done
19365rm -f conf$$subs.sh
19366
19367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19368cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19369_ACEOF
19370sed -n '
19371h
19372s/^/S["/; s/!.*/"]=/
19373p
19374g
19375s/^[^!]*!//
19376:repl
19377t repl
19378s/'"$ac_delim"'$//
19379t delim
19380:nl
19381h
19382s/\(.\{148\}\)..*/\1/
19383t more1
19384s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19385p
19386n
19387b repl
19388:more1
19389s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19390p
19391g
19392s/.\{148\}//
19393t nl
19394:delim
19395h
19396s/\(.\{148\}\)..*/\1/
19397t more2
19398s/["\\]/\\&/g; s/^/"/; s/$/"/
19399p
19400b
19401:more2
19402s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19403p
19404g
19405s/.\{148\}//
19406t delim
19407' <conf$$subs.awk | sed '
19408/^[^""]/{
19409  N
19410  s/\n//
19411}
19412' >>$CONFIG_STATUS || ac_write_fail=1
19413rm -f conf$$subs.awk
19414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19415_ACAWK
19416cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19417  for (key in S) S_is_set[key] = 1
19418  FS = ""
19419
19420}
19421{
19422  line = $ 0
19423  nfields = split(line, field, "@")
19424  substed = 0
19425  len = length(field[1])
19426  for (i = 2; i < nfields; i++) {
19427    key = field[i]
19428    keylen = length(key)
19429    if (S_is_set[key]) {
19430      value = S[key]
19431      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19432      len += length(value) + length(field[++i])
19433      substed = 1
19434    } else
19435      len += 1 + keylen
19436  }
19437
19438  print line
19439}
19440
19441_ACAWK
19442_ACEOF
19443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19444if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19445  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19446else
19447  cat
19448fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19449  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19450_ACEOF
19451
19452# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19453# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19454# trailing colons and then remove the whole line if VPATH becomes empty
19455# (actually we leave an empty line to preserve line numbers).
19456if test "x$srcdir" = x.; then
19457  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19458h
19459s///
19460s/^/:/
19461s/[	 ]*$/:/
19462s/:\$(srcdir):/:/g
19463s/:\${srcdir}:/:/g
19464s/:@srcdir@:/:/g
19465s/^:*//
19466s/:*$//
19467x
19468s/\(=[	 ]*\).*/\1/
19469G
19470s/\n//
19471s/^[^=]*=[	 ]*$//
19472}'
19473fi
19474
19475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19476fi # test -n "$CONFIG_FILES"
19477
19478# Set up the scripts for CONFIG_HEADERS section.
19479# No need to generate them if there are no CONFIG_HEADERS.
19480# This happens for instance with `./config.status Makefile'.
19481if test -n "$CONFIG_HEADERS"; then
19482cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19483BEGIN {
19484_ACEOF
19485
19486# Transform confdefs.h into an awk script `defines.awk', embedded as
19487# here-document in config.status, that substitutes the proper values into
19488# config.h.in to produce config.h.
19489
19490# Create a delimiter string that does not exist in confdefs.h, to ease
19491# handling of long lines.
19492ac_delim='%!_!# '
19493for ac_last_try in false false :; do
19494  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19495  if test -z "$ac_tt"; then
19496    break
19497  elif $ac_last_try; then
19498    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19499  else
19500    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19501  fi
19502done
19503
19504# For the awk script, D is an array of macro values keyed by name,
19505# likewise P contains macro parameters if any.  Preserve backslash
19506# newline sequences.
19507
19508ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19509sed -n '
19510s/.\{148\}/&'"$ac_delim"'/g
19511t rset
19512:rset
19513s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19514t def
19515d
19516:def
19517s/\\$//
19518t bsnl
19519s/["\\]/\\&/g
19520s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19521D["\1"]=" \3"/p
19522s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19523d
19524:bsnl
19525s/["\\]/\\&/g
19526s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19527D["\1"]=" \3\\\\\\n"\\/p
19528t cont
19529s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19530t cont
19531d
19532:cont
19533n
19534s/.\{148\}/&'"$ac_delim"'/g
19535t clear
19536:clear
19537s/\\$//
19538t bsnlc
19539s/["\\]/\\&/g; s/^/"/; s/$/"/p
19540d
19541:bsnlc
19542s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19543b cont
19544' <confdefs.h | sed '
19545s/'"$ac_delim"'/"\\\
19546"/g' >>$CONFIG_STATUS || ac_write_fail=1
19547
19548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19549  for (key in D) D_is_set[key] = 1
19550  FS = ""
19551}
19552/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19553  line = \$ 0
19554  split(line, arg, " ")
19555  if (arg[1] == "#") {
19556    defundef = arg[2]
19557    mac1 = arg[3]
19558  } else {
19559    defundef = substr(arg[1], 2)
19560    mac1 = arg[2]
19561  }
19562  split(mac1, mac2, "(") #)
19563  macro = mac2[1]
19564  prefix = substr(line, 1, index(line, defundef) - 1)
19565  if (D_is_set[macro]) {
19566    # Preserve the white space surrounding the "#".
19567    print prefix "define", macro P[macro] D[macro]
19568    next
19569  } else {
19570    # Replace #undef with comments.  This is necessary, for example,
19571    # in the case of _POSIX_SOURCE, which is predefined and required
19572    # on some systems where configure will not decide to define it.
19573    if (defundef == "undef") {
19574      print "/*", prefix defundef, macro, "*/"
19575      next
19576    }
19577  }
19578}
19579{ print }
19580_ACAWK
19581_ACEOF
19582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19583  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19584fi # test -n "$CONFIG_HEADERS"
19585
19586
19587eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19588shift
19589for ac_tag
19590do
19591  case $ac_tag in
19592  :[FHLC]) ac_mode=$ac_tag; continue;;
19593  esac
19594  case $ac_mode$ac_tag in
19595  :[FHL]*:*);;
19596  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19597  :[FH]-) ac_tag=-:-;;
19598  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19599  esac
19600  ac_save_IFS=$IFS
19601  IFS=:
19602  set x $ac_tag
19603  IFS=$ac_save_IFS
19604  shift
19605  ac_file=$1
19606  shift
19607
19608  case $ac_mode in
19609  :L) ac_source=$1;;
19610  :[FH])
19611    ac_file_inputs=
19612    for ac_f
19613    do
19614      case $ac_f in
19615      -) ac_f="$ac_tmp/stdin";;
19616      *) # Look for the file first in the build tree, then in the source tree
19617	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19618	 # because $ac_f cannot contain `:'.
19619	 test -f "$ac_f" ||
19620	   case $ac_f in
19621	   [\\/$]*) false;;
19622	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19623	   esac ||
19624	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19625      esac
19626      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19627      as_fn_append ac_file_inputs " '$ac_f'"
19628    done
19629
19630    # Let's still pretend it is `configure' which instantiates (i.e., don't
19631    # use $as_me), people would be surprised to read:
19632    #    /* config.h.  Generated by config.status.  */
19633    configure_input='Generated from '`
19634	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19635	`' by configure.'
19636    if test x"$ac_file" != x-; then
19637      configure_input="$ac_file.  $configure_input"
19638      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19639$as_echo "$as_me: creating $ac_file" >&6;}
19640    fi
19641    # Neutralize special characters interpreted by sed in replacement strings.
19642    case $configure_input in #(
19643    *\&* | *\|* | *\\* )
19644       ac_sed_conf_input=`$as_echo "$configure_input" |
19645       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19646    *) ac_sed_conf_input=$configure_input;;
19647    esac
19648
19649    case $ac_tag in
19650    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19651      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19652    esac
19653    ;;
19654  esac
19655
19656  ac_dir=`$as_dirname -- "$ac_file" ||
19657$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19658	 X"$ac_file" : 'X\(//\)[^/]' \| \
19659	 X"$ac_file" : 'X\(//\)$' \| \
19660	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19661$as_echo X"$ac_file" |
19662    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19663	    s//\1/
19664	    q
19665	  }
19666	  /^X\(\/\/\)[^/].*/{
19667	    s//\1/
19668	    q
19669	  }
19670	  /^X\(\/\/\)$/{
19671	    s//\1/
19672	    q
19673	  }
19674	  /^X\(\/\).*/{
19675	    s//\1/
19676	    q
19677	  }
19678	  s/.*/./; q'`
19679  as_dir="$ac_dir"; as_fn_mkdir_p
19680  ac_builddir=.
19681
19682case "$ac_dir" in
19683.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19684*)
19685  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19686  # A ".." for each directory in $ac_dir_suffix.
19687  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19688  case $ac_top_builddir_sub in
19689  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19690  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19691  esac ;;
19692esac
19693ac_abs_top_builddir=$ac_pwd
19694ac_abs_builddir=$ac_pwd$ac_dir_suffix
19695# for backward compatibility:
19696ac_top_builddir=$ac_top_build_prefix
19697
19698case $srcdir in
19699  .)  # We are building in place.
19700    ac_srcdir=.
19701    ac_top_srcdir=$ac_top_builddir_sub
19702    ac_abs_top_srcdir=$ac_pwd ;;
19703  [\\/]* | ?:[\\/]* )  # Absolute name.
19704    ac_srcdir=$srcdir$ac_dir_suffix;
19705    ac_top_srcdir=$srcdir
19706    ac_abs_top_srcdir=$srcdir ;;
19707  *) # Relative name.
19708    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19709    ac_top_srcdir=$ac_top_build_prefix$srcdir
19710    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19711esac
19712ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19713
19714
19715  case $ac_mode in
19716  :F)
19717  #
19718  # CONFIG_FILE
19719  #
19720
19721  case $INSTALL in
19722  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19723  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19724  esac
19725  ac_MKDIR_P=$MKDIR_P
19726  case $MKDIR_P in
19727  [\\/$]* | ?:[\\/]* ) ;;
19728  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19729  esac
19730_ACEOF
19731
19732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19733# If the template does not know about datarootdir, expand it.
19734# FIXME: This hack should be removed a few years after 2.60.
19735ac_datarootdir_hack=; ac_datarootdir_seen=
19736ac_sed_dataroot='
19737/datarootdir/ {
19738  p
19739  q
19740}
19741/@datadir@/p
19742/@docdir@/p
19743/@infodir@/p
19744/@localedir@/p
19745/@mandir@/p'
19746case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19747*datarootdir*) ac_datarootdir_seen=yes;;
19748*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19749  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19750$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19751_ACEOF
19752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19753  ac_datarootdir_hack='
19754  s&@datadir@&$datadir&g
19755  s&@docdir@&$docdir&g
19756  s&@infodir@&$infodir&g
19757  s&@localedir@&$localedir&g
19758  s&@mandir@&$mandir&g
19759  s&\\\${datarootdir}&$datarootdir&g' ;;
19760esac
19761_ACEOF
19762
19763# Neutralize VPATH when `$srcdir' = `.'.
19764# Shell code in configure.ac might set extrasub.
19765# FIXME: do we really want to maintain this feature?
19766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19767ac_sed_extra="$ac_vpsub
19768$extrasub
19769_ACEOF
19770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19771:t
19772/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19773s|@configure_input@|$ac_sed_conf_input|;t t
19774s&@top_builddir@&$ac_top_builddir_sub&;t t
19775s&@top_build_prefix@&$ac_top_build_prefix&;t t
19776s&@srcdir@&$ac_srcdir&;t t
19777s&@abs_srcdir@&$ac_abs_srcdir&;t t
19778s&@top_srcdir@&$ac_top_srcdir&;t t
19779s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19780s&@builddir@&$ac_builddir&;t t
19781s&@abs_builddir@&$ac_abs_builddir&;t t
19782s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19783s&@INSTALL@&$ac_INSTALL&;t t
19784s&@MKDIR_P@&$ac_MKDIR_P&;t t
19785$ac_datarootdir_hack
19786"
19787eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19788  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19789
19790test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19791  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19792  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19793      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19794  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19795which seems to be undefined.  Please make sure it is defined" >&5
19796$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19797which seems to be undefined.  Please make sure it is defined" >&2;}
19798
19799  rm -f "$ac_tmp/stdin"
19800  case $ac_file in
19801  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19802  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19803  esac \
19804  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19805 ;;
19806  :H)
19807  #
19808  # CONFIG_HEADER
19809  #
19810  if test x"$ac_file" != x-; then
19811    {
19812      $as_echo "/* $configure_input  */" \
19813      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19814    } >"$ac_tmp/config.h" \
19815      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19816    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19817      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19818$as_echo "$as_me: $ac_file is unchanged" >&6;}
19819    else
19820      rm -f "$ac_file"
19821      mv "$ac_tmp/config.h" "$ac_file" \
19822	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19823    fi
19824  else
19825    $as_echo "/* $configure_input  */" \
19826      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19827      || as_fn_error $? "could not create -" "$LINENO" 5
19828  fi
19829# Compute "$ac_file"'s index in $config_headers.
19830_am_arg="$ac_file"
19831_am_stamp_count=1
19832for _am_header in $config_headers :; do
19833  case $_am_header in
19834    $_am_arg | $_am_arg:* )
19835      break ;;
19836    * )
19837      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19838  esac
19839done
19840echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19841$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19842	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19843	 X"$_am_arg" : 'X\(//\)$' \| \
19844	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19845$as_echo X"$_am_arg" |
19846    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19847	    s//\1/
19848	    q
19849	  }
19850	  /^X\(\/\/\)[^/].*/{
19851	    s//\1/
19852	    q
19853	  }
19854	  /^X\(\/\/\)$/{
19855	    s//\1/
19856	    q
19857	  }
19858	  /^X\(\/\).*/{
19859	    s//\1/
19860	    q
19861	  }
19862	  s/.*/./; q'`/stamp-h$_am_stamp_count
19863 ;;
19864
19865  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19866$as_echo "$as_me: executing $ac_file commands" >&6;}
19867 ;;
19868  esac
19869
19870
19871  case $ac_file$ac_mode in
19872    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19873  # Older Autoconf quotes --file arguments for eval, but not when files
19874  # are listed without --file.  Let's play safe and only enable the eval
19875  # if we detect the quoting.
19876  case $CONFIG_FILES in
19877  *\'*) eval set x "$CONFIG_FILES" ;;
19878  *)   set x $CONFIG_FILES ;;
19879  esac
19880  shift
19881  for mf
19882  do
19883    # Strip MF so we end up with the name of the file.
19884    mf=`echo "$mf" | sed -e 's/:.*$//'`
19885    # Check whether this is an Automake generated Makefile or not.
19886    # We used to match only the files named 'Makefile.in', but
19887    # some people rename them; so instead we look at the file content.
19888    # Grep'ing the first line is not enough: some people post-process
19889    # each Makefile.in and add a new line on top of each file to say so.
19890    # Grep'ing the whole file is not good either: AIX grep has a line
19891    # limit of 2048, but all sed's we know have understand at least 4000.
19892    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19893      dirpart=`$as_dirname -- "$mf" ||
19894$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19895	 X"$mf" : 'X\(//\)[^/]' \| \
19896	 X"$mf" : 'X\(//\)$' \| \
19897	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19898$as_echo X"$mf" |
19899    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19900	    s//\1/
19901	    q
19902	  }
19903	  /^X\(\/\/\)[^/].*/{
19904	    s//\1/
19905	    q
19906	  }
19907	  /^X\(\/\/\)$/{
19908	    s//\1/
19909	    q
19910	  }
19911	  /^X\(\/\).*/{
19912	    s//\1/
19913	    q
19914	  }
19915	  s/.*/./; q'`
19916    else
19917      continue
19918    fi
19919    # Extract the definition of DEPDIR, am__include, and am__quote
19920    # from the Makefile without running 'make'.
19921    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19922    test -z "$DEPDIR" && continue
19923    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19924    test -z "$am__include" && continue
19925    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19926    # Find all dependency output files, they are included files with
19927    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19928    # simplest approach to changing $(DEPDIR) to its actual value in the
19929    # expansion.
19930    for file in `sed -n "
19931      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19932	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19933      # Make sure the directory exists.
19934      test -f "$dirpart/$file" && continue
19935      fdir=`$as_dirname -- "$file" ||
19936$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19937	 X"$file" : 'X\(//\)[^/]' \| \
19938	 X"$file" : 'X\(//\)$' \| \
19939	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19940$as_echo X"$file" |
19941    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19942	    s//\1/
19943	    q
19944	  }
19945	  /^X\(\/\/\)[^/].*/{
19946	    s//\1/
19947	    q
19948	  }
19949	  /^X\(\/\/\)$/{
19950	    s//\1/
19951	    q
19952	  }
19953	  /^X\(\/\).*/{
19954	    s//\1/
19955	    q
19956	  }
19957	  s/.*/./; q'`
19958      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19959      # echo "creating $dirpart/$file"
19960      echo '# dummy' > "$dirpart/$file"
19961    done
19962  done
19963}
19964 ;;
19965    "po-directories":C)
19966    for ac_file in $CONFIG_FILES; do
19967      # Support "outfile[:infile[:infile...]]"
19968      case "$ac_file" in
19969        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19970      esac
19971      # PO directories have a Makefile.in generated from Makefile.in.in.
19972      case "$ac_file" in */Makefile.in)
19973        # Adjust a relative srcdir.
19974        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19975        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19976        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19977        # In autoconf-2.13 it is called $ac_given_srcdir.
19978        # In autoconf-2.50 it is called $srcdir.
19979        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19980        case "$ac_given_srcdir" in
19981          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19982          /*) top_srcdir="$ac_given_srcdir" ;;
19983          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19984        esac
19985        # Treat a directory as a PO directory if and only if it has a
19986        # POTFILES.in file. This allows packages to have multiple PO
19987        # directories under different names or in different locations.
19988        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19989          rm -f "$ac_dir/POTFILES"
19990          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19991          gt_tab=`printf '\t'`
19992          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"
19993          POMAKEFILEDEPS="POTFILES.in"
19994          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19995          # on $ac_dir but don't depend on user-specified configuration
19996          # parameters.
19997          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19998            # The LINGUAS file contains the set of available languages.
19999            if test -n "$OBSOLETE_ALL_LINGUAS"; then
20000              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20001            fi
20002            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20003            # Hide the ALL_LINGUAS assignment from automake < 1.5.
20004            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20005            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20006          else
20007            # The set of available languages was given in configure.in.
20008            # Hide the ALL_LINGUAS assignment from automake < 1.5.
20009            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20010          fi
20011          # Compute POFILES
20012          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20013          # Compute UPDATEPOFILES
20014          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20015          # Compute DUMMYPOFILES
20016          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20017          # Compute GMOFILES
20018          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20019          case "$ac_given_srcdir" in
20020            .) srcdirpre= ;;
20021            *) srcdirpre='$(srcdir)/' ;;
20022          esac
20023          POFILES=
20024          UPDATEPOFILES=
20025          DUMMYPOFILES=
20026          GMOFILES=
20027          for lang in $ALL_LINGUAS; do
20028            POFILES="$POFILES $srcdirpre$lang.po"
20029            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20030            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20031            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20032          done
20033          # CATALOGS depends on both $ac_dir and the user's LINGUAS
20034          # environment variable.
20035          INST_LINGUAS=
20036          if test -n "$ALL_LINGUAS"; then
20037            for presentlang in $ALL_LINGUAS; do
20038              useit=no
20039              if test "%UNSET%" != "$LINGUAS"; then
20040                desiredlanguages="$LINGUAS"
20041              else
20042                desiredlanguages="$ALL_LINGUAS"
20043              fi
20044              for desiredlang in $desiredlanguages; do
20045                # Use the presentlang catalog if desiredlang is
20046                #   a. equal to presentlang, or
20047                #   b. a variant of presentlang (because in this case,
20048                #      presentlang can be used as a fallback for messages
20049                #      which are not translated in the desiredlang catalog).
20050                case "$desiredlang" in
20051                  "$presentlang"*) useit=yes;;
20052                esac
20053              done
20054              if test $useit = yes; then
20055                INST_LINGUAS="$INST_LINGUAS $presentlang"
20056              fi
20057            done
20058          fi
20059          CATALOGS=
20060          if test -n "$INST_LINGUAS"; then
20061            for lang in $INST_LINGUAS; do
20062              CATALOGS="$CATALOGS $lang.gmo"
20063            done
20064          fi
20065          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20066          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"
20067          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20068            if test -f "$f"; then
20069              case "$f" in
20070                *.orig | *.bak | *~) ;;
20071                *) cat "$f" >> "$ac_dir/Makefile" ;;
20072              esac
20073            fi
20074          done
20075        fi
20076        ;;
20077      esac
20078    done ;;
20079    "libtool":C)
20080
20081    # See if we are running on zsh, and set the options that allow our
20082    # commands through without removal of \ escapes.
20083    if test -n "${ZSH_VERSION+set}"; then
20084      setopt NO_GLOB_SUBST
20085    fi
20086
20087    cfgfile=${ofile}T
20088    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20089    $RM "$cfgfile"
20090
20091    cat <<_LT_EOF >> "$cfgfile"
20092#! $SHELL
20093# Generated automatically by $as_me ($PACKAGE) $VERSION
20094# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20095
20096# Provide generalized library-building support services.
20097# Written by Gordon Matzigkeit, 1996
20098
20099# Copyright (C) 2014 Free Software Foundation, Inc.
20100# This is free software; see the source for copying conditions.  There is NO
20101# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20102
20103# GNU Libtool is free software; you can redistribute it and/or modify
20104# it under the terms of the GNU General Public License as published by
20105# the Free Software Foundation; either version 2 of of the License, or
20106# (at your option) any later version.
20107#
20108# As a special exception to the GNU General Public License, if you
20109# distribute this file as part of a program or library that is built
20110# using GNU Libtool, you may include this file under the  same
20111# distribution terms that you use for the rest of that program.
20112#
20113# GNU Libtool is distributed in the hope that it will be useful, but
20114# WITHOUT ANY WARRANTY; without even the implied warranty of
20115# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20116# GNU General Public License for more details.
20117#
20118# You should have received a copy of the GNU General Public License
20119# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20120
20121
20122# The names of the tagged configurations supported by this script.
20123available_tags=''
20124
20125# Configured defaults for sys_lib_dlsearch_path munging.
20126: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20127
20128# ### BEGIN LIBTOOL CONFIG
20129
20130# Which release of libtool.m4 was used?
20131macro_version=$macro_version
20132macro_revision=$macro_revision
20133
20134# Whether or not to build shared libraries.
20135build_libtool_libs=$enable_shared
20136
20137# Whether or not to build static libraries.
20138build_old_libs=$enable_static
20139
20140# What type of objects to build.
20141pic_mode=$pic_mode
20142
20143# Whether or not to optimize for fast installation.
20144fast_install=$enable_fast_install
20145
20146# Shared archive member basename,for filename based shared library versioning on AIX.
20147shared_archive_member_spec=$shared_archive_member_spec
20148
20149# Shell to use when invoking shell scripts.
20150SHELL=$lt_SHELL
20151
20152# An echo program that protects backslashes.
20153ECHO=$lt_ECHO
20154
20155# The PATH separator for the build system.
20156PATH_SEPARATOR=$lt_PATH_SEPARATOR
20157
20158# The host system.
20159host_alias=$host_alias
20160host=$host
20161host_os=$host_os
20162
20163# The build system.
20164build_alias=$build_alias
20165build=$build
20166build_os=$build_os
20167
20168# A sed program that does not truncate output.
20169SED=$lt_SED
20170
20171# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20172Xsed="\$SED -e 1s/^X//"
20173
20174# A grep program that handles long lines.
20175GREP=$lt_GREP
20176
20177# An ERE matcher.
20178EGREP=$lt_EGREP
20179
20180# A literal string matcher.
20181FGREP=$lt_FGREP
20182
20183# A BSD- or MS-compatible name lister.
20184NM=$lt_NM
20185
20186# Whether we need soft or hard links.
20187LN_S=$lt_LN_S
20188
20189# What is the maximum length of a command?
20190max_cmd_len=$max_cmd_len
20191
20192# Object file suffix (normally "o").
20193objext=$ac_objext
20194
20195# Executable file suffix (normally "").
20196exeext=$exeext
20197
20198# whether the shell understands "unset".
20199lt_unset=$lt_unset
20200
20201# turn spaces into newlines.
20202SP2NL=$lt_lt_SP2NL
20203
20204# turn newlines into spaces.
20205NL2SP=$lt_lt_NL2SP
20206
20207# convert \$build file names to \$host format.
20208to_host_file_cmd=$lt_cv_to_host_file_cmd
20209
20210# convert \$build files to toolchain format.
20211to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20212
20213# An object symbol dumper.
20214OBJDUMP=$lt_OBJDUMP
20215
20216# Method to check whether dependent libraries are shared objects.
20217deplibs_check_method=$lt_deplibs_check_method
20218
20219# Command to use when deplibs_check_method = "file_magic".
20220file_magic_cmd=$lt_file_magic_cmd
20221
20222# How to find potential files when deplibs_check_method = "file_magic".
20223file_magic_glob=$lt_file_magic_glob
20224
20225# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20226want_nocaseglob=$lt_want_nocaseglob
20227
20228# DLL creation program.
20229DLLTOOL=$lt_DLLTOOL
20230
20231# Command to associate shared and link libraries.
20232sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20233
20234# The archiver.
20235AR=$lt_AR
20236
20237# Flags to create an archive.
20238AR_FLAGS=$lt_AR_FLAGS
20239
20240# How to feed a file listing to the archiver.
20241archiver_list_spec=$lt_archiver_list_spec
20242
20243# A symbol stripping program.
20244STRIP=$lt_STRIP
20245
20246# Commands used to install an old-style archive.
20247RANLIB=$lt_RANLIB
20248old_postinstall_cmds=$lt_old_postinstall_cmds
20249old_postuninstall_cmds=$lt_old_postuninstall_cmds
20250
20251# Whether to use a lock for old archive extraction.
20252lock_old_archive_extraction=$lock_old_archive_extraction
20253
20254# A C compiler.
20255LTCC=$lt_CC
20256
20257# LTCC compiler flags.
20258LTCFLAGS=$lt_CFLAGS
20259
20260# Take the output of nm and produce a listing of raw symbols and C names.
20261global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20262
20263# Transform the output of nm in a proper C declaration.
20264global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20265
20266# Transform the output of nm into a list of symbols to manually relocate.
20267global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20268
20269# Transform the output of nm in a C name address pair.
20270global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20271
20272# Transform the output of nm in a C name address pair when lib prefix is needed.
20273global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20274
20275# The name lister interface.
20276nm_interface=$lt_lt_cv_nm_interface
20277
20278# Specify filename containing input files for \$NM.
20279nm_file_list_spec=$lt_nm_file_list_spec
20280
20281# The root where to search for dependent libraries,and where our libraries should be installed.
20282lt_sysroot=$lt_sysroot
20283
20284# Command to truncate a binary pipe.
20285lt_truncate_bin=$lt_lt_cv_truncate_bin
20286
20287# The name of the directory that contains temporary libtool files.
20288objdir=$objdir
20289
20290# Used to examine libraries when file_magic_cmd begins with "file".
20291MAGIC_CMD=$MAGIC_CMD
20292
20293# Must we lock files when doing compilation?
20294need_locks=$lt_need_locks
20295
20296# Manifest tool.
20297MANIFEST_TOOL=$lt_MANIFEST_TOOL
20298
20299# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20300DSYMUTIL=$lt_DSYMUTIL
20301
20302# Tool to change global to local symbols on Mac OS X.
20303NMEDIT=$lt_NMEDIT
20304
20305# Tool to manipulate fat objects and archives on Mac OS X.
20306LIPO=$lt_LIPO
20307
20308# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20309OTOOL=$lt_OTOOL
20310
20311# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20312OTOOL64=$lt_OTOOL64
20313
20314# Old archive suffix (normally "a").
20315libext=$libext
20316
20317# Shared library suffix (normally ".so").
20318shrext_cmds=$lt_shrext_cmds
20319
20320# The commands to extract the exported symbol list from a shared archive.
20321extract_expsyms_cmds=$lt_extract_expsyms_cmds
20322
20323# Variables whose values should be saved in libtool wrapper scripts and
20324# restored at link time.
20325variables_saved_for_relink=$lt_variables_saved_for_relink
20326
20327# Do we need the "lib" prefix for modules?
20328need_lib_prefix=$need_lib_prefix
20329
20330# Do we need a version for libraries?
20331need_version=$need_version
20332
20333# Library versioning type.
20334version_type=$version_type
20335
20336# Shared library runtime path variable.
20337runpath_var=$runpath_var
20338
20339# Shared library path variable.
20340shlibpath_var=$shlibpath_var
20341
20342# Is shlibpath searched before the hard-coded library search path?
20343shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20344
20345# Format of library name prefix.
20346libname_spec=$lt_libname_spec
20347
20348# List of archive names.  First name is the real one, the rest are links.
20349# The last name is the one that the linker finds with -lNAME
20350library_names_spec=$lt_library_names_spec
20351
20352# The coded name of the library, if different from the real name.
20353soname_spec=$lt_soname_spec
20354
20355# Permission mode override for installation of shared libraries.
20356install_override_mode=$lt_install_override_mode
20357
20358# Command to use after installation of a shared archive.
20359postinstall_cmds=$lt_postinstall_cmds
20360
20361# Command to use after uninstallation of a shared archive.
20362postuninstall_cmds=$lt_postuninstall_cmds
20363
20364# Commands used to finish a libtool library installation in a directory.
20365finish_cmds=$lt_finish_cmds
20366
20367# As "finish_cmds", except a single script fragment to be evaled but
20368# not shown.
20369finish_eval=$lt_finish_eval
20370
20371# Whether we should hardcode library paths into libraries.
20372hardcode_into_libs=$hardcode_into_libs
20373
20374# Compile-time system search path for libraries.
20375sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20376
20377# Detected run-time system search path for libraries.
20378sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20379
20380# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20381configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20382
20383# Whether dlopen is supported.
20384dlopen_support=$enable_dlopen
20385
20386# Whether dlopen of programs is supported.
20387dlopen_self=$enable_dlopen_self
20388
20389# Whether dlopen of statically linked programs is supported.
20390dlopen_self_static=$enable_dlopen_self_static
20391
20392# Commands to strip libraries.
20393old_striplib=$lt_old_striplib
20394striplib=$lt_striplib
20395
20396
20397# The linker used to build libraries.
20398LD=$lt_LD
20399
20400# How to create reloadable object files.
20401reload_flag=$lt_reload_flag
20402reload_cmds=$lt_reload_cmds
20403
20404# Commands used to build an old-style archive.
20405old_archive_cmds=$lt_old_archive_cmds
20406
20407# A language specific compiler.
20408CC=$lt_compiler
20409
20410# Is the compiler the GNU compiler?
20411with_gcc=$GCC
20412
20413# Compiler flag to turn off builtin functions.
20414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20415
20416# Additional compiler flags for building library objects.
20417pic_flag=$lt_lt_prog_compiler_pic
20418
20419# How to pass a linker flag through the compiler.
20420wl=$lt_lt_prog_compiler_wl
20421
20422# Compiler flag to prevent dynamic linking.
20423link_static_flag=$lt_lt_prog_compiler_static
20424
20425# Does compiler simultaneously support -c and -o options?
20426compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20427
20428# Whether or not to add -lc for building shared libraries.
20429build_libtool_need_lc=$archive_cmds_need_lc
20430
20431# Whether or not to disallow shared libs when runtime libs are static.
20432allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20433
20434# Compiler flag to allow reflexive dlopens.
20435export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20436
20437# Compiler flag to generate shared objects directly from archives.
20438whole_archive_flag_spec=$lt_whole_archive_flag_spec
20439
20440# Whether the compiler copes with passing no objects directly.
20441compiler_needs_object=$lt_compiler_needs_object
20442
20443# Create an old-style archive from a shared archive.
20444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20445
20446# Create a temporary old-style archive to link instead of a shared archive.
20447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20448
20449# Commands used to build a shared archive.
20450archive_cmds=$lt_archive_cmds
20451archive_expsym_cmds=$lt_archive_expsym_cmds
20452
20453# Commands used to build a loadable module if different from building
20454# a shared archive.
20455module_cmds=$lt_module_cmds
20456module_expsym_cmds=$lt_module_expsym_cmds
20457
20458# Whether we are building with GNU ld or not.
20459with_gnu_ld=$lt_with_gnu_ld
20460
20461# Flag that allows shared libraries with undefined symbols to be built.
20462allow_undefined_flag=$lt_allow_undefined_flag
20463
20464# Flag that enforces no undefined symbols.
20465no_undefined_flag=$lt_no_undefined_flag
20466
20467# Flag to hardcode \$libdir into a binary during linking.
20468# This must work even if \$libdir does not exist
20469hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20470
20471# Whether we need a single "-rpath" flag with a separated argument.
20472hardcode_libdir_separator=$lt_hardcode_libdir_separator
20473
20474# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20475# DIR into the resulting binary.
20476hardcode_direct=$hardcode_direct
20477
20478# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20479# DIR into the resulting binary and the resulting library dependency is
20480# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20481# library is relocated.
20482hardcode_direct_absolute=$hardcode_direct_absolute
20483
20484# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20485# into the resulting binary.
20486hardcode_minus_L=$hardcode_minus_L
20487
20488# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20489# into the resulting binary.
20490hardcode_shlibpath_var=$hardcode_shlibpath_var
20491
20492# Set to "yes" if building a shared library automatically hardcodes DIR
20493# into the library and all subsequent libraries and executables linked
20494# against it.
20495hardcode_automatic=$hardcode_automatic
20496
20497# Set to yes if linker adds runtime paths of dependent libraries
20498# to runtime path list.
20499inherit_rpath=$inherit_rpath
20500
20501# Whether libtool must link a program against all its dependency libraries.
20502link_all_deplibs=$link_all_deplibs
20503
20504# Set to "yes" if exported symbols are required.
20505always_export_symbols=$always_export_symbols
20506
20507# The commands to list exported symbols.
20508export_symbols_cmds=$lt_export_symbols_cmds
20509
20510# Symbols that should not be listed in the preloaded symbols.
20511exclude_expsyms=$lt_exclude_expsyms
20512
20513# Symbols that must always be exported.
20514include_expsyms=$lt_include_expsyms
20515
20516# Commands necessary for linking programs (against libraries) with templates.
20517prelink_cmds=$lt_prelink_cmds
20518
20519# Commands necessary for finishing linking programs.
20520postlink_cmds=$lt_postlink_cmds
20521
20522# Specify filename containing input files.
20523file_list_spec=$lt_file_list_spec
20524
20525# How to hardcode a shared library path into an executable.
20526hardcode_action=$hardcode_action
20527
20528# ### END LIBTOOL CONFIG
20529
20530_LT_EOF
20531
20532    cat <<'_LT_EOF' >> "$cfgfile"
20533
20534# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20535
20536# func_munge_path_list VARIABLE PATH
20537# -----------------------------------
20538# VARIABLE is name of variable containing _space_ separated list of
20539# directories to be munged by the contents of PATH, which is string
20540# having a format:
20541# "DIR[:DIR]:"
20542#       string "DIR[ DIR]" will be prepended to VARIABLE
20543# ":DIR[:DIR]"
20544#       string "DIR[ DIR]" will be appended to VARIABLE
20545# "DIRP[:DIRP]::[DIRA:]DIRA"
20546#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20547#       "DIRA[ DIRA]" will be appended to VARIABLE
20548# "DIR[:DIR]"
20549#       VARIABLE will be replaced by "DIR[ DIR]"
20550func_munge_path_list ()
20551{
20552    case x$2 in
20553    x)
20554        ;;
20555    *:)
20556        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20557        ;;
20558    x:*)
20559        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20560        ;;
20561    *::*)
20562        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20563        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20564        ;;
20565    *)
20566        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20567        ;;
20568    esac
20569}
20570
20571
20572# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20573func_cc_basename ()
20574{
20575    for cc_temp in $*""; do
20576      case $cc_temp in
20577        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20578        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20579        \-*) ;;
20580        *) break;;
20581      esac
20582    done
20583    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20584}
20585
20586
20587# ### END FUNCTIONS SHARED WITH CONFIGURE
20588
20589_LT_EOF
20590
20591  case $host_os in
20592  aix3*)
20593    cat <<\_LT_EOF >> "$cfgfile"
20594# AIX sometimes has problems with the GCC collect2 program.  For some
20595# reason, if we set the COLLECT_NAMES environment variable, the problems
20596# vanish in a puff of smoke.
20597if test set != "${COLLECT_NAMES+set}"; then
20598  COLLECT_NAMES=
20599  export COLLECT_NAMES
20600fi
20601_LT_EOF
20602    ;;
20603  esac
20604
20605
20606ltmain=$ac_aux_dir/ltmain.sh
20607
20608
20609  # We use sed instead of cat because bash on DJGPP gets confused if
20610  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20611  # text mode, it properly converts lines to CR/LF.  This bash problem
20612  # is reportedly fixed, but why not run on old versions too?
20613  sed '$q' "$ltmain" >> "$cfgfile" \
20614     || (rm -f "$cfgfile"; exit 1)
20615
20616   mv -f "$cfgfile" "$ofile" ||
20617    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20618  chmod +x "$ofile"
20619
20620 ;;
20621
20622  esac
20623done # for ac_tag
20624
20625
20626as_fn_exit 0
20627_ACEOF
20628ac_clean_files=$ac_clean_files_save
20629
20630test $ac_write_fail = 0 ||
20631  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20632
20633
20634# configure is writing to config.log, and then calls config.status.
20635# config.status does its own redirection, appending to config.log.
20636# Unfortunately, on DOS this fails, as config.log is still kept open
20637# by configure, so config.status won't be able to write to it; its
20638# output is simply discarded.  So we exec the FD to /dev/null,
20639# effectively closing config.log, so it can be properly (re)opened and
20640# appended to by config.status.  When coming back to configure, we
20641# need to make the FD available again.
20642if test "$no_create" != yes; then
20643  ac_cs_success=:
20644  ac_config_status_args=
20645  test "$silent" = yes &&
20646    ac_config_status_args="$ac_config_status_args --quiet"
20647  exec 5>/dev/null
20648  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20649  exec 5>>config.log
20650  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20651  # would make configure fail if this is the last instruction.
20652  $ac_cs_success || as_fn_exit 1
20653fi
20654if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20655  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20656$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20657fi
20658
20659